input stringlengths 147 4.02k | output stringlengths 21 493 |
|---|---|
Generate a Java code for the following instruction: gets the position back concode_field_sep MSG_TYPE msgType concode_elem_sep SequenceNumber sequenceNr concode_elem_sep byte hopCount concode_elem_sep Point position concode_elem_sep int radius concode_field_sep MSG_TYPE getMsgType concode_elem_sep int getSizeOfAbstract... | Point function ( ) { return position ; } |
Generate a Java code for the following instruction: answers the uicontext . notice this is acting as a context factory . concode_field_sep IUIContext _ui concode_elem_sep Display _display concode_elem_sep Shell _rootShell concode_field_sep IUIContext createUI concode_elem_sep void cacheDisplay concode_elem_sep void set... | IUIContext function ( ) { if ( _ui == null ) _ui = createUI ( ) ; return _ui ; } |
Generate a Java code for the following instruction: returns the position of the first digit in the trailing number of the given string or -1 if the string does not end with number example : alice has got a cat 12 - will return 20 the position of ' 1 ' alice has got a black cat - will return -1 no trailing number in the... | int function ( String arg0 ) { int loc0 ; for ( loc0 = arg0 . length ( ) - 1 ; loc0 >= 0 ; loc0 -- ) { char loc1 = arg0 . charAt ( loc0 ) ; if ( ! Character . isDigit ( loc1 ) ) { break ; } } if ( loc0 == arg0 . length ( ) - 1 ) { return - 1 ; } return loc0 + 1 ; } |
Generate a Java code for the following instruction: calculate the srp verifier v value . concode_field_sep int HASH_LENGTH_HEX concode_elem_sep int CRYPTO_KEY_LENGTH_BYTES concode_elem_sep int SALT_LENGTH_HEX concode_elem_sep int NUMBER_OF_QUICK_STRETCH_ROUNDS concode_elem_sep String KW_VERSION_STRING concode_elem_sep ... | BigInteger function ( byte [ ] arg0 , byte [ ] arg1 , byte [ ] arg2 , BigInteger arg3 , BigInteger arg4 ) { BigInteger loc0 = srpVerifierLowercaseX ( arg0 , arg1 , arg2 ) ; BigInteger loc1 = arg3 . modPow ( loc0 , arg4 ) ; return loc1 ; } |
Generate a Java code for the following instruction: method to get exception details concode_field_sep Logger LOGGER concode_field_sep void init concode_elem_sep void compare concode_elem_sep int validateInput concode_elem_sep void main | String function ( Throwable arg0 ) { return ( arg0 . getCause ( ) != null ) ? arg0 . getCause ( ) . getMessage ( ) : arg0 . getMessage ( ) ; } |
Generate a Java code for the following instruction: sets the value of the machineinterpretationkey property . concode_field_sep String validationPattern concode_elem_sep boolean isValueOptional concode_elem_sep boolean encrypted concode_elem_sep String machineInterpretationKey concode_elem_sep String displayName concod... | void function ( String arg0 ) { this . machineInterpretationKey = arg0 ; } |
Generate a Java code for the following instruction: checks if a charsequence is empty '' '' or null . stringutils.isempty null = true stringutils.isempty '' '' = true stringutils.isempty '' '' = false stringutils.isempty `` bob '' = false stringutils.isempty '' bob '' = false note : this method changed in lang version ... | boolean function ( CharSequence arg0 ) { return arg0 == null || arg0 . length ( ) == 0 ; } |
Generate a Java code for the following instruction: gets date 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 ... | Date function ( @ NonNull Cursor arg0 , int arg1 ) { if ( arg0 . isNull ( arg1 ) ) { return null ; } return new Date ( arg0 . getLong ( arg1 ) ) ; } |
Generate a Java code for the following instruction: sets the invoked . concode_field_sep Log log concode_elem_sep List customers concode_elem_sep boolean invoked concode_field_sep void addCustomer concode_elem_sep List getCustomers concode_elem_sep boolean isInvoked concode_elem_sep String toString concode_elem_sep voi... | void function ( boolean arg0 ) { this . invoked = arg0 ; } |
Generate a Java code for the following instruction: returns the character used for escaping values where the field delimiter is part of the value . defaults to ' '' ' concode_field_sep TextParsingSettings DEFAULT concode_elem_sep String emptyValue concode_elem_sep byte normalizedNewLine concode_elem_sep boolean parseUn... | byte function ( ) { return quote ; } |
Generate a Java code for the following instruction: for use by subclasses when an error is encountered during parsing . should only be used by the xml parsing ctors . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep String copyright concode_elem_sep Throwable invalidScriptError c... | void function ( Throwable arg0 ) { if ( invalidScriptError != null ) invalidScriptError = arg0 ; else Log . warn ( "srini_string" + arg0 ) ; } |
Generate a Java code for the following instruction: returns all the headers that were on the origin response . concode_field_sep Date date concode_elem_sep Map<String,String> variantMap concode_elem_sep StatusLine statusLine concode_elem_sep HeaderGroup responseHeaders concode_elem_sep Resource resource concode_elem_se... | Header [ ] function ( ) { return responseHeaders . getAllHeaders ( ) ; } |
Generate a Java code for the following instruction: gets the error that was thrown during rpc execution . does not block . either #get or #get long , timeunit should be called first because these methods block until the rpc has completed . concode_field_sep CountDownLatch latch concode_elem_sep Callback<T> chainedCallb... | Throwable function ( ) { return error ; } |
Generate a Java code for the following instruction: called when the document is opened . concode_field_sep ArrayList<PdfPageEvent> events concode_field_sep void addPageEvent concode_elem_sep void onSection concode_elem_sep void onParagraph concode_elem_sep void onParagraphEnd concode_elem_sep void onSectionEnd concode_... | void function ( PdfWriter arg0 , Document arg1 ) { for ( PdfPageEvent loc0 : events ) { loc0 . onOpenDocument ( arg0 , arg1 ) ; } } |
Generate a Java code for the following instruction: removes the softlinkrelation of a cpi resource . concode_field_sep EntityManager entityManager concode_elem_sep Logger log concode_elem_sep long serialVersionUID concode_elem_sep ResourceDependencyResolverService dependencyResolverService concode_field_sep void setSof... | void function ( ResourceEntity arg0 ) { List < SoftlinkRelationEntity > loc0 = getSoftlinksForCpi ( arg0 ) ; arg0 . clearSoftlinkRelations ( ) ; for ( SoftlinkRelationEntity loc1 : loc0 ) { entityManager . remove ( loc1 ) ; } } |
Generate a Java code for the following instruction: constructor that takes already-interned arguments . concode_field_sep int MODIFIED_BITVAL concode_elem_sep int[] mods concode_elem_sep int MISSING_FLOW_BITVAL concode_elem_sep Object[] vals concode_elem_sep int STATIC_CONSTANT concode_elem_sep int[] tuplemod_not_missi... | ValueTuple function ( Object [ ] arg0 , int [ ] arg1 ) { return new ValueTuple ( arg0 , arg1 , true ) ; } |
Generate a Java code for the following instruction: returns a list of all loaded frequency adjusters of the function concode_field_sep Logger log concode_elem_sep double frequency concode_elem_sep List<FrequencyAdjuster> frequencyAdjusters concode_elem_sep double maxMagnitude concode_field_sep void setFrequencyAdjuster... | List < FrequencyAdjuster > function ( ) { return this . frequencyAdjusters ; } |
Generate a Java code for the following instruction: returns true if the arguments form a strictly increasing sequence concode_field_sep double functionValueAccuracy concode_elem_sep boolean resultComputed concode_elem_sep double defaultFunctionValueAccuracy concode_elem_sep UnivariateRealFunction f concode_elem_sep dou... | boolean function ( double arg0 , double arg1 , double arg2 ) { return ( arg0 < arg1 ) && ( arg1 < arg2 ) ; } |
Generate a Java code for the following instruction: create an instance of getcontentlanguage concode_field_sep QName _SyncToken_QNAME concode_elem_sep QName _Dst_QNAME concode_elem_sep QName _SyncLevel_QNAME concode_elem_sep QName _Status_QNAME concode_elem_sep QName _Depth_QNAME concode_elem_sep QName _Responsedescrip... | Getcontentlanguage function ( ) { return new Getcontentlanguage ( ) ; } |
Generate a Java code for the following instruction: gets the view at given path in the ui hierarchy , ignoring modals . concode_field_sep NativeModuleRegistry.Builder mNativeModuleRegistryBuilder concode_elem_sep Context mContext concode_elem_sep JavaScriptModuleRegistry.Builder mJSModuleRegistryBuilder concode_field_s... | T function ( ViewGroup arg0 , int ... arg1 ) { ViewGroup loc0 = arg0 ; View loc1 = loc0 . getChildAt ( 0 ) ; for ( int loc2 = 0 ; loc2 < arg1 . length ; loc2 ++ ) { loc1 = ( ( ViewGroup ) loc1 ) . getChildAt ( arg1 [ loc2 ] ) ; } return ( T ) loc1 ; } |
Generate a Java code for the following instruction: isvalidnode returns true if this node is valid ; false otherwise . by default , an invalid node is one that does n't belong to a list mylist is null , but subclasses can override this definition . concode_field_sep Object item concode_elem_sep List myList concode_fiel... | boolean function ( ) { return myList != null ; } |
Generate a Java code for the following instruction: uses heuristics to deduce the proper type given a string naming the type or java class . the search goes as follows : search for a basic type with ` typename ' as a registration key look for ` typename ' as a class name and if it names a type implementor , return an i... | Type function ( String arg0 , Properties arg1 ) { Type loc0 = basic ( arg0 ) ; if ( loc0 != null ) { return loc0 ; } try { Class loc1 = ReflectHelper . classForName ( arg0 ) ; if ( loc1 != null ) { return typeFactory . byClass ( loc1 , arg1 ) ; } } catch ( ClassNotFoundException loc1 ) { } return null ; } |
Generate a Java code for the following instruction: invokes the close method concode_field_sep long size concode_elem_sep long pos concode_elem_sep FileChannel channel concode_elem_sep int BUFSIZE concode_elem_sep MappedByteBuffer[] mappedBuffers concode_field_sep void init concode_elem_sep int read concode_elem_sep in... | void function ( ) { close ( ) ; super . finalize ( ) ; } |
Generate a Java code for the following instruction: return solutiongrid concode_field_sep int difficulty concode_elem_sep Grid playerGrid concode_elem_sep Grid initialGrid concode_elem_sep Grid solutionGrid concode_field_sep Grid getInitialGrid concode_elem_sep Set<Cell> getIncorrect concode_elem_sep void setInitialGri... | Grid function ( ) { return solutionGrid ; } |
Generate a Java code for the following instruction: emits the beginning of the open tag . this method has to be called before other other methods are called on this element . concode_field_sep char EQ concode_elem_sep char LT concode_elem_sep char AMP concode_elem_sep char QUOT concode_elem_sep char GT concode_elem_sep... | void function ( ) { writer . write ( LT ) ; writer . write ( name ) ; } |
Generate a Java code for the following instruction: returns whether the group is enabled or not . 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_elem_sep IRegion get... | boolean function ( ) { return fIsEnabled ; } |
Generate a Java code for the following instruction: creates a new selection from the given start and length . concode_field_sep int fLength concode_elem_sep int fExclusiveEnd concode_elem_sep int INTERSECTS concode_elem_sep int AFTER concode_elem_sep int fStart concode_elem_sep int BEFORE concode_elem_sep int SELECTED ... | Selection function ( int arg0 , int arg1 ) { Assert . isTrue ( arg0 >= 0 && arg1 >= 0 ) ; Selection loc0 = new Selection ( ) ; loc0 . fStart = arg0 ; loc0 . fLength = arg1 ; loc0 . fExclusiveEnd = arg0 + arg1 ; return loc0 ; } |
Generate a Java code for the following instruction: get padata type . concode_field_sep PreauthPluginMeta pluginMeta concode_elem_sep KrbContext context concode_field_sep int getVersion concode_elem_sep void init concode_elem_sep void tryFirst concode_elem_sep boolean process concode_elem_sep String getName concode_ele... | PaDataType [ ] function ( ) { return pluginMeta . getPaTypes ( ) ; } |
Generate a Java code for the following instruction: gets the index of the specified field , or -1 if the field is unsupported . concode_field_sep PlaceHolder placeHolder concode_field_sep int[] getValues concode_elem_sep boolean isEqual concode_elem_sep DateTimeField getField concode_elem_sep DateTimeField getField con... | int function ( DateTimeFieldType arg0 ) { for ( int loc0 = 0 , loc1 = size ( ) ; loc0 < loc1 ; loc0 ++ ) { if ( getFieldType ( loc0 ) == arg0 ) { return loc0 ; } } return - 1 ; } |
Generate a Java code for the following instruction: returns a copy of the interpolating polynomials array . returns a fresh copy of the array . changes made to the copy will not affect the polynomials property . concode_field_sep int n concode_elem_sep long serialVersionUID concode_elem_sep PolynomialFunction polynomia... | PolynomialFunction [ ] function ( ) { PolynomialFunction loc0 [ ] = new PolynomialFunction [ n ] ; System . arraycopy ( polynomials , 0 , loc0 , 0 , n ) ; return loc0 ; } |
Generate a Java code for the following instruction: return the color of this player 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 concode_elem_sep GameplayMediator m... | Color function ( ) { return playerColor ; } |
Generate a Java code for the following instruction: removes any components sequences added so far , except for seed sequences , which are preserved . concode_field_sep PackageLiterals packageLiterals concode_elem_sep ClassLiterals classLiterals concode_elem_sep SequenceCollection gralComponents concode_elem_sep Collect... | void function ( ) { gralComponents . clear ( ) ; gralComponents . addAll ( this . gralSeeds ) ; } |
Generate a Java code for the following instruction: sets the flow control mode for this port . note : this method only supports modes different from xon xoff , because for this mode additional parameters are needed . in order to set xon xoff mode use #setflowcontrol flowcontrol , char , char instead . concode_field_sep... | void function ( FlowControl arg0 ) { if ( arg0 == FlowControl . XON_XOFF ) throw new IllegalArgumentException ( Localizer . getLocalizedMessage ( Port . class , "srini_string" ) ) ; setFlowControl ( device . getHandle ( ) , arg0 . value , ( char ) 0 , ( char ) 0 ) ; } |
Generate a Java code for the following instruction: sort the results by the property in ascending order concode_field_sep PropertyNameGetter propertyNameGetter concode_field_sep AuditCriterion hasNotChanged concode_elem_sep AuditCriterion lt concode_elem_sep AuditProjection distinct concode_elem_sep AuditCriterion lePr... | AuditOrder function ( ) { return new PropertyAuditOrder ( propertyNameGetter , true ) ; } |
Generate a Java code for the following instruction: it is not possible to remove a watcher ... so we just set the tracker in destroyed mode which will simply ignore all subsequent event . concode_field_sep Watcher _treeWacher concode_elem_sep boolean _destroyed concode_elem_sep Object _lock concode_elem_sep ZKDataReade... | void function ( ) { synchronized ( _lock ) { _destroyed = true ; } } |
Generate a Java code for the following instruction: get usecriterion3 . concode_field_sep boolean useCriterion4 concode_elem_sep GenPolynomial<C> pi concode_elem_sep int i concode_elem_sep GenPolynomial<C> pj concode_elem_sep int j concode_elem_sep boolean useCriterion3 concode_elem_sep int n concode_elem_sep boolean t... | boolean function ( ) { return this . useCriterion3 ; } |
Generate a Java code for the following instruction: compare two object about result if v1 > v2 , return 1 if v1 = v2 , return 0 if v1 about rule if v1 is null , v2 is null , then return 0 if v1 is null , v2 is not null , then return -1 if v1 is not null , v2 is null , then return 1 return v1 . comparable #compareto obj... | int function ( V arg0 , V arg1 ) { return arg0 == null ? ( arg1 == null ? 0 : - 1 ) : ( arg1 == null ? 1 : ( ( Comparable ) arg0 ) . compareTo ( arg1 ) ) ; } |
Generate a Java code for the following instruction: throw 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_e... | void function ( ) { usage ( null ) ; } |
Generate a Java code for the following instruction: override the default screen capture strategy with a user-defined one . concode_field_sep int MAX_CAPTURE_RETRIES concode_elem_sep int CAPTURE_RETRY_INTERVAL concode_elem_sep IScreenCaptureHandler handler concode_elem_sep String BASE_IMAGE_NAME concode_elem_sep String ... | void function ( IScreenCaptureHandler arg0 ) { ScreenCapture . arg0 = arg0 ; } |
Generate a Java code for the following instruction: obtains default ssl socket factory with an ssl context based on the standard jsse trust material cacerts file in the security properties directory . system properties are not taken into consideration . concode_field_sep String SSLV2 concode_elem_sep X509HostnameVerifi... | SSLConnectionSocketFactory function ( ) { return new SSLConnectionSocketFactory ( SSLContexts . createDefault ( ) , BROWSER_COMPATIBLE_HOSTNAME_VERIFIER ) ; } |
Generate a Java code for the following instruction: determine suitable proxy for gcd algorithms , case bigrational . concode_field_sep Logger logger concode_field_sep GreatestCommonDivisor<ModInteger> getImplementation concode_elem_sep GreatestCommonDivisor<BigInteger> getImplementation concode_elem_sep GreatestCommonD... | GreatestCommonDivisor < BigRational > function ( BigRational arg0 ) { GreatestCommonDivisorAbstract < BigRational > loc0 , loc1 ; return getImplementation ( arg0 ) ; } |
Generate a Java code for the following instruction: note : it is callers responsibility to validate post exec . concode_field_sep PlaceHolder placeHolder concode_field_sep void syncExec | void function ( ) { run ( WorkbenchFinder . getActiveWindow ( ) ) ; } |
Generate a Java code for the following instruction: evaluates the predicate returning false if any stored predicate returns false . concode_field_sep long serialVersionUID concode_elem_sep Predicate[] iPredicates concode_field_sep Predicate getInstance concode_elem_sep Predicate getInstance concode_elem_sep Predicate[]... | boolean function ( Object arg0 ) { for ( int loc0 = 0 ; loc0 < iPredicates . length ; loc0 ++ ) { if ( iPredicates [ loc0 ] . evaluate ( arg0 ) ) { return false ; } } return true ; } |
Generate a Java code for the following instruction: returns an unmodifiable buffer backed by the given buffer . concode_field_sep Buffer EMPTY_BUFFER concode_field_sep Buffer predicatedBuffer concode_elem_sep Buffer transformedBuffer concode_elem_sep Buffer typedBuffer concode_elem_sep Buffer blockingBuffer concode_ele... | Buffer function ( Buffer arg0 ) { return UnmodifiableBuffer . decorate ( arg0 ) ; } |
Generate a Java code for the following instruction: return the name of the command that we will look up anddelegate execution to . 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 ge... | String function ( ) { return ( this . name ) ; } |
Generate a Java code for the following instruction: returns a realmatrix whose entries are the the values in thethe input array . the input array is copied , not referenced . concode_field_sep PlaceHolder placeHolder concode_field_sep BigMatrix createColumnBigMatrix concode_elem_sep BigMatrix createColumnBigMatrix conc... | RealMatrix function ( double [ ] [ ] arg0 ) { return new RealMatrixImpl ( arg0 ) ; } |
Generate a Java code for the following instruction: called when the javadoc ant script is generated . concode_field_sep IJavadocExportWizardPageContainer fContainer concode_elem_sep IStatus fPageStatus concode_field_sep void setVisible concode_elem_sep IJavadocExportWizardPageContainer getContainer concode_elem_sep voi... | void function ( Element arg0 ) { } |
Generate a Java code for the following instruction: return the count of records in the buffer . used for task input only . concode_field_sep int count concode_elem_sep ByteBuffer buffer concode_field_sep ByteBuffer buffer concode_elem_sep void buffer | int function ( ) { return count ; } |
Generate a Java code for the following instruction: inserts a symbol map into the set of available symbol maps , keyed by resource url . concode_field_sep int ERROR_SYMBOL_FETCH_FAIL concode_elem_sep IterableFastStringMap<JsSymbolMap> resourceSymbols concode_elem_sep String resourceUrl concode_elem_sep List<PendingRequ... | void function ( String arg0 , JsSymbolMap arg1 ) { resourceSymbols . put ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: track the passed persistence units for the application concode_field_sep AttachmentKey<PersistenceUnitsInApplication> PERSISTENCE_UNITS_IN_APPLICATION concode_elem_sep List<PersistenceUnitMetadataHolder> persistenceUnitMetadataHolderList concode_elem_sep int count con... | void function ( PersistenceUnitMetadataHolder arg0 ) { persistenceUnitMetadataHolderList . add ( arg0 ) ; } |
Generate a Java code for the following instruction: prints the ast in ` ascii art ' form to the specified print stream . concode_field_sep boolean showClassNames concode_elem_sep Map tokenTypeNameCache concode_field_sep String showAsString concode_elem_sep String nodeToString concode_elem_sep void showNode concode_elem... | void function ( AST arg0 , PrintStream arg1 ) { showAst ( arg0 , new PrintWriter ( arg1 ) ) ; } |
Generate a Java code for the following instruction: this method returns the value of the database column sys_ip_area . company 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 distri... | String function ( ) { return company ; } |
Generate a Java code for the following instruction: is the iselectionempty or null ? concode_field_sep String DOT concode_elem_sep String SLASH_STRING concode_elem_sep char DOT_CHAR concode_elem_sep char SLASH_CHAR concode_field_sep void safeJoin concode_elem_sep void assertNotEmpty concode_elem_sep String slashAppend ... | boolean function ( ISelection arg0 ) { if ( ( arg0 == null ) || ( arg0 . isEmpty ( ) ) ) { return true ; } else { return false ; } } |
Generate a Java code for the following instruction: add a resolver at the end of the underlying resolver list . the resolver added by this method is at lower priority than any other existing resolvers . concode_field_sep CoreMessageLogger LOG concode_elem_sep List<DialectResolver> resolvers concode_field_sep void addRe... | void function ( DialectResolver arg0 ) { resolvers . add ( arg0 ) ; } |
Generate a Java code for the following instruction: clear the update-timestamps data . concode_field_sep SessionFactoryImplementor factory concode_elem_sep boolean DEBUG_ENABLED concode_elem_sep String REGION_NAME concode_elem_sep CoreMessageLogger LOG concode_elem_sep TimestampsRegion region concode_field_sep boolean ... | void function ( ) { region . evictAll ( ) ; } |
Generate a Java code for the following instruction: this method returns the value of the database column sys_ip_area . start_ip 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 distr... | Long function ( ) { return startIp ; } |
Generate a Java code for the following instruction: add a single element to the list of elements . concode_field_sep ArrayList<Element> list concode_field_sep void addAll concode_elem_sep List<Element> elements | void function ( final Element arg0 ) { list . add ( arg0 ) ; } |
Generate a Java code for the following instruction: returns the number of values for each vertex in the vertex buffer layout . concode_field_sep AbstractPrimitiveShader shader concode_elem_sep VectorXYZW lightPos concode_elem_sep GL3 gl concode_elem_sep int valueTypeSize concode_elem_sep int glValueType concode_elem_se... | int function ( ) { return 4 ; } |
Generate a Java code for the following instruction: gets the statementreplacer for the replace statements in the file parsed . concode_field_sep String lineSep concode_elem_sep StatementReplacer statementReplacer concode_elem_sep String spinfoFileName concode_elem_sep String tempDir concode_elem_sep SplitterObject[][] ... | StatementReplacer function ( ) { return statementReplacer ; } |
Generate a Java code for the following instruction: build a properly sized map , especially handling load size and load factor to prevent immediate resizing . especially helpful for copy map contents . concode_field_sep int MINIMUM_INITIAL_CAPACITY concode_elem_sep List EMPTY_LIST concode_elem_sep Collection EMPTY_COLL... | Map < K , V > function ( int arg0 ) { return new HashMap < K , V > ( determineProperSizing ( arg0 ) , LOAD_FACTOR ) ; } |
Generate a Java code for the following instruction: liefert das signal , mit dem die letzte ' 1 ' codiert wurde . concode_field_sep ZeroBuffer zeroBuffer concode_elem_sep int pointer concode_elem_sep char last concode_elem_sep State state concode_elem_sep boolean[] buffer concode_elem_sep AMI.Medium medium concode_fiel... | char function ( ) { return this . last ; } |
Generate a Java code for the following instruction: returns delegate reflector concode_field_sep GenericArrayReflector _array concode_elem_sep Collection4 _collectionPredicates concode_elem_sep Hashtable4 _classByClass concode_elem_sep ObjectContainerBase _stream concode_elem_sep KnownClassesRepository _repository conc... | Reflector function ( ) { return _delegate ; } |
Generate a Java code for the following instruction: creates this element in domain model and also creates other resources if needed e.g. external files concode_field_sep PlaceHolder placeHolder concode_field_sep String getName concode_elem_sep void remove concode_elem_sep void remove | void function ( CLIWrapper arg0 ) { throw new IllegalStateException ( "srini_string" ) ; } |
Generate a Java code for the following instruction: gets the task ids allocated for the given component id . the task ids are always returned in ascending order . concode_field_sep StormTopology _topology concode_elem_sep String _stormId concode_elem_sep Map<Integer,String> _taskToComponent concode_elem_sep Map<String,... | List < Integer > function ( String arg0 ) { List < Integer > loc0 = _componentToTasks . get ( arg0 ) ; if ( loc0 == null ) return new ArrayList < > ( ) ; else return new ArrayList < > ( loc0 ) ; } |
Generate a Java code for the following instruction: updates the given bean in the database sql update concode_field_sep int[] insertJdbcTypes concode_elem_sep DataSource dataSource concode_elem_sep String autoIncrColumnName concode_field_sep Long doInsertAutoIncrOLD concode_elem_sep String getSqlSelect concode_elem_sep... | int function ( T arg0 ) { JdbcTemplate loc0 = getJdbcTemplate ( ) ; int loc1 = loc0 . update ( getSqlUpdate ( ) , getValuesForUpdate ( arg0 ) ) ; if ( loc1 != 0 && loc1 != 1 ) { throw new RuntimeException ( "srini_string" + loc1 + "srini_string" ) ; } return loc1 ; } |
Generate a Java code for the following instruction: test 0-argument commands concode_field_sep Parser parser concode_field_sep void findCommand_invalidArgs concode_elem_sep void addCommand_invalidArgs concode_elem_sep void addCommand_duplicateTags_merged concode_elem_sep void deleteCommand_numericArg_indexParsedCorrect... | void function ( ) { final String loc0 = "srini_string" ; parseAndAssertCommandType ( loc0 , HelpCommand . class ) ; } |
Generate a Java code for the following instruction: rotates the camera around the yaw axis concode_field_sep VectorXYZ pos concode_elem_sep VectorXYZ lookAt concode_elem_sep VectorXYZ up concode_field_sep void moveMapRight concode_elem_sep void setCamera concode_elem_sep void setCamera concode_elem_sep void moveForward... | void function ( double arg0 ) { VectorXYZ loc0 = lookAt . subtract ( pos ) ; VectorXYZ loc1 = loc0 . rotateVec ( arg0 , up ) ; lookAt = pos . add ( loc1 ) ; } |
Generate a Java code for the following instruction: attempt to retrieve an object from the cache . concode_field_sep AdvancedCache<Object,Object> writeCache concode_elem_sep AdvancedCache cache concode_elem_sep PutFromLoadValidator putValidator concode_elem_sep boolean TRACE_ENABLED concode_elem_sep Log log concode_ele... | Object function ( Object arg0 , long arg1 ) { if ( ! region . checkValid ( ) ) { return null ; } final Object loc0 = cache . get ( arg0 ) ; if ( loc0 == null ) { putValidator . registerPendingPut ( arg0 ) ; } return loc0 ; } |
Generate a Java code for the following instruction: sets the location of the guide concode_field_sep String PROPERTY_CHILDREN concode_elem_sep boolean horizontal concode_elem_sep String PROPERTY_POSITION concode_elem_sep int position concode_elem_sep Map map concode_elem_sep long serialVersionUID concode_elem_sep Prope... | void function ( int arg0 ) { if ( position != arg0 ) { int loc0 = position ; position = arg0 ; listeners . firePropertyChange ( PROPERTY_POSITION , new Integer ( loc0 ) , new Integer ( position ) ) ; } } |
Generate a Java code for the following instruction: intended for aerrorbarpolicyconfigurable only . concode_field_sep int m_negativeYErrorPixel concode_elem_sep int m_negativeXErrorPixel concode_elem_sep int m_positiveYErrorPixel concode_elem_sep int m_positiveXErrorPixel concode_elem_sep ITrace2D m_trace concode_elem_... | void function ( final int arg0 ) { this . m_positiveYErrorPixel = arg0 ; } |
Generate a Java code for the following instruction: converts the collected terms and values to a string . does not write to the parent writer . concode_field_sep List<Pair<String,Object>> values concode_elem_sep PrintWriter pw concode_elem_sep Map<Prel,OpId> ids concode_elem_sep Spacer spacer concode_elem_sep SqlExplai... | String function ( ) { final StringBuilder loc0 = new StringBuilder ( "srini_string" ) ; for ( Ord < Pair < String , Object >> loc1 : Ord . zip ( values ) ) { if ( loc1 . i > 0 ) { loc0 . append ( "srini_string" ) ; } loc0 . append ( loc1 . e . left ) . append ( "srini_string" ) . append ( loc1 . e . right ) . append ( ... |
Generate a Java code for the following instruction: get the widget finder that is doing the heavy lifting . concode_field_sep IUIContext _ui concode_elem_sep WidgetFinderService _finderService concode_field_sep Widget[] findAllInScope concode_elem_sep IWidgetLocator[] findAll | WidgetFinderService function ( Display arg0 ) { if ( _finderService == null ) _finderService = new WidgetFinderService ( arg0 ) ; return _finderService ; } |
Generate a Java code for the following instruction: load default values for the shader . should be called after every #useshader and before any draw calls . concode_field_sep int shaderProgram concode_elem_sep GL3 gl concode_elem_sep int vertexShader concode_elem_sep int fragmentShader concode_field_sep void useShader ... | void function ( ) { } |
Generate a Java code for the following instruction: always call super if you override concode_field_sep PlaceHolder placeHolder concode_field_sep void lockFile concode_elem_sep Object createWeakReference concode_elem_sep Reflector createReflector concode_elem_sep Class constructorClass concode_elem_sep void killYapRef ... | void function ( Config4Impl arg0 ) { } |
Generate a Java code for the following instruction: return true if the rule is triggered by the given line and name given the structure of the supplied document concode_field_sep List<String> parameters concode_elem_sep int lineNumber concode_elem_sep RuleType ruleType concode_elem_sep int lineNumberLimit concode_field... | boolean function ( Document arg0 , ValidationError arg1 ) { int loc0 = arg1 . getLineNumber ( ) ; String loc1 = arg1 . getValidatorName ( ) ; if ( loc1 . equals ( "srini_string" ) ) { loc1 = extractJSValidatorName ( arg1 . getMessage ( ) ) ; } return isTriggeredBy ( arg0 , loc0 , loc1 ) ; } |
Generate a Java code for the following instruction: called when the document is opened . concode_field_sep PlaceHolder placeHolder concode_field_sep void onSection concode_elem_sep void onParagraph concode_elem_sep void onParagraphEnd concode_elem_sep void onSectionEnd concode_elem_sep void onEndPage concode_elem_sep v... | void function ( PdfWriter arg0 , Document arg1 ) { } |
Generate a Java code for the following instruction: write all rows added to the named output stream . concode_field_sep byte[] MAGIC_1 concode_elem_sep ColumnFileMetaData metaData concode_elem_sep long size concode_elem_sep byte[] MAGIC_0 concode_elem_sep ColumnOutputBuffer[] columns concode_elem_sep long rowCount conc... | void function ( OutputStream arg0 ) { writeHeader ( arg0 ) ; for ( int loc0 = 0 ; loc0 < columnCount ; loc0 ++ ) columns [ loc0 ] . writeTo ( arg0 ) ; } |
Generate a Java code for the following instruction: execute the specified command returning a value if any concode_field_sep IJavascriptRuntime runtime concode_elem_sep IWebEngine engine concode_field_sep String getArrayFunction concode_elem_sep String getFunction concode_elem_sep String getFunction concode_elem_sep vo... | JSObject function ( String arg0 ) { Object loc0 = engine . executeScript ( arg0 ) ; if ( loc0 instanceof JSObject ) { return ( JSObject ) loc0 ; } return null ; } |
Generate a Java code for the following instruction: verify if the time per execution of a task matches the actual time required to execute the task a given number of times concode_field_sep Function<Integer,T> factory concode_elem_sep int THREAD_COUNT concode_elem_sep int TASK_COUNT concode_elem_sep int expectedExecuti... | void function ( ) { for ( int loc0 = 0 ; loc0 < 10 ; loc0 ++ ) { assertEquals ( this . expectedExecutionTime * loc0 , this . factory . apply ( loc0 ) . getTimeMs ( ) ) ; } } |
Generate a Java code for the following instruction: set parser state to unknownstate . concode_field_sep State closeStarComment concode_elem_sep State selfClosing concode_elem_sep State tagAttributes concode_elem_sep State unquoted concode_elem_sep State unknown concode_elem_sep State inTag concode_elem_sep State cdata... | XMLParser function ( ) { return setState ( unknown ) ; } |
Generate a Java code for the following instruction: creates the edge origin , destination . if the edge did not already exists , increments the edge count . concode_field_sep boolean[][] adjMatrix concode_elem_sep int vertices concode_elem_sep int edges concode_field_sep void removeEdge concode_elem_sep boolean hasEdge... | void function ( int arg0 , int arg1 ) { if ( validVertex ( arg0 ) && validVertex ( arg1 ) ) { if ( ! adjMatrix [ arg0 ] [ arg1 ] ) { adjMatrix [ arg0 ] [ arg1 ] = true ; edges ++ ; } } } |
Generate a Java code for the following instruction: get the subject widget 's class . concode_field_sep long serialVersionUID concode_elem_sep HashMap _map concode_elem_sep int UNASSIGNED concode_elem_sep int _index concode_elem_sep WidgetLocator _parentInfo concode_elem_sep Class _cls concode_elem_sep String _nameOrLa... | Class function ( ) { return _cls ; } |
Generate a Java code for the following instruction: retrieve a list of all the location information trees for a sub message field . concode_field_sep Map<FieldDescriptor,List<TextFormatParseInfoTree>> subtreesFromField concode_elem_sep Map<FieldDescriptor,List<TextFormatParseLocation>> locationsFromField concode_elem_s... | List < TextFormatParseInfoTree > function ( final FieldDescriptor arg0 ) { List < TextFormatParseInfoTree > loc0 = subtreesFromField . get ( arg0 ) ; return loc0 == null ? Collections . < TextFormatParseInfoTree > emptyList ( ) : loc0 ; } |
Generate a Java code for the following instruction: receive a message from an imported script . concode_field_sep PlaceHolder placeHolder concode_field_sep void onAlert concode_elem_sep void onConfirm concode_elem_sep void onPrompt concode_elem_sep void onDebugRequest concode_elem_sep void onReady | void function ( GeckoView arg0 , Bundle arg1 , GeckoView . MessageResult arg2 ) { if ( arg2 != null ) { arg2 . failure ( null ) ; } } |
Generate a Java code for the following instruction: take a screenshot . concode_field_sep int CLOSE_ALL_WAIT_THRESHOLD concode_elem_sep int _disposedCount concode_elem_sep boolean _first concode_elem_sep IUIContext ui concode_elem_sep boolean _screenCaptureOnFirst concode_elem_sep int _closeCalls concode_elem_sep int C... | void function ( String arg0 ) { String loc0 = TestMonitor . getInstance ( ) . getCurrentTestCaseID ( ) ; TraceHandler . trace ( IRuntimePluginTraceOptions . WIDGET_SELECTION , "srini_string" + arg0 + "srini_string" + loc0 ) ; ScreenCapture . createScreenCapture ( loc0 ) ; } |
Generate a Java code for the following instruction: get the sax inputsource to be used for the source . concode_field_sep String FEATURE concode_elem_sep XMLReader reader concode_elem_sep InputSource inputSource concode_field_sep String getSystemId concode_elem_sep InputSource sourceToInputSource concode_elem_sep void ... | InputSource function ( ) { return inputSource ; } |
Generate a Java code for the following instruction: create an instance of callcontext 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_... | CallContext function ( ) { return new CallContext ( ) ; } |
Generate a Java code for the following instruction: compare the resource groups by name null concode_field_sep String ALLRESOURCESBYTYPE_QUERY concode_elem_sep Set<FavoriteResourceEntity> favorites concode_elem_sep String fcExternalKey concode_elem_sep Set<ResourceActivationEntity> resourceActivationEntities concode_el... | int function ( ResourceGroupEntity arg0 ) { if ( arg0 == null ) { return 1 ; } else { if ( getName ( ) == null ) { return arg0 . getName ( ) == null ? 0 : - 1 ; } else { return arg0 . getName ( ) == null ? 1 : getName ( ) . compareTo ( arg0 . getName ( ) ) ; } } } |
Generate a Java code for the following instruction: residue absolute value . concode_field_sep GenPolynomial<C> val concode_elem_sep ResidueRing<C> ring concode_elem_sep int isunit concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Residue<C> inverse concode_elem_sep boolean isUnit concode_ele... | Residue < C > function ( ) { return new Residue < C > ( ring , val . abs ( ) , isunit ) ; } |
Generate a Java code for the following instruction: obtain a default hierarchy . this method is provided only to support the deprecated componenttester.assertframeshowing method . concode_field_sep Collection EMPTY concode_elem_sep WindowTracker tracker concode_elem_sep Hierarchy defaultHierarchy concode_field_sep bool... | Hierarchy function ( ) { return defaultHierarchy != null ? defaultHierarchy : new AWTHierarchy ( ) ; } |
Generate a Java code for the following instruction: observes if currently editing resource type concode_field_sep Boolean testing concode_elem_sep ch.puzzle.itc.mobiliar.business.utils.Identifiable resourceOrResourceType concode_elem_sep Integer relationId concode_field_sep void onChangedTestingMode concode_elem_sep bo... | void function ( @ Observes ResourceTypeEntity arg0 ) { if ( arg0 != null ) { resourceOrResourceType = arg0 ; } } |
Generate a Java code for the following instruction: initializes resources . this must be called before #getresources . this allows us to avoid an evil static initializer that would pollute all the getresources call sites . concode_field_sep Resources resources concode_field_sep Css optionsPageCss concode_elem_sep Resou... | void function ( ) { resources = GWT . create ( Resources . class ) ; StyleInjector . inject ( resources . whitelistTableCss ( ) . getText ( ) + resources . optionsPageCss ( ) . getText ( ) + resources . tableControlsCss ( ) . getText ( ) ) ; } |
Generate a Java code for the following instruction: triangulation of a polygon with holes , based on a conforming delaunay triangulation concode_field_sep Geometry[] EMPTY_GEOM_ARRAY concode_field_sep placeholderType placeHolder | List < TriangleXZ > function ( SimplePolygonXZ arg0 , Collection < SimplePolygonXZ > arg1 ) { List < VectorXZ > loc0 = emptyList ( ) ; List < LineSegmentXZ > loc1 = emptyList ( ) ; return triangulate ( arg0 , arg1 , loc1 , loc0 ) ; } |
Generate a Java code for the following instruction: copy residue element c. concode_field_sep Logger logger concode_elem_sep RingFactory<C> ring concode_elem_sep int isField concode_elem_sep C modul concode_field_sep Residue<C> random concode_elem_sep Residue<C> random concode_elem_sep int hashCode concode_elem_sep boo... | Residue < C > function ( Residue < C > arg0 ) { return new Residue < C > ( arg0 . ring , arg0 . val ) ; } |
Generate a Java code for the following instruction: answers the stored key that is equal to the specified key . concode_field_sep HashMapEntry next concode_elem_sep HashMapEntry[] elementData concode_elem_sep int start concode_elem_sep int threshold concode_elem_sep IElementComparer comparer concode_elem_sep HashMapEnt... | Object function ( Object arg0 ) { int loc0 = ( hashCode ( arg0 ) & 0x7FFFFFFF ) % elementData . length ; HashMapEntry loc1 = elementData [ loc0 ] ; while ( loc1 != null ) { if ( keyEquals ( arg0 , loc1 . arg0 ) ) return loc1 . arg0 ; loc1 = loc1 . next ; } return null ; } |
Generate a Java code for the following instruction: encodes a string into its quoted-printable form using the default string charset . unsafe characters are escaped . this function implements a subset of quoted-printable encoding specification rule # 1 and rule # 2 as defined in rfc 1521 and is suitable for encoding bi... | String function ( String arg0 ) { if ( arg0 == null ) { return null ; } try { return encode ( arg0 , getDefaultCharset ( ) ) ; } catch ( UnsupportedEncodingException loc0 ) { throw new EncoderException ( loc0 . getMessage ( ) , loc0 ) ; } } |
Generate a Java code for the following instruction: get base 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 S... | String function ( ) { return baseZNode ; } |
Generate a Java code for the following instruction: adds the subpath to this path . concode_field_sep List<Subpath> subpaths concode_elem_sep String START_PATH_ERR_MSG concode_elem_sep Point2D currentPoint concode_field_sep Point2D getCurrentPoint concode_elem_sep void curveTo concode_elem_sep void curveTo concode_elem... | void function ( Subpath arg0 ) { subpaths . add ( arg0 ) ; currentPoint = arg0 . getLastPoint ( ) ; } |
Generate a Java code for the following instruction: decrements active tranbsaction count and completes suspension if we are suspending and there are no more active transactions left . concode_field_sep int activeInvocationCount concode_elem_sep InjectedValue<DeploymentRepository> deploymentRepositoryInjectedValue conco... | void function ( ) { int loc0 = activeTransactionCountUpdater . decrementAndGet ( this ) ; if ( suspended && loc0 == 0 && activeInvocationCountUpdater . get ( this ) == 0 ) { doneSuspended ( ) ; } } |
Generate a Java code for the following instruction: client address concode_field_sep InetAddress _remoteAddr concode_elem_sep Principal realPrincipal concode_elem_sep Subject _subject concode_elem_sep AtomicInteger uniqueId concode_elem_sep Integer _reqID concode_elem_sep ThreadLocal<ReqContext> ctxt concode_field_sep ... | void function ( InetAddress arg0 ) { _remoteAddr = arg0 ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.