input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: returns always null . concode_field_sep String fStatusMessage concode_elem_sep int fSeverity concode_field_sep boolean isWarning concode_elem_sep int getSeverity concode_elem_sep IStatus createError concode_elem_sep String getMessage concode_elem_sep IStatus createWar...
Throwable function ( ) { return null ; }
Generate a Java code for the following instruction: adds a gnutella event listener to this dispatcher concode_field_sep List<IGnutellaEventListener> listeners concode_elem_sep GnutellaEvents inst concode_field_sep void queryFailed concode_elem_sep void querySucceeded concode_elem_sep void connectionBreak concode_elem_s...
void function ( IGnutellaEventListener arg0 ) { listeners . add ( arg0 ) ; }
Generate a Java code for the following instruction: this method returns the derivative for the given function at the current simulation time . concode_field_sep HashMap<Class<? extends Function>,Function> functions concode_elem_sep FunctionGenerator instance concode_elem_sep Logger log concode_field_sep double getValue...
double function ( Class < ? extends Function > arg0 ) { return getDerivativeAt ( Simulator . getInstance ( ) . getCurrentTime ( ) , arg0 ) ; }
Generate a Java code for the following instruction: test the singleton in a non-concurrent setting concode_field_sep Supplier<S> singletonInstanceMethod concode_field_sep void testMultipleCallsReturnTheSameObjectInDifferentThreads
void function ( ) { S loc0 = this . singletonInstanceMethod . get ( ) ; S loc1 = this . singletonInstanceMethod . get ( ) ; S loc2 = this . singletonInstanceMethod . get ( ) ; assertSame ( loc0 , loc1 ) ; assertSame ( loc0 , loc2 ) ; assertSame ( loc1 , loc2 ) ; }
Generate a Java code for the following instruction: factory method to create a typed set . if there are any elements already in the set being decorated , they are validated . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
Set function ( Set arg0 , Class arg1 ) { return new PredicatedSet ( arg0 , InstanceofPredicate . getInstance ( arg1 ) ) ; }
Generate a Java code for the following instruction: prints the absolute pathname of the class file containing the specified class name , as prescribed by the class path . concode_field_sep String CLASSPATH concode_field_sep String getClasspath concode_elem_sep void setClasspath concode_elem_sep void printClasspath conc...
void function ( String arg0 ) { URL loc0 = findClass ( arg0 ) ; if ( loc0 == null ) { System . out . println ( "srini_string" + arg0 + "srini_string" ) ; } else { System . out . println ( "srini_string" + arg0 + "srini_string" + loc0 . getFile ( ) + "srini_string" ) ; } validate ( ) ; printClasspath ( ) ; }
Generate a Java code for the following instruction: checks if a given string is a valid person phone number . concode_field_sep String MESSAGE_PHONE_CONSTRAINTS concode_elem_sep String PHONE_VALIDATION_REGEX concode_elem_sep boolean isPrivate concode_elem_sep String EXAMPLE concode_elem_sep String value concode_field_s...
boolean function ( String arg0 ) { return arg0 . matches ( PHONE_VALIDATION_REGEX ) ; }
Generate a Java code for the following instruction: returns an about : neterror uri with the unknownprotocolfound text as a parameter . concode_field_sep String MARKET_INTENT_URI_PACKAGE_PREFIX concode_elem_sep String[] NATIVE_EVENTS concode_elem_sep String EXTRA_BROWSER_FALLBACK_URL concode_elem_sep IntentHelper insta...
String function ( final String arg0 ) { return UNKNOWN_PROTOCOL_URI_PREFIX + arg0 ; }
Generate a Java code for the following instruction: sets the horizontal indent of a dependent control . assumes that griddata is used . concode_field_sep PlaceHolder placeHolder concode_field_sep void setHorizontalSpan concode_elem_sep void setWidthHint concode_elem_sep int getIndent concode_elem_sep void setHeightHint...
void function ( Control arg0 ) { Object loc0 = arg0 . getLayoutData ( ) ; if ( loc0 instanceof GridData ) { ( ( GridData ) loc0 ) . horizontalIndent = LayoutUtil . getIndent ( ) ; } }
Generate a Java code for the following instruction: these functions support parsing serialized rdf into an xmp object , and serailizing an xmp object into rdf . the input for parsing may be any valid unicode encoding . iso latin-1 is also recognized , but its use is strongly discouraged . serialization is always as utf...
XMPMeta function ( InputStream arg0 , ParseOptions arg1 ) { return XMPMetaParser . parse ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: adds a path from the block before a subroutine is called to a block after the subroutine is called . if the callerblock is already associated with a returnblock , the old returnblock is replaced . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_...
void function ( final Block arg0 , final Block arg1 ) { for ( int loc0 = 0 ; loc0 < paths . size ( ) ; loc0 ++ ) { final Block [ ] loc1 = ( Block [ ] ) paths . get ( loc0 ) ; if ( loc1 [ 0 ] == arg0 ) { loc1 [ 1 ] = arg1 ; return ; } } paths . add ( new Block [ ] { arg0 , arg1 } ) ; }
Generate a Java code for the following instruction: prepares the renderer . this method is non-blocking , and hence it may be necessary to call it more than once in order to transition the renderer into the prepared state . concode_field_sep long MATCH_LONGEST_US concode_elem_sep int STATE_UNPREPARED concode_elem_sep l...
int function ( long arg0 ) { Assertions . checkState ( state == STATE_UNPREPARED ) ; state = doPrepare ( arg0 ) ? STATE_PREPARED : STATE_UNPREPARED ; return state ; }
Generate a Java code for the following instruction: count the number of columns this projection uses . concode_field_sep String[] REUSABLE_ALIASES concode_elem_sep int NUM_REUSABLE_ALIASES concode_field_sep Projection as concode_elem_sep String[] getAliases concode_elem_sep String getAliasForLocation concode_elem_sep S...
int function ( Criteria arg0 , CriteriaQuery arg1 ) { final Type [ ] loc0 = getTypes ( arg0 , arg1 ) ; int loc1 = 0 ; for ( Type loc2 : loc0 ) { loc1 += loc2 . getColumnSpan ( arg1 . getFactory ( ) ) ; } return loc1 ; }
Generate a Java code for the following instruction: data from this message . concode_field_sep byte[] payload concode_elem_sep boolean truncated concode_elem_sep StdStreamType type concode_field_sep boolean isTruncated concode_elem_sep StdStreamType getType
byte [ ] function ( ) { return payload ; }
Generate a Java code for the following instruction: sets the value of the quotaavailablebytes 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 getcontentlang...
void function ( QuotaAvailableBytes arg0 ) { this . quotaAvailableBytes = arg0 ; }
Generate a Java code for the following instruction: return the context attribute key for the attribute . concode_field_sep String fromKey concode_field_sep void setFromKey concode_elem_sep boolean execute
String function ( ) { return ( this . fromKey ) ; }
Generate a Java code for the following instruction: adds ands schedules a new frequency adjuster for this function concode_field_sep Logger log concode_elem_sep double frequency concode_elem_sep List<FrequencyAdjuster> frequencyAdjusters concode_elem_sep double maxMagnitude concode_field_sep double getMaxMagnitude conc...
void function ( FrequencyAdjuster arg0 ) { arg0 . setFunction ( this ) ; this . frequencyAdjusters . add ( arg0 ) ; arg0 . schedule ( ) ; log . debug ( "srini_string" + arg0 . toString ( ) ) ; }
Generate a Java code for the following instruction: returns the current depth of the stack . concode_field_sep TLongArrayList _list concode_elem_sep int DEFAULT_CAPACITY concode_field_sep long pop concode_elem_sep long[] toNativeArray concode_elem_sep void toNativeArray concode_elem_sep void clear concode_elem_sep void...
int function ( ) { return _list . size ( ) ; }
Generate a Java code for the following instruction: loads the copy participants for the given element . concode_field_sep ParticipantExtensionPoint fgMoveExtensions concode_elem_sep ParticipantExtensionPoint fgDeleteInstance concode_elem_sep String COPY_PARTICIPANT_EXT_POINT concode_elem_sep String RENAME_PARTICIPANT_E...
CopyParticipant [ ] function ( RefactoringStatus arg0 , RefactoringProcessor arg1 , Object arg2 , CopyArguments arg3 , String arg4 [ ] , SharableParticipants arg5 ) { return loadCopyParticipants ( arg0 , arg1 , arg2 , arg3 , null , arg4 , arg5 ) ; }
Generate a Java code for the following instruction: returns the global monitor which can be used to delegate information/occured events to a specific analyzer/s . concode_field_sep Simulator singleton concode_elem_sep Logger log concode_elem_sep long seed concode_elem_sep Monitor monitor concode_elem_sep DefaultConfigu...
Monitor function ( ) { if ( monitor == null ) monitor = new DefaultMonitor ( ) ; return monitor ; }
Generate a Java code for the following instruction: handles an incoming text event . concode_field_sep TextListener fTextListener concode_elem_sep ChangeType fType concode_elem_sep SelectionListener fSelectionListener concode_elem_sep Set<ITypingRunListener> fListeners concode_elem_sep int fNextOffset concode_elem_sep ...
void function ( TextEvent arg0 ) { Change loc0 = computeChange ( arg0 ) ; handleChange ( loc0 ) ; }
Generate a Java code for the following instruction: return the map entries as instances of map.entry in a collection that is safe from concurrent modification . ie . we may safely add new instances to the underlying map during iteration of the entries . concode_field_sep boolean dirty concode_elem_sep Entry<IdentityKey...
Map . Entry < K , V > [ ] function ( Map < K , V > arg0 ) { return ( ( IdentityMap < K , V > ) arg0 ) . entryArray ( ) ; }
Generate a Java code for the following instruction: creates a triangle strip between two outlines with identical number of vectors concode_field_sep PlaceHolder placeHolder concode_field_sep List<VectorXYZ> createVerticalTriangleStrip concode_elem_sep List<List<VectorXYZ>> createShapeExtrusionAlong concode_elem_sep Lis...
List < VectorXYZ > function ( List < VectorXYZ > arg0 , List < VectorXYZ > arg1 ) { assert arg0 . size ( ) == arg1 . size ( ) ; VectorXYZ [ ] loc0 = new VectorXYZ [ arg0 . size ( ) * 2 ] ; for ( int loc1 = 0 ; loc1 < arg0 . size ( ) ; loc1 ++ ) { loc0 [ loc1 * 2 ] = arg0 . get ( loc1 ) ; loc0 [ loc1 * 2 + 1 ] = arg1 . ...
Generate a Java code for the following instruction: returns the propertytagentities a comma separated string concode_field_sep PropertyTagEditingService propertyTagService concode_field_sep String getTagsAsList concode_elem_sep List<PropertyTagEntity> getAllGlobalPropertyTags concode_elem_sep void addPropertyTag concod...
String function ( List < PropertyTagEntity > arg0 ) { StringBuilder loc0 = new StringBuilder ( ) ; if ( arg0 != null ) { for ( PropertyTagEntity loc1 : arg0 ) { if ( loc1 . getName ( ) != null && ! loc1 . getName ( ) . isEmpty ( ) ) { loc0 . append ( loc1 . getName ( ) ) . append ( "srini_string" ) ; } } } return loc0 ...
Generate a Java code for the following instruction: sets the value of the report property . concode_field_sep Report report concode_field_sep Report getReport
void function ( Report arg0 ) { this . report = arg0 ; }
Generate a Java code for the following instruction: this has time complexity of o n and space complexity of o n as well because recursion would be used n no . of times , which uses stack internally . concode_field_sep Node head concode_elem_sep Node next concode_elem_sep int data concode_field_sep Node Delete concode_e...
Node function ( Node arg0 ) { if ( arg0 == null ) { return null ; } Node loc0 = reverseListRescursive ( arg0 . next ) ; if ( loc0 == null ) { head . next = arg0 ; } else { loc0 . next = arg0 ; } return arg0 ; }
Generate a Java code for the following instruction: sets the job input value schema . concode_field_sep String CONF_INPUT_KEY_SCHEMA concode_elem_sep String CONF_OUTPUT_KEY_SCHEMA concode_elem_sep String CONF_INPUT_VALUE_SCHEMA concode_elem_sep String CONF_OUTPUT_VALUE_SCHEMA concode_elem_sep String CONF_OUTPUT_CODEC c...
void function ( Job arg0 , Schema arg1 ) { arg0 . getConfiguration ( ) . set ( CONF_INPUT_VALUE_SCHEMA , arg1 . toString ( ) ) ; }
Generate a Java code for the following instruction: testing ext option password as a exact command to execute . the exact command is a string delimited by ' ' . concode_field_sep String KEYSTORE_URL concode_elem_sep VaultSession nonInteractiveSession concode_elem_sep String VAULT_ALIAS concode_elem_sep ModelNode origin...
void function ( ) { createVault ( buildCommand ( "srini_string" , "srini_string" ) ) ; Assert . assertEquals ( VAULT_ATTRIBUTE , getVaultedPassword ( ) ) ; removeVault ( ) ; }
Generate a Java code for the following instruction: gets the person 's name . concode_field_sep String college concode_elem_sep String gender concode_elem_sep String name concode_elem_sep ArrayList<Attribute> responses concode_field_sep ArrayList<Attribute> getResponses concode_elem_sep String getCollege concode_elem_s...
String function ( ) { return name ; }
Generate a Java code for the following instruction: send the post request to requested url of blocking concode_field_sep String resMessage concode_elem_sep String urlstring concode_elem_sep String filename concode_elem_sep String stateHTTP concode_elem_sep String uuid concode_elem_sep Context context concode_elem_sep H...
void function ( ) { stateHTTP = "srini_string" ; send ( ) ; }
Generate a Java code for the following instruction: extracts the millis from an object of this converter 's type . this implementation returns the current time . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isReadableInterval concode_elem_sep PeriodType getPeriodType concode_elem_sep String toStr...
long function ( Object arg0 , Chronology arg1 ) { return DateTimeUtils . currentTimeMillis ( ) ; }
Generate a Java code for the following instruction: the amount of memory this machine has mb concode_field_sep Map<String,JsonBall> metadata concode_elem_sep Date created concode_elem_sep Type type concode_elem_sep Set<String> ips concode_elem_sep ImmutableSet.Builder<String> ips concode_elem_sep ImmutableMap.Builder<S...
int function ( ) { return memorySizeMb ; }
Generate a Java code for the following instruction: returns suspend controller injected value . concode_field_sep int activeInvocationCount concode_elem_sep InjectedValue<DeploymentRepository> deploymentRepositoryInjectedValue concode_elem_sep AtomicIntegerFieldUpdater<EJBSuspendHandlerService> activeTransactionCountUp...
InjectedValue < SuspendController > function ( ) { return suspendControllerInjectedValue ; }
Generate a Java code for the following instruction: verifies that the numbers of paragraphs returned by div #end . 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 verifyIfPdfDiv concode_elem_sep ...
void function ( ) { final List < Element > loc0 = d . end ( workerContextImpl , new Tag ( "srini_string" ) , currentContent ) ; Assert . assertEquals ( 1 , loc0 . size ( ) ) ; }
Generate a Java code for the following instruction: verify that a given object is non-null . concode_field_sep PlaceHolder placeHolder concode_field_sep void equal concode_elem_sep void equal concode_elem_sep void isTrue concode_elem_sep void isTrue concode_elem_sep void fail concode_elem_sep void fail concode_elem_sep...
void function ( Object arg0 ) { isNotNull ( arg0 , "srini_string" + arg0 + "srini_string" ) ; }
Generate a Java code for the following instruction: set wm concode_field_sep NamedWorkManager workManager concode_elem_sep Logger log concode_field_sep NamedWorkManager getWorkManager concode_elem_sep void endpointActivation concode_elem_sep void stop concode_elem_sep int hashCode concode_elem_sep void endpointDeactiva...
void function ( NamedWorkManager arg0 ) { this . workManager = arg0 ; }
Generate a Java code for the following instruction: comparison with any other object . 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> rand...
boolean function ( Object arg0 ) { if ( ! ( arg0 instanceof LocalRing ) ) { return false ; } LocalRing < C > loc0 = null ; try { loc0 = ( LocalRing < C > ) arg0 ; } catch ( ClassCastException loc1 ) { } if ( loc0 == null ) { return false ; } if ( ! ring . equals ( loc0 . ring ) ) { return false ; } return ideal . equal...
Generate a Java code for the following instruction: negative of this vector . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenVectorModul<C> modul concode_field_sep int signum concode_elem_sep GenVector<C> leftLinearCombination concode_elem_sep GenVector<C> rightScalarProduct concode_el...
GenVector < C > function ( ) { ArrayList < C > loc0 = new ArrayList < C > ( modul . cols ) ; for ( C loc1 : val ) { C loc2 = loc1 . negate ( ) ; loc0 . add ( loc2 ) ; } return new GenVector < C > ( modul , loc0 ) ; }
Generate a Java code for the following instruction: if the child of a structured element is a dictionary , we inspect the child ; we may also draw a tag . concode_field_sep PdfReader reader concode_elem_sep PrintWriter out concode_field_sep String xmlName concode_elem_sep void convertToXml concode_elem_sep void convert...
void function ( PdfDictionary arg0 ) { inspectChildDictionary ( arg0 , false ) ; }
Generate a Java code for the following instruction: return the wrapped datum . concode_field_sep T datum concode_field_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString
T function ( ) { return datum ; }
Generate a Java code for the following instruction: get the matcher identifying the target of this match . concode_field_sep Matcher _parentMatcher concode_elem_sep int _index concode_elem_sep int DEFAULT_INDEX concode_elem_sep Matcher _matcher concode_field_sep Matcher getParentMatcher concode_elem_sep String toString...
Matcher function ( ) { return _matcher ; }
Generate a Java code for the following instruction: apply an `` in '' constraint concode_field_sep PropertyNameGetter propertyNameGetter concode_field_sep AuditCriterion hasNotChanged concode_elem_sep AuditCriterion lt concode_elem_sep AuditProjection distinct concode_elem_sep AuditCriterion leProperty concode_elem_sep...
AuditCriterion function ( Collection arg0 ) { return new InAuditExpression ( propertyNameGetter , arg0 . toArray ( ) ) ; }
Generate a Java code for the following instruction: load all resources for the selected type and exclude resource from excludelist concode_field_sep MaiaAmwFederationServicePredecessorHandler maiaAmwFederationServicePredecessorHandler concode_elem_sep ForeignableBoundary foreignableBoundary concode_elem_sep EditResourc...
List < ResourceGroup > function ( Integer arg0 , List < Integer > arg1 ) { return copyResource . loadResourceGroupsForType ( arg0 , resource . getResource ( ) ) ; }
Generate a Java code for the following instruction: returns whether this polygon is self-intersecting 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 intersects concode_elem_...
boolean function ( ) { return isSelfIntersecting ( vertexLoop ) ; }
Generate a Java code for the following instruction: returns the name of this method as given by imethod #getelementname concode_field_sep String fMethodSignature concode_elem_sep IMethod fMethod concode_elem_sep char MNEMONIC_DELIMITER concode_elem_sep String fMethodName concode_elem_sep int LENGTH concode_elem_sep boo...
String function ( ) { return fMethodName ; }
Generate a Java code for the following instruction: get all functions which are defined on the given resourcetype concode_field_sep Permissions permissionBoundary concode_elem_sep EntityManager entityManager concode_elem_sep ResourceTypeRepository resourceTypeRepository concode_elem_sep FreemarkerSyntaxValidator freema...
List < AmwFunctionEntity > function ( ResourceTypeEntity arg0 ) { Objects . requireNonNull ( arg0 , "srini_string" ) ; ResourceTypeEntity loc0 = resourceTypeRepository . loadWithFunctionsAndMiksForId ( arg0 . getId ( ) ) ; return new ArrayList < > ( loc0 . getFunctions ( ) ) ; }
Generate a Java code for the following instruction: verify if nullnode #getinstance actually returns the same object instance concode_field_sep PlaceHolder placeHolder concode_field_sep void testFields concode_elem_sep void testWalk
void function ( ) { final NullNode loc0 = NullNode . getInstance ( ) ; assertNotNull ( loc0 ) ; assertSame ( loc0 , NullNode . getInstance ( ) ) ; }
Generate a Java code for the following instruction: stop the player . concode_field_sep ArrayList<String> files concode_elem_sep MusicPlayer player concode_field_sep void listAllFilles concode_elem_sep void listFile concode_elem_sep void removeFile concode_elem_sep int getNumberOfFiles concode_elem_sep void listMatchin...
void function ( ) { player . stop ( ) ; }
Generate a Java code for the following instruction: attempt to resolve the specified property type through reflection . concode_field_sep PropertyAccessor DIRECT_PROPERTY_ACCESSOR concode_elem_sep Method OBJECT_EQUALS concode_elem_sep Class[] SINGLE_OBJECT_PARAM_SIGNATURE concode_elem_sep Object[] NO_PARAMS concode_ele...
Class function ( String arg0 , String arg1 ) { try { Class loc0 = ReflectHelper . classForName ( arg0 ) ; return getter ( loc0 , arg1 ) . getReturnType ( ) ; } catch ( ClassNotFoundException loc0 ) { throw new MappingException ( "srini_string" + arg0 + "srini_string" + arg1 , loc0 ) ; } }
Generate a Java code for the following instruction: return links the sentence contains . 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 conc...
List < String > function ( ) { return links ; }
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: collects an event and puts it into the event queue for later processing . concode_field_sep Thread eventProcessor concode_elem_sep Vector queue concode_elem_sep boolean isCoalesce concode_elem_sep boolean isAlive concode_elem_sep int priority concode_field_sep void st...
void function ( Object arg0 ) { synchronized ( queue ) { if ( ! isCoalesce || ! queue . contains ( arg0 ) ) { queue . addElement ( arg0 ) ; if ( isAlive ) startProcessor ( ) ; } } }
Generate a Java code for the following instruction: generates enumerateiterator.tuple items with indexes starting at 0 . concode_field_sep Object NO_ELEMENT concode_elem_sep Object SKIP concode_elem_sep Iterator4 EMPTY_ITERATOR concode_elem_sep Iterable4 EMPTY_ITERABLE concode_field_sep Object next concode_elem_sep Ite...
Iterable4 function ( final Iterable4 arg0 ) { return new Iterable4 ( ) { public Iterator4 iterator ( ) { return new EnumerateIterator ( arg0 . iterator ( ) ) ; } } ; }
Generate a Java code for the following instruction: prints a table with x - and y-values for a method concode_field_sep PlaceHolder placeHolder concode_field_sep double square concode_elem_sep void main
void function ( double arg0 , double arg1 , int arg2 , Method arg3 ) { System . out . println ( arg3 ) ; double loc0 = ( arg1 - arg0 ) / ( arg2 - 1 ) ; for ( double loc1 = arg0 ; loc1 <= arg1 ; loc1 += loc0 ) { try { double loc2 = ( Double ) arg3 . invoke ( null , loc1 ) ; System . out . printf ( "srini_string" , loc1 ...
Generate a Java code for the following instruction: return this file 's metadata . 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 long rowCount concode_elem_sep int columnC...
ColumnFileMetaData function ( ) { return metaData ; }
Generate a Java code for the following instruction: interrupts the processlistener thread and terminates the cluster . concode_field_sep ProcessListener processListener concode_elem_sep FXMLController guiController concode_elem_sep String user concode_elem_sep File fileBiBiGridJar concode_elem_sep File fileSingularityS...
void function ( ) { processListener . interrupt ( ) ; try { StopCluster ( true ) ; } catch ( IOException loc0 ) { System . out . println ( "srini_string" ) ; System . out . println ( loc0 . toString ( ) ) ; } }
Generate a Java code for the following instruction: create a fingerprint per the following spec concode_field_sep PlaceHolder placeHolder concode_field_sep byte[] keyBlob concode_elem_sep DSAPublicKeySpec publicKeySpecFromOpenSSH concode_elem_sep DSAPublicKeySpec publicKeySpecFromOpenSSH concode_elem_sep String encodeA...
String function ( BigInteger arg0 , BigInteger arg1 , BigInteger arg2 , BigInteger arg3 ) { byte [ ] loc0 = loc0 ( arg0 , arg1 , arg2 , arg3 ) ; return hexColonDelimited ( Hashing . md5 ( ) . hashBytes ( loc0 ) ) ; }
Generate a Java code for the following instruction: get a string that is a comma delimited list of subsystems concode_field_sep String MOUNT_STATUS_FILE concode_elem_sep Logger LOG concode_elem_sep String CGROUP_STATUS_FILE concode_field_sep void writeFileByLine concode_elem_sep void writeFileByLine concode_elem_sep Se...
String function ( Set < SubSystemType > arg0 ) { StringBuilder loc0 = new StringBuilder ( ) ; if ( arg0 . size ( ) == 0 ) { return loc0 . toString ( ) ; } for ( SubSystemType loc1 : arg0 ) { loc0 . append ( loc1 . name ( ) ) . append ( "srini_string" ) ; } return loc0 . toString ( ) . substring ( 0 , loc0 . length ( ) ...
Generate a Java code for the following instruction: determine if the ui thread is idle concode_field_sep SWTIdler idler concode_field_sep String toString concode_elem_sep void waitForIdle
boolean function ( ) { return idler . isIdle ( ) ; }
Generate a Java code for the following instruction: getter to find out if adding annotations is allowed after signing . concode_field_sep boolean certification concode_elem_sep boolean fillInAllowed concode_elem_sep boolean annotationsAllowed concode_elem_sep PdfName action concode_elem_sep PdfArray fields concode_elem...
boolean function ( ) { return annotationsAllowed ; }
Generate a Java code for the following instruction: dispatch the event to the gesture detectors and the pan/zoom controller . concode_field_sep JavaPanZoomController mPanZoomController concode_elem_sep int EVENT_LISTENER_TIMEOUT concode_elem_sep GestureDetector mGestureDetector concode_elem_sep boolean mAllowDefaultAct...
void function ( MotionEvent arg0 , boolean arg1 ) { if ( arg1 ) { if ( mGestureDetector . onTouchEvent ( arg0 ) ) { return ; } mScaleGestureDetector . onTouchEvent ( arg0 ) ; if ( mScaleGestureDetector . isInProgress ( ) ) { return ; } } mPanZoomController . handleEvent ( arg0 , ! arg1 ) ; }
Generate a Java code for the following instruction: dispatch a keydown event . 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 mouseMove concode_elem_sep void mouseMove concode...
void function ( final char arg0 ) { Event loc0 = new Event ( ) ; loc0 . type = SWT . KeyDown ; loc0 . character = arg0 ; new SWTPushEventOperation ( loc0 ) . execute ( ) ; }
Generate a Java code for the following instruction: returns the last block in the subroutine . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_sep ArrayList paths concode_elem_sep FlowGraph graph concode_elem_sep LocalVariable returnAddress concode_field_sep void setReturnAddress concode_elem_sep...
Block function ( ) { return exit ; }
Generate a Java code for the following instruction: run all the tests contained in request . this variant should be used if core has attached listeners that thisrun should notify . concode_field_sep String MALFORMED_JUNIT_3_TEST_CLASS_PREFIX concode_elem_sep MaxHistory fHistory concode_field_sep Runner buildRunner conc...
Result function ( Request arg0 , JUnitCore arg1 ) { arg1 . addListener ( fHistory . listener ( ) ) ; return arg1 . run ( sortRequest ( arg0 ) . getRunner ( ) ) ; }
Generate a Java code for the following instruction: convert character to integer concode_field_sep Cell[][] cells concode_elem_sep int width concode_elem_sep long serialVersionUID concode_elem_sep int height concode_field_sep Iterator<Cell> iterator concode_elem_sep boolean equals concode_elem_sep Cell getCellAtLocatio...
int function ( char arg0 ) { return arg0 - 'A' ; }
Generate a Java code for the following instruction: notifie les observers concode_field_sep ArrayList<MyObserver> _observer concode_elem_sep Figure _message concode_field_sep void setMessageFigure concode_elem_sep void addObserver concode_elem_sep void notifyObservers
void function ( Figure arg0 ) { setMessageFigure ( arg0 ) ; notifyObservers ( ) ; }
Generate a Java code for the following instruction: verifies if the largest of the margin-bottom 's of the ul and it 's last li is selected and added to the padding-bottom of li , because padding-bottom of ul == null . concode_field_sep Tag p concode_elem_sep ListItem single concode_elem_sep Tag last concode_elem_sep L...
void function ( ) { ul . getCSS ( ) . put ( "srini_string" , "srini_string" ) ; com . itextpdf . text . List loc0 = ( com . itextpdf . text . List ) orderedUnorderedList . end ( workerContextImpl , ul , listWithTwo ) . get ( 0 ) ; assertEquals ( 100f + 25f , ( ( ListItem ) loc0 . getItems ( ) . get ( 1 ) ) . getSpacing...
Generate a Java code for the following instruction: the user owning this subscription . concode_field_sep String password concode_elem_sep String host concode_elem_sep MemoryUser user concode_elem_sep String username concode_elem_sep String type concode_elem_sep boolean autoConnect concode_field_sep void setPassword co...
User function ( ) { return ( this . user ) ; }
Generate a Java code for the following instruction: visible for testing . concode_field_sep ExecutorService executor concode_field_sep void schedule concode_elem_sep void close
void function ( final long arg0 , final TimeUnit arg1 ) { executor . awaitTermination ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: get this nodes transinfo concode_field_sep String attributeName concode_elem_sep Comparable[] range concode_elem_sep TransInfo transInfo concode_field_sep int getTransmissionSize concode_elem_sep String getAttribute concode_elem_sep void setRange concode_elem_sep Comp...
TransInfo function ( ) { return transInfo ; }
Generate a Java code for the following instruction: method to get the green value from a pixel represented as an int concode_field_sep int x concode_elem_sep int y concode_elem_sep DigitalPicture picture concode_field_sep int getCol concode_elem_sep int correctValue concode_elem_sep Color getColor concode_elem_sep void...
int function ( int arg0 ) { int loc0 = ( arg0 >> 8 ) & 0xff ; return loc0 ; }
Generate a Java code for the following instruction: write accessor for sasl token concode_field_sep Logger LOG concode_elem_sep short IDENTIFIER concode_elem_sep byte[] token concode_field_sep SaslMessageToken read concode_elem_sep byte[] getSaslToken concode_elem_sep int encodeLength concode_elem_sep ChannelBuffer buf...
void function ( byte [ ] arg0 ) { this . token = arg0 ; }
Generate a Java code for the following instruction: get invalid characters . concode_field_sep boolean needAfterSpace concode_elem_sep SymbolType name concode_elem_sep long serialVersionUID concode_elem_sep char[] invalidChars concode_elem_sep boolean needBeforeSpace concode_elem_sep char value concode_field_sep char g...
char [ ] function ( ) { return invalidChars ; }
Generate a Java code for the following instruction: get a fixed-length random string , its a mixture of uppercase and lowercase letters concode_field_sep String NUMBERS_AND_LETTERS concode_elem_sep String LETTERS concode_elem_sep String CAPITAL_LETTERS concode_elem_sep String LOWER_CASE_LETTERS concode_elem_sep String ...
String function ( int arg0 ) { return getRandom ( LETTERS , arg0 ) ; }
Generate a Java code for the following instruction: returns the geometric mean of the available values concode_field_sep int INFINITE_WINDOW concode_elem_sep long serialVersionUID concode_field_sep double getKurtosis concode_elem_sep double getStandardDeviation concode_elem_sep double getSkewness concode_elem_sep int g...
double function ( ) { return apply ( new GeometricMean ( ) ) ; }
Generate a Java code for the following instruction: return the value of a metadata property . concode_field_sep Schema schema concode_elem_sep List<String> metaKeyList concode_elem_sep long blockCount concode_elem_sep boolean availableBlock concode_elem_sep byte[] data concode_elem_sep DatumReader<D> reader concode_ele...
byte [ ] function ( String arg0 ) { return header . meta . get ( arg0 ) ; }
Generate a Java code for the following instruction: create a listiterator listiterator wrappingthe specified charlistiterator charlistiterator . when the given iterator is null , returns null . concode_field_sep CharListIterator _iterator concode_field_sep Object next concode_elem_sep void add concode_elem_sep void set...
ListIterator function ( CharListIterator arg0 ) { return null == arg0 ? null : new CharListIteratorListIterator ( arg0 ) ; }
Generate a Java code for the following instruction: initialize game . place 2 instances of 2 anywhere on the board . 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 ca...
void function ( int arg0 ) { resetGrid ( arg0 ) ; resetMoved ( arg0 ) ; generateNextCell ( ) ; generateNextCell ( ) ; }
Generate a Java code for the following instruction: decrypt with the encryption key and key usage . concode_field_sep PlaceHolder placeHolder concode_field_sep EncryptionKey string2Key concode_elem_sep EncryptionKey string2Key concode_elem_sep EncryptionKey random2Key concode_elem_sep EncryptionKey random2Key concode_e...
byte [ ] function ( EncryptedData arg0 , EncryptionKey arg1 , KeyUsage arg2 ) { EncTypeHandler loc0 = getEncHandler ( arg1 . getKeyType ( ) ) ; byte [ ] loc1 = loc0 . decrypt ( arg0 . getCipher ( ) , arg1 . getKeyData ( ) , arg2 . getValue ( ) ) ; return loc1 ; }
Generate a Java code for the following instruction: leer una pagina del libro , se actualiza marcador , no se pueeder leer mas del numero de paginas del libro concode_field_sep String dimensiones concode_elem_sep int numeroPaginas concode_elem_sep String titulo concode_elem_sep String colorPortada concode_elem_sep Stri...
int function ( ) { int loc0 = this . getMarcador ( ) ; if ( loc0 < this . getNumeroPaginas ( ) ) { loc0 ++ ; this . setMarcador ( loc0 ) ; } return loc0 ; }
Generate a Java code for the following instruction: if the line is a section header , return the section level , or zero if the line is not a section header concode_field_sep String inlineMarkupDelimiters concode_elem_sep int sectionLevel concode_elem_sep boolean erased concode_elem_sep boolean inBlock concode_elem_sep...
int function ( ) { return sectionLevel ; }
Generate a Java code for the following instruction: does this lockoptions object define alias-specific lock modes ? concode_field_sep Map<String,LockMode> aliasSpecificLockModes concode_elem_sep int NO_WAIT concode_elem_sep LockOptions NONE concode_elem_sep boolean scope concode_elem_sep int SKIP_LOCKED concode_elem_se...
boolean function ( ) { return aliasSpecificLockModes != null && ! aliasSpecificLockModes . isEmpty ( ) ; }
Generate a Java code for the following instruction: there is a global event dispatcher . this method returns it . concode_field_sep List<IGnutellaEventListener> listeners concode_elem_sep GnutellaEvents inst concode_field_sep void queryFailed concode_elem_sep void querySucceeded concode_elem_sep void connectionBreak co...
GnutellaEvents function ( ) { if ( inst == null ) inst = new GnutellaEvents ( ) ; return inst ; }
Generate a Java code for the following instruction: get screen width concode_field_sep PlaceHolder placeHolder concode_field_sep float dip2Dimension concode_elem_sep Bitmap snapShotWithoutStatusBar concode_elem_sep int getStatusHeight concode_elem_sep Bitmap snapShotWithStatusBar concode_elem_sep float toDimension conc...
int function ( Context arg0 ) { WindowManager loc0 = ( WindowManager ) arg0 . getSystemService ( Context . WINDOW_SERVICE ) ; DisplayMetrics loc1 = new DisplayMetrics ( ) ; loc0 . getDefaultDisplay ( ) . getMetrics ( loc1 ) ; return loc1 . widthPixels ; }
Generate a Java code for the following instruction: gettotal : updated from project 1 @ 5 dec 2010 returns total on top of operands stack . throws exception that indicates that the input formula was not correct . concode_field_sep Stack<Double> operands concode_elem_sep Stack<OperationsInterface> operators concode_fiel...
double function ( ) { if ( operands . size ( ) == 1 && operators . isEmpty ( ) ) return operands . pop ( ) ; if ( operators . size ( ) == 1 ) { if ( operands . size ( ) == 2 ) { return ( ( Operator ) operators . pop ( ) ) . compute ( operands . pop ( ) , operands . pop ( ) ) ; } } throw new ExpressionException ( "srini...
Generate a Java code for the following instruction: called once after the initial sorting finished . 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 does nothi...
void function ( ) { }
Generate a Java code for the following instruction: gets the container location concode_field_sep Location mockLocation concode_elem_sep JdbcContainerNameValidator jdbcContainerNameValidator concode_elem_sep JdbcBlobKeyValidator jdbcBlobKeyValidator concode_elem_sep Provider<BlobBuilder> blobBuilders concode_elem_sep J...
Location function ( String arg0 ) { return mockLocation ; }
Generate a Java code for the following instruction: gets the field type that represents the upper limit of comparison . concode_field_sep DateTimeFieldType iUpperLimit concode_elem_sep DateTimeFieldType iLowerLimit concode_elem_sep DateTimeComparator ALL_INSTANCE concode_elem_sep long serialVersionUID concode_elem_sep ...
DateTimeFieldType function ( ) { return iUpperLimit ; }
Generate a Java code for the following instruction: groebner base test . concode_field_sep Reduction<C> red concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep List<GenPolynomial<C>> minimalGB concode_elem_sep List<GenPolynomial<C>> GB concode_elem_sep ExtendedGB<C> extGB concode_elem_sep Ex...
boolean function ( List < GenPolynomial < C >> arg0 ) { return isGB ( 0 , arg0 ) ; }
Generate a Java code for the following instruction: copies all bytes in the given source stream to the given destination stream . neither streams are closed . concode_field_sep byte[] fgBuffer concode_field_sep String changeSeparator concode_elem_sep StringBuffer read concode_elem_sep StringBuffer read concode_elem_sep...
void function ( InputStream arg0 , OutputStream arg1 ) { int loc0 = 0 ; while ( loc0 != - 1 ) { loc0 = arg0 . read ( fgBuffer , 0 , fgBuffer . length ) ; if ( loc0 != - 1 ) { arg1 . write ( fgBuffer , 0 , loc0 ) ; } } }
Generate a Java code for the following instruction: performs a search and groups the resulting searchmatch es by searchresultgroup #getcompilationunit . concode_field_sep PlaceHolder placeHolder concode_field_sep ICompilationUnit[] findAffectedCompilationUnits concode_elem_sep ICompilationUnit[] findAffectedCompilation...
SearchResultGroup [ ] function ( SearchPattern arg0 , IJavaSearchScope arg1 , IProgressMonitor arg2 , RefactoringStatus arg3 ) { return internalSearch ( new SearchEngine ( ) , arg0 , arg1 , new CollectingSearchRequestor ( ) , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: writes string to buffer as c-style string null-terminated concode_field_sep int BUFFER_DEFAULT_LENGTH concode_elem_sep int actualSize concode_elem_sep byte[] buffer concode_elem_sep int position concode_field_sep void writeInt concode_elem_sep void writeLong concode_e...
int function ( String arg0 ) { int loc0 = getPosition ( ) ; try { this . write ( arg0 . getBytes ( "srini_string" ) ) ; } catch ( UnsupportedEncodingException loc1 ) { throw new BSONException ( "srini_string" , loc1 ) ; } this . write ( ( byte ) 0x00 ) ; return getPosition ( ) - loc0 ; }
Generate a Java code for the following instruction: gets 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 getUser concode_elem_sep String getUuid concode_elem_sep void setCaller concode_elem_sep void setUser concode_ele...
String function ( ) { return caller ; }
Generate a Java code for the following instruction: create a client transceiver connecting to the provided uri . concode_field_sep PlaceHolder placeHolder concode_field_sep Server createServer
Transceiver function ( URI arg0 ) { if ( "srini_string" . equals ( arg0 . getScheme ( ) ) ) return new HttpTransceiver ( arg0 . toURL ( ) ) ; else if ( "srini_string" . equals ( arg0 . getScheme ( ) ) ) return new SaslSocketTransceiver ( new InetSocketAddress ( arg0 . getHost ( ) , arg0 . getPort ( ) ) ) ; else throw n...
Generate a Java code for the following instruction: serializes the given object into a bytebuffer backed by the byte array returned by kryo serialization . concode_field_sep Output output concode_elem_sep Input input concode_elem_sep Kryo kryo concode_field_sep byte[] serialize concode_elem_sep Object deserialize conco...
ByteBuffer function ( Object arg0 ) { output . clear ( ) ; kryo . writeClassAndObject ( output , arg0 ) ; return ByteBuffer . wrap ( output . getBuffer ( ) , 0 , output . position ( ) ) ; }
Generate a Java code for the following instruction: retrieve a default instance of lcm using either the environment variable lcm_default_url or the default . if an exception occurs , system.exit -1 is called . concode_field_sep LCM singleton concode_elem_sep String regex concode_elem_sep Pattern pat concode_elem_sep LC...
LCM function ( ) { if ( singleton == null ) { try { singleton = new LCM ( ) ; } catch ( Exception loc0 ) { System . err . println ( "srini_string" + loc0 ) ; System . exit ( - 1 ) ; return null ; } } return singleton ; }
Generate a Java code for the following instruction: truncates a string to the maximum length . concode_field_sep boolean fgFilterStack concode_elem_sep String SUITE_METHODNAME concode_elem_sep int fgMaxMessageLength concode_elem_sep boolean fLoading concode_elem_sep Properties fPreferences concode_field_sep void addErr...
String function ( String arg0 ) { if ( fgMaxMessageLength != - 1 && arg0 . length ( ) > fgMaxMessageLength ) { arg0 = arg0 . substring ( 0 , fgMaxMessageLength ) + "srini_string" ; } return arg0 ; }
Generate a Java code for the following instruction: close inputstream concode_field_sep PlaceHolder placeHolder concode_field_sep Drawable bitmapToDrawable concode_elem_sep Bitmap drawableToBitmap concode_elem_sep Bitmap byteToBitmap concode_elem_sep Bitmap getBitmapFromUrl concode_elem_sep Bitmap getBitmapFromUrl conc...
void function ( InputStream arg0 ) { if ( arg0 == null ) { return ; } try { arg0 . close ( ) ; } catch ( IOException loc0 ) { throw new RuntimeException ( "srini_string" , loc0 ) ; } }
Generate a Java code for the following instruction: always throws a sqlexception . not supported . concode_field_sep String password concode_elem_sep Log log concode_elem_sep String driverClassName concode_elem_sep String jdbcURL concode_elem_sep String userName concode_field_sep void setPassword concode_elem_sep Conne...
PrintWriter function ( ) { throw new SQLException ( Resources . getMessage ( "srini_string" ) ) ; }
Generate a Java code for the following instruction: static factory method to create a criteria using the provided key 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_ele...
Criteria function ( String arg0 ) { checkComplete ( ) ; return new Criteria ( this . criteriaChain , ValueNode . toValueNode ( prefixPath ( arg0 ) ) ) ; }