input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: checks if a given string is a valid person email . concode_field_sep boolean isPrivate concode_elem_sep String EMAIL_VALIDATION_REGEX concode_elem_sep String MESSAGE_EMAIL_CONSTRAINTS concode_elem_sep String value concode_elem_sep String EXAMPLE concode_field_sep int ...
boolean function ( String arg0 ) { return arg0 . matches ( EMAIL_VALIDATION_REGEX ) ; }
Generate a Java code for the following instruction: register a process ' handle concode_field_sep ConcurrentHashMap<String,Shutdownable> processMap concode_elem_sep Logger LOG concode_elem_sep Object lock concode_field_sep void killProcess concode_elem_sep Collection<Shutdownable> getAllProcessHandles concode_elem_sep ...
void function ( String arg0 , Shutdownable arg1 ) { processMap . put ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: returns an array of all the eventsources concode_field_sep String url concode_field_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_elem_sep String getURL concode_el...
EventSource [ ] function ( ) { return new EventSource [ ] { EventSource . CENTAURO , EventSource . COURSE , EventSource . PLATFORM , EventSource . PERSONAL } ; }
Generate a Java code for the following instruction: ends up being a bit faster than math.round . this merely rounds its argument to the nearest int , where x. 5 rounds up . concode_field_sep BitMatrix image concode_elem_sep int CORR concode_elem_sep int width concode_elem_sep int rightInit concode_elem_sep int downInit...
int function ( float arg0 ) { return ( int ) ( arg0 + 0.5f ) ; }
Generate a Java code for the following instruction: query if this ring is a field . 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...
boolean function ( ) { return true ; }
Generate a Java code for the following instruction: gets the job output key schema . concode_field_sep String CONF_INPUT_KEY_SCHEMA concode_elem_sep String CONF_OUTPUT_KEY_SCHEMA concode_elem_sep String CONF_INPUT_VALUE_SCHEMA concode_elem_sep String CONF_OUTPUT_VALUE_SCHEMA concode_elem_sep String CONF_OUTPUT_CODEC co...
Schema function ( Configuration arg0 ) { String loc0 = arg0 . get ( CONF_OUTPUT_KEY_SCHEMA ) ; return loc0 != null ? Schema . parse ( loc0 ) : null ; }
Generate a Java code for the following instruction: adds a new item , which compares as equal to the given existing item . concode_field_sep int UNKNOWN_AFTER concode_elem_sep int counter concode_elem_sep int unknownObjectBehavior concode_elem_sep boolean isLocked concode_elem_sep int UNKNOWN_BEFORE concode_elem_sep in...
boolean function ( Object arg0 , Object arg1 ) { checkLocked ( ) ; Integer loc0 = ( Integer ) map . get ( arg0 ) ; if ( loc0 == null ) { throw new IllegalArgumentException ( arg0 + "srini_string" + this ) ; } Object loc1 = map . put ( arg1 , loc0 ) ; return ( loc1 == null ) ; }
Generate a Java code for the following instruction: this method verifies and ensures display initialization . verification is based on synchronous execution of empty runnable . concode_field_sep ArrayList<IDisplayIntrospectionListener> listeners concode_elem_sep ThreadGroup root concode_elem_sep long retryTime concode_...
void function ( Display arg0 ) { while ( ! arg0 . isDisposed ( ) ) { try { new DisplayReference ( arg0 ) . execute ( new Callable < Boolean > ( ) { public Boolean call ( ) throws Exception { return true ; } } , 30000 ) ; break ; } catch ( Throwable loc0 ) { continue ; } } }
Generate a Java code for the following instruction: isempty returns true if this queue is empty , false otherwise . concode_field_sep SListNode head concode_elem_sep int size concode_elem_sep SListNode tail concode_field_sep void enqueue concode_elem_sep Object nth concode_elem_sep int size concode_elem_sep Object dequ...
boolean function ( ) { return size == 0 ; }
Generate a Java code for the following instruction: return the set of engines that we support given as an argument but the user has n't explicitly declined on another device . can return the input if the user has n't declined any engines . concode_field_sep Long storageVersion concode_elem_sep JSONArray declined concod...
Set < String > function ( Set < String > arg0 ) { if ( this . declined == null || this . declined . isEmpty ( ) ) { return arg0 ; } final Set < String > loc0 = new HashSet < String > ( arg0 ) ; loc0 . removeAll ( this . declined ) ; return loc0 ; }
Generate a Java code for the following instruction: returns the `` return block '' for a given `` caller block '' . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_sep ArrayList paths concode_elem_sep FlowGraph graph concode_elem_sep LocalVariable returnAddress concode_field_sep void setReturnAdd...
Block function ( final Block arg0 ) { for ( int loc0 = 0 ; loc0 < paths . size ( ) ; loc0 ++ ) { final Block [ ] loc1 = ( Block [ ] ) paths . get ( loc0 ) ; if ( loc1 [ 0 ] == arg0 ) { return loc1 [ 1 ] ; } } return null ; }
Generate a Java code for the following instruction: intended for info.monitorenter.gui.chart.axis.aaxis only . concode_field_sep AUnit UNIT_UNCHANGED concode_elem_sep PropertyChangeSupport m_propertyChangeSupport concode_elem_sep long serialVersionUID concode_elem_sep IAxis<?> m_axis concode_field_sep int hashCode conc...
IAxis < ? > function ( ) { return this . m_axis ; }
Generate a Java code for the following instruction: internal use only concode_field_sep List<RunListener> fListeners concode_elem_sep boolean fPleaseStop concode_elem_sep List<RunListener> fCurrentListeners concode_field_sep void fireTestIgnored concode_elem_sep void fireTestRunFinished concode_elem_sep void notifyList...
void function ( RunListener arg0 ) { fListeners . add ( arg0 ) ; }
Generate a Java code for the following instruction: perform the click . this is intended to be overridden in subclasses concode_field_sep BasicWidgetSelector _selector concode_field_sep MenuReference showContextMenu concode_elem_sep boolean unspecifiedXY concode_elem_sep Point getXYOffset concode_elem_sep IWidgetLocato...
Widget function ( int arg0 , Widget arg1 , Point arg2 , int arg3 ) { return _selector . click ( arg1 , arg2 . x , arg2 . y , arg3 , arg0 ) ; }
Generate a Java code for the following instruction: return the directory into which we put our self-extracted native libraries and make sure it exists . concode_field_sep byte[] cachedBuffer concode_field_sep void reliablyCopyExecutable concode_elem_sep void deleteOrThrow concode_elem_sep FileLocker lockLibsDirectory c...
File function ( Context arg0 ) { File loc0 = getLibsDirectory ( arg0 ) ; if ( ! loc0 . isDirectory ( ) && ! loc0 . mkdirs ( ) ) { throw new RuntimeException ( "srini_string" ) ; } return loc0 ; }
Generate a Java code for the following instruction: returns if the status ' severity is info . 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 Throwable getException concode_el...
boolean function ( ) { return fSeverity == IStatus . INFO ; }
Generate a Java code for the following instruction: create a new closure that calls one of the closures depending on the predicates . the map consists of predicate keys and closure values . a closure is called if its matching predicate returns true . each predicate is evaluated until one returns true . if no predicates...
Closure function ( Map arg0 ) { return SwitchClosure . getInstance ( arg0 ) ; }
Generate a Java code for the following instruction: gets the iterator this iterator is using . concode_field_sep Iterator iterator concode_elem_sep Transformer transformer concode_field_sep Object next concode_elem_sep Object transform concode_elem_sep Transformer getTransformer concode_elem_sep boolean hasNext concode...
Iterator function ( ) { return iterator ; }
Generate a Java code for the following instruction: create an iterator iterator wrappingthe specified longiterator longiterator . when the given iterator is null , returns null . concode_field_sep LongIterator _iterator concode_field_sep Object next concode_elem_sep boolean hasNext concode_elem_sep void remove
Iterator function ( LongIterator arg0 ) { return null == arg0 ? null : new LongIteratorIterator ( arg0 ) ; }
Generate a Java code for the following instruction: verifies that the data was signed with the given signature , and returns the verified purchase . the data is in json format and signed with a private key . the data also contains the purchasestate and product id of the purchase . concode_field_sep String TAG concode_e...
boolean function ( String arg0 , String arg1 , String arg2 ) { if ( TextUtils . isEmpty ( arg1 ) || TextUtils . isEmpty ( arg0 ) || TextUtils . isEmpty ( arg2 ) ) { } PublicKey loc0 = Security . generatePublicKey ( arg0 ) ; return Security . verify ( loc0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: implement a hash code for this comparator that is consistent with #equals object equals . concode_field_sep BooleanComparator TRUE_FIRST concode_elem_sep long serialVersionUID concode_elem_sep BooleanComparator FALSE_FIRST concode_elem_sep boolean trueFirst concode_fi...
int function ( ) { int loc0 = "srini_string" . hashCode ( ) ; return trueFirst ? - 1 * loc0 : loc0 ; }
Generate a Java code for the following instruction: this method attempts to grow an array by allocating a new array and copying all elements . concode_field_sep PlaceHolder placeHolder concode_field_sep Object goodCopyOf concode_elem_sep void main
Object [ ] function ( Object [ ] arg0 , int arg1 ) { Object [ ] loc0 = new Object [ arg1 ] ; System . arraycopy ( arg0 , 0 , loc0 , 0 , Math . min ( arg0 . length , arg1 ) ) ; return loc0 ; }
Generate a Java code for the following instruction: perform actions concode_field_sep Logger LOGGER concode_field_sep void goToSleep concode_elem_sep void goToMine concode_elem_sep void wakeUp concode_elem_sep void goHome concode_elem_sep void work concode_elem_sep String name
void function ( Action ... arg0 ) { for ( Action loc0 : arg0 ) { loc0 ( loc0 ) ; } }
Generate a Java code for the following instruction: has an association with the specified key been visited already ? concode_field_sep Set<AssociationKey> visitedAssociationKeys concode_elem_sep SessionFactoryImplementor factory concode_elem_sep PropertyPath currentPropertyPath concode_elem_sep Logger log concode_elem_...
boolean function ( AssociationKey arg0 ) { return visitedAssociationKeys . contains ( arg0 ) || strategy . isDuplicateAssociationKey ( arg0 ) ; }
Generate a Java code for the following instruction: parses a style given an externalized string representation concode_field_sep String name concode_elem_sep Association association concode_elem_sep Style style concode_field_sep Style getStyle concode_elem_sep Association getAssociation concode_elem_sep String toString...
Style function ( String arg0 ) { if ( SELECT . arg0 . equals ( arg0 ) ) { return SELECT ; } else { return JOIN ; } }
Generate a Java code for the following instruction: when syncing entities under some sync root , the user can restrict what types of entities will be synced . i.e. you can issue a sync of a feed but restrict the sync only to resource types . this will in effect make sure that the feed only defines the resource types yo...
Set < SegmentType > function ( ) { return syncedTypes ; }
Generate a Java code for the following instruction: create junitall.java that calls all testclasses suites to be generated . concode_field_sep FileWriter fw concode_field_sep void addTestSuite concode_elem_sep void addTest concode_elem_sep void addTest concode_elem_sep void finish
void function ( String arg0 ) { if ( fw != null ) { return ; } assert arg0 != null ; File loc0 = CreateFileUtil . createOutFile ( arg0 , "srini_string" ) ; try { fw = new FileWriter ( loc0 ) ; fw . write ( junitAllHeader ) ; } catch ( IOException loc1 ) { loc1 . printStackTrace ( ) ; } }
Generate a Java code for the following instruction: test method for org.jboss.security.config.securityconfiguration #getcipheralgorithm . concode_field_sep PlaceHolder placeHolder concode_field_sep void testSetIterationCount concode_elem_sep void testGetKeyStoreURL concode_elem_sep void testGetSalt concode_elem_sep voi...
void function ( ) { SecurityConfiguration . getCipherAlgorithm ( ) ; }
Generate a Java code for the following instruction: sets the color to the graphics context if it is different and returns the previous one of the graphics context or null if there was no change . concode_field_sep int m_red concode_elem_sep int m_blue concode_elem_sep int m_green concode_elem_sep int m_alpha concode_el...
Color function ( final Graphics arg0 ) { Color loc0 = null ; if ( this . m_color != null ) { final Color loc1 = arg0 . getColor ( ) ; if ( ! loc1 . equals ( this . m_color ) ) { loc0 = loc1 ; arg0 . setColor ( this . m_color ) ; } } return loc0 ; }
Generate a Java code for the following instruction: called to write an enum value . may be overridden for alternate enum representations . concode_field_sep GenericData data concode_elem_sep Schema root concode_field_sep NullPointerException npe concode_elem_sep void writeWithoutConversion concode_elem_sep Iterator<? e...
void function ( Schema arg0 , Object arg1 , Encoder arg2 ) { if ( ! data . isEnum ( arg1 ) ) throw new AvroTypeException ( "srini_string" + arg1 ) ; arg2 . writeEnum ( arg0 . getEnumOrdinal ( arg1 . toString ( ) ) ) ; }
Generate a Java code for the following instruction: test method for com.flatironschool.javacs.mylinearmap #values . concode_field_sep Map<String,Integer> map concode_field_sep void testContainsValue concode_elem_sep void testClear concode_elem_sep void testKeySet concode_elem_sep void testGet concode_elem_sep void test...
void function ( ) { Collection < Integer > loc0 = map . values ( ) ; assertThat ( loc0 . size ( ) , is ( 4 ) ) ; assertThat ( loc0 . contains ( 3 ) , is ( true ) ) ; assertThat ( loc0 . contains ( 0 ) , is ( true ) ) ; assertThat ( loc0 . contains ( 4 ) , is ( false ) ) ; }
Generate a Java code for the following instruction: finds a single todo entry . concode_field_sep TodoCrudService crudService concode_elem_sep Logger LOGGER concode_field_sep TodoDTO create concode_elem_sep TodoDTO update concode_elem_sep TodoDTO delete concode_elem_sep List<TodoDTO> findAll
TodoDTO function ( @ PathVariable ( "srini_string" ) Long arg0 ) { LOGGER . info ( "srini_string" , arg0 ) ; TodoDTO loc0 = crudService . findById ( arg0 ) ; LOGGER . info ( "srini_string" , loc0 ) ; return loc0 ; }
Generate a Java code for the following instruction: return true if debugging is enabled . concode_field_sep PrintWriter sysOut concode_elem_sep ILog log concode_elem_sep boolean isDebugging concode_field_sep void setLog concode_elem_sep void trace concode_elem_sep void trace concode_elem_sep void setDebugging concode_e...
boolean function ( ) { return isDebugging ; }
Generate a Java code for the following instruction: in output , m = modified , u = unmodified , x = missing . capital letters indicate the specified modbit does occur , lowercase letters indicate it does not occur . concode_field_sep int MODIFIED_BITVAL concode_elem_sep int[] mods concode_elem_sep int MISSING_FLOW_BITV...
String function ( int arg0 ) { return ( ( tuplemodHasModified ( arg0 ) ? "srini_string" : "srini_string" ) + ( tuplemodHasUnmodified ( arg0 ) ? "srini_string" : "srini_string" ) + ( tuplemodHasMissingNonsensical ( arg0 ) ? "srini_string" : "srini_string" ) + ( tuplemodHasMissingFlow ( arg0 ) ? "srini_string" : "srini_s...
Generate a Java code for the following instruction: perform a code resolve in a separate thread . concode_field_sep IJavaElement[] EMPTY_RESULT concode_field_sep IJavaElement selectJavaElement concode_elem_sep IJavaElement[] codeResolve concode_elem_sep IJavaElement[] codeResolve concode_elem_sep IJavaElement[] codeRes...
IJavaElement [ ] function ( JavaEditor arg0 , boolean arg1 ) { ITypeRoot loc0 = getInput ( arg0 , arg1 ) ; if ( loc0 != null ) return performForkedCodeResolve ( loc0 , ( ITextSelection ) arg0 . getSelectionProvider ( ) . getSelection ( ) ) ; return EMPTY_RESULT ; }
Generate a Java code for the following instruction: retrieves the path to the log file . concode_field_sep int LOG_MAGIC concode_elem_sep String path concode_elem_sep long utime concode_elem_sep long eventNumber concode_elem_sep BufferedRandomAccessFile raf concode_elem_sep long numMessagesWritten concode_elem_sep Stri...
String function ( ) { return path ; }
Generate a Java code for the following instruction: the maximum number of reconnect attempts before an error is reported back to the client on the first attempt by the client to connect to a server . set to -1 to use unlimited attempts . defaults to -1 . concode_field_sep String userName concode_elem_sep int qos concod...
void function ( long arg0 ) { this . connectAttemptsMax = arg0 ; }
Generate a Java code for the following instruction: clears the tile in a specific direction concode_field_sep Box boundary concode_elem_sep BufferedImage eastDig concode_elem_sep BufferedImage southDig concode_elem_sep int westDigInt concode_elem_sep BufferedImage baseImage concode_elem_sep int eastDigInt concode_elem_...
void function ( Direction arg0 ) { digHole ( arg0 , NUM_DIG_STATES ) ; }
Generate a Java code for the following instruction: lock cache access . concode_field_sep ReentrantLock lock concode_elem_sep LongSparseArray<Reference<T>> map concode_field_sep void unlock concode_elem_sep T get concode_elem_sep void clear concode_elem_sep void putNoLock concode_elem_sep T getNoLock concode_elem_sep v...
void function ( ) { lock . lock ( ) ; }
Generate a Java code for the following instruction: gets the package name for the java class . concode_field_sep String qualifiedName concode_elem_sep String className concode_elem_sep String packageName concode_field_sep String getQualifiedClassName concode_elem_sep ClassName forClass concode_elem_sep String toString ...
String function ( ) { return packageName ; }
Generate a Java code for the following instruction: dump a cursor to the debug log , ignoring any log level settings . the position in the cursor is maintained . caller is responsible for opening and closing cursor . concode_field_sep PlaceHolder placeHolder concode_field_sep String dashes concode_elem_sep String fixed...
void function ( Cursor arg0 ) { dumpCursor ( arg0 , 18 , "srini_string" ) ; }
Generate a Java code for the following instruction: quotient multiplication . 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> invers...
Quotient < C > function ( Quotient < C > arg0 ) { if ( arg0 == null || arg0 . isZERO ( ) ) { return arg0 ; } if ( num . isZERO ( ) ) { return this ; } if ( arg0 . isONE ( ) ) { return this ; } if ( this . isONE ( ) ) { return arg0 ; } C loc0 = num . multiply ( arg0 . num ) ; C loc1 = den . multiply ( arg0 . den ) ; ret...
Generate a Java code for the following instruction: comment f concode_field_sep int I1z concode_elem_sep int I2z concode_elem_sep int I1 concode_elem_sep int I3 concode_elem_sep int I2 concode_elem_sep int I4 concode_field_sep void fz concode_elem_sep void f11 concode_elem_sep void f1 concode_elem_sep void f2 concode_e...
void function ( ) { }
Generate a Java code for the following instruction: creates a jsonasserter concode_field_sep PlaceHolder placeHolder concode_field_sep String convertReaderToString concode_elem_sep Matcher<Map<String,?>> mapContainingKey concode_elem_sep Matcher<? super Map<?,V>> mapContainingValue concode_elem_sep Matcher<Collection<O...
JsonAsserter function ( Reader arg0 ) { return new JsonAsserterImpl ( JsonPath . parse ( convertReaderToString ( arg0 ) ) . json ( ) ) ; }
Generate a Java code for the following instruction: gets the number of connection requests being blocked awaiting a free connection . this can happen only if there are more worker threads contending for fewer connections . concode_field_sep int leased concode_elem_sep int max concode_elem_sep int pending concode_elem_s...
int function ( ) { return this . pending ; }
Generate a Java code for the following instruction: create a varcomparability based on comparabilities of indices . concode_field_sep Logger debug concode_elem_sep int IMPLICIT concode_elem_sep int NONE concode_field_sep VarComparability makeAlias concode_elem_sep VarComparability makeAlias concode_elem_sep VarComparab...
VarComparability function ( String arg0 , VarComparability arg1 ) { if ( arg1 instanceof VarComparabilityNone ) { return VarComparabilityNone . it ; } else { throw new Error ( "srini_string" ) ; } }
Generate a Java code for the following instruction: returns the response 's identifier , which matches the pushed notification 's . concode_field_sep int identifier concode_elem_sep int command concode_elem_sep int status concode_field_sep int getCommand concode_elem_sep void setIdentifier concode_elem_sep String getMe...
int function ( ) { return identifier ; }
Generate a Java code for the following instruction: remove a propertychangelistener from this component . concode_field_sep IPropertyDescriptor[] EMPTY_ARRAY concode_elem_sep PropertyChangeSupport pcsDelegate concode_elem_sep long serialVersionUID concode_field_sep void firePropertyChange concode_elem_sep Object getPro...
void function ( PropertyChangeListener arg0 ) { if ( arg0 != null ) { pcsDelegate . removePropertyChangeListener ( arg0 ) ; } }
Generate a Java code for the following instruction: extract discrete keys from this possibly compound key . concode_field_sep Point pointT concode_elem_sep abbot.swt.Robot _robot concode_field_sep void robotKeyClick concode_elem_sep void doKeyDown concode_elem_sep void doKeyUp concode_elem_sep void mouseMove concode_el...
int [ ] function ( int arg0 ) { return KeyStrokeDecoder . extractModifiers ( arg0 ) ; }
Generate a Java code for the following instruction: convert integer to character concode_field_sep Cell[][] cells concode_elem_sep int width concode_elem_sep long serialVersionUID concode_elem_sep int height concode_field_sep Iterator<Cell> iterator concode_elem_sep int ctoi concode_elem_sep boolean equals concode_elem...
char function ( int arg0 ) { return ( char ) ( arg0 + 'A' ) ; }
Generate a Java code for the following instruction: get the subject widget 's class name concode_field_sep long serialVersionUID concode_elem_sep int UNASSIGNED concode_elem_sep String nameOrLabel concode_elem_sep int index concode_elem_sep WidgetLocator ancestorInfo concode_elem_sep WidgetLocator parentInfo concode_el...
String function ( ) { if ( classRef != null ) return classRef . getName ( ) ; else return null ; }
Generate a Java code for the following instruction: adds the service into the cache map concode_field_sep Logger LOGGER concode_elem_sep Map<String,Service> serviceCache concode_field_sep Service getService
void function ( Service arg0 ) { serviceCache . put ( arg0 . getName ( ) , arg0 ) ; }
Generate a Java code for the following instruction: checks whether the field specified is supported by this period . concode_field_sep PlaceHolder placeHolder concode_field_sep int size concode_elem_sep int[] getValues concode_elem_sep int hashCode concode_elem_sep int get concode_elem_sep boolean equals concode_elem_s...
boolean function ( DurationFieldType arg0 ) { return getPeriodType ( ) . isSupported ( arg0 ) ; }
Generate a Java code for the following instruction: init with krbsetting . concode_field_sep KrbSetting krbSetting concode_elem_sep PreauthHandler preauthHandler concode_field_sep int generateNonce concode_elem_sep KrbSetting getKrbSetting concode_elem_sep PreauthHandler getPreauthHandler concode_elem_sep KrbConfig get...
void function ( KrbSetting arg0 ) { this . krbSetting = arg0 ; preauthHandler = new PreauthHandler ( ) ; preauthHandler . init ( this ) ; }
Generate a Java code for the following instruction: get the directory into which commited class files should be written . 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 bool...
File function ( ) { return outputDir ; }
Generate a Java code for the following instruction: look for @onetomany , @manytomany and @elementcollection annotations concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isEntityClass concode_elem_sep boolean isPersistentField concode_elem_sep boolean doDirtyCheckingInline concode_elem_sep boolean ha...
boolean function ( CtField arg0 ) { return arg0 . hasAnnotation ( OneToMany . class ) || arg0 . hasAnnotation ( ManyToMany . class ) || arg0 . hasAnnotation ( ElementCollection . class ) ; }
Generate a Java code for the following instruction: return the character at the given position . erase characters will return 0 rather than the actual character concode_field_sep String inlineMarkupDelimiters concode_elem_sep int sectionLevel concode_elem_sep boolean erased concode_elem_sep boolean inBlock concode_elem...
char function ( int arg0 ) { return charAt ( arg0 , false ) ; }
Generate a Java code for the following instruction: equals does not take into account the range of this contact , as this information might change over time and should be updated rather than force a new contact concode_field_sep String attributeName concode_elem_sep Comparable[] range concode_elem_sep TransInfo transIn...
boolean function ( Object arg0 ) { if ( arg0 instanceof MercuryContact ) { MercuryContact loc0 = ( MercuryContact ) arg0 ; return loc0 . getAttribute ( ) . equals ( this . getAttribute ( ) ) && loc0 . getTransInfo ( ) . equals ( this . getTransInfo ( ) ) ; } return false ; }
Generate a Java code for the following instruction: ycc 8-bit per channel to rgb 8-bit per channel . concode_field_sep PlaceHolder placeHolder concode_field_sep void RGBtoYCC concode_elem_sep void RGB8toYCC16 concode_elem_sep void RGB8toYCC16 concode_elem_sep void YCC8toRGB8 concode_elem_sep void YCC16toRGB8 concode_el...
void function ( int [ ] arg0 , int [ ] arg1 ) { int loc0 = arg0 [ 0 ] ; int loc1 = arg0 [ 1 ] ; int loc2 = arg0 [ 2 ] ; int loc3 = ( 299 * loc0 + 587 * loc1 + 114 * loc2 ) / 1000 ; int loc4 = ( - 1687 * loc0 - 3313 * loc1 + 5000 * loc2 ) / 10000 + 128 ; int loc5 = ( 5000 * loc0 - 4187 * loc1 - 813 * loc2 ) / 10000 + 12...
Generate a Java code for the following instruction: copy algebraicnumber element c. concode_field_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_elem_sep GenPolynomial<C> modul concode_field_sep boolean isField concode_elem_sep boolean isCommutative concode_elem_sep AlgebraicNumber<C> interpolate co...
AlgebraicNumber < C > function ( AlgebraicNumber < C > arg0 ) { return new AlgebraicNumber < C > ( this , arg0 . val ) ; }
Generate a Java code for the following instruction: returns a test which will fail and log a warning message . concode_field_sep String fName concode_elem_sep Vector fTests concode_field_sep void setName concode_elem_sep int testCount concode_elem_sep void addTestSuite concode_elem_sep String getName concode_elem_sep v...
Test function ( final String arg0 ) { return new TestCase ( "srini_string" ) { protected void runTest ( ) { fail ( arg0 ) ; } } ; }
Generate a Java code for the following instruction: convert a varcharholder to a string . varcharholders are designed specifically for object reuse and mutability , only use this method when absolutely necessary for interacting with interfaces that must take a string . concode_field_sep org.slf4j.Logger logger concode_...
String function ( VarCharHolder arg0 ) { return toStringFromUTF8 ( arg0 . start , arg0 . end , arg0 . buffer ) ; }
Generate a Java code for the following instruction: checks is buffer contains needed bytes concode_field_sep byte[] data concode_elem_sep int offset concode_elem_sep int limit concode_elem_sep int position concode_field_sep boolean isAvailable concode_elem_sep byte read concode_elem_sep long readLong concode_elem_sep S...
void function ( int arg0 ) { if ( arg0 > limit - position ) { throw new BSONException ( "srini_string" ) ; } }
Generate a Java code for the following instruction: main run method . should never be run on the event dispatch thread , although no check is explicitly done here . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep Throwable invalidScriptError concode_elem_sep long serialVersionUI...
void function ( ) { if ( invalidScriptError != null ) throw invalidScriptError ; Log . debug ( "srini_string" + toString ( ) ) ; runStep ( ) ; }
Generate a Java code for the following instruction: return a view based on layout id concode_field_sep String TAG_INTERNET_OFF concode_elem_sep ArrayList<View> mCustomViews concode_elem_sep ViewSwitcher mSwitcher concode_elem_sep LayoutInflater mInflater concode_elem_sep RelativeLayout mContainer concode_elem_sep Strin...
View function ( int arg0 , String arg1 ) { View loc0 = mInflater . inflate ( arg0 , null , false ) ; loc0 . setTag ( arg1 ) ; loc0 . setVisibility ( View . GONE ) ; View loc1 = loc0 . findViewById ( R . id . exception_button ) ; if ( loc1 != null ) loc1 . setOnClickListener ( this . mClickListener ) ; return loc0 ; }
Generate a Java code for the following instruction: calculate the greatest common divisor . concode_field_sep String PROMPT concode_field_sep void main
int function ( int arg0 , int arg1 ) { if ( arg0 < 0 ) { arg0 = - arg0 ; } if ( arg1 < 0 ) { arg1 = - arg1 ; } while ( arg1 != 0 ) { int loc0 = arg0 % arg1 ; arg0 = arg1 ; arg1 = loc0 ; } return arg0 ; }
Generate a Java code for the following instruction: convert a string into a byte for use with the actual registry functions . concode_field_sep boolean _debug concode_elem_sep int KEY_QUERY_VALUE concode_elem_sep int NATIVE_HANDLE concode_elem_sep int ERROR_SUCCESS concode_elem_sep int ERROR_CODE concode_field_sep Stri...
byte [ ] function ( String arg0 ) { byte [ ] loc0 = new byte [ arg0 . length ( ) + 1 ] ; for ( int loc1 = 0 ; loc1 < arg0 . length ( ) ; loc1 ++ ) { loc0 [ loc1 ] = ( byte ) arg0 . charAt ( loc1 ) ; } loc0 [ arg0 . length ( ) ] = 0 ; return loc0 ; }
Generate a Java code for the following instruction: return the starting location of this move . concode_field_sep int startingLocation concode_elem_sep Player thePlayer concode_elem_sep int endingLocation concode_field_sep Player getPlayer concode_elem_sep int endLocation
int function ( ) { return startingLocation ; }
Generate a Java code for the following instruction: this method starts a supportpeerrequestoperation , which begs a chosen node for the execution of the role as support peer . concode_field_sep AttributeInputStrategy attributeInput concode_elem_sep SkyNetNodeInterface skyNetNode concode_elem_sep AttributeStorage attrib...
int function ( SkyNetNodeInfo arg0 , SkyNetNodeInfo arg1 , SkyNetNodeInfo arg2 , long arg3 , OperationCallback < SupportPeerRequestACKMsg > arg4 ) { SupportPeerRequestOperation loc0 = new SupportPeerRequestOperation ( skyNetNode , arg0 , arg1 , arg2 , arg3 , arg4 ) ; loc0 . scheduleImmediately ( ) ; return loc0 . getOp...
Generate a Java code for the following instruction: sets the string name of this document set concode_field_sep int size concode_elem_sep RandomGenerator rand concode_elem_sep String name concode_elem_sep int startRank concode_field_sep int getSize concode_elem_sep boolean containsResourcesOf concode_elem_sep void setS...
void function ( String arg0 ) { this . name = arg0 ; System . out . println ( "srini_string" = "srini_string" ) ; }
Generate a Java code for the following instruction: handles the given invocationtargetexception . concode_field_sep ExceptionHandler fgInstance concode_field_sep void displayMessageDialog concode_elem_sep void log concode_elem_sep void perform concode_elem_sep void perform
void function ( InvocationTargetException arg0 , Shell arg1 , String arg2 , String arg3 ) { fgInstance . perform ( arg0 , arg1 , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: get this object as a mutableperiod . this will always return a new mutableperiod with the same fields . the period will use periodtype.standard . concode_field_sep long START_1972 concode_elem_sep int iPeriod concode_elem_sep long serialVersionUID concode_field_sep Du...
MutablePeriod function ( ) { MutablePeriod loc0 = new MutablePeriod ( ) ; loc0 . add ( this ) ; return loc0 ; }
Generate a Java code for the following instruction: returns the itext version as shown in the producer line . itext is a product developed by itext group nv . itext group requests that you retain the itext producer line in every pdf that is created or manipulated using itext . concode_field_sep String release concode_e...
String function ( ) { return iTextVersion ; }
Generate a Java code for the following instruction: computes the min ts across all streams . concode_field_sep Map<GlobalStreamId,Long> streamToTs concode_elem_sep long lastWaterMarkTs concode_elem_sep ScheduledExecutorService executorService concode_elem_sep Set<GlobalStreamId> inputStreams concode_elem_sep int eventT...
long function ( ) { long loc0 = 0 ; if ( streamToTs . size ( ) >= inputStreams . size ( ) ) { loc0 = Long . MAX_VALUE ; for ( Map . Entry < GlobalStreamId , Long > loc1 : streamToTs . entrySet ( ) ) { loc0 = Math . min ( loc0 , loc1 . getValue ( ) ) ; } } return loc0 - eventTsLag ; }
Generate a Java code for the following instruction: creates a criterion using the < operator concode_field_sep List<Criteria> criteriaChain concode_elem_sep ValueNode left concode_elem_sep ValueNode right concode_elem_sep RelationalOperator criteriaType concode_field_sep Criteria type concode_elem_sep String prefixPath...
Criteria function ( Object arg0 ) { this . criteriaType = RelationalOperator . LT ; this . right = ValueNode . toValueNode ( arg0 ) ; return this ; }
Generate a Java code for the following instruction: sets the css class for the element we will eventually create . blows away any previously set or added class names . concode_field_sep List<LazyEventListenerAttacher<?>> listenerAttachers concode_elem_sep String cssClassName concode_elem_sep ManagesEventListeners liste...
void function ( String arg0 ) { this . cssClassName = arg0 ; }
Generate a Java code for the following instruction: set the log implementation/log implementation factory by the name of the class . the given class must implement log , and provide a constructor that takes a single string argument containing the nameof the log . concode_field_sep Constructor logImplctor concode_elem_s...
void function ( String arg0 ) { try { Class loc0 = Class . forName ( arg0 ) ; Class [ ] loc1 = new Class [ 1 ] ; loc1 [ 0 ] = "srini_string" . getClass ( ) ; logImplctor = loc0 . getConstructor ( loc1 ) ; } catch ( Throwable loc0 ) { logImplctor = null ; } }
Generate a Java code for the following instruction: indicates whether or not this operation expects to include default values . concode_field_sep String INDEX concode_elem_sep String KEY concode_field_sep String getName concode_elem_sep ModelNode getAttributeValue concode_elem_sep ModelNode createWriteAttributeOperatio...
boolean function ( ModelNode arg0 ) { return arg0 . hasDefined ( ModelDescriptionConstants . INCLUDE_DEFAULTS ) ? arg0 . get ( ModelDescriptionConstants . INCLUDE_DEFAULTS ) . asBoolean ( ) : true ; }
Generate a Java code for the following instruction: get type type to mark this response , default is 0 it will be used in httpcache #httpcache android.content.context , int concode_field_sep boolean isInCache concode_elem_sep int responseCode concode_elem_sep String responseBody concode_elem_sep Map<String,Object> resp...
int function ( ) { return type ; }
Generate a Java code for the following instruction: empties the contents of the stack . concode_field_sep ArrayByteList list concode_field_sep byte pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep byte get concode_elem_sep byte push concode_elem_sep boolean empty concode_elem_sep byte peek con...
void function ( ) { list . clear ( ) ; }
Generate a Java code for the following instruction: returns the sum of the squares of the available values . concode_field_sep int INFINITE_WINDOW concode_elem_sep long serialVersionUID concode_field_sep double getKurtosis concode_elem_sep double getStandardDeviation concode_elem_sep double getSkewness concode_elem_sep...
double function ( ) { return apply ( new SumOfSquares ( ) ) ; }
Generate a Java code for the following instruction: converts an iso 8601 string to an xmpdatetime . parse a date according to iso 8601 and http://www.w3.org/tr/note-datetime : yyyy yyyy-mm yyyy-mm-dd yyyy-mm-ddthh : mmtzd yyyy-mm-ddthh : mm : sstzd yyyy-mm-ddthh : mm : ss.stzd data fields : yyyy = four-digit year mm = ...
XMPDateTime function ( String arg0 ) { return parse ( arg0 , new XMPDateTimeImpl ( ) ) ; }
Generate a Java code for the following instruction: special handler for deserialization . concode_field_sep Map<VarInfoAux,VarInfoAux> interningMap concode_elem_sep String IS_PARAM concode_elem_sep Logger debug concode_elem_sep String HAS_DUPLICATES concode_elem_sep String NULL_TERMINATING concode_elem_sep VarInfoAux t...
Object function ( ) { return this . intern ( ) ; }
Generate a Java code for the following instruction: handles an incoming selection event . concode_field_sep TextListener fTextListener concode_elem_sep ChangeType fType concode_elem_sep SelectionListener fSelectionListener concode_elem_sep Set<ITypingRunListener> fListeners concode_elem_sep int fNextOffset concode_elem...
void function ( ) { handleChange ( new Change ( TypingRun . SELECTION , - 1 ) ) ; }
Generate a Java code for the following instruction: get ring factory at index i. concode_field_sep int nCopies concode_elem_sep RingFactory<C> ring concode_elem_sep List<RingFactory<C>> ringList concode_elem_sep Logger logger concode_elem_sep Random random concode_field_sep void addFactory concode_elem_sep boolean cont...
RingFactory < C > function ( int arg0 ) { if ( nCopies != 0 ) { if ( 0 <= arg0 && arg0 < nCopies ) { return ring ; } throw new RuntimeException ( "srini_string" + this . getClass ( ) . getName ( ) ) ; } else { return ringList . get ( arg0 ) ; } }
Generate a Java code for the following instruction: checks if the x value of the hash should be in this area concode_field_sep BigInteger id concode_field_sep int getTransmissionSize concode_elem_sep int[] getIntValue concode_elem_sep BigInteger getXValue concode_elem_sep BigInteger getId concode_elem_sep boolean sameX...
boolean function ( CanArea arg0 ) { if ( sameXValue ( arg0 ) && sameYValue ( arg0 ) ) return true ; return false ; }
Generate a Java code for the following instruction: sets a new value instance overwriting the old value which is returned . you may use null . but you will get it back next call ! concode_field_sep V m_key concode_elem_sep K m_value concode_field_sep V getKey concode_elem_sep K getValue concode_elem_sep int hashCode co...
K function ( final K arg0 ) { final K loc0 = this . m_value ; this . m_value = arg0 ; return loc0 ; }
Generate a Java code for the following instruction: intended only for use from testing . concode_field_sep DialectResolver dialectResolver concode_elem_sep StrategySelector strategySelector concode_field_sep Dialect buildDialect concode_elem_sep Dialect constructDialect concode_elem_sep Dialect determineDialect concode...
void function ( DialectResolver arg0 ) { this . dialectResolver = arg0 ; }
Generate a Java code for the following instruction: we 've finished writing the concatenated document . concode_field_sep Document document concode_elem_sep PdfCopy copy concode_field_sep PdfCopy getWriter concode_elem_sep int addPages concode_elem_sep void open
void function ( ) { document . close ( ) ; }
Generate a Java code for the following instruction: timing for frame relative to previous frame . concode_field_sep int xPosition concode_elem_sep boolean isPlayWrapupFrames concode_elem_sep int CMP_VERTICAL concode_elem_sep int yPosition concode_elem_sep int MODE_INDEXED_COLORS concode_elem_sep int MSK_HAS_MASK concod...
long function ( int arg0 ) { return ( ( ANIMFrame ) frames_ . elementAt ( arg0 ) ) . getRelTime ( ) ; }
Generate a Java code for the following instruction: if the #call method throws an exception , then this method is called tohandle that exception . this method may either handle the exception and return a value or rethrow the exception . the default implementation just rethrows the exception . subclasses may extend or o...
void function ( Throwable arg0 ) { throw arg0 ; }
Generate a Java code for the following instruction: returns the ith digit of the id in base 2 ^ b . i = 0 returns the least significant digit . concode_field_sep BigInteger MAX_ID_VALUE concode_elem_sep BigInteger TWO concode_elem_sep BigInteger NUM_OF_DISTINCT_IDS concode_elem_sep int NUM_OF_DIGITS concode_elem_sep Bi...
int function ( int arg0 ) { BigInteger loc0 ; int loc1 = arg0 * PastryConstants . ID_BASE_BIT_LENGTH ; loc0 = id . shiftRight ( loc1 ) ; loc0 = loc0 . mod ( TWO . pow ( PastryConstants . ID_BASE_BIT_LENGTH ) ) ; if ( loc0 . compareTo ( BigInteger . valueOf ( Integer . MAX_VALUE ) ) <= 0 ) return loc0 . intValue ( ) ; e...
Generate a Java code for the following instruction: hash code for this local . 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> inver...
int function ( ) { int loc0 ; loc0 = ring . hashCode ( ) ; loc0 = 37 * loc0 + num . hashCode ( ) ; loc0 = 37 * loc0 + den . hashCode ( ) ; return loc0 ; }
Generate a Java code for the following instruction: what is this for ? concode_field_sep boolean useCriterion4 concode_elem_sep GenPolynomial<C> pi concode_elem_sep int i concode_elem_sep GenPolynomial<C> pj concode_elem_sep int j concode_elem_sep boolean useCriterion3 concode_elem_sep int n concode_elem_sep boolean to...
MiniPair function ( ) { return new MiniPair ( i , j ) ; }
Generate a Java code for the following instruction: check whether the log4j logger used is enabled for warn priority . 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 warn concode_elem_sep void trac...
boolean function ( ) { if ( is12 ) { return getLogger ( ) . isEnabledFor ( ( Priority ) Level . WARN ) ; } else { return getLogger ( ) . isEnabledFor ( Level . WARN ) ; } }
Generate a Java code for the following instruction: for test use concode_field_sep Map<String,Entry> sessions concode_elem_sep long lastAccessTime concode_elem_sep String ticket concode_elem_sep TicketContainer instance concode_field_sep String getTicket
boolean function ( String arg0 , String arg1 ) { if ( "srini_string" . equals ( arg0 ) && "srini_string" . equals ( arg1 ) ) return true ; Entry loc0 = sessions . get ( arg0 ) ; return loc0 != null && loc0 . arg1 . equals ( arg1 ) ; }
Generate a Java code for the following instruction: gets the number chosen . concode_field_sep String errorMessage concode_elem_sep String numberChosen concode_elem_sep String buyerName concode_elem_sep Boolean isTest concode_field_sep String getBuyerName concode_elem_sep void setIsTest concode_elem_sep void execute co...
String function ( ) { return numberChosen ; }
Generate a Java code for the following instruction: gets the transformers , do not modify the array . concode_field_sep Transformer[] iTransformers concode_elem_sep long serialVersionUID concode_field_sep Object transform concode_elem_sep Transformer getInstance concode_elem_sep Transformer getInstance concode_elem_sep...
Transformer [ ] function ( ) { return iTransformers ; }
Generate a Java code for the following instruction: flashes the output area a specified color . currently inoperable . concode_field_sep Font consoleFont concode_elem_sep int ydim concode_elem_sep SwingConsoleFrame targetFrame concode_elem_sep int ypos concode_elem_sep Position caretPosition concode_elem_sep int xpos c...
void function ( int arg0 ) { }
Generate a Java code for the following instruction: get the index into the constant pool of the field 's constant value , if any . returns 0 if the field does not have a constant value . concode_field_sep ClassInfo classInfo concode_elem_sep int name concode_elem_sep int modifiers concode_elem_sep int type concode_elem...
int function ( ) { if ( constantValue != null ) { return constantValue . constantValueIndex ( ) ; } return 0 ; }