id int32 0 2k | nl stringlengths 95 3.97k | code stringlengths 21 493 |
|---|---|---|
1,400 | 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 hashCode concode_elem_sep boolean equals concode_ele... | boolean function ( String arg0 ) { return arg0 . matches ( EMAIL_VALIDATION_REGEX ) ; } |
1,401 | 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 killAllProcesses | void function ( String arg0 , Shutdownable arg1 ) { processMap . put ( arg0 , arg1 ) ; } |
1,402 | 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_elem_sep List<Event> parseEvents | EventSource [ ] function ( ) { return new EventSource [ ] { EventSource . CENTAURO , EventSource . COURSE , EventSource . PLATFORM , EventSource . PERSONAL } ; } |
1,403 | 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 concode_elem_sep int INIT_SIZE concode_elem_sep int... | int function ( float arg0 ) { return ( int ) ( arg0 + 0.5f ) ; } |
1,404 | 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_elem_sep Random random concode_field_sep boolean is... | boolean function ( ) { return true ; } |
1,405 | 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 concode_field_sep void setMapOutputKeySchema concode_e... | Schema function ( Configuration arg0 ) { String loc0 = arg0 . get ( CONF_OUTPUT_KEY_SCHEMA ) ; return loc0 != null ? Schema . parse ( loc0 ) : null ; } |
1,406 | 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 int UNKNOWN_THROW_EXCEPTION concode_elem_sep Map map c... | 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 ) ; } |
1,407 | 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_field_sep Display findDisplay concode_elem_sep Displ... | 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 ; } } } |
1,408 | 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 dequeue concode_elem_sep String toString concode_elem_se... | boolean function ( ) { return size == 0 ; } |
1,409 | 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 concode_elem_sep Map<String,Integer> versions concode_elem... | 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 ; } |
1,410 | 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 setReturnAddress concode_elem_sep int numPaths concode_elem_sep ... | 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 ; } |
1,411 | 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 concode_elem_sep boolean equals concode_elem_sep void in... | IAxis < ? > function ( ) { return this . m_axis ; } |
1,412 | 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 notifyListener concode_elem_sep void run concode_elem_sep void... | void function ( RunListener arg0 ) { fListeners . add ( arg0 ) ; } |
1,413 | 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 IWidgetLocator click concode_elem_sep IWidgetLocator contextClick | Widget function ( int arg0 , Widget arg1 , Point arg2 , int arg3 ) { return _selector . click ( arg1 , arg2 . x , arg2 . y , arg3 , arg0 ) ; } |
1,414 | 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 concode_elem_sep void freeCopyBuffer concode_elem_sep... | File function ( Context arg0 ) { File loc0 = getLibsDirectory ( arg0 ) ; if ( ! loc0 . isDirectory ( ) && ! loc0 . mkdirs ( ) ) { throw new RuntimeException ( "srini_string" ) ; } return loc0 ; } |
1,415 | 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_elem_sep String getMessage concode_elem_sep boolean is... | boolean function ( ) { return fSeverity == IStatus . INFO ; } |
1,416 | 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 evaluate to true , the default closure is called . ... | Closure function ( Map arg0 ) { return SwitchClosure . getInstance ( arg0 ) ; } |
1,417 | 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_elem_sep void setTransformer concode_elem_sep void ... | Iterator function ( ) { return iterator ; } |
1,418 | 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 ) ; } |
1,419 | 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_elem_sep String KEY_FACTORY_ALGORITHM concode_elem_se... | 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 ) ; } |
1,420 | 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_field_sep BooleanComparator getTrueFirstComparator con... | int function ( ) { int loc0 = "srini_string" . hashCode ( ) ; return trueFirst ? - 1 * loc0 : loc0 ; } |
1,421 | 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 ; } |
1,422 | 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 ) ; } } |
1,423 | 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_sep AssociationVisitationStrategy strategy concode_f... | boolean function ( AssociationKey arg0 ) { return visitedAssociationKeys . contains ( arg0 ) || strategy . isDuplicateAssociationKey ( arg0 ) ; } |
1,424 | 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 concode_elem_sep String toString | Style function ( String arg0 ) { if ( SELECT . arg0 . equals ( arg0 ) ) { return SELECT ; } else { return JOIN ; } } |
1,425 | 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 you instruct it to but all the metric types , resource... | Set < SegmentType > function ( ) { return syncedTypes ; } |
1,426 | 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 ( ) ; } } |
1,427 | 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 void testGetTrustStoreType concode_elem_sep void testGe... | void function ( ) { SecurityConfiguration . getCipherAlgorithm ( ) ; } |
1,428 | 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_elem_sep Color m_color concode_field_sep Color applyCo... | 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 ; } |
1,429 | 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<? extends Object> getArrayElements concode_elem_sep voi... | void function ( Schema arg0 , Object arg1 , Encoder arg2 ) { if ( ! data . isEnum ( arg1 ) ) throw new AvroTypeException ( "srini_string" + arg1 ) ; arg2 . writeEnum ( arg0 . getEnumOrdinal ( arg1 . toString ( ) ) ) ; } |
1,430 | 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 testIsEmpty concode_elem_sep void testRemove concode_ele... | 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 ) ) ; } |
1,431 | 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 ; } |
1,432 | 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_elem_sep boolean isTracing concode_elem_sep void trac... | boolean function ( ) { return isDebugging ; } |
1,433 | 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_BITVAL concode_elem_sep Object[] vals concode_elem_sep i... | 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... |
1,434 | 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[] codeResolve concode_elem_sep IJavaElement[] performForkedCo... | IJavaElement [ ] function ( JavaEditor arg0 , boolean arg1 ) { ITypeRoot loc0 = getInput ( arg0 , arg1 ) ; if ( loc0 != null ) return performForkedCodeResolve ( loc0 , ( ITextSelection ) arg0 . getSelectionProvider ( ) . getSelection ( ) ) ; return EMPTY_RESULT ; } |
1,435 | 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 String channel concode_elem_sep byte data[] concode_fiel... | String function ( ) { return path ; } |
1,436 | 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 concode_elem_sep long reconnectDelayMax concode_elem_sep S... | void function ( long arg0 ) { this . connectAttemptsMax = arg0 ; } |
1,437 | 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_sep BufferedImage northDig concode_elem_sep int laye... | void function ( Direction arg0 ) { digHole ( arg0 , NUM_DIG_STATES ) ; } |
1,438 | 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 void put concode_elem_sep void remove concode_elem_se... | void function ( ) { lock . lock ( ) ; } |
1,439 | 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 concode_elem_sep ClassName forQualifiedName concode_... | String function ( ) { return packageName ; } |
1,440 | 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 fixedWidth concode_elem_sep String spaces | void function ( Cursor arg0 ) { dumpCursor ( arg0 , 18 , "srini_string" ) ; } |
1,441 | 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> inverse concode_elem_sep boolean isUnit concode_elem_sep Q... | 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... |
1,442 | 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_elem_sep void f1z | void function ( ) { } |
1,443 | 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<Object>> emptyCollection concode_elem_sep CollectionM... | JsonAsserter function ( Reader arg0 ) { return new JsonAsserterImpl ( JsonPath . parse ( convertReaderToString ( arg0 ) ) . json ( ) ) ; } |
1,444 | 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_sep int available concode_field_sep int getMax concod... | int function ( ) { return this . pending ; } |
1,445 | 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 VarComparability indexType concode_elem_sep VarComparability st... | VarComparability function ( String arg0 , VarComparability arg1 ) { if ( arg1 instanceof VarComparabilityNone ) { return VarComparabilityNone . it ; } else { throw new Error ( "srini_string" ) ; } } |
1,446 | 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 getMessage concode_elem_sep boolean isValidErrorMessage c... | int function ( ) { return identifier ; } |
1,447 | 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 getPropertyValue concode_elem_sep void setPropertyValue co... | void function ( PropertyChangeListener arg0 ) { if ( arg0 != null ) { pcsDelegate . removePropertyChangeListener ( arg0 ) ; } } |
1,448 | 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_elem_sep void mouseMove concode_elem_sep void keyUp co... | int [ ] function ( int arg0 ) { return KeyStrokeDecoder . extractModifiers ( arg0 ) ; } |
1,449 | 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_sep Cell getCellAtLocation | char function ( int arg0 ) { return ( char ) ( arg0 + 'A' ) ; } |
1,450 | 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_elem_sep HashMap<String,String> map concode_elem_sep C... | String function ( ) { if ( classRef != null ) return classRef . getName ( ) ; else return null ; } |
1,451 | 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 ) ; } |
1,452 | 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_sep Period toPeriod concode_elem_sep MutablePeriod to... | boolean function ( DurationFieldType arg0 ) { return getPeriodType ( ) . isSupported ( arg0 ) ; } |
1,453 | 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 getConfig concode_elem_sep long getTicketValidTime | void function ( KrbSetting arg0 ) { this . krbSetting = arg0 ; preauthHandler = new PreauthHandler ( ) ; preauthHandler . init ( this ) ; } |
1,454 | 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 boolean DEBUG concode_elem_sep boolean USE_SYSTEM_CLASSE... | File function ( ) { return outputDir ; } |
1,455 | 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 hasLazyLoadableAttributes concode_elem_sep boolean isC... | boolean function ( CtField arg0 ) { return arg0 . hasAnnotation ( OneToMany . class ) || arg0 . hasAnnotation ( ManyToMany . class ) || arg0 . hasAnnotation ( ElementCollection . class ) ; } |
1,456 | 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_sep boolean listStart concode_elem_sep List<Boolean... | char function ( int arg0 ) { return charAt ( arg0 , false ) ; } |
1,457 | 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 transInfo concode_field_sep int getTransmissionSize concode... | 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 ; } |
1,458 | 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_elem_sep void YCCtoRGB concode_elem_sep IndexColorMode... | 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... |
1,459 | 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 concode_elem_sep AlgebraicNumber<C> parse concode_elem... | AlgebraicNumber < C > function ( AlgebraicNumber < C > arg0 ) { return new AlgebraicNumber < C > ( this , arg0 . val ) ; } |
1,460 | 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 void addTestMethod concode_elem_sep void run concode_... | Test function ( final String arg0 ) { return new TestCase ( "srini_string" ) { protected void runTest ( ) { fail ( arg0 ) ; } } ; } |
1,461 | 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_elem_sep int RADIX concode_elem_sep int MAX_INT conc... | String function ( VarCharHolder arg0 ) { return toStringFromUTF8 ( arg0 . start , arg0 . end , arg0 . buffer ) ; } |
1,462 | 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 String readString concode_elem_sep String readString ... | void function ( int arg0 ) { if ( arg0 > limit - position ) { throw new BSONException ( "srini_string" ) ; } } |
1,463 | 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 serialVersionUID concode_field_sep String toXMLString concode_elem_... | void function ( ) { if ( invalidScriptError != null ) throw invalidScriptError ; Log . debug ( "srini_string" + toString ( ) ) ; runStep ( ) ; } |
1,464 | 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 String[] mSupportedAbsListViews concode_elem_sep Context ... | 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 ; } |
1,465 | 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 ; } |
1,466 | 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 String getIndirect concode_elem_sep String replace conco... | 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 ; } |
1,467 | 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 ; } |
1,468 | 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 attributeStorage concode_elem_sep Logger log concode_elem_... | 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... |
1,469 | 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 setSize concode_elem_sep String getName concode_elem_sep... | void function ( String arg0 ) { this . name = arg0 ; System . out . println ( "srini_string" = "srini_string" ) ; } |
1,470 | 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 ) ; } |
1,471 | 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 DurationFieldType getFieldType concode_elem_sep Durati... | MutablePeriod function ( ) { MutablePeriod loc0 = new MutablePeriod ( ) ; loc0 . add ( this ) ; return loc0 ; } |
1,472 | 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_elem_sep String iText concode_elem_sep String iTextVe... | String function ( ) { return iTextVersion ; } |
1,473 | 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 eventTsLag concode_elem_sep Logger LOG concode_elem_sep in... | 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 ; } |
1,474 | 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 concode_elem_sep Criteria empty concode_elem_sep vo... | Criteria function ( Object arg0 ) { this . criteriaType = RelationalOperator . LT ; this . right = ValueNode . toValueNode ( arg0 ) ; return this ; } |
1,475 | 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 listenerManager concode_elem_sep Element element concode_... | void function ( String arg0 ) { this . cssClassName = arg0 ; } |
1,476 | 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_sep boolean jdk14IsAvailable concode_elem_sep boolean... | 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 ; } } |
1,477 | 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 createWriteAttributeOperation concode_elem_sep ModelNode createReadAttributeOper... | boolean function ( ModelNode arg0 ) { return arg0 . hasDefined ( ModelDescriptionConstants . INCLUDE_DEFAULTS ) ? arg0 . get ( ModelDescriptionConstants . INCLUDE_DEFAULTS ) . asBoolean ( ) : true ; } |
1,478 | 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> responseHeaders concode_elem_sep boolean isInitExpiredTi... | int function ( ) { return type ; } |
1,479 | 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 concode_elem_sep byte peek | void function ( ) { list . clear ( ) ; } |
1,480 | 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 int getWindowSize concode_elem_sep double[] getValu... | double function ( ) { return apply ( new SumOfSquares ( ) ) ; } |
1,481 | 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 = two-digit month 01 = january , etc. dd = two-digit d... | XMPDateTime function ( String arg0 ) { return parse ( arg0 , new XMPDateTimeImpl ( ) ) ; } |
1,482 | 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 theDefault concode_elem_sep String FALSE concode_elem... | Object function ( ) { return this . intern ( ) ; } |
1,483 | 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_sep boolean DEBUG concode_elem_sep TypingRun fRun c... | void function ( ) { handleChange ( new Change ( TypingRun . SELECTION , - 1 ) ) ; } |
1,484 | 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 containsFactory concode_elem_sep boolean isField concode... | 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 ) ; } } |
1,485 | 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 sameXValue concode_elem_sep int compareTo concode_elem_se... | boolean function ( CanArea arg0 ) { if ( sameXValue ( arg0 ) && sameYValue ( arg0 ) ) return true ; return false ; } |
1,486 | 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 concode_elem_sep boolean equals | K function ( final K arg0 ) { final K loc0 = this . m_value ; this . m_value = arg0 ; return loc0 ; } |
1,487 | 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_elem_sep void injectServices | void function ( DialectResolver arg0 ) { this . dialectResolver = arg0 ; } |
1,488 | 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 ( ) ; } |
1,489 | 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 concode_elem_sep int MSK_HAS_TRANSPARENT_COLOR concode_ele... | long function ( int arg0 ) { return ( ( ANIMFrame ) frames_ . elementAt ( arg0 ) ) . getRelTime ( ) ; } |
1,490 | 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 override . concode_field_sep PlaceHolder placeHolder ... | void function ( Throwable arg0 ) { throw arg0 ; } |
1,491 | 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 BigInteger id concode_field_sep int getTransmissionSiz... | 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... |
1,492 | 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> inverse concode_elem_sep boolean isUnit concode_elem_sep ... | int function ( ) { int loc0 ; loc0 = ring . hashCode ( ) ; loc0 = 37 * loc0 + num . hashCode ( ) ; loc0 = 37 * loc0 + den . hashCode ( ) ; return loc0 ; } |
1,493 | 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 toZero concode_field_sep int getPairNumber concode_ele... | MiniPair function ( ) { return new MiniPair ( i , j ) ; } |
1,494 | 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 trace concode_elem_sep void trace concode_elem_sep void ... | boolean function ( ) { if ( is12 ) { return getLogger ( ) . isEnabledFor ( ( Priority ) Level . WARN ) ; } else { return getLogger ( ) . isEnabledFor ( Level . WARN ) ; } } |
1,495 | 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 ) ; } |
1,496 | 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 concode_elem_sep String getErrorMessage | String function ( ) { return numberChosen ; } |
1,497 | 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 getInstance | Transformer [ ] function ( ) { return iTransformers ; } |
1,498 | 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 concode_elem_sep Properties configuration concode_ele... | void function ( int arg0 ) { } |
1,499 | 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_sep Attribute[] attrs concode_elem_sep ConstantValu... | int function ( ) { if ( constantValue != null ) { return constantValue . constantValueIndex ( ) ; } return 0 ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.