input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: serialize tree using preorder dfs concode_field_sep int index concode_field_sep Node deserializeUtil concode_elem_sep String serializeLevelOrder concode_elem_sep void serializeUtil concode_elem_sep void main concode_elem_sep Node deserializeLevelOrder concode_elem_sep...
String function ( Node arg0 ) { StringBuffer loc0 = new StringBuffer ( ) ; serializeUtil ( arg0 , loc0 ) ; return loc0 . toString ( ) ; }
Generate a Java code for the following instruction: copy a file if the source exist . concode_field_sep int BUFSIZE concode_elem_sep Logger LOG concode_elem_sep ThreadLocal cwd_ concode_field_sep void mkLink concode_elem_sep void mkLink concode_elem_sep void fileCopy concode_elem_sep void warn concode_elem_sep String c...
void function ( final String arg0 , final String arg1 ) { fileCopyIfExist ( arg0 , arg1 , false ) ; }
Generate a Java code for the following instruction: check whether servlet which uses runas with different role than in needed for secured ejb invocation can not correctly invoked that ejb method in httpservlet.destroy method during stopping server . concode_field_sep String DEPLOYMENT concode_elem_sep String incorrectR...
void function ( ) { assertTrue ( "srini_string" + "srini_string" , readFirstLineOfFile ( INCORRECT_ROLE_AND_STOP_SERVER ) . contains ( DESTROY_METHOD_NOT_PASS ) ) ; }
Generate a Java code for the following instruction: obtains the tracked route . if a route has been tracked , it is #isconnected connected . if not connected , nothing has been tracked so far . concode_field_sep boolean connected concode_elem_sep HttpHost targetHost concode_elem_sep TunnelType tunnelled concode_elem_se...
HttpRoute function ( ) { return ! this . connected ? null : new HttpRoute ( this . targetHost , this . localAddress , this . proxyChain , this . secure , this . tunnelled , this . layered ) ; }
Generate a Java code for the following instruction: returns always null . concode_field_sep IStatus OK_STATUS concode_elem_sep String fStatusMessage concode_elem_sep int fSeverity concode_field_sep boolean isWarning concode_elem_sep int getSeverity concode_elem_sep String getMessage concode_elem_sep boolean isMultiStat...
Throwable function ( ) { return null ; }
Generate a Java code for the following instruction: gets the field type at the specifed index . concode_field_sep PlaceHolder placeHolder concode_field_sep int[] getValues concode_elem_sep boolean isEqual concode_elem_sep DateTimeField getField concode_elem_sep DateTimeField getField concode_elem_sep int indexOfSupport...
DateTimeFieldType function ( int arg0 ) { return getField ( arg0 , getChronology ( ) ) . getType ( ) ; }
Generate a Java code for the following instruction: returns whether windows send mouse motion events to awt listeners . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenerationBug concode_...
boolean function ( ) { return Platform . isOSX ( ) && Platform . JAVA_VERSION >= Platform . JAVA_1_4 && Platform . JAVA_VERSION <= 0x1425 ; }
Generate a Java code for the following instruction: determines the difference in days between d and this date . for example , if this date is 12/15/1997 and d is 12/14/1997 , the difference is 1 . if this date occurs before d , the result is negative . concode_field_sep int month concode_elem_sep int year concode_elem_...
int function ( Date arg0 ) { int loc0 ; int loc1 = Math . abs ( arg0 . beginOfTime ( ) - this . beginOfTime ( ) ) ; if ( this . isBefore ( arg0 ) ) { loc0 = - 1 ; } else if ( this . isAfter ( arg0 ) ) { loc0 = 1 ; } else { loc0 = 0 ; } return loc0 * loc1 ; }
Generate a Java code for the following instruction: maintains a count of the number of methods call sites resolve to . may give an idea as to how `` dynamic '' a program is . concode_field_sep String configName concode_elem_sep int nLiveMethods concode_elem_sep Map morphicity concode_elem_sep int nNoPreexist concode_el...
void function ( final int arg0 ) { final Integer loc0 = new Integer ( arg0 ) ; final Integer loc1 = ( Integer ) this . morphicity . get ( loc0 ) ; if ( loc1 == null ) { this . morphicity . put ( loc0 , new Integer ( 1 ) ) ; } else { this . morphicity . put ( loc0 , new Integer ( loc1 . intValue ( ) + 1 ) ) ; } }
Generate a Java code for the following instruction: verifies that the endpoints specify an interval , throws illegalargumentexception if not concode_field_sep double functionValueAccuracy concode_elem_sep boolean resultComputed concode_elem_sep double defaultFunctionValueAccuracy concode_elem_sep UnivariateRealFunction...
void function ( double arg0 , double arg1 ) { if ( arg0 >= arg1 ) { throw new IllegalArgumentException ( "srini_string" + arg0 + "srini_string" + arg1 + "srini_string" ) ; } }
Generate a Java code for the following instruction: binds this connection to the given socket . this socket will be used by the connection to send and receive data . after this method 's execution the connection status will be reported as open and the #isopen will return true . concode_field_sep SessionInputBufferImpl ...
void function ( final Socket arg0 ) { Args . notNull ( arg0 , "srini_string" ) ; this . socket = arg0 ; this . open = true ; this . inbuffer . bind ( null ) ; this . outbuffer . bind ( null ) ; }
Generate a Java code for the following instruction: constructor for handshake message concode_field_sep ByteBuffer peerId concode_elem_sep HashMap<String,Object> data concode_elem_sep MessageType type concode_elem_sep ByteBuffer msg concode_field_sep Message Bitfield concode_elem_sep int getBegin concode_elem_sep int g...
Message function ( ByteBuffer arg0 , ByteBuffer arg1 ) { Message loc0 = new Message ( arg0 ) ; loc0 . type = MessageType . Handshake ; loc0 . data . put ( "srini_string" , arg1 ) ; return loc0 ; }
Generate a Java code for the following instruction: sets the type of message that is intended to be transmitted over the connection that this collection is associated with . concode_field_sep Map<String,MessageType> myMsgTypeByMd5Sum concode_elem_sep Map<String,Map<String,MessageType>> myMsgTypesByPackage concode_elem_...
void function ( String arg0 ) { myTopType = arg0 ; }
Generate a Java code for the following instruction: gets the value of the items property . concode_field_sep USAddress billTo concode_elem_sep String comment concode_elem_sep Items items concode_elem_sep XMLGregorianCalendar orderDate concode_elem_sep USAddress shipTo concode_field_sep USAddress getShipTo concode_elem_...
Items function ( ) { return items ; }
Generate a Java code for the following instruction: create an instance of consumedport concode_field_sep QName _PropertyDeclaration_QNAME concode_elem_sep QName _ProvidedPort_QNAME concode_elem_sep QName _ApplicationPayload_QNAME concode_elem_sep QName _Application_QNAME concode_elem_sep QName _ApplicationID_QNAME conc...
ConsumedPort function ( ) { return new ConsumedPort ( ) ; }
Generate a Java code for the following instruction: getter for the right margin . concode_field_sep Rectangle2D.Float textRectangle concode_field_sep void renderImage concode_elem_sep float getHeight concode_elem_sep float getLlx concode_elem_sep float getLly concode_elem_sep float getWidth concode_elem_sep void beginT...
float function ( ) { return textRectangle . x + textRectangle . width ; }
Generate a Java code for the following instruction: decide whether or not online checking is allowed . concode_field_sep CertificateVerifier verifier concode_elem_sep boolean onlineCheckingAllowed concode_field_sep List<VerificationOK> verify
void function ( boolean arg0 ) { this . onlineCheckingAllowed = arg0 ; }
Generate a Java code for the following instruction: creates a new pmml object representing the pmml model defined in the inputstream specified as argument concode_field_sep ModelOutputs outFields concode_elem_sep String blobKey concode_elem_sep File model concode_elem_sep Map<String,Object> config concode_elem_sep Mode...
PMML function ( InputStream arg0 ) { Objects . requireNonNull ( arg0 ) ; return IOUtil . unmarshal ( arg0 ) ; }
Generate a Java code for the following instruction: deposit deposits `` amt '' dollars into this account . concode_field_sep int number concode_elem_sep int balance concode_elem_sep String name concode_field_sep int getNumber concode_elem_sep int getKey concode_elem_sep int getBalance concode_elem_sep boolean lessThan ...
void function ( int arg0 ) { if ( arg0 >= 0 ) { balance = balance + arg0 ; } else { System . out . println ( "srini_string" + arg0 ) ; } }
Generate a Java code for the following instruction: init the client . concode_field_sep String USAGE concode_field_sep String getPassword concode_elem_sep void requestTicket concode_elem_sep KOptions convertOptions concode_elem_sep void main concode_elem_sep void printUsage
KrbClient function ( File arg0 ) { KrbClient loc0 ; if ( arg0 != null ) { loc0 = new KrbClient ( arg0 ) ; } else { loc0 = new KrbClient ( ) ; } loc0 . init ( ) ; return loc0 ; }
Generate a Java code for the following instruction: returns the string representation of this mnemonic . information from the mnemonic string may be retrieved using methodmnemonic #methodmnemonic string , and subsequently the imethod may be retrieved with methodmnemonic #findmethod itype concode_field_sep String fMetho...
String function ( ) { StringBuilder loc0 = new StringBuilder ( ) ; loc0 . append ( getMethodName ( ) ) ; loc0 . append ( MNEMONIC_DELIMITER ) ; loc0 . append ( isConstructor ( ) ) ; loc0 . append ( MNEMONIC_DELIMITER ) ; loc0 . append ( getMethodSignature ( ) ) ; return loc0 . toString ( ) ; }
Generate a Java code for the following instruction: integer comparison . concode_field_sep java.math.BigInteger val concode_elem_sep BigInteger ONE concode_elem_sep BigInteger ZERO concode_elem_sep Random random concode_field_sep BigInteger IRAND concode_elem_sep boolean isField concode_elem_sep boolean isCommutative c...
int function ( BigInteger arg0 , BigInteger arg1 ) { if ( arg0 == null ) return - arg1 . signum ( ) ; return arg0 . compareTo ( arg1 ) ; }
Generate a Java code for the following instruction: size of current list . concode_field_sep List<java.math.BigInteger> val concode_elem_sep java.math.BigInteger last concode_field_sep void addMedium concode_elem_sep java.math.BigInteger getLongPrime concode_elem_sep Iterator<java.math.BigInteger> iterator concode_elem...
int function ( ) { return val . size ( ) ; }
Generate a Java code for the following instruction: quotient random . concode_field_sep RingFactory<C> ring concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep int hashCode concode_elem_sep boolean isField concode_elem_sep boolean equals concode_elem_sep Quotient<C> getONE concode_elem_sep b...
Quotient < C > function ( int arg0 , Random arg1 ) { C loc0 = ring . random ( arg0 , arg1 ) ; C loc1 = ring . random ( arg0 , arg1 ) ; while ( loc1 . isZERO ( ) ) { loc1 = ring . random ( arg0 , arg1 ) ; } return new Quotient < C > ( this , loc0 , loc1 , false ) ; }
Generate a Java code for the following instruction: for the given sqlexception , locates the x/open-compliant sqlstate . concode_field_sep PlaceHolder placeHolder concode_field_sep int extractErrorCode concode_elem_sep String extractSqlStateClassCode concode_elem_sep String determineSqlStateClassCode
String function ( SQLException arg0 ) { String loc0 = arg0 . getSQLState ( ) ; SQLException loc1 = arg0 . getNextException ( ) ; while ( loc0 == null && loc1 != null ) { loc0 = loc1 . getSQLState ( ) ; loc1 = loc1 . getNextException ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: allows for the setting of the border 's color independently of the content 's color . concode_field_sep boolean border concode_elem_sep Position position concode_elem_sep ConsoleSystemInterface si concode_elem_sep int width concode_elem_sep String spaces concode_elem_...
void function ( CSIColor arg0 ) { borderColor = arg0 ; }
Generate a Java code for the following instruction: a helper to make creating a springconfig easier with values mapping to the origami values . concode_field_sep double tension concode_elem_sep double friction concode_elem_sep SpringConfig defaultConfig concode_field_sep placeholderType placeHolder
SpringConfig function ( double arg0 , double arg1 ) { return new SpringConfig ( OrigamiValueConverter . tensionFromOrigamiValue ( arg0 ) , OrigamiValueConverter . frictionFromOrigamiValue ( arg1 ) ) ; }
Generate a Java code for the following instruction: specifies that matching pairs of this character delimit string constants . concode_field_sep Reader reader concode_elem_sep Error err concode_elem_sep StreamTokenizer stok concode_field_sep void set_error_handler concode_elem_sep boolean isQString concode_elem_sep voi...
void function ( int arg0 ) { stok . quoteChar ( arg0 ) ; }
Generate a Java code for the following instruction: parse an reader 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 concode_elem_sep Pa...
void function ( final Reader arg0 ) { parseWithReader ( arg0 ) ; }
Generate a Java code for the following instruction: gets the leftmost x-position of the bounding box . concode_field_sep JLabel label concode_elem_sep double xGrow concode_elem_sep double yGrow concode_elem_sep double x concode_elem_sep double y concode_elem_sep Color color concode_field_sep int getHeight concode_elem_...
int function ( ) { return ( int ) Math . round ( x - xGrow ) ; }
Generate a Java code for the following instruction: return columns for the schema . concode_field_sep Schema schema concode_elem_sep Map<Schema,Schema> seen concode_elem_sep List<ColumnMetaData> columns concode_elem_sep List<Integer> arrayWidths concode_field_sep String p concode_elem_sep String p concode_elem_sep Colu...
ColumnMetaData [ ] function ( ) { return columns . toArray ( new ColumnMetaData [ columns . size ( ) ] ) ; }
Generate a Java code for the following instruction: the current state of this machine concode_field_sep Map<String,JsonBall> metadata concode_elem_sep Date created concode_elem_sep Type type concode_elem_sep Set<String> ips concode_elem_sep ImmutableSet.Builder<String> ips concode_elem_sep ImmutableMap.Builder<String,J...
State function ( ) { return state ; }
Generate a Java code for the following instruction: the amount of hits for this query concode_field_sep long executionMaxTime concode_elem_sep String[] ITEM_DESCRIPTIONS concode_elem_sep long cacheHitCount concode_elem_sep String query concode_elem_sep String TABULAR_TYPE_NAME concode_elem_sep long cachePutCount concod...
long function ( ) { return cacheHitCount ; }
Generate a Java code for the following instruction: tests construction of the client chain . the created certificates can be displayed with a command like : openssl pkcs12 - nodes - info - in / tmp/test . p12 > / tmp/test . cert & & openssl x509 - noout - text - in / tmp/test . cert concode_field_sep PlaceHolder placeH...
void function ( ) { X509Certificate [ ] loc0 = CertificateChainFactory . getClientChain ( ) ; validateChain ( loc0 ) ; }
Generate a Java code for the following instruction: parse key-value pairs to map , ignore empty key concode_field_sep String DEFAULT_KEY_AND_VALUE_PAIR_SEPARATOR concode_elem_sep String DEFAULT_KEY_AND_VALUE_SEPARATOR concode_field_sep K getKeyByValue concode_elem_sep boolean putMapNotNullKeyAndValue concode_elem_sep S...
Map < String , String > function ( String arg0 , boolean arg1 ) { return parseKeyAndValueToMap ( arg0 , DEFAULT_KEY_AND_VALUE_SEPARATOR , DEFAULT_KEY_AND_VALUE_PAIR_SEPARATOR , arg1 ) ; }
Generate a Java code for the following instruction: appends a column separator to the output file . 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_elem_sep Stri...
void function ( ) { if ( out != null ) { out . print ( ' ' ) ; } }
Generate a Java code for the following instruction: fires a label provider changed event to all registered listeners only listeners registered at the time this method is called are notified . concode_field_sep ArrayList<ILabelDecorator> fLabelDecorators concode_elem_sep JavaElementImageProvider fImageLabelProvider conc...
void function ( final LabelProviderChangedEvent arg0 ) { for ( final ILabelProviderListener loc0 : fListeners ) { SafeRunner . run ( new SafeRunnable ( ) { @ Override public void run ( ) { loc0 . labelProviderChanged ( arg0 ) ; } } ) ; } }
Generate a Java code for the following instruction: set parser state to specialcharstate . concode_field_sep State closeStarComment concode_elem_sep State selfClosing concode_elem_sep State tagAttributes concode_elem_sep State unquoted concode_elem_sep State unknown concode_elem_sep State inTag concode_elem_sep State c...
XMLParser function ( ) { return setState ( this . specialChar ) ; }
Generate a Java code for the following instruction: pops a non-wide expression off the stack . concode_field_sep ArrayList stack concode_elem_sep int height concode_field_sep Expr pop concode_elem_sep void set concode_elem_sep int size concode_elem_sep Expr[] pop2 concode_elem_sep Expr get concode_elem_sep boolean isEm...
Expr function ( ) { final Expr loc0 = ( Expr ) stack . remove ( stack . size ( ) - 1 ) ; final Type loc1 = loc0 . loc1 ( ) ; if ( loc1 . isWide ( ) ) { throw new IllegalArgumentException ( "srini_string" + "srini_string" ) ; } height -- ; return loc0 ; }
Generate a Java code for the following instruction: notify the testmonitor that a new test is starting . passing null signals that a test has ended or that none is running . concode_field_sep ITestIdentifier _runningTest concode_elem_sep TestMonitor _monitor concode_field_sep void endTestCase concode_elem_sep String ge...
void function ( ITestIdentifier arg0 ) { if ( arg0 == null ) endTestCase ( ) ; else { logTestStart ( arg0 ) ; setRunningTest ( arg0 ) ; } }
Generate a Java code for the following instruction: extract a portion of the bytes from the given stream. , wrapping them in a new stream . concode_field_sep int BUFFER_SIZE concode_elem_sep CoreMessageLogger LOG concode_field_sep int getSuggestedBufferSize concode_elem_sep long determineLengthForBufferSizing concode_e...
InputStream function ( InputStream arg0 , long arg1 , int arg2 ) { return new BinaryStreamImpl ( extractBytes ( arg0 , arg1 , arg2 ) ) ; }
Generate a Java code for the following instruction: just calls getnext.override this to get notified on encountered content . concode_field_sep Pipeline<?> next concode_field_sep Pipeline<?> init concode_elem_sep String getContextKey concode_elem_sep void setNext concode_elem_sep Pipeline<?> getNext concode_elem_sep T ...
Pipeline < ? > function ( final WorkerContext arg0 , final Tag arg1 , final String arg2 , final ProcessObject arg3 ) { return getNext ( ) ; }
Generate a Java code for the following instruction: colorpolynomial summation . concode_field_sep GenPolynomial<GenPolynomial<C>> red concode_elem_sep GenPolynomial<GenPolynomial<C>> green concode_elem_sep GenPolynomial<GenPolynomial<C>> white concode_field_sep List<GenPolynomial<C>> getRedCoefficients concode_elem_sep...
ColorPolynomial < C > function ( GenPolynomial < C > arg0 , ExpVector arg1 ) { GenPolynomial < GenPolynomial < C >> loc0 , loc1 , loc2 ; loc0 = green ; loc1 = red ; loc2 = white ; if ( green . getMap ( ) . keySet ( ) . contains ( arg1 ) ) { loc0 = green . sum ( arg0 , arg1 ) ; } else if ( red . getMap ( ) . keySet ( ) ...
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: shows other information than a stack trace . concode_field_sep Clipboard fClipboard concode_elem_sep Table fTable concode_elem_sep IPropertyChangeListener fFontPropertyChangeListener concode_elem_sep FailureTableDisplay fFailureTableDisplay concode_elem_sep String FAI...
void function ( String arg0 ) { clear ( ) ; TableItem loc0 = fFailureTableDisplay . newTableItem ( ) ; loc0 . setText ( arg0 ) ; }
Generate a Java code for the following instruction: read a correct answer from a file . concode_field_sep String feedback concode_elem_sep int correct concode_elem_sep int TESTS concode_field_sep String printOutput concode_elem_sep void runSpecialTest concode_elem_sep String appendFeedback concode_elem_sep void main co...
List < Integer > function ( String arg0 ) { List < Integer > loc0 = new ArrayList < Integer > ( ) ; try { Scanner loc1 = new Scanner ( new File ( arg0 ) ) ; while ( loc1 . hasNextInt ( ) ) { loc0 . add ( loc1 . nextInt ( ) ) ; } } catch ( Exception loc1 ) { feedback += "srini_string" ; } return loc0 ; }
Generate a Java code for the following instruction: called when an event is done busying up the ui thread . concode_field_sep int eventDepth concode_elem_sep GraphModel graphModel concode_elem_sep Timer warmDownTimer concode_elem_sep int TICK_TIME concode_elem_sep double blockedTimeInWindow concode_elem_sep double[] we...
void function ( double arg0 ) { assert ( currentWindowStart >= 0 ) ; slideWindowTo ( arg0 ) ; blockedTimeInWindow = arg0 - currentMarker ; currentMarker = arg0 ; eventDepth -- ; warmDownTimer . schedule ( TICK_TIME ) ; }
Generate a Java code for the following instruction: compares two non-null boolean objects according to the value of #sortstruefirst . concode_field_sep BooleanComparator TRUE_FIRST concode_elem_sep long serialVersionUID concode_elem_sep BooleanComparator FALSE_FIRST concode_elem_sep boolean trueFirst concode_field_sep ...
int function ( Boolean arg0 , Boolean arg1 ) { boolean loc0 = arg0 . booleanValue ( ) ; boolean loc1 = arg1 . booleanValue ( ) ; return ( loc0 ^ loc1 ) ? ( ( loc0 ^ trueFirst ) ? 1 : - 1 ) : 0 ; }
Generate a Java code for the following instruction: returns a label for a resource name . concode_field_sep PlaceHolder placeHolder concode_field_sep String getURLPart concode_elem_sep String getFilePattern concode_elem_sep String markLTR concode_elem_sep String getVersionName concode_elem_sep String getPathLabel
String function ( IResource arg0 ) { return markLTR ( arg0 . getName ( ) , "srini_string" ) ; }
Generate a Java code for the following instruction: gets the value of the tags property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the tags prop...
List < String > function ( ) { if ( tags == null ) { tags = new ArrayList < String > ( ) ; } return this . tags ; }
Generate a Java code for the following instruction: removes the entry at position index in the list . concode_field_sep Set<Serializable> querySpaces concode_elem_sep boolean sorted concode_elem_sep Sorter<E> sorter concode_elem_sep ArrayList<E> executables concode_elem_sep int INIT_QUEUE_LIST_SIZE concode_field_sep bo...
E function ( int arg0 ) { final E loc0 = executables . remove ( arg0 ) ; if ( loc0 . getPropertySpaces ( ) != null && loc0 . getPropertySpaces ( ) . length > 0 ) { querySpaces = null ; } return loc0 ; }
Generate a Java code for the following instruction: hash code for this biginteger . concode_field_sep java.math.BigInteger val concode_elem_sep BigInteger ONE concode_elem_sep BigInteger ZERO concode_elem_sep Random random concode_field_sep BigInteger IRAND concode_elem_sep boolean isField concode_elem_sep boolean isCo...
int function ( ) { return val . hashCode ( ) ; }
Generate a Java code for the following instruction: log a message to the log4j logger with trace priority . currently logs to debug level in log4j . concode_field_sep String name concode_elem_sep boolean is12 concode_elem_sep Logger logger concode_elem_sep String FQCN concode_field_sep void warn concode_elem_sep void w...
void function ( Object arg0 ) { if ( is12 ) { getLogger ( ) . log ( FQCN , ( Priority ) Level . DEBUG , arg0 , null ) ; } else { getLogger ( ) . log ( FQCN , Level . DEBUG , arg0 , null ) ; } }
Generate a Java code for the following instruction: evaluate complex polynomial . note coefficients are always c 1 to c n , c 0 is always 0,0 . concode_field_sep double DTR concode_elem_sep double P10 concode_elem_sep int N_ITER concode_elem_sep double C22 concode_elem_sep double C48 concode_elem_sep double TWOPI conco...
Complex function ( Complex arg0 , Complex [ ] arg1 ) { Complex loc0 = new Complex ( arg1 [ arg1 . length - 1 ] ) ; double loc1 ; int loc2 = arg1 . length - 1 ; while ( loc2 -- > 0 ) { Complex loc3 = arg1 [ loc2 ] ; loc0 . r = loc3 . r + arg0 . r * ( loc1 = loc0 . r ) - arg0 . i * loc0 . i ; loc0 . i = loc3 . i + arg0 ....
Generate a Java code for the following instruction: returns the successor or children nodes of this graphnode . concode_field_sep int preIndex concode_elem_sep int postIndex concode_elem_sep HashSet succs concode_elem_sep HashSet preds concode_field_sep int preOrderIndex concode_elem_sep int postOrderIndex concode_elem...
Collection function ( ) { return succs ; }
Generate a Java code for the following instruction: verifies the default page size a4 . concode_field_sep HtmlPipelineContext ctx concode_field_sep void verifydefaultAcceptUnknown concode_elem_sep void verifydefaultRoottags concode_elem_sep void setup concode_elem_sep void verifydefaultBookmarksEnabled concode_elem_sep...
void function ( ) { Assert . assertEquals ( PageSize . A4 , ctx . getPageSize ( ) ) ; }
Generate a Java code for the following instruction: return true iff this quadrant is adjacent to the boundary of an image in the given direction . concode_field_sep PlaceHolder placeHolder concode_field_sep Quadrant reflect concode_elem_sep QuadTreeNode child
boolean function ( int arg0 ) { return ( arg0 == QuadTreeNode . SOUTH || arg0 == QuadTreeNode . WEST ) ; }
Generate a Java code for the following instruction: the measurement has been started . 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_elem_sep String seed conco...
void function ( ) { }
Generate a Java code for the following instruction: copies the contents of the stack into a native array . note that this will not pop them out of the stack . concode_field_sep TLongArrayList _list concode_elem_sep int DEFAULT_CAPACITY concode_field_sep long pop concode_elem_sep int size concode_elem_sep void clear con...
long [ ] function ( ) { return _list . toNativeArray ( ) ; }
Generate a Java code for the following instruction: get a cssresolver implementation . concode_field_sep XMLWorkerHelper myself concode_elem_sep TagProcessorFactory tpf concode_elem_sep CssFile defaultCssFile concode_field_sep ElementList parseToElementList concode_elem_sep TagProcessorFactory getDefaultTagProcessorFac...
CSSResolver function ( final boolean arg0 ) { CSSResolver loc0 = new StyleAttrCSSResolver ( ) ; if ( arg0 ) { loc0 . addCss ( getDefaultCSS ( ) ) ; } return loc0 ; }
Generate a Java code for the following instruction: returns the time of the message , when it was sent , received or dropped . concode_field_sep long size concode_elem_sep Class msgClass concode_elem_sep long timestamp concode_field_sep Class getMsgClass concode_elem_sep long getSize
long function ( ) { return timestamp ; }
Generate a Java code for the following instruction: item returns this node 's item . if this node is invalid , throws an exception . concode_field_sep Object item concode_elem_sep List myList concode_field_sep ListNode next concode_elem_sep ListNode prev concode_elem_sep boolean isValidNode concode_elem_sep void setIte...
Object function ( ) { if ( ! isValidNode ( ) ) { throw new InvalidNodeException ( ) ; } return item ; }
Generate a Java code for the following instruction: determines whether a notification should hold a foreground service to keep gecko alive concode_field_sep Notification mForegroundNotification concode_elem_sep ConcurrentHashMap<Integer,Notification> mNotifications concode_elem_sep NotificationManagerCompat mNotificati...
boolean function ( int arg0 ) { final Notification loc0 = mNotifications . get ( arg0 ) ; return isOngoing ( loc0 ) ; }
Generate a Java code for the following instruction: returns true if this registry maps one or more keys to the specified value . concode_field_sep Map _values concode_elem_sep Map _register concode_field_sep WidgetLocator add concode_elem_sep String getKey concode_elem_sep Set getEntries concode_elem_sep boolean contai...
boolean function ( IWidgetIdentifier arg0 ) { return _register . containsValue ( arg0 ) ; }
Generate a Java code for the following instruction: process : null arguemnts concode_field_sep Annotations annotations concode_field_sep void testProcessConnectionDefinition concode_elem_sep void testProcessActivation concode_elem_sep void testProcessConnectorFail concode_elem_sep void tearDown concode_elem_sep void te...
void function ( ) { annotations . process ( null , null , null ) ; }
Generate a Java code for the following instruction: residue negate . concode_field_sep C val concode_elem_sep ResidueRing<C> ring concode_elem_sep boolean debug concode_elem_sep int isunit concode_elem_sep Logger logger concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Residue<C> inverse conc...
Residue < C > function ( ) { return new Residue < C > ( ring , val . negate ( ) ) ; }
Generate a Java code for the following instruction: extended groebner base using critical pair class . concode_field_sep Reduction<C> red concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep boolean isGB concode_elem_sep boolean isGB concode_elem_sep List<GenPolynomial<C>> minimalGB concode_e...
ExtendedGB < C > function ( int arg0 , List < GenPolynomial < C >> arg1 ) { throw new RuntimeException ( "srini_string" + this . getClass ( ) . getSimpleName ( ) ) ; }
Generate a Java code for the following instruction: the setup of testcase is : send message + - > ejb3 mdb @runas - > ejb3 slsb - > ejb2 slsb & & ejb2 slsb concode_field_sep InitialContext initialContext concode_elem_sep String PRINCIPAL concode_field_sep Archive<?> runAsEJB2 concode_elem_sep Archive<?> runAsEJB3 conco...
void function ( ) { ConnectionFactory loc0 = ( ConnectionFactory ) initialContext . lookup ( "srini_string" ) ; String loc1 = HelloBean . sendMessage ( loc0 ) ; Assert . assertEquals ( String . format ( "srini_string" , HowdyBean . SAYING , PRINCIPAL , HolaBean . SAYING , PRINCIPAL , GoodByeBean . SAYING ) , loc1 ) ; }
Generate a Java code for the following instruction: add an additional skip hour name . concode_field_sep String managingEditor concode_elem_sep String title concode_elem_sep String language concode_elem_sep String link concode_elem_sep ArrayList skipDays concode_elem_sep TextInput textInput concode_elem_sep String rati...
void function ( String arg0 ) { synchronized ( skipHours ) { skipHours . add ( arg0 ) ; } }
Generate a Java code for the following instruction: checks if the pdf has to be in conformance with pdf/x -3:2002 concode_field_sep PdfWriter writer concode_elem_sep int pdfxConformance concode_field_sep boolean isPdfIso concode_elem_sep void checkPdfIsoConformance concode_elem_sep int getPDFXConformance concode_elem_s...
boolean function ( ) { return pdfxConformance == PdfWriter . PDFX32002 ; }
Generate a Java code for the following instruction: set the parent widgetlocator . concode_field_sep long serialVersionUID concode_elem_sep HashMap _map concode_elem_sep int UNASSIGNED concode_elem_sep int _index concode_elem_sep WidgetLocator _parentInfo concode_elem_sep Class _cls concode_elem_sep String _nameOrLabel...
void function ( WidgetLocator arg0 ) { _parentInfo = arg0 ; }
Generate a Java code for the following instruction: this method attempts to find two values a and b satisfying lowerbound f a f b if f is continuous on a , b , this means that a and b bracket a root of f . the algorithm starts by setting a : = initial -1 ; b : = initial +1 , examines the value of the function at a and ...
double [ ] function ( UnivariateRealFunction arg0 , double arg1 , double arg2 , double arg3 ) { return bracket ( arg0 , arg1 , arg2 , arg3 , Integer . MAX_VALUE ) ; }
Generate a Java code for the following instruction: returns true if o is a routingtableentry and has the same kademliaoverlaycontact as this . specifics of this routing table entry such as stale counter are ignored . concode_field_sep long lastSeen concode_elem_sep int staleCounter concode_elem_sep KademliaOverlayConta...
boolean function ( Object arg0 ) { if ( arg0 instanceof RoutingTableEntry ) { return this . contact . getOverlayID ( ) . equals ( ( ( RoutingTableEntry < ? > ) arg0 ) . getContact ( ) . getOverlayID ( ) ) ; } return false ; }
Generate a Java code for the following instruction: get the minimal key from this map with respect to the preset comparator for which valuepredicate holds for its associated value . concode_field_sep SortedMap<K,V> kSmallest concode_elem_sep int k concode_field_sep boolean containsKey concode_elem_sep Collection<V> val...
K function ( final Predicate < V > arg0 ) { for ( final Map . Entry < K , V > loc0 : kSmallest . entrySet ( ) ) { if ( arg0 . isTrue ( loc0 . getValue ( ) ) ) { return loc0 . getKey ( ) ; } } return null ; }
Generate a Java code for the following instruction: delete customer schema for fresh setup per test . concode_field_sep String DB_URL concode_elem_sep DbCustomerDao dao concode_elem_sep Customer existingCustomer concode_elem_sep String EXCEPTION_CAUSE concode_elem_sep ExpectedException exception concode_field_sep void ...
void function ( ) { try ( Connection loc0 = DriverManager . getConnection ( DB_URL ) ; Statement loc1 = loc0 . createStatement ( ) ) { loc1 . execute ( CustomerSchemaSql . DELETE_SCHEMA_SQL ) ; } }
Generate a Java code for the following instruction: is this contact offline ? concode_field_sep boolean isOffline concode_elem_sep long lastAction concode_elem_sep TransInfo transInfo concode_elem_sep long ttl concode_field_sep void updateLastAction concode_elem_sep void markAsOffline concode_elem_sep boolean equals co...
boolean function ( ) { return isOffline || Simulator . getCurrentTime ( ) > ttl + lastAction ; }
Generate a Java code for the following instruction: listsum computes the sum of terms in a list . concode_field_sep PlaceHolder placeHolder concode_field_sep ListNode createGeomSeries concode_elem_sep void main
double function ( ListNode arg0 ) { if ( arg0 == null ) { return 0.0 ; } return ( ( Double ) arg0 . item ) . doubleValue ( ) + listSum ( arg0 . next ) ; }
Generate a Java code for the following instruction: log the specified exception . concode_field_sep ILog sysOutLog concode_elem_sep PrintWriter sysOut concode_elem_sep ILog log concode_elem_sep String PRODUCT_ID concode_field_sep void setLog concode_elem_sep void printLogObject concode_elem_sep void removeLogListener c...
void function ( Throwable arg0 ) { log ( "srini_string" , arg0 ) ; }
Generate a Java code for the following instruction: log a message and exception with trace 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 c...
void function ( Object arg0 , Throwable arg1 ) { log ( Level . FINEST , String . valueOf ( arg0 ) , arg1 ) ; }
Generate a Java code for the following instruction: sets the new productid . concode_field_sep long signature1 concode_elem_sep int productID concode_elem_sep String manufacturer concode_elem_sep int vendorID concode_elem_sep long version concode_elem_sep long signature2 concode_elem_sep String productDescription conco...
void function ( int arg0 ) { this . productID = arg0 ; }
Generate a Java code for the following instruction: add a file to the collection . concode_field_sep ArrayList<String> files concode_elem_sep MusicPlayer player concode_field_sep void listAllFilles concode_elem_sep void listFile concode_elem_sep void removeFile concode_elem_sep int getNumberOfFiles concode_elem_sep voi...
void function ( String arg0 ) { files . add ( arg0 ) ; }
Generate a Java code for the following instruction: find the timestamp associated with the given metrics , and remove all metrics objects from the start of the queue up to and including the one provided . note that because of draw coalescing , the metrics object passed in here may not be the one at the head of the queu...
long function ( DisplayPortMetrics arg0 ) { int loc0 = mTail ; int loc1 = ( mHead + 1 ) % BUFFER_SIZE ; while ( loc1 != loc0 ) { if ( mMetrics [ loc1 ] . fuzzyEquals ( arg0 ) ) { long loc2 = mTimestamps [ loc1 ] ; mHead = loc1 ; return loc2 ; } loc1 = ( loc1 + 1 ) % BUFFER_SIZE ; } return - 1 ; }
Generate a Java code for the following instruction: gets an object containing the image dictionary and bytes . concode_field_sep PdfIndirectReference ref concode_elem_sep InlineImageInfo inlineImageInfo concode_elem_sep PdfImageObject imageObject concode_elem_sep PdfDictionary colorSpaceDictionary concode_elem_sep Grap...
PdfImageObject function ( ) { prepareImageObject ( ) ; return imageObject ; }
Generate a Java code for the following instruction: isvalidnode returns true if this node is valid ; false otherwise . concode_field_sep boolean valid concode_elem_sep Object item concode_field_sep TreeNode parent concode_elem_sep Object item concode_elem_sep int children concode_elem_sep void removeLeaf concode_elem_s...
boolean function ( ) { return valid ; }
Generate a Java code for the following instruction: compares this protocol version with another one . only protocol versions with the same protocol name can be compared . this method does not define a total ordering , as it would be required for java.lang.comparable . concode_field_sep String protocol concode_elem_sep ...
int function ( final ProtocolVersion arg0 ) { Args . notNull ( arg0 , "srini_string" ) ; Args . check ( this . protocol . equals ( arg0 . protocol ) , "srini_string" , this , arg0 ) ; int loc0 = getMajor ( ) - arg0 . getMajor ( ) ; if ( loc0 == 0 ) { loc0 = getMinor ( ) - arg0 . getMinor ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: saves the current content into the given output stream . concode_field_sep SessionInfoStore sessionInfos concode_elem_sep ExecutionDataStore executionData concode_field_sep void load concode_elem_sep void load concode_elem_sep SessionInfoStore getSessionInfoStore conc...
void function ( final OutputStream arg0 ) { final ExecutionDataWriter loc0 = new ExecutionDataWriter ( arg0 ) ; sessionInfos . accept ( loc0 ) ; executionData . accept ( loc0 ) ; }
Generate a Java code for the following instruction: does this registry contain the named function concode_field_sep Dialect dialect concode_elem_sep Map<String,SQLFunction> userFunctions concode_field_sep SQLFunction findSQLFunction
boolean function ( String arg0 ) { final String loc0 = arg0 . toLowerCase ( Locale . ROOT ) ; return userFunctions . containsKey ( loc0 ) || dialect . getFunctions ( ) . containsKey ( loc0 ) ; }
Generate a Java code for the following instruction: generate a random power series with d = 0.7 . 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...
UnivPowerSeries < C > function ( int arg0 , Random arg1 ) { return random ( arg0 , 0.7f , arg1 ) ; }
Generate a Java code for the following instruction: function to get object data by its id concode_field_sep String m_Url concode_elem_sep String m_Key concode_elem_sep String m_Packing concode_elem_sep String m_Language concode_elem_sep String m_Format concode_field_sep String getPacking concode_elem_sep String getLang...
String function ( int arg0 ) { return doSendApiRequest ( "srini_string" , "srini_string" + arg0 ) ; }
Generate a Java code for the following instruction: gets the cached token value from a bundle . concode_field_sep String TOKEN_SOURCE_KEY concode_elem_sep long INVALID_BUNDLE_MILLISECONDS concode_elem_sep String TOKEN_KEY concode_elem_sep String PERMISSIONS_KEY concode_elem_sep String EXPIRATION_DATE_KEY concode_elem_s...
String function ( Bundle arg0 ) { Validate . notNull ( arg0 , "srini_string" ) ; return arg0 . getString ( TOKEN_KEY ) ; }
Generate a Java code for the following instruction: get a description of the reason this os delegate is invalid . concode_field_sep String reason concode_field_sep IWindowService getWindowService concode_elem_sep INativeConditionFactory getConditionFactory concode_elem_sep void invalid concode_elem_sep InvalidOSDelegat...
String function ( ) { return reason ; }
Generate a Java code for the following instruction: called when a lookup previously started succeeded . concode_field_sep FilesharingApplication app concode_elem_sep FSEvents ev concode_field_sep void setFSApplication concode_elem_sep void lookupStarted concode_elem_sep void publishStarted concode_elem_sep void lookupM...
void function ( OverlayContact arg0 , Object arg1 , int arg2 ) { ev . lookupSucceeded ( arg0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: formats time as milliseconds with units . concode_field_sep String UNIT_MILLISECONDS concode_elem_sep String UNIT_SECONDS concode_field_sep String format concode_elem_sep String format concode_elem_sep String format concode_elem_sep String formatToFixedDecimalPoint co...
String function ( double arg0 , int arg1 ) { return formatToFixedDecimalPoint ( arg0 , arg1 ) + UNIT_MILLISECONDS ; }
Generate a Java code for the following instruction: returns the number of covered branches starting from this instruction . concode_field_sep int coveredBranches concode_elem_sep int line concode_elem_sep Instruction predecessor concode_elem_sep int branches concode_field_sep int getBranches concode_elem_sep void addBr...
int function ( ) { return coveredBranches ; }
Generate a Java code for the following instruction: returns true if a memorybin with the given uri name already exists in this storage . concode_field_sep int _pageSize concode_elem_sep int DEFAULT_PAGESIZE concode_elem_sep Map<String,Bin> _binsByUri concode_field_sep Bin produceBin concode_elem_sep void rename concode...
boolean function ( String arg0 ) { return _binsByUri . containsKey ( arg0 ) ; }
Generate a Java code for the following instruction: reads the next token skipping over the comments . concode_field_sep int COMMAND_TYPE concode_elem_sep PRTokeniser tokeniser concode_field_sep PdfObject readPRObject concode_elem_sep void setTokeniser concode_elem_sep PdfArray readArray concode_elem_sep ArrayList<PdfOb...
boolean function ( ) { while ( tokeniser . nextToken ( ) ) { if ( tokeniser . getTokenType ( ) == TokenType . COMMENT ) continue ; return true ; } return false ; }
Generate a Java code for the following instruction: increase the accounting . returns whether the allocation fit within limits . concode_field_sep Accountant parent concode_elem_sep AtomicLong allocationLimit concode_elem_sep AtomicLong peakAllocation concode_elem_sep long reservation concode_elem_sep boolean ok concod...
boolean function ( long arg0 ) { final AllocationOutcome loc0 = allocate ( arg0 , true , true ) ; return loc0 . isOk ( ) ; }
Generate a Java code for the following instruction: debugging to see if the object has already been freed . concode_field_sep AtomicReferenceArray<T> _freeStack concode_elem_sep AtomicInteger _top concode_field_sep boolean allowFree concode_elem_sep T allocate concode_elem_sep void freeCareful concode_elem_sep boolean ...
boolean function ( T arg0 ) { int loc0 = _top . get ( ) ; for ( int loc1 = loc0 - 1 ; loc1 >= 0 ; loc1 -- ) { if ( _freeStack . get ( loc1 ) == arg0 ) { return true ; } } return false ; }
Generate a Java code for the following instruction: following method performs the initialization concode_field_sep String OUTPUT_FILE concode_elem_sep PrintStream error concode_elem_sep PrintStream output concode_elem_sep FileLoggerModule singleton concode_elem_sep String ERROR_FILE concode_elem_sep Logger LOGGER conco...
FileLoggerModule function ( ) { LOGGER . debug ( "srini_string" ) ; this . output = new PrintStream ( new FileOutputStream ( OUTPUT_FILE ) ) ; this . error = new PrintStream ( new FileOutputStream ( ERROR_FILE ) ) ; return this ; }
Generate a Java code for the following instruction: generate variable string . concode_field_sep String var concode_elem_sep int N concode_elem_sep String order concode_field_sep String sum1 concode_elem_sep String varList concode_elem_sep String varList concode_elem_sep String polyList concode_elem_sep String sumUm co...
String function ( int arg0 ) { if ( arg0 < 0 ) { return variable ( - arg0 ) ; } if ( arg0 > N ) { return "srini_string" ; } return var + arg0 ; }