input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: this method is optional . it allows automatic command hiding in situations when the command should not be visible . for example the ` entity ' command will not be made available before the user has defined his persistence settings in the roo shell or directly in the p...
boolean function ( ) { return operations . isCommandAvailable ( ) ; }
Generate a Java code for the following instruction: obtains the host string , without scheme prefix . concode_field_sep String hostname concode_elem_sep InetAddress address concode_elem_sep String lcHostname concode_elem_sep int port concode_elem_sep long serialVersionUID concode_elem_sep String schemeName concode_elem...
String function ( ) { if ( this . port != - 1 ) { final StringBuilder loc0 = new StringBuilder ( this . hostname . length ( ) + 6 ) ; loc0 . append ( this . hostname ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( Integer . toString ( this . port ) ) ; return loc0 . toString ( ) ; } else { return this . hostname...
Generate a Java code for the following instruction: must be called in the ui thread . concode_field_sep Change fChange concode_elem_sep int fSaveMode concode_elem_sep IRunnableContext fExecContext concode_elem_sep boolean fForked concode_elem_sep boolean fForkChangeExecution concode_elem_sep Shell fParent concode_elem_...
void function ( boolean arg0 , boolean arg1 ) { perform ( arg0 , false , arg1 ) ; }
Generate a Java code for the following instruction: compare equal tag names . concode_field_sep PlaceHolder placeHolder concode_field_sep void validateChildrenNotNull concode_elem_sep void compareFalse concode_elem_sep void validateParentSetOnAdd concode_elem_sep void compareFalseTagAndNS concode_elem_sep void validate...
void function ( ) { Assert . assertTrue ( new Tag ( "srini_string" ) . compareTag ( new Tag ( "srini_string" ) ) ) ; }
Generate a Java code for the following instruction: transforms a list into another one , element by element , given a transformer . concode_field_sep PlaceHolder placeHolder concode_field_sep void filter concode_elem_sep void copyNSortedAndFiltered concode_elem_sep void filterMap concode_elem_sep void copyNSorted conco...
List < Tt > function ( List < Ts > arg0 , Transformer < Ts , Tt > arg1 ) { List < Tt > loc0 = new ArrayList < Tt > ( arg0 . size ( ) ) ; for ( Ts loc1 : arg0 ) loc0 . add ( arg1 . transform ( loc1 ) ) ; return loc0 ; }
Generate a Java code for the following instruction: adds the given executiondata object into the store . if there isalready execution data with this same class id , this structure is merged with the given one . concode_field_sep Map<Long,ExecutionData> entries concode_elem_sep Set<String> names concode_field_sep boolea...
void function ( final ExecutionData arg0 ) { final Long loc0 = Long . valueOf ( arg0 . getId ( ) ) ; final ExecutionData loc1 = entries . get ( loc0 ) ; if ( loc1 == null ) { entries . put ( loc0 , arg0 ) ; names . add ( arg0 . getName ( ) ) ; } else { loc1 . merge ( arg0 ) ; } }
Generate a Java code for the following instruction: all the messages will be retrieved by the serviceexecutor by calling this method and process them . retrieves and removes the head of this queue , or returns null if this queue is empty . concode_field_sep BlockingQueue<Message> blkQueue concode_elem_sep Logger LOGGER...
Message function ( ) { Message loc1 = null ; try { loc1 = blkQueue . poll ( ) ; } catch ( Exception loc0 ) { LOGGER . error ( loc0 . getMessage ( ) ) ; } return loc1 ; }
Generate a Java code for the following instruction: free up runway concode_field_sep int larnacaAirportNumberOfRunways concode_elem_sep Passenger[] passengersArray concode_elem_sep Airport larnacaAirport concode_elem_sep Plane[] planesArray concode_elem_sep Flight[] flightsArray concode_elem_sep int numberOfPassengers ...
void function ( ) { for ( int loc0 = 0 ; loc0 < larnacaAirportNumberOfRunways ; loc0 ++ ) if ( Scenario . getRunwaysArray ( ) [ loc0 ] . isRunwayOccupied ( ) ) { Scenario . getRunwaysArray ( ) [ loc0 ] . setRunwayOccupied ( false ) ; break ; } }
Generate a Java code for the following instruction: unpack string sent from server into id and landmarkname used for search and displaying landmarks in listview concode_field_sep String sec_id concode_elem_sep double latitude concode_elem_sep String name concode_elem_sep int cat_id concode_elem_sep String packedString ...
Landmark function ( ) { String [ ] loc0 = packedString . split ( SEP_CHARACTER ) ; id = Integer . parseInt ( loc0 [ 0 ] ) ; name = loc0 [ 1 ] ; return this ; }
Generate a Java code for the following instruction: swaps two characters in a stringbuilder object 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_ele...
void function ( StringBuilder arg0 , int arg1 , int arg2 ) { char loc0 = arg0 . charAt ( arg1 ) ; arg0 . setCharAt ( arg1 , arg0 . charAt ( arg2 ) ) ; arg0 . setCharAt ( arg2 , loc0 ) ; }
Generate a Java code for the following instruction: invokes the underlying listiterator #remove method . concode_field_sep ListIterator iterator concode_field_sep void add concode_elem_sep Object next concode_elem_sep void set concode_elem_sep Object previous concode_elem_sep boolean hasPrevious concode_elem_sep boolea...
void function ( ) { getListIterator ( ) . remove ( ) ; }
Generate a Java code for the following instruction: converts a hash code in the range integer.min _ value ... integer.max _ value to a value in the range 0 ... size of hash table - 1 . this function should have package protection so we can test it , and should be used by insert , find , and remove . concode_field_sep i...
int function ( int arg0 ) { return ( ( 600 * arg0 + 99 ) % 2147483647 ) % ( hashArray . length ) ; }
Generate a Java code for the following instruction: appends a byte to the buffer . concode_field_sep String encoding concode_elem_sep int length concode_elem_sep byte[] buffer concode_field_sep InputStream getByteStream concode_elem_sep String getEncoding concode_elem_sep byte byteAt concode_elem_sep int length concode...
void function ( byte arg0 ) { ensureCapacity ( length + 1 ) ; buffer [ length ++ ] = arg0 ; }
Generate a Java code for the following instruction: return the n'th long down the stack , where 0 is the top element and size -1 is the bottom element . concode_field_sep ArrayLongList list concode_field_sep long pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep long get concode_elem_sep void c...
long function ( int arg0 ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . get ( list . size ( ) - arg0 - 1 ) ; }
Generate a Java code for the following instruction: removes the first occurrence of the given listener . concode_field_sep Object STATE_EDITABLE concode_elem_sep StyleProvider provider concode_elem_sep List listeners concode_elem_sep Object UNDEFINED concode_elem_sep Object STATE_READ_ONLY concode_elem_sep StyleListene...
void function ( StyleListener arg0 ) { listeners . remove ( arg0 ) ; }
Generate a Java code for the following instruction: check for existence or lack thereof of a field . 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 ty...
Criteria function ( boolean arg0 ) { this . criteriaType = RelationalOperator . EXISTS ; this . right = ValueNode . toValueNode ( arg0 ) ; this . left = left . asPathNode ( ) . asExistsCheck ( arg0 ) ; return this ; }
Generate a Java code for the following instruction: retrieves the column names corresponding to the collection elements for the given collection role . concode_field_sep SessionFactoryImplementor sfi concode_elem_sep Map<String,PropertyMapping> collectionPropertyMappingByRole concode_field_sep QueryableCollection getCo...
String [ ] function ( String arg0 , String arg1 ) { return getCollectionPropertyMapping ( arg0 ) . toColumns ( arg1 , CollectionPropertyNames . COLLECTION_ELEMENTS ) ; }
Generate a Java code for the following instruction: reset grid . concode_field_sep boolean[][] newCell concode_elem_sep int[][] grid concode_elem_sep boolean[][] hasCombined concode_field_sep boolean canMoveLeft concode_elem_sep int getCell concode_elem_sep boolean canMoveDown concode_elem_sep void generateNextCell con...
void function ( int arg0 ) { grid = new int [ arg0 ] [ arg0 ] ; }
Generate a Java code for the following instruction: subclasses may want to override this method in order to store a reference to the parent of a given node that can then be used to calculate current node 's value in #update . in that case it is important to also override #ondetachedfromnode to clear thatreference once ...
void function ( AnimatedNode arg0 ) { }
Generate a Java code for the following instruction: collect a jdr report when run outside the application server . concode_field_sep InjectedValue<ServerEnvironment> serverEnvironmentValue concode_elem_sep ServerEnvironment serverEnvironment concode_elem_sep ExecutorService executorService concode_elem_sep ServiceName ...
JdrReport function ( CLI arg0 , String arg1 , String arg2 , int arg3 ) { return new JdrRunner ( arg0 , arg1 , arg2 , arg3 , null , null ) . collect ( ) ; }
Generate a Java code for the following instruction: with both deep and shallow extended persistence context inheritance , a bean creating another local bean via jndi lookup will also use the extended persistence context inheritance rules . this tests that two levels of jndi lookup does use the same xpc . see http://jav...
void function ( ) { TopLevelBean loc0 = lookup ( "srini_string" , TopLevelBean . class ) ; loc0 . induceCreationViaJNDILookup ( ) ; }
Generate a Java code for the following instruction: construye la clausula where de un statement a partir de las condiciones especificadas . concode_field_sep DataSource ds concode_field_sep Object[] serializeObjectForIncremental concode_elem_sep String[] getColumnNames concode_elem_sep String getIncrementalColumnName c...
String [ ] function ( QueryCondition [ ] arg0 ) { String [ ] loc0 = new String [ arg0 . length ] ; for ( int loc1 = 0 ; loc1 < loc0 . length ; loc1 ++ ) loc0 [ loc1 ] = arg0 [ loc1 ] . getColumnName ( ) + "srini_string" + arg0 [ loc1 ] . getOperator ( ) . toString ( ) + "srini_string" ; return loc0 ; }
Generate a Java code for the following instruction: this method sets the value of the database column sys_ip_area . city 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 con...
void function ( String arg0 ) { this . city = arg0 ; }
Generate a Java code for the following instruction: sets the path of the file to be loaded , to the given value . concode_field_sep boolean loaded concode_elem_sep String fileName concode_field_sep String loadData concode_elem_sep boolean fileExists concode_elem_sep String getFileName concode_elem_sep boolean isLoaded
void function ( String arg0 ) { this . fileName = arg0 ; }
Generate a Java code for the following instruction: track the given document id for eventual obsolescence and deletion , and give it priority since we know this id has made it to the server , and we definitely do n't want to orphan it . concode_field_sep SharedPreferences sharedPrefs concode_elem_sep String LOG_TAG con...
void function ( String arg0 ) { ExtendedJSONObject loc0 = getObsoleteIds ( ) ; loc0 . put ( arg0 , HealthReportConstants . DELETION_ATTEMPTS_PER_KNOWN_TO_BE_ON_SERVER_DOCUMENT_ID ) ; setObsoleteIds ( loc0 ) ; }
Generate a Java code for the following instruction: returns the 1-based position where a value is on this stack . if the value occurs as an item in this stack , this method returns the distance from the top of the stack of the occurrence nearest the top of the stack ; the topmost item on the stack is considered to be a...
int function ( boolean arg0 ) { for ( int loc0 = list . size ( ) - 1 ; loc0 >= 0 ; loc0 -- ) { if ( list . get ( loc0 ) == arg0 ) { return list . size ( ) - loc0 ; } } return - 1 ; }
Generate a Java code for the following instruction: parse local from string . concode_field_sep Logger logger concode_elem_sep Ideal<C> ideal concode_elem_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_field_sep Local<C> random concode_elem_sep Local<C> random concode_elem_sep Local<C> random concod...
Local < C > function ( String arg0 ) { GenPolynomial < C > loc0 = ring . parse ( arg0 ) ; return new Local < C > ( this , loc0 ) ; }
Generate a Java code for the following instruction: returns the df -- branch information in the form class : method : line-number concode_field_sep boolean overwrite concode_elem_sep boolean debug_df concode_elem_sep String outputfile concode_elem_sep String scratchdir concode_field_sep Sequence getSingletonElt concode...
String function ( Branch arg0 , DataFlowInput arg1 ) { return ( arg0 . getClassName ( ) + "srini_string" + arg0 . getMethodName ( ) + "srini_string" + arg0 . getLineNumber ( ) ) ; }
Generate a Java code for the following instruction: unregister an image panel concode_field_sep ColorExplorerDialog colorDialog concode_elem_sep Stevironment instance concode_elem_sep ColorExplorerMenuItem colorExplorerMenuItem concode_field_sep void registerImagePanel concode_elem_sep ColorExplorerMenuItem getColorExp...
void function ( ImagePanel arg0 ) { arg0 . removeMouseMotionListener ( colorDialog ) ; }
Generate a Java code for the following instruction: parse algebraicnumber from reader . concode_field_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_elem_sep GenPolynomial<C> modul concode_field_sep boolean isField concode_elem_sep boolean isCommutative concode_elem_sep AlgebraicNumber<C> interpolat...
AlgebraicNumber < C > function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: get the weight of given key concode_field_sep Map<T,Integer> nodePosition concode_elem_sep List<Node> allNodes concode_elem_sep int weight concode_elem_sep T key concode_field_sep void add concode_elem_sep T min concode_elem_sep void printPositionMap concode_elem_sep ...
Integer function ( T arg0 ) { Integer loc0 = nodePosition . get ( arg0 ) ; if ( loc0 == null ) { return null ; } else { return allNodes . get ( loc0 ) . weight ; } }
Generate a Java code for the following instruction: gets a comparator that can sort boolean objects . the parameter specifies whether true or false is sorted first . the comparator throws nullpointerexception if a null value is compared . concode_field_sep Comparator NATURAL_COMPARATOR concode_field_sep Comparator tran...
Comparator function ( boolean arg0 ) { return BooleanComparator . getBooleanComparator ( arg0 ) ; }
Generate a Java code for the following instruction: this is an access method for the per-call state provided by the client to the server . concode_field_sep Map<String,ByteBuffer> requestCallMeta concode_elem_sep Map<String,ByteBuffer> responseCallMeta concode_elem_sep Object response concode_elem_sep List<ByteBuffer> ...
Map < String , ByteBuffer > function ( ) { if ( requestCallMeta == null ) { requestCallMeta = new HashMap < String , ByteBuffer > ( ) ; } return requestCallMeta ; }
Generate a Java code for the following instruction: gets the value of the getcontenttype property . concode_field_sep Owner owner concode_elem_sep PrincipalURL principalURL concode_elem_sep Creationdate creationdate concode_elem_sep Getlastmodified getlastmodified concode_elem_sep Getcontentlanguage getcontentlanguage ...
Getcontenttype function ( ) { return getcontenttype ; }
Generate a Java code for the following instruction: converts an element representing a location into a location object . concode_field_sep InputStreamGetter input concode_elem_sep boolean isValid concode_elem_sep Difficulty puzzleDifficulty concode_elem_sep int puzzleSize concode_field_sep boolean matchesSchema concode...
Location function ( Element arg0 ) { int loc0 = Integer . parseInt ( arg0 . getAttribute ( "srini_string" ) ) ; char loc1 = arg0 . getAttribute ( "srini_string" ) . charAt ( 0 ) ; return new Location ( loc0 , loc1 ) ; }
Generate a Java code for the following instruction: set the context attribute key under which we will store the request locale . concode_field_sep String localeKey concode_field_sep String getLocaleKey concode_elem_sep boolean execute concode_elem_sep Locale getLocale
void function ( String arg0 ) { this . localeKey = arg0 ; }
Generate a Java code for the following instruction: query if this ring is a field . 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 boolean equals c...
boolean function ( ) { return true ; }
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...
SequenceCommandLabelProvider function ( ) { return new SequenceCommandLabelProvider ( ) ; }
Generate a Java code for the following instruction: sets the iterator for this iterator to use . if iteration has started , this effectively resets the iterator . concode_field_sep Predicate predicate concode_elem_sep Object nextObject concode_elem_sep Iterator iterator concode_elem_sep boolean nextObjectSet concode_fi...
void function ( Iterator arg0 ) { this . iterator = arg0 ; }
Generate a Java code for the following instruction: returns entity content as a inputstream if set using #setstream java.io.inputstream method . concode_field_sep File file concode_elem_sep boolean gzipCompress concode_elem_sep InputStream stream concode_elem_sep byte[] binary concode_elem_sep String contentEncoding co...
InputStream function ( ) { return stream ; }
Generate a Java code for the following instruction: sets the checks if is test . concode_field_sep String errorMessage concode_elem_sep String numberChosen concode_elem_sep String buyerName concode_elem_sep Boolean isTest concode_field_sep String getNumberChosen concode_elem_sep String getBuyerName concode_elem_sep voi...
void function ( Boolean arg0 ) { this . isTest = arg0 ; }
Generate a Java code for the following instruction: returns the clone of the passed documentwrapper with filled documentwrapper #getdocumentmetadata and documentwrapper #getrowid only concode_field_sep Logger log concode_field_sep List<DocumentWrapper> extractDocumentWrappers concode_elem_sep String getPublicationYear ...
DocumentWrapper function ( DocumentWrapper arg0 ) { return DocumentWrapper . newBuilder ( ) . setDocumentMetadata ( arg0 . getDocumentMetadata ( ) ) . setRowId ( arg0 . getRowId ( ) ) . build ( ) ; }
Generate a Java code for the following instruction: removing an item . similar to stack . concode_field_sep Node next concode_elem_sep Item item concode_elem_sep Node last concode_elem_sep int size concode_elem_sep Node first concode_field_sep void enqueue concode_elem_sep int size concode_elem_sep boolean isEmpty conc...
Item function ( ) { Item loc0 = first . item ; first = first . next ; size -- ; if ( isEmpty ( ) ) { last = null ; } return loc0 ; }
Generate a Java code for the following instruction: sets the replicated resources of the neighbor to the given set one-hop replication concode_field_sep TokenBucket queryTokens concode_elem_sep Set<IResource> resources concode_elem_sep ISchedQueue<EnqueuedQuery> relayQueue concode_elem_sep int lastDegreeObserved concod...
void function ( Set < IResource > arg0 ) { this . resources = arg0 ; }
Generate a Java code for the following instruction: tests that the entity listeners are correctly invoked and have access to the java : comp/ejbcontext when an entity is persisted via a stateless cmt bean concode_field_sep InitialContext iniCtx concode_elem_sep String ARCHIVE_NAME concode_field_sep void testCDICallback...
void function ( ) { MyListener . setInvocationCount ( 0 ) ; SLSBCMT loc0 = lookup ( "srini_string" , SLSBCMT . class ) ; this . doCMTTest ( loc0 , 3 ) ; }
Generate a Java code for the following instruction: check authorization for `` read table '' for given db.table . 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...
void function ( final String arg0 , final String arg1 ) { if ( ! authzEnabled ) { return ; } HivePrivilegeObject loc0 = new HivePrivilegeObject ( HivePrivilegeObjectType . TABLE_OR_VIEW , arg0 , arg1 ) ; authorize ( HiveOperationType . QUERY , ImmutableList . of ( loc0 ) , Collections . < HivePrivilegeObject > emptyLis...
Generate a Java code for the following instruction: gets the value of the allprop property . concode_field_sep Prop prop concode_elem_sep Allprop allprop concode_elem_sep Propname propname concode_field_sep void setPropname concode_elem_sep void setProp concode_elem_sep Prop getProp concode_elem_sep void setAllprop con...
Allprop function ( ) { return allprop ; }
Generate a Java code for the following instruction: checking if the value of x is equal to the sum of obstacle value x and obstacle width . concode_field_sep int HEIGHT concode_elem_sep int JUMP concode_elem_sep int x concode_elem_sep int y concode_elem_sep int ground concode_elem_sep int WIDTH concode_elem_sep int mov...
boolean function ( Obstacles arg0 ) { if ( x == arg0 . x + 150 ) { return true ; } return false ; }
Generate a Java code for the following instruction: get the tag number . concode_field_sep boolean isImplicit concode_elem_sep int tagNo concode_elem_sep boolean isAppSpecific concode_field_sep TaggingOption newExplicitAppSpecific concode_elem_sep boolean isImplicit concode_elem_sep TaggingOption newImplicitAppSpecific...
int function ( ) { return tagNo ; }
Generate a Java code for the following instruction: subtract a duration from a timestamp . concode_field_sep BigInteger NANOS_PER_SECOND_BIG_INTEGER concode_elem_sep long DURATION_SECONDS_MAX concode_elem_sep long DURATION_SECONDS_MIN concode_elem_sep long TIMESTAMP_SECONDS_MAX concode_elem_sep long NANOS_PER_SECOND co...
Timestamp function ( Timestamp arg0 , Duration arg1 ) { return Timestamps . subtract ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: this factory method creates and returns a property given the class and name parameters , where the `` name '' parameter represents either : a public getname method on the class which takes no arguments , plus an optional public setname method which takes a value of th...
Property < T , V > function ( Class < T > arg0 , Class < V > arg1 , String arg2 ) { return new ReflectiveProperty < T , V > ( arg0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: ensures that the object given as a method parameter is not null . concode_field_sep PlaceHolder placeHolder concode_field_sep void isTrue concode_elem_sep void isTrue concode_elem_sep void notEmpty
void function ( Object arg0 , String arg1 ) { if ( arg0 == null ) { throw new NullPointerException ( arg1 ) ; } }
Generate a Java code for the following instruction: log a message and exception with warn log level . concode_field_sep String name concode_elem_sep boolean classAndMethodFound concode_elem_sep Logger logger concode_elem_sep String sourceMethodName concode_elem_sep String sourceClassName concode_field_sep void debug co...
void function ( Object arg0 , Throwable arg1 ) { log ( Level . WARNING , String . valueOf ( arg0 ) , arg1 ) ; }
Generate a Java code for the following instruction: triggers an incremental build if this save helper did save files before . concode_field_sep boolean fFilesSaved concode_elem_sep int SAVE_ALL concode_elem_sep int SAVE_REFACTORING concode_elem_sep int fSaveMode concode_elem_sep int SAVE_NOTHING concode_elem_sep int SA...
void function ( ) { if ( fFilesSaved && ResourcesPlugin . getWorkspace ( ) . getDescription ( ) . isAutoBuilding ( ) ) { new GlobalBuildAction ( JavaPlugin . getActiveWorkbenchWindow ( ) , IncrementalProjectBuilder . INCREMENTAL_BUILD ) . run ( ) ; } }
Generate a Java code for the following instruction: returns true iff the collection contains an element equivalent to the given one , as decided by the hasher . concode_field_sep PlaceHolder placeHolder concode_field_sep T getNthIteratedElement concode_elem_sep T getNthIteratedElement concode_elem_sep boolean containsI...
boolean function ( Collection < T > arg0 , Object arg1 , Hasher arg2 ) { for ( T loc0 : arg0 ) { if ( arg2 . equals ( loc0 , arg1 ) ) return true ; } return false ; }
Generate a Java code for the following instruction: create additional h2 schema . concode_field_sep String VALIDATE_FAILURE_EXPECTED concode_field_sep String extractTestName concode_elem_sep T locateAnnotation concode_elem_sep List<S> collectAnnotations concode_elem_sep String extractMethodName concode_elem_sep String ...
void function ( String arg0 , Map arg1 ) { arg1 . put ( Environment . URL , arg1 . get ( Environment . URL ) + "srini_string" + arg0 ) ; }
Generate a Java code for the following instruction: return the disjuction of two criterions . concode_field_sep PlaceHolder placeHolder concode_field_sep AuditProperty<Object> revisionProperty concode_elem_sep AuditProperty<RevisionType> revisionType concode_elem_sep AuditCriterion not concode_elem_sep AuditConjunction...
AuditCriterion function ( AuditCriterion arg0 , AuditCriterion arg1 ) { return new LogicalAuditExpression ( arg0 , arg1 , "srini_string" ) ; }
Generate a Java code for the following instruction: gets the composites . concode_field_sep List components concode_elem_sep One one concode_elem_sep List manyToMany concode_elem_sep Foo foo concode_elem_sep int count concode_elem_sep Collection bag concode_elem_sep Simple simple concode_elem_sep Many many concode_elem...
Set function ( ) { return composites ; }
Generate a Java code for the following instruction: returns the z component of the cross product between vectors bc and ba . concode_field_sep float x concode_elem_sep float y concode_field_sep float getX concode_elem_sep float getY concode_elem_sep void orderBestPatterns concode_elem_sep float distance concode_elem_se...
float function ( ResultPoint arg0 , ResultPoint arg1 , ResultPoint arg2 ) { float loc0 = arg1 . x ; float loc1 = arg1 . y ; return ( ( arg2 . x - loc0 ) * ( arg0 . y - loc1 ) ) - ( ( arg2 . y - loc1 ) * ( arg0 . x - loc0 ) ) ; }
Generate a Java code for the following instruction: creates a progressrequestbody that can be used for showing uploading progress concode_field_sep String CONTENT_ENCODING_GZIP concode_field_sep RequestBody createGzip concode_elem_sep InputStream getFileInputStream concode_elem_sep boolean isGzipEncoding concode_elem_s...
ProgressRequestBody function ( RequestBody arg0 , ProgressRequestListener arg1 ) { return new ProgressRequestBody ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: checks the length of a code and if a code consists of numbers only . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isLowercase concode_elem_sep boolean isValid concode_elem_sep boolean isUppercase concode_elem_sep String check
boolean function ( String arg0 , int arg1 ) { if ( arg0 . length ( ) != arg1 ) return false ; for ( char loc0 : arg0 . toCharArray ( ) ) if ( loc0 < 48 || loc0 > 57 ) return false ; return true ; }
Generate a Java code for the following instruction: wait for the reveal action to complete . concode_field_sep TableItemTester _tableItemTester concode_elem_sep int REVEAL_WAIT concode_elem_sep TableTester _tableTester concode_field_sep Widget reveal concode_elem_sep Widget reveal concode_elem_sep void revealColumn con...
void function ( ) { UIDriver . pause ( REVEAL_WAIT ) ; }
Generate a Java code for the following instruction: sets the start point of the subpath . concode_field_sep List<Shape> segments concode_elem_sep Point2D startPoint concode_elem_sep boolean closed concode_field_sep Point2D getStartPoint concode_elem_sep boolean isSinglePointOpen concode_elem_sep void addSegment concode...
void function ( Point2D arg0 ) { setStartPoint ( ( float ) arg0 . getX ( ) , ( float ) arg0 . getY ( ) ) ; }
Generate a Java code for the following instruction: sets 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 TLinkable getNext concode_elem_sep void setPrevious
void function ( TLinkable arg0 ) { _next = arg0 ; }
Generate a Java code for the following instruction: gets the java encoding from the iana encoding . if the encoding can not be found it returns the input . concode_field_sep Map<String,String> MAP concode_field_sep placeholderType placeHolder
String function ( final String arg0 ) { String loc0 = arg0 . toUpperCase ( ) ; String loc1 = MAP . get ( loc0 ) ; if ( loc1 == null ) loc1 = arg0 ; return loc1 ; }
Generate a Java code for the following instruction: add a link to sentence concode_field_sep long serialVersionUID concode_elem_sep List<String> links concode_elem_sep List<TokenElement> tokens concode_elem_sep List<LineOffset> offsetMap concode_elem_sep int lineNumber concode_elem_sep String content concode_elem_sep i...
void function ( String arg0 ) { this . links . add ( arg0 ) ; }
Generate a Java code for the following instruction: get the matcher identifying the parent of the target of this match . concode_field_sep IWidgetMatcher _parentMatcher concode_elem_sep int _index concode_elem_sep int DEFAULT_INDEX concode_elem_sep IWidgetMatcher _matcher concode_field_sep IWidgetMatcher getTargetMatch...
IWidgetMatcher function ( ) { return _parentMatcher ; }
Generate a Java code for the following instruction: returns true if the doubly-nested set did not contain v. concode_field_sep DoubleKeyMap<K1,K2,Set<V>> dkMap concode_field_sep boolean addAll concode_elem_sep Set<V> get concode_elem_sep void clear concode_elem_sep boolean containsKeys concode_elem_sep String toString ...
boolean function ( K1 arg0 , K2 arg1 , V arg2 ) { ensureSetExists ( arg0 , arg1 ) ; return dkMap . get ( arg0 , arg1 ) . add ( arg2 ) ; }
Generate a Java code for the following instruction: searches for the first subsequence of a that matches sub elementwise . elements of sub are considered to match elements of a if they pass the #eq test . concode_field_sep double max_ratio concode_elem_sep double min_ratio concode_elem_sep boolean off concode_field_sep...
int function ( double [ ] arg0 , double [ ] arg1 ) { int loc0 = arg0 . length - arg1 . length ; outer : for ( int loc1 = 0 ; loc1 <= loc0 ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < arg1 . length ; loc2 ++ ) { if ( ne ( arg0 [ loc1 + loc2 ] , arg1 [ loc2 ] ) ) { continue outer ; } } return ( loc1 ) ; } return ( - 1 ) ; }
Generate a Java code for the following instruction: sequential number of the statement , as assigned by the account servicer . the sequential number is increased incrementally for each statement sent electronically . concode_field_sep BankToCustomerStatementV02 bankToCustomerStatement concode_elem_sep Document document...
BigDecimal function ( ) { return stmt . getElctrncSeqNb ( ) ; }
Generate a Java code for the following instruction: the globally unique id for this dataset concode_field_sep String urn concode_elem_sep boolean isDefault concode_elem_sep Map<String,JsonBall> requirements concode_elem_sep String os concode_elem_sep ImmutableMap.Builder<String,JsonBall> requirements concode_elem_sep D...
String function ( ) { return id ; }
Generate a Java code for the following instruction: save motorbikes that we previously put a down payment on pending db changes should be flushed as per jpa 7.9.1 container responsibilities for xpc : when a business method of the stateful session bean is invoked , if the stateful session bean uses container managed tra...
void function ( ) { }
Generate a Java code for the following instruction: returns the maximum x value in the model . concode_field_sep Entry<Double,Integer> next concode_elem_sep Integer HIGHLIGHT_CRITICAL concode_elem_sep Iterator<Entry<Double,Integer>> subMapIterator concode_elem_sep Integer HIGHLIGHT_VALIDATION concode_elem_sep Integer H...
double function ( ) { return values . lastKey ( ) ; }
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: returns an unmodifiable , empty longlist . concode_field_sep LongIterator EMPTY_LONG_ITERATOR concode_elem_sep LongList EMPTY_LONG_LIST concode_elem_sep LongListIterator EMPTY_LONG_LIST_ITERATOR concode_field_sep LongList singletonLongList concode_elem_sep LongListIte...
LongList function ( ) { return EMPTY_LONG_LIST ; }
Generate a Java code for the following instruction: return root columns ' metadata . roots are columns that have no parent . concode_field_sep ColumnFileMetaData metaData concode_elem_sep Map<String,ColumnDescriptor> columnsByName concode_elem_sep Input file concode_elem_sep ColumnDescriptor[] columns concode_elem_sep ...
List < ColumnMetaData > function ( ) { List < ColumnMetaData > loc0 = new ArrayList < ColumnMetaData > ( ) ; for ( int loc1 = 0 ; loc1 < columnCount ; loc1 ++ ) if ( columns [ loc1 ] . metaData . getParent ( ) == null ) loc0 . add ( columns [ loc1 ] . metaData ) ; return loc0 ; }
Generate a Java code for the following instruction: use for system classes only , since not classloader or reflector-aware concode_field_sep PlaceHolder placeHolder concode_field_sep void lockFile concode_elem_sep Object createWeakReference concode_elem_sep Reflector createReflector concode_elem_sep Class constructorCl...
boolean function ( String arg0 , String arg1 , Class [ ] arg2 ) { return false ; }
Generate a Java code for the following instruction: returns a default formatted string with fields separated by '' , '' concode_field_sep String component concode_elem_sep String task concode_elem_sep String values concode_elem_sep String messageId concode_elem_sep String ts concode_field_sep void prepare concode_elem_...
String function ( ) { return new Date ( Long . parseLong ( ts ) ) . toString ( ) + "srini_string" + component + "srini_string" + task + "srini_string" + messageId + "srini_string" + values ; }
Generate a Java code for the following instruction: returns null if it was created , the value otherwise . concode_field_sep String _subdir concode_elem_sep TreeMap<BigInteger,Object> _curr concode_elem_sep TransactionalState _state concode_elem_sep boolean _strictOrder concode_field_sep Object init concode_elem_sep Ob...
Object function ( BigInteger arg0 , StateInitializer arg1 ) { if ( _curr . containsKey ( arg0 ) ) { return _curr . get ( arg0 ) ; } else { getState ( arg0 , arg1 ) ; return null ; } }
Generate a Java code for the following instruction: sets the value of the fckey property . concode_field_sep String fcLink concode_elem_sep String localPortID concode_elem_sep String displayName concode_elem_sep String fcKey concode_elem_sep ProvidedPortID id concode_elem_sep List<PropertyDeclaration> properties concod...
void function ( String arg0 ) { this . fcKey = arg0 ; }
Generate a Java code for the following instruction: parse residue from reader . concode_field_sep Ideal<C> ideal concode_elem_sep Logger logger concode_elem_sep GreatestCommonDivisor<C> engine concode_elem_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_field_sep Residue<C> random concode_elem_sep Re...
Residue < C > function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: easy hook to build an identifier using the keyword safe identifierhelper . concode_field_sep ImplicitNamingStrategy INSTANCE concode_field_sep String transformEntityName concode_elem_sep Identifier determineTenantIdColumnName concode_elem_sep String transformAttribute...
Identifier function ( String arg0 , MetadataBuildingContext arg1 ) { return arg1 . getMetadataCollector ( ) . getDatabase ( ) . getJdbcEnvironment ( ) . getIdentifierHelper ( ) . toIdentifier ( arg0 ) ; }
Generate a Java code for the following instruction: get output data language concode_field_sep String m_Url concode_elem_sep String m_Key concode_elem_sep String m_Packing concode_elem_sep String m_Language concode_elem_sep String m_Format concode_field_sep String getPacking concode_elem_sep void setPacking concode_ele...
String function ( ) { return m_Language ; }
Generate a Java code for the following instruction: removes the data from the specified fieldnumber , if there was any . concode_field_sep boolean mGarbage concode_elem_sep FieldData[] mData concode_elem_sep int mSize concode_elem_sep FieldData DELETED concode_elem_sep int[] mFieldNumbers concode_field_sep boolean isEm...
void function ( int arg0 ) { int loc0 = binarySearch ( arg0 ) ; if ( loc0 >= 0 && mData [ loc0 ] != DELETED ) { mData [ loc0 ] = DELETED ; mGarbage = true ; } }
Generate a Java code for the following instruction: puts the given collection of keys into this map according to the contract of #put object , object . the values will be set to null . the keys are added in the order of the collection 's iterator . concode_field_sep SortedMap<K,V> kSmallest concode_elem_sep int maxSize...
void function ( final Collection < ? extends K > arg0 ) { for ( final K loc0 : arg0 ) { put ( loc0 , null ) ; } }
Generate a Java code for the following instruction: removes a script from this block concode_field_sep List list concode_field_sep List getScriptList concode_elem_sep void addScript concode_elem_sep Script compile concode_elem_sep void trimWhitespace concode_elem_sep String toString concode_elem_sep void run
void function ( Script arg0 ) { list . remove ( arg0 ) ; }
Generate a Java code for the following instruction: set the index into the constant pool of the field 's constant value . concode_field_sep ClassInfo classInfo concode_elem_sep int name concode_elem_sep int modifiers concode_elem_sep int type concode_elem_sep Attribute[] attrs concode_elem_sep ConstantValue constantVal...
void function ( final int arg0 ) { if ( constantValue != null ) { constantValue . setConstantValueIndex ( arg0 ) ; } }
Generate a Java code for the following instruction: iterate over the ppttoplevels and trim them . concode_field_sep long serialVersionUID concode_elem_sep Map<String,PptTopLevel> nameToPpt concode_field_sep void add concode_elem_sep Iterator<PptTopLevel> ppt_all_iterator concode_elem_sep Collection<PptTopLevel> asColle...
void function ( ) { for ( PptTopLevel loc0 : nameToPpt . values ( ) ) { loc0 . trimToSize ( ) ; } }
Generate a Java code for the following instruction: sets the value of the caller property . concode_field_sep String caller concode_elem_sep String user concode_elem_sep String uuid concode_field_sep String getCaller concode_elem_sep String getUser concode_elem_sep String getUuid concode_elem_sep void setUser concode_e...
void function ( String arg0 ) { this . caller = arg0 ; }
Generate a Java code for the following instruction: equal iff both have the same number of ratterms and those ratterms are pairwise equal . concode_field_sep Vector underlying_terms concode_elem_sep RatTerm[] terms concode_field_sep void set concode_elem_sep int size concode_elem_sep String printDebug concode_elem_sep ...
boolean function ( RatTermVec arg0 ) { if ( arg0 . size ( ) != this . size ( ) ) { return false ; } for ( int loc0 = 0 ; loc0 < this . size ( ) ; loc0 ++ ) { if ( ! this . get ( loc0 ) . equals ( arg0 . get ( loc0 ) ) ) { return false ; } } return true ; }
Generate a Java code for the following instruction: returns the initial size of the memoryfile . concode_field_sep int i_incrementSizeBy concode_elem_sep int INITIAL_SIZE_AND_INC concode_elem_sep int i_initialSize concode_elem_sep byte[] i_bytes concode_field_sep void setBytes concode_elem_sep void setIncrementSizeBy c...
int function ( ) { return i_initialSize ; }
Generate a Java code for the following instruction: checks to see whether the comparator is now locked against further changes . concode_field_sep int UNKNOWN_AFTER concode_elem_sep int counter concode_elem_sep int unknownObjectBehavior concode_elem_sep boolean isLocked concode_elem_sep int UNKNOWN_BEFORE concode_elem_...
void function ( ) { if ( isLocked ( ) ) { throw new UnsupportedOperationException ( "srini_string" ) ; } }
Generate a Java code for the following instruction: removes a template to the set . concode_field_sep String fTemplateTag concode_elem_sep int TEMPLATE_PARSE_EXCEPTION concode_elem_sep String CONTEXT_ATTRIBUTE concode_elem_sep List<Template> fTemplates concode_elem_sep int TEMPLATE_IO_EXCEPTION concode_elem_sep Context...
void function ( Template arg0 ) { fTemplates . remove ( arg0 ) ; }
Generate a Java code for the following instruction: get the date time as a java.util.date . the date object created has exactly the same millisecond instant as this object . concode_field_sep PlaceHolder placeHolder concode_field_sep MutableDateTime toMutableDateTime concode_elem_sep MutableDateTime toMutableDateTime c...
Date function ( ) { return new Date ( getMillis ( ) ) ; }
Generate a Java code for the following instruction: query if this ring is commutative . concode_field_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_elem_sep GenPolynomial<C> modul concode_field_sep boolean isField concode_elem_sep AlgebraicNumber<C> interpolate concode_elem_sep AlgebraicNumber<C> p...
boolean function ( ) { return ring . isCommutative ( ) ; }
Generate a Java code for the following instruction: creates a new com.datastax.driver.core.batchstatement.type #logged batch statement for the specified cql statement builders . concode_field_sep PlaceHolder placeHolder concode_field_sep BatchCQLStatementTupleMapper unLoggedBatch concode_elem_sep CqlMapper.DefaultCqlMa...
BatchCQLStatementTupleMapper function ( CQLStatementBuilder ... arg0 ) { return newBatchStatementBuilder ( BatchStatement . Type . LOGGED , arg0 ) ; }
Generate a Java code for the following instruction: return the directory into which we put our self-extracted native libraries . concode_field_sep byte[] cachedBuffer concode_field_sep void reliablyCopyExecutable concode_elem_sep void deleteOrThrow concode_elem_sep FileLocker lockLibsDirectory concode_elem_sep void fre...
File function ( Context arg0 ) { return new File ( arg0 . getApplicationInfo ( ) . dataDir , "srini_string" ) ; }
Generate a Java code for the following instruction: makes sure the passed object is in the collection . equals comparison . 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_sep b...
Object function ( Object arg0 ) { List4 loc0 = find ( arg0 ) ; if ( loc0 == null ) { add ( arg0 ) ; return arg0 ; } return loc0 . _element ; }
Generate a Java code for the following instruction: closes a given closable . concode_field_sep String filePrefix concode_field_sep File CreateTempFile concode_elem_sep String parseSubstring
void function ( final Closeable arg0 ) { if ( arg0 != null ) { try { arg0 . close ( ) ; } catch ( final IOException loc0 ) { loc0 . printStackTrace ( ) ; } } }
Generate a Java code for the following instruction: asks the user to select a string . concode_field_sep String priceUpdate concode_elem_sep Connection conn concode_elem_sep Scanner in concode_elem_sep ArrayList<String> publishers concode_elem_sep String allQuery concode_elem_sep String publisherQuery concode_elem_sep ...
String function ( String arg0 , List < String > arg1 ) { while ( true ) { System . out . println ( arg0 ) ; for ( int loc0 = 0 ; loc0 < arg1 . size ( ) ; loc0 ++ ) System . out . printf ( "srini_string" , loc0 + 1 , arg1 . get ( loc0 ) ) ; int loc1 = in . nextInt ( ) ; if ( loc1 > 0 && loc1 <= arg1 . size ( ) ) return ...