input stringlengths 147 4.02k | output stringlengths 21 493 |
|---|---|
Generate a Java code for the following instruction: gets the 1.5 compression status . concode_field_sep PdfCopyFormsImp fc concode_field_sep void setOutlines concode_elem_sep void setViewerPreferences concode_elem_sep void copyDocumentFields concode_elem_sep void addJavaScript concode_elem_sep void addViewerPreference ... | boolean function ( ) { return fc . isFullCompression ( ) ; } |
Generate a Java code for the following instruction: this method adds a further condition to the set of conditions of this clause . concode_field_sep int solvingLevel concode_elem_sep int searchedElements concode_elem_sep Vector<QueryCondition<?>> conditions concode_elem_sep SkyNetNodeInfo solvingPeer concode_elem_sep V... | void function ( QueryCondition < ? > arg0 ) { conditions . add ( arg0 ) ; } |
Generate a Java code for the following instruction: answer the feedback information for the product 's preference page concode_field_sep IProduct product concode_elem_sep String INDENT concode_field_sep IProduct getProduct concode_elem_sep void printPlatformInfo concode_elem_sep String getInstallationLocation concode_e... | String function ( ) { return "srini_string" ; } |
Generate a Java code for the following instruction: sets the value of the callcontext property . concode_field_sep CallContext callContext concode_elem_sep UpdateRequest update concode_elem_sep String fcOwner concode_field_sep CallContext getCallContext concode_elem_sep void setUpdate concode_elem_sep UpdateRequest get... | void function ( CallContext arg0 ) { this . callContext = arg0 ; } |
Generate a Java code for the following instruction: builds a cachedatadescriptionimpl from the mapping model of a collection concode_field_sep boolean versioned concode_elem_sep boolean mutable concode_elem_sep Comparator versionComparator concode_field_sep boolean isMutable concode_elem_sep boolean isVersioned concode... | CacheDataDescriptionImpl function ( Collection arg0 ) { return new CacheDataDescriptionImpl ( arg0 . isMutable ( ) , arg0 . getOwner ( ) . isVersioned ( ) , arg0 . getOwner ( ) . isVersioned ( ) ? ( ( VersionType ) arg0 . getOwner ( ) . getVersion ( ) . getType ( ) ) . getComparator ( ) : null ) ; } |
Generate a Java code for the following instruction: set this widget 's index relative to it 's parent . 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_se... | void function ( int arg0 ) { _index = arg0 ; } |
Generate a Java code for the following instruction: adds an equality string to the discardstring for each variable in in vis which is different from the leader concode_field_sep Invariant inv concode_elem_sep String discardFormat concode_elem_sep String discardString concode_elem_sep DiscardCode discardCode concode_ele... | void function ( VarInfo [ ] arg0 ) { for ( int loc0 = 0 ; loc0 < arg0 . length ; loc0 ++ ) { if ( inv . ppt . var_infos [ loc0 ] != arg0 [ loc0 ] ) discardString += "srini_string" + inv . ppt . var_infos [ loc0 ] + "srini_string" + arg0 [ loc0 ] ; } } |
Generate a Java code for the following instruction: returns the maximum sum of the sizes of the entries in this cache . concode_field_sep int evictionCount concode_elem_sep int putCount concode_elem_sep int hitCount concode_elem_sep int size concode_elem_sep int maxSize concode_elem_sep LinkedHashMap<String,Bitmap> map... | int function ( ) { return maxSize ; } |
Generate a Java code for the following instruction: enumerate potions concode_field_sep List<Potion> topShelf concode_elem_sep List<Potion> bottomShelf concode_elem_sep Logger LOGGER concode_field_sep List<Potion> getBottomShelf concode_elem_sep List<Potion> getTopShelf concode_elem_sep void fillShelves | void function ( ) { LOGGER . info ( "srini_string" ) ; for ( Potion loc0 : topShelf ) { loc0 . drink ( ) ; } LOGGER . info ( "srini_string" ) ; for ( Potion loc0 : bottomShelf ) { loc0 . drink ( ) ; } } |
Generate a Java code for the following instruction: residue inverse . 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 boolean isUnit concode_elem_sep Residue<C> subtract concode_elem_sep ... | Residue < C > function ( ) { GenPolynomial < C > loc0 = ring . ideal . inverse ( val ) ; return new Residue < C > ( ring , loc0 , 1 ) ; } |
Generate a Java code for the following instruction: queues the change of operations request of a channel , which will change the interested operations of the channel sometime in future . this is a non-blocking method and does not guarantee that the operations have changed when this method returns . concode_field_sep in... | void function ( SelectionKey arg0 , int arg1 ) { pendingCommands . add ( new ChangeKeyOpsCommand ( arg0 , arg1 ) ) ; selector . wakeup ( ) ; } |
Generate a Java code for the following instruction: tests if the dictionary is empty . concode_field_sep int size concode_elem_sep BinaryTreeNode root concode_field_sep void insertHelper concode_elem_sep BinaryTreeNode findHelper concode_elem_sep int size concode_elem_sep void testFind concode_elem_sep void testRemove ... | boolean function ( ) { return size == 0 ; } |
Generate a Java code for the following instruction: returns the message format pattern to use for refactorings . arguments : 0 : formatted date 0 : description of refactoring concode_field_sep boolean fCheckable concode_elem_sep IProject fProject concode_elem_sep boolean fTime concode_field_sep boolean isTimeDisplayed ... | String function ( ) { return RefactoringUIMessages . RefactoringHistoryControlConfiguration_refactoring_pattern ; } |
Generate a Java code for the following instruction: returns the delegate queries . concode_field_sep CreateTargetExecutionLog fLog concode_elem_sep ICreateTargetQueries fDelegate concode_field_sep ICreateTargetQuery createNewPackageQuery concode_elem_sep CreateTargetExecutionLog getCreateTargetExecutionLog | ICreateTargetQueries function ( ) { return fDelegate ; } |
Generate a Java code for the following instruction: returns a boundary based on the bounds in the input file if available , otherwise returns the same as #getdataboundary concode_field_sep AxisAlignedBoundingBoxXZ fileBoundary concode_elem_sep AxisAlignedBoundingBoxXZ dataBoundary concode_elem_sep List<MapWaySegment> m... | AxisAlignedBoundingBoxXZ function ( ) { if ( fileBoundary != null ) { return fileBoundary ; } else { return dataBoundary ; } } |
Generate a Java code for the following instruction: get the current roll of the device in degrees . concode_field_sep float[] magData concode_elem_sep float[] accelData concode_elem_sep Sensor magnetometer concode_elem_sep float roll concode_elem_sep float yaw concode_elem_sep Sensor accelerometer concode_elem_sep Cont... | float function ( ) { return roll ; } |
Generate a Java code for the following instruction: gets the value of the applicationpredecessors 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 metho... | List < ApplicationPredecessorRelation > function ( ) { if ( applicationPredecessors == null ) { applicationPredecessors = new ArrayList < ApplicationPredecessorRelation > ( ) ; } return this . applicationPredecessors ; } |
Generate a Java code for the following instruction: residue division . concode_field_sep C val concode_elem_sep ResidueRing<C> ring concode_elem_sep boolean debug concode_elem_sep int isunit concode_elem_sep Logger logger concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Residue<C> inverse co... | Residue < C > function ( Residue < C > arg0 ) { return multiply ( arg0 . inverse ( ) ) ; } |
Generate a Java code for the following instruction: gets the validator error message . concode_field_sep String inputInfo concode_elem_sep String outputMessage concode_elem_sep List<String> validatorErrorMessage concode_field_sep String getInputInfo concode_elem_sep void setValidatorErrorMessage concode_elem_sep String... | List < String > function ( ) { return validatorErrorMessage ; } |
Generate a Java code for the following instruction: this method ensures both passed domains contain the same value . concode_field_sep PlaceHolder placeHolder concode_field_sep String getDomain concode_elem_sep List<EJBEndpoint> getEjbEndpoints concode_elem_sep String getTransportGuarantee concode_elem_sep String getSe... | void function ( final String arg0 , final String arg1 ) { final boolean loc0 = ! arg0 . equals ( arg1 ) ; if ( loc0 ) throw WSLogger . ROOT_LOGGER . multipleSecurityDomainsDetected ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: writes one byte per char concode_field_sep int pos concode_elem_sep byte buf[] concode_field_sep void writeInt concode_elem_sep void writeByte concode_elem_sep byte[] getBuffer concode_elem_sep void writeFloat concode_elem_sep void writeChar concode_elem_sep void writ... | void function ( char arg0 [ ] ) { ensureSpace ( arg0 . length ) ; for ( int loc0 = 0 ; loc0 < arg0 . length ; loc0 ++ ) write ( arg0 [ loc0 ] ) ; } |
Generate a Java code for the following instruction: checks that the first and last vertex of the vertex list are equal . concode_field_sep List<VectorXZ> vertexLoop concode_field_sep List<VectorXZ> getVertexCollection concode_elem_sep VectorXZ getCenter concode_elem_sep boolean intersects concode_elem_sep boolean inter... | void function ( List < VectorXZ > arg0 ) { if ( ! arg0 . get ( 0 ) . equals ( arg0 . get ( arg0 . size ( ) - 1 ) ) ) { throw new IllegalArgumentException ( "srini_string" + "srini_string" + arg0 ) ; } } |
Generate a Java code for the following instruction: tostring method . concode_field_sep int blocksize concode_elem_sep GenMatrix<C> ZERO concode_elem_sep int DEFAULT_BSIZE concode_elem_sep GenMatrix<C> ONE concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_s... | String function ( ) { StringBuffer loc0 = new StringBuffer ( ) ; loc0 . append ( coFac . getClass ( ) . getSimpleName ( ) ) ; loc0 . append ( "srini_string" + rows + "srini_string" + cols + "srini_string" ) ; return loc0 . toString ( ) ; } |
Generate a Java code for the following instruction: gets a hashcode compatible with the equals method . implemented per api documentation of java.util.map.entry #hashcode concode_field_sep long serialVersionUID concode_elem_sep Map map concode_elem_sep Object key concode_field_sep Object getKey concode_elem_sep Object ... | int function ( ) { Object loc0 = getValue ( ) ; return ( getKey ( ) == null ? 0 : getKey ( ) . hashCode ( ) ) ^ ( loc0 == null ? 0 : loc0 . hashCode ( ) ) ; } |
Generate a Java code for the following instruction: gets the value from the pair . concode_field_sep Object value concode_elem_sep Object key concode_field_sep Object getKey concode_elem_sep String toString | Object function ( ) { return value ; } |
Generate a Java code for the following instruction: does the status code obtained from the given usertransaction indicate a commit ? concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isRollback concode_elem_sep boolean isRollback concode_elem_sep boolean isRollback concode_elem_sep boolean isMarkedFor... | boolean function ( UserTransaction arg0 ) { return isCommitted ( getStatus ( arg0 ) ) ; } |
Generate a Java code for the following instruction: returns the type of the current token . concode_field_sep Reader reader concode_elem_sep Error err concode_elem_sep StreamTokenizer stok concode_field_sep void set_error_handler concode_elem_sep void quoteChar concode_elem_sep boolean isQString concode_elem_sep void n... | int function ( ) { return stok . ttype ; } |
Generate a Java code for the following instruction: returns the names of the document position categories used by the document partitioners created by this object to manage their partition information . if the partitioners do n't use document position categories , the returned result is null . concode_field_sep JavaCom... | String [ ] function ( ) { return new String [ ] { org . eclipse . jface . text . rules . DefaultPartitioner . CONTENT_TYPES_CATEGORY } ; } |
Generate a Java code for the following instruction: same result as calling #normalize after #cross vectorxyz , but avoids creating a temporary vector concode_field_sep VectorXYZ NULL_VECTOR concode_elem_sep double x concode_elem_sep double y concode_elem_sep VectorXYZ X_UNIT concode_elem_sep double z concode_elem_sep V... | VectorXYZ function ( VectorXYZ arg0 ) { double loc0 = this . y * arg0 . loc2 - this . z * arg0 . loc1 ; double loc1 = this . z * arg0 . loc0 - this . x * arg0 . loc2 ; double loc2 = this . x * arg0 . loc1 - this . y * arg0 . loc0 ; double loc3 = sqrt ( loc0 * loc0 + loc1 * loc1 + loc2 * loc2 ) ; return new VectorXYZ ( ... |
Generate a Java code for the following instruction: codiert die zu sendende eingabe in eine signalfolge . concode_field_sep char zero concode_elem_sep char minus concode_elem_sep String regexp concode_elem_sep Charset charset concode_elem_sep int pointer concode_elem_sep Receiver receiver concode_elem_sep Sender sender... | String function ( String arg0 ) { if ( arg0 == null ) { return this . sender . flush ( ) ; } else { boolean [ ] loc0 = loc0 ( arg0 ) ; return this . sender . send ( loc0 ) ; } } |
Generate a Java code for the following instruction: get the drillconfig used for the zookeeper instance . concode_field_sep org.slf4j.Logger logger concode_elem_sep File testDir concode_elem_sep String zkUrl concode_elem_sep MiniZooKeeperCluster zkCluster concode_elem_sep DrillConfig config concode_field_sep void start... | DrillConfig function ( ) { return config ; } |
Generate a Java code for the following instruction: returns the time of the last event related to the gesture . concode_field_sep String LOGTAG concode_elem_sep Stack<PointerInfo> sPointerInfoFreeList concode_elem_sep LinkedList<PointerInfo> mPointerInfo concode_elem_sep PointF mPrevious concode_elem_sep PointF mCurren... | long function ( ) { return mLastEventTime ; } |
Generate a Java code for the following instruction: handles a successful execution concode_field_sep Logger log concode_elem_sep ShakedownTestService shakedownTestService concode_field_sep void handleUnsuccessfulShakedownTest concode_elem_sep void handleUnsuccessfulShakedownTest | void function ( ShakedownTestEntity arg0 ) { ShakedownTestEntity loc0 = shakedownTestService . updateShakedownInfo ( arg0 . getId ( ) , arg0 . getTestResult ( ) , shakedownTest_state . success ) ; log . info ( "srini_string" + loc0 . getId ( ) + "srini_string" ) ; } |
Generate a Java code for the following instruction: creates an instructor object using the given instructorcontactfile.the instructorcontactfile should be an xml file containing the marshaled form of a contact object . concode_field_sep PlaceHolder placeHolder concode_field_sep void main concode_elem_sep void writeSess... | Instructor function ( File arg0 , JAXBContext arg1 ) { Unmarshaller loc0 = arg1 . createUnmarshaller ( ) ; Instructor loc1 = new Instructor ( ) ; loc1 . setContact ( ( Contact ) loc0 . unmarshal ( arg0 ) ) ; return loc1 ; } |
Generate a Java code for the following instruction: name for this key concode_field_sep Date created concode_elem_sep String name concode_elem_sep String key concode_elem_sep Date created concode_field_sep Builder toBuilder concode_elem_sep Builder created concode_elem_sep Builder fromKey concode_elem_sep Date getCreat... | String function ( ) { return name ; } |
Generate a Java code for the following instruction: returns true iff the function takes opposite signs at the endpoints . concode_field_sep double functionValueAccuracy concode_elem_sep boolean resultComputed concode_elem_sep double defaultFunctionValueAccuracy concode_elem_sep UnivariateRealFunction f concode_elem_sep... | boolean function ( double arg0 , double arg1 , UnivariateRealFunction arg2 ) { return ( arg2 . value ( arg0 ) * arg2 . value ( arg1 ) < 0 ) ; } |
Generate a Java code for the following instruction: checks if the actual area has a common x1 corner with the betweenarea concode_field_sep short[] area concode_elem_sep CanVID vid concode_elem_sep Logger log concode_field_sep boolean betweenY concode_elem_sep void setArea concode_elem_sep boolean betweenX concode_elem... | boolean function ( CanArea arg0 ) { if ( arg0 . getArea ( ) [ 0 ] == area [ 1 ] ) return true ; else return false ; } |
Generate a Java code for the following instruction: create an observereqvalue from its basic parts used when reading from a serialized file . concode_field_sep long serialVersionUID concode_elem_sep Method observer concode_elem_sep Object value concode_field_sep String get_observer_str concode_elem_sep int hashCode con... | ObserverEqValue function ( Method arg0 , Object arg1 ) { return new ObserverEqValue ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: returns the label string . concode_field_sep String m_label concode_elem_sep boolean m_isMajorTick concode_elem_sep double m_value concode_field_sep double getValue concode_elem_sep boolean isMajorTick concode_elem_sep void setMajorTick concode_elem_sep void setValue ... | String function ( ) { return this . m_label ; } |
Generate a Java code for the following instruction: is trace logging currently enabled ? concode_field_sep String name concode_elem_sep Logger logger concode_field_sep void debug concode_elem_sep void debug concode_elem_sep void log concode_elem_sep Logger getLogger concode_elem_sep boolean isWarnEnabled concode_elem_s... | boolean function ( ) { return ( getLogger ( ) . isLoggable ( Level . FINEST ) ) ; } |
Generate a Java code for the following instruction: appends a column separator to the output file . concode_field_sep int initialBufferCapacity concode_elem_sep Logger log concode_elem_sep boolean started concode_elem_sep Writer out concode_elem_sep StringBuilder sb concode_field_sep void stopped concode_elem_sep void ... | void function ( ) { try { sb . append ( ' ' ) ; } catch ( NullPointerException loc0 ) { } } |
Generate a Java code for the following instruction: creates builder to build userwithroles . concode_field_sep String password concode_elem_sep Set<String> roles concode_elem_sep String name concode_elem_sep Set<String> roles concode_field_sep String getPassword concode_elem_sep String getName concode_elem_sep UserWith... | Builder function ( ) { return new Builder ( ) ; } |
Generate a Java code for the following instruction: returns a collection factory for an objectcontainer concode_field_sep ObjectContainer _objectContainer concode_field_sep Set<E> newBigSet concode_elem_sep boolean isClient | CollectionFactory function ( ObjectContainer arg0 ) { if ( isClient ( arg0 ) ) { throw new UnsupportedOperationException ( "srini_string" ) ; } return new CollectionFactory ( arg0 ) ; } |
Generate a Java code for the following instruction: puffert das erhaltene signal . concode_field_sep ZeroBuffer zeroBuffer concode_elem_sep int pointer concode_elem_sep char last concode_elem_sep State state concode_elem_sep AMI.Medium medium concode_elem_sep StringBuilder buffer concode_elem_sep int dc concode_field_s... | void function ( char arg0 ) { pointer ++ ; buffer . insert ( pointer , arg0 ) ; } |
Generate a Java code for the following instruction: set autocommit 1 ; concode_field_sep android.database.mysql.natives.Connector __connector concode_elem_sep String DEFAULT_PORT concode_elem_sep String encoding concode_elem_sep HashMap<String,String> config concode_field_sep void rollback concode_elem_sep void disconn... | void function ( ) { query ( "srini_string" ) ; } |
Generate a Java code for the following instruction: append a hashcode for a boolean array . concode_field_sep int iConstant concode_elem_sep int iTotal concode_field_sep HashCodeBuilder appendSuper concode_elem_sep int toHashCode | HashCodeBuilder function ( boolean [ ] arg0 ) { if ( arg0 == null ) { iTotal = iTotal * iConstant ; } else { for ( boolean loc0 : arg0 ) { append ( loc0 ) ; } } return this ; } |
Generate a Java code for the following instruction: gets the closure called when true . concode_field_sep Predicate iPredicate concode_elem_sep Closure iFalseClosure concode_elem_sep long serialVersionUID concode_elem_sep Closure iTrueClosure concode_field_sep Predicate getPredicate concode_elem_sep Closure getInstance... | Closure function ( ) { return iTrueClosure ; } |
Generate a Java code for the following instruction: override to inject . concode_field_sep ISemanticEvent[] _selection concode_elem_sep IEventSequenceCommandFactory _commandFactory concode_elem_sep ISemanticEvent[] EMPTY_SELECTION concode_elem_sep List _listeners concode_elem_sep IEventSequence _sequence concode_elem_s... | EventSequenceCommandFactory function ( ) { return new EventSequenceCommandFactory ( getSequence ( ) ) ; } |
Generate a Java code for the following instruction: return the defined properties as an unmodifieable map . concode_field_sep Map<String,JsonNode> props concode_elem_sep Set<String> reserved concode_elem_sep Null NULL_VALUE concode_field_sep JsonNode getJsonProp concode_elem_sep void writeProps concode_elem_sep Map<Str... | Map < String , JsonNode > function ( ) { return Collections . unmodifiableMap ( props ) ; } |
Generate a Java code for the following instruction: returns the size of this document set . concode_field_sep boolean configured concode_elem_sep Distribution reorderIntvlDist concode_elem_sep boolean useRanks concode_elem_sep double zipfExp concode_elem_sep long meanReorderIntvl concode_elem_sep RandomGenerator rand c... | void function ( int arg0 ) { this . size = arg0 ; } |
Generate a Java code for the following instruction: create an absolute hover info instance . concode_field_sep PlaceHolder placeHolder concode_field_sep IHoverInfo getRelativeToCenter concode_elem_sep IHoverInfo getRelative | IHoverInfo function ( int arg0 , int arg1 ) { return new AbsolutePointHoverInfo ( arg0 , arg1 ) ; } |
Generate a Java code for the following instruction: loading an example plugin concode_field_sep ServletContext servletContext concode_field_sep void init concode_elem_sep PluginService pluginService concode_elem_sep ConfigFacade configFacade concode_elem_sep void main | HawtPlugin function ( ) { return new HawtPlugin ( "srini_string" , "srini_string" , "srini_string" , new String [ ] { "srini_string" } ) ; } |
Generate a Java code for the following instruction: returns a random value exponentially distributed with mu = _ mu . concode_field_sep double mu concode_elem_sep ExponentialDistributionImpl distr concode_field_sep void writeBackToXML concode_elem_sep String toString | double function ( double arg0 ) { try { ExponentialDistributionImpl loc0 = new ExponentialDistributionImpl ( arg0 ) ; return loc0 . inverseCumulativeProbability ( Simulator . getRandom ( ) . nextDouble ( ) ) ; } catch ( MathException loc0 ) { loc0 . printStackTrace ( ) ; return 0 ; } } |
Generate a Java code for the following instruction: gets the underlying pdfwriter . concode_field_sep PdfCopyFieldsImp fc concode_field_sep void setOutlines concode_elem_sep void setViewerPreferences concode_elem_sep void addJavaScript concode_elem_sep void addViewerPreference concode_elem_sep void addDocument concode_... | PdfWriter function ( ) { return fc ; } |
Generate a Java code for the following instruction: normalizes the quoting of identifiers . this form returns a string rather than an identifier to better work with the legacy code in org.hibernate.mapping concode_field_sep Database database concode_field_sep Identifier normalizeIdentifierQuoting concode_elem_sep Ident... | String function ( String arg0 ) { final Identifier loc0 = normalizeIdentifierQuoting ( arg0 ) ; if ( loc0 == null ) { return null ; } return loc0 . render ( database ( ) . getDialect ( ) ) ; } |
Generate a Java code for the following instruction: convert bytes into format as : 02020080 concode_field_sep char[] HEX_CHARS concode_elem_sep String HEX_CHARS_STR concode_field_sep byte[] hex2bytesFriendly concode_elem_sep String bytesToHexFriendly concode_elem_sep byte[] hex2bytes | String function ( byte [ ] arg0 ) { int loc0 = arg0 . length * 2 ; char [ ] loc1 = new char [ loc0 ] ; for ( int loc2 = 0 ; loc2 < arg0 . length ; loc2 ++ ) { int loc3 = arg0 [ loc2 ] & 0xFF ; loc1 [ loc2 * 2 ] = HEX_CHARS [ loc3 >>> 4 ] ; loc1 [ loc2 * 2 + 1 ] = HEX_CHARS [ loc3 & 0x0F ] ; } return new String ( loc1 )... |
Generate a Java code for the following instruction: clear the rotation transformation , if any . concode_field_sep boolean centerInside concode_elem_sep float rotationPivotY concode_elem_sep float rotationPivotX concode_elem_sep int resourceId concode_elem_sep int targetHeight concode_elem_sep boolean hasRotationPivot ... | Builder function ( ) { rotationDegrees = 0 ; rotationPivotX = 0 ; rotationPivotY = 0 ; hasRotationPivot = false ; return this ; } |
Generate a Java code for the following instruction: sets the value of the predecessorapplication property . concode_field_sep ApplicationID predecessorApplication concode_elem_sep ApplicationID newApplication concode_field_sep ApplicationID getNewApplication concode_elem_sep ApplicationID getPredecessorApplication conc... | void function ( ApplicationID arg0 ) { this . predecessorApplication = arg0 ; } |
Generate a Java code for the following instruction: notes that a method was inlined concode_field_sep String configName concode_elem_sep int nLiveMethods concode_elem_sep Map morphicity concode_elem_sep int nNoPreexist concode_elem_sep int nLiveClasses concode_elem_sep int nInlined concode_field_sep void noteNoPreexist... | void function ( ) { this . nInlined ++ ; } |
Generate a Java code for the following instruction: transforms this fluentiterable into a new one containing objects of the type t. concode_field_sep Iterable<E> iterable concode_field_sep FluentIterable<E> filter concode_elem_sep Iterator<E> iterator concode_elem_sep Optional<E> last concode_elem_sep FluentIterable<E>... | FluentIterable < T > function ( Function < ? super E , T > arg0 ) { List < T > loc0 = new ArrayList < > ( ) ; Iterator < E > loc1 = loc1 ( ) ; while ( loc1 . hasNext ( ) ) { loc0 . add ( arg0 . apply ( loc1 . next ( ) ) ) ; } return from ( loc0 ) ; } |
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null floatlist . concode_field_sep FloatIterator EMPTY_FLOAT_ITERATOR concode_elem_sep FloatListIterator EMPTY_FLOAT_LIST_ITERATOR concode_elem_sep FloatList EMPTY_FLOAT_LIST concode_field_sep FloatListIterator getEmpty... | FloatList function ( FloatList arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableFloatList . wrap ( arg0 ) ; } |
Generate a Java code for the following instruction: program entry point . concode_field_sep String DB_URL concode_elem_sep Logger log concode_field_sep void deleteSchema concode_elem_sep void addCustomers concode_elem_sep DataSource createDataSource concode_elem_sep void createSchema concode_elem_sep void performOperat... | void function ( final String [ ] arg0 ) { final CustomerDao loc0 = new InMemoryCustomerDao ( ) ; performOperationsUsing ( loc0 ) ; final DataSource loc1 = createDataSource ( ) ; createSchema ( loc1 ) ; final CustomerDao loc2 = new DbCustomerDao ( loc1 ) ; performOperationsUsing ( loc2 ) ; deleteSchema ( loc1 ) ; } |
Generate a Java code for the following instruction: get a quotient element from a biginteger value . 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 int hashCode concode_elem_sep... | Quotient < C > function ( java . math . BigInteger arg0 ) { return new Quotient < C > ( this , ring . fromInteger ( arg0 ) ) ; } |
Generate a Java code for the following instruction: set the number of clicks associated with this event . concode_field_sep long serialVersionUID concode_elem_sep int _button concode_elem_sep int _numClicks concode_elem_sep IWidgetIdentifier hierarchyInfo concode_elem_sep boolean _checked concode_elem_sep String _cls c... | void function ( int arg0 ) { _numClicks = arg0 ; } |
Generate a Java code for the following instruction: returns the hash code of the underlying map . 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 con... | int function ( ) { return _map . hashCode ( ) ; } |
Generate a Java code for the following instruction: invokes the underlying listiterator #set object method . concode_field_sep ListIterator iterator concode_field_sep void add concode_elem_sep Object next concode_elem_sep Object previous concode_elem_sep boolean hasPrevious concode_elem_sep boolean hasNext concode_elem... | void function ( Object arg0 ) { getListIterator ( ) . set ( arg0 ) ; } |
Generate a Java code for the following instruction: random vector . concode_field_sep GenVector<C> ZERO concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep int cols concode_elem_sep List<GenVector<C>> BASIS concode_elem_sep Random random concode_elem_sep ... | GenVector < C > function ( int arg0 ) { return random ( arg0 , density , random ) ; } |
Generate a Java code for the following instruction: configure a job 's combiner implementation . concode_field_sep String COMBINER concode_elem_sep String MAP_OUTPUT_SCHEMA concode_elem_sep String INPUT_SCHEMA concode_elem_sep String MAPPER concode_elem_sep String TEXT_PREFIX concode_elem_sep String CONF_DATA_MODEL con... | void function ( JobConf arg0 , Class < ? extends AvroReducer > arg1 ) { arg0 . set ( COMBINER , arg1 . getName ( ) ) ; arg0 . setCombinerClass ( HadoopCombiner . class ) ; } |
Generate a Java code for the following instruction: after evicting or deleting an entity , we do n't need to know the query that was used to load it anymore do n't call this after loading the entity , since we might still need to load its collections concode_field_sep Map<String,LinkedHashMap<CollectionEntry,Persistent... | void function ( EntityKey arg0 ) { subselectsByEntityKey . remove ( arg0 ) ; } |
Generate a Java code for the following instruction: create a widget state map from this display . concode_field_sep Map _map concode_field_sep IWidgetState get concode_elem_sep IWidgetState put concode_elem_sep IWidgetState put | WidgetStateMap function ( Display arg0 ) { WidgetStateMap loc0 = new WidgetStateMap ( ) ; WidgetCollector loc1 = new WidgetCollector ( arg0 ) ; Widget [ ] loc2 = loc1 . getWidgets ( ) ; for ( int loc3 = 0 ; loc3 < loc2 . length ; loc3 ++ ) { loc0 . put ( loc2 [ loc3 ] ) ; } return loc0 ; } |
Generate a Java code for the following instruction: check if an object is equal to this variable . a stricter comparison than comparing indices will break hashtable lookups since a variable could have a name assigned to it after its first use . concode_field_sep String name concode_elem_sep int index concode_elem_sep T... | boolean function ( final Object arg0 ) { return ( arg0 != null ) && ( arg0 instanceof LocalVariable ) && ( ( ( LocalVariable ) arg0 ) . index == index ) ; } |
Generate a Java code for the following instruction: dispatch a mousemove event that moves the mouse to this x , y coordinate . concode_field_sep Point pointT concode_elem_sep abbot.swt.Robot _robot concode_field_sep void robotKeyClick concode_elem_sep void doKeyDown concode_elem_sep void doKeyUp concode_elem_sep void k... | void function ( int arg0 , int arg1 ) { Event loc0 = new Event ( ) ; loc0 . type = SWT . MouseMove ; loc0 . arg0 = arg0 ; loc0 . arg1 = arg1 ; new SWTPushEventOperation ( loc0 ) . execute ( ) ; } |
Generate a Java code for the following instruction: add key-value pair to map , both key and value need not null or empty concode_field_sep String DEFAULT_KEY_AND_VALUE_PAIR_SEPARATOR concode_elem_sep String DEFAULT_KEY_AND_VALUE_SEPARATOR concode_field_sep K getKeyByValue concode_elem_sep boolean putMapNotNullKeyAndVa... | boolean function ( Map < String , String > arg0 , String arg1 , String arg2 ) { if ( arg0 == null || StringUtils . isEmpty ( arg1 ) || StringUtils . isEmpty ( arg2 ) ) { return false ; } arg0 . put ( arg1 , arg2 ) ; return true ; } |
Generate a Java code for the following instruction: set the label default status . concode_field_sep boolean isDefault concode_elem_sep String color concode_elem_sep String name concode_elem_sep int id concode_elem_sep String url concode_field_sep void setName concode_elem_sep String getUrl concode_elem_sep boolean isD... | void function ( boolean arg0 ) { this . isDefault = arg0 ; } |
Generate a Java code for the following instruction: returns number of days from today until next alarmclock concode_field_sep int column_alert concode_elem_sep int column_id concode_elem_sep ContentObserver mContentObserver concode_elem_sep int column_vibrate concode_elem_sep boolean vibrate concode_elem_sep String mes... | int function ( Calendar arg0 , int arg1 ) { if ( arg1 == 0 ) return - 1 ; int loc0 = ( arg0 . get ( Calendar . DAY_OF_WEEK ) + 5 ) % 7 ; int loc1 , loc2 ; for ( loc2 = 0 ; loc2 < 7 ; loc2 ++ ) { loc1 = ( loc0 + loc2 ) % 7 ; if ( ( arg1 & ( 1 << loc1 ) ) > 0 ) { break ; } } return loc2 ; } |
Generate a Java code for the following instruction: insert a new entry into the routeset . this method does not check whether this routeset is the right one to add the contact . this should be checked prior to the insertion by the routing table . concode_field_sep LinkedHashSet<PastryContact> entries concode_elem_sep R... | boolean function ( PastryContact arg0 ) { return entries . add ( arg0 ) ; } |
Generate a Java code for the following instruction: tests if the dictionary is empty . concode_field_sep int entryNum concode_elem_sep List[] hashArray concode_field_sep int numCollisions concode_elem_sep int findBuckets concode_elem_sep int size concode_elem_sep Entry find concode_elem_sep void makeEmpty concode_elem_... | boolean function ( ) { if ( entryNum == 0 ) { return true ; } else { return false ; } } |
Generate a Java code for the following instruction: set of roles to be assigned to the user . concode_field_sep String password concode_elem_sep Set<String> roles concode_elem_sep String name concode_elem_sep Set<String> roles concode_field_sep String getPassword concode_elem_sep String getName concode_elem_sep UserWit... | Set < String > function ( ) { return roles ; } |
Generate a Java code for the following instruction: decode the given string . concode_field_sep byte INVALID concode_elem_sep byte EQUAL concode_elem_sep byte[] ascii concode_elem_sep byte WHITESPACE concode_elem_sep byte[] base64 concode_field_sep byte[] encode concode_elem_sep byte[] encode concode_elem_sep String en... | String function ( String arg0 ) { return new String ( decode ( arg0 . getBytes ( ) ) ) ; } |
Generate a Java code for the following instruction: sets the signature date . concode_field_sep XpathConstructor xpathConstructor concode_elem_sep Certificate signCertificate concode_elem_sep PdfStamper stamper concode_elem_sep String mimeType concode_elem_sep String description concode_elem_sep PdfStamperImp writer co... | void function ( java . util . Calendar arg0 ) { this . signDate = arg0 ; } |
Generate a Java code for the following instruction: create an instance of propertyupdate 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 _Responsedescription... | Propertyupdate function ( ) { return new Propertyupdate ( ) ; } |
Generate a Java code for the following instruction: returns the number of bytes available for reading from the current position . concode_field_sep int markPosition concode_elem_sep ParsableByteArray buffer concode_elem_sep int readPosition concode_elem_sep int writePosition concode_elem_sep int capacity concode_field_... | int function ( ) { return writePosition - readPosition ; } |
Generate a Java code for the following instruction: removes a previously registered listener . concode_field_sep SequentialDispatcher dispatcher concode_elem_sep int state concode_elem_sep PropertyChangeSupport propertyChangeSupport concode_elem_sep EventListenerList listenerList concode_elem_sep int targetState concod... | void function ( PropertyChangeListener arg0 ) { propertyChangeSupport . addPropertyChangeListener ( arg0 ) ; } |
Generate a Java code for the following instruction: filters the desired asset s on their assetdomposition . if no dom position is provided , all assets required in the current page will be returned . concode_field_sep HttpServletRequest request concode_elem_sep Logger LOG concode_elem_sep AssetDomPosition assetDomPosit... | AssetQuery function ( AssetDomPosition arg0 ) { this . assetDomPosition = arg0 ; return this ; } |
Generate a Java code for the following instruction: check authorization for `` show databases '' command . a hiveaccesscontrolexception is thrownfor illegal access . concode_field_sep HiveAuthorizer authorizerV2 concode_elem_sep org.slf4j.Logger logger concode_elem_sep boolean authzEnabled concode_field_sep void author... | void function ( ) { if ( ! authzEnabled ) { return ; } authorize ( HiveOperationType . SHOWDATABASES , Collections . < HivePrivilegeObject > emptyList ( ) , Collections . < HivePrivilegeObject > emptyList ( ) , "srini_string" ) ; } |
Generate a Java code for the following instruction: parses the jerry object to an announcement object concode_field_sep SimpleDateFormat DATE_FORMAT concode_field_sep Date parseDate concode_elem_sep List<Announcement> getAnnouncements concode_elem_sep List<Announcement> parseAnnouncements | Announcement function ( Jerry arg0 ) { String loc0 = arg0 . $ ( Constants . ANNOUNCEMENT_DATE ) . text ( ) ; Date loc1 = parseDate ( loc0 ) ; String loc2 = arg0 . $ ( Constants . ANNOUNCEMENT_TITLE ) . text ( ) ; String loc3 = arg0 . $ ( Constants . ANNOUNCEMENT_BODY ) . html ( ) ; return new Announcement ( loc3 , loc2... |
Generate a Java code for the following instruction: what is the most recent thing that happened to this particular auction ? concode_field_sep EventStatus mNullEvent concode_elem_sep String mTitle concode_elem_sep String mIdentifier concode_elem_sep Integer mEntryId concode_elem_sep List<EventStatus> mAllEvents concode... | String function ( ) { if ( mAllEvents . isEmpty ( ) ) { return ( mNullEvent . toString ( ) ) ; } else { return mAllEvents . get ( mAllEvents . size ( ) - 1 ) . toString ( ) ; } } |
Generate a Java code for the following instruction: transform a given cache into a cache that ignores return values for operations returning previous values , i.e. advancedcache #put object , object , adding an extra flag . concode_field_sep PlaceHolder placeHolder concode_field_sep AdvancedCache asyncWriteCache concod... | AdvancedCache function ( AdvancedCache arg0 , Flag arg1 ) { return arg0 . withFlags ( Flag . SKIP_CACHE_LOAD , Flag . SKIP_REMOTE_LOOKUP , arg1 ) ; } |
Generate a Java code for the following instruction: get list of full polynomials . concode_field_sep Condition<C> condition concode_elem_sep boolean debug concode_elem_sep Logger logger concode_elem_sep List<ColorPolynomial<C>> list concode_elem_sep OrderedCPairlist<C> pairlist concode_field_sep List<GenPolynomial<C>> ... | List < GenPolynomial < GenPolynomial < C >>> function ( ) { List < GenPolynomial < GenPolynomial < C >>> loc0 = new ArrayList < GenPolynomial < GenPolynomial < C >>> ( ) ; for ( ColorPolynomial < C > loc1 : list ) { loc0 . add ( loc1 . getPolynomial ( ) ) ; } return loc0 ; } |
Generate a Java code for the following instruction: called on the server during the rpc handshake concode_field_sep PlaceHolder placeHolder concode_field_sep void serverSendResponse concode_elem_sep void clientStartConnect concode_elem_sep void clientFinishConnect concode_elem_sep void clientSendRequest concode_elem_se... | void function ( RPCContext arg0 ) { } |
Generate a Java code for the following instruction: set parser state to singlequotedattrvaluestate . 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_s... | XMLParser function ( ) { return setState ( singleQuoted ) ; } |
Generate a Java code for the following instruction: checks whether given object is of interest to this interest instance . concode_field_sep Class<E> entityType concode_elem_sep Action<C,E> action concode_field_sep Interest<C,E> having concode_elem_sep Builder<T> in concode_elem_sep int hashCode concode_elem_sep boolea... | boolean function ( Action < ? , ? > arg0 , Object arg1 ) { return this . action == arg0 && arg1 != null && entityType . isAssignableFrom ( arg1 . getClass ( ) ) ; } |
Generate a Java code for the following instruction: clone clones the current game board into a new object concode_field_sep int EMPTY concode_elem_sep int blackChips concode_elem_sep int[][] grid concode_elem_sep int whiteChips concode_elem_sep int DIMENSION concode_elem_sep int WHITE concode_elem_sep int BLACK concode... | Board function ( ) { Board loc0 = new Board ( ) ; for ( int loc1 = 0 ; loc1 < DIMENSION ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < DIMENSION ; loc2 ++ ) { loc0 . grid [ loc1 ] [ loc2 ] = this . getContent ( loc1 , loc2 ) ; } } loc0 . whiteChips = whiteChips ; loc0 . blackChips = blackChips ; return loc0 ; } |
Generate a Java code for the following instruction: a describer used for stateful event descrptions concode_field_sep PlaceHolder placeHolder concode_field_sep void notifyStart concode_elem_sep void notifyDispose concode_elem_sep void notifyDisplayNotFound concode_elem_sep void notifyPause concode_elem_sep void notifyA... | void function ( IUISemanticEvent arg0 ) { System . out . println ( "srini_string" + arg0 ) ; } |
Generate a Java code for the following instruction: setter for property mu . concode_field_sep int DIGEST_MODE concode_elem_sep BufferedReader filePointer concode_elem_sep int CONSTANT_MODE concode_elem_sep int mode concode_elem_sep double mu concode_elem_sep EmpiricalDistribution empiricalDistribution concode_elem_sep... | void function ( double arg0 ) { this . mu = arg0 ; } |
Generate a Java code for the following instruction: called on the event dispatching thread not on the worker thread after the construct method has returned without throwing an error . the default implementation does nothing . subclasses may override this method to perform done actions on the event dispatch thread . con... | void function ( T arg0 ) { } |
Generate a Java code for the following instruction: just sticks all the strings together with ' / ' contract : user must ensure that each param is not empty . 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... | String function ( String arg0 , String arg1 ) { return new StringBuffer ( arg0 ) . append ( SLASH_STRING ) . append ( arg1 ) . toString ( ) ; } |
Generate a Java code for the following instruction: adds the conformance . concode_field_sep String CONFORMANCE concode_elem_sep String PART concode_field_sep void setPart | void function ( XMPMeta arg0 , String arg1 ) { arg0 . setProperty ( XMPConst . NS_PDFA_ID , PdfAProperties . CONFORMANCE , arg1 ) ; } |
Generate a Java code for the following instruction: the avg time to execute this query concode_field_sep long executionMaxTime concode_elem_sep String[] ITEM_DESCRIPTIONS concode_elem_sep long cacheHitCount concode_elem_sep String query concode_elem_sep String TABULAR_TYPE_NAME concode_elem_sep long cachePutCount conco... | long function ( ) { return executionAvgTime ; } |
Generate a Java code for the following instruction: closes the current subpath . 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_se... | void function ( ) { Subpath loc0 = getLastSubpath ( ) ; loc0 . setClosed ( true ) ; Point2D loc1 = loc0 . getStartPoint ( ) ; moveTo ( ( float ) loc1 . getX ( ) , ( float ) loc1 . getY ( ) ) ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.