input stringlengths 147 4.02k | output stringlengths 21 493 |
|---|---|
Generate a Java code for the following instruction: sets the color of this rectangle . concode_field_sep boolean filled concode_elem_sep double x concode_elem_sep double width concode_elem_sep double y concode_elem_sep Color color concode_elem_sep double height concode_field_sep int getX concode_elem_sep int getHeight ... | void function ( Color arg0 ) { color = arg0 ; Canvas . getInstance ( ) . repaint ( ) ; } |
Generate a Java code for the following instruction: rebind val to name in ctx , and make sure that all intermediate contexts exist concode_field_sep PlaceHolder placeHolder concode_field_sep Context createSubcontext concode_elem_sep void unbind concode_elem_sep void unbind concode_elem_sep boolean isEmpty concode_elem_... | void function ( final Context arg0 , final String arg1 , final Object arg2 ) { final Name loc0 = arg0 . getNameParser ( "srini_string" ) . parse ( arg1 ) ; rebind ( arg0 , loc0 , arg2 ) ; } |
Generate a Java code for the following instruction: an arbitrary number which does not correspond to an active customer id . concode_field_sep InMemoryCustomerDao dao concode_elem_sep Customer CUSTOMER concode_field_sep void addingShouldResultInSuccess concode_elem_sep void deletionShouldBeFailureAndNotAffectExistingCu... | int function ( ) { return 999 ; } |
Generate a Java code for the following instruction: start a transaction in an agency database . no checking is done to ensure the agency exists ; if it does not you will get a hopefully empty db , unless you 've done the same thing previously . concode_field_sep DB tx concode_elem_sep TxMaker globalTxMaker concode_elem... | AgencyTx function ( String arg0 ) { return new AgencyTx ( getRawAgencyTx ( arg0 ) ) ; } |
Generate a Java code for the following instruction: quotient absolute value . concode_field_sep Logger logger concode_elem_sep QuotientRing<C> ring concode_elem_sep boolean debug concode_elem_sep GenPolynomial<C> num concode_elem_sep GenPolynomial<C> den concode_field_sep int signum concode_elem_sep boolean isONE conco... | Quotient < C > function ( ) { return new Quotient < C > ( ring , num . abs ( ) , den , true ) ; } |
Generate a Java code for the following instruction: output a debugging string . concode_field_sep PlaceHolder placeHolder concode_field_sep int getMaximumValueOverall concode_elem_sep String getName concode_elem_sep int getMinimumValueOverall concode_elem_sep int getMaximumShortTextLength concode_elem_sep DateTimeField... | String function ( ) { return "srini_string" + getName ( ) + "srini_string" ; } |
Generate a Java code for the following instruction: is null or its size is 0 isempty null = true ; isempty = true ; isempty 1 = false ; concode_field_sep CharSequence DEFAULT_JOIN_SEPARATOR concode_field_sep String join | boolean function ( Collection < V > arg0 ) { return ( arg0 == null || arg0 . size ( ) == 0 ) ; } |
Generate a Java code for the following instruction: return the context key under which our catalog has beenstored . concode_field_sep String catalogKey concode_field_sep boolean execute concode_elem_sep void setCatalogKey | String function ( ) { return ( this . catalogKey ) ; } |
Generate a Java code for the following instruction: builds the new person object . concode_field_sep String firstName concode_elem_sep String lastName concode_elem_sep Date creationTime concode_elem_sep Person built concode_elem_sep Date modificationTime concode_elem_sep long version concode_elem_sep Long id concode_fi... | Person function ( ) { return built ; } |
Generate a Java code for the following instruction: returns the message source mock . concode_field_sep String ERROR_MESSAGE concode_elem_sep String FEEDBACK_MESSAGE concode_elem_sep String FLASH_ERROR_MESSAGE concode_elem_sep String VIEW_REDIRECT_PREFIX concode_elem_sep MessageSource messageSourceMock concode_elem_sep... | MessageSource function ( ) { return messageSourceMock ; } |
Generate a Java code for the following instruction: gets the httpclient to issue request . concode_field_sep HttpResponseInterceptor contentEncodingInterceptor concode_elem_sep HttpClient backend concode_elem_sep HttpRequestInterceptor acceptEncodingInterceptor concode_field_sep HttpHost getHttpHost concode_elem_sep Cl... | HttpClient function ( ) { return this . backend ; } |
Generate a Java code for the following instruction: rotates a vector on the y axis concode_field_sep float x concode_elem_sep float z concode_elem_sep float y concode_field_sep void setLength concode_elem_sep void logVector concode_elem_sep void normalize concode_elem_sep double dot concode_elem_sep void cross concode_... | void function ( Point3D arg0 , double arg1 , double arg2 ) { float loc0 = arg0 . loc0 ; float loc1 = arg0 . loc1 ; arg0 . loc0 = ( float ) ( arg2 * loc0 - arg1 * loc1 ) ; arg0 . loc1 = ( float ) ( arg1 * loc0 + arg2 * loc1 ) ; } |
Generate a Java code for the following instruction: get a `` preloaded '' mock couchdb suitable to be used as a pull replication target . it 's preloaded in the sense that it is ready serve up mock documents . this ca n't be used to simulate a sync gateway , because it does not support _ bulk_get concode_field_sep Stri... | MockWebServer function ( MockDispatcher arg0 , int arg1 , int arg2 ) { return new MockPreloadedPullTarget ( arg0 , arg1 , arg2 ) . getMockWebServer ( ) ; } |
Generate a Java code for the following instruction: rgb 8-bit per channel to ycc 16-bit per channel . concode_field_sep int bits concode_elem_sep String name concode_elem_sep int mask concode_field_sep int getBits concode_elem_sep void RGBtoYUV concode_elem_sep void RGBtoYIQ concode_elem_sep void YUVtoRGB concode_elem_... | void function ( int arg0 , int [ ] arg1 ) { int loc0 = ( arg0 & 0xff0000 ) >>> 16 ; int loc1 = ( arg0 & 0xff00 ) >>> 8 ; int loc2 = arg0 & 0xff ; int loc3 = 77 * loc0 + 153 * loc1 + 26 * loc2 ; int loc4 = loc0 * 256 - loc3 ; int loc5 = loc2 * 256 - loc3 ; int loc6 = ( loc5 / 2 ) + 128 * 256 ; int loc7 = ( loc4 * 5 / 8 ... |
Generate a Java code for the following instruction: getowner returns the name of this account 's owner . concode_field_sep int number concode_elem_sep int balance concode_elem_sep String name concode_field_sep int getNumber concode_elem_sep int getKey concode_elem_sep int getBalance concode_elem_sep boolean lessThan co... | String function ( ) { return name ; } |
Generate a Java code for the following instruction: nobody get the lock when globalmutex contains nothing concode_field_sep int currentReaderCount concode_elem_sep ReadLock readerLock concode_elem_sep Object readerMutex concode_elem_sep WriteLock writerLock concode_elem_sep Set<Object> globalMutex concode_field_sep Loc... | boolean function ( ) { return globalMutex . isEmpty ( ) ; } |
Generate a Java code for the following instruction: fail with the specified message and the content of the specified collections concode_field_sep PlaceHolder placeHolder concode_field_sep int testContains concode_elem_sep int testContains concode_elem_sep boolean testContains concode_elem_sep void assertContainsOnly c... | void function ( String arg0 , Object [ ] arg1 , Collection arg2 ) { fail ( arg0 , arg1 , arg2 , new Comparator < Object > ( ) { public int compare ( Object arg3 , Object arg4 ) { return arg3 == arg4 ? 0 : - 1 ; } } ) ; } |
Generate a Java code for the following instruction: looks up a key code and returns a human readable string . sometimes this is just the key , other times it is the function of the key written out in english . concode_field_sep JsIntegerMap<String> keyCodeDescMap concode_elem_sep Handler handler concode_elem_sep int ke... | String function ( int arg0 ) { String loc0 = keyCodeDescMap . get ( arg0 ) ; if ( loc0 == null ) { return Character . toString ( ( char ) arg0 ) ; } return loc0 ; } |
Generate a Java code for the following instruction: searches the list of induction variables for an induction variable with a given value number . concode_field_sep Expr ind_term concode_elem_sep boolean changed concode_elem_sep FlowGraph CFG concode_elem_sep Expr ind_var concode_elem_sep Expr ind_init concode_elem_sep... | Object function ( final int arg0 ) { final Iterator loc0 = IndStore . values ( ) . iterator ( ) ; while ( loc0 . hasNext ( ) ) { final Swizzler loc1 = ( Swizzler ) loc0 . next ( ) ; if ( ( loc1 . target ( ) . valueNumber ( ) == arg0 ) || ( loc1 . ind_var ( ) . valueNumber ( ) == arg0 ) ) { return loc1 ; } } return null... |
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: return the events of interest to this recorder . concode_field_sep Resolver resolver concode_elem_sep ActionListener al concode_elem_sep long lastEventTime concode_field_sep long getLastEventTime concode_elem_sep void recordEvent concode_elem_sep void insertStep conco... | long function ( ) { return - 1 ; } |
Generate a Java code for the following instruction: this method sets a new aggregate of the complexity of the solved queries at a certain level . the complexity is attained by varying the conditions of a query . concode_field_sep MetricsAggregate peerVariation concode_elem_sep int counter concode_elem_sep MetricsAggreg... | void function ( MetricsAggregate arg0 ) { this . conditionVarition = arg0 ; } |
Generate a Java code for the following instruction: perform the click . this is intended to be overridden in subclasses concode_field_sep BasicWidgetSelector _selector concode_field_sep boolean unspecifiedXY concode_elem_sep Point getXYOffset concode_elem_sep IWidgetLocator click concode_elem_sep IWidgetLocator context... | Widget function ( int arg0 , Widget arg1 , Point arg2 , int arg3 ) { return _selector . click ( arg1 , arg2 . x , arg2 . y , arg3 , arg0 ) ; } |
Generate a Java code for the following instruction: sets a value in an object concode_field_sep PlaceHolder placeHolder concode_field_sep Object getMapValue concode_elem_sep Iterable<? extends Object> toIterable concode_elem_sep Collection<String> getPropertyKeys concode_elem_sep int length concode_elem_sep boolean isA... | void function ( Object arg0 , Object arg1 , Object arg2 ) { if ( isMap ( arg0 ) ) ( ( Map ) arg0 ) . put ( arg1 . toString ( ) , arg2 ) ; else { throw new JsonPathException ( "srini_string" + arg0 != null ? arg0 . getClass ( ) . getName ( ) : "srini_string" ) ; } } |
Generate a Java code for the following instruction: get a topology id from the name of a topology concode_field_sep PlaceHolder placeHolder concode_field_sep void disconnect concode_elem_sep void workerHeartbeat concode_elem_sep List<String> assignments concode_elem_sep ErrorInfo lastError concode_elem_sep void addNimb... | Optional < String > function ( final String arg0 ) { String loc0 = null ; for ( String loc1 : activeStorms ( ) ) { String loc2 = stormBase ( loc1 , null ) . get_name ( ) ; if ( arg0 . equals ( loc2 ) ) { loc0 = loc1 ; break ; } } return Optional . ofNullable ( loc0 ) ; } |
Generate a Java code for the following instruction: adds the specified string as an additional reason concode_field_sep Invariant inv concode_elem_sep String discardFormat concode_elem_sep String discardString concode_elem_sep DiscardCode discardCode concode_elem_sep String className concode_field_sep String discardFor... | void function ( String arg0 ) { discardString += "srini_string" + arg0 ; } |
Generate a Java code for the following instruction: return the osc byte stream for this packet . concode_field_sep byte[] byteArray concode_elem_sep boolean isByteArrayComputed concode_field_sep void init concode_elem_sep void computeByteArray concode_elem_sep void computeByteArray | byte [ ] function ( ) { if ( ! isByteArrayComputed ) computeByteArray ( ) ; return byteArray ; } |
Generate a Java code for the following instruction: return all root components in the current awt hierarchy . concode_field_sep Collection EMPTY concode_elem_sep WindowTracker tracker concode_elem_sep Hierarchy defaultHierarchy concode_field_sep boolean contains concode_elem_sep Container getParent concode_elem_sep Col... | Collection function ( ) { return tracker . getRootWindows ( ) ; } |
Generate a Java code for the following instruction: returns an absolute path to krb5.conf file . concode_field_sep File keyTabFileName concode_elem_sep Logger LOGGER concode_elem_sep String password concode_elem_sep String origKrbDebug concode_elem_sep String origKrb5Conf concode_elem_sep String KRB5_CONF concode_elem_... | String function ( ) { return KRB5_CONF_FILE . getAbsolutePath ( ) ; } |
Generate a Java code for the following instruction: copy bigdecimal element c. concode_field_sep java.math.BigDecimal val concode_elem_sep int DEFAULT_PRECISION concode_elem_sep BigDecimal ZERO concode_elem_sep MathContext DEFAULT_CONTEXT concode_elem_sep MathContext context concode_elem_sep BigDecimal ONE concode_elem... | BigDecimal function ( BigDecimal arg0 ) { return new BigDecimal ( arg0 . val , arg0 . context ) ; } |
Generate a Java code for the following instruction: the string encoding used for decoding and encoding . concode_field_sep String charset concode_elem_sep int RADIX concode_elem_sep byte ESCAPE_CHAR concode_elem_sep BitSet WWW_FORM_URL concode_field_sep byte[] encode concode_elem_sep String encode concode_elem_sep Stri... | String function ( ) { return this . charset ; } |
Generate a Java code for the following instruction: exports the given test run session into an xml report file . concode_field_sep IPath JUNIT3_CONTAINER_PATH concode_elem_sep String JUNIT_CONTAINER_ID concode_elem_sep IPath JUNIT4_CONTAINER_PATH concode_field_sep IType[] findTestTypes concode_elem_sep ITestRunSession ... | void function ( ITestRunSession arg0 , File arg1 ) { JUnitModel . exportTestRunSession ( ( TestRunSession ) arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: following method performs the initialization concode_field_sep FileLoggerModule fileLoggerModule concode_elem_sep ConsoleLoggerModule consoleLoggerModule concode_field_sep void unprepare concode_elem_sep void main concode_elem_sep void execute | void function ( ) { fileLoggerModule = FileLoggerModule . getSingleton ( ) . prepare ( ) ; consoleLoggerModule = ConsoleLoggerModule . getSingleton ( ) . prepare ( ) ; } |
Generate a Java code for the following instruction: create a new closure that calls each closure in turn , passing the result into the next closure . the ordering is that of the iterator method on the collection . concode_field_sep PlaceHolder placeHolder concode_field_sep Closure nopClosure concode_elem_sep Closure sw... | Closure function ( Collection arg0 ) { return ChainedClosure . getInstance ( arg0 ) ; } |
Generate a Java code for the following instruction: find the mapping associated with this condition or null if no associated mapping can be found . concode_field_sep List _mappings concode_elem_sep IHandler handler concode_elem_sep IConditionMonitor _parent concode_elem_sep ICondition condition concode_elem_sep Conditi... | ConditionMapping function ( ICondition arg0 ) { ConditionMapping loc0 ; synchronized ( _mappings ) { for ( Iterator loc1 = _mappings . iterator ( ) ; loc1 . hasNext ( ) ; ) { loc0 = ( ConditionMapping ) loc1 . next ( ) ; if ( loc0 . arg0 == arg0 ) return loc0 ; } } return null ; } |
Generate a Java code for the following instruction: check to see if a test is running . this can be used to see whether the runtime is executing in the context of a test run or a recording session . concode_field_sep ITestIdentifier _runningTest concode_elem_sep TestMonitor _monitor concode_field_sep void endTestCase c... | boolean function ( ) { return _runningTest != noTest ( ) ; } |
Generate a Java code for the following instruction: get response header , not avaliable now concode_field_sep boolean isInCache concode_elem_sep int responseCode concode_elem_sep String responseBody concode_elem_sep Map<String,Object> responseHeaders concode_elem_sep boolean isInitExpiredTime concode_elem_sep int type ... | Object function ( String arg0 ) { return responseHeaders == null ? null : responseHeaders . get ( arg0 ) ; } |
Generate a Java code for the following instruction: get the data trimmed to the length of the actual payload read , caching the result . concode_field_sep byte[] consumedData concode_elem_sep int consumedLength concode_elem_sep String LOGTAG concode_field_sep ConsumedInputStream readFully concode_elem_sep void safeStre... | byte [ ] function ( ) { if ( consumedData . length == consumedLength ) { return consumedData ; } consumedData = truncateBytes ( consumedData , consumedLength ) ; return consumedData ; } |
Generate a Java code for the following instruction: returns the hover 's class name . concode_field_sep String fModifierString concode_elem_sep String VALUE_SEPARATOR concode_elem_sep String NO_MODIFIER concode_elem_sep IConfigurationElement fElement concode_elem_sep boolean fIsEnabled concode_elem_sep int fStateMask c... | String function ( ) { return fElement . getAttribute ( CLASS_ATTRIBUTE ) ; } |
Generate a Java code for the following instruction: an unsafe operation that returns a bytestring that is backed by a subregion of theprovided buffer . concode_field_sep PlaceHolder placeHolder concode_field_sep void unsafeWriteTo | ByteString function ( byte [ ] arg0 , int arg1 , int arg2 ) { return ByteString . wrap ( arg0 , arg1 , arg2 ) ; } |
Generate a Java code for the following instruction: get last section . concode_field_sep Optional<String> fileName concode_elem_sep long serialVersionUID concode_elem_sep boolean built concode_elem_sep Set<PreprocessorRule> preprocessorRules concode_elem_sep List<Section> sections concode_elem_sep RedPenTokenizer token... | Section function ( ) { Section loc0 = null ; if ( sections . size ( ) > 0 ) { loc0 = sections . get ( sections . size ( ) - 1 ) ; } return loc0 ; } |
Generate a Java code for the following instruction: encodes the given string into a sequence of bytes using the utf-16 charset , storing the result into a new byte array . concode_field_sep PlaceHolder placeHolder concode_field_sep byte[] getBytesUtf16Le concode_elem_sep String newStringUsAscii concode_elem_sep String ... | byte [ ] function ( String arg0 ) { return StringUtils . getBytesUnchecked ( arg0 , CharEncoding . UTF_16 ) ; } |
Generate a Java code for the following instruction: return the quadrant of a block of equal size that is adjacent to the given side of this quadrant . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean adjacent concode_elem_sep QuadTreeNode child | Quadrant function ( int arg0 ) { if ( arg0 == QuadTreeNode . WEST || arg0 == QuadTreeNode . EAST ) { return cSouthEast ; } return cNorthWest ; } |
Generate a Java code for the following instruction: method to test getcoltotal concode_field_sep PlaceHolder placeHolder concode_field_sep void testGetCount concode_elem_sep void testGetLargest concode_elem_sep void testSetMatrix concode_elem_sep void testFillPattern1 concode_elem_sep void testGetTotal concode_elem_sep... | void function ( String [ ] arg0 ) { testSetMatrix ( ) ; testFillPattern1 ( ) ; testGetCount ( ) ; testGetTotal ( ) ; testGetTotalNested ( ) ; testGetLargest ( ) ; testGetColTotal ( ) ; ( origin / master ) = $missing$ ; } |
Generate a Java code for the following instruction: setitem sets this node 's item to `` item '' . if this node is invalid , throws an exception . performance : runs in o 1 time . concode_field_sep Object item concode_elem_sep List myList concode_field_sep ListNode next concode_elem_sep Object item concode_elem_sep Lis... | void function ( Object arg0 ) { if ( ! isValidNode ( ) ) { throw new InvalidNodeException ( ) ; } this . item = arg0 ; } |
Generate a Java code for the following instruction: starts the input task of a device . concode_field_sep int latencyTimer concode_elem_sep int usbReceiveBufferSize concode_elem_sep String configFile concode_elem_sep int readTimeout concode_elem_sep Logger logger concode_elem_sep int writeTimeout concode_elem_sep int u... | void function ( Device arg0 ) { startInputTask ( arg0 . getHandle ( ) ) ; } |
Generate a Java code for the following instruction: get the end label of the protected block . concode_field_sep Label handler concode_elem_sep Label start concode_elem_sep Label end concode_elem_sep Type type concode_field_sep Label handler concode_elem_sep void setHandler concode_elem_sep Label start concode_elem_sep... | Label function ( ) { return end ; } |
Generate a Java code for the following instruction: returns the linked list node after this one . concode_field_sep TLinkable _next concode_elem_sep TLinkable _previous concode_field_sep TLinkable getPrevious concode_elem_sep void setNext concode_elem_sep void setPrevious | TLinkable function ( ) { return _next ; } |
Generate a Java code for the following instruction: delegate the call to the internal java.util.concurrent.locks.reentrantreadwritelock instanceand then increment the read lock count held by the thread concode_field_sep ThreadLocal<Integer> readLockCount concode_elem_sep ReentrantReadWriteLock delegate concode_elem_sep... | void function ( ) { delegate . readLock ( ) . lock ( ) ; incReadLockCount ( ) ; } |
Generate a Java code for the following instruction: this method sets the value of the database column sys_ip_area . end_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 district c... | void function ( Long arg0 ) { this . endIp = arg0 ; } |
Generate a Java code for the following instruction: append a hashcode for a float . concode_field_sep int iConstant concode_elem_sep int iTotal concode_field_sep HashCodeBuilder appendSuper concode_elem_sep int toHashCode | HashCodeBuilder function ( float arg0 ) { iTotal = iTotal * iConstant + Float . floatToIntBits ( arg0 ) ; return this ; } |
Generate a Java code for the following instruction: checks if this pdfobject is of the type pdfnull . 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 Stri... | boolean function ( ) { return ( type == NULL ) ; } |
Generate a Java code for the following instruction: deletes all the blobs in a container concode_field_sep Location mockLocation concode_elem_sep JdbcContainerNameValidator jdbcContainerNameValidator concode_elem_sep JdbcBlobKeyValidator jdbcBlobKeyValidator concode_elem_sep Provider<BlobBuilder> blobBuilders concode_e... | void function ( String arg0 ) { jdbcService . deleteBlobsByContainer ( arg0 ) ; } |
Generate a Java code for the following instruction: accessor for testing only . concode_field_sep int num_sets concode_elem_sep int[] this_bits_exception_index concode_elem_sep boolean[] this_bits concode_elem_sep boolean[] this_bits_valid concode_elem_sep boolean debug concode_elem_sep int num_vars concode_elem_sep in... | int function ( ) { return num_sets ; } |
Generate a Java code for the following instruction: test whether the widget in question is showing . concode_field_sep Display _display concode_elem_sep Matcher _matcher concode_field_sep String toString | boolean function ( ) { MatchResult loc0 = new WidgetFinder ( ) . find ( _display , _matcher ) ; return loc0 . getType ( ) == WidgetFinder . MATCH ; } |
Generate a Java code for the following instruction: get the unqualified names of the columns of the owning entity which are to be used in the join . concode_field_sep PlaceHolder placeHolder concode_field_sep String[] getRHSColumnNames concode_elem_sep String getLHSTableName concode_elem_sep String[] toColumns concode_... | String [ ] function ( AssociationType arg0 , int arg1 , OuterJoinLoadable arg2 , Mapping arg3 ) { return getLHSColumnNames ( arg0 , arg1 , 0 , arg2 , arg3 ) ; } |
Generate a Java code for the following instruction: create the filter controls . concode_field_sep Text fTextControl concode_elem_sep ImageDescriptor fgClearIconDescriptor concode_elem_sep Control fClearButton concode_elem_sep Composite fComposite concode_elem_sep Boolean fgUseNativeSearchField concode_elem_sep ImageDe... | void function ( Composite arg0 ) { createTextControl ( arg0 ) ; createClearButton ( arg0 ) ; updateClearButtonVisibility ( false ) ; } |
Generate a Java code for the following instruction: getter for percentage concode_field_sep boolean percentage concode_elem_sep float width concode_elem_sep PdfPCell cell concode_field_sep boolean add concode_elem_sep boolean process concode_elem_sep PdfPCell getCell concode_elem_sep boolean isContent concode_elem_sep ... | boolean function ( ) { return percentage ; } |
Generate a Java code for the following instruction: is modinteger number a unit . 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_e... | boolean function ( ) { if ( isZERO ( ) ) { return false ; } if ( ring . isField ( ) ) { return true ; } java . math . BigInteger loc0 = ring . modul . gcd ( val ) . abs ( ) ; return ( loc0 . equals ( java . math . BigInteger . ONE ) ) ; } |
Generate a Java code for the following instruction: returns the record 's header . concode_field_sep ByteBuffer myData concode_elem_sep Header myHeader concode_elem_sep Header myConnectionHeader concode_elem_sep SeekableByteChannel myChannel concode_elem_sep int headerLength concode_elem_sep Logger myLogger concode_ele... | Header function ( ) { return myHeader ; } |
Generate a Java code for the following instruction: returns a duration corresponding to the the given value in days . concode_field_sep Map<String,Object> windowConfiguration concode_elem_sep TimestampExtractor timestampExtractor concode_elem_sep int value concode_elem_sep Logger LOG concode_field_sep BaseWindowedBolt ... | Duration function ( int arg0 ) { return new Duration ( arg0 , TimeUnit . DAYS ) ; } |
Generate a Java code for the following instruction: return the class loader to be used for instantiating application objects when a context class loader is not specified . this is determined based upon the following rules : the specified class loader , if any the class loader used to load the calling class . the system... | ClassLoader function ( ClassLoader arg0 , Class arg1 ) { if ( arg0 != null ) { return arg0 ; } return getClassLoader ( arg1 ) ; } |
Generate a Java code for the following instruction: factory method to create a new product concode_field_sep Product product concode_elem_sep int amount concode_elem_sep double price concode_field_sep void setProduct concode_elem_sep Product getProduct concode_elem_sep String toString concode_elem_sep void setAmount co... | Product function ( ) { return new Product ( ) ; } |
Generate a Java code for the following instruction: indic languages are written from right to left . concode_field_sep int MATRA_E concode_elem_sep int LETTER_HA concode_elem_sep int HALANTA concode_elem_sep int MATRA_AI concode_elem_sep int MATRA_HLR concode_elem_sep int MATRA_I concode_elem_sep int LETTER_A concode_e... | boolean function ( ) { return false ; } |
Generate a Java code for the following instruction: compares two keys or two values , handling null correctly . concode_field_sep List<Entry> entries concode_elem_sep V value concode_elem_sep K key concode_field_sep K getKey concode_elem_sep Set<Map.Entry<K,V>> entrySet concode_elem_sep boolean containsKey concode_elem... | boolean function ( Object arg0 , Object arg1 ) { if ( arg0 == null ) { return arg1 == null ; } return arg0 . equals ( arg1 ) ; } |
Generate a Java code for the following instruction: sets the new serialnumber . concode_field_sep long signature1 concode_elem_sep int productID concode_elem_sep String manufacturer concode_elem_sep int vendorID concode_elem_sep long version concode_elem_sep long signature2 concode_elem_sep String productDescription co... | void function ( String arg0 ) { this . serialNumber = arg0 ; } |
Generate a Java code for the following instruction: returns the image descriptor of the described category . concode_field_sep String fId concode_elem_sep boolean fIsEnabled concode_elem_sep IConfigurationElement fElement concode_elem_sep boolean fNeedsSortingAfterFiltering concode_elem_sep boolean fIsIncluded concode_... | ImageDescriptor function ( ) { return fImage ; } |
Generate a Java code for the following instruction: get the type of this request , used by each person in the chain of command to see if they should or can handle this particular request concode_field_sep RequestType requestType concode_elem_sep boolean handled concode_elem_sep String requestDescription concode_field_s... | RequestType function ( ) { return requestType ; } |
Generate a Java code for the following instruction: adds a view dictionary . part of the richmediacontent . concode_field_sep PdfDictionary richMediaSettings concode_elem_sep PdfArray configurations concode_elem_sep PdfArray views concode_elem_sep HashMap<String,PdfIndirectReference> assetsmap concode_elem_sep PdfDicti... | PdfIndirectReference function ( PdfDictionary arg0 ) { if ( views == null ) throw new IllegalPdfSyntaxException ( "srini_string" ) ; PdfIndirectReference loc0 = writer . addToBody ( arg0 ) . getIndirectReference ( ) ; views . add ( loc0 ) ; return loc0 ; } |
Generate a Java code for the following instruction: is local one . 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 Local<C> inverse concode_elem_sep b... | boolean function ( ) { return num . equals ( den ) ; } |
Generate a Java code for the following instruction: return the ruleset to be used for configuring our digester parsing rules , creating one if necessary . concode_field_sep boolean useContextClassLoader concode_elem_sep RuleSet ruleSet concode_elem_sep Digester digester concode_field_sep Digester getDigester concode_el... | RuleSet function ( ) { if ( ruleSet == null ) { ruleSet = new ConfigRuleSet ( ) ; } return ( ruleSet ) ; } |
Generate a Java code for the following instruction: reads a value attribute on an element . concode_field_sep AttributeParser VALUE concode_field_sep Map<Attribute,String> readRequiredAttributes concode_elem_sep boolean isParseAsElement concode_elem_sep void parseElement concode_elem_sep String readNameAttribute | String function ( final XMLExtendedStreamReader arg0 ) { return readRequiredAttributes ( arg0 , EnumSet . of ( Attribute . VALUE ) ) . get ( Attribute . VALUE ) ; } |
Generate a Java code for the following instruction: get the last component of a name . concode_field_sep PlaceHolder placeHolder concode_field_sep Context createSubcontext concode_elem_sep void rebind concode_elem_sep void rebind concode_elem_sep void unbind concode_elem_sep void unbind concode_elem_sep boolean isEmpty... | String function ( final Name arg0 ) { if ( arg0 . size ( ) > 0 ) return arg0 . get ( arg0 . size ( ) - 1 ) ; return "srini_string" ; } |
Generate a Java code for the following instruction: returns the attribute with the specified name . concode_field_sep Map<String,String> fAttributes concode_elem_sep String fProject concode_field_sep String toString concode_elem_sep String getProject | String function ( final String arg0 ) { return fAttributes . get ( arg0 ) ; } |
Generate a Java code for the following instruction: get the default target of the switch . concode_field_sep Label defaultTarget concode_elem_sep int[] values concode_elem_sep Label[] targets concode_field_sep int lowValue concode_elem_sep boolean hasContiguousValues concode_elem_sep int partition concode_elem_sep int ... | Label function ( ) { return defaultTarget ; } |
Generate a Java code for the following instruction: getter for text rise 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 ... | float function ( ) { return rise ; } |
Generate a Java code for the following instruction: disables the listeners and calls initializewithoutlistenersfrom . listeners are disabled because it is common for listeners to be used for saving launch configurations . if a the configuration is saved during initialization , it is possible for attributes necessary fo... | void function ( ILaunchConfiguration arg0 ) { fListeneredDisabled = true ; initializeWithoutListenersFrom ( arg0 ) ; fListeneredDisabled = false ; } |
Generate a Java code for the following instruction: get removed pair number . 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 boo... | int function ( ) { return n ; } |
Generate a Java code for the following instruction: try to make a date mime rfc 2822/5322 - compliant . it fixes : - `` thu , 10 dec 09 15:08:08 gmt-0700 '' to `` thu , 10 dec 09 15:08:08 -0700 '' 4 digit zone value ca n't be preceded by `` gmt '' we got a report saying ebay sends a date in this format concode_field_se... | String function ( String arg0 ) { if ( TextUtils . isEmpty ( arg0 ) ) { return arg0 ; } arg0 = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE . matcher ( arg0 ) . replaceFirst ( "srini_string" ) ; return arg0 ; } |
Generate a Java code for the following instruction: answer the product associated with the receiver concode_field_sep IProduct product concode_elem_sep String INDENT concode_field_sep void printPlatformInfo concode_elem_sep String getInstallationLocation concode_elem_sep void printInfo concode_elem_sep void printPrefPa... | IProduct function ( ) { return product ; } |
Generate a Java code for the following instruction: clear cache concode_field_sep Node next concode_elem_sep Map<String,Node> cache concode_elem_sep Node head concode_elem_sep Node previous concode_elem_sep Logger LOGGER concode_elem_sep UserAccount userAccount concode_elem_sep Node end concode_elem_sep String userId c... | void function ( ) { head = null ; end = null ; cache . clear ( ) ; } |
Generate a Java code for the following instruction: utility for safely populating an output cryptorecord . concode_field_sep boolean deleted concode_elem_sep long sortIndex concode_elem_sep String guid concode_elem_sep String collection concode_elem_sep long lastModified concode_elem_sep long ttl concode_elem_sep long ... | void function ( CryptoRecord arg0 , String arg1 , String arg2 ) { if ( arg2 == null ) { return ; } arg0 . payload . put ( arg1 , arg2 ) ; } |
Generate a Java code for the following instruction: test if the given composed message matches the expected message concode_field_sep PrintStream realStdOut concode_elem_sep ByteArrayOutputStream stdOutBuffer concode_field_sep void testMessageFromElves concode_elem_sep void setUp concode_elem_sep void testMessageFromOr... | void function ( final LetterComposite arg0 , final String arg1 ) { final String [ ] loc0 = arg1 . split ( "srini_string" ) ; assertNotNull ( arg0 ) ; assertEquals ( loc0 . length , arg0 . count ( ) ) ; arg0 . print ( ) ; assertEquals ( arg1 , new String ( this . stdOutBuffer . toByteArray ( ) ) . trim ( ) ) ; } |
Generate a Java code for the following instruction: deprecated . concode_field_sep Map<String,NamedParameterDescriptor> namedDescriptorMap concode_elem_sep OrdinalParameterDescriptor[] ordinalDescriptors concode_elem_sep OrdinalParameterDescriptor[] EMPTY_ORDINALS concode_field_sep int getOrdinalParameterSourceLocation... | int [ ] function ( String arg0 ) { return getNamedParameterDescriptor ( arg0 ) . getSourceLocations ( ) ; } |
Generate a Java code for the following instruction: test for the existence of the given project . concode_field_sep IProject _project concode_elem_sep boolean _exists concode_field_sep String toString | boolean function ( ) { return _exists == _project . exists ( ) ; } |
Generate a Java code for the following instruction: convert integer array to int array 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 boolean isEquals | int [ ] function ( Integer [ ] arg0 ) { int [ ] loc0 = new int [ arg0 . length ] ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { loc0 [ loc1 ] = arg0 [ loc1 ] ; } return loc0 ; } |
Generate a Java code for the following instruction: allows for setting of the color using int codes . concode_field_sep boolean border concode_elem_sep Position position concode_elem_sep ConsoleSystemInterface si concode_elem_sep int width concode_elem_sep String spaces concode_elem_sep Position inPosition concode_elem... | void function ( int arg0 ) { this . foreColor = this . foreColor . getColorFromCode ( arg0 ) ; } |
Generate a Java code for the following instruction: addoperator runs operator through calculate as soon as it gets it so the stack is always up to date . concode_field_sep Stack<Double> operands concode_elem_sep Stack<OperationsInterface> operators concode_field_sep int size concode_elem_sep void debugPrintStacks conco... | void function ( Operator arg0 ) { calculate ( arg0 ) ; } |
Generate a Java code for the following instruction: sets the screen brightness for this activity . the screen brightness will change immediately . as soon as the activity terminates , the brightness will return to the system brightness . valid brightnesses range from 0 to 255 . concode_field_sep int SCREEN_BRIGHTNESS_M... | void function ( Window arg0 , int arg1 ) { WindowManager . LayoutParams loc0 = arg0 . getAttributes ( ) ; loc0 . screenBrightness = arg1 / 255.0f ; arg0 . setAttributes ( loc0 ) ; } |
Generate a Java code for the following instruction: convert a duration to the number of microseconds.the result will be rounded towards 0 to the nearest microseconds . e.g. , if the duration represents -1 nanosecond , it will be rounded to 0 . concode_field_sep BigInteger NANOS_PER_SECOND_BIG_INTEGER concode_elem_sep l... | long function ( Duration arg0 ) { return Durations . toMicros ( arg0 ) ; } |
Generate a Java code for the following instruction: setter for the line join style . for possible values see pdfcontentbyte 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_e... | void function ( int arg0 ) { this . lineJoinStyle = arg0 ; } |
Generate a Java code for the following instruction: is this menu a submenu ? concode_field_sep SWTHierarchy _hierarchy concode_field_sep boolean isOrphanedBy concode_elem_sep boolean isContainedBy | boolean function ( Menu arg0 ) { return arg0 . getParentMenu ( ) != null ; } |
Generate a Java code for the following instruction: notifies handler that an active transaction has completed . concode_field_sep int activeInvocationCount concode_elem_sep InjectedValue<DeploymentRepository> deploymentRepositoryInjectedValue concode_elem_sep AtomicIntegerFieldUpdater<EJBSuspendHandlerService> activeTr... | void function ( int arg0 ) { decrementTransactionCount ( ) ; } |
Generate a Java code for the following instruction: sign a hawk request string . concode_field_sep int HAWK_HEADER_VERSION concode_elem_sep long skewSeconds concode_elem_sep String LOG_TAG concode_elem_sep boolean includePayloadHash concode_elem_sep String id concode_elem_sep String HMAC_SHA256_ALGORITHM concode_elem_s... | String function ( byte [ ] arg0 , byte [ ] arg1 ) { return Base64 . encodeBase64String ( hmacSha256 ( arg0 , arg1 ) ) ; } |
Generate a Java code for the following instruction: adds a test to the suite . concode_field_sep String fName concode_elem_sep Vector fTests concode_field_sep void setName concode_elem_sep int testCount concode_elem_sep void addTestSuite concode_elem_sep String getName concode_elem_sep void addTestMethod concode_elem_s... | void function ( Test arg0 ) { fTests . addElement ( arg0 ) ; } |
Generate a Java code for the following instruction: yields a flat sequence of elements . any iterable4 or iterator4 found in the original sequence is recursively flattened . concode_field_sep Object NO_ELEMENT concode_elem_sep Object SKIP concode_elem_sep Iterator4 EMPTY_ITERATOR concode_elem_sep Iterable4 EMPTY_ITERAB... | Iterator4 function ( Iterator4 arg0 ) { return new FlatteningIterator ( arg0 ) ; } |
Generate a Java code for the following instruction: comment on propertydescriptor concode_field_sep boolean isTesting concode_elem_sep String typeName concode_elem_sep Clob propertyValue concode_elem_sep Clob exampleValue concode_elem_sep boolean isEncrypted concode_elem_sep String propContName concode_elem_sep Integer... | ResourceEditPropertyBuilder function ( String arg0 ) { this . propertyComment = convert ( arg0 ) ; return this ; } |
Generate a Java code for the following instruction: create a condition that tests if the given widget has the expected text . concode_field_sep PlaceHolder placeHolder concode_field_sep String getText | IUICondition function ( String arg0 ) { return new HasTextCondition ( this , arg0 ) ; } |
Generate a Java code for the following instruction: comparison with any other object . concode_field_sep Logger logger concode_elem_sep C ideal concode_elem_sep RingFactory<C> ring concode_elem_sep int isField concode_field_sep Local<C> random concode_elem_sep Local<C> random concode_elem_sep int hashCode concode_elem_... | boolean function ( Object arg0 ) { if ( ! ( arg0 instanceof LocalRing ) ) { return false ; } LocalRing < C > loc0 = null ; try { loc0 = ( LocalRing < C > ) arg0 ; } catch ( ClassCastException loc1 ) { } if ( loc0 == null ) { return false ; } if ( ! ring . equals ( loc0 . ring ) ) { return false ; } return ideal . equal... |
Generate a Java code for the following instruction: to be set by the configurator . concode_field_sep RandomGenerator rand concode_elem_sep double torusDimensionSize concode_elem_sep int noOfDimensions concode_elem_sep double halfTorusDimensionSize concode_elem_sep double[] rawPos concode_field_sep double getDistance c... | void function ( double arg0 ) { this . torusDimensionSize = arg0 ; this . halfTorusDimensionSize = arg0 * 0.5d ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.