input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: called by requestor #request string , object , callback for two-way messages using callbacks . concode_field_sep ReentrantLock channelLock concode_field_sep void lockChannel concode_elem_sep void writeBuffers concode_elem_sep String getRemoteName concode_elem_sep bool...
void function ( List < ByteBuffer > arg0 , Callback < List < ByteBuffer >> arg1 ) { try { List < ByteBuffer > loc0 = transceive ( arg0 ) ; arg1 . handleResult ( loc0 ) ; } catch ( IOException loc0 ) { arg1 . handleError ( loc0 ) ; } }
Generate a Java code for the following instruction: converts an input handle back to the corresponding java element . concode_field_sep String ATTRIBUTE_SELECTION concode_elem_sep String ATTRIBUTE_ELEMENT concode_elem_sep String ATTRIBUTE_NAME concode_elem_sep String ATTRIBUTE_INPUT concode_elem_sep String ATTRIBUTE_RE...
IJavaElement function ( final String arg0 , final String arg1 , final boolean arg2 ) { return handleToElement ( null , arg0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: bigdecimal random . concode_field_sep java.math.BigDecimal val concode_elem_sep int DEFAULT_PRECISION concode_elem_sep BigDecimal ZERO concode_elem_sep MathContext DEFAULT_CONTEXT concode_elem_sep MathContext context concode_elem_sep BigDecimal ONE concode_elem_sep Ra...
BigDecimal function ( int arg0 , int arg1 , Random arg2 ) { java . math . BigInteger loc0 = new java . math . BigInteger ( arg0 , arg2 ) ; if ( arg2 . nextBoolean ( ) ) { loc0 = loc0 . negate ( ) ; } int loc1 = arg2 . nextInt ( arg1 ) ; if ( arg2 . nextBoolean ( ) ) { loc1 = - loc1 ; } java . math . BigDecimal loc2 = n...
Generate a Java code for the following instruction: creates a list based on an enumeration . as the enumeration is traversed , an arraylist of its values is created . the new list is returned . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
List function ( Enumeration arg0 ) { return IteratorUtils . toList ( new EnumerationIterator ( arg0 ) ) ; }
Generate a Java code for the following instruction: local identifier , generated by localvariabledeclarationstatement . concode_field_sep Class<?> type concode_elem_sep String identifier concode_field_sep Class<?> getReturnType
String function ( Class < ? > arg0 ) { return identifier ; }
Generate a Java code for the following instruction: creates a randomaccesssource based on a byte array concode_field_sep boolean forceRead concode_elem_sep boolean usePlainRandomAccess concode_elem_sep boolean exclusivelyLockFile concode_field_sep RandomAccessSource createBestSource concode_elem_sep RandomAccessSource ...
RandomAccessSource function ( byte [ ] arg0 ) { return new ArrayRandomAccessSource ( arg0 ) ; }
Generate a Java code for the following instruction: register a default non-weighted typecode mapping concode_field_sep Map<Integer,Map<Long,String>> weighted concode_elem_sep Map<Integer,String> defaults concode_field_sep String get concode_elem_sep String get concode_elem_sep String replace
void function ( int arg0 , String arg1 ) { defaults . put ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: log a message with error log level . concode_field_sep String name concode_elem_sep boolean classAndMethodFound concode_elem_sep Logger logger concode_elem_sep String sourceMethodName concode_elem_sep String sourceClassName concode_field_sep void debug concode_elem_se...
void function ( Object arg0 ) { log ( Level . SEVERE , String . valueOf ( arg0 ) , null ) ; }
Generate a Java code for the following instruction: delete a directory and its contents . warning : java apis do not let us distinguish directories from symbolic links to directories . consequently , if the directory contains symbolic links to directories , we will attempt to delete the contents of pointed-to directori...
void function ( File arg0 ) { if ( arg0 . isDirectory ( ) ) { for ( File loc0 : arg0 . listFiles ( ) ) { dumbDeleteRecrusive ( loc0 ) ; } } if ( ! arg0 . delete ( ) && arg0 . exists ( ) ) { throw new IOException ( "srini_string" + arg0 ) ; } }
Generate a Java code for the following instruction: getter for values concode_field_sep ASN1ObjectIdentifier O concode_elem_sep ASN1ObjectIdentifier T concode_elem_sep ASN1ObjectIdentifier SURNAME concode_elem_sep ASN1ObjectIdentifier ST concode_elem_sep ASN1ObjectIdentifier E concode_elem_sep ASN1ObjectIdentifier INIT...
Map < String , ArrayList < String >> function ( ) { return values ; }
Generate a Java code for the following instruction: gets the data . note : the array will not be cloned . concode_field_sep Hashtable<IFFChunk,IFFChunk> propertyChunks concode_elem_sep long size concode_elem_sep byte[] data concode_elem_sep long scan concode_elem_sep int id concode_elem_sep int type concode_elem_sep Ve...
byte [ ] function ( ) { return data ; }
Generate a Java code for the following instruction: returns true for an instantiated non - `` factory '' splitter . clients also need to check valid . concode_field_sep boolean instantiated concode_elem_sep long serialVersionUID concode_field_sep boolean valid concode_elem_sep String condition concode_elem_sep void ins...
boolean function ( ) { return instantiated ; }
Generate a Java code for the following instruction: returns whether the control should make the refactorings checkable . concode_field_sep boolean fCheckable concode_elem_sep IProject fProject concode_elem_sep boolean fTime concode_field_sep boolean isTimeDisplayed concode_elem_sep String getCollectionLabel concode_ele...
boolean function ( ) { return fCheckable ; }
Generate a Java code for the following instruction: parses the direction tag and returns the direction or a default value as radians concode_field_sep PlaceHolder placeHolder concode_field_sep String getValueWithFallback concode_elem_sep float parseMeasure concode_elem_sep float parseWidth concode_elem_sep float parseC...
double function ( TagGroup arg0 , double arg1 ) { Float loc0 = null ; if ( arg0 . containsKey ( "srini_string" ) ) { loc0 = parseAngle ( arg0 . getValue ( "srini_string" ) ) ; } if ( loc0 != null ) { return Math . toRadians ( loc0 ) ; } else { return arg1 ; } }
Generate a Java code for the following instruction: tests that a ejb with several context and sub classes @resource deploys fine and is injected as expected concode_field_sep Logger logger concode_elem_sep SimpleSLSB slsb concode_field_sep void testInjection concode_elem_sep void testEnvEntryInjection concode_elem_sep ...
void function ( ) { Assert . assertTrue ( "srini_string" , this . slsb . validContextInjections ( ) ) ; }
Generate a Java code for the following instruction: return the count and the quantity label as a properly pluralized string . i.e. 5 , `` item '' == > `` 5 items '' . concode_field_sep String NEW_LINE concode_field_sep String trimMenuText concode_elem_sep String toString
String function ( int arg0 , String arg1 ) { if ( arg0 == 1 ) { return NumberFormat . getNumberInstance ( ) . format ( arg0 ) + "srini_string" + arg1 ; } else { return NumberFormat . getNumberInstance ( ) . format ( arg0 ) + "srini_string" + arg1 + "srini_string" ; } }
Generate a Java code for the following instruction: adds a single author . concode_field_sep String IDENTIFIER concode_elem_sep String SUBJECT concode_elem_sep String TYPE concode_elem_sep String CONTRIBUTOR concode_elem_sep String CREATOR concode_elem_sep String RELATION concode_elem_sep String SOURCE concode_elem_sep...
void function ( XMPMeta arg0 , String arg1 ) { arg0 . appendArrayItem ( XMPConst . NS_DC , CREATOR , new PropertyOptions ( PropertyOptions . ARRAY_ORDERED ) , arg1 , null ) ; }
Generate a Java code for the following instruction: cleanup by closing any open menus concode_field_sep Display display concode_elem_sep int DEFAULT_EXEC_WAIT_TIME concode_field_sep ControlReference<?> getFocusControl concode_elem_sep ShellReference[] getShells concode_elem_sep Color getSystemColor concode_elem_sep She...
void function ( ) { new SWTShowMenuOperation ( null ) . closeAllMenus ( ) . execute ( ) ; }
Generate a Java code for the following instruction: returns the value of the corner thickness concode_field_sep int DEFAULT_CORNER_COLOR concode_elem_sep float DEFAULT_GUIDELINE_THICKNESS_PX concode_elem_sep String DEFAULT_BACKGROUND_COLOR_ID concode_elem_sep float DEFAULT_LINE_THICKNESS_DP concode_elem_sep float DEFAU...
float function ( ) { return DEFAULT_CORNER_THICKNESS_DP ; }
Generate a Java code for the following instruction: compares the charsequences o1 and o2 . concode_field_sep AvroCharSequenceComparator<CharSequence> INSTANCE concode_field_sep int compare concode_elem_sep int compareCharacter
int function ( CharSequence arg0 , CharSequence arg1 ) { for ( int loc0 = 0 ; loc0 < Math . max ( arg0 . length ( ) , arg1 . length ( ) ) ; loc0 ++ ) { int loc1 = compareCharacter ( arg0 , arg1 , loc0 ) ; if ( 0 != loc1 ) { return loc1 ; } } return 0 ; }
Generate a Java code for the following instruction: sets the exception from failed execution and executes callback if available . notifies any thread waiting for completion . concode_field_sep Exception exception concode_elem_sep int COMPLETED concode_elem_sep AtomicInteger idx concode_elem_sep int state concode_elem_s...
void function ( Exception arg0 ) { this . exception = arg0 ; this . state = FAILED ; this . callback . ifPresent ( ac -> ac . onComplete ( null , Optional . of ( arg0 ) ) ) ; synchronized ( lock ) { lock . notifyAll ( ) ; } }
Generate a Java code for the following instruction: create a widget reference locator for this widget . concode_field_sep T widget concode_elem_sep Map<Class<?>,Object> adapters concode_field_sep Object getAdapter concode_elem_sep T getWidget concode_elem_sep void addAdapter concode_elem_sep String toString concode_ele...
WidgetReference < T > function ( T arg0 ) { return new WidgetReference < T > ( arg0 ) ; }
Generate a Java code for the following instruction: convenience method for clearing this error bar making it available for new configuration . all errors are set to #error_pixel_none afterwards . concode_field_sep int m_negativeYErrorPixel concode_elem_sep int m_negativeXErrorPixel concode_elem_sep int m_positiveYError...
void function ( ) { this . m_negativeXErrorPixel = IErrorBarPixel . ERROR_PIXEL_NONE ; this . m_negativeYErrorPixel = IErrorBarPixel . ERROR_PIXEL_NONE ; this . m_positiveXErrorPixel = IErrorBarPixel . ERROR_PIXEL_NONE ; this . m_positiveYErrorPixel = IErrorBarPixel . ERROR_PIXEL_NONE ; }
Generate a Java code for the following instruction: transforms the input to result by executing a closure . concode_field_sep long serialVersionUID concode_elem_sep Closure iClosure concode_field_sep Closure getClosure concode_elem_sep Transformer getInstance
Object function ( Object arg0 ) { iClosure . execute ( arg0 ) ; return arg0 ; }
Generate a Java code for the following instruction: returns the way or relation with the tags for this area concode_field_sep OSMElement objectWithTags concode_elem_sep List<MapNode> nodes concode_elem_sep PolygonWithHolesXZ polygon concode_elem_sep Collection<MapAreaSegment> areaSegments concode_elem_sep Collection<Ma...
OSMElement function ( ) { return objectWithTags ; }
Generate a Java code for the following instruction: makes sure that the upcomingrelease is initialized concode_field_sep long serialVersionUID concode_elem_sep LinkedHashMap<Integer,ReleaseEntity> releaseMap concode_elem_sep ReleaseMgmtService releaseService concode_elem_sep ResourceDependencyResolverService dependency...
Date function ( ) { if ( upcomingReleaseDate == null ) { this . upcomingReleaseDate = dependencyResolverService . findMostRelevantRelease ( new TreeSet < ReleaseEntity > ( getAllReleases ( ) ) , new Date ( ) ) . getInstallationInProductionAt ( ) ; } return upcomingReleaseDate ; }
Generate a Java code for the following instruction: this method exists solely to concentrate usage of javax.ws.rs.core.response #created java.net.uri intoone place until this jira is resolved somehow . concode_field_sep PlaceHolder placeHolder concode_field_sep void createPagingHeader concode_elem_sep InputStream pageT...
Response . ResponseBuilder function ( AbstractElement arg0 , UriInfo arg1 , String arg2 ) { return Response . status ( CREATED ) . location ( arg1 . getRequestUriBuilder ( ) . segment ( arg2 ) . build ( ) ) . entity ( arg0 ) ; }
Generate a Java code for the following instruction: this method returns the history of measured or aggregated metrics of the last ten metric-updates . concode_field_sep HashMap<BigDecimal,MetricsSubCoordinatorInfo> listOfSubCoordinators concode_elem_sep float exponentialSmoothing concode_elem_sep MetricsEntry ownMetric...
LinkedList < HashMap < String , MetricsAggregate >> function ( ) { return metricsHistory ; }
Generate a Java code for the following instruction: identical to #intx transactionpayload but also returns the notifications emitted from the transaction.the list of notifications is final and they have already been sent . the caller should not send them again . concode_field_sep R result concode_elem_sep TraversalCont...
ResultWithNofifications < R , BE > function ( TransactionPayload < R , BE > arg0 ) { return inCommittableTxWithNotifications ( context , TransactionPayload . Committing . committing ( arg0 ) ) ; }
Generate a Java code for the following instruction: quotient subtraction . concode_field_sep Logger logger concode_elem_sep QuotientRing<C> ring concode_elem_sep boolean debug concode_elem_sep C num concode_elem_sep C den concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Quotient<C> inverse c...
Quotient < C > function ( Quotient < C > arg0 ) { if ( arg0 == null || arg0 . isZERO ( ) ) { return this ; } C loc0 = num . multiply ( arg0 . den ) ; loc0 = loc0 . subtract ( den . multiply ( arg0 . num ) ) ; C loc1 = den . multiply ( arg0 . den ) ; return new Quotient < C > ( ring , loc0 , loc1 , false ) ; }
Generate a Java code for the following instruction: method stub . returns false . concode_field_sep Reflector _parent concode_elem_sep ReflectArray _array concode_elem_sep JdkLoader _classLoader concode_elem_sep ReflectorConfiguration _config concode_field_sep Reflector parent concode_elem_sep ReflectClass forName conc...
boolean function ( ) { return true ; }
Generate a Java code for the following instruction: methods to build visual elements concode_field_sep int ELEMENTWIDTH concode_elem_sep JPanel spreadsheet concode_elem_sep SpreadsheetCell[][] cellArray concode_elem_sep JPanel contentPanel concode_elem_sep JLabel EditLabel concode_elem_sep JTextField ErrorBox concode_e...
JPanel function ( ) { contentPanel = new JPanel ( ) ; contentPanel . setLayout ( new BorderLayout ( ) ) ; contentPanel . add ( buildEditPanel ( ) , BorderLayout . NORTH ) ; contentPanel . add ( buildSpreadsheet ( ) , BorderLayout . CENTER ) ; contentPanel . add ( buildErrorPanel ( ) , BorderLayout . SOUTH ) ; return co...
Generate a Java code for the following instruction: look up the method specified by either `` method '' or `` methodkey '' and invoke it , returning a boolean value as interpreted by evaluateresult . concode_field_sep WeakHashMap methods concode_elem_sep String methodKey concode_elem_sep Class[] DEFAULT_SIGNATURE conco...
boolean function ( Context arg0 ) { if ( this . getMethod ( ) == null && this . getMethodKey ( ) == null ) { throw new IllegalStateException ( "srini_string" ) ; } Method loc0 = extractMethod ( arg0 ) ; return evaluateResult ( loc0 . invoke ( this , getArguments ( arg0 ) ) ) ; }
Generate a Java code for the following instruction: sets how often eviction process should be run for the cached type . concode_field_sep long evictionWakeUpInterval concode_elem_sep String cacheName concode_elem_sep Set<String> overridden concode_elem_sep int evictionMaxEntries concode_elem_sep EvictionStrategy evicti...
void function ( long arg0 ) { markAsOverriden ( "srini_string" ) ; this . evictionWakeUpInterval = arg0 ; }
Generate a Java code for the following instruction: factory method to create a typed bag . if there are any elements already in the bag being decorated , they are validated . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
Bag function ( Bag arg0 , Class arg1 ) { return new PredicatedBag ( arg0 , InstanceofPredicate . getInstance ( arg1 ) ) ; }
Generate a Java code for the following instruction: indicates whether the document is a copy , a duplicate , or a duplicate of a copy . codu message is being sent as a copy to a party other than the account owner , for information purposes and the message is a duplicate of a message previously sent . copy message is be...
CopyDuplicate1Code function ( ) { return stmt . getCpyDplctInd ( ) ; }
Generate a Java code for the following instruction: requires arg ! = null concode_field_sep int numer concode_elem_sep int denom concode_elem_sep double approx concode_field_sep boolean isNegative concode_elem_sep RatNum sub concode_elem_sep RatNum mul concode_elem_sep String debugPrint concode_elem_sep boolean isPosit...
RatNum function ( RatNum arg0 ) { checkRep ( ) ; return new RatNum ( this . numer * arg0 . denom + arg0 . numer * this . denom , this . denom * arg0 . denom ) ; }
Generate a Java code for the following instruction: gets the value from the map entry . concode_field_sep Object value concode_elem_sep Object key concode_field_sep Object getKey concode_elem_sep int hashCode concode_elem_sep Object setValue concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_...
Object function ( ) { return value ; }
Generate a Java code for the following instruction: the exception generated at the server , or null if no such exception has occured concode_field_sep Map<String,ByteBuffer> requestCallMeta concode_elem_sep Map<String,ByteBuffer> responseCallMeta concode_elem_sep Object response concode_elem_sep List<ByteBuffer> reques...
Exception function ( ) { return error ; }
Generate a Java code for the following instruction: returns a type object for the class 's superclass . concode_field_sep boolean dirty concode_elem_sep ClassInfo classInfo concode_elem_sep Type[] interfaces concode_elem_sep Type superclass concode_elem_sep EditorContext context concode_elem_sep ConstantPool constants ...
Type function ( ) { return superclass ; }
Generate a Java code for the following instruction: equivalent of #texcoordlists list , material , texcoordfunction for a collection of triangle objects . concode_field_sep PlaceHolder placeHolder concode_field_sep List<List<VectorXZ>> texCoordLists
List < List < VectorXZ >> function ( Collection < TriangleXYZ > arg0 , Material arg1 , TexCoordFunction arg2 ) { List < VectorXYZ > loc0 = new ArrayList < VectorXYZ > ( arg0 . size ( ) * 3 ) ; for ( TriangleXYZ loc1 : arg0 ) { loc0 . add ( loc1 . v1 ) ; loc0 . add ( loc1 . v2 ) ; loc0 . add ( loc1 . v3 ) ; } return tex...
Generate a Java code for the following instruction: compresses the hashtable to the minimum prime size as defined by primefinder that will hold all of the elements currently in the table . if you have done a lot of remove operations and plan to do a lot of queries or insertions or iteration , it is a good idea to invok...
void function ( ) { rehash ( PrimeFinder . nextPrime ( ( int ) Math . ceil ( size ( ) / _loadFactor ) + 1 ) ) ; computeMaxSize ( capacity ( ) ) ; if ( _autoCompactionFactor != 0 ) { computeNextAutoCompactionAmount ( size ( ) ) ; } }
Generate a Java code for the following instruction: get the list of children of the calling object pass a null parent to construct the root concode_field_sep WPTreeNode parent concode_elem_sep List<WPTreeNode> children concode_elem_sep WPTreeNode root concode_elem_sep NearbyWords nw concode_elem_sep String word concode...
List < WPTreeNode > function ( ) { return this . children ; }
Generate a Java code for the following instruction: subclasses may override . concode_field_sep String reason concode_field_sep String getReason concode_elem_sep INativeConditionFactory getConditionFactory concode_elem_sep void invalid concode_elem_sep InvalidOSDelegate forReason concode_elem_sep String toString
IWindowService function ( ) { invalid ( ) ; return null ; }
Generate a Java code for the following instruction: setter for the offset . the offset is relative to the current y position . if you want to underline something , you have to choose a negative offset . concode_field_sep float offset concode_elem_sep DrawInterface drawInterface concode_field_sep void setDrawInterface c...
void function ( final float arg0 ) { this . offset = arg0 ; }
Generate a Java code for the following instruction: list , 2 elements . a and b are objects . l is the list a , b . concode_field_sep LIST<?> SIL concode_elem_sep Iterator<C> iter concode_elem_sep LinkedList<C> list concode_field_sep void SFIRST concode_elem_sep LIST<C> LIST1 concode_elem_sep LIST<C> RED3 concode_elem_...
LIST < C > function ( C arg0 , C arg1 ) { LIST < C > loc0 = new LIST < C > ( ) ; loc0 . list . addFirst ( arg1 ) ; loc0 . list . addFirst ( arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: get the string representation as ringfactory . concode_field_sep RingFactory<C> ring concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep Quotient<C> random concode_elem_sep Quotient<C> random concode_elem_sep int hashCode concode_elem_sep b...
String function ( ) { return "srini_string" + ring . toString ( ) + "srini_string" ; }
Generate a Java code for the following instruction: intended for aerrorbarpolicyconfigurable only . concode_field_sep int m_negativeYErrorPixel concode_elem_sep int m_negativeXErrorPixel concode_elem_sep int m_positiveYErrorPixel concode_elem_sep int m_positiveXErrorPixel concode_elem_sep ITrace2D m_trace concode_elem_...
void function ( final int arg0 ) { this . m_negativeYErrorPixel = arg0 ; }
Generate a Java code for the following instruction: clock . returns the current cpu clock reading in milliseconds . intervalls are system dependent . concode_field_sep LIST<?> SIL concode_elem_sep Iterator<C> iter concode_elem_sep LinkedList<C> list concode_field_sep void SFIRST concode_elem_sep LIST<C> LIST1 concode_e...
long function ( ) { return java . lang . System . currentTimeMillis ( ) ; }
Generate a Java code for the following instruction: returns entity content as a file if set using #setfile java.io.file method . concode_field_sep File file concode_elem_sep boolean gzipCompress concode_elem_sep InputStream stream concode_elem_sep byte[] binary concode_elem_sep String contentEncoding concode_elem_sep b...
File function ( ) { return file ; }
Generate a Java code for the following instruction: pushes a value onto the top of this stack . concode_field_sep ArrayFloatList list concode_field_sep float pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep float get concode_elem_sep void clear concode_elem_sep boolean empty concode_elem_sep f...
float function ( float arg0 ) { list . add ( arg0 ) ; return arg0 ; }
Generate a Java code for the following instruction: tests that the given double is not invalid for calculation . it must not be one of : double #nan double #negative_infinity double #positive_infinity concode_field_sep MathUtil instance concode_field_sep void assertDouble concode_elem_sep Integer increment concode_elem...
boolean function ( final double arg0 ) { return ! ( Double . isInfinite ( arg0 ) || Double . isNaN ( arg0 ) ) ; }
Generate a Java code for the following instruction: resets the references for streaming . concode_field_sep HessianRemoteResolver resolver concode_elem_sep byte[] _buffer concode_field_sep void readEnd concode_elem_sep HessianRemoteResolver getRemoteResolver concode_elem_sep int addRef concode_elem_sep String getMethod...
void function ( ) { }
Generate a Java code for the following instruction: get the name of this logical type . this name is set as the schema property `` logicaltype '' . concode_field_sep String LOGICAL_TYPE_PROP concode_elem_sep String name concode_elem_sep String[] INCOMPATIBLE_PROPS concode_field_sep Schema addToSchema concode_elem_sep v...
String function ( ) { return name ; }
Generate a Java code for the following instruction: parses a textual representation of a qualified name into a nameparts representation . explicitly looks for the form catalog.schema.name . concode_field_sep Identifier catalogName concode_elem_sep QualifiedNameParser INSTANCE concode_elem_sep Identifier objectName conc...
NameParts function ( String arg0 ) { return parse ( arg0 , null , null ) ; }
Generate a Java code for the following instruction: returns a runnable that will retain the stack trace information about where it originated from . concode_field_sep Field causeField concode_field_sep Executor decorate concode_elem_sep ExecutorService decorate concode_elem_sep ScheduledExecutorService decorate concode...
Runnable function ( final Runnable arg0 ) { return new ContextRunnable ( arg0 ) ; }
Generate a Java code for the following instruction: the vid address is extended . concode_field_sep short[] area concode_elem_sep CanVID vid concode_elem_sep Logger log concode_field_sep boolean betweenY concode_elem_sep void setArea concode_elem_sep boolean betweenX concode_elem_sep boolean betweenXboth concode_elem_s...
void function ( String arg0 ) { this . vid . addToVID ( arg0 ) ; }
Generate a Java code for the following instruction: returns whether the body of this tag will be escaped or not . concode_field_sep Tag parent concode_elem_sep JellyContext context concode_elem_sep boolean hasTrimmed concode_elem_sep Script body concode_elem_sep boolean escapeText concode_elem_sep Boolean shouldTrim co...
boolean function ( ) { return escapeText ; }
Generate a Java code for the following instruction: deprecated . concode_field_sep Map<String,NamedParameterDescriptor> namedDescriptorMap concode_elem_sep OrdinalParameterDescriptor[] ordinalDescriptors concode_elem_sep OrdinalParameterDescriptor[] EMPTY_ORDINALS concode_field_sep int getOrdinalParameterSourceLocation...
Type function ( int arg0 ) { return getOrdinalParameterDescriptor ( arg0 ) . getExpectedType ( ) ; }
Generate a Java code for the following instruction: looks at the top of this stack without removing it . concode_field_sep ArrayCharList list concode_field_sep char pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep char get concode_elem_sep void clear concode_elem_sep char push concode_elem_sep...
char function ( ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . get ( list . size ( ) - 1 ) ; }
Generate a Java code for the following instruction: temporarily exposed since configuration is still around and much code still uses configuration . this allows code to configure the builder and access that to configure configuration object used from hem atm . concode_field_sep Map settings concode_elem_sep LoadedConfi...
Map function ( ) { return settings ; }
Generate a Java code for the following instruction: gets the topmost y-position of the line . concode_field_sep double y1 concode_elem_sep double x1 concode_elem_sep double y2 concode_elem_sep double x2 concode_elem_sep Color color concode_field_sep int getX concode_elem_sep int getHeight concode_elem_sep void grow con...
int function ( ) { return ( int ) Math . round ( Math . min ( y1 , y2 ) ) ; }
Generate a Java code for the following instruction: liefert das signal , mit dem die letzte ' 1 ' codiert wurde . concode_field_sep ZeroBuffer zeroBuffer concode_elem_sep int pointer concode_elem_sep char last concode_elem_sep State state concode_elem_sep boolean[] buffer concode_elem_sep AMI.Medium medium concode_fiel...
char function ( ) { return this . last ; }
Generate a Java code for the following instruction: this method should only be used by unit tests . concode_field_sep Logger LOGGER concode_elem_sep String FLASH_ERROR_MESSAGE concode_elem_sep String VIEW_REDIRECT_PREFIX concode_elem_sep String FLASH_FEEDBACK_MESSAGE concode_elem_sep MessageSource messageSource concode...
void function ( MessageSource arg0 ) { this . messageSource = arg0 ; }
Generate a Java code for the following instruction: called to start the traffic analysis . messages that are sent prior to invoking this method are not taken into account for analysis . calling this method starts a fresh measurement . the number of the participating hosts has to be set before calling this method . conc...
void function ( ) { if ( ! started ) { started = true ; sentMaintenance = new HashMap < Long , Long > ( ) ; sentUser = new HashMap < Long , Long > ( ) ; } }
Generate a Java code for the following instruction: entry point to run this examples as a java application . concode_field_sep Analyzer analyzer concode_elem_sep PrintStream out concode_field_sep void visitCoverage concode_elem_sep void execute
void function ( final String [ ] arg0 ) { new ClassInfo ( System . out ) . execute ( arg0 ) ; }
Generate a Java code for the following instruction: this method is used in #parsetemplate string . it returns all variables returned by #getmemberrelatedvariables and #getobjectrelatedvariables sum of sets . concode_field_sep String OBJECT_SYSTEM_HASHCODE_VARIABLE concode_elem_sep String[] VARIABLES concode_elem_sep St...
String [ ] function ( ) { return ToStringTemplateParser . OBJECT_AND_MEMBER_RELATED_VARIABLES ; }
Generate a Java code for the following instruction: draws the obstacle with declared size . concode_field_sep int obstacleSize concode_elem_sep int RESET_POSITION concode_elem_sep int gameWidth concode_elem_sep int obstacleHeigth concode_elem_sep int gameHeight concode_elem_sep boolean isUp concode_elem_sep int x conco...
void function ( Graphics arg0 , int arg1 ) { this . obstacleSize = arg1 ; if ( isUp ) { arg0 . setColor ( new Color ( 212 , 129 , 78 ) ) ; arg0 . fill3DRect ( x , y , 150 , gameHeight - arg1 - 150 , true ) ; } else { arg0 . setColor ( new Color ( 212 , 129 , 78 ) ) ; arg0 . fill3DRect ( x , y , 150 , arg1 , true ) ; } ...
Generate a Java code for the following instruction: return the length of time elapsed to run the given runnable . concode_field_sep long start concode_field_sep void reset
long function ( Runnable arg0 ) { long loc0 = System . currentTimeMillis ( ) ; arg0 . run ( ) ; return System . currentTimeMillis ( ) - loc0 ; }
Generate a Java code for the following instruction: establish a connection to a remote server concode_field_sep NioClientSocketChannelFactory clientChannelFactory concode_elem_sep HashedWheelTimer clientScheduleService concode_elem_sep Map storm_conf concode_elem_sep Map<String,IConnection> connections concode_field_se...
IConnection function ( String arg0 , String arg1 , int arg2 ) { IConnection loc0 = connections . get ( key ( arg1 , arg2 ) ) ; if ( loc0 != null ) { return loc0 ; } IConnection loc1 = new Client ( storm_conf , clientChannelFactory , clientScheduleService , arg1 , arg2 , this ) ; connections . put ( key ( arg1 , arg2 ) ...
Generate a Java code for the following instruction: obtains the connroutepnames #forced_route forced_route parameter value . #no_route will be mapped to null , to allow unsetting in a hierarchy . concode_field_sep HttpHost NO_HOST concode_elem_sep HttpRoute NO_ROUTE concode_field_sep void setLocalAddress concode_elem_s...
HttpRoute function ( final HttpParams arg0 ) { Args . notNull ( arg0 , "srini_string" ) ; HttpRoute loc0 = ( HttpRoute ) arg0 . getParameter ( FORCED_ROUTE ) ; if ( ( loc0 != null ) && NO_ROUTE . equals ( loc0 ) ) { loc0 = null ; } return loc0 ; }
Generate a Java code for the following instruction: increments the failure counter and returns the new value . concode_field_sep long lastSeen concode_elem_sep int staleCounter concode_elem_sep KademliaOverlayContact<T> contact concode_field_sep int getStaleCounter concode_elem_sep int hashCode concode_elem_sep boolean...
int function ( ) { return ++ this . staleCounter ; }
Generate a Java code for the following instruction: returns the current number of entries in the map . concode_field_sep int _size concode_elem_sep int[] _values concode_elem_sep int _prime concode_elem_sep int NULL concode_elem_sep Object[] _keys concode_elem_sep int[] PRIMES concode_field_sep int hashCode concode_ele...
int function ( ) { return _size ; }
Generate a Java code for the following instruction: signifies that we are done with this classfileloader concode_field_sep File outputDir concode_elem_sep LinkedList cache concode_elem_sep ClassSource _classSource concode_elem_sep String classpath concode_elem_sep Map openZipFiles concode_elem_sep boolean DEBUG concode...
void function ( ) { }
Generate a Java code for the following instruction: gets the cluster 's tasks input file . concode_field_sep ProcessListener processListener concode_elem_sep FXMLController guiController concode_elem_sep String user concode_elem_sep File fileBiBiGridJar concode_elem_sep File fileSingularityScript concode_elem_sep Proce...
File function ( ) { return fileInput ; }
Generate a Java code for the following instruction: is this groebner system equal to other . concode_field_sep Logger logger concode_elem_sep boolean debug concode_elem_sep List<Condition<C>> conds concode_elem_sep List<ColoredSystem<C>> list concode_elem_sep PolynomialList<GenPolynomial<C>> cgb concode_field_sep List<...
boolean function ( Object arg0 ) { GroebnerSystem < C > loc0 = null ; try { loc0 = ( GroebnerSystem < C > ) arg0 ; } catch ( ClassCastException loc1 ) { return false ; } if ( loc0 == null ) { return false ; } boolean loc2 = list . equals ( loc0 . list ) ; return loc2 ; }
Generate a Java code for the following instruction: takes a string of `` key = value '' pairs split by \ n and creates a hash table . concode_field_sep boolean mGeckoInfo concode_elem_sep String mLogFile concode_elem_sep int mGeckoTop concode_elem_sep int mScrollHeight concode_elem_sep Solo mSolo concode_elem_sep int m...
Map < String , String > function ( String arg0 ) { HashMap < String , String > loc0 = new HashMap < String , String > ( ) ; String [ ] loc1 = arg0 . split ( "srini_string" ) ; for ( int loc2 = 0 ; loc2 < loc1 . length ; loc2 ++ ) { String [ ] loc3 = loc1 [ loc2 ] . split ( "srini_string" , 2 ) ; loc0 . put ( loc3 [ 0 ]...
Generate a Java code for the following instruction: entity instance accessor concode_field_sep Object instance concode_elem_sep String entityName concode_elem_sep SessionImplementor session concode_elem_sep EntityPersister persister concode_elem_sep Serializable id concode_field_sep AfterTransactionCompletionProcess ge...
Object function ( ) { return instance ; }
Generate a Java code for the following instruction: get the heap min without extracting the key concode_field_sep Map<T,Integer> nodePosition concode_elem_sep List<Node> allNodes concode_elem_sep int weight concode_elem_sep T key concode_field_sep void add concode_elem_sep void printPositionMap concode_elem_sep void sw...
T function ( ) { return allNodes . get ( 0 ) . key ; }
Generate a Java code for the following instruction: get the state of the current tag concode_field_sep String text concode_elem_sep Charset charset concode_elem_sep StateController controller concode_elem_sep XMLParserMemory memory concode_elem_sep List<XMLParserListener> listeners concode_elem_sep TagState tagState co...
TagState function ( ) { return this . tagState ; }
Generate a Java code for the following instruction: we currently have to ensure , that the names of the resources are updated as well - therefore we have to iterate through all of them and change their name . as soon as all queries are adapted , this is not required anymore and can be removed . we execute this logic in...
void function ( String arg0 ) { for ( ResourceEntity loc0 : getResources ( ) ) { loc0 . updateName ( arg0 ) ; } this . name = arg0 ; }
Generate a Java code for the following instruction: returns the tag position for this element . the method can return null . in this case no tag has been found for this nls element . concode_field_sep Region fTagPosition concode_elem_sep String TAG_POSTFIX concode_elem_sep AccessorClassReference fAccessorClassReference...
Region function ( ) { return fTagPosition ; }
Generate a Java code for the following instruction: create an instance of validationcontext concode_field_sep QName _HistoryHeader_QNAME concode_elem_sep QName _ISDVInfo_QNAME concode_elem_sep QName _KeyValuePairList_QNAME concode_elem_sep QName _LocalizedMessage_QNAME concode_elem_sep QName _BusinessException_QNAME co...
ValidationContext function ( ) { return new ValidationContext ( ) ; }
Generate a Java code for the following instruction: checks if the obstacle that is down intersects with the block . concode_field_sep int obstacleSize concode_elem_sep int RESET_POSITION concode_elem_sep int gameWidth concode_elem_sep int obstacleHeigth concode_elem_sep int gameHeight concode_elem_sep boolean isUp conc...
boolean function ( Block arg0 ) { if ( arg0 . y + Block . HEIGHT > y ) { if ( arg0 . x < x && arg0 . x + Block . WIDTH + 3 > x ) { arg0 . y = y - Block . HEIGHT ; return true ; } else if ( arg0 . x > x && x + 150 > arg0 . x ) { arg0 . y = y - Block . HEIGHT ; return true ; } } return false ; }
Generate a Java code for the following instruction: set token provider . concode_field_sep TokenProvider tokenProvider concode_field_sep TokenProvider getTokenProvider
void function ( TokenProvider arg0 ) { KrbRuntime . arg0 = arg0 ; }
Generate a Java code for the following instruction: when condition checking is performed for a refactoring then the condition check is interpreted as failed if the refactoring status severity return from the condition checking operation is equal or greater than the value returned by this method . concode_field_sep IVal...
int function ( ) { return RefactoringStatus . WARNING ; }
Generate a Java code for the following instruction: returns the current hibernate session . if a session was previously established during the same request the already established instance is returned otherwise a new instance is retriven from the session factory . concode_field_sep SessionFactory sessionFactory concode...
Session function ( ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "srini_string" ) ; } Session loc0 = getSessionFactory ( ) . getCurrentSession ( ) ; if ( ! loc0 . isOpen ( ) ) { loc0 = getSessionFactory ( ) . openSession ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: add description as a child of the receiver . concode_field_sep Annotation[] fAnnotations concode_elem_sep Description EMPTY concode_elem_sep Serializable fUniqueId concode_elem_sep Pattern METHOD_AND_CLASS_NAME_PATTERN concode_elem_sep String fDisplayName concode_elem...
void function ( Description arg0 ) { getChildren ( ) . add ( arg0 ) ; }
Generate a Java code for the following instruction: parse a string concode_field_sep ColorConverter instance concode_elem_sep String usageText concode_field_sep RGB parseRGB concode_elem_sep RGB parseHtml concode_elem_sep int parseNumber concode_elem_sep ColorConverter getInstance concode_elem_sep Object convert
RGB function ( String arg0 ) { if ( arg0 . length ( ) <= 1 ) { throw new IllegalArgumentException ( usageText ) ; } if ( arg0 . charAt ( 0 ) == '#' ) { return parseHtml ( arg0 ) ; } else if ( arg0 . indexOf ( ',' ) != - 1 ) { return parseRGB ( arg0 ) ; } else { throw new IllegalArgumentException ( usageText ) ; } }
Generate a Java code for the following instruction: see setnumericalzero concode_field_sep double numericalZero concode_elem_sep RealMatrixImpl decompMatrix concode_field_sep RealMatrixImpl getDecomposition concode_elem_sep void setNumericalZero concode_elem_sep double[] solve concode_elem_sep double[] solve concode_el...
double function ( ) { return numericalZero ; }
Generate a Java code for the following instruction: moves both pos and lookat by the given vector concode_field_sep VectorXYZ pos concode_elem_sep VectorXYZ lookAt concode_elem_sep VectorXYZ up concode_field_sep void moveMapRight concode_elem_sep void setCamera concode_elem_sep void setCamera concode_elem_sep void move...
void function ( VectorXYZ arg0 ) { pos = pos . add ( arg0 ) ; lookAt = lookAt . add ( arg0 ) ; }
Generate a Java code for the following instruction: get the high value in the range the lookup values . concode_field_sep Label defaultTarget concode_elem_sep int[] values concode_elem_sep Label[] targets concode_field_sep Label defaultTarget concode_elem_sep int lowValue concode_elem_sep boolean hasContiguousValues co...
int function ( ) { return values [ values . length - 1 ] ; }
Generate a Java code for the following instruction: find a widget , using the given matcher to determine whether a given widget in the hierarchy used by this widgetfinder is the desired one . concode_field_sep int dbComparisons concode_elem_sep int searchType concode_elem_sep SWTHierarchy hierarchy concode_elem_sep int...
Widget function ( Matcher arg0 ) { dbComparisons = 0 ; _attempts = 0 ; return findInShellScope ( arg0 ) ; }
Generate a Java code for the following instruction: sets the `` style '' of kademlia , for example s/k/l / h. concode_field_sep Logger log concode_elem_sep String description concode_elem_sep int clusterIDLength concode_elem_sep String style concode_elem_sep boolean started concode_elem_sep String fileDescr concode_ele...
void function ( final String arg0 ) { if ( ! started ) { style = arg0 ; } }
Generate a Java code for the following instruction: dispatches an interpolator for the animation thread . this will launch the animation thread if it is not already active . concode_field_sep Vector newInterpolators concode_elem_sep int sleep concode_elem_sep EventListenerList listenerList concode_elem_sep Vector activ...
void function ( Interpolator arg0 ) { synchronized ( newInterpolators ) { newInterpolators . addElement ( arg0 ) ; if ( ! isActive ( ) ) start ( ) ; } }
Generate a Java code for the following instruction: get the zero element . concode_field_sep UnivPowerSeries<C> ZERO concode_elem_sep String DEFAULT_NAME concode_elem_sep int truncate concode_elem_sep String var concode_elem_sep int DEFAULT_TRUNCATE concode_elem_sep UnivPowerSeries<C> ONE concode_elem_sep RingFactory<C...
UnivPowerSeries < C > function ( ) { return ZERO ; }
Generate a Java code for the following instruction: this method was generated by mybatis generator . this method sets the value of the database column company.dept _ id concode_field_sep Integer compId concode_elem_sep Integer deptId concode_field_sep Integer getCompId concode_elem_sep void setCompId concode_elem_sep I...
void function ( Integer arg0 ) { this . deptId = arg0 ; }
Generate a Java code for the following instruction: adds properties of app , as and node to the map concode_field_sep ResourceEntity owner concode_elem_sep String identifier concode_elem_sep ApplicationResolver resolver concode_elem_sep List<AmwFunctionEntity> functions concode_elem_sep List<AppServerRelationProperties...
void function ( AmwAppServerNodeModel arg0 , ApplicationResolver arg1 ) { if ( arg1 != null ) { arg1 . transform ( templateExceptionHandler , arg0 ) ; } }
Generate a Java code for the following instruction: gets the current key , which is the key returned by the last call to next . concode_field_sep Iterator iterator concode_elem_sep Map.Entry last concode_elem_sep Map map concode_elem_sep boolean canRemove concode_field_sep Object next concode_elem_sep Object getValue c...
Object function ( ) { if ( last == null ) { throw new IllegalStateException ( "srini_string" ) ; } return last . getKey ( ) ; }
Generate a Java code for the following instruction: checks whether this class is configured to be used . concode_field_sep Set<LoadMetric> enabledMetrics concode_field_sep void deploy concode_elem_sep void undeploy
boolean function ( Class arg0 ) { for ( LoadMetric loc0 : enabledMetrics ) { if ( arg0 . isInstance ( loc0 ) ) { return true ; } } return false ; }