input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: getter for property ` connectedtosession ' . concode_field_sep String sessionFactoryUuid concode_elem_sep String entityName concode_elem_sep SessionImplementor session concode_elem_sep Boolean readOnlyBeforeAttachedToSession concode_elem_sep boolean allowLoadOutsideTr...
boolean function ( ) { return getProxyOrNull ( ) != null ; }
Generate a Java code for the following instruction: returns the internal source viewer . concode_field_sep SourceViewer fSourceViewer concode_elem_sep ViewForm fForm concode_elem_sep CLabel fLabel concode_elem_sep Image fPaneImage concode_field_sep Control getControl concode_elem_sep SourceViewer createSourceViewer con...
SourceViewer function ( ) { return fSourceViewer ; }
Generate a Java code for the following instruction: inserts the child as the first child of the parent , all other children are shifted over to the ` right ' . concode_field_sep FilterPredicate predicate concode_elem_sep List collectedNodes concode_field_sep AST getLastSibling concode_elem_sep AST findTypeInChildren co...
void function ( AST arg0 , AST arg1 ) { if ( arg0 . getFirstChild ( ) == null ) { arg0 . setFirstChild ( arg1 ) ; } else { AST loc0 = arg0 . getFirstChild ( ) ; arg0 . setFirstChild ( arg1 ) ; arg1 . setNextSibling ( loc0 ) ; } }
Generate a Java code for the following instruction: getter to find out if filling out fields 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 fillInAllowed ; }
Generate a Java code for the following instruction: returns all the indices of statements where v is an input to the statement . concode_field_sep List<MStatement> statements concode_field_sep MSequence makeCopy concode_elem_sep void findInfluencingVars concode_elem_sep Sequence toImmutableSequence concode_elem_sep int...
List < Integer > function ( MVariable arg0 ) { List < Integer > loc0 = new ArrayList < Integer > ( ) ; for ( int loc1 = arg0 . getDeclIndex ( ) + 1 ; loc1 < size ( ) ; loc1 ++ ) { if ( statements . get ( loc1 ) . inputs . contains ( arg0 ) ) loc0 . add ( loc1 ) ; } return loc0 ; }
Generate a Java code for the following instruction: setter method for property classname . concode_field_sep Class<?>[] parameterTypes concode_elem_sep String requestId concode_elem_sep String methodName concode_elem_sep String className concode_elem_sep Object[] parameters concode_field_sep void setParameterTypes conc...
void function ( String arg0 ) { this . className = arg0 ; }
Generate a Java code for the following instruction: get this period as an immutable period object . the period will use periodtype.standard . concode_field_sep long START_1972 concode_elem_sep int iPeriod concode_elem_sep long serialVersionUID concode_field_sep DurationFieldType getFieldType concode_elem_sep DurationFi...
Period function ( ) { return Period . ZERO . withFields ( this ) ; }
Generate a Java code for the following instruction: a classeditor 's hash code is based upon the hash code of the name of the class it edits . concode_field_sep boolean dirty concode_elem_sep ClassInfo classInfo concode_elem_sep Type[] interfaces concode_elem_sep Type superclass concode_elem_sep EditorContext context c...
int function ( ) { return ( this . name ( ) . hashCode ( ) ) ; }
Generate a Java code for the following instruction: get the list of polynomials . concode_field_sep ArrayList<GenPolynomial<C>> P concode_elem_sep ArrayList<BitSet> red concode_elem_sep boolean useCriterion4 concode_elem_sep int putCount concode_elem_sep Logger logger concode_elem_sep GenPolynomialRing<C> ring concode_...
ArrayList < GenPolynomial < C >> function ( ) { return P ; }
Generate a Java code for the following instruction: evaluates the body of a tag 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 removeScript
void function ( JellyContext arg0 , XMLOutput arg1 ) { for ( Iterator loc0 = list . iterator ( ) ; loc0 . hasNext ( ) ; ) { Script loc1 = ( Script ) loc0 . next ( ) ; loc1 . run ( arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: creates a criterion using equality concode_field_sep List<Criteria> criteriaChain concode_elem_sep ValueNode left concode_elem_sep ValueNode right concode_elem_sep RelationalOperator criteriaType concode_field_sep Criteria lt concode_elem_sep Criteria type concode_ele...
Criteria function ( Object arg0 ) { return is ( arg0 ) ; }
Generate a Java code for the following instruction: pause . concode_field_sep long syncTimeout concode_field_sep void typeKeyboardEnterkey concode_elem_sep void type concode_elem_sep void waitFor concode_elem_sep void doType concode_elem_sep void doType concode_elem_sep void typeUsingKeyPress
void function ( long arg0 ) { try { Thread . sleep ( arg0 ) ; } catch ( InterruptedException loc0 ) { loc0 . printStackTrace ( ) ; } }
Generate a Java code for the following instruction: this class delegates this call concode_field_sep RenderListener delegate concode_elem_sep RenderFilter[] filters concode_field_sep void renderImage concode_elem_sep void endTextBlock concode_elem_sep void renderText
void function ( ) { delegate . beginTextBlock ( ) ; }
Generate a Java code for the following instruction: creates an add operation using the specified address and parameters concode_field_sep String INDEX concode_elem_sep String KEY concode_field_sep String getName concode_elem_sep ModelNode getAttributeValue concode_elem_sep ModelNode createWriteAttributeOperation concod...
ModelNode function ( PathAddress arg0 , Map < Attribute , ModelNode > arg1 ) { ModelNode loc0 = Util . createAddOperation ( arg0 ) ; for ( Map . Entry < Attribute , ModelNode > loc1 : arg1 . entrySet ( ) ) { loc0 . get ( loc1 . getKey ( ) . getName ( ) ) . set ( loc1 . getValue ( ) ) ; } return loc0 ; }
Generate a Java code for the following instruction: creates a new search scope with all compilation units possibly referencing javaelement , considering the visibility of the element , references only from source concode_field_sep PlaceHolder placeHolder concode_field_sep void addRelatedReferencing concode_elem_sep IPa...
IJavaSearchScope function ( IJavaElement arg0 ) { return RefactoringScopeFactory . create ( arg0 , true , true ) ; }
Generate a Java code for the following instruction: returns the index of the element that would be returned by a subsequent call to previous . a return value of -1 indicates that the iterator is currently at the start . concode_field_sep boolean beforeFirst concode_elem_sep boolean nextCalled concode_elem_sep boolean r...
int function ( ) { return ( beforeFirst ? - 1 : 0 ) ; }
Generate a Java code for the following instruction: returns the selection mode of the given ast node regarding this selection . possible values are intersects , before , selected , and after . concode_field_sep int fLength concode_elem_sep int fExclusiveEnd concode_elem_sep int INTERSECTS concode_elem_sep int AFTER con...
int function ( ASTNode arg0 ) { int loc0 = arg0 . getStartPosition ( ) ; int loc1 = loc0 + arg0 . getLength ( ) ; if ( loc1 <= fStart ) return BEFORE ; else if ( covers ( arg0 ) ) return SELECTED ; else if ( fExclusiveEnd <= loc0 ) return AFTER ; return INTERSECTS ; }
Generate a Java code for the following instruction: return a description of this script step . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep Throwable invalidScriptError concode_elem_sep long serialVersionUID concode_field_sep String toXMLString concode_elem_sep Map getAttribu...
String function ( ) { return getDescription ( ) ; }
Generate a Java code for the following instruction: composition 4 . a1 , a2 , a3 and a4 are objects . l is a list . m = comp a1 , comp a2 , comp a3 , comp a4 , l . concode_field_sep LIST<?> SIL concode_elem_sep Iterator<C> iter concode_elem_sep LinkedList<C> list concode_field_sep void SFIRST concode_elem_sep LIST<C> L...
LIST < C > function ( C arg0 , C arg1 , C arg2 , C arg3 , LIST < C > arg4 ) { LIST < C > loc0 = arg4 ; if ( arg4 == null ) { loc0 = new LIST < C > ( ) ; } loc0 . list . addFirst ( arg3 ) ; loc0 . list . addFirst ( arg2 ) ; loc0 . list . addFirst ( arg1 ) ; loc0 . list . addFirst ( arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: returns the current state of the renderer . concode_field_sep long MATCH_LONGEST_US concode_elem_sep int STATE_UNPREPARED concode_elem_sep long UNKNOWN_TIME_US concode_elem_sep int STATE_PREPARED concode_elem_sep int STATE_ENABLED concode_elem_sep long END_OF_TRACK_US...
int function ( ) { return state ; }
Generate a Java code for the following instruction: #register opmodemanager is called by the sdk game in order to registeropmode classes or instances that will participate in an ftc game . there are two mechanisms by which an opmode may be registered . 1 the preferred method is by means of class annotations in the opmo...
void function ( OpModeManager arg0 ) { BlocksOpMode . registerAll ( arg0 ) ; AnnotatedOpModeRegistrar . register ( arg0 ) ; }
Generate a Java code for the following instruction: verify if the given writer is not ` null ' concode_field_sep TemporaryFolder testFolder concode_field_sep void testActualWrite concode_elem_sep void testNonExistentFile concode_elem_sep void testIoException
void function ( ) { final File loc0 = this . testFolder . newFile ( ) ; new SimpleFileWriter ( loc0 . getPath ( ) , Assert :: assertNotNull ) ; }
Generate a Java code for the following instruction: reads the device descriptor from the devices eeprom . concode_field_sep Device device concode_elem_sep DeviceDescriptor deviceDescriptor concode_field_sep void writeUserArea concode_elem_sep void writeUserArea concode_elem_sep void erase concode_elem_sep void erase co...
DeviceDescriptor function ( ) { checkIsOpen ( ) ; return readDeviceDescriptor ( device . getHandle ( ) ) ; }
Generate a Java code for the following instruction: create an instance of isdvinfo concode_field_sep QName _HistoryHeader_QNAME concode_elem_sep QName _ISDVInfo_QNAME concode_elem_sep QName _KeyValuePairList_QNAME concode_elem_sep QName _LocalizedMessage_QNAME concode_elem_sep QName _BusinessException_QNAME concode_ele...
ISDVInfo function ( ) { return new ISDVInfo ( ) ; }
Generate a Java code for the following instruction: verifies if image is a stack owner . should be false . concode_field_sep Image i concode_elem_sep Tag I concode_elem_sep WorkerContext workerContextImpl concode_field_sep void init concode_elem_sep void verifyEnd
void function ( ) { Assert . assertFalse ( i . isStackOwner ( ) ) ; }
Generate a Java code for the following instruction: sets the input info . concode_field_sep String inputInfo concode_elem_sep String outputMessage concode_elem_sep List<String> validatorErrorMessage concode_field_sep List<String> getValidatorErrorMessage concode_elem_sep String getInputInfo concode_elem_sep void setVal...
void function ( String arg0 ) { this . inputInfo = arg0 ; }
Generate a Java code for the following instruction: returns the label for a url , uri or url part . example is ` http://www.x.xom/s.html#1 ' concode_field_sep String CONCAT_STRING concode_field_sep String getFilePattern concode_elem_sep String markLTR concode_elem_sep String getResourceName concode_elem_sep String getR...
String function ( String arg0 ) { return markLTR ( arg0 , "srini_string" ) ; }
Generate a Java code for the following instruction: trace is never enabled . concode_field_sep PlaceHolder placeHolder concode_field_sep void warn concode_elem_sep void warn concode_elem_sep void trace concode_elem_sep void trace concode_elem_sep void debug concode_elem_sep void debug concode_elem_sep boolean isInfoEna...
boolean function ( ) { return false ; }
Generate a Java code for the following instruction: executes the body of the tag and returns the result as a string . concode_field_sep Tag parent concode_elem_sep JellyContext context concode_elem_sep boolean hasTrimmed concode_elem_sep Script body concode_elem_sep boolean escapeText concode_elem_sep Boolean shouldTri...
String function ( boolean arg0 ) { StringWriter loc0 = new StringWriter ( ) ; invokeBody ( XMLOutput . createXMLOutput ( loc0 , arg0 ) ) ; return loc0 . toString ( ) ; }
Generate a Java code for the following instruction: opens an objectcontainer objectcontainer on the specified database file for local use . a database file can only be opened once , subsequent attempts to open another objectcontainer objectcontainer against the same file will result ina databasefilelockedexception data...
EmbeddedObjectContainer function ( EmbeddedConfiguration arg0 , String arg1 ) { if ( null == arg0 ) { throw new ArgumentNullException ( ) ; } return ObjectContainerFactory . openObjectContainer ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: log a message with error log level . 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...
void function ( Object arg0 ) { log ( Level . SEVERE , String . valueOf ( arg0 ) , null ) ; }
Generate a Java code for the following instruction: replaces getcontexts call but ensures that if list not yet initialized then empty list will be returned concode_field_sep PlaceHolder placeHolder concode_field_sep Set<T> getContexts concode_elem_sep void setContexts concode_elem_sep void addToContextList concode_elem...
Set < T > function ( ) { if ( getContexts ( ) == null ) { return Collections . unmodifiableSet ( new HashSet < T > ( ) ) ; } return getContexts ( ) ; }
Generate a Java code for the following instruction: returns the center of the line concode_field_sep VectorXZ rightNormal concode_elem_sep MapNode startNode concode_elem_sep VectorXZ direction concode_elem_sep MapNode endNode concode_field_sep MapNode getOtherNode concode_elem_sep VectorXZ getRightNormal concode_elem_s...
VectorXZ function ( ) { return ( startNode . getPos ( ) . add ( endNode . getPos ( ) ) ) . mult ( 0.5 ) ; }
Generate a Java code for the following instruction: returns the result so far . concode_field_sep Vector lastEnd concode_elem_sep StringBuffer result concode_elem_sep Vector lastStart concode_field_sep void renderImage concode_elem_sep void appendTextChunk concode_elem_sep void beginTextBlock concode_elem_sep void endT...
String function ( ) { return result . toString ( ) ; }
Generate a Java code for the following instruction: negative of this matrix . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenMatrixRing<C> ring concode_elem_sep ArrayList<ArrayList<C>> matrix concode_elem_sep int hashValue concode_field_sep GenMatrix<C> leftLinearCombination concode_el...
GenMatrix < C > function ( ) { ArrayList < ArrayList < C >> loc0 = new ArrayList < ArrayList < C >> ( ring . rows ) ; for ( ArrayList < C > loc1 : matrix ) { ArrayList < C > loc2 = new ArrayList < C > ( ring . cols ) ; for ( C loc3 : loc1 ) { C loc4 = loc3 . negate ( ) ; loc2 . add ( loc4 ) ; } loc0 . add ( loc2 ) ; } ...
Generate a Java code for the following instruction: foreignable external link concode_field_sep boolean isTesting concode_elem_sep String typeName concode_elem_sep Clob propertyValue concode_elem_sep Clob exampleValue concode_elem_sep boolean isEncrypted concode_elem_sep String propContName concode_elem_sep Integer des...
ResourceEditPropertyBuilder function ( String arg0 ) { this . fcExternalLink = arg0 ; return this ; }
Generate a Java code for the following instruction: maps a cql value to the specified field from an input tuple . concode_field_sep PlaceHolder placeHolder concode_field_sep BatchCQLStatementTupleMapper unLoggedBatch concode_elem_sep CqlMapper.DefaultCqlMapper all concode_elem_sep CQLStatementTupleMapper async concode_...
FieldSelector function ( final String arg0 ) { return new FieldSelector ( arg0 ) ; }
Generate a Java code for the following instruction: decides if this response is fresh enough based last-modified and date , if available . this entry is meant to be used when isresponsefresh returns false . the algorithm is as follows : if last-modified and date are defined , freshness lifetime is coefficient date-last...
boolean function ( final HttpCacheEntry arg0 , final Date arg1 , final float arg2 , final long arg3 ) { return ( getCurrentAgeSecs ( arg0 , arg1 ) < getHeuristicFreshnessLifetimeSecs ( arg0 , arg2 , arg3 ) ) ; }
Generate a Java code for the following instruction: returns true if the underlying map is empty . 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...
boolean function ( ) { return _map . isEmpty ( ) ; }
Generate a Java code for the following instruction: return the n'th short down the stack , where 0 is the top element and size -1 is the bottom element . concode_field_sep ArrayShortList list concode_field_sep short pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep short get concode_elem_sep vo...
short function ( int arg0 ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . get ( list . size ( ) - arg0 - 1 ) ; }
Generate a Java code for the following instruction: clone this . 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 concode_...
Residue < C > function ( ) { return new Residue < C > ( ring , val ) ; }
Generate a Java code for the following instruction: helper method to get partitionoutgoingbatch based on the index since we may have more then one partitioner as number of partitioners should be very small and this method it used very rarely , so it is ok to loop in order to find right partitioner concode_field_sep Rec...
PartitionOutgoingBatch function ( int arg0 ) { for ( Partitioner loc0 : partitioners ) { PartitionOutgoingBatch loc1 = loc0 . getOutgoingBatch ( arg0 ) ; if ( loc1 != null ) { return loc1 ; } } return null ; }
Generate a Java code for the following instruction: sets the main window of the guirunner . concode_field_sep ConfigFile selectedFile concode_elem_sep LastOpened lastOpened concode_elem_sep List<IRunnerCtrlListener> listeners concode_elem_sep JButton launchButton concode_elem_sep GUIRunner runner concode_elem_sep JButt...
void function ( GUIRunner arg0 ) { this . runner = arg0 ; }
Generate a Java code for the following instruction: this method creates the timer to be used , if one is desired to be used . it will also set the number of seconds for each turn . concode_field_sep Player playerTwo concode_elem_sep int gameType concode_elem_sep Facade theFacade concode_elem_sep Rules theRules concode_...
void function ( int arg0 , int arg1 ) { if ( arg0 < 0 ) { isTimerRunning = false ; } else { isTimerRunning = true ; theTimer = new Timer ( ) ; } }
Generate a Java code for the following instruction: whether this is a smartmachine or virtualmachine 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 c...
Type function ( ) { return type ; }
Generate a Java code for the following instruction: check if a replacing cast function is available for the the original function concode_field_sep Map<String,String> CAST_FUNC_REPLACEMENT_FROM_NULLABLE_VAR16CHAR concode_elem_sep Map<String,String> CAST_FUNC_REPLACEMENT_FROM_NULLABLE_VARCHAR concode_elem_sep Set<String...
boolean function ( String arg0 , MinorType arg1 ) { return ( arg1 == MinorType . VARCHAR || arg1 == MinorType . VARBINARY || arg1 == MinorType . VAR16CHAR ) && CAST_FUNC_REPLACEMENT_NEEDED . contains ( arg0 ) ; }
Generate a Java code for the following instruction: initiates the following asynchronous state transitions : unrealized - > realizing - > realized - > prefetching - > prefetched realizing - > realized - > prefetching - > prefetched realized - > prefetching - > prefetched prefetching - > prefetched prefetched started - ...
void function ( ) { switch ( getState ( ) ) { case CLOSED : throw new IllegalStateException ( "srini_string" ) ; case STARTED : throw new IllegalStateException ( "srini_string" ) ; } setTargetState ( PREFETCHED ) ; }
Generate a Java code for the following instruction: called when a given source is about to become the active source . this gives subclasses the abilty to retrieve resources , if appropriate . concode_field_sep SourceEntry[] sources concode_elem_sep long size concode_elem_sep long lastByte concode_elem_sep int index con...
void function ( RandomAccessSource arg0 ) { }
Generate a Java code for the following instruction: send an event to the processor . the event will be queued to be processed after any prior events are processed , once processing actually starts . if an event 's processing causes an exception , it will be added to any previous exceptions as a suppressed exception . o...
void function ( final T arg0 ) { synchronized ( queuedEvents ) { queuedEvents . addLast ( arg0 ) ; if ( ! started || isProcessing ) { return ; } isProcessing = true ; } processEvents ( ) ; }
Generate a Java code for the following instruction: returns cache data in list form . concode_field_sep Node next concode_elem_sep Map<String,Node> cache concode_elem_sep Node head concode_elem_sep Node previous concode_elem_sep Logger LOGGER concode_elem_sep UserAccount userAccount concode_elem_sep Node end concode_el...
List < UserAccount > function ( ) { List < UserAccount > loc0 = new ArrayList < > ( ) ; Node loc1 = head ; while ( loc1 != null ) { loc0 . add ( loc1 . userAccount ) ; loc1 = loc1 . next ; } return loc0 ; }
Generate a Java code for the following instruction: retrieves the name of the cache concode_field_sep String PUBLISH_THREAD_NAME concode_elem_sep String cacheName concode_elem_sep int eventQueueLength concode_elem_sep ExecutorService executorService concode_elem_sep Object EVENTQUEUELOCK concode_elem_sep Queue<LoggingE...
String function ( ) { return cacheName ; }
Generate a Java code for the following instruction: generate linearlayout with given title concode_field_sep double textScale concode_elem_sep ArrayList<MyCard> cardsInPlay concode_elem_sep String TAG concode_field_sep void addCard concode_elem_sep GridView makeGV concode_elem_sep CardView getCardView concode_elem_sep ...
LinearLayout function ( Context arg0 , String arg1 , View arg2 , TextView arg3 ) { LinearLayout loc0 = new LinearLayout ( arg0 ) ; loc0 . setOrientation ( LinearLayout . VERTICAL ) ; if ( arg3 == null ) arg3 = new TextView ( arg0 ) ; arg3 . setTextSize ( 10.0f ) ; arg3 . setText ( arg1 ) ; loc0 . addView ( arg3 ) ; loc...
Generate a Java code for the following instruction: returns the next object in the collection . if at the end of the collection , return the first element . concode_field_sep Iterator iterator concode_elem_sep Collection collection concode_field_sep int size concode_elem_sep void reset concode_elem_sep boolean hasNext ...
Object function ( ) { if ( collection . size ( ) == 0 ) { throw new NoSuchElementException ( "srini_string" ) ; } if ( iterator . hasNext ( ) == false ) { reset ( ) ; } return iterator . next ( ) ; }
Generate a Java code for the following instruction: setzt die verwendeten overlayadapter concode_field_sep List<OverlayAdapter> adapters concode_field_sep OverlayAdapter getAdapterAt concode_elem_sep List<OverlayAdapter> getAllAdapters concode_elem_sep Coords getSchematicHostPosition
void function ( List < OverlayAdapter > arg0 ) { this . adapters = arg0 ; }
Generate a Java code for the following instruction: makes sure that the upcomingrelease is initialized concode_field_sep long serialVersionUID concode_elem_sep LinkedHashMap<Integer,ReleaseEntity> releaseMap concode_elem_sep ReleaseMgmtService releaseService concode_elem_sep ResourceDependencyResolverService dependency...
Integer function ( ) { if ( upcomingReleaseId == null ) { this . upcomingReleaseId = dependencyResolverService . findMostRelevantRelease ( new TreeSet < ReleaseEntity > ( getAllReleases ( ) ) , new Date ( ) ) . getId ( ) ; } return upcomingReleaseId ; }
Generate a Java code for the following instruction: in ehcache we default to minimal puts since this should have minimal to no affect on unclustered users , and has great benefit for clustered users . concode_field_sep EhcacheAccessStrategyFactory accessStrategyFactory concode_elem_sep Settings settings concode_elem_se...
boolean function ( ) { return true ; }
Generate a Java code for the following instruction: returns an icon stored in the file at the specified path relative to the specified class concode_field_sep HashMap m_ClassImageMap concode_field_sep void clearImages concode_elem_sep Image getImage concode_elem_sep Image getImage concode_elem_sep Image getImage concod...
ImageIcon function ( Class arg0 , String arg1 ) { return getIcon ( getImage ( arg0 , arg1 ) ) ; }
Generate a Java code for the following instruction: return the current limit of this accountant . concode_field_sep Accountant parent concode_elem_sep AtomicLong allocationLimit concode_elem_sep AtomicLong peakAllocation concode_elem_sep long reservation concode_elem_sep boolean ok concode_elem_sep AtomicLong locallyHe...
long function ( ) { return allocationLimit . get ( ) ; }
Generate a Java code for the following instruction: find a widget , using the given matcher to determine whether a given widget in the hierarchy under the given root is the desired one . concode_field_sep int dbComparisons concode_elem_sep int searchType concode_elem_sep Hierarchy hierarchy concode_elem_sep int BFS con...
Widget function ( Widget arg0 , Matcher arg1 ) { dbComparisons = 0 ; Hierarchy loc0 = arg0 != null ? new SingleWidgetHierarchy ( arg0 ) : getHierarchy ( ) ; return find ( loc0 , arg1 ) ; }
Generate a Java code for the following instruction: returns the document with the buffer contents . whitespace variables are decorated with comments . concode_field_sep boolean fUseCodeFormatter concode_elem_sep String COMMENT_END concode_elem_sep List<TypedPosition> fPositions concode_elem_sep IJavaProject fProject co...
IDocument function ( ) { checkState ( ) ; return fDocument ; }
Generate a Java code for the following instruction: generates a field selection based on a list of fields . assumes that a partial path a.b is equivalent to a.b. concode_field_sep FieldSelection INVALID_NODE concode_elem_sep ValidityMode mode concode_elem_sep Map<String,FieldSelection> childrenInsensitive concode_elem_...
FieldSelection function ( List < SchemaPath > arg0 ) { if ( containsStar ( arg0 ) ) { return ALL_VALID ; } else { FieldSelection loc0 = new FieldSelection ( ) ; for ( SchemaPath loc1 : arg0 ) { loc0 . add ( loc1 . getRootSegment ( ) ) ; } return loc0 . fixNodes ( ) ; } }
Generate a Java code for the following instruction: creates the jdbc template bean that we use to invoke sql queries via jdbc . concode_field_sep String PROPERTY_NAME_DB_USER concode_elem_sep String PROPERTY_NAME_HIBERNATE_FORMAT_SQL concode_elem_sep String PROPERTY_NAME_DB_URL concode_elem_sep String PROPERTY_NAME_HIB...
NamedParameterJdbcTemplate function ( DataSource arg0 ) { return new NamedParameterJdbcTemplate ( arg0 ) ; }
Generate a Java code for the following instruction: adds a list of writable . concode_field_sep Queue<Writable> queue concode_field_sep void add concode_elem_sep boolean containsWritable concode_elem_sep Writable poll
void function ( final List < Writable > arg0 ) { queue . addAll ( arg0 ) ; }
Generate a Java code for the following instruction: implementation used to respond to sasl tokens from server . concode_field_sep Logger LOG concode_elem_sep Subject subject concode_elem_sep String jaas_section concode_elem_sep SaslClient saslClient concode_field_sep byte[] saslResponse concode_elem_sep boolean isCompl...
void function ( Callback [ ] arg0 ) { for ( Callback loc0 : arg0 ) { LOG . info ( "srini_string" , loc0 . getClass ( ) ) ; } }
Generate a Java code for the following instruction: get the current time for use in a preauth response . if allow_unauth_time is true and the library has been configured to allow it , the current time will be offset using unauthenticated timestamp information received from the kdc in the preauth-required error , if one...
KerberosTime function ( ) { return KerberosTime . now ( ) ; }
Generate a Java code for the following instruction: following method is main executor concode_field_sep FileLoggerModule fileLoggerModule concode_elem_sep ConsoleLoggerModule consoleLoggerModule concode_field_sep void unprepare concode_elem_sep void prepare concode_elem_sep void main
void function ( final String ... arg0 ) { fileLoggerModule . printString ( "srini_string" ) ; fileLoggerModule . printErrorString ( "srini_string" ) ; consoleLoggerModule . printString ( "srini_string" ) ; consoleLoggerModule . printErrorString ( "srini_string" ) ; }
Generate a Java code for the following instruction: filters the given set of asset s by removing all vendor assets . concode_field_sep PlaceHolder placeHolder concode_field_sep Set<Asset> filtersByDomPosition concode_elem_sep String extractRequestKeyFromRequest concode_elem_sep String getExtension concode_elem_sep Asse...
Set < Asset > function ( Set < Asset > arg0 ) { Set < Asset > loc0 = new LinkedHashSet < Asset > ( ) ; for ( Asset loc1 : arg0 ) { if ( loc1 . isNotVendor ( ) ) { loc0 . add ( loc1 ) ; } } return loc0 ; }
Generate a Java code for the following instruction: adds new employee concode_field_sep UserTransaction tx concode_elem_sep EntityManager em concode_field_sep void performFailCall concode_elem_sep String failInFirstCall concode_elem_sep Employee createEmployee concode_elem_sep int[] getEmployeeIDsNoEM concode_elem_sep ...
void function ( ) { try { tx . begin ( ) ; em . persist ( createEmployee ( "srini_string" , "srini_string" , 100 ) ) ; tx . commit ( ) ; } catch ( Exception loc0 ) { throw new Exception ( "srini_string" ) ; } }
Generate a Java code for the following instruction: uses a private key to sign data in a cms signeddata structure and returns the encoded cms signeddata as bytes . selected when public key encryption is used . the econtenttype field for the inner type signeddata when unencrypted is id-pkinit-rkeydata 1.3.6.1.5.2.3.3 an...
byte [ ] function ( PrivateKey arg0 , X509Certificate arg1 , ReplyKeyPack arg2 ) { byte [ ] loc0 = KrbCodec . encode ( arg2 ) ; byte [ ] loc1 ; try { loc1 = PkiUtil . getSignedData ( arg0 , arg1 , loc0 , ID_PKINIT_AUTHDATA ) ; } catch ( PkiException loc2 ) { throw new KrbException ( "srini_string" , loc2 ) ; } return l...
Generate a Java code for the following instruction: adds key - > value pair to bson object from specified map concode_field_sep Map<String,Object> data concode_elem_sep String ID_KEY concode_elem_sep List<String> fields concode_field_sep boolean isFieldsOrderImportant concode_elem_sep boolean containsField concode_elem...
void function ( Map < String , Object > arg0 ) { for ( Map . Entry < String , Object > loc0 : arg0 . entrySet ( ) ) { put ( loc0 . getKey ( ) , loc0 . getValue ( ) ) ; } }
Generate a Java code for the following instruction: escape the user-provided extra string for the ext = '' '' header attribute . hawk escapes the header ext = '' '' attribute differently than it does the extra line in the normalized request string . see https://github.com/hueniverse/hawk/blob/871cc597973110900467bd3dfb...
String function ( String arg0 ) { return arg0 . replaceAll ( "srini_string" , "srini_string" ) . replaceAll ( "srini_string" | "srini_string" ) ; }
Generate a Java code for the following instruction: open bracket . concode_field_sep StringBuilder builder concode_field_sep StatementBuilder appendBetweenBracket concode_elem_sep StatementBuilder closeBracket concode_elem_sep StatementBuilder appendWithSeparator concode_elem_sep StatementBuilder appendWord concode_ele...
StatementBuilder function ( ) { this . builder . append ( "srini_string" ) ; return this ; }
Generate a Java code for the following instruction: lazily creates the shared mixer instance and returns it . puts 8 lines into the pool . concode_field_sep int volume concode_elem_sep Vector lines concode_elem_sep int loopCount concode_elem_sep int loopStart concode_elem_sep Thread workerThread concode_elem_sep Mixer ...
Mixer function ( ) { if ( mixer == null ) { mixer = ( Mixer ) AudioSystem . getMixer ( AudioSystem . getMixerInfo ( ) [ 0 ] ) ; SourceDataLine [ ] loc0 = new SourceDataLine [ 16 ] ; for ( int loc1 = 0 ; loc1 < 16 ; loc1 ++ ) { loc0 [ loc1 ] = aquireLine ( ) ; } for ( int loc1 = 0 ; loc1 < 16 ; loc1 ++ ) { poolLine ( lo...
Generate a Java code for the following instruction: determine if the given class implements the given interface . 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_elem_sep ...
boolean function ( Class arg0 , Class arg1 ) { assert arg1 . isInterface ( ) : "srini_string" ; return arg1 . isAssignableFrom ( arg0 ) ; }
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null shortlistiterator . concode_field_sep ShortList EMPTY_SHORT_LIST concode_elem_sep ShortListIterator EMPTY_SHORT_LIST_ITERATOR concode_elem_sep ShortIterator EMPTY_SHORT_ITERATOR concode_field_sep ShortListIterator ...
ShortListIterator function ( ShortListIterator arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableShortListIterator . wrap ( arg0 ) ; }
Generate a Java code for the following instruction: returns a written-back document of object obj as a string . concode_field_sep Element curRootNode concode_field_sep void writeTime concode_elem_sep void writeBack concode_elem_sep void writeBackToXML concode_elem_sep void writeSimpleType concode_elem_sep void writeCom...
String function ( String arg0 , BackToXMLWritable arg1 ) { ByteArrayOutputStream loc0 = new ByteArrayOutputStream ( ) ; OutputStreamWriter loc1 = new OutputStreamWriter ( loc0 ) ; try { writeBack ( loc1 , arg0 , arg1 ) ; } catch ( IOException loc2 ) { throw new IllegalStateException ( loc2 ) ; } return loc0 . toString ...
Generate a Java code for the following instruction: returns the id biginteger concode_field_sep BigInteger bigInt concode_elem_sep TypesConfig config concode_field_sep KademliaOverlayKey toKey concode_elem_sep void checkBounds concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep BigInteger get...
BigInteger function ( ) { return bigInt ; }
Generate a Java code for the following instruction: timing for frame relative to previous frame . concode_field_sep int xPosition concode_elem_sep int CMP_VERTICAL concode_elem_sep int yPosition concode_elem_sep boolean isPlayWrapupFrames concode_elem_sep int MODE_INDEXED_COLORS concode_elem_sep int compression_ concod...
long function ( int arg0 ) { return ( ( SEQFrame ) frames_ . elementAt ( arg0 ) ) . getRelTime ( ) ; }
Generate a Java code for the following instruction: gets integer value form cursor for column index . concode_field_sep PlaceHolder placeHolder concode_field_sep Long getLong concode_elem_sep Character getChar concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bind co...
Integer function ( @ NonNull Cursor arg0 , int arg1 ) { if ( arg0 . isNull ( arg1 ) ) { return null ; } return arg0 . getInt ( arg1 ) ; }
Generate a Java code for the following instruction: returns an stubstrategy for a method , given descriptions of the method parameters , exceptions , and return value . parameter and return value descriptions are `` marshaller abbreviated names '' . concode_field_sep Class<?> clz concode_elem_sep String reposId concode...
StubStrategy function ( String [ ] arg0 , String [ ] arg1 , String [ ] arg2 , String arg3 , ClassLoader arg4 ) { return new StubStrategy ( arg0 , arg1 , arg2 , arg3 , arg4 ) ; }
Generate a Java code for the following instruction: specifies that the parser produced by this code will expand entity reference nodes . by default the value of this is set to true concode_field_sep boolean validating concode_elem_sep boolean namespaceAware concode_elem_sep boolean whitespace concode_elem_sep boolean e...
void function ( boolean arg0 ) { this . expandEntityRef = arg0 ; }
Generate a Java code for the following instruction: creates a new dummy edge to be used in the graph concode_field_sep List clusters concode_elem_sep List set concode_elem_sep EdgeList edgeList concode_elem_sep Cluster currentCluster concode_elem_sep List edgesAdded concode_elem_sep int INITIAL_RECURSION_DEPTH concode_...
Edge function ( Node arg0 , Node arg1 ) { boolean loc0 ; DummyEdgePart loc1 = new DummyEdgePart ( ) ; Edge loc2 = new Edge ( loc1 , arg0 , arg1 ) ; loc2 . weight = 2 ; edgeList . add ( loc2 ) ; arg1 = arg0 ; loc0 = true ; return loc2 ; }
Generate a Java code for the following instruction: return all columns ' 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 column...
ColumnMetaData [ ] function ( ) { ColumnMetaData [ ] loc0 = new ColumnMetaData [ columnCount ] ; for ( int loc1 = 0 ; loc1 < columnCount ; loc1 ++ ) loc0 [ loc1 ] = columns [ loc1 ] . metaData ; return loc0 ; }
Generate a Java code for the following instruction: bigdecimal parse from reader . concode_field_sep java.math.BigDecimal val concode_elem_sep int DEFAULT_PRECISION concode_elem_sep BigDecimal ZERO concode_elem_sep MathContext DEFAULT_CONTEXT concode_elem_sep MathContext context concode_elem_sep BigDecimal ONE concode_...
BigDecimal function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: returns a url pointing to the jar file . concode_field_sep String RESOURCE concode_elem_sep String ERRORMSG concode_field_sep void extractTo concode_elem_sep InputStream getResourceAsStream concode_elem_sep File extractToTempLocation concode_elem_sep void safeClose
URL function ( ) { final URL loc0 = AgentJar . class . getResource ( RESOURCE ) ; if ( loc0 == null ) { throw new AssertionError ( ERRORMSG ) ; } return loc0 ; }
Generate a Java code for the following instruction: calculates the dominance frontier for a cfg and notifies the blocks in it appropriately . concode_field_sep PlaceHolder placeHolder concode_field_sep LinkedList calcFrontier
void function ( final FlowGraph arg0 , boolean arg1 ) { if ( ! arg1 ) { DominanceFrontier . calcFrontier ( arg0 . source ( ) , arg0 , arg1 ) ; } else { DominanceFrontier . calcFrontier ( arg0 . sink ( ) , arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: create a simple dialog with an ` ok ' button and a message . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean verifySampleSetup concode_elem_sep boolean resolveConnectionFailure concode_elem_sep void showActivityResultError concode_elem_sep void sho...
Dialog function ( Activity arg0 , String arg1 ) { return ( new AlertDialog . Builder ( arg0 ) ) . setMessage ( arg1 ) . setNeutralButton ( android . R . string . ok , null ) . create ( ) ; }
Generate a Java code for the following instruction: finds files with mixed line delimiters . concode_field_sep PlaceHolder placeHolder concode_field_sep void assertNoMixedLineDelimiters concode_elem_sep void assertNoMixedLineDelimiters
IResource [ ] function ( final IResource arg0 ) { Assert . fail ( "srini_string" ) ; return new IResource [ 0 ] ; }
Generate a Java code for the following instruction: tests if two types are assign compatible . void types are never compatible . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean canCast concode_elem_sep boolean isArrayCompatible concode_elem_sep boolean isJavaLangObject
boolean function ( ITypeBinding arg0 , ITypeBinding arg1 ) { TypeEnvironment loc0 = new TypeEnvironment ( false , true ) ; TType loc1 = loc0 . create ( arg1 ) ; TType loc2 = loc0 . create ( arg0 ) ; return loc2 . canAssignTo ( loc1 ) ; }
Generate a Java code for the following instruction: implement a hash code for this comparator that is consistent with #equals object equals . concode_field_sep long serialVersionUID concode_elem_sep ComparableComparator instance concode_field_sep int compare concode_elem_sep boolean equals concode_elem_sep ComparableCo...
int function ( ) { return "srini_string" . hashCode ( ) ; }
Generate a Java code for the following instruction: appends a select clause fragment concode_field_sep LockOptions lockOptions concode_elem_sep int guesstimatedBufferSize concode_elem_sep StringBuilder whereClause concode_elem_sep Dialect dialect concode_elem_sep StringBuilder selectClause concode_elem_sep String outer...
void function ( String arg0 ) { if ( this . selectClause . length ( ) > 0 ) { this . selectClause . append ( "srini_string" ) ; this . guesstimatedBufferSize += 2 ; } this . selectClause . append ( arg0 ) ; this . guesstimatedBufferSize += arg0 . length ( ) ; }
Generate a Java code for the following instruction: log an error with warn log level . concode_field_sep Date date concode_elem_sep int LOG_LEVEL_DEBUG concode_elem_sep int level concode_elem_sep Throwable throwable concode_elem_sep List logEntries concode_elem_sep int LOG_LEVEL_OFF concode_elem_sep Object message conc...
void function ( Object arg0 , Throwable arg1 ) { if ( isLevelEnabled ( MemoryLog . LOG_LEVEL_WARN ) ) { log ( MemoryLog . LOG_LEVEL_WARN , arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: de-register the agent again . concode_field_sep String JMX_NAME concode_elem_sep MBeanServer server concode_elem_sep ObjectName name concode_field_sep placeholderType placeHolder
Void function ( ) { server . unregisterMBean ( name ) ; return null ; }
Generate a Java code for the following instruction: should this joinsequence use theta-style joining both a from and where component in the rendered sql ? concode_field_sep StringBuilder conditions concode_elem_sep JoinSequence next concode_elem_sep SessionFactoryImplementor factory concode_elem_sep boolean isFromPart ...
JoinSequence function ( boolean arg0 ) { this . useThetaStyle = arg0 ; return this ; }
Generate a Java code for the following instruction: gets the value of the owner property . concode_field_sep Owner owner concode_elem_sep Locktype locktype concode_elem_sep Lockscope lockscope concode_field_sep Lockscope getLockscope concode_elem_sep void setLockscope concode_elem_sep void setLocktype concode_elem_sep ...
Owner function ( ) { return owner ; }
Generate a Java code for the following instruction: create a widget-relative hover info instance . concode_field_sep PlaceHolder placeHolder concode_field_sep IHoverInfo getAbsolute concode_elem_sep IHoverInfo getAbsolute concode_elem_sep IHoverInfo getRelativeToCenter
IHoverInfo function ( Widget arg0 , int arg1 , int arg2 ) { return new WidgetRelativeHoverInfo ( arg0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: returns the menu that is current being shown . concode_field_sep MenuPopup mMenuPopup concode_elem_sep MenuPanel mMenuPanel concode_elem_sep OnMenuItemLongClickListener mLongClickListener concode_elem_sep GeckoMenu mMenu concode_elem_sep OnDismissListener mDismissList...
Menu function ( ) { return mMenu ; }
Generate a Java code for the following instruction: called when the renderer is stopped . the default implementation is a no-op . concode_field_sep long MATCH_LONGEST_US concode_elem_sep int STATE_UNPREPARED concode_elem_sep long UNKNOWN_TIME_US concode_elem_sep int STATE_PREPARED concode_elem_sep int STATE_ENABLED con...
void function ( ) { }
Generate a Java code for the following instruction: removes the equivalent person from the address book . concode_field_sep UniquePersonList allPersons concode_elem_sep UniqueTagList allTags concode_field_sep boolean containsPerson concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep void clea...
void function ( ReadOnlyPerson arg0 ) { allPersons . remove ( arg0 ) ; }
Generate a Java code for the following instruction: returns the undo change of the change performed by this operation . returns null if the change has n't been performed yet or if the change does n't provide a undo . concode_field_sep Change fChange concode_elem_sep Change fUndoChange concode_elem_sep boolean fChangeEx...
Change function ( ) { return fUndoChange ; }