input stringlengths 147 4.02k | output stringlengths 21 493 |
|---|---|
Generate a Java code for the following instruction: the enumeration members in assorted order : / / not_discarded , obvious , bad_sample , bad_confidence , unused , not_enough_samples , non_canonical_var , implied_post_condition , only_constant_vars , derived_param , unmodified_var , control_check , exact , var filter ... | int function ( DiscardCode arg0 ) { Integer loc0 = new Integer ( this . enumValue ) ; Integer loc1 = new Integer ( arg0 . enumValue ) ; return loc0 . compareTo ( loc1 ) ; } |
Generate a Java code for the following instruction: create a timestamp from the number of microseconds elapsed from the epoch . concode_field_sep BigInteger NANOS_PER_SECOND_BIG_INTEGER concode_elem_sep long DURATION_SECONDS_MAX concode_elem_sep long DURATION_SECONDS_MIN concode_elem_sep long TIMESTAMP_SECONDS_MAX conc... | Timestamp function ( long arg0 ) { return Timestamps . fromMicros ( arg0 ) ; } |
Generate a Java code for the following instruction: the inverse of #registerloadingcollectionxref . here , we are done processing the said collection entry , so we remove it from the load context . the idea here is that other loading collections can now reference said collection directly from the persistencecontext bec... | void function ( CollectionKey arg0 ) { if ( ! hasRegisteredLoadingCollectionEntries ( ) ) { return ; } xrefLoadingCollectionEntries . remove ( arg0 ) ; } |
Generate a Java code for the following instruction: commit ; concode_field_sep android.database.mysql.natives.Connector __connector concode_elem_sep String DEFAULT_PORT concode_elem_sep String encoding concode_elem_sep HashMap<String,String> config concode_field_sep void rollback concode_elem_sep void disconnect concod... | void function ( ) { query ( "srini_string" ) ; } |
Generate a Java code for the following instruction: returns true of the result given is the result of an exit command concode_field_sep TextArea outputConsole concode_elem_sep Logic logic concode_elem_sep TextField commandInput concode_elem_sep Stoppable mainApp concode_field_sep void setMainApp concode_elem_sep void c... | boolean function ( CommandResult arg0 ) { return arg0 . feedbackToUser . equals ( ExitCommand . MESSAGE_EXIT_ACKNOWEDGEMENT ) ; } |
Generate a Java code for the following instruction: finds the display-space rectangle that bounds the given widget 's client area . concode_field_sep String copyright concode_field_sep Point getLocation concode_elem_sep Point getLocation concode_elem_sep Rectangle toDisplay | Rectangle function ( Widget arg0 ) { return getBounds ( arg0 , true ) ; } |
Generate a Java code for the following instruction: returns the protocol , domain and port of the url . the origin does not typically include a trailing slash . 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_se... | String function ( ) { if ( originUrl == null ) { originUrl = extractOriginImpl ( url ) ; } return originUrl ; } |
Generate a Java code for the following instruction: gets the id for this request . concode_field_sep String LOGTAG concode_elem_sep AtomicInteger currentId concode_elem_sep String data concode_elem_sep int id concode_elem_sep String name concode_field_sep void onResponse concode_elem_sep String getName concode_elem_sep... | int function ( ) { return id ; } |
Generate a Java code for the following instruction: modinteger negative . 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 function ( ) { return new ModInteger ( ring , val . negate ( ) ) ; } |
Generate a Java code for the following instruction: returns buffer as byte array concode_field_sep int BUFFER_DEFAULT_LENGTH concode_elem_sep int actualSize concode_elem_sep byte[] buffer concode_elem_sep int position concode_field_sep void writeInt concode_elem_sep void writeLong concode_elem_sep int getPosition conco... | byte [ ] function ( ) { byte [ ] loc0 = new byte [ getActualSize ( ) ] ; System . arraycopy ( buffer , 0 , loc0 , 0 , getActualSize ( ) ) ; return loc0 ; } |
Generate a Java code for the following instruction: returns an empty operationcallback , type-safe . concode_field_sep OperationCallback EMPTY_CALLBACK concode_field_sep void calledOperationSucceeded concode_elem_sep int scheduleEmptyOperation concode_elem_sep void calledOperationFailed concode_elem_sep Operation<TResu... | OperationCallback < TResult > function ( ) { return Operations . EMPTY_CALLBACK ; } |
Generate a Java code for the following instruction: log the specified message and object concode_field_sep ILog sysOutLog 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 logNoHe... | 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 ) { } } |
Generate a Java code for the following instruction: execute the discrete work encapsulated by a returningwork instanceusing the supplied connection , returning the result of returningwork #execute java.sql.connection concode_field_sep PlaceHolder placeHolder concode_field_sep T executeWork | T function ( ReturningWork < T > arg0 , Connection arg1 ) { return arg0 . execute ( arg1 ) ; } |
Generate a Java code for the following instruction: returns the change element 's parent . concode_field_sep int PARTLY_ACTIVE concode_elem_sep int[][] ACTIVATION_TABLE concode_elem_sep int INACTIVE concode_elem_sep PreviewNode[] EMPTY_CHILDREN concode_elem_sep int ACTIVE concode_elem_sep PreviewNode fParent concode_fi... | PreviewNode function ( ) { return fParent ; } |
Generate a Java code for the following instruction: is this endpoint required to be in fragment endpoint assignment list ? concode_field_sep DrillbitEndpoint endpoint concode_elem_sep double affinity concode_elem_sep org.slf4j.Logger logger concode_elem_sep boolean mandatory concode_elem_sep int maxWidth concode_field_... | boolean function ( ) { return mandatory || Double . POSITIVE_INFINITY == affinity ; } |
Generate a Java code for the following instruction: find a db4odatabase with the same signature as this one concode_field_sep int STATIC_ID concode_elem_sep int i_id concode_elem_sep Db4oDatabase STATIC_IDENTITY concode_elem_sep String CREATIONTIME_FIELD concode_elem_sep ObjectContainerBase i_stream concode_elem_sep by... | Db4oDatabase function ( Transaction arg0 ) { if ( i_uuid > 0 ) { Db4oDatabase loc0 = query ( arg0 , true ) ; if ( loc0 != null ) { return loc0 ; } } return query ( arg0 , false ) ; } |
Generate a Java code for the following instruction: generates a random 8 x 8 simpleboard . concode_field_sep PlaceHolder placeHolder concode_field_sep void main concode_elem_sep void initTable | SimpleBoard function ( ) { SimpleBoard loc0 = new SimpleBoard ( ) ; for ( int loc1 = 0 ; loc1 < 8 ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < 8 ; loc2 ++ ) { double loc3 = Math . random ( ) * 12 ; int loc4 = ( int ) loc3 ; loc0 . setElementAt ( loc2 , loc1 , loc4 ) ; } } return loc0 ; } |
Generate a Java code for the following instruction: sets the fully configured discoverclasses instance to be used to lookup services concode_field_sep ClassLoader classLoader concode_elem_sep DiscoverClasses discovery concode_elem_sep boolean useContextClassLoader concode_elem_sep Log log concode_field_sep boolean getU... | void function ( DiscoverClasses arg0 ) { this . discovery = arg0 ; } |
Generate a Java code for the following instruction: cache the current display if it has not already been cached by the #launchapp method or a prior call to this method . concode_field_sep IUIContext _ui concode_elem_sep Display _display concode_elem_sep Shell _rootShell concode_field_sep IUIContext getUI concode_elem_s... | void function ( ) { if ( _display == null ) setDisplay ( Display . getDefault ( ) ) ; } |
Generate a Java code for the following instruction: 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 timeBetweenReplicati... | void function ( long arg0 ) { this . timeToLiveForContacts = arg0 ; } |
Generate a Java code for the following instruction: asserts that a schema namespace is set . concode_field_sep PlaceHolder placeHolder concode_field_sep void assertPrefix concode_elem_sep void assertSpecificLang concode_elem_sep void assertPropName concode_elem_sep void assertNotNull concode_elem_sep void assertArrayNa... | void function ( String arg0 ) { if ( arg0 == null || arg0 . length ( ) == 0 ) { throw new XMPException ( "srini_string" , XMPError . BADPARAM ) ; } } |
Generate a Java code for the following instruction: return number of elements concode_field_sep int mCount concode_elem_sep Object[] mNodes concode_elem_sep Comparator mCmp concode_field_sep int parent concode_elem_sep int compare concode_elem_sep boolean erase concode_elem_sep Object extract concode_elem_sep int left ... | int function ( ) { return mCount ; } |
Generate a Java code for the following instruction: return true if past the next synchronization point after a position . concode_field_sep byte[] MAGIC concode_elem_sep String CODEC concode_elem_sep Schema schema concode_elem_sep long blockCount concode_elem_sep int SYNC_SIZE concode_elem_sep String SYNC concode_elem_... | boolean function ( long arg0 ) { return ( ( blockStart >= arg0 + SYNC_SIZE ) || ( blockStart >= in . length ( ) ) ) ; } |
Generate a Java code for the following instruction: returns the end index . concode_field_sep int start concode_elem_sep int end concode_elem_sep char[] buffer concode_field_sep int getStart concode_elem_sep char[] getBuffer concode_elem_sep void setStart concode_elem_sep void adjust concode_elem_sep boolean hasMore co... | int function ( ) { return end ; } |
Generate a Java code for the following instruction: update the cached set of add-ons . throws on invalid input . concode_field_sep String appLocale concode_elem_sep boolean telemetryEnabled concode_elem_sep long profileCreationTime concode_elem_sep boolean blocklistEnabled concode_elem_sep int FORMAT_VERSION concode_el... | void function ( String arg0 ) { addons = new JSONObject ( arg0 ) ; needsWrite = true ; } |
Generate a Java code for the following instruction: retrieves the value of a transaction local variables . if this is the first time the variable is accessed transactionlocal #initialvaluefor transaction will provide the initial value . concode_field_sep ObjectContainerBase _container concode_elem_sep Transaction _syst... | ByRef < T > function ( TransactionLocal < T > arg0 ) { final ByRef < T > loc0 = ( ByRef < T > ) _locals . get ( arg0 ) ; if ( null != loc0 ) return loc0 ; final ByRef < T > loc1 = ByRef . newInstance ( arg0 . initialValueFor ( this ) ) ; _locals . put ( arg0 , loc1 ) ; return loc1 ; } |
Generate a Java code for the following instruction: checks if the images are loaded in the cache . the variable imageswereloaded is used to ensure that they wo n't be loaded more then once . concode_field_sep String T_LCL concode_elem_sep String T_TOOL concode_elem_sep URL iconBaseURL concode_elem_sep ImageRegistry ima... | void function ( ) { if ( imagesWereLoaded ) return ; addImages ( ) ; imagesWereLoaded = true ; } |
Generate a Java code for the following instruction: get the value of one of the fields of a datetime . this could be used to get a field using a different chronology . for example : instant dt = new instant ; int gjyear = dt.get chronology.getcoptic . year ; concode_field_sep PlaceHolder placeHolder concode_field_sep M... | int function ( DateTimeField arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } return arg0 . get ( getMillis ( ) ) ; } |
Generate a Java code for the following instruction: returns the failure stack trace . concode_field_sep String fExpected concode_elem_sep Result FAILURE concode_elem_sep String fActual concode_elem_sep Result UNDEFINED concode_elem_sep Result ERROR concode_elem_sep Result IGNORED concode_elem_sep String fName concode_e... | String function ( ) { return fTrace ; } |
Generate a Java code for the following instruction: clean up queryplancache when sessionfactory is closed concode_field_sep SessionFactoryImplementor factory concode_elem_sep Set<DynamicFilterKey> filterKeys concode_elem_sep String query concode_elem_sep String filterName concode_elem_sep Map<String,Integer> parameterM... | void function ( ) { LOG . trace ( "srini_string" ) ; queryPlanCache . clear ( ) ; parameterMetadataCache . clear ( ) ; } |
Generate a Java code for the following instruction: processes an error that occurs when the validation of an object fails . concode_field_sep String ERROR_CODE_TODO_ENTRY_NOT_FOUND concode_elem_sep Logger LOGGER concode_elem_sep MessageSource messageSource concode_field_sep ErrorDTO handleTodoEntryNotFound concode_elem... | ValidationErrorDTO function ( MethodArgumentNotValidException arg0 , Locale arg1 ) { BindingResult loc0 = arg0 . getBindingResult ( ) ; List < FieldError > loc1 = loc0 . getFieldErrors ( ) ; LOGGER . error ( "srini_string" , loc1 . size ( ) ) ; return constructValidationErrors ( loc1 , arg1 ) ; } |
Generate a Java code for the following instruction: sets the implementation for language name display . java language names are defined by default . concode_field_sep String footerText concode_elem_sep Resources resources concode_elem_sep ElementIndex index concode_elem_sep Locale locale concode_elem_sep ILanguageNames... | void function ( final ILanguageNames arg0 ) { this . languageNames = arg0 ; } |
Generate a Java code for the following instruction: children should override this . the default implementation returns null . concode_field_sep IPropertyDescriptor[] EMPTY_ARRAY concode_elem_sep PropertyChangeSupport pcsDelegate concode_elem_sep long serialVersionUID concode_field_sep void firePropertyChange concode_el... | Object function ( Object arg0 ) { return null ; } |
Generate a Java code for the following instruction: check kdc udp setting and see if any bad . concode_field_sep KdcConfig kdcConfig concode_elem_sep BackendConfig backendConfig concode_elem_sep KOptions startupOptions concode_field_sep int getKdcTcpPort concode_elem_sep int getKdcPort concode_elem_sep String getKdcRea... | int function ( ) { if ( allowUdp ( ) ) { int loc0 = getKdcUdpPort ( ) ; if ( loc0 < 1 ) { throw new KrbException ( "srini_string" ) ; } return loc0 ; } return - 1 ; } |
Generate a Java code for the following instruction: adds a tag and its corresponding properties to the chain . concode_field_sep List<TagAttributes> chain concode_elem_sep String tag concode_elem_sep Map<String,String> attrs concode_field_sep String getProperty concode_elem_sep boolean hasProperty concode_elem_sep void... | void function ( String arg0 , Map < String , String > arg1 ) { this . adjustFontSize ( arg1 ) ; chain . add ( new TagAttributes ( arg0 , arg1 ) ) ; } |
Generate a Java code for the following instruction: create querycontextinformation with given defaultschemaname . rest of the members of the querycontextinformation is derived from the current state of the process . concode_field_sep PlaceHolder placeHolder concode_field_sep String getFileNameForQueryFragment concode_e... | QueryContextInformation function ( final String arg0 ) { final long loc0 = System . currentTimeMillis ( ) ; final int loc1 = DateUtility . getIndex ( System . getProperty ( "srini_string" ) ) ; return QueryContextInformation . newBuilder ( ) . setDefaultSchemaName ( arg0 ) . setQueryStartTime ( loc0 ) . setTimeZone ( l... |
Generate a Java code for the following instruction: parse algebraicnumber from string . 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> interpolat... | AlgebraicNumber < C > function ( String arg0 ) { throw new RuntimeException ( "srini_string" ) ; } |
Generate a Java code for the following instruction: creates a compilation unit change based on the events recorded by this compilation unit rewrite . do not remove , used in a product . concode_field_sep ImportRewrite fImportRewrite concode_elem_sep ImportRemover fImportRemover concode_elem_sep WorkingCopyOwner fOwner ... | org . eclipse . jdt . internal . corext . refactoring . changes . CompilationUnitChange function ( ) { CompilationUnitChange loc0 = createChange ( true ) ; if ( loc0 == null ) return null ; return new org . eclipse . jdt . internal . corext . refactoring . changes . CompilationUnitChange ( loc0 ) ; } |
Generate a Java code for the following instruction: update this token with the given ast node . note : allowed to be used by semantichighlightingreconciler only . concode_field_sep boolean fIsRootResolved concode_elem_sep IBinding fBinding concode_elem_sep Expression fLiteral concode_elem_sep SimpleName fNode concode_e... | void function ( SimpleName arg0 ) { clear ( ) ; fNode = arg0 ; } |
Generate a Java code for the following instruction: testet , ob der puffer leer ist . concode_field_sep char zero concode_elem_sep char minus concode_elem_sep String regexp concode_elem_sep Charset charset concode_elem_sep int pointer concode_elem_sep Receiver receiver concode_elem_sep Sender sender concode_elem_sep in... | boolean function ( ) { return pointer == - 1 ; } |
Generate a Java code for the following instruction: note : this is an inlined version of javaui #geteditorinputjavaelement ieditorinput , which is not available in 3.1 . concode_field_sep PlaceHolder placeHolder concode_field_sep IOpenable getJavaInput concode_elem_sep void selectInEditor concode_elem_sep IEditorPart g... | IJavaElement function ( IEditorInput arg0 ) { Assert . isNotNull ( arg0 ) ; IJavaElement loc0 = JavaUI . getWorkingCopyManager ( ) . getWorkingCopy ( arg0 ) ; if ( loc0 != null ) return loc0 ; return arg0 . getAdapter ( IJavaElement . class ) ; } |
Generate a Java code for the following instruction: this widget 's class name . concode_field_sep WidgetReference windowReference concode_elem_sep String refClassName concode_elem_sep String title concode_elem_sep String invokerID concode_elem_sep String windowID concode_elem_sep String id concode_elem_sep WidgetRefere... | String function ( ) { return refClassName ; } |
Generate a Java code for the following instruction: validate the input document collection . note that this method call is not thread safe . redpen instances need to be crated for each thread . concode_field_sep String VERSION concode_elem_sep SentenceExtractor sentenceExtractor concode_elem_sep Configuration configura... | List < ValidationError > function ( Document arg0 ) { List < Document > loc0 = new ArrayList < > ( ) ; loc0 . add ( arg0 ) ; Map < Document , List < ValidationError >> loc1 = validate ( loc0 ) ; return loc1 . get ( arg0 ) ; } |
Generate a Java code for the following instruction: returns the value of the specified service , if the service exists and is started . concode_field_sep Map<State,Map<Mode,Mode>> modeToggle concode_field_sep T getValue concode_elem_sep ServiceController<T> findService concode_elem_sep void stop concode_elem_sep void s... | T function ( ServiceRegistry arg0 , ServiceName arg1 ) { ServiceController < T > loc0 = findService ( arg0 , arg1 ) ; return ( ( loc0 != null ) && ( loc0 . getState ( ) == State . UP ) ) ? loc0 . getValue ( ) : null ; } |
Generate a Java code for the following instruction: from an iterable of objects , this returns the one with the highest associated value of a function f concode_field_sep PlaceHolder placeHolder concode_field_sep T min | T function ( Iterable < T > arg0 , Function < T , Double > arg1 ) { T loc0 = null ; Double loc1 = null ; for ( T loc2 : arg0 ) { if ( loc0 == null || arg1 . apply ( loc2 ) > loc1 ) { loc0 = loc2 ; loc1 = arg1 . apply ( loc2 ) ; } } return loc0 ; } |
Generate a Java code for the following instruction: convert the abstract location into a concrete one . returns a point relative to the given component . concode_field_sep Point where concode_elem_sep String CENTER concode_field_sep boolean isValue concode_elem_sep String badFormat concode_elem_sep boolean equals conco... | Point function ( Component arg0 ) { return where != null ? new Point ( where ) : new Point ( arg0 . getWidth ( ) / 2 , arg0 . getHeight ( ) / 2 ) ; } |
Generate a Java code for the following instruction: same as toparseablestring . concode_field_sep Sequence sequence concode_elem_sep CoverageAtom frontierBranch concode_elem_sep Set<VariableInfo> values concode_elem_sep Set<String> branch_compares concode_elem_sep Variable value concode_elem_sep long serialVersionUID c... | String function ( ) { return toParseableString ( ) ; } |
Generate a Java code for the following instruction: closes the bindecorator and the underlying bin . concode_field_sep Bin _bin concode_field_sep int read concode_elem_sep long length concode_elem_sep int syncRead concode_elem_sep void sync concode_elem_sep void write | void function ( ) { _bin . close ( ) ; } |
Generate a Java code for the following instruction: return the `` use context class loader '' flag . if set to true , digester will attempt to instantiate new command and chain instances from the context class loader . concode_field_sep boolean useContextClassLoader concode_elem_sep RuleSet ruleSet concode_elem_sep Dig... | boolean function ( ) { return ( this . useContextClassLoader ) ; } |
Generate a Java code for the following instruction: stops timing , if currently running ; resets accumulated time to 0 . concode_field_sep boolean running concode_elem_sep long tAccum concode_elem_sep long tFinish concode_elem_sep long tStart concode_field_sep long elapsed concode_elem_sep long stop concode_elem_sep vo... | void function ( ) { running = false ; tStart = 0 ; tFinish = 0 ; tAccum = 0 ; } |
Generate a Java code for the following instruction: activate basic implementation . concode_field_sep int _size concode_elem_sep V[] _values concode_elem_sep Activator _activator concode_elem_sep long serialVersionUID concode_elem_sep K[] _keys concode_field_sep V defaultValue concode_elem_sep Collection<V> values conc... | void function ( ActivationPurpose arg0 ) { if ( _activator != null ) { _activator . activate ( arg0 ) ; } } |
Generate a Java code for the following instruction: factory method to create a typed list . if there are any elements already in the buffer being decorated , they are validated . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder | Buffer function ( Buffer arg0 , Class arg1 ) { return new PredicatedBuffer ( arg0 , InstanceofPredicate . getInstance ( arg1 ) ) ; } |
Generate a Java code for the following instruction: returns the programmer defined property of the receiver with the specified name , or null if it has not been set . data mappings allow programmers to associate arbitrary key-value pairs with locator instances . concode_field_sep long serialVersionUID concode_elem_sep ... | void function ( String arg0 , String arg1 ) { if ( arg0 == null ) throw new IllegalArgumentException ( "srini_string" ) ; getDataMap ( ) . put ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: get the maximum number of locals used in the method . concode_field_sep ClassInfo classInfo concode_elem_sep Code code concode_elem_sep int name concode_elem_sep boolean DEBUG concode_elem_sep int modifiers concode_elem_sep int type concode_elem_sep Exceptions excepti... | int function ( ) { if ( code != null ) { return code . maxLocals ( ) ; } return 0 ; } |
Generate a Java code for the following instruction: returns value of specified field if exists , or null otherwise concode_field_sep Map<String,Object> data concode_elem_sep String ID_KEY concode_elem_sep List<String> fields concode_field_sep boolean isFieldsOrderImportant concode_elem_sep boolean containsField concode... | Object function ( String arg0 ) { return data . get ( arg0 ) ; } |
Generate a Java code for the following instruction: write all rows added to the named output stream . concode_field_sep Schema schema concode_elem_sep int[] arrayWidths concode_elem_sep String SCHEMA_KEY concode_elem_sep GenericData model concode_elem_sep ColumnFileWriter writer concode_field_sep void writeValue concod... | void function ( OutputStream arg0 ) { writer . writeTo ( arg0 ) ; } |
Generate a Java code for the following instruction: apply a `` like '' constraint concode_field_sep PropertyNameGetter propertyNameGetter concode_field_sep AuditCriterion hasNotChanged concode_elem_sep AuditCriterion lt concode_elem_sep AuditProjection distinct concode_elem_sep AuditCriterion leProperty concode_elem_se... | AuditCriterion function ( T arg0 ) { return new SimpleAuditExpression ( propertyNameGetter , arg0 , "srini_string" ) ; } |
Generate a Java code for the following instruction: add a stackkeeper to the top of the stack list . 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... | void function ( final StackKeeper arg0 ) { this . queue . addFirst ( arg0 ) ; } |
Generate a Java code for the following instruction: removes from the underlying collection the last element returned . this method calls remove on the underlying iterator and it may throw an unsupportedoperationexception if the underlying iterator does not support this method . concode_field_sep Iterator lastUsedIterat... | void function ( ) { if ( lastUsedIterator == null ) { throw new IllegalStateException ( "srini_string" ) ; } lastUsedIterator . remove ( ) ; lastUsedIterator = null ; } |
Generate a Java code for the following instruction: a test run session has been launched . the test tree is not available yet . important : the implementor of this method must not keep a reference to the session element after #sessionfinished itestrunsession has finished . concode_field_sep PlaceHolder placeHolder conc... | void function ( ITestRunSession arg0 ) { } |
Generate a Java code for the following instruction: returns this triangle if it is counterclockwise , or the reversed triangle if it is clockwise . concode_field_sep VectorXZ v1 concode_elem_sep VectorXZ v2 concode_elem_sep VectorXZ v3 concode_field_sep VectorXZ getCenter concode_elem_sep boolean contains concode_elem_... | TriangleXZ function ( ) { return makeRotationSense ( true ) ; } |
Generate a Java code for the following instruction: persist the phenotype given and return it - does not create it . concode_field_sep GithubAPIFactory factory concode_elem_sep GithubAPI github concode_elem_sep boolean up concode_elem_sep DatabaseService db concode_field_sep void init concode_elem_sep List<Phenotype> s... | Phenotype function ( Phenotype arg0 ) { String loc0 = "srini_string" ; checkArgument ( arg0 . getId ( ) . isPresent ( ) , loc0 ) ; checkArgument ( arg0 . getIssueNumber ( ) . isPresent ( ) , loc0 ) ; db . savePhenotype ( arg0 ) ; github . patchIssue ( arg0 ) ; return arg0 ; } |
Generate a Java code for the following instruction: gets the iterator as a string . concode_field_sep Iterator iterator concode_elem_sep Map.Entry last concode_elem_sep Map map concode_elem_sep boolean canRemove concode_field_sep Object next concode_elem_sep Object getKey concode_elem_sep Object getValue concode_elem_s... | String function ( ) { if ( last != null ) { return "srini_string" + getKey ( ) + "srini_string" + getValue ( ) + "srini_string" ; } else { return "srini_string" ; } } |
Generate a Java code for the following instruction: returns the id given by the given entry 's parent link , or null if it has no parent link . concode_field_sep boolean forward concode_elem_sep Logger LOGGER concode_field_sep Comparator<BaseContentEntry<?>> getUpdatedComparator concode_elem_sep void setContent concode... | String function ( BaseContentEntry < ? > arg0 ) { Link loc0 = arg0 . getLink ( SitesLink . Rel . PARENT , ILink . Type . ATOM ) ; if ( loc0 == null ) { return null ; } return loc0 . getHref ( ) ; } |
Generate a Java code for the following instruction: remove a formula from the cache . take care , remove the object o , invalidate it ! concode_field_sep Image image concode_elem_sep ConcurrentMap<CachedTeXFormula,SoftReference<CachedImage>> cache concode_elem_sep String f concode_elem_sep int inset concode_elem_sep Co... | void function ( Object arg0 ) { if ( arg0 != null && arg0 instanceof CachedTeXFormula ) { cache . remove ( ( CachedTeXFormula ) arg0 ) ; } } |
Generate a Java code for the following instruction: checks if the given password matches the hash and salt . the original password should be kept in the database along with its salt . concode_field_sep PlaceHolder placeHolder concode_field_sep byte[] generateSalt concode_elem_sep Map<String,String> hashPassword concode... | boolean function ( String arg0 , String arg1 , char [ ] arg2 ) { byte [ ] loc0 = hexStringToByteArray ( arg0 ) ; return arg1 . equals ( hashPassword ( arg2 , loc0 ) . get ( "srini_string" ) ) ; } |
Generate a Java code for the following instruction: this method is called right before a worker shuts down concode_field_sep long serialVersionUID concode_field_sep void start | void function ( ) { } |
Generate a Java code for the following instruction: verifies if the class of the elements returned by paragraph #end is a paragraph . concode_field_sep List<Element> currentContent concode_elem_sep ParaGraph p concode_elem_sep WorkerContextImpl workerContextImpl concode_field_sep void init concode_elem_sep void verifyC... | void function ( ) { final List < Element > loc0 = p . end ( workerContextImpl , new Tag ( "srini_string" ) , currentContent ) ; Assert . assertTrue ( loc0 . get ( 0 ) instanceof Paragraph ) ; } |
Generate a Java code for the following instruction: this method is invoked at the rpc server when the request is received , but before the call itself is executed concode_field_sep PlaceHolder placeHolder concode_field_sep void serverSendResponse concode_elem_sep void clientStartConnect concode_elem_sep void clientFini... | void function ( RPCContext arg0 ) { } |
Generate a Java code for the following instruction: insert a contact to the set concode_field_sep PastryNode node concode_elem_sep int NUM_OF_COLUMNS concode_elem_sep int NUM_OF_ROWS concode_elem_sep long lastChanged concode_elem_sep RouteSet[][] routingTable concode_elem_sep PastryID nodeId concode_field_sep void clea... | void function ( PastryContact arg0 ) { if ( arg0 . getOverlayID ( ) . equals ( nodeId ) ) return ; RouteSet loc0 = makeBestEntry ( arg0 . getOverlayID ( ) ) ; if ( ! loc0 . contains ( arg0 ) ) { loc0 . insertEntry ( arg0 ) ; cleanSet ( loc0 ) ; if ( loc0 . contains ( arg0 ) ) lastChanged = Simulator . getCurrentTime ( ... |
Generate a Java code for the following instruction: gets the iterator being decorated . concode_field_sep Iterator iterator concode_field_sep Object next concode_elem_sep boolean hasNext concode_elem_sep void remove | Iterator function ( ) { return iterator ; } |
Generate a Java code for the following instruction: returns a synchronized buffer backed by the given buffer . much like the synchronized collections returned by java.util.collections , you must manually synchronize on the returned buffer 's iterator to avoid non-deterministic behavior : buffer b = bufferutils.synchron... | Buffer function ( Buffer arg0 ) { return SynchronizedBuffer . decorate ( arg0 ) ; } |
Generate a Java code for the following instruction: returns the text edits managed by the underlying text edit group . concode_field_sep TextEditBasedChange fChange concode_elem_sep TextEditGroup fTextEditGroup concode_elem_sep boolean fIsEnabled concode_field_sep void setEnabled concode_elem_sep String getName concode... | TextEdit [ ] function ( ) { return fTextEditGroup . getTextEdits ( ) ; } |
Generate a Java code for the following instruction: helper method that prints out an integer . concode_field_sep PlaceHolder placeHolder concode_field_sep void print concode_elem_sep void print concode_elem_sep void printMap concode_elem_sep void printList concode_elem_sep void printString concode_elem_sep void printSt... | void function ( Integer arg0 , int arg1 ) { for ( int loc0 = 0 ; loc0 < arg1 ; loc0 ++ ) System . out . print ( "srini_string" ) ; System . out . println ( "srini_string" + arg0 ) ; } |
Generate a Java code for the following instruction: get preauth handler . concode_field_sep KrbSetting krbSetting concode_elem_sep PreauthHandler preauthHandler concode_field_sep void init concode_elem_sep int generateNonce concode_elem_sep KrbSetting getKrbSetting concode_elem_sep KrbConfig getConfig concode_elem_sep ... | PreauthHandler function ( ) { return preauthHandler ; } |
Generate a Java code for the following instruction: get a set of tokenized words in the sentence . concode_field_sep long serialVersionUID concode_elem_sep List<String> links concode_elem_sep List<TokenElement> tokens concode_elem_sep List<LineOffset> offsetMap concode_elem_sep int lineNumber concode_elem_sep String co... | List < TokenElement > function ( ) { return tokens ; } |
Generate a Java code for the following instruction: check if there are any free cells . concode_field_sep boolean[][] newCell concode_elem_sep int[][] grid concode_elem_sep boolean[][] hasCombined concode_field_sep boolean canMoveLeft concode_elem_sep int getCell concode_elem_sep boolean canMoveDown concode_elem_sep vo... | boolean function ( ) { for ( int loc0 = 0 ; loc0 < grid . length ; loc0 ++ ) { for ( int loc1 = 0 ; loc1 < grid . length ; loc1 ++ ) { if ( grid [ loc0 ] [ loc1 ] == 0 ) return false ; } } return true ; } |
Generate a Java code for the following instruction: returns what kind of occurrences the query should look for . concode_field_sep IJavaSearchScope fScope concode_elem_sep String fScopeDescription concode_elem_sep int fLimitTo concode_field_sep String getScopeDescription concode_elem_sep IJavaSearchScope getScope | int function ( ) { return fLimitTo ; } |
Generate a Java code for the following instruction: return root schema with schema owner as the given user . concode_field_sep List<SchemaPlus> schemaTreesToClose concode_elem_sep boolean isImpersonationEnabled concode_elem_sep org.slf4j.Logger logger concode_elem_sep DrillbitContext dContext concode_field_sep void add... | SchemaPlus function ( final String arg0 , final SchemaConfigInfoProvider arg1 ) { final String loc0 = isImpersonationEnabled ? arg0 : ImpersonationUtil . getProcessUserName ( ) ; final SchemaConfig loc1 = SchemaConfig . newBuilder ( loc0 , arg1 ) . build ( ) ; return createRootSchema ( loc1 ) ; } |
Generate a Java code for the following instruction: create and return a builder from system properties . concode_field_sep String PROP_WEBTESTS_BROWSER concode_elem_sep String PROP_WEBTESTS_LOCALES concode_elem_sep String PROP_WEBTESTS_HUB_URL concode_field_sep ChromeBuildr chrome concode_elem_sep SafariBuildr safari c... | SysPropsBuildr function ( ) { return new SysPropsBuildr ( ) ; } |
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null intlistiterator . 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 singletonIntList... | IntListIterator function ( IntListIterator arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableIntListIterator . wrap ( arg0 ) ; } |
Generate a Java code for the following instruction: maybe return directly context concode_field_sep EntityManager entityManager concode_elem_sep SecurityScreenDomainService securityService concode_elem_sep Logger log concode_elem_sep ContextDomainService contextDomainService concode_elem_sep CommonDomainService commonS... | Query function ( Integer arg0 ) { return entityManager . createQuery ( "srini_string" ) . setParameter ( "srini_string" , arg0 ) ; } |
Generate a Java code for the following instruction: also starts the stopwatch . concode_field_sep DecimalFormat[] timeFormat concode_elem_sep long elapsedMillis concode_elem_sep long startTime concode_field_sep void stop concode_elem_sep String stop_start concode_elem_sep void clear concode_elem_sep void start concode_... | void function ( ) { startTime = 0 ; elapsedMillis = 0 ; start ( ) ; } |
Generate a Java code for the following instruction: clears the stack , reseting its capacity to the default . concode_field_sep TShortArrayList _list concode_elem_sep int DEFAULT_CAPACITY concode_field_sep short pop concode_elem_sep short[] toNativeArray concode_elem_sep void toNativeArray concode_elem_sep int size con... | void function ( ) { _list . clear ( DEFAULT_CAPACITY ) ; } |
Generate a Java code for the following instruction: append newstring to the end of oldstring . concode_field_sep int nextBits concode_elem_sep int dstIndex concode_elem_sep byte stringTable[][] concode_elem_sep int bytePointer concode_elem_sep int h concode_elem_sep int andTable[] concode_elem_sep byte uncompData[] con... | byte [ ] function ( byte arg0 [ ] , byte arg1 ) { int loc0 = arg0 . loc0 ; byte loc1 [ ] = new byte [ loc0 + 1 ] ; System . arraycopy ( arg0 , 0 , loc1 , 0 , loc0 ) ; loc1 [ loc0 ] = arg1 ; return loc1 ; } |
Generate a Java code for the following instruction: invokes the underlying map #put object , object method . concode_field_sep Map map concode_field_sep Set entrySet concode_elem_sep boolean containsKey concode_elem_sep Collection values concode_elem_sep void clear concode_elem_sep boolean isEmpty concode_elem_sep bool... | Object function ( Object arg0 , Object arg1 ) { return map . put ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: get the loader for the given class . concode_field_sep Log log concode_field_sep Class loadClass concode_elem_sep Class loadClass | ClassLoader function ( Class arg0 ) { ClassLoader loc0 = arg0 . getClassLoader ( ) ; if ( loc0 == null ) { loc0 = ClassLoader . getSystemClassLoader ( ) ; } return loc0 ; } |
Generate a Java code for the following instruction: a helper to get the string fields from the r class concode_field_sep PlaceHolder placeHolder concode_field_sep Class resolveRClass | String [ ] function ( Context arg0 ) { Class loc0 = resolveRClass ( arg0 . getPackageName ( ) ) ; if ( loc0 != null ) { return Libs . toStringArray ( loc0 . getFields ( ) ) ; } return new String [ 0 ] ; } |
Generate a Java code for the following instruction: 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 ge... | void function ( PropertyChangeListener arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( ) ; } pcsDelegate . addPropertyChangeListener ( arg0 ) ; } |
Generate a Java code for the following instruction: essentially the same as #resolverooturl class , but here we convert the root url to a file directory reference . in fact we delegate to #resolverooturl class and simply convert itsreturn into a file reference . concode_field_sep PlaceHolder placeHolder concode_field_s... | File function ( Class arg0 ) { try { return new File ( resolveRootUrl ( arg0 ) . toURI ( ) ) ; } catch ( URISyntaxException loc0 ) { throw new RuntimeException ( "srini_string" , loc0 ) ; } } |
Generate a Java code for the following instruction: makes a note of the resource adapter identifier with which a resource adapter named raname is registered in the org.jboss.jca.core.spi.rar.resourceadapterrepository . subsequent calls to #getregisteredresourceadapteridentifier string with the passed raname returnthe r... | void function ( final String arg0 , final String arg1 ) { synchronized ( resourceAdapterRepositoryIdentifiers ) { resourceAdapterRepositoryIdentifiers . put ( arg0 , arg1 ) ; } } |
Generate a Java code for the following instruction: enables periodic lookups for measurement purposes . these look up random keys and are scheduled in a constant interval . concode_field_sep Node<T> myNode concode_elem_sep PeerStatus peerStatus concode_elem_sep Logger log concode_elem_sep ComponentsConfig config concod... | void function ( ) { lookupEnabled = true ; beginPeriodicLookups ( ) ; } |
Generate a Java code for the following instruction: parses the splitter info . 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_sep int guid conc... | SpinfoFileParser function ( File arg0 ) { if ( tempdir == null ) { tempdir = createTempDir ( ) ; } if ( ! dkconfig_delete_splitters_on_exit ) { System . out . println ( "srini_string" + tempdir ) ; } return new SpinfoFileParser ( arg0 , tempdir ) ; } |
Generate a Java code for the following instruction: 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 ) ; } |
Generate a Java code for the following instruction: encode a float to the byte array at the given position . will throw indexoutofbounds if it overflows . users should ensure that there are at least 4 bytes left in the buffer before calling this method . concode_field_sep ThreadLocal<Decoders> DECODERS concode_elem_sep... | int function ( float arg0 , byte [ ] arg1 , int arg2 ) { int loc0 = 1 ; int loc1 = Float . floatToRawIntBits ( arg0 ) ; arg1 [ arg2 ] = ( byte ) ( ( loc1 ) & 0xFF ) ; arg1 [ arg2 + loc0 ++ ] = ( byte ) ( ( loc1 >>> 8 ) & 0xFF ) ; arg1 [ arg2 + loc0 ++ ] = ( byte ) ( ( loc1 >>> 16 ) & 0xFF ) ; arg1 [ arg2 + loc0 ++ ] = ... |
Generate a Java code for the following instruction: returns an unmodifiable , empty shortlist . concode_field_sep ShortList EMPTY_SHORT_LIST concode_elem_sep ShortListIterator EMPTY_SHORT_LIST_ITERATOR concode_elem_sep ShortIterator EMPTY_SHORT_ITERATOR concode_field_sep ShortListIterator getEmptyShortListIterator conc... | ShortList function ( ) { return EMPTY_SHORT_LIST ; } |
Generate a Java code for the following instruction: for testing purposes only . clears the cached buffer to force a new allocation on the next invocation . concode_field_sep long CHANNEL_FIELD_OFFSET concode_elem_sep float BUFFER_REALLOCATION_THRESHOLD concode_elem_sep int MAX_CACHED_BUFFER_SIZE concode_elem_sep int MI... | void function ( ) { BUFFER . set ( null ) ; } |
Generate a Java code for the following instruction: paints an overlay edge concode_field_sep Set<Class<? extends Object>> overlayImpls concode_elem_sep VisAnalyzer analyzer concode_field_sep void handleOverlayMsg concode_elem_sep void handleOperation concode_elem_sep void addOverlayUniverseMetric concode_elem_sep void ... | EdgeHandle function ( NetID arg0 , NetID arg1 ) { return addEdge ( arg0 , arg1 , null , Color . GREEN , "srini_string" ) ; } |
Generate a Java code for the following instruction: gets the current undoable pointed to by the internal cursor if it is an undoableedit object . concode_field_sep int MAX_QUEUE_SIZE concode_elem_sep Document doc concode_elem_sep UndoableList queue concode_elem_sep int cursor concode_field_sep void add concode_elem_sep... | UndoableEdit function ( ) { Undoable loc0 = get ( ) ; if ( loc0 instanceof UndoableEdit ) { return ( UndoableEdit ) loc0 ; } else { return null ; } } |
Generate a Java code for the following instruction: add a scoreboard for a player concode_field_sep int gameID concode_elem_sep Team deadTeam concode_elem_sep Objective sidebarObjective concode_elem_sep Team waitingTeam concode_elem_sep Scoreboard scoreboard concode_elem_sep ArrayList<String> activePlayers concode_elem... | void function ( final Player arg0 ) { Scoreboard loc0 = arg0 . getScoreboard ( ) ; if ( loc0 != null ) { this . originalScoreboard . put ( arg0 . getName ( ) , loc0 ) ; } arg0 . setScoreboard ( this . scoreboard ) ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.