input stringlengths 147 4.02k | output stringlengths 21 493 |
|---|---|
Generate a Java code for the following instruction: sets the sigma parameter unit is msec concode_field_sep RandomGenerator rand concode_elem_sep LognormalDist dist concode_elem_sep double sigma concode_elem_sep double mu concode_field_sep long getJitter concode_elem_sep void writeBackToXML concode_elem_sep void setMu | void function ( double arg0 ) { this . sigma = arg0 ; } |
Generate a Java code for the following instruction: returns an unmodifiable , empty doubleiterator concode_field_sep DoubleListIterator EMPTY_DOUBLE_LIST_ITERATOR concode_elem_sep DoubleIterator EMPTY_DOUBLE_ITERATOR concode_elem_sep DoubleList EMPTY_DOUBLE_LIST concode_field_sep DoubleList unmodifiableDoubleList conco... | DoubleIterator function ( ) { return EMPTY_DOUBLE_ITERATOR ; } |
Generate a Java code for the following instruction: if a response packet regarding this notification was received , this method returns it . otherwise it returns null . concode_field_sep Exception exception concode_elem_sep int identifier concode_elem_sep Payload payload concode_elem_sep ResponsePacket response concode... | ResponsePacket function ( ) { return response ; } |
Generate a Java code for the following instruction: create a new perspective locator that identifies perspectives by name . concode_field_sep IPerspectiveDescriptor descriptor concode_elem_sep long serialVersionUID concode_field_sep IPerspectiveDescriptor getDescriptor concode_elem_sep IConditionHandler isClosed concod... | PerspectiveLocator function ( String arg0 ) { return new PerspectiveLocator ( PerspectiveFinder . findByNameInRegistry ( arg0 ) ) ; } |
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null 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 getEmpty... | ShortList function ( ShortList arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableShortList . wrap ( arg0 ) ; } |
Generate a Java code for the following instruction: log a message and exception with debug log level . concode_field_sep String name concode_elem_sep Logger logger concode_field_sep void log concode_elem_sep Logger getLogger concode_elem_sep boolean isWarnEnabled concode_elem_sep void error concode_elem_sep void error ... | void function ( Object arg0 , Throwable arg1 ) { log ( Level . FINE , String . valueOf ( arg0 ) , arg1 ) ; } |
Generate a Java code for the following instruction: run the query given and return one result from it . concode_field_sep Joiner OR_QUERY_JOINER concode_elem_sep Path path concode_elem_sep SolrClient server concode_elem_sep CoreContainer cores concode_elem_sep boolean autocommit concode_elem_sep String WILDCARD_QSTRING... | Phenotype function ( SolrQuery arg0 ) { try { QueryResponse loc0 = server . query ( arg0 ) ; List < SolrDocument > loc1 = loc0 . getResults ( ) ; if ( loc1 . size ( ) == 0 ) { return Phenotype . NULL ; } return mapper . fromDoc ( loc1 . get ( 0 ) ) ; } catch ( SolrServerException loc0 ) { throw new IOException ( loc0 )... |
Generate a Java code for the following instruction: get the expression that is depth expressions from the top of the stack , but do not modify the stack . concode_field_sep ArrayList stack concode_elem_sep int height concode_field_sep Expr pop concode_elem_sep void set concode_elem_sep Expr pop1 concode_elem_sep int si... | Expr function ( int arg0 ) { for ( int loc0 = stack . size ( ) - 1 ; loc0 >= 0 ; loc0 -- ) { final Expr loc1 = ( Expr ) stack . get ( loc0 ) ; if ( arg0 == 0 ) { return loc1 ; } arg0 -= loc1 . type ( ) . stackHeight ( ) ; } throw new IllegalArgumentException ( "srini_string" ) ; } |
Generate a Java code for the following instruction: create a condition that tests if the workbench shell is maximized . concode_field_sep PlaceHolder placeHolder concode_field_sep IUIConditionHandler hasFocus | IUIConditionHandler function ( ) { return new WorkbenchIsMaximizedCondition ( ) ; } |
Generate a Java code for the following instruction: adds a log event to the cache . if the number of events reach the capacity of the batch , they will be published . concode_field_sep String PUBLISH_THREAD_NAME concode_elem_sep String cacheName concode_elem_sep int eventQueueLength concode_elem_sep ExecutorService exe... | void function ( LoggingEvent arg0 ) { boolean loc0 = false ; synchronized ( EVENTQUEUELOCK ) { if ( eventQueueLength < capacity ) { eventQueue . add ( arg0 ) ; eventQueueLength ++ ; } else { loc0 = true ; } } if ( loc0 ) { flushAndPublishQueue ( false ) ; } } |
Generate a Java code for the following instruction: retrieve the current timeout setting . the timeout is the amount of time , in milliseconds , we should instruct the database to wait for any requested pessimistic lock acquisition . #no_wait , #wait_forever or #skip_locked represent 3 `` magic '' values . concode_fiel... | int function ( ) { return timeout ; } |
Generate a Java code for the following instruction: test method for com.itextpdf.text.html.webcolors #getrgbcolor java.lang.string . concode_field_sep String RGB_PERCENT concode_elem_sep String RGB_OUT_OF_RANGE concode_elem_sep String RGB_MISSING_COLOR_VALUES concode_field_sep String dumpColor concode_elem_sep void tes... | void function ( ) { assertEquals ( 255 , WebColors . getRGBColor ( RGB_PERCENT ) . getRed ( ) ) ; } |
Generate a Java code for the following instruction: hash code for this quotient ring . concode_field_sep RingFactory<C> ring concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep Quotient<C> random concode_elem_sep Quotient<C> random concode_elem_sep boolean isField concode_elem_sep boolean eq... | int function ( ) { int loc0 ; loc0 = ring . hashCode ( ) ; return loc0 ; } |
Generate a Java code for the following instruction: returns a set that maintains the order of elements that are added backed by the given set . if an element is added twice , the order is determined by the first add . the order is observed through the iterator or toarray . concode_field_sep Set EMPTY_SET concode_elem_s... | Set function ( Set arg0 ) { return ListOrderedSet . decorate ( arg0 ) ; } |
Generate a Java code for the following instruction: add one metric to this record to be displayed on the custom dashboard . concode_field_sep Map<String,Double> customMetrics concode_elem_sep long timeStamp concode_elem_sep long serialVersionUID concode_elem_sep String name concode_elem_sep boolean valid concode_elem_s... | void function ( String arg0 , Double arg1 ) { valid = true ; customMetrics . put ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: get composite id sub-attribute definitions . concode_field_sep PlaceHolder placeHolder concode_field_sep Iterable<AttributeDefinition> getCompositeCollectionIndexSubAttributes concode_elem_sep Iterable<AttributeDefinition> getCompositeCollectionElementSubAttributes co... | Iterable < AttributeDefinition > function ( AbstractEntityPersister arg0 ) { return getSingularSubAttributes ( arg0 , arg0 , ( CompositeType ) arg0 . getIdentifierType ( ) , arg0 . getTableName ( ) , arg0 . getRootTableIdentifierColumnNames ( ) ) ; } |
Generate a Java code for the following instruction: should archive validation be performed concode_field_sep Map<String,CloneableBootstrapContext> bootstrapContexts concode_elem_sep AtomicBoolean archiveValidationFailOnError concode_elem_sep AtomicBoolean beanValidation concode_elem_sep CloneableBootstrapContext defaul... | boolean function ( ) { return archiveValidation . get ( ) ; } |
Generate a Java code for the following instruction: the validation logic can either be defined in the property validation logic or as a regex of the property type . this method distincts between those different possibility and returns the actual validation pattern . concode_field_sep PropertyTypeEntity propertyTypeEnti... | String function ( ) { String loc0 = null ; if ( isCustomType ( ) ) { loc0 = this . validationLogic == null ? DEFAULTVALIDATIONEXPRESSION : this . validationLogic ; } else { loc0 = this . validationLogic == null ? getPropertyTypeValidationRegex ( ) : this . validationLogic ; } return loc0 ; } |
Generate a Java code for the following instruction: microservice entry point concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder | void function ( String [ ] arg0 ) { SpringApplication . run ( PriceApplication . class , arg0 ) ; } |
Generate a Java code for the following instruction: retrieve the overall lock mode in effect for this set of options . in certain contexts hql and criteria , lock-modes can be defined in an even more granular #setaliasspecificlockmode string , lockmode per-alias fashion concode_field_sep Map<String,LockMode> aliasSpeci... | LockMode function ( ) { return lockMode ; } |
Generate a Java code for the following instruction: hash the member reference . concode_field_sep NameAndType nameAndType concode_elem_sep Type declaringClass concode_field_sep NameAndType nameAndType concode_elem_sep boolean equals concode_elem_sep String name concode_elem_sep String toString concode_elem_sep Type typ... | int function ( ) { return declaringClass . hashCode ( ) ^ nameAndType . hashCode ( ) ; } |
Generate a Java code for the following instruction: returns the loggerfactory concode_field_sep Logger logger concode_elem_sep LoggerFactory myself concode_field_sep void setLogger concode_elem_sep Logger logger concode_elem_sep Logger getLogger concode_elem_sep Logger getLogger | LoggerFactory function ( ) { return myself ; } |
Generate a Java code for the following instruction: appends the given string to the buffer . concode_field_sep String text concode_elem_sep Charset charset concode_elem_sep StateController controller concode_elem_sep XMLParserMemory memory concode_elem_sep List<XMLParserListener> listeners concode_elem_sep TagState tag... | XMLParser function ( final String arg0 ) { this . memory . current ( ) . append ( arg0 ) ; return this ; } |
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: static method to get single instance of class concode_field_sep Logger LOGGER concode_elem_sep PrintStream error concode_elem_sep PrintStream output concode_elem_sep ConsoleLoggerModule singleton concode_field_sep void unprepare concode_elem_sep ConsoleLoggerModule pr... | ConsoleLoggerModule function ( ) { if ( ConsoleLoggerModule . singleton == null ) { ConsoleLoggerModule . singleton = new ConsoleLoggerModule ( ) ; } return ConsoleLoggerModule . singleton ; } |
Generate a Java code for the following instruction: there is no relation defined in the uppermost hierarchy instance - this is an inconsistency and shall result in a runtime exception concode_field_sep AppServerRelationHierarchyEntity entity concode_field_sep void testRefersToRelationResourceRelationTypeEntity concode_... | void function ( ) { AppServerRelationHierarchyEntity loc0 = new AppServerRelationHierarchyEntity ( ) ; entity . setParentRelation ( loc0 ) ; entity . getApplicationServer ( ) ; } |
Generate a Java code for the following instruction: transfers from right to left concode_field_sep PlaceHolder placeHolder concode_field_sep void swap concode_elem_sep void swap | T [ ] function ( T [ ] arg0 , T [ ] arg1 ) { return ArrayTool . transferValues ( arg0 , arg1 , 0 , arg1 . length ) ; } |
Generate a Java code for the following instruction: mark a client as collapsed . concode_field_sep String selectedClient concode_elem_sep String PREF_COLLAPSED_CLIENT_GUIDS concode_elem_sep SharedPreferences sharedPrefs concode_elem_sep String PREF_HIDDEN_CLIENT_GUIDS concode_elem_sep Set<String> collapsedClients conco... | boolean function ( String arg0 , boolean arg1 ) { return updateClientMembership ( PREF_COLLAPSED_CLIENT_GUIDS , collapsedClients , arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: gets the value of the billto property . concode_field_sep USAddress billTo concode_elem_sep String comment concode_elem_sep Items items concode_elem_sep XMLGregorianCalendar orderDate concode_elem_sep USAddress shipTo concode_field_sep Items getItems concode_elem_sep ... | USAddress function ( ) { return billTo ; } |
Generate a Java code for the following instruction: get sentence containing the error . concode_field_sep Sentence sentence concode_elem_sep long serialVersionUID concode_elem_sep LineOffset endPosition concode_elem_sep String validatorName concode_elem_sep String message concode_elem_sep LineOffset startPosition conco... | Sentence function ( ) { return sentence ; } |
Generate a Java code for the following instruction: get the type name as in the static field names defined on java.sql.types . if a type code is not recognized , it is reported as unknown ? where ' ? ' is replace with the given type code.intended as useful for logging purposes ... concode_field_sep CoreMessageLogger LO... | String function ( Integer arg0 ) { String loc0 = JDBC_TYPE_MAP . get ( arg0 ) ; if ( loc0 == null ) { return "srini_string" + arg0 + "srini_string" ; } return loc0 ; } |
Generate a Java code for the following instruction: returns whether there may be some scenarios in which the robot does not function properly . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEve... | boolean function ( ) { return Platform . isWindows ( ) || Platform . isOSX ( ) ; } |
Generate a Java code for the following instruction: if both parameters are null , returns true . if one parameter is null and the other is n't , returns false . otherwise , returns o1.equals o2 . concode_field_sep String newLine concode_field_sep String convertToHexString concode_elem_sep String hangingParagraph concod... | boolean function ( Object arg0 , Object arg1 ) { if ( arg0 == null ) { return arg1 == null ; } if ( arg1 == null ) { return false ; } return ( arg0 . equals ( arg1 ) ) ; } |
Generate a Java code for the following instruction: returns an array of all of this bag 's elements . concode_field_sep Object _current concode_elem_sep int _total concode_elem_sep DefaultMapBag _parent concode_elem_sep Map _map concode_elem_sep int _mods concode_elem_sep Iterator _support concode_field_sep boolean add... | Object [ ] function ( Object [ ] arg0 ) { return extractList ( ) . toArray ( arg0 ) ; } |
Generate a Java code for the following instruction: adds a listener for problem marker changes . concode_field_sep Set<IResource> fResourcesWithAnnotationChanges concode_elem_sep HashSet<IResource> fChangedElements concode_elem_sep ListenerList<IProblemChangedListener> fListeners concode_elem_sep UIJob fNotifierJob con... | void function ( IProblemChangedListener arg0 ) { if ( fListeners . isEmpty ( ) ) { JavaPlugin . getWorkspace ( ) . addResourceChangeListener ( this ) ; JavaPlugin . getDefault ( ) . getCompilationUnitDocumentProvider ( ) . addGlobalAnnotationModelListener ( this ) ; } fListeners . add ( arg0 ) ; } |
Generate a Java code for the following instruction: starts the timeout thread if it is not currently running . nothing happens if a thread is already running . concode_field_sep Thread fCurrentThread concode_elem_sep Timeout fCurrentTimeoutState concode_elem_sep int IDLE concode_elem_sep Display fDisplay concode_elem_s... | Timeout function ( long arg0 ) { Assert . assertTrue ( arg0 > 0 ) ; synchronized ( fMutex ) { switch ( fState ) { case STOPPED : startThread ( ) ; setNextTimeout ( arg0 ) ; break ; case IDLE : unhold ( ) ; setNextTimeout ( arg0 ) ; break ; default : break ; } return fCurrentTimeoutState ; } } |
Generate a Java code for the following instruction: registers the given tag library class name against the given namespace uri . the class will be loaded via the given classloader this should be called before the parser is used . concode_field_sep InputStream m_inputStream concode_elem_sep Exception m_scriptCompilation... | void function ( String arg0 , String arg1 ) { if ( m_context != null ) m_context . registerTagLibrary ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: the result of running junit on type concode_field_sep Result result concode_field_sep String toString concode_elem_sep int failureCount | PrintableResult function ( Class < ? > arg0 ) { return testResult ( Request . aClass ( arg0 ) ) ; } |
Generate a Java code for the following instruction: notification that the payment was canceled . concode_field_sep long serialVersionUID concode_field_sep void fireJavaScriptEvent concode_elem_sep void onPaymentSucceeded concode_elem_sep void onPaymentFailed | void function ( String arg0 ) { fireJavaScriptEvent ( "srini_string" , mpl . getPaymentResults ( "srini_string" , "srini_string" , "srini_string" ) ) ; } |
Generate a Java code for the following instruction: return true if debugging is enabled . concode_field_sep PrintWriter sysOut concode_elem_sep ILog log concode_elem_sep boolean isDebugging concode_field_sep void setLog concode_elem_sep void trace concode_elem_sep void trace concode_elem_sep void setDebugging concode_e... | boolean function ( ) { return isDebugging ; } |
Generate a Java code for the following instruction: returns the execution data store with data for all loaded classes . concode_field_sep SessionInfoStore sessionInfos concode_elem_sep ExecutionDataStore executionData concode_field_sep void load concode_elem_sep void load concode_elem_sep SessionInfoStore getSessionInf... | ExecutionDataStore function ( ) { return executionData ; } |
Generate a Java code for the following instruction: indicates whether the origin response indicated the associated resource had variants i.e. that the vary header was set on the origin response . concode_field_sep Date date concode_elem_sep Map<String,String> variantMap concode_elem_sep StatusLine statusLine concode_el... | boolean function ( ) { return getFirstHeader ( HeaderConstants . VARY ) != null ; } |
Generate a Java code for the following instruction: get an issue title for the phenotype with the name given . concode_field_sep String LABEL_SUFFIX concode_elem_sep Joiner JOINER concode_elem_sep String ETAG concode_elem_sep String BODY_FORMAT concode_elem_sep String body concode_elem_sep String title concode_elem_sep... | String function ( String arg0 ) { return "srini_string" + arg0 ; } |
Generate a Java code for the following instruction: sets the currently used node factory . concode_field_sep KademliaSetup singleton concode_elem_sep WorkloadGenerator workloadGen concode_elem_sep Logger log concode_elem_sep AbstractNodeFactory nodeFactory concode_elem_sep KademliaMonitor monitor concode_elem_sep Confi... | void function ( final AbstractNodeFactory arg0 ) { nodeFactory = arg0 ; } |
Generate a Java code for the following instruction: sets entity content as a parameter list . this method is mutually exclusive with #settext string , #setbinary byte , #setstream java.io.inputstream , #setserializable java.io.serializable , #setfile java.io.file methods . concode_field_sep File file concode_elem_sep b... | EntityBuilder function ( final NameValuePair ... arg0 ) { return setParameters ( Arrays . asList ( arg0 ) ) ; } |
Generate a Java code for the following instruction: returns the memory bin for the given uri for external use . concode_field_sep int _pageSize concode_elem_sep int DEFAULT_PAGESIZE concode_elem_sep Map<String,Bin> _binsByUri concode_field_sep Bin produceBin concode_elem_sep void rename concode_elem_sep boolean exists ... | Bin function ( String arg0 ) { return _binsByUri . get ( arg0 ) ; } |
Generate a Java code for the following instruction: sets the reconciling strategies for this composite strategy . concode_field_sep IReconcilingStrategy[] fStrategies concode_field_sep void reconcile concode_elem_sep void reconcile concode_elem_sep void setDocument concode_elem_sep void setProgressMonitor concode_elem_... | void function ( IReconcilingStrategy [ ] arg0 ) { fStrategies = arg0 ; } |
Generate a Java code for the following instruction: gets the value of the applications property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the a... | List < Application > function ( ) { if ( applications == null ) { applications = new ArrayList < Application > ( ) ; } return this . applications ; } |
Generate a Java code for the following instruction: move to the specified synchronization point , as returned by datafilewriter #sync . 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... | void function ( long arg0 ) { in . seek ( arg0 ) ; blockCount = 0 ; blockStart = arg0 ; vin = DecoderFactory . get ( ) . binaryDecoder ( in , vin ) ; } |
Generate a Java code for the following instruction: reads an unsigned exp-golomb-coded format integer . concode_field_sep byte[] data concode_elem_sep int byteOffset concode_elem_sep int bitOffset concode_elem_sep int byteLimit concode_field_sep int bitsLeft concode_elem_sep boolean readBit concode_elem_sep int getPosi... | int function ( ) { return readExpGolombCodeNum ( ) ; } |
Generate a Java code for the following instruction: compares this object with the specified object for ascending millisecond instant order . this ordering is inconsistent with equals , as it ignores the chronology . all readableinstant instances are accepted . concode_field_sep PlaceHolder placeHolder concode_field_sep... | int function ( ReadableInstant arg0 ) { if ( this == arg0 ) { return 0 ; } long loc0 = arg0 . getMillis ( ) ; long loc1 = getMillis ( ) ; if ( loc1 == loc0 ) { return 0 ; } if ( loc1 < loc0 ) { return - 1 ; } else { return 1 ; } } |
Generate a Java code for the following instruction: returns whether a java.awt.filedialog misreports its screenlocation . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenerationBug concod... | boolean function ( ) { return ( Platform . isOSX ( ) && Platform . JAVA_VERSION <= 0x1425 ) || ( Platform . isWindows ( ) && Platform . JAVA_VERSION <= Platform . JAVA_1_5 ) ; } |
Generate a Java code for the following instruction: returns the last sibling of ` a ' . concode_field_sep FilterPredicate predicate concode_elem_sep List collectedNodes concode_field_sep AST findTypeInChildren concode_elem_sep AST findPreviousSibling concode_elem_sep String getPathText concode_elem_sep void getPathText... | AST function ( AST arg0 ) { AST loc0 = null ; while ( arg0 != null ) { loc0 = arg0 ; arg0 = arg0 . getNextSibling ( ) ; } return loc0 ; } |
Generate a Java code for the following instruction: return the current amount of allocated memory that this accountant is managing accounting for . note this does not include reservation memory that has n't been allocated . concode_field_sep Accountant parent concode_elem_sep AtomicLong allocationLimit concode_elem_sep... | long function ( ) { return locallyHeldMemory . get ( ) ; } |
Generate a Java code for the following instruction: retrieve a propertymapping describing the given collection role . concode_field_sep SessionFactoryImplementor sfi concode_elem_sep Map<String,PropertyMapping> collectionPropertyMappingByRole concode_field_sep QueryableCollection getCollectionPersister concode_elem_sep... | PropertyMapping function ( String arg0 ) { return collectionPropertyMappingByRole . get ( arg0 ) ; } |
Generate a Java code for the following instruction: delegate method for javainformationprovider #getinformationpresentercontrolcreator concode_field_sep IEditorPart fEditor concode_field_sep IEditorPart getEditor concode_elem_sep IJavaElement[] getJavaElementsAt concode_elem_sep boolean isInheritDoc concode_elem_sep IR... | IInformationControlCreator function ( ) { return new IInformationControlCreator ( ) { @ Override public IInformationControl createInformationControl ( Shell arg0 ) { return new DefaultInformationControl ( arg0 , true ) ; } } ; } |
Generate a Java code for the following instruction: release a port from the reference count , and update isdone if all is done . concode_field_sep Logger LOG concode_elem_sep LocalAssignment _assignment concode_elem_sep Future<Void> _pending concode_elem_sep boolean _isDone concode_elem_sep Set<PortNAssignment> _refere... | boolean function ( int arg0 , LocalAssignment arg1 ) { PortNAssignment loc0 = new PortNAssignment ( arg0 , arg1 ) ; boolean loc1 = _references . remove ( loc0 ) ; if ( loc1 && _references . isEmpty ( ) ) { _isDone = true ; } return loc1 ; } |
Generate a Java code for the following instruction: getter for property currenttextcolor . concode_field_sep int OPAQUE concode_elem_sep int TA_LEFT concode_elem_sep int TA_BASELINE concode_elem_sep ArrayList<MetaObject> MetaObjects concode_elem_sep int TA_TOP concode_elem_sep int TA_BOTTOM concode_elem_sep int TA_UPDA... | BaseColor function ( ) { return currentTextColor ; } |
Generate a Java code for the following instruction: returns cpi resources which reference consume a given ppi resource concode_field_sep EntityManager entityManager concode_elem_sep Logger log concode_elem_sep long serialVersionUID concode_elem_sep ResourceDependencyResolverService dependencyResolverService concode_fie... | List < ResourceEntity > function ( ResourceEntity arg0 ) { if ( arg0 . getId ( ) != null ) { return entityManager . createQuery ( "srini_string" , ResourceEntity . class ) . setParameter ( "srini_string" , arg0 . getSoftlinkId ( ) ) . getResultList ( ) ; } return Collections . emptyList ( ) ; } |
Generate a Java code for the following instruction: reads data lookup quality information from the given file . concode_field_sep Map<Integer,OpDelay> opDelay concode_elem_sep Map<Integer,DataLookupQuality> dataQuality concode_elem_sep Map<Integer,NodeLookupQuality> nodeQuality concode_elem_sep Map<Integer,OpTraffic> o... | void function ( final String arg0 ) { dataQuality = new HashMap < Integer , DataLookupQuality > ( ) ; FileReader loc0 = new FileReader ( arg0 ) ; BufferedReader loc1 = new BufferedReader ( loc0 ) ; String loc2 = null ; DataLookupQuality loc3 ; loc1 . readLine ( ) ; while ( ( loc2 = loc1 . readLine ( ) ) != null ) { loc... |
Generate a Java code for the following instruction: returns the serialized payload of the request in this rpc . will only be generated from a requestor and will not include handshake or meta-data . if the request payload has not been set yet , returns null . concode_field_sep Map<String,ByteBuffer> requestCallMeta conc... | List < ByteBuffer > function ( ) { return this . requestPayload ; } |
Generate a Java code for the following instruction: create and return a remotebuildr instance . 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 concode_el... | RemoteBuildr function ( ) { return new RemoteBuildr ( ) ; } |
Generate a Java code for the following instruction: removes all the elements from this collection that are returned by iterable . concode_field_sep int _size concode_elem_sep List4 _last concode_elem_sep List4 _first concode_elem_sep int _version concode_field_sep void prepend concode_elem_sep void replace concode_elem... | void function ( Iterable4 arg0 ) { removeAll ( arg0 . iterator ( ) ) ; } |
Generate a Java code for the following instruction: test that stopping the hibernate-osgi bundle happens cleanly . todo : this will be really simplistic at first , but should be expanded upon . concode_field_sep BundleContext context concode_field_sep void testNative concode_elem_sep void commonTests concode_elem_sep v... | void function ( ) { commonTests ( ) ; findHibernateBundle ( "srini_string" ) . stop ( ) ; testHibernateBundle ( "srini_string" , Bundle . RESOLVED ) ; assertNull ( context . getServiceReference ( OsgiSessionFactoryService . class ) ) ; assertNull ( context . getServiceReference ( OsgiPersistenceProviderService . class ... |
Generate a Java code for the following instruction: called when a chunk with a generic tag is written . it is useful to pinpoint the chunk location to generate bookmarks , for example . concode_field_sep PlaceHolder placeHolder concode_field_sep void onSection concode_elem_sep void onParagraph concode_elem_sep void onP... | void function ( PdfWriter arg0 , Document arg1 , Rectangle arg2 , String arg3 ) { } |
Generate a Java code for the following instruction: returns the artifact type . concode_field_sep String CLASSIFIER_SEPARATOR concode_elem_sep String m_fullClassifier concode_elem_sep String FILE_SEPARATOR concode_elem_sep String TYPE_SEPARATOR concode_elem_sep String m_artifact concode_elem_sep String m_group concode_... | String function ( ) { return m_type ; } |
Generate a Java code for the following instruction: returns a scanner which is configured to scan java multi-line comments . concode_field_sep JavaCommentScanner fMultilineCommentScanner concode_elem_sep JavaCommentScanner fSinglelineCommentScanner concode_elem_sep JavaDocScanner fJavaDocScanner concode_elem_sep Prefer... | RuleBasedScanner function ( ) { return fMultilineCommentScanner ; } |
Generate a Java code for the following instruction: returns the number of hits that match the given query . concode_field_sep TContact c concode_elem_sep int numberOfHits concode_field_sep int getTotalHits concode_elem_sep long getSize concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep Strin... | int function ( ) { return numberOfHits ; } |
Generate a Java code for the following instruction: check to see if the given item is in an array . concode_field_sep PlaceHolder placeHolder concode_field_sep int findFirstNotContainedIn concode_elem_sep int ctrlSelect concode_elem_sep int last concode_elem_sep int stdSelect concode_elem_sep int indexToSelect concode_... | boolean function ( int arg0 , int [ ] arg1 ) { for ( int loc0 = 0 ; loc0 < arg1 . length ; ++ loc0 ) { if ( arg1 [ loc0 ] == arg0 ) return true ; } return false ; } |
Generate a Java code for the following instruction: get a list of nodes that have no outbound edges . concode_field_sep Set<Node> allNodes concode_elem_sep ListMultimap<Node,Edge<Node>> adjacencies concode_elem_sep int lowlink concode_elem_sep V nodeValue concode_elem_sep boolean visited concode_elem_sep int index conc... | Collection < V > function ( ) { return convert ( getInternalLeafNodes ( ) ) ; } |
Generate a Java code for the following instruction: remove a value from the map concode_field_sep LinkedHashMap<S,LinkedHashMap<S,T>> values concode_field_sep boolean contains concode_elem_sep T get concode_elem_sep Set<T> removeComplementarySet concode_elem_sep void put | T function ( S arg0 , S arg1 ) { Map < S , T > loc0 ; if ( ( loc0 = values . get ( arg0 ) ) != null ) { if ( loc0 . containsKey ( arg1 ) ) return loc0 . remove ( arg1 ) ; } return null ; } |
Generate a Java code for the following instruction: sets the error messages directly from a reader . concode_field_sep String BASE_PATH concode_elem_sep HashMap<String,String> currentLanguage concode_elem_sep HashMap<String,String> defaultLanguage concode_field_sep String getComposedMessage concode_elem_sep String getC... | void function ( Reader arg0 ) { currentLanguage = readLanguageStream ( arg0 ) ; } |
Generate a Java code for the following instruction: getter for property backgroundmode . concode_field_sep int OPAQUE concode_elem_sep int TA_LEFT concode_elem_sep int TA_BASELINE concode_elem_sep ArrayList<MetaObject> MetaObjects concode_elem_sep int TA_TOP concode_elem_sep int TA_BOTTOM concode_elem_sep int TA_UPDATE... | int function ( ) { return backgroundMode ; } |
Generate a Java code for the following instruction: return the directory into which we put our self-extracted native libraries and make sure it exists . concode_field_sep byte[] cachedBuffer concode_field_sep void reliablyCopyExecutable concode_elem_sep void deleteOrThrow concode_elem_sep FileLocker lockLibsDirectory c... | File function ( Context arg0 ) { File loc0 = getLibsDirectory ( arg0 ) ; if ( ! loc0 . isDirectory ( ) && ! loc0 . mkdirs ( ) ) { throw new RuntimeException ( "srini_string" ) ; } return loc0 ; } |
Generate a Java code for the following instruction: returns the number of values = v. concode_field_sep long serialVersionUID concode_elem_sep TreeMap freqTable concode_field_sep int compare concode_elem_sep double getPct concode_elem_sep double getPct concode_elem_sep double getPct concode_elem_sep double getPct conco... | long function ( Object arg0 ) { if ( arg0 instanceof Integer ) { return getCount ( ( ( Integer ) arg0 ) . longValue ( ) ) ; } long loc0 = 0 ; try { Long loc1 = ( Long ) freqTable . get ( arg0 ) ; if ( loc1 != null ) { loc0 = loc1 . longValue ( ) ; } } catch ( ClassCastException loc1 ) { } return loc0 ; } |
Generate a Java code for the following instruction: writes a buffer to the seeked address concode_field_sep int COPY_SIZE concode_elem_sep int _blockSize concode_field_sep int read concode_elem_sep int read concode_elem_sep long regularAddress concode_elem_sep void delete concode_elem_sep void seek concode_elem_sep voi... | void function ( byte [ ] arg0 ) { write ( arg0 , arg0 . length ) ; } |
Generate a Java code for the following instruction: scalar product of vector of polynomials with polynomial . concode_field_sep Logger logger concode_field_sep List<GenPolynomial<C>> vectorAdd concode_elem_sep boolean isZero | List < GenPolynomial < C >> function ( List < GenPolynomial < C >> arg0 , GenPolynomial < C > arg1 ) { List < GenPolynomial < C >> loc0 = new ArrayList < GenPolynomial < C >> ( arg0 . size ( ) ) ; for ( GenPolynomial < C > loc1 : arg0 ) { if ( loc1 != null ) { loc1 = loc1 . multiply ( arg1 ) ; } loc0 . add ( loc1 ) ; }... |
Generate a Java code for the following instruction: return a library that loads the structure-only from code.jquery.com concode_field_sep String BASE_RESOURCE_URL concode_elem_sep String url concode_field_sep JQueryLibrary core concode_elem_sep JQueryLibrary baseTheme concode_elem_sep JQueryLibrary ui concode_elem_sep ... | JQueryLibrary function ( String arg0 ) { return new JQueryLibrary ( BASE_RESOURCE_URL + "srini_string" + arg0 + "srini_string" + arg0 + "srini_string" ) ; } |
Generate a Java code for the following instruction: returns 0-15 15/16 times . returns 0-255 255/256 times . returns 0-4095 4095/4096 times . returns 0-65535 every time . concode_field_sep long seed concode_elem_sep boolean seedSet concode_field_sep void testRandomLength concode_elem_sep String randomString concode_ele... | int function ( Random arg0 ) { int loc0 = arg0 . nextInt ( ) ; if ( loc0 < 0 ) loc0 = - loc0 ; return loc0 & ( ( loc0 & 0xF0000 ) != 0 ? 0xF : ( ( loc0 & 0xFF0000 ) != 0 ? 0xFF : ( ( loc0 & 0xFFF0000 ) != 0 ? 0xFFF : 0xFFFF ) ) ) ; } |
Generate a Java code for the following instruction: called once before initial sorting starts the first time . note : as of 3.8 a completion proposal computer can request that proposals are resorted . if such a computer is active , then this method will not be called . clients may override , the default implementation ... | void function ( ContentAssistInvocationContext arg0 ) { } |
Generate a Java code for the following instruction: returns true if the experiment has aditional values . concode_field_sep Context context concode_elem_sep String experimentName concode_field_sep JSONObject getValues concode_elem_sep boolean isActive concode_elem_sep boolean isActive | boolean function ( ) { return SwitchBoard . hasExperimentValues ( context , experimentName ) ; } |
Generate a Java code for the following instruction: opens the given url in the browser as choosen in the preferences . concode_field_sep PlaceHolder placeHolder concode_field_sep void internalOpen concode_elem_sep void openExternal | void function ( final URL arg0 , Display arg1 ) { arg1 . syncExec ( new Runnable ( ) { @ Override public void run ( ) { internalOpen ( arg0 , false ) ; } } ) ; } |
Generate a Java code for the following instruction: transfers from right to left concode_field_sep PlaceHolder placeHolder concode_field_sep void swap concode_elem_sep void swap | byte [ ] function ( byte [ ] arg0 , byte [ ] arg1 ) { return ArrayTool . transferValues ( arg0 , arg1 , 0 , arg1 . length ) ; } |
Generate a Java code for the following instruction: setter for the font provider concode_field_sep FontProvider provider concode_field_sep ListItem createListItem concode_elem_sep void setParagraphLeading concode_elem_sep List createList concode_elem_sep Image createImage concode_elem_sep FontProvider getFontProvider c... | void function ( final FontProvider arg0 ) { this . provider = arg0 ; } |
Generate a Java code for the following instruction: creates a criterion using the > operator concode_field_sep List<Criteria> criteriaChain concode_elem_sep ValueNode left concode_elem_sep ValueNode right concode_elem_sep RelationalOperator criteriaType concode_field_sep Criteria lt concode_elem_sep Criteria type conco... | Criteria function ( Object arg0 ) { this . criteriaType = RelationalOperator . GT ; this . right = ValueNode . toValueNode ( arg0 ) ; return this ; } |
Generate a Java code for the following instruction: only exposed so that script may invoke it on load from disk . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep Throwable invalidScriptError concode_field_sep String toXMLString concode_elem_sep Map getAttributes concode_elem_sep... | void function ( Map arg0 ) { Log . debug ( "srini_string" + getClass ( ) ) ; description = ( String ) arg0 . get ( TAG_DESC ) ; } |
Generate a Java code for the following instruction: assertion which requires list of one element as a result of indefinite path search . concode_field_sep PlaceHolder placeHolder concode_field_sep void assertHasResults concode_elem_sep void assertEvaluationThrows concode_elem_sep void assertEvaluationThrows concode_ele... | void function ( final String arg0 , final String arg1 , Configuration arg2 ) { assertHasResults ( arg0 , arg1 , 1 , arg2 ) ; } |
Generate a Java code for the following instruction: sets the suffix of the output file including the file extension . the file name will be constructed by appending the prefix , some configuration and version information , and the suffix . if that file already exists , it will be overwritten . if not , it will be creat... | void function ( final String arg0 ) { if ( ! started ) { fileSuffix = arg0 ; } } |
Generate a Java code for the following instruction: returns a boolean indicating whether the subpath is degenerate or not . a degenerate subpath is the subpath consisting of a single-point closed path or of two or more points at the same coordinates . concode_field_sep List<Shape> segments concode_elem_sep Point2D star... | boolean function ( ) { if ( segments . size ( ) > 0 && closed ) { return false ; } for ( Shape loc0 : segments ) { Set < Point2D > loc1 = new HashSet < Point2D > ( loc0 . getBasePoints ( ) ) ; if ( loc1 . size ( ) != 1 ) { return false ; } } return segments . size ( ) > 0 || closed ; } |
Generate a Java code for the following instruction: gets the first codec which can decode the specified format . concode_field_sep Registry instance concode_field_sep Codec[] getCodecs concode_elem_sep Codec[] getDecoders concode_elem_sep String[] getCodecClasses concode_elem_sep Codec[] getEncoders concode_elem_sep vo... | Codec function ( Format arg0 ) { return getCodec ( arg0 , null ) ; } |
Generate a Java code for the following instruction: get the index into the local variable array . concode_field_sep String name concode_elem_sep int index concode_elem_sep Type type concode_field_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String name concode_elem_sep String toString concode_elem_... | int function ( ) { return index ; } |
Generate a Java code for the following instruction: returns the number of expressions on the stack . concode_field_sep ArrayList stack concode_elem_sep int height concode_field_sep Expr pop concode_elem_sep void set concode_elem_sep Expr pop1 concode_elem_sep Expr[] pop2 concode_elem_sep Expr get concode_elem_sep boole... | int function ( ) { return stack . size ( ) ; } |
Generate a Java code for the following instruction: verifies if div is a stack owner . should be true . concode_field_sep List<Element> currentContent concode_elem_sep Div d concode_elem_sep WorkerContextImpl workerContextImpl concode_field_sep void init concode_elem_sep void verifyNumberOfParagraphs concode_elem_sep v... | void function ( ) { Assert . assertTrue ( d . isStackOwner ( ) ) ; } |
Generate a Java code for the following instruction: normally , the propagation of messages through channels and routers of the internet is affected by the propagation delays of the physical media , and the processing - , queuing - , and transmission delays of the routers . the so called internet propagation delay is mo... | double function ( NetID arg0 , NetID arg1 ) { NetLayer loc0 = subnet . getNetLayer ( arg0 ) ; NetLayer loc1 = subnet . getNetLayer ( arg1 ) ; return lm . getPropagationDelay ( ( GnpNetLayer ) loc0 , ( GnpNetLayer ) loc1 ) / ( double ) Simulator . MILLISECOND_UNIT ; } |
Generate a Java code for the following instruction: create a widget not found match result . concode_field_sep int MATCH concode_elem_sep Collection _widgets concode_elem_sep int _dbComparisons concode_elem_sep Widget _widget concode_elem_sep Hierarchy _hierarchy concode_elem_sep int BFS concode_elem_sep int DFS concod... | MatchResult function ( ) { return new MatchResult ( WIDGET_NOT_FOUND ) ; } |
Generate a Java code for the following instruction: returns an unmodifiable view of the given bag . any modification attempts to the returned bag will raise an unsupportedoperationexception . concode_field_sep Bag EMPTY_BAG concode_elem_sep Bag EMPTY_SORTED_BAG concode_field_sep Bag predicatedBag concode_elem_sep Sorte... | Bag function ( Bag arg0 ) { return UnmodifiableBag . decorate ( arg0 ) ; } |
Generate a Java code for the following instruction: empty payload object has no syncid or storageversion and should call freshstart . concode_field_sep String LOG_TAG concode_elem_sep String TEST_NW_URL concode_elem_sep String TEST_PASSWORD concode_elem_sep String TEST_SYNC_ID concode_elem_sep String TEST_SERVER concod... | void function ( ) { MockServer loc0 = new MockServer ( 200 , TestMetaGlobal . TEST_META_GLOBAL_EMPTY_PAYLOAD_RESPONSE ) ; doSession ( loc0 ) ; assertTrue ( calledFreshStart ) ; } |
Generate a Java code for the following instruction: verify if the thief uses the provided stealing method concode_field_sep PlaceHolder placeHolder concode_field_sep void testChangeMethod | void function ( ) { final StealingMethod loc0 = mock ( StealingMethod . class ) ; final HalflingThief loc1 = new HalflingThief ( loc0 ) ; loc1 . steal ( ) ; verify ( loc0 ) . steal ( ) ; verifyNoMoreInteractions ( loc0 ) ; } |
Generate a Java code for the following instruction: checks if given port is open on ` localhost ' concode_field_sep Logger LOG concode_elem_sep String cmdHistory concode_elem_sep PythonProcess mockPythonProcess concode_elem_sep PythonInterpreter pythonInterpreter concode_field_sep void testPy4jInstalled concode_elem_se... | boolean function ( Integer arg0 ) { Socket loc0 = new Socket ( ) ; boolean loc1 = false ; int loc2 = 0 ; boolean loc3 = false ; while ( loc3 = tryToConnect ( loc0 , arg0 ) && loc2 < 10 ) { loc1 = loc3 ; tryToClose ( loc0 ) ; loc2 ++ ; loc0 = new Socket ( ) ; } return loc1 ; } |
Generate a Java code for the following instruction: like #assign autocloseable , except that any exception thrown by closing the previously held pointer is wrapped with an unchecked runtimeexception . concode_field_sep T pointer concode_field_sep T adopt concode_elem_sep T get concode_elem_sep void close concode_elem_s... | void function ( final T arg0 ) { try { assign ( arg0 ) ; } catch ( final Exception loc0 ) { throw new RuntimeException ( loc0 ) ; } } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.