code stringlengths 21 488 | instruction stringlengths 99 3.59k |
|---|---|
int function ( ) { _total = extractList ( ) . size ( ) ; return _total ; } | actually walks the bag to make sure the count is correct and resets the running total concode_field_sep Object _current concode_elem_sep int _total concode_elem_sep DefaultMapBag _parent concode_elem_sep Map _map concode_elem_sep int _mods concode_elem_sep Iterator _support concode_field_sep boolean add concode_elem_se... |
void function ( boolean arg0 ) { fStatementsRecovery = arg0 ; } | controls whether the compiler should perform statements recovery . to be effective , this method must be called before any of #getroot , #getastrewrite , #getimportremover . this method has no effect if the target object has been created with #compilationunitrewrite icompilationunit , compilationunit . defaults to true... |
boolean function ( ) { return false ; } | override and return true for database updates that produce changed class metadata concode_field_sep String _db4oVersion concode_elem_sep byte _db4oHeaderVersion concode_field_sep String fileName concode_elem_sep String fileName concode_elem_sep String getTempPath concode_elem_sep void runDefrag concode_elem_sep void ch... |
String function ( String arg0 ) { return ZKUtil . joinZNode ( getIdentitiesZNode ( ) , arg0 ) ; } | get identity znode . concode_field_sep String ENCRYPTION_KEY_NO_ZNODE_NAME concode_elem_sep String KEY_VERSION_ZNODE_NAME concode_elem_sep String PRINCIPAL_NAME_ZNODE_NAME concode_elem_sep String baseZNode concode_elem_sep String CREATED_TIME_ZNODE_NAME concode_elem_sep String KDC_FLAGS_ZNODE_NAME concode_elem_sep Stri... |
int function ( GenVector < C > arg0 ) { if ( ! modul . equals ( arg0 . modul ) ) { return - 1 ; } List < C > loc0 = arg0 . val ; int loc1 = 0 ; for ( C loc2 : val ) { int loc3 = loc2 . compareTo ( loc0 . get ( loc1 ++ ) ) ; if ( loc3 != 0 ) { return loc3 ; } } return 0 ; } | compareto , lexicogaphical comparison . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenVectorModul<C> modul concode_field_sep int signum concode_elem_sep GenVector<C> leftLinearCombination concode_elem_sep GenVector<C> rightScalarProduct concode_elem_sep GenVector<C> subtract concode_e... |
void function ( int arg0 , int arg1 ) { fTagPosition = new Region ( arg0 , arg1 ) ; } | sets the tag position if one is associated with the nls element . concode_field_sep Region fTagPosition concode_elem_sep String TAG_POSTFIX concode_elem_sep AccessorClassReference fAccessorClassReference concode_elem_sep boolean fIsEclipseNLS concode_elem_sep int TAG_PREFIX_LENGTH concode_elem_sep String TAG_PREFIX con... |
double function ( UnivariateRealFunction arg0 , double arg1 , double arg2 ) { setup ( arg0 ) ; return factory . newDefaultSolver ( arg0 ) . solve ( arg1 , arg2 ) ; } | convenience method to find a zero of a univariate real function . a default solver is used . concode_field_sep UnivariateRealSolverFactory factory concode_field_sep double[] bracket concode_elem_sep double[] bracket concode_elem_sep double midpoint concode_elem_sep void setup |
boolean function ( ) { return Platform . isWindows ( ) || Platform . isOSX ( ) || Platform . JAVA_VERSION < Platform . JAVA_1_3 ; } | do we get multiple clicks even when the individual clicks are on different frames ? 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 hasKeyStrokeGenerat... |
Integer function ( ) { return null == intervalQualifier ? null : intervalQualifier . getFractionalSecondPrecisionPreservingDefault ( ) ; } | gets the fractional second precision of the type qualifier of the interval data type descriptor of this field iff interval type . gets the interval type descriptor 's fractional second precision iff interval type . concode_field_sep SqlIntervalQualifier intervalQualifier concode_elem_sep Integer precision concode_elem_... |
byte [ ] function ( Drawable arg0 ) { return bitmapToByte ( drawableToBitmap ( arg0 ) ) ; } | convert drawable to byte array 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 Bitmap getBitmapFromUrl concode_elem_sep Bitmap getBitmapFromUrl conc... |
void function ( ) { migrationDone = false ; } | resets migration flag . should only be used in tests . concode_field_sep String APP_PREFS_NAME concode_elem_sep String PROFILE_PREFS_NAME_PREFIX concode_elem_sep String[] PROFILE_MIGRATIONS_0_TO_1 concode_elem_sep EnumSet<Flags> disableMigrations concode_elem_sep boolean migrationDone concode_elem_sep int PREFS_VERSION... |
void function ( ) { } | comment f1z 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 f concode_elem_sep void f11 concode_elem_sep void f1 concode_elem_sep void f2 |
Dialog function ( RefactoringStatus arg0 , Shell arg1 , String arg2 , boolean arg3 ) { return new RefactoringStatusDialog ( arg0 , arg1 , arg2 , arg3 ) ; } | creates a dialog to present a refactoringstatus to the user . thefollowing values are returned from the dialogs open method : org.eclipse.jface.dialogs.idialogconstants #ok_id idialogconstants #ok_id : if the user has pressed the continue button . org.eclipse.jface.dialogs.idialogconstants #cancel_id idialogconstants #... |
BaseColor function ( ) { return strokeColor ; } | gets the current stroke color concode_field_sep boolean knockout concode_elem_sep LineDashPattern lineDashPattern concode_elem_sep BaseColor fillColor concode_elem_sep float wordSpacing concode_elem_sep float leading concode_elem_sep BaseColor strokeColor concode_elem_sep int lineJoinStyle concode_elem_sep float miterL... |
void function ( ) { SecurityConfiguration . getApplicationPolicy ( "srini_string" ) ; } | test method for org.jboss.security.config.securityconfiguration #getapplicationpolicy java.lang.string . concode_field_sep PlaceHolder placeHolder concode_field_sep void testGetCipherAlgorithm concode_elem_sep void testSetIterationCount concode_elem_sep void testGetKeyStoreURL concode_elem_sep void testGetSalt concode_... |
Transformer [ ] function ( Transformer [ ] arg0 ) { if ( arg0 == null ) { return null ; } return ( Transformer [ ] ) arg0 . clone ( ) ; } | copy method concode_field_sep PlaceHolder placeHolder concode_field_sep void validateMin2 concode_elem_sep void validate concode_elem_sep Predicate[] validate concode_elem_sep void validate concode_elem_sep void validate |
int function ( ) { return this . getMarcador ( ) ; } | abre el libro y retorna el marcador con la pagina actual concode_field_sep String dimensiones concode_elem_sep int numeroPaginas concode_elem_sep String titulo concode_elem_sep String colorPortada concode_elem_sep String autor concode_elem_sep int marcador concode_field_sep void setColorPortada concode_elem_sep void se... |
IJavaElement function ( JavaEditor arg0 , boolean arg1 ) { ITypeRoot loc0 = getInput ( arg0 , arg1 ) ; if ( loc0 != null ) return getElementAtOffset ( loc0 , ( ITextSelection ) arg0 . getSelectionProvider ( ) . getSelection ( ) ) ; return null ; } | returns the element surrounding the selection of the given editor . 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 IJavaEle... |
LoadPlan function ( LoadPlanBuildingAssociationVisitationStrategy arg0 , EntityPersister arg1 ) { MetamodelGraphWalker . visitEntity ( arg0 , arg1 ) ; return arg0 . buildLoadPlan ( ) ; } | coordinates building a loadplan that defines just a single root entity return may have fetches . typically this includes building load plans for entity loading or cascade loading . concode_field_sep PlaceHolder placeHolder concode_field_sep LoadPlan buildRootCollectionLoadPlan |
HG function ( HG arg0 ) { MathVector loc0 = new MathVector ( ) ; loc0 . subtraction ( pos , arg0 . pos0 ) ; double loc1 = loc0 . dotProduct ( ) + ( EPS * EPS ) ; double loc2 = Math . sqrt ( loc1 ) ; double loc3 = mass / loc2 ; arg0 . phi0 -= loc3 ; double loc4 = loc3 / loc1 ; loc0 . multScalar ( loc4 ) ; arg0 . acc0 . ... | compute a single body-body or body-cell interaction concode_field_sep MathVector acc0 concode_elem_sep MathVector pos concode_elem_sep double mass concode_elem_sep int IMAX concode_elem_sep MathVector pos0 concode_elem_sep double phi0 concode_elem_sep double EPS concode_elem_sep Body pskip concode_field_sep Node loadTr... |
void function ( String arg0 ) { this . catalogName = arg0 ; } | set the name of the catalog to be searched , ornull to search the default catalog . concode_field_sep String name concode_elem_sep String catalogName concode_elem_sep boolean optional concode_elem_sep String nameKey concode_field_sep void setName concode_elem_sep String getNameKey concode_elem_sep String getName concod... |
ColumnValues < T > function ( int arg0 ) { return new ColumnValues < T > ( columns [ arg0 ] ) ; } | return an iterator over values in a column . concode_field_sep ColumnFileMetaData metaData concode_elem_sep Map<String,ColumnDescriptor> columnsByName concode_elem_sep Input file concode_elem_sep ColumnDescriptor[] columns concode_elem_sep long rowCount concode_elem_sep int columnCount concode_field_sep ColumnMetaData[... |
void function ( State arg0 ) { setSyncResultSoftError ( ) ; latch . offer ( Result . Error ) ; } | when the login machine terminates , we might not be in the married state , and therefore we ca n't sync . this method messages as much to the user . to avoid stopping us syncing altogether , we set a soft error rather than a hard error . in future , we would like to set a hard error if we are in , for example , the sep... |
IMember function ( IMember arg0 ) { final LinkedList < IMember > loc0 = new LinkedList < > ( ) ; addElements ( arg0 , loc0 ) ; final IMember [ ] loc1 = convertElements ( loc0 . toArray ( new IMember [ 0 ] ) ) ; return loc1 [ loc1 . length - 1 ] ; } | converts the handle . handle need not exist , but must be a source reference . concode_field_sep IType fOldType concode_elem_sep IType fNewType concode_elem_sep Map<IJavaElement,String> fRefactoredSimilarElements concode_field_sep IMember resolveTypeInMember concode_elem_sep String resolveTypeName concode_elem_sep IMem... |
Rational function ( int arg0 ) { VideoTrack loc0 = tracks . get ( arg0 ) ; return new Rational ( loc0 . count , 30 ) ; } | returns the sampleduration of the track in seconds . concode_field_sep Buffer outputBuffer concode_elem_sep Codec codec concode_elem_sep Buffer inputBuffer concode_elem_sep ArrayList<VideoTrack> tracks concode_elem_sep String nameFormat concode_elem_sep Format videoFormat concode_elem_sep int count concode_elem_sep int... |
void function ( ) { int loc0 = rand . nextInt ( size ) ; int loc1 = rand . nextInt ( size ) ; log . debug ( "srini_string" + Simulator . getCurrentTime ( ) + "srini_string" + loc0 + "srini_string" + loc1 ) ; keyPopularity . add ( loc1 , keyPopularity . remove ( loc0 ) ) ; getKeyForLookup ( ) ; } | does a popularity reorder on this document set . concode_field_sep boolean configured concode_elem_sep Distribution reorderIntvlDist concode_elem_sep boolean useRanks concode_elem_sep double zipfExp concode_elem_sep long meanReorderIntvl concode_elem_sep RandomGenerator rand concode_elem_sep String name concode_elem_se... |
List function ( ) { return list ; } | gets the child scripts that make up this block . this list is live so that it can be modified if requried concode_field_sep List list concode_field_sep void addScript concode_elem_sep Script compile concode_elem_sep void trimWhitespace concode_elem_sep String toString concode_elem_sep void run concode_elem_sep void rem... |
boolean function ( @ NotNull ResourceEntity arg0 , @ NotNull ReleaseEntity arg1 ) { return arg0 . equals ( getResourceEntityForRelease ( arg0 . getResourceGroup ( ) , arg1 ) ) ; } | analyzes if the given resource is the best matching for the given release . returns true if so , false otherwise . concode_field_sep ResourceReleaseComparator resourceReleaseComparator concode_field_sep List<ResourceEntity> getAllFutureReleases concode_elem_sep int compare concode_elem_sep boolean isBestMatchingPastRel... |
URI function ( ) { return uri ; } | get the docker rest uri . concode_field_sep String address concode_elem_sep int port concode_elem_sep String host concode_elem_sep String DEFAULT_HOST concode_elem_sep String DEFAULT_UNIX_ENDPOINT concode_elem_sep int DEFAULT_PORT concode_elem_sep URI uri concode_elem_sep String dockerCertPath concode_field_sep int def... |
Getcontentlanguage function ( ) { return getcontentlanguage ; } | gets the value of the getcontentlanguage property . concode_field_sep Owner owner concode_elem_sep PrincipalURL principalURL concode_elem_sep Creationdate creationdate concode_elem_sep Getlastmodified getlastmodified concode_elem_sep Getcontentlanguage getcontentlanguage concode_elem_sep Getetag getetag concode_elem_se... |
boolean function ( ) { return coalescing ; } | indicates whether or not the factory is configured to produce parsers which converts cdata nodes to text nodes and appends it to the adjacent if any text node . concode_field_sep boolean validating concode_elem_sep boolean namespaceAware concode_elem_sep boolean whitespace concode_elem_sep boolean expandEntityRef conco... |
int function ( ) { return this . leased ; } | gets the number of persistent connections tracked by the connection manager currently being used to execute requests . the total number of connections in the pool is equal to available plus leased . concode_field_sep int leased concode_elem_sep int max concode_elem_sep int pending concode_elem_sep int available concode... |
void function ( Object arg0 , Throwable arg1 ) { if ( is12 ) { getLogger ( ) . log ( FQCN , ( Priority ) Level . ERROR , arg0 , arg1 ) ; } else { getLogger ( ) . log ( FQCN , Level . ERROR , arg0 , arg1 ) ; } } | log an error to the log4j logger with error 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 debug concod... |
Element function ( Node arg0 , String arg1 ) { NodeList loc0 = arg0 . getChildNodes ( ) ; for ( int loc1 = 0 ; loc1 < loc0 . getLength ( ) ; loc1 ++ ) { Node loc2 = loc0 . item ( loc1 ) ; if ( loc2 . getNodeType ( ) == Node . ELEMENT_NODE && arg1 . equals ( loc2 . getNodeName ( ) ) ) return ( Element ) loc2 ; } return ... | returns the first child element of a node that matches the given tag name . concode_field_sep PlaceHolder placeHolder concode_field_sep List<Element> getAllChildElemsMatching |
String function ( ) { return fcLink ; } | gets the value of the fclink property . concode_field_sep String fcLink concode_elem_sep String localPortID concode_elem_sep String displayName concode_elem_sep String fcKey concode_elem_sep ProvidedPortID id concode_elem_sep List<PropertyDeclaration> properties concode_elem_sep String resourceType concode_field_sep St... |
boolean function ( ) { return ( type == DICTIONARY ) ; } | checks if this pdfobject is of the type pdfdictionary . concode_field_sep int INDIRECT concode_elem_sep int STRING concode_elem_sep int DICTIONARY concode_elem_sep int NULL concode_elem_sep int NUMBER concode_elem_sep int type concode_elem_sep int NAME concode_elem_sep String NOTHING concode_elem_sep int BOOLEAN concod... |
void function ( int arg0 ) { this . n = arg0 ; } | set removed pair number . concode_field_sep boolean useCriterion4 concode_elem_sep ColorPolynomial<C> pi concode_elem_sep int i concode_elem_sep ColorPolynomial<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 ... |
List < GenSolvablePolynomial < C >> function ( int arg0 , List < GenSolvablePolynomial < C >> arg1 ) { return sbb . twosidedGB ( arg0 , arg1 ) ; } | twosided groebner base using pairlist class . concode_field_sep SolvableGroebnerBase<C> sbb concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep List<GenSolvablePolynomial<C>> leftGB concode_elem_sep ModuleList<C> leftGB concode_elem_sep boolean isTwosidedGB concode_elem_sep boolean isTwoside... |
void function ( boolean arg0 ) { fResolveBindings = arg0 ; } | controls whether the compiler should provide binding information for the ast nodes it creates . to be effective , this method must be called before any of #getroot , #getastrewrite , #getimportremover . this method has no effect if the target object has been created with #compilationunitrewrite icompilationunit , compi... |
void function ( int arg0 ) { int [ ] loc0 = extractKeys ( arg0 ) ; for ( int loc1 = loc0 . length - 1 ; loc1 >= 0 ; -- loc1 ) doKeyUp ( loc0 [ loc1 ] ) ; } | dispatch a keyup event . 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 mouseDown concode_elem_sep abbot.swt.Ro... |
Local < C > function ( ) { return new Local < C > ( ring , num . abs ( ) , den , true ) ; } | local absolute value . 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... |
boolean function ( Object arg0 , Object arg1 ) { return arg0 == arg1 || ( arg0 == null ? arg1 == null : arg0 . equals ( arg1 ) ) ; } | compare two object concode_field_sep PlaceHolder placeHolder concode_field_sep String nullStrToEmpty concode_elem_sep Long[] transformLongArray concode_elem_sep long[] transformLongArray concode_elem_sep int compare concode_elem_sep Integer[] transformIntArray concode_elem_sep int[] transformIntArray |
void function ( ) { Arrays . fill ( probes , false ) ; } | sets all probes to false . concode_field_sep String name concode_elem_sep boolean[] probes concode_elem_sep long id concode_field_sep String getName concode_elem_sep void merge concode_elem_sep void merge concode_elem_sep boolean[] getProbes concode_elem_sep long getId concode_elem_sep String toString concode_elem_sep ... |
ProvidedPortID function ( ) { return new ProvidedPortID ( ) ; } | create an instance of providedportid concode_field_sep QName _PropertyDeclaration_QNAME concode_elem_sep QName _ProvidedPort_QNAME concode_elem_sep QName _ApplicationPayload_QNAME concode_elem_sep QName _Application_QNAME concode_elem_sep QName _ApplicationID_QNAME concode_elem_sep QName _ApplicationReleaseBinding_QNAM... |
void function ( final ISourceFileLocator arg0 ) { delegates . add ( arg0 ) ; } | adds the given locator . locators are queried in the sequence they have been added . concode_field_sep int tabWidth concode_elem_sep List<ISourceFileLocator> delegates concode_field_sep int getTabWidth concode_elem_sep Reader getSourceFile |
UnivPowerSeries < C > function ( java . math . BigInteger arg0 ) { return ONE . multiply ( coFac . fromInteger ( arg0 ) ) ; } | get a constant univpowerseries from a java.math.biginteger . 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 concod... |
void function ( final Shell arg0 ) { Robot . syncExec ( arg0 . getDisplay ( ) , null , new Runnable ( ) { public void run ( ) { arg0 . forceActive ( ) ; arg0 . setFocus ( ) ; } } ) ; Robot . waitForIdle ( arg0 . getDisplay ( ) ) ; } | brings the passed shell to the top of the drawing order so that it receives keyboard focus . concode_field_sep String copyright concode_field_sep IWorkbenchWindow getWorkbenchWindow concode_elem_sep void bringWorkbenchToFront concode_elem_sep IWorkbench getWorkbench |
Limit function ( ) { final Limit loc0 = new Limit ( ) ; this . limits . add ( loc0 ) ; return loc0 ; } | creates and adds a new limit . concode_field_sep WildcardMatcher excludesMatcher concode_elem_sep String excludes concode_elem_sep String includes concode_elem_sep WildcardMatcher includesMatcher concode_elem_sep List<Limit> limits concode_elem_sep ElementType element concode_field_sep List<Limit> getLimits concode_ele... |
void function ( ) { pos ++ ; } | skips the next char . concode_field_sep String str concode_elem_sep int pos concode_field_sep char ch concode_elem_sep char ch concode_elem_sep int pos concode_elem_sep int length concode_elem_sep boolean hasNext concode_elem_sep XMPDateTime parse concode_elem_sep XMPDateTime parse concode_elem_sep String render concod... |
void function ( String [ ] arg0 ) { JAXBContext loc0 = JAXBContext . newInstance ( Session . class ) ; writeSession ( readSession ( new File ( "srini_string" ) , loc0 ) , new File ( "srini_string" ) , loc0 ) ; } | main method execution steps : 1 . configure jaxb for the classes in the com.cooksys.serialization.assignment.model package 2 . read a session object from the / input/memphis / directory using the methods defined above 3 . write the session object to the / output/session.xml file . jaxb annotations and configuration : y... |
String function ( ) { return name ; } | the `` friendly '' name for this machine concode_field_sep Map<String,JsonBall> metadata concode_elem_sep Date created concode_elem_sep Type type concode_elem_sep Set<String> ips concode_elem_sep ImmutableSet.Builder<String> ips concode_elem_sep ImmutableMap.Builder<String,JsonBall> metadata concode_elem_sep String nam... |
void function ( boolean arg0 ) { this . useCriterion4 = arg0 ; } | set usecriterion4 . concode_field_sep boolean useCriterion4 concode_elem_sep ColorPolynomial<C> pi concode_elem_sep int i concode_elem_sep ColorPolynomial<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 concod... |
Vector < FieldDoc > function ( ClassDoc arg0 , String arg1 ) { Vector < FieldDoc > loc0 = new Vector < FieldDoc > ( ) ; for ( FieldDoc loc1 : arg0 . fields ( ) ) { if ( loc1 . name ( ) . startsWith ( arg1 ) ) loc0 . add ( loc1 ) ; } return ( loc0 ) ; } | look for fields in the specified class that begin with the specified prefix . concode_field_sep String lineSep concode_elem_sep RootDoc root concode_elem_sep Map<ClassDoc,Set<ClassDoc>> cmap concode_elem_sep boolean dump_class_tree concode_field_sep void gather_derived_classes concode_elem_sep void process_class_sorted... |
Property function ( ) { return property ; } | the violated property . concode_field_sep String xmlname concode_elem_sep Time onExit concode_elem_sep HashMap<Integer,Violation> violationsMap concode_elem_sep Time onEntry concode_elem_sep Property property concode_elem_sep String name concode_elem_sep long serialVersionUID concode_elem_sep Time time concode_field_se... |
void function ( KademliaOverlayKey arg0 , OperationCallback < DHTObject > arg1 ) { KademliaOperation < DHTObject > loc0 = myNode . getOperationFactory ( ) . getDataLookupOperation ( arg0 , arg1 ) ; loc0 . scheduleImmediately ( ) ; } | does a single lookup . added by leo nobach concode_field_sep Node<T> myNode concode_elem_sep PeerStatus peerStatus concode_elem_sep Logger log concode_elem_sep ComponentsConfig config concode_elem_sep boolean lookupEnabled concode_field_sep void enablePeriodicLookup concode_elem_sep void connectivityChanged concode_ele... |
void function ( NetMessage arg0 , NetID arg1 ) { addReceivedMsg ( arg0 ) ; receivedMsg ++ ; } | collects all received messages 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_elem_sep void addReceivedMsg conco... |
void function ( Throwable arg0 ) { if ( Platform . isRunning ( ) ) Logger . log ( arg0 ) ; else { if ( sendToConsole ) arg0 . printStackTrace ( ) ; } } | log the specified exception . concode_field_sep boolean sendToConsole concode_field_sep placeholderType placeHolder |
Item [ ] function ( ) { synchronized ( items ) { Item loc0 [ ] = new Item [ this . items . size ( ) ] ; return ( ( Item [ ] ) this . items . toArray ( loc0 ) ) ; } } | return the items for this channel . concode_field_sep String managingEditor concode_elem_sep String title concode_elem_sep String language concode_elem_sep String link concode_elem_sep ArrayList skipDays concode_elem_sep TextInput textInput concode_elem_sep String rating concode_elem_sep String pubDate concode_elem_sep... |
String function ( ) { return name ; } | getter for property ` name ' . concode_field_sep CoreMessageLogger LOG concode_elem_sep boolean containsJoinFetchedCollection concode_elem_sep Fetch bagJoinFetch concode_elem_sep String name concode_elem_sep boolean containsJoinFetchedBag concode_elem_sep Map<String,Fetch> fetches concode_field_sep Map<String,Fetch> ge... |
StackKeeper function ( ) { try { return this . queue . removeFirst ( ) ; } catch ( NoSuchElementException loc0 ) { throw new NoStackException ( ) ; } } | retrieves and removes the top of the stack . 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 boolean autoBookmark concode_elem_sep boolean acceptUnk... |
GenVector < C > function ( ) { return ZERO ; } | getzero . 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_sep GenVector<C> rando... |
void function ( int arg0 ) { this . level = arg0 ; } | set level of section . concode_field_sep List<Section> subsections concode_elem_sep Section parent concode_elem_sep List<Sentence> headerContent concode_elem_sep int level concode_elem_sep List<ListBlock> lists concode_elem_sep List<Paragraph> paragraphs concode_field_sep void appendListElement concode_elem_sep ListBlo... |
void function ( RPCContext arg0 ) { } | this method is invoked at the server before the response is executed , but before the response has been formulated concode_field_sep PlaceHolder placeHolder concode_field_sep void clientStartConnect concode_elem_sep void clientFinishConnect concode_elem_sep void clientSendRequest concode_elem_sep void serverReceiveRequ... |
void function ( String arg0 , Object arg1 ) { mParameters . put ( arg0 , arg1 ) ; } | adds a parameter to the request ; if the parameter is a file , the file is uploaded , otherwise the string value of the parameter is passed in the request concode_field_sep Map<String,Object> mParameters concode_elem_sep String boundary concode_elem_sep OutputStream mOutput concode_elem_sep URLConnection mConnection co... |
Set < String > function ( InputSource arg0 ) { XmlNamespaceFinder loc0 = createNamespaceFinder ( ) ; Set < String > loc1 = loc0 . parseContents ( arg0 ) ; if ( factory == null ) { factory = loc0 . getFactory ( ) ; } return loc1 ; } | returns the namespace uris found in the given xml file concode_field_sep SAXParserFactory factory concode_field_sep void setFactory concode_elem_sep XmlNamespaceFinder createNamespaceFinder concode_elem_sep SAXParserFactory getFactory |
void function ( List < Integer > arg0 ) { takeLock . lock ( ) ; try { taskIdsQueue . add ( arg0 ) ; notEmpty . signal ( ) ; } finally { takeLock . unlock ( ) ; } } | put list of task id to its queue concode_field_sep ReentrantLock takeLock concode_elem_sep LinkedList<List<Integer>> taskIdsQueue concode_elem_sep Condition notEmpty concode_elem_sep LinkedBlockingQueue<BoltMsg> boltMsgQueue concode_field_sep void putBoltMsg concode_elem_sep Object poll |
void function ( boolean arg0 ) { debug = arg0 ; } | enable or disable debug mode by default , debug mode is enabled for development builds and disabled for exported apks - see buildconfig.debug concode_field_sep int LOG_GENERAL concode_elem_sep OnLogListener logListener concode_elem_sep int LOG_COMMAND concode_elem_sep int LOG_NONE concode_elem_sep int LOG_ALL concode_e... |
String function ( IPath arg0 , boolean arg1 ) { String loc0 ; if ( arg1 ) { loc0 = arg0 . toOSString ( ) ; } else { loc0 = arg0 . makeRelative ( ) . toString ( ) ; } return Strings . markLTR ( loc0 ) ; } | returns the label of a path . concode_field_sep String CODE_DELIMITERS concode_elem_sep String FILE_PATTERN_DELIMITERS concode_elem_sep String URL_DELIMITERS concode_field_sep String getJavaCodeString concode_elem_sep String getWorkingSetLabel concode_elem_sep String getURLPart concode_elem_sep String getJavaElementNam... |
ConditionMonitor function ( ) { return INSTANCE ; } | answer the condition monitor concode_field_sep ConditionMonitor INSTANCE concode_field_sep void add concode_elem_sep void add concode_elem_sep void removeAll concode_elem_sep int process concode_elem_sep com.windowtester.runtime.condition.ICondition[] getConditions concode_elem_sep void removeHandler |
long function ( ) { return this . ours ; } | gets the value of ours concode_field_sep long theirs concode_elem_sep long ours concode_elem_sep String description concode_elem_sep int iterations concode_field_sep int getIterations concode_elem_sep void setIterations concode_elem_sep void setOurs concode_elem_sep long getOurAvg concode_elem_sep String toString conco... |
java . math . BigInteger function ( ) { return coFac . characteristic ( ) ; } | characteristic of this ring . concode_field_sep int blocksize concode_elem_sep GenMatrix<C> ZERO concode_elem_sep int DEFAULT_BSIZE concode_elem_sep GenMatrix<C> ONE concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep int rows concode_elem_sep int cols co... |
void function ( @ ArquillianResource URL arg0 ) { final String loc0 = "srini_string" + arg0 . getHost ( ) + "srini_string" + arg0 . getPort ( ) + "srini_string" + JarClass . class . getName ( ) ; final String loc1 = HttpRequest . get ( loc0 , 2 , TimeUnit . SECONDS ) ; Assert . assertEquals ( Servlet . SUCCESS , loc1 )... | tests that a class available in a jar , which is added as a class-path manifest attribute of a . rar is available for access from within a class in a . war deployment , belonging to the same . ear top level deployment . this tests section 8.3 of java ee6 spec concode_field_sep PlaceHolder placeHolder concode_field_sep ... |
int function ( String arg0 ) { File loc0 = new File ( arg0 ) ; if ( ! loc0 . exists ( ) || ! loc0 . isDirectory ( ) ) return 0 ; File loc1 [ ] = loc0 . listFiles ( ) ; if ( loc1 == null ) return 0 ; int loc2 = 0 ; for ( int loc3 = 0 ; loc3 < loc1 . length ; ++ loc3 ) { loc2 += insertFile ( loc1 [ loc3 ] ) ; } return lo... | inserts all the fonts recognized by itext in the directory into the map . the encoding will be basefont.cp1252 but can be changed later . concode_field_sep HashMap<String,String> aliases concode_elem_sep String fontName concode_elem_sep byte pfb[] concode_elem_sep HashMap<String,BaseFontParameters> mapper concode_elem_... |
void function ( String arg0 , Object arg1 ) { if ( Tracer . isDebugging ( ) ) printLog ( sysOut , arg0 , arg1 ) ; IStatus loc0 = createLogStatus ( arg0 , arg1 , "srini_string" ) ; try { log . log ( loc0 ) ; } catch ( Throwable loc1 ) { } } | log the specified message and object concode_field_sep ILog sysOutLog concode_elem_sep PrintWriter sysOut concode_elem_sep ILog log concode_elem_sep String PRODUCT_ID concode_field_sep void setLog concode_elem_sep void printLogObject concode_elem_sep void removeLogListener concode_elem_sep void logNoHeader concode_elem... |
void function ( BigInteger arg0 ) { this . nresults = arg0 ; } | sets the value of the nresults property . concode_field_sep BigInteger nresults concode_field_sep BigInteger getNresults |
void function ( String arg0 ) { String loc0 = getUsage ( ) ; if ( arg0 != null ) { MessageFormat loc1 = new MessageFormat ( Strings . get ( "srini_string" ) ) ; loc0 = loc1 . format ( new Object [ ] { loc0 , arg0 } ) ; } setScriptError ( new InvalidScriptException ( loc0 ) ) ; } | store an invalid script exception describing the proper script usage . this should be used by derived classes whenever parsing indicates invalid input . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep String copyright concode_elem_sep Throwable invalidScriptError concode_elem_se... |
boolean function ( ) { return ui . findAll ( locator ) . length == 1 ; } | test whether the widget in question is showing . concode_field_sep IUIContext ui concode_elem_sep IWidgetLocator locator concode_field_sep placeholderType placeHolder |
VectorXZ function ( double arg0 ) { return new VectorXZ ( sin ( arg0 ) , cos ( arg0 ) ) ; } | returns a unit vector based on an angular direction . for example , angle 0 creates vector 0,1 , angle pi/2 creates vector 1,0 . concode_field_sep VectorXZ NULL_VECTOR concode_elem_sep VectorXZ Z_UNIT concode_elem_sep double x concode_elem_sep VectorXZ X_UNIT concode_elem_sep double z concode_field_sep VectorXZ add con... |
int function ( ImageInputStream arg0 ) { int loc0 = arg0 . readUnsignedShort ( ) ; return ( ( loc0 & 0xf800 ) << 8 ) | ( ( loc0 & 0x3800 ) << 5 ) | ( ( loc0 & 0x07e0 ) << 5 ) | ( ( loc0 & 0x0060 ) << 3 ) | ( ( loc0 & 0x001f ) << 3 ) | ( ( loc0 & 0x0007 ) ) ; } | reads 16-bit rgb and converts it to 24-bit rgb . endian is defined by input stream . concode_field_sep byte[] byteBuf concode_field_sep void writeInt24LE concode_elem_sep void readRGBs555to24 concode_elem_sep void readInts24LE concode_elem_sep void writeInts24LE concode_elem_sep void readRGBs565to24 concode_elem_sep vo... |
void function ( Object arg0 ) { for ( int loc0 = 0 ; loc0 < iPredicates . length ; loc0 ++ ) { if ( iPredicates [ loc0 ] . evaluate ( arg0 ) == true ) { iClosures [ loc0 ] . execute ( arg0 ) ; return ; } } iDefault . execute ( arg0 ) ; } | executes the closure whose matching predicate returns true concode_field_sep Closure[] iClosures concode_elem_sep Predicate[] iPredicates concode_elem_sep long serialVersionUID concode_elem_sep Closure iDefault concode_field_sep Closure getDefaultClosure concode_elem_sep Closure[] getClosures concode_elem_sep Closure g... |
boolean function ( ArrayList < Byte > arg0 ) { try { FileInputStream loc0 = new FileInputStream ( inputFile ) ; byte [ ] loc1 = new byte [ 1 ] ; while ( loc0 . read ( loc1 ) != - 1 ) { arg0 . add ( new Byte ( loc1 [ 0 ] ) ) ; } loc0 . close ( ) ; return true ; } catch ( Exception loc3 ) { loc3 . printStackTrace ( ) ; }... | read the random bytes from an input file and store them into an arraylist . concode_field_sep File inputFile concode_elem_sep ArrayList<Byte> bytes concode_elem_sep File outputImage concode_field_sep BufferedImage getGrayscale concode_elem_sep boolean create |
UnivariateRealFunction function ( ) { return polynomialSplineDerivative ( ) ; } | returns the derivative of the polynomial spline function as a univariaterealfunction concode_field_sep int n concode_elem_sep long serialVersionUID concode_elem_sep PolynomialFunction polynomials[] concode_elem_sep double knots[] concode_field_sep double[] getKnots concode_elem_sep boolean isStrictlyIncreasing concode_... |
void function ( Object arg0 ) { throw new FunctorException ( "srini_string" ) ; } | always throw an exception . concode_field_sep Closure INSTANCE concode_elem_sep long serialVersionUID concode_field_sep Closure getInstance |
int function ( ) { return type ; } | get the type of the rightermost child atom . most atoms have no child atoms , so the `` left type '' and the `` right type '' are the same : the atom 's type . this also is the default implementation . but some atoms are composed of child atoms put one after another in a horizontal row . these atoms must override this ... |
double function ( ) { return mu ; } | getter for property 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 concode_elem_sep double sigma con... |
DoubleListIterator function ( ListIterator arg0 ) { return null == arg0 ? null : new ListIteratorDoubleListIterator ( arg0 ) ; } | create an doublelistiterator doublelistiterator wrappingthe specified listiterator listiterator . when the given iterator is null , returns null . concode_field_sep ListIterator _iterator concode_field_sep double next concode_elem_sep void add concode_elem_sep void set concode_elem_sep double previous concode_elem_sep ... |
void function ( Set < String > arg0 ) { countryLookup . keySet ( ) . retainAll ( arg0 ) ; } | remove all countries that are not defined in the set concode_field_sep HashMap<String,String[]> countryLookup concode_elem_sep ArrayList<String> pingErCountry concode_elem_sep ArrayList<String> pingErRegion concode_elem_sep long serialVersionUID concode_elem_sep Logger log concode_elem_sep HashMap<String,String> pingEr... |
Parser function ( Class arg0 , Parser arg1 ) { Parser loc0 = ( Parser ) parsers . get ( arg0 ) ; parsers . put ( arg0 , arg1 ) ; return loc0 ; } | set the parser for a given class . returns the old one , if any . concode_field_sep String copyright concode_elem_sep HashMap parsers concode_field_sep Object[] eval concode_elem_sep Object eval concode_elem_sep Parser getParser concode_elem_sep String replace concode_elem_sep String[] parseArgumentList concode_elem_se... |
List < T > function ( Collection < T > arg0 ) { return Collections . unmodifiableList ( new ArrayList < T > ( arg0 ) ) ; } | return a unmodifiable list that has all elements of the given collection . concode_field_sep PlaceHolder placeHolder concode_field_sep T getNthIteratedElement concode_elem_sep T getNthIteratedElement concode_elem_sep boolean containsIdentical concode_elem_sep List<String> prefix concode_elem_sep T removeMatching concod... |
int function ( ) { int loc0 = startupOptions . getIntegerOption ( KdcServerOption . KDC_TCP_PORT ) ; if ( loc0 < 1 ) { loc0 = kdcConfig . getKdcTcpPort ( ) ; } if ( loc0 < 1 ) { loc0 = getKdcPort ( ) ; } return loc0 ; } | get kdc tcp port concode_field_sep KdcConfig kdcConfig concode_elem_sep BackendConfig backendConfig concode_elem_sep KOptions startupOptions concode_field_sep int getKdcPort concode_elem_sep String getKdcRealm concode_elem_sep int checkGetKdcTcpPort concode_elem_sep int getKdcUdpPort concode_elem_sep int checkGetKdcUdp... |
Map function ( ) { loadMaps ( ) ; return characterMap ; } | load a map for the current locale to translate a character into a corresponding virtual keycode-based keystroke . concode_field_sep KeyStrokeMapProvider generator concode_elem_sep Map chars concode_elem_sep boolean loaded concode_elem_sep Map characterMap concode_elem_sep Map keyStrokeMap concode_elem_sep Map keycodes ... |
String function ( String arg0 ) { char [ ] loc0 = arg0 . toCharArray ( ) ; for ( int loc1 = 0 ; loc1 < loc0 . length ; loc1 ++ ) { char loc2 = loc0 [ loc1 ] ; if ( ! Character . isJavaIdentifierPart ( loc2 ) ) { loc0 [ loc1 ] = '_' ; } } return new String ( loc0 ) ; } | cleans str by replacing all characters that are not valid java indentifier parts with '' _ '' . concode_field_sep int dkconfig_compile_timeout concode_elem_sep Logger debug concode_elem_sep FileCompiler fileCompiler concode_elem_sep boolean dkconfig_delete_splitters_on_exit concode_elem_sep String tempdir concode_elem_... |
int function ( ModInteger arg0 ) { java . math . BigInteger loc0 = arg0 . val ; if ( ring != arg0 . ring ) { loc0 = loc0 . mod ( ring . modul ) ; } return val . compareTo ( loc0 ) ; } | modinteger comparison . concode_field_sep java.math.BigInteger val concode_elem_sep ModIntegerRing ring concode_field_sep ModInteger MIREM concode_elem_sep java.math.BigInteger getSymmetricVal concode_elem_sep int MISIGN concode_elem_sep ModInteger gcd concode_elem_sep ModInteger sum concode_elem_sep ModInteger MINEG c... |
CashAccount16 function ( String arg0 ) { CashAccount16 loc0 = new CashAccount16 ( ) ; AccountIdentification4Choice loc1 = new AccountIdentification4Choice ( ) ; loc1 . setIBAN ( arg0 ) ; loc0 . setId ( loc1 ) ; return loc0 ; } | unambiguous identification of a account concode_field_sep Pattern bicRegex concode_field_sep PartyIdentification32 createParty concode_elem_sep RemittanceInformation5 createRmtInf_struct concode_elem_sep XMLGregorianCalendar createXMLGregorianCalendarDate concode_elem_sep RemittanceInformation5 createRmtInf concode_ele... |
Unmarshaller function ( ) { try { return JAXB_CONTEXT . createUnmarshaller ( ) ; } catch ( JAXBException loc0 ) { throw new RuntimeException ( loc0 . getMessage ( ) , loc0 ) ; } } | creates an unmarshaller from the sardineutil #jaxb_context . note : the unmarshaller is not thread safe , so it must be created for every request . concode_field_sep JAXBContext JAXB_CONTEXT concode_elem_sep String CUSTOM_NAMESPACE_URI concode_elem_sep String DEFAULT_NAMESPACE_URI concode_elem_sep String DEFAULT_NAMESP... |
byte [ ] function ( byte [ ] arg0 ) { byte loc0 [ ] = new byte [ arg0 . length ] ; int loc1 = 0 ; for ( int loc2 = 0 ; loc2 < arg0 . length ; loc2 ++ ) { if ( isValidBase64Byte ( arg0 [ loc2 ] ) ) { loc0 [ loc1 ++ ] = arg0 [ loc2 ] ; } } byte loc3 [ ] = new byte [ loc1 ] ; System . arraycopy ( loc0 , 0 , loc3 , 0 , loc... | discards any characters outside of the base64 alphabet see page 25 of rfc 2045 `` any characters outside of the base64 alphabet are to be ignored in base64 encoded data . '' concode_field_sep byte[] decodingTable concode_elem_sep byte[] encodingTable concode_field_sep void encode concode_elem_sep byte[] encode concode_... |
String function ( String arg0 , int arg1 ) { return getComposedMessage ( arg0 , String . valueOf ( arg1 ) , null , null , null ) ; } | get a message with one parameter as an primitive int . the parameter will replace the string '' 1 '' found in the message . concode_field_sep String BASE_PATH concode_elem_sep HashMap<String,String> currentLanguage concode_elem_sep HashMap<String,String> defaultLanguage concode_field_sep HashMap<String,String> getLangu... |
void function ( PropertyChangeListener arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( ) ; } pcsDelegate . addPropertyChangeListener ( arg0 ) ; } | attach a non-null propertychangelistener to this object . 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 setPropertyValu... |
Object function ( ) { if ( _constructor == null ) { return null ; } return _constructor . newInstance ( _args ) ; } | creates a new instance . concode_field_sep ReflectConstructor _constructor concode_elem_sep Object[] _args concode_elem_sep ReflectConstructorSpec UNSPECIFIED_CONSTRUCTOR concode_elem_sep TernaryBool _canBeInstantiated concode_elem_sep ReflectConstructorSpec INVALID_CONSTRUCTOR concode_field_sep TernaryBool canBeInstan... |
byte [ ] function ( int arg0 ) { byte [ ] loc0 = new byte [ 2 ] ; loc0 [ 0 ] = ( byte ) ( arg0 >> 8 ) ; loc0 [ 1 ] = ( byte ) ( ( arg0 << 8 ) >> 8 ) ; return loc0 ; } | interpret a short as its binary form concode_field_sep PlaceHolder placeHolder concode_field_sep long asLong concode_elem_sep int toInt concode_elem_sep String toBinaryString concode_elem_sep String toBinaryString concode_elem_sep String toBinaryString concode_elem_sep byte[] fromInt concode_elem_sep byte[] fromLong |
End of preview. Expand in Data Studio
This dataset is the subset of Concode Dataset used for generating java code from natral language description.
- Downloads last month
- 5