id
int32
0
2k
nl
stringlengths
95
3.97k
code
stringlengths
21
493
1,000
product of this matrix with scalar . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenMatrixRing<C> ring concode_elem_sep ArrayList<ArrayList<C>> matrix concode_elem_sep int hashValue concode_field_sep GenMatrix<C> leftLinearCombination concode_elem_sep int signum concode_elem_sep boolea...
GenMatrix < C > function ( C arg0 ) { ArrayList < ArrayList < C >> loc0 = new ArrayList < ArrayList < C >> ( ring . rows ) ; for ( ArrayList < C > loc1 : matrix ) { ArrayList < C > loc2 = new ArrayList < C > ( ring . cols ) ; for ( C loc3 : loc1 ) { C loc4 = loc3 . multiply ( arg0 ) ; loc2 . add ( loc4 ) ; } loc0 . add...
1,001
make a request to the facebook graph api with the given string parameters using an http get default method . see http://developers.facebook.com/docs/api note that this method is asynchronous and the callback will be invoked in a background thread ; operations that affect the ui will need to be posted to the ui thread o...
void function ( String arg0 , Bundle arg1 , RequestListener arg2 , final Object arg3 ) { request ( arg0 , arg1 , "srini_string" , arg2 , arg3 ) ; }
1,002
method setoutputstream . concode_field_sep InputStream m_inputStream concode_elem_sep Exception m_scriptCompilationException concode_elem_sep Log log concode_elem_sep Jelly m_jellyEngine concode_elem_sep XMLOutput m_output concode_elem_sep Script m_script concode_elem_sep OutputStream m_outputStream concode_elem_sep bo...
void function ( OutputStream arg0 ) { m_outputStream = arg0 ; m_output = XMLOutput . createXMLOutput ( new OutputStreamWriter ( m_outputStream ) ) ; }
1,003
uses a private key to sign data in a cms signeddata structure and returns the encoded cms signeddata as bytes . ` signedauthpack ' contains a cms type contentinfo encoded according to rfc3852 . the contenttype field of the type contentinfo is id-signeddata 1.2.840.113549.1.7.2 , and the content field is a signeddata . ...
byte [ ] function ( PrivateKey arg0 , X509Certificate arg1 , AuthPack arg2 ) { byte [ ] loc0 = KrbCodec . encode ( arg2 ) ; byte [ ] loc1 ; try { loc1 = PkiUtil . getSignedData ( arg0 , arg1 , loc0 , ID_PKINIT_AUTHDATA ) ; } catch ( PkiException loc2 ) { throw new KrbException ( "srini_string" , loc2 ) ; } return loc1 ...
1,004
factory to create the transformer . if the map is null , a transformer that always returns null is returned . concode_field_sep Map iMap concode_elem_sep long serialVersionUID concode_field_sep Object transform concode_elem_sep Map getMap
Transformer function ( Map arg0 ) { if ( arg0 == null ) { return ConstantTransformer . NULL_INSTANCE ; } return new MapTransformer ( arg0 ) ; }
1,005
returns an unmodifiable intlistiterator containing only the specified element . concode_field_sep IntListIterator EMPTY_INT_LIST_ITERATOR concode_elem_sep IntList EMPTY_INT_LIST concode_elem_sep IntIterator EMPTY_INT_ITERATOR concode_field_sep IntListIterator getEmptyIntListIterator concode_elem_sep IntIterator unmodif...
IntListIterator function ( int arg0 ) { return singletonIntList ( arg0 ) . listIterator ( ) ; }
1,006
get bitmap by imageurl concode_field_sep PlaceHolder placeHolder concode_field_sep Drawable bitmapToDrawable concode_elem_sep void closeInputStream concode_elem_sep Bitmap drawableToBitmap concode_elem_sep Bitmap byteToBitmap concode_elem_sep byte[] drawableToByte concode_elem_sep Bitmap scaleImage concode_elem_sep byt...
Bitmap function ( String arg0 , int arg1 , Map < String , String > arg2 ) { InputStream loc0 = getInputStreamFromUrl ( arg0 , arg1 , arg2 ) ; Bitmap loc1 = BitmapFactory . decodeStream ( loc0 ) ; closeInputStream ( loc0 ) ; return loc1 ; }
1,007
see the discussion on #disableautoclose . this method enables the auto-closing . concode_field_sep Map settings concode_elem_sep LoadedConfig aggregatedCfgXml concode_elem_sep List<ProvidedService> providedServices concode_elem_sep ConfigLoader configLoader concode_elem_sep boolean autoCloseRegistry concode_elem_sep St...
StandardServiceRegistryBuilder function ( ) { this . autoCloseRegistry = true ; return this ; }
1,008
gets the entity manager factory . concode_field_sep Database instance concode_elem_sep EntityManagerFactory emf concode_field_sep void initInstance concode_elem_sep T getElementById concode_elem_sep List<T> getAll concode_elem_sep T create concode_elem_sep T update concode_elem_sep void delete concode_elem_sep void clo...
EntityManagerFactory function ( ) { return emf ; }
1,009
get whether disabled . concode_field_sep Entry entry concode_field_sep PrincipalName getPrincipalName concode_elem_sep int getKdcFlags concode_elem_sep int getKeyVersion concode_elem_sep KerberosTime createKerberosTime concode_elem_sep List<EncryptionKey> getKeys concode_elem_sep KerberosTime getCreatedTime concode_ele...
boolean function ( ) { String loc0 = entry . get ( KerberosAttribute . KRB5_ACCOUNT_DISABLED_AT ) . getString ( ) ; return Boolean . parseBoolean ( loc0 ) ; }
1,010
this method is used for when a user has clicked on the `` quit '' button on the gui . it handles exiting the game . concode_field_sep int playerNumber concode_elem_sep Rules theRules concode_elem_sep String playerName concode_elem_sep Driver theDriver concode_elem_sep Color playerColor concode_elem_sep Move theMove con...
void function ( String arg0 ) { JOptionPane . showMessageDialog ( null , "srini_string" + arg0 , "srini_string" , JOptionPane . INFORMATION_MESSAGE ) ; System . exit ( 0 ) ; }
1,011
returns the url last path component . concode_field_sep String SCHEME_HTTPS concode_elem_sep String SCHEME_FILE concode_elem_sep String SCHEME_HTTP concode_elem_sep String originUrl concode_elem_sep String applicationUrl concode_elem_sep String lastPathComponent concode_elem_sep String url concode_field_sep String getA...
String function ( ) { if ( lastPathComponent == null ) { int loc0 = url . lastIndexOf ( '/' ) ; lastPathComponent = url . substring ( loc0 + 1 , url . length ( ) ) ; } return lastPathComponent ; }
1,012
indexing operation . requires : 0 < = index < this.size concode_field_sep Vector underlying_terms concode_elem_sep RatTerm[] terms concode_field_sep void set concode_elem_sep int size concode_elem_sep String printDebug concode_elem_sep boolean equals concode_elem_sep void insert concode_elem_sep String toString concode...
RatTerm function ( int arg0 ) { return ( RatTerm ) underlying_terms . get ( arg0 ) ; }
1,013
create an instance of localizedmessage concode_field_sep QName _HistoryHeader_QNAME concode_elem_sep QName _ISDVInfo_QNAME concode_elem_sep QName _KeyValuePairList_QNAME concode_elem_sep QName _LocalizedMessage_QNAME concode_elem_sep QName _BusinessException_QNAME concode_elem_sep QName _Message_QNAME concode_elem_sep ...
LocalizedMessage function ( ) { return new LocalizedMessage ( ) ; }
1,014
set the root-tags , this matters for margins . by default these are set to < body > and < div > . concode_field_sep Charset charset concode_elem_sep TagProcessorFactory tagFactory concode_elem_sep Map<String,Object> memory concode_elem_sep List<Element> ctn concode_elem_sep LinkProvider linkprovider concode_elem_sep bo...
HtmlPipelineContext function ( final List < String > arg0 ) { this . roottags = arg0 ; return this ; }
1,015
counts the number of releases available . concode_field_sep EntityManager entityManager concode_elem_sep Logger log concode_field_sep List<ReleaseEntity> loadReleaseEntities concode_elem_sep ReleaseEntity getDefaultRelease concode_elem_sep boolean saveReleaseEntity concode_elem_sep ReleaseEntity getById concode_elem_se...
int function ( ) { CriteriaQuery < Long > loc0 = entityManager . getCriteriaBuilder ( ) . createQuery ( Long . class ) ; loc0 . select ( entityManager . getCriteriaBuilder ( ) . count ( loc0 . from ( ReleaseEntity . class ) ) ) ; Long loc1 = entityManager . createQuery ( loc0 ) . getSingleResult ( ) ; return loc1 != nu...
1,016
sorts source and adds the first n entries to dest . if source contains less than n entries , all of them are added to dest . if adding an entry to dest does not increase the collection 's size , for example if dest is a set and already contained the inserted contact , an additional entry of source will be added , if av...
void function ( final Collection < ? extends T > arg0 , final Collection < ? super T > arg1 , final Comparator < ? super T > arg2 , final int arg3 ) { final List < ? extends T > loc0 = Collections . list ( Collections . enumeration ( arg0 ) ) ; Collections . sort ( loc0 , arg2 ) ; final Iterator < ? extends T > loc1 = ...
1,017
gets a map from task id to component id . concode_field_sep StormTopology _topology concode_elem_sep String _stormId concode_elem_sep Map<Integer,String> _taskToComponent concode_elem_sep Map<String,List<Integer>> _componentToTasks concode_elem_sep Map _stormConf concode_elem_sep Map<String,Map<String,Fields>> _compone...
Map < Integer , String > function ( ) { return _taskToComponent ; }
1,018
returns the save participant descriptor for the given id or null if no such listener is registered . concode_field_sep IPostSaveListener[] EMPTY_ARRAY concode_elem_sep Map<String,SaveParticipantDescriptor> fDescriptors concode_field_sep SaveParticipantDescriptor[] getSaveParticipantDescriptors concode_elem_sep boolean ...
SaveParticipantDescriptor function ( String arg0 ) { ensureRegistered ( ) ; return fDescriptors . get ( arg0 ) ; }
1,019
lets the subclass update the target after the initial #filltarget jogltarget . concode_field_sep VectorXYZ cameraPos concode_elem_sep VectorXYZ cameraUp concode_elem_sep VectorXYZ cameraLookAt concode_elem_sep boolean targetNeedsReset concode_elem_sep TerrainElevationData eleData concode_elem_sep Projection projection ...
void function ( JOGLTarget arg0 , boolean arg1 ) { }
1,020
notifies all of this option change-listeners of the given event concode_field_sep List<IOptionChangeListener> fListeners concode_elem_sep boolean fListeneredDisabled concode_field_sep void removeChangeListener concode_elem_sep void initializeWithoutListenersFrom concode_elem_sep void initializeFrom concode_elem_sep voi...
void function ( IOptionChangeEvent arg0 ) { if ( ! fListeneredDisabled ) { for ( IOptionChangeListener loc0 : fListeners ) { loc0 . attributeChanged ( arg0 ) ; } } }
1,021
workaround for session scope concode_field_sep long serialVersionUID concode_elem_sep LinkedHashMap<Integer,ReleaseEntity> releaseMap concode_elem_sep ReleaseMgmtService releaseService concode_elem_sep ResourceDependencyResolverService dependencyResolverService concode_elem_sep Date upcomingReleaseDate concode_elem_sep...
void function ( ) { releaseMap = null ; upcomingReleaseId = null ; upcomingReleaseDate = null ; }
1,022
sole entry point to application , as always . concode_field_sep PlaceHolder placeHolder concode_field_sep void printCapitalized
void function ( String [ ] arg0 ) { String loc0 ; TextIO . putln ( "srini_string" ) ; loc0 = TextIO . getln ( ) ; TextIO . putln ( ) ; TextIO . putln ( "srini_string" ) ; printCapitalized ( loc0 ) ; }
1,023
gets document to sign concode_field_sep XfaForm xfaForm concode_elem_sep PdfStamper stamper concode_elem_sep String encoding concode_field_sep String getEncoding concode_elem_sep void createXfaForm concode_elem_sep void setDocument concode_elem_sep void setEncoding
Document function ( ) { return xfaForm . getDomDocument ( ) ; }
1,024
make an instance dummyinvariant for this instance of the splitter , if possible on an appropriate slice from ppt . concode_field_sep boolean instantiated concode_elem_sep long serialVersionUID concode_field_sep boolean valid concode_elem_sep boolean instantiated concode_elem_sep String condition concode_elem_sep boolea...
void function ( PptTopLevel arg0 ) { }
1,025
returns true if one of the resourcetypes within tree up until root resource type has the same name as one of the comma separated values of the system property ch.puzzle.itc.mobiliar.common.util.configurationservice.configkey #consumable_softlink_resource_types concode_field_sep ReleaseLocator releaseLocator concode_ele...
boolean function ( Integer arg0 ) { return hasResourceConsumableSoftlinkType ( entityManager . find ( ResourceEntity . class , arg0 ) ) ; }
1,026
returns a copy of this set , with the given converter removed . if the converter was not in the set , the original set is returned . concode_field_sep Entry[] iSelectEntries concode_elem_sep Converter[] iConverters concode_elem_sep Class<?> iType concode_elem_sep Converter iConverter concode_field_sep ConverterSet add ...
ConverterSet function ( Converter arg0 , Converter [ ] arg1 ) { Converter [ ] loc0 = iConverters ; int loc1 = loc0 . loc1 ; for ( int loc2 = 0 ; loc2 < loc1 ; loc2 ++ ) { if ( arg0 . equals ( loc0 [ loc2 ] ) ) { return remove ( loc2 , arg1 ) ; } } if ( arg1 != null ) { arg1 [ 0 ] = null ; } return this ; }
1,027
ask the monitor to wait until the execution is finished . concode_field_sep IExecutionMonitor monitor concode_elem_sep String DEFAULT_THREAD_NAME concode_field_sep void runFinishing concode_elem_sep IExecutionMonitor getMonitor concode_elem_sep String getTestThreadName concode_elem_sep void exceptionCaught concode_elem...
void function ( ) { getMonitor ( ) . waitUntilFinished ( ) ; }
1,028
compute the cosine for the given complex argument . concode_field_sep PlaceHolder placeHolder concode_field_sep Complex tan concode_elem_sep Complex sqrt1z concode_elem_sep Complex log concode_elem_sep Complex sinh concode_elem_sep Complex acos concode_elem_sep Complex atan concode_elem_sep Complex cosh concode_elem_se...
Complex function ( Complex arg0 ) { if ( arg0 . isNaN ( ) ) { return Complex . NaN ; } double loc0 = arg0 . getReal ( ) ; double loc1 = arg0 . getImaginary ( ) ; return new Complex ( Math . cos ( loc0 ) * MathUtils . cosh ( loc1 ) , - Math . sin ( loc0 ) * MathUtils . sinh ( loc1 ) ) ; }
1,029
currently the server responds with an json object wrapped in a json array . we need to strip the array . concode_field_sep String POST_VIDEO_DATA concode_elem_sep String GET_PROJECT_DATA concode_elem_sep String GET_VIDEO_DATA concode_elem_sep String host concode_elem_sep String POST_PROJECT_DATA concode_field_sep Strin...
String function ( String arg0 ) { return arg0 . substring ( 1 , arg0 . length ( ) - 1 ) ; }
1,030
returns escaped absolute path of given file instance . concode_field_sep PlaceHolder placeHolder concode_field_sep String escapePath
String function ( File arg0 ) { return escapePath ( Objects . requireNonNull ( arg0 , "srini_string" ) . getAbsolutePath ( ) ) ; }
1,031
write the script tag with code content . no html escaping applied . w3c has recommended that all scripts within an xhtml document be escaped using cdata sections . concode_field_sep T canvas concode_field_sep T stylesheet concode_elem_sep T favicon concode_elem_sep T javascript concode_elem_sep T cdata
T function ( String arg0 ) { return ( T ) canvas . script ( type ( "srini_string" ) ) . cdata ( ) . write ( arg0 , NO_ESCAPE ) . _cdata ( ) . _script ( ) ; }
1,032
down-grade locks to none for all entities in this context concode_field_sep ManagedEntity head concode_elem_sep boolean dirty concode_elem_sep ManagedEntity next concode_elem_sep IdentityHashMap<Object,ManagedEntity> nonEnhancedEntityXref concode_elem_sep Object entityInstance concode_elem_sep ManagedEntity previous co...
void function ( ) { if ( head == null ) { return ; } ManagedEntity loc0 = head ; while ( loc0 != null ) { loc0 . $$_hibernate_getEntityEntry ( ) . setLockMode ( LockMode . NONE ) ; loc0 = loc0 . $$_hibernate_getNextManagedEntity ( ) ; } }
1,033
run this runnable as a transaction . concode_field_sep StackListener stackListener concode_elem_sep CommandStackTransaction UNCHECKED_TRANSACTION concode_elem_sep CommandStack stack concode_elem_sep List<Object> commands concode_elem_sep long TRANSACTION_TIMEOUT concode_elem_sep boolean started concode_field_sep boolea...
Object function ( UIRunnable arg0 , IUIContext arg1 ) { start ( ) ; try { Object loc0 = arg0 . runWithResult ( ) ; arg1 . wait ( TransactionCompleteCondition . forTransaction ( this ) , TRANSACTION_TIMEOUT ) ; return loc0 ; } finally { stop ( ) ; } }
1,034
sets data , offset , length and header of this buffer to that buffer . note that this method creates copies of the data and header , so that these fields in that buffer can be discarded without affecting the contents of this buffer . fixme - this method does not always create a copy !! concode_field_sep Rational timeSt...
void function ( Buffer arg0 ) { this . offset = arg0 . offset ; this . length = arg0 . length ; this . data = copy ( arg0 . data , this . data ) ; this . header = copy ( arg0 . header , this . header ) ; }
1,035
this method fetches the regular expression value of the key that you are providing . the regular expressions are stored in the regularexp.properties file . concode_field_sep String EMPTY_STRING concode_elem_sep String regularExpPropertyFileLocation concode_elem_sep Properties messagesProperties concode_elem_sep Propert...
String function ( String arg0 ) { if ( arg0 == null || arg0 . isEmpty ( ) ) return EMPTY_STRING ; return regularExpproperties . getProperty ( arg0 ) ; }
1,036
add one tag processor that handles multiple tags . concode_field_sep TagProcessor proc concode_elem_sep String className concode_elem_sep Map<String,FactoryObject> map concode_field_sep TagProcessor getProcessor concode_elem_sep TagProcessor getProcessor concode_elem_sep TagProcessor load concode_elem_sep TagProcessor ...
void function ( final String arg0 , final String ... arg1 ) { for ( String loc0 : arg1 ) { addProcessor ( loc0 , arg0 ) ; } }
1,037
compares object references for equality . concode_field_sep PlaceHolder placeHolder concode_field_sep int computeHashCode
boolean function ( T arg0 , T arg1 ) { return arg0 == arg1 ; }
1,038
puts the given key and value into this map according to the contract of #put object , object except that the value of an existing key mayonly be updated if allowupdate = true . concode_field_sep SortedMap<K,V> kSmallest concode_elem_sep int maxSize concode_field_sep boolean containsKey concode_elem_sep Collection<V> va...
boolean function ( final K arg0 , final V arg1 , final boolean arg2 ) { if ( ! arg2 && kSmallest . containsKey ( arg0 ) ) { return false ; } return put ( arg0 , arg1 ) ; }
1,039
adds all column or formula elements . concode_field_sep PlaceHolder placeHolder concode_field_sep Element addNativelyGeneratedId concode_elem_sep Element addColumn concode_elem_sep Element addColumn concode_elem_sep void addColumn concode_elem_sep void addColumns concode_elem_sep String getModifiedFlagPropertyName conc...
void function ( Element arg0 , Iterator arg1 ) { while ( arg1 . hasNext ( ) ) { final Object loc0 = arg1 . next ( ) ; if ( loc0 instanceof Column ) { addColumn ( arg0 , ( Column ) loc0 ) ; } else if ( loc0 instanceof Formula ) { addFormula ( arg0 , ( Formula ) loc0 ) ; } } }
1,040
print the message for a log entry to the specified file concode_field_sep ILog sysOutLog concode_elem_sep String PRODUCT_ID concode_elem_sep PrintWriter sysOut concode_elem_sep ILog log concode_field_sep void setLog concode_elem_sep void printLogObject concode_elem_sep void removeLogListener concode_elem_sep void log c...
void function ( PrintWriter arg0 , String arg1 ) { if ( arg1 != null ) { arg0 . println ( arg1 ) ; } }
1,041
gets the value of the omit property . concode_field_sep Keepalive keepalive concode_elem_sep Omit omit concode_field_sep void setOmit concode_elem_sep void setKeepalive concode_elem_sep Keepalive getKeepalive
Omit function ( ) { return omit ; }
1,042
prints out the current thread stack to the given stream . concode_field_sep ExceptionUtil instance concode_field_sep ExceptionUtil instance
void function ( PrintStream arg0 ) { StackTraceElement [ ] loc0 = Thread . currentThread ( ) . getStackTrace ( ) ; String loc1 = StringUtil . arrayToString ( loc0 , "srini_string" ) ; arg0 . println ( loc1 ) ; }
1,043
the vm name of the class . concode_field_sep String name concode_elem_sep boolean[] probes concode_elem_sep long id concode_field_sep void merge concode_elem_sep void merge concode_elem_sep boolean[] getProbes concode_elem_sep void reset concode_elem_sep long getId concode_elem_sep String toString concode_elem_sep void...
String function ( ) { return name ; }
1,044
return the native logger instance we are using . 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 debug concode_elem...
Logger function ( ) { if ( logger == null ) { logger = Logger . getLogger ( name ) ; } return ( this . logger ) ; }
1,045
number of comparators in the current comparatorchain . concode_field_sep BitSet orderingBits concode_elem_sep List comparatorChain concode_elem_sep boolean isLocked concode_elem_sep long serialVersionUID concode_field_sep int compare concode_elem_sep void checkLocked concode_elem_sep void setComparator concode_elem_sep...
int function ( ) { return comparatorChain . size ( ) ; }
1,046
converts given array to an iterable concode_field_sep PlaceHolder placeHolder concode_field_sep Object getMapValue concode_elem_sep void setProperty concode_elem_sep Collection<String> getPropertyKeys concode_elem_sep int length concode_elem_sep boolean isArray concode_elem_sep Object getArrayIndex concode_elem_sep Obj...
Iterable < ? extends Object > function ( Object arg0 ) { if ( isArray ( arg0 ) ) return ( ( Iterable ) arg0 ) ; else throw new JsonPathException ( "srini_string" + arg0 != null ? arg0 . getClass ( ) . getName ( ) : "srini_string" ) ; }
1,047
get the zero element . 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 isField con...
BigDecimal function ( ) { return ZERO ; }
1,048
retrieve the name of the team concode_field_sep Player[] players concode_elem_sep String name concode_field_sep int hashCode concode_elem_sep boolean isValid concode_elem_sep boolean equals concode_elem_sep void addTeamToNotPlayedLists concode_elem_sep String toString concode_elem_sep Player[] getPlayers
String function ( ) { return name ; }
1,049
get the power series of the sinus function . concode_field_sep UnivPowerSeries<C> ZERO concode_elem_sep String DEFAULT_NAME concode_elem_sep int truncate concode_elem_sep String var concode_elem_sep int DEFAULT_TRUNCATE concode_elem_sep UnivPowerSeries<C> ONE concode_elem_sep RingFactory<C> coFac concode_elem_sep Rando...
UnivPowerSeries < C > function ( ) { return fixPoint ( new PowerSeriesMap < C > ( ) { public UnivPowerSeries < C > map ( UnivPowerSeries < C > arg0 ) { return arg0 . negate ( ) . integrate ( coFac . getONE ( ) ) . integrate ( coFac . getZERO ( ) ) ; } } ) ; }
1,050
looks up the dhtobject associated with key in the local database . concode_field_sep Map<KademliaOverlayKey,KademliaIndexEntry> index concode_elem_sep ComponentsConfig config concode_field_sep void refreshIndex concode_elem_sep void putInitialDataItem concode_elem_sep Map<KademliaOverlayKey,DHTObject> getEntries concod...
DHTObject function ( final KademliaOverlayKey arg0 ) { final KademliaIndexEntry loc0 = index . get ( arg0 ) ; if ( loc0 == null ) { return null ; } else if ( loc0 . hasExpired ( ) ) { index . remove ( arg0 ) ; return null ; } return loc0 . getValue ( ) ; }
1,051
gets the sha-1 hash of the completed piece as a byte array concode_field_sep TorrentFilePiecesState state concode_elem_sep BitSet slices concode_elem_sep BitSet loadingSlices concode_elem_sep int maxSlices concode_elem_sep int size concode_elem_sep byte[] data concode_elem_sep TimerTask[] loadingTasks concode_elem_sep ...
byte [ ] function ( ) { return hash ; }
1,052
erase the whole line 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> valid concode_elem_sep char ESCAPED_CHARACTER_VALUE concode_elem_sep List<Integer> off...
void function ( ) { for ( int loc0 = 0 ; loc0 < valid . size ( ) ; loc0 ++ ) { valid . set ( loc0 , false ) ; } erased = true ; }
1,053
carbon concode_field_sep MacExtensions MacExt concode_field_sep Rectangle win32_getBounds concode_elem_sep Rectangle win32_getBounds concode_elem_sep MenuItem[] getItems concode_elem_sep Menu[] getMenus concode_elem_sep Menu[] getMenus concode_elem_sep boolean isMacAccessibilityDisabled concode_elem_sep boolean parentI...
Rectangle function ( TabItem arg0 ) { Rectangle loc0 = MacExt . getTabItemBounds ( arg0 ) ; return loc0 ; }
1,054
getter for the roman number generator instance . concode_field_sep RomanNumeralGenerator romanNumeralGenerator concode_field_sep void start concode_elem_sep void main concode_elem_sep void setRomanNumeralGenerator
RomanNumeralGenerator function ( ) { return romanNumeralGenerator ; }
1,055
starts the analyzer which starts the statisticgernerationevent concode_field_sep long receivedBytes concode_elem_sep int sentMsg concode_elem_sep int receivedMsg concode_elem_sep StatisticGenerationEvent event concode_elem_sep long sentBytes concode_elem_sep Logger log concode_field_sep double[] getSentBytes concode_el...
void function ( ) { event = new StatisticGenerationEvent ( this ) ; event . writerStarted ( ) ; event . scheduleImmediatly ( ) ; receivedBytes = 0 ; sentBytes = 0 ; receivedMsg = 0 ; sentMsg = 0 ; }
1,056
initializes this image manager . nothing happens if this method is invoked after a previous initialization . this method is not supposed to be invoked more than once . concode_field_sep String T_LCL concode_elem_sep String T_TOOL concode_elem_sep URL iconBaseURL concode_elem_sep ImageRegistry imageRegistry concode_elem...
void function ( URL arg0 , ImageRegistry arg1 ) { this . iconBaseURL = arg0 ; this . imageRegistry = arg1 ; }
1,057
returns -1 if the first argument is the default working set , 1 if the second argument is the default working set and if the boolean fisotherworkingsetontop is set , to keep the default working set on top while sorting . concode_field_sep boolean fIsOtherWorkingSetOnTop concode_elem_sep Collator fCollator concode_field...
int function ( IWorkingSet arg0 , IWorkingSet arg1 ) { if ( fIsOtherWorkingSetOnTop && IWorkingSetIDs . OTHERS . equals ( arg0 . getId ( ) ) ) return - 1 ; if ( fIsOtherWorkingSetOnTop && IWorkingSetIDs . OTHERS . equals ( arg1 . getId ( ) ) ) return 1 ; return fCollator . compare ( arg0 . getLabel ( ) , arg1 . getLabe...
1,058
helper method to copy data based on partition concode_field_sep boolean dropAll concode_elem_sep RecordBatch incoming concode_elem_sep int DEFAULT_RECORD_BATCH_SIZE concode_elem_sep int outgoingRecordBatchSize concode_elem_sep int totalRecords concode_elem_sep org.slf4j.Logger logger concode_elem_sep int recordCount co...
void function ( int arg0 ) { int loc0 = doEval ( arg0 ) ; if ( loc0 >= start && loc0 < end ) { OutgoingRecordBatch loc1 = outgoingBatches . get ( loc0 - start ) ; loc1 . copy ( arg0 ) ; } }
1,059
sets the address stored in a localvariable to which this subroutine will return once it is finished . 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 int numPaths concode_elem_sep v...
void function ( final LocalVariable arg0 ) { this . returnAddress = arg0 ; }
1,060
getter to find out if the signature is a certification signature . concode_field_sep boolean certification concode_elem_sep boolean fillInAllowed concode_elem_sep boolean annotationsAllowed concode_elem_sep PdfName action concode_elem_sep PdfArray fields concode_elem_sep List<FieldLock> fieldLocks concode_field_sep Lis...
boolean function ( ) { return certification ; }
1,061
adds an array of cookie http cookies . cookies are added individually and in the given array order . if any of the given cookies has already expired it will not be added , but existing values will still be removed . concode_field_sep long serialVersionUID concode_elem_sep TreeSet<Cookie> cookies concode_field_sep void ...
void function ( final Cookie [ ] arg0 ) { if ( arg0 != null ) { for ( final Cookie loc0 : arg0 ) { this . addCookie ( loc0 ) ; } } }
1,062
called to write a string . may be overridden for alternate string 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 void w...
void function ( Schema arg0 , Object arg1 , Encoder arg2 ) { writeString ( arg1 , arg2 ) ; }
1,063
get the post-construct interceptors for client proxy instances . this method should only be called after all interceptors have been added . concode_field_sep Map<Class<?>,Object> privateData concode_elem_sep ViewInstanceFactory viewInstanceFactory concode_elem_sep Set<Method> asyncMethods concode_elem_sep ServiceName v...
List < InterceptorFactory > function ( ) { return clientPostConstructInterceptors . getSortedItems ( ) ; }
1,064
parse a vector from a reader . concode_field_sep GenVector<C> ZERO concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep int cols concode_elem_sep List<GenVector<C>> BASIS concode_elem_sep Random random concode_elem_sep float DEFAULT_DENSITY concode_field_s...
GenVector < C > function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
1,065
returns the error message from the computers in this category . concode_field_sep String fId concode_elem_sep boolean fIsEnabled concode_elem_sep IConfigurationElement fElement concode_elem_sep boolean fNeedsSortingAfterFiltering concode_elem_sep boolean fIsIncluded concode_elem_sep String ICON concode_elem_sep Express...
String function ( ) { return fLastError ; }
1,066
returns a string representing the projpoint in the format : projcoordinate x y z . example : projcoordinate 6241.11 5218.25 12.3 concode_field_sep DecimalFormat DECIMAL_FORMAT concode_elem_sep double x concode_elem_sep String DECIMAL_FORMAT_PATTERN concode_elem_sep double y concode_elem_sep double z concode_field_sep S...
String function ( ) { StringBuilder loc0 = new StringBuilder ( ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . x ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . y ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . z ) ; loc0 . append ( "srini_string" ) ; return loc0 . toString ( )...
1,067
validate that the argument condition is true ; otherwise throwing an exception with the specified message . this method is useful when validating according to an arbitrary boolean expression , such as validating a primitive number or using your own custom validation expression . validate.istrue i > 0.0 , `` the value m...
void function ( boolean arg0 , String arg1 ) { if ( arg0 == false ) { throw new IllegalArgumentException ( arg1 ) ; } }
1,068
returns the paths a collection of two-element arrays of blocks that represent the blocks that end in a call to this subroutine and the block that begin with the return address from this subroutine . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_sep ArrayList paths concode_elem_sep FlowGraph gra...
Collection function ( ) { return paths ; }
1,069
power of a to the n-th . concode_field_sep boolean debug concode_elem_sep RingFactory<C> fac concode_elem_sep Logger logger concode_field_sep C modPower concode_elem_sep C modPower concode_elem_sep C positivePower concode_elem_sep C modPositivePower
C function ( C arg0 , long arg1 ) { return power ( fac , arg0 , arg1 ) ; }
1,070
resolve the column name/alias to its index concode_field_sep ConcurrentHashMap<String,Integer> columnNameToIndexCache concode_elem_sep float LOAD_FACTOR concode_field_sep placeholderType placeHolder
Integer function ( String arg0 , ResultSet arg1 ) { final Integer loc0 = columnNameToIndexCache . get ( arg0 ) ; if ( loc0 != null ) { return loc0 ; } else { final Integer loc1 = Integer . valueOf ( arg1 . findColumn ( arg0 ) ) ; columnNameToIndexCache . put ( arg0 , loc1 ) ; return loc1 ; } }
1,071
convert a duration to the number of seconds . the result will be rounded towards 0 to the nearest second . e.g. , if the duration represents -1 nanosecond , it will be rounded to 0 . concode_field_sep long DURATION_SECONDS_MAX concode_elem_sep long DURATION_SECONDS_MIN concode_elem_sep Duration MAX_VALUE concode_elem_s...
long function ( Duration arg0 ) { return checkValid ( arg0 ) . getSeconds ( ) ; }
1,072
is local zero . concode_field_sep Logger logger concode_elem_sep LocalRing<C> ring concode_elem_sep boolean debug concode_elem_sep C num concode_elem_sep int isunit concode_elem_sep C den concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Local<C> inverse concode_elem_sep boolean isUnit concod...
boolean function ( ) { return num . isZERO ( ) ; }
1,073
return the audio resource id of the word . concode_field_sep int mAudioResourceId concode_elem_sep String mDefaultTranslation concode_elem_sep int mImageResourceId concode_elem_sep int NO_IMAGE_PROVIDED concode_elem_sep String mMiwokTranslation concode_field_sep String getDefaultTranslation concode_elem_sep boolean has...
int function ( ) { return mAudioResourceId ; }
1,074
set the last char concode_field_sep StringBuilder currentEntity concode_elem_sep StringBuilder comment concode_elem_sep String currentTag concode_elem_sep boolean isHtml concode_elem_sep String currentAttr concode_elem_sep char lastChar concode_elem_sep String wsTag concode_elem_sep String storedString concode_elem_sep...
void function ( final char arg0 ) { this . lastChar = arg0 ; }
1,075
gets byte value form cursor for column index . concode_field_sep PlaceHolder placeHolder concode_field_sep Long getLong concode_elem_sep Character getChar concode_elem_sep Integer getInt concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bin...
Byte function ( @ NonNull Cursor arg0 , int arg1 ) { if ( arg0 . isNull ( arg1 ) ) { return null ; } return ( byte ) arg0 . getInt ( arg1 ) ; }
1,076
checks if the given resources are in sync with the underlying file system . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isReadOnly concode_elem_sep IStatus addModified concode_elem_sep int getSelectedResourceTypes concode_elem_sep IStatus addOutOfSync concode_elem_sep boolean containsOnlyProject...
IStatus function ( IResource [ ] arg0 ) { IStatus loc0 = null ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { IResource loc2 = arg0 [ loc1 ] ; if ( ! loc2 . isSynchronized ( IResource . DEPTH_INFINITE ) ) { loc0 = addOutOfSync ( loc0 , loc2 ) ; } } if ( loc0 != null ) return loc0 ; return Status . OK_STATUS ;...
1,077
log a message with trace log level . concode_field_sep Date date concode_elem_sep int LOG_LEVEL_DEBUG concode_elem_sep int level concode_elem_sep Throwable throwable concode_elem_sep List logEntries concode_elem_sep int LOG_LEVEL_OFF concode_elem_sep Object message concode_elem_sep int LOG_LEVEL_WARN concode_elem_sep i...
void function ( Object arg0 ) { if ( isLevelEnabled ( MemoryLog . LOG_LEVEL_TRACE ) ) { log ( MemoryLog . LOG_LEVEL_TRACE , arg0 , null ) ; } }
1,078
gets the predicate being decorated . concode_field_sep long serialVersionUID concode_elem_sep Predicate iPredicate concode_field_sep Predicate getInstance concode_elem_sep boolean evaluate
Predicate [ ] function ( ) { return new Predicate [ ] { iPredicate } ; }
1,079
replace the deserialized instance with its associated static object required for proper serialization . concode_field_sep String TOGGLE_SPY_LABEL concode_elem_sep IRecorderSemanticEvent DISPOSE concode_elem_sep String PAUSE_LABEL concode_elem_sep IRecorderSemanticEvent RESTART concode_elem_sep IRecorderSemanticEvent TO...
Object function ( ) { return get ( name ) ; }
1,080
default implementation that simply calls thread #sleep long . concode_field_sep long timeout concode_elem_sep int interval concode_field_sep boolean isTrue concode_elem_sep void wait concode_elem_sep void wait concode_elem_sep boolean timedOut concode_elem_sep Timer withInterval concode_elem_sep void handleTimeout conc...
void function ( int arg0 ) { try { Thread . sleep ( arg0 ) ; } catch ( InterruptedException loc0 ) { } }
1,081
updates a reading list item with new meta data . concode_field_sep String LOGTAG concode_elem_sep ContentObserver contentObserver concode_elem_sep Context context concode_elem_sep OnReadingListEventListener onReadingListEventListener concode_elem_sep boolean fetchInBackground concode_elem_sep ReadingListAccessor readin...
void function ( final NativeJSObject arg0 ) { final ContentResolver loc0 = context . getContentResolver ( ) ; final ContentValues loc1 = getContentValues ( arg0 ) ; ThreadUtils . postToBackgroundThread ( new Runnable ( ) { @ Override public void run ( ) { readingListAccessor . updateReadingListItem ( loc0 , loc1 ) ; } ...
1,082
return the job prefix which is the same as the file name . concode_field_sep Logger log concode_elem_sep Path file concode_elem_sep String prefix concode_elem_sep FileChannel channel concode_elem_sep FileLock lock concode_field_sep JobPrefixFile tryFromExistingFile concode_elem_sep void release concode_elem_sep void de...
String function ( ) { return prefix ; }
1,083
asserts that two chars are equal . if they are not an assertionfailederror is thrown with the given message . concode_field_sep PlaceHolder placeHolder concode_field_sep void fail concode_elem_sep void fail concode_elem_sep void assertNull concode_elem_sep void assertNull concode_elem_sep void assertTrue concode_elem_s...
void function ( String arg0 , char arg1 , char arg2 ) { assertEquals ( arg0 , new Character ( arg1 ) , new Character ( arg2 ) ) ; }
1,084
returns whether mouse buttons 2/3 are swapped when using robot . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenerationBug concode_elem_sep boolean hasKeyStrokeGenerationBug concode_elem...
boolean function ( ) { return Platform . isOSX ( ) && Platform . JAVA_VERSION >= Platform . JAVA_1_4 && Platform . JAVA_VERSION <= 0x1425 ; }
1,085
this method returns the value of the database column sys_ip_area . province concode_field_sep String areaCode concode_elem_sep String IPCODE_UNKNOWN concode_elem_sep String city concode_elem_sep String province concode_elem_sep String edu concode_elem_sep String district concode_elem_sep String company concode_elem_sep...
String function ( ) { return province ; }
1,086
build a lobcreator using the given context concode_field_sep boolean useContextualLobCreation concode_elem_sep Object[] NO_ARGS concode_elem_sep Class[] NO_ARG_SIG concode_elem_sep CoreMessageLogger LOG concode_field_sep boolean useContextualLobCreation
LobCreator function ( LobCreationContext arg0 ) { return useContextualLobCreation ? new ContextualLobCreator ( arg0 ) : NonContextualLobCreator . INSTANCE ; }
1,087
returns default parameters for debug builds . concode_field_sep boolean skip concode_elem_sep boolean runModule concode_elem_sep boolean minify concode_elem_sep boolean dev concode_elem_sep boolean inlineSourceMap concode_field_sep PackagerParams releaseDefaults concode_elem_sep PackagerParams getPackagerParams concode...
PackagerParams function ( ) { PackagerParams loc0 = new PackagerParams ( ) ; loc0 . dev = true ; loc0 . inlineSourceMap = false ; loc0 . minify = false ; loc0 . runModule = true ; loc0 . skip = true ; return loc0 ; }
1,088
pass interpreteroutput to capture the repl output concode_field_sep Logger logger concode_elem_sep String scriptPath concode_elem_sep Integer rScriptInitializeNotifier concode_elem_sep Integer rRequestNotifier concode_elem_sep String rCmdPath concode_elem_sep Integer rResponseNotifier concode_elem_sep InterpreterOutput...
void function ( InterpreterOutput arg0 ) { outputStream . setInterpreterOutput ( arg0 ) ; }
1,089
this method calculates the score of this query with all the documents and sort the score map in the reverse order of value . concode_field_sep Map<Integer,Double> docRankingByW1 concode_elem_sep HashMap<String,Integer> documentNameIdMap concode_elem_sep Map<String,Integer> queryIndex concode_elem_sep List<String> stopW...
void function ( ) { for ( Integer loc0 : FileUtils . documentIdMap . keySet ( ) ) { calculateByW1 ( loc0 ) ; } this . docRankingByW1 = Util . sortByValue ( docRankingByW1 ) ; documentNameIdMap = FileUtils . documentNameIdMap ; }
1,090
gets a uniformly distributed random value with mean = mu . concode_field_sep int DIGEST_MODE concode_elem_sep BufferedReader filePointer concode_elem_sep int CONSTANT_MODE concode_elem_sep int mode concode_elem_sep double mu concode_elem_sep EmpiricalDistribution empiricalDistribution concode_elem_sep URL valuesFileURL...
double function ( ) { return randomData . nextUniform ( 0 , 2 * mu ) ; }
1,091
returns a string describing a method declaration . it contains the access flags public , private , static , etc , the return type , the method name , and the types of each of its arguments . concode_field_sep boolean skip_checks concode_elem_sep Type string_array concode_field_sep void add_line_numbers concode_elem_sep...
String function ( Method arg0 ) { StringBuilder loc0 = new StringBuilder ( ) ; Formatter loc1 = new Formatter ( loc0 ) ; loc1 . format ( "srini_string" , get_access_flags ( arg0 ) , arg0 . getReturnType ( ) , arg0 . getName ( ) ) ; for ( Type loc2 : arg0 . getArgumentTypes ( ) ) { loc1 . format ( "srini_string" , loc2 ...
1,092
test that transformation from second transformer is applied on transformed name obtained from first transformer . concode_field_sep String USER3 concode_elem_sep String USER2 concode_elem_sep PropertyFileBasedDomain chainedThreeTransformers concode_elem_sep String USER1 concode_elem_sep String ELYTRON_SECURITY_TRANSFOR...
void function ( @ ArquillianResource URL arg0 ) { URL loc0 = prepareUrl ( arg0 ) ; Utils . makeCallWithBasicAuthn ( loc0 , "srini_string" , PASSWORD3 , SC_OK ) ; }
1,093
acquires a buffered reader usable to read the contents of a file concode_field_sep PlaceHolder placeHolder concode_field_sep void deleteFile concode_elem_sep void copyFile concode_elem_sep BufferedWriter getWriter concode_elem_sep void main concode_elem_sep boolean fileExists concode_elem_sep String replaceFilename
BufferedReader function ( String arg0 ) { BufferedReader loc0 = new BufferedReader ( new FileReader ( arg0 ) ) ; return loc0 ; }
1,094
called when a section is written . position will hold the height at which the section will be written to . concode_field_sep PlaceHolder placeHolder concode_field_sep void onParagraph concode_elem_sep void onParagraphEnd concode_elem_sep void onOpenDocument concode_elem_sep void onSectionEnd concode_elem_sep void onEnd...
void function ( PdfWriter arg0 , Document arg1 , float arg2 , int arg3 , Paragraph arg4 ) { }
1,095
build a request body out of the phenotype given . concode_field_sep String IF_NONE_MATCH concode_elem_sep String GITHUB concode_elem_sep ObjectMapper mapper concode_elem_sep URL GITHUB_URL concode_elem_sep Repository repository concode_field_sep String getIssueEndpoint concode_elem_sep void patchIssue concode_elem_sep ...
byte [ ] function ( Phenotype arg0 ) { byte [ ] loc0 = mapper . writeValueAsBytes ( Issue . getRequestParams ( arg0 ) ) ; return loc0 ; }
1,096
time to live for a contact before it is considered offline concode_field_sep int numberOfReplicates concode_elem_sep long timeToLiveForContacts concode_elem_sep int numberOfPingTries concode_elem_sep long timeBetweenRootPings concode_elem_sep long timeBetweenReplicationChecks concode_elem_sep int numberOfReplicationTri...
long function ( ) { return Math . max ( timeToLiveForContacts , timeBetweenRootPings ) ; }
1,097
returns an index about where in the cache different variants for a given resource are stored . this maps `` variant keys '' to `` cache keys '' , where the variant key is derived from the varying request headers , and the cache key is the location in the ch.boye.httpclientandroidlib.client.cache.httpcachestorage where ...
Map < String , String > function ( ) { return Collections . unmodifiableMap ( variantMap ) ; }
1,098
returns all document sets that were declared in the xml config file . concode_field_sep Map<String,IDocumentSet> resources concode_elem_sep Map<IDocumentSet,Boolean> resourcesOfSetPublished concode_elem_sep int resourceOffset concode_elem_sep DocumentSpace inst concode_elem_sep MultiSet<Integer> publishedRanks concode_...
Collection < IDocumentSet > function ( ) { return Collections . unmodifiableCollection ( resources . values ( ) ) ; }
1,099
get the number of aliases that have specific lock modes defined . concode_field_sep Map<String,LockMode> aliasSpecificLockModes concode_elem_sep int NO_WAIT concode_elem_sep LockOptions NONE concode_elem_sep boolean scope concode_elem_sep int SKIP_LOCKED concode_elem_sep LockOptions READ concode_elem_sep LockOptions UP...
int function ( ) { if ( aliasSpecificLockModes == null ) { return 0 ; } return aliasSpecificLockModes . size ( ) ; }