input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: gets a reader for an imember 's javadoc comment content from the source attachment . the content does contain only the text from the comment without the javadoc leading star characters . returns null if the member does not contain a javadoc comment or if no source is ...
Reader function ( IMember arg0 , boolean arg1 ) { Reader loc0 = internalGetContentReader ( arg0 ) ; if ( loc0 != null || ! ( arg1 && ( arg0 . getElementType ( ) == IJavaElement . METHOD ) ) ) return loc0 ; return findDocInHierarchy ( ( IMethod ) arg0 , false , false ) ; }
Generate a Java code for the following instruction: searches up the parent hierarchy from the given tag for a tag of the given type 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 Boo...
Tag function ( Tag arg0 , Class arg1 ) { while ( arg0 != null ) { if ( arg1 . isInstance ( arg0 ) ) { return arg0 ; } arg0 = arg0 . getParent ( ) ; } return null ; }
Generate a Java code for the following instruction: replication will be tried numberofreplicationtimes before target contact is given up . concode_field_sep int numberOfReplicates concode_elem_sep long timeToLiveForContacts concode_elem_sep int numberOfPingTries concode_elem_sep long timeBetweenRootPings concode_elem_s...
int function ( ) { return numberOfReplicationTries ; }
Generate a Java code for the following instruction: returns the lower bound of a type signature . returns the null type signature if signature is a wildcard or upper bound ? extends t ; returns the signature of the type t of a lower bound ? super t or signature itself if it is not a bound signature . concode_field_sep ...
String function ( String arg0 ) { return String . valueOf ( getLowerBound ( arg0 . toCharArray ( ) ) ) ; }
Generate a Java code for the following instruction: evaluates the predicate returning true if either predicate returns true . concode_field_sep Predicate iPredicate2 concode_elem_sep long serialVersionUID concode_elem_sep Predicate iPredicate1 concode_field_sep Predicate getInstance concode_elem_sep Predicate[] getPred...
boolean function ( Object arg0 ) { return ( iPredicate1 . evaluate ( arg0 ) || iPredicate2 . evaluate ( arg0 ) ) ; }
Generate a Java code for the following instruction: get the matrix for a. concode_field_sep int blocksize concode_elem_sep GenMatrix<C> ZERO concode_elem_sep int DEFAULT_BSIZE concode_elem_sep GenMatrix<C> ONE concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_el...
GenMatrix < C > function ( BigInteger arg0 ) { C loc0 = coFac . fromInteger ( arg0 ) ; return ONE . scalarMultiply ( loc0 ) ; }
Generate a Java code for the following instruction: sets an listener for execution data . concode_field_sep boolean firstBlock concode_elem_sep CompactDataInput in concode_elem_sep ISessionInfoVisitor sessionInfoVisitor concode_elem_sep IExecutionDataVisitor executionDataVisitor concode_field_sep boolean readBlock conc...
void function ( final IExecutionDataVisitor arg0 ) { this . executionDataVisitor = arg0 ; }
Generate a Java code for the following instruction: sets the richmediaactivation dictionary specifying the style of presentation , default script behavior , default view information , and animation style when the annotation is activated . part of the richmediasettings . concode_field_sep PdfDictionary richMediaSettings...
void function ( RichMediaActivation arg0 ) { richMediaSettings . put ( PdfName . ACTIVATION , arg0 ) ; }
Generate a Java code for the following instruction: get a local element from a long value . 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>...
Local < C > function ( long arg0 ) { return new Local < C > ( this , ring . fromInteger ( arg0 ) ) ; }
Generate a Java code for the following instruction: creates a hash using a specific digest algorithm and a provider . concode_field_sep String SHA1 concode_elem_sep HashMap<String,String> digestNames concode_elem_sep HashMap<String,String> allowedDigests concode_elem_sep String SHA384 concode_elem_sep HashMap<String,St...
byte [ ] function ( InputStream arg0 , String arg1 , String arg2 ) { MessageDigest loc0 = getMessageDigest ( arg1 , arg2 ) ; return digest ( arg0 , loc0 ) ; }
Generate a Java code for the following instruction: removes the last returned element from the collection that spawned the underlying iterator . concode_field_sep Iterator iterator concode_field_sep Object next concode_elem_sep Iterator getIterator concode_elem_sep boolean hasNext concode_elem_sep void setIterator
void function ( ) { getIterator ( ) . remove ( ) ; }
Generate a Java code for the following instruction: init the client . concode_field_sep Logger LOG concode_elem_sep KrbSetting krbSetting concode_elem_sep KOptions commonOptions concode_elem_sep InternalKrbClient innerClient concode_elem_sep KrbConfig krbConfig concode_field_sep void setTimeout concode_elem_sep void se...
void function ( ) { innerClient = new DefaultInternalKrbClient ( krbSetting ) ; innerClient . init ( ) ; }
Generate a Java code for the following instruction: common concode_field_sep MacExtensions MacExt concode_field_sep Rectangle win32_getBounds concode_elem_sep Rectangle win32_getBounds concode_elem_sep Rectangle carbon_getBounds concode_elem_sep Rectangle carbon_getBounds concode_elem_sep MenuItem[] getItems concode_el...
Rectangle function ( Object arg0 ) { Rectangle loc0 = new Rectangle ( 0 , 0 , 0 , 0 ) ; try { Method loc1 = arg0 . getClass ( ) . getDeclaredMethod ( "srini_string" , null ) ; loc1 . setAccessible ( true ) ; loc0 = ( Rectangle ) loc1 . invoke ( arg0 , null ) ; } catch ( Throwable loc1 ) { } return loc0 ; }
Generate a Java code for the following instruction: creates two tables . the second table has 1 header row and it should skip the first header . 1 line of table 2 should be on page 1 , the rest on page 2 . concode_field_sep String outFolder concode_elem_sep String cmpFolder concode_field_sep void testKeepRowsTogetherIn...
void function ( ) { final String loc0 = "srini_string" ; createDocument ( loc0 , 2 , 10 , "srini_string" , true , true ) ; }
Generate a Java code for the following instruction: put this widget and its current state into the map concode_field_sep Map _map concode_field_sep IWidgetState get concode_elem_sep WidgetStateMap create
IWidgetState function ( Widget arg0 ) { return put ( arg0 , WidgetState . create ( arg0 ) ) ; }
Generate a Java code for the following instruction: returns the actual string value . concode_field_sep Region fTagPosition concode_elem_sep String TAG_POSTFIX concode_elem_sep AccessorClassReference fAccessorClassReference concode_elem_sep boolean fIsEclipseNLS concode_elem_sep int TAG_PREFIX_LENGTH concode_elem_sep S...
String function ( ) { return fValue ; }
Generate a Java code for the following instruction: has to be called before any event is being processed to check if the next interval has begun . concode_field_sep long end concode_elem_sep String outputFile concode_elem_sep FileAction fileAction concode_elem_sep List<Metric> metrics concode_elem_sep long intervalCoun...
void function ( ) { if ( ! isActive ( ) ) return ; progressIntervals ( Simulator . getCurrentTime ( ) ) ; }
Generate a Java code for the following instruction: get a residue element from a biginteger value . 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...
Residue < C > function ( java . math . BigInteger arg0 ) { return new Residue < C > ( this , ring . fromInteger ( arg0 ) ) ; }
Generate a Java code for the following instruction: clears the mapping between the raname and the resource adapter identifier , with which the resource adapter is registered with the org.jboss.jca.core.spi.rar.resourceadapterrepository subsequent calls to #getregisteredresourceadapteridentifier string with the passed r...
void function ( final String arg0 ) { synchronized ( resourceAdapterRepositoryIdentifiers ) { resourceAdapterRepositoryIdentifiers . remove ( arg0 ) ; } }
Generate a Java code for the following instruction: moves this line by a given amount . concode_field_sep double y1 concode_elem_sep double x1 concode_elem_sep double y2 concode_elem_sep double x2 concode_elem_sep Color color concode_field_sep int getX concode_elem_sep int getHeight concode_elem_sep int getY concode_el...
void function ( double arg0 , double arg1 ) { x1 += arg0 ; y1 += arg1 ; x2 += arg0 ; y2 += arg1 ; Canvas . getInstance ( ) . repaint ( ) ; }
Generate a Java code for the following instruction: rolls the camera concode_field_sep VectorXYZ pos concode_elem_sep VectorXYZ lookAt concode_elem_sep VectorXYZ up concode_field_sep void moveMapRight concode_elem_sep void setCamera concode_elem_sep void setCamera concode_elem_sep void moveForward concode_elem_sep void...
void function ( double arg0 ) { VectorXYZ loc0 = getViewDirection ( ) ; up = up . rotateVec ( arg0 , loc0 ) ; }
Generate a Java code for the following instruction: set the children of the tree concode_field_sep TreeNode right concode_elem_sep int value concode_elem_sep TreeNode left concode_field_sep int addTree concode_elem_sep TreeNode createTree
void function ( TreeNode arg0 , TreeNode arg1 ) { left = arg0 ; right = arg1 ; }
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null doublelistiterator . concode_field_sep DoubleListIterator EMPTY_DOUBLE_LIST_ITERATOR concode_elem_sep DoubleIterator EMPTY_DOUBLE_ITERATOR concode_elem_sep DoubleList EMPTY_DOUBLE_LIST concode_field_sep DoubleList ...
DoubleListIterator function ( DoubleListIterator arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableDoubleListIterator . wrap ( arg0 ) ; }
Generate a Java code for the following instruction: outputs the lines to the document . it is equivalent to go false . concode_field_sep Float curCharSpace concode_elem_sep float leading concode_elem_sep int NO_MORE_COLUMN concode_elem_sep int alignment concode_elem_sep String splittedChunkText concode_elem_sep int NO_...
int function ( ) { return go ( false ) ; }
Generate a Java code for the following instruction: called when the document starts to be parsed . concode_field_sep Stack<String> fieldNames concode_elem_sep HashMap<String,List<String>> listFields concode_elem_sep boolean foundRoot concode_elem_sep HashMap<String,String> fields concode_elem_sep Stack<String> fieldVal...
void function ( ) { fileSpec = "srini_string" ; }
Generate a Java code for the following instruction: copies a slice of the list into a native array . note that this will not pop them out of the stack . concode_field_sep TDoubleArrayList _list concode_elem_sep int DEFAULT_CAPACITY concode_field_sep double pop concode_elem_sep int size concode_elem_sep void clear conco...
void function ( double [ ] arg0 ) { _list . toNativeArray ( arg0 , 0 , size ( ) ) ; }
Generate a Java code for the following instruction: mark a client as hidden . concode_field_sep String selectedClient concode_elem_sep String PREF_COLLAPSED_CLIENT_GUIDS concode_elem_sep SharedPreferences sharedPrefs concode_elem_sep String PREF_HIDDEN_CLIENT_GUIDS concode_elem_sep Set<String> collapsedClients concode_...
boolean function ( String arg0 , boolean arg1 ) { return updateClientMembership ( PREF_HIDDEN_CLIENT_GUIDS , hiddenClients , arg0 , arg1 ) ; }
Generate a Java code for the following instruction: compares two canvid and if all value until the n-1 number are common the return value is true . so it is true , if all parents are common concode_field_sep List<String> VID concode_field_sep boolean inBetween concode_elem_sep List<String> listCommon concode_elem_sep b...
boolean function ( CanVID arg0 ) { if ( VID . size ( ) != arg0 . getVIDList ( ) . size ( ) ) return false ; for ( int loc0 = 0 ; loc0 < VID . size ( ) - 1 ; loc0 ++ ) { if ( ! VID . get ( loc0 ) . toString ( ) . equals ( arg0 . getVIDList ( ) . get ( loc0 ) . toString ( ) ) ) return false ; } return true ; }
Generate a Java code for the following instruction: runs the tests and collects their result in a testresult . concode_field_sep String fName concode_elem_sep Vector fTests concode_field_sep void setName concode_elem_sep int testCount concode_elem_sep void addTestSuite concode_elem_sep String getName concode_elem_sep v...
void function ( TestResult arg0 ) { for ( Enumeration loc0 = tests ( ) ; loc0 . hasMoreElements ( ) ; ) { if ( arg0 . shouldStop ( ) ) break ; Test loc1 = ( Test ) loc0 . nextElement ( ) ; runTest ( loc1 , arg0 ) ; } }
Generate a Java code for the following instruction: retrieves the pnpenabled value . concode_field_sep long signature1 concode_elem_sep int productID concode_elem_sep String manufacturer concode_elem_sep int vendorID concode_elem_sep long version concode_elem_sep long signature2 concode_elem_sep String productDescripti...
boolean function ( ) { return pnpEnabled ; }
Generate a Java code for the following instruction: product of this vector with scalar . 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...
GenVector < C > function ( C arg0 ) { ArrayList < C > loc0 = new ArrayList < C > ( modul . cols ) ; for ( C loc1 : val ) { C loc2 = loc1 . multiply ( arg0 ) ; loc0 . add ( loc2 ) ; } return new GenVector < C > ( modul , loc0 ) ; }
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 , predicate . the values will be set to null . the keys are added in the order of the collection 's iterator . each key of keys is tested individually with keypredicate a...
void function ( final Collection < ? extends K > arg0 , final Predicate < ? super K > arg1 ) { for ( final K loc0 : arg0 ) { put ( loc0 , null , arg1 , null ) ; } }
Generate a Java code for the following instruction: topologische position concode_field_sep long serialVersionUID concode_elem_sep PositionInfo position concode_elem_sep HashSet<Edge<TNode,TEdge>> edges concode_elem_sep VisualGraph<TNode,TEdge> graph concode_field_sep void setGraph concode_elem_sep void setPos concode_...
Coords function ( ) { return this . position . getTopoCoords ( ) ; }
Generate a Java code for the following instruction: get the index that numbers this base string . concode_field_sep Map _seen concode_field_sep StringBuffer getBase concode_elem_sep String generate
int function ( String arg0 ) { Integer loc0 = ( Integer ) _seen . get ( arg0 ) ; if ( loc0 == null ) { loc0 = new Integer ( 0 ) ; } else { loc0 = new Integer ( loc0 . intValue ( ) + 1 ) ; } _seen . put ( arg0 , loc0 ) ; return loc0 . intValue ( ) ; }
Generate a Java code for the following instruction: no-op method - this renderer is n't interested in image events concode_field_sep Vector lastEnd concode_elem_sep StringBuffer result concode_elem_sep Vector lastStart concode_field_sep void appendTextChunk concode_elem_sep void beginTextBlock concode_elem_sep void end...
void function ( ImageRenderInfo arg0 ) { }
Generate a Java code for the following instruction: gets the exception class . concode_field_sep Class clz concode_elem_sep String reposId concode_elem_sep CDRStreamReader[] paramReaders concode_elem_sep java.lang.reflect.Method writeMethod concode_elem_sep CDRStreamWriter retvalWriter concode_elem_sep Method m concode...
Class function ( ) { return clz ; }
Generate a Java code for the following instruction: create a name-already-bound exception . concode_field_sep PlaceHolder placeHolder concode_field_sep Context createSubcontext concode_elem_sep void rebind concode_elem_sep void rebind concode_elem_sep void unbind concode_elem_sep void unbind concode_elem_sep boolean is...
NameAlreadyBoundException function ( final Name arg0 ) { return new NameAlreadyBoundException ( arg0 . toString ( ) ) ; }
Generate a Java code for the following instruction: obtains value of the coreprotocolpnames #http_malformed_input_action parameter . concode_field_sep PlaceHolder placeHolder concode_field_sep ProtocolVersion getVersion concode_elem_sep CodingErrorAction getUnmappableInputAction concode_elem_sep void setUnmappableInput...
CodingErrorAction function ( final HttpParams arg0 ) { Args . notNull ( arg0 , "srini_string" ) ; final Object loc0 = arg0 . getParameter ( CoreProtocolPNames . HTTP_MALFORMED_INPUT_ACTION ) ; if ( loc0 == null ) { return CodingErrorAction . REPORT ; } return ( CodingErrorAction ) loc0 ; }
Generate a Java code for the following instruction: retrieves a message with no arguments . concode_field_sep String RESOURCE_LOCATION concode_elem_sep ResourceBundle rb concode_field_sep placeholderType placeHolder
String function ( String arg0 ) { return rb . getString ( arg0 ) ; }
Generate a Java code for the following instruction: returns the source index of this type variable maplet . concode_field_sep String fSourceName concode_elem_sep int fTargetIndex concode_elem_sep int fSourceIndex concode_elem_sep String fTargetName concode_field_sep String getSourceName concode_elem_sep int getTargetIn...
int function ( ) { return fSourceIndex ; }
Generate a Java code for the following instruction: returns the number of vertices in this polygon . the duplicated first/last vertex is not counted twice , so the result is equivalent to #getvertices . size . concode_field_sep List<VectorXYZ> vertexLoop concode_field_sep PolygonXZ getXZPolygon concode_elem_sep List<Ve...
int function ( ) { return vertexLoop . size ( ) - 1 ; }
Generate a Java code for the following instruction: sets the value of the synclevel property . concode_field_sep String syncToken concode_elem_sep Prop prop concode_elem_sep Limit limit concode_elem_sep String syncLevel concode_field_sep String getSyncToken concode_elem_sep void setSyncToken concode_elem_sep Limit getL...
void function ( String arg0 ) { this . syncLevel = arg0 ; }
Generate a Java code for the following instruction: returns this triangle if it is clockwise , or the reversed triangle if it is counterclockwise . concode_field_sep VectorXZ v1 concode_elem_sep VectorXZ v2 concode_elem_sep VectorXZ v3 concode_field_sep VectorXZ getCenter concode_elem_sep boolean contains concode_elem_...
TriangleXZ function ( ) { return makeRotationSense ( false ) ; }
Generate a Java code for the following instruction: adds or replaces a page label . there is no text prefix and the first logical page has the default of 1 . concode_field_sep int DECIMAL_ARABIC_NUMERALS concode_elem_sep int UPPERCASE_ROMAN_NUMERALS concode_elem_sep int physicalPage concode_elem_sep int LOWERCASE_LETTE...
void function ( int arg0 , int arg1 ) { addPageLabel ( arg0 , arg1 , null , 1 ) ; }
Generate a Java code for the following instruction: check that the user is app_developer or config_admin : app_developer : can edit properties of instances of application config_admin : can edit all properties . concode_field_sep EntityManager entityManager concode_elem_sep PermissionService permissionService concode_e...
boolean function ( Integer arg0 ) { ResourceTypeEntity loc0 = entityManager . find ( ResourceTypeEntity . class , arg0 ) ; return permissionService . hasPermissionToEditPropertiesOfResource ( loc0 ) ; }
Generate a Java code for the following instruction: gives the number of all received messages concode_field_sep long receivedBytes concode_elem_sep int sentMsg concode_elem_sep int receivedMsg concode_elem_sep StatisticGenerationEvent event concode_elem_sep long sentBytes concode_elem_sep Logger log concode_field_sep d...
double [ ] function ( LinkedHashMap < CanOverlayID , CanNode > arg0 ) { double loc0 = receivedMsg * Simulator . MINUTE_UNIT / CanConfig . intervallBetweenStatistics ; double loc1 = loc0 / arg0 . size ( ) ; receivedMsg = 0 ; double [ ] loc2 = { loc0 , loc1 } ; return loc2 ; }
Generate a Java code for the following instruction: set the context attribute key for the attribute . concode_field_sep String fromKey concode_field_sep boolean execute concode_elem_sep String getFromKey
void function ( String arg0 ) { this . fromKey = arg0 ; }
Generate a Java code for the following instruction: get iterator of list elements . concode_field_sep List<ListElement> listElements concode_field_sep List<ListElement> getListElements concode_elem_sep void appendElement concode_elem_sep int getNumberOfListElements
ListElement function ( int arg0 ) { return listElements . get ( arg0 ) ; }
Generate a Java code for the following instruction: returns the name of the described extension . concode_field_sep String fId concode_elem_sep boolean fIsEnabled concode_elem_sep IConfigurationElement fElement concode_elem_sep boolean fNeedsSortingAfterFiltering concode_elem_sep boolean fIsIncluded concode_elem_sep St...
String function ( ) { return fName ; }
Generate a Java code for the following instruction: local multiplication . concode_field_sep Logger logger concode_elem_sep LocalRing<C> ring concode_elem_sep boolean debug concode_elem_sep C num concode_elem_sep int isunit concode_elem_sep C den concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_...
Local < C > function ( Local < C > arg0 ) { if ( arg0 == null || arg0 . isZERO ( ) ) { return arg0 ; } if ( num . isZERO ( ) ) { return this ; } if ( arg0 . isONE ( ) ) { return this ; } if ( this . isONE ( ) ) { return arg0 ; } C loc0 = num . multiply ( arg0 . num ) ; C loc1 = den . multiply ( arg0 . den ) ; return ne...
Generate a Java code for the following instruction: returns an array of sortedmap objects . the sortedmap object key is the columnname and the value is the columnvalue . sortedmap was created using the case_insensitive_order comparator so the key is the case insensitive representation of the columnname . concode_field_...
SortedMap [ ] function ( ) { if ( rowMap == null ) { return null ; } return ( SortedMap [ ] ) rowMap . toArray ( new SortedMap [ 0 ] ) ; }
Generate a Java code for the following instruction: appends a rectangle to the current path as a complete subpath . concode_field_sep List<Subpath> subpaths concode_elem_sep String START_PATH_ERR_MSG concode_elem_sep Point2D currentPoint concode_field_sep Point2D getCurrentPoint concode_elem_sep void curveTo concode_el...
void function ( final float arg0 , final float arg1 , final float arg2 , final float arg3 ) { moveTo ( arg0 , arg1 ) ; lineTo ( arg0 + arg2 , arg1 ) ; lineTo ( arg0 + arg2 , arg1 + arg3 ) ; lineTo ( arg0 , arg1 + arg3 ) ; closeSubpath ( ) ; }
Generate a Java code for the following instruction: cierra el libro y retorna numero paginas para finalizar concode_field_sep String dimensiones concode_elem_sep int numeroPaginas concode_elem_sep String titulo concode_elem_sep String colorPortada concode_elem_sep String autor concode_elem_sep int marcador concode_fiel...
int function ( ) { return this . getNumeroPaginas ( ) - this . getMarcador ( ) ; }
Generate a Java code for the following instruction: compare to biginteger b. concode_field_sep java.math.BigInteger val concode_elem_sep BigInteger ONE concode_elem_sep BigInteger ZERO concode_elem_sep Random random concode_field_sep BigInteger IRAND concode_elem_sep boolean isField concode_elem_sep boolean isCommutati...
int function ( BigInteger arg0 ) { return val . compareTo ( arg0 . val ) ; }
Generate a Java code for the following instruction: given a mouse accelerator , extract the button value . for use in synthesizing raw events . concode_field_sep boolean BUTTONS_REMAPPED concode_elem_sep int SECONDARY_BUTTON concode_elem_sep int BUTTON_MASK concode_elem_sep int PRIMARY_BUTTON concode_field_sep Playback...
int function ( int arg0 ) { arg0 &= BUTTON_MASK ; if ( ( arg0 & SWT . BUTTON1 ) == SWT . BUTTON1 ) return MouseConfig . PRIMARY_BUTTON ; if ( ( arg0 & SWT . BUTTON2 ) == SWT . BUTTON2 ) return 2 ; if ( ( arg0 & SWT . BUTTON3 ) == SWT . BUTTON3 ) return MouseConfig . SECONDARY_BUTTON ; return 0 ; }
Generate a Java code for the following instruction: adds a string parameter to the request concode_field_sep Map<String,Object> mParameters concode_elem_sep String boundary concode_elem_sep OutputStream mOutput concode_elem_sep URLConnection mConnection concode_elem_sep Map<String,String> mCookies concode_elem_sep Rand...
void function ( String arg0 , String arg1 ) { boundary ( ) ; writeName ( arg0 ) ; newline ( ) ; newline ( ) ; writeln ( arg1 ) ; }
Generate a Java code for the following instruction: returns a booleancomparator instance that sorts false values before true values . clients are encouraged to use the value returned from this method instead of constructing a new instance to reduce allocation and garbage collection overhead when multiple booleancompara...
BooleanComparator function ( ) { return FALSE_FIRST ; }
Generate a Java code for the following instruction: trim the collections used in this ppt . concode_field_sep VarInfo[] var_infos concode_elem_sep List<Invariant> emptyInvList concode_elem_sep long serialVersionUID concode_field_sep VarInfo find_var_by_name concode_elem_sep int compare concode_elem_sep String swap conc...
void function ( ) { for ( VarInfo loc0 : var_infos ) { loc0 . trimToSize ( ) ; } }
Generate a Java code for the following instruction: adds part . concode_field_sep String CONFORMANCE concode_elem_sep String PART concode_field_sep void setConformance
void function ( XMPMeta arg0 , String arg1 ) { arg0 . setProperty ( XMPConst . NS_PDFA_ID , PdfAProperties . PART , arg1 ) ; }
Generate a Java code for the following instruction: create a name-not-found exception . concode_field_sep PlaceHolder placeHolder concode_field_sep Context createSubcontext concode_elem_sep void rebind concode_elem_sep void rebind concode_elem_sep void unbind concode_elem_sep void unbind concode_elem_sep boolean isEmpt...
NameNotFoundException function ( final String arg0 , final Name arg1 ) { return NamingLogger . ROOT_LOGGER . nameNotFoundInContext ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: set player color . concode_field_sep Player playerTwo concode_elem_sep int gameType concode_elem_sep Facade theFacade concode_elem_sep Rules theRules concode_elem_sep Player passivePlayer concode_elem_sep boolean isTimerRunning concode_elem_sep Player activePlayer con...
void function ( int arg0 , Color arg1 ) { if ( arg0 == 1 ) { playerOne . setColor ( arg1 ) ; } else { playerTwo . setColor ( arg1 ) ; } }
Generate a Java code for the following instruction: asynchronously executes the specified batch statement . inputs will be passed to the #handler once query succeed or failed . concode_field_sep AsyncResultHandler<T> handler concode_elem_sep AtomicInteger pending concode_elem_sep ExecutorService executorService concode...
SettableFuture < T > function ( final Statement arg0 , final T arg1 ) { return execAsync ( arg0 , arg1 , handler ) ; }
Generate a Java code for the following instruction: debug-ausgabe concode_field_sep Simple2DVisualization vis concode_elem_sep int SHIFT_AMOUNT concode_field_sep void keyPressed concode_elem_sep void keyReleased concode_elem_sep void keyTyped
void function ( Object arg0 ) { }
Generate a Java code for the following instruction: accesses this card 's suit . concode_field_sep int pointValue concode_elem_sep String rank concode_elem_sep String suit concode_field_sep int pointValue concode_elem_sep String rank concode_elem_sep String toString concode_elem_sep boolean matches
String function ( ) { return suit ; }
Generate a Java code for the following instruction: creates a box representing the glue type according to the `` glue rules '' based on the atom types between which the glue must be inserted . concode_field_sep float stretch concode_elem_sep float shrink concode_elem_sep Glue[] glueTypes concode_elem_sep String name co...
Box function ( int arg0 , int arg1 , TeXEnvironment arg2 ) { int loc0 = ( arg0 > TeXConstants . TYPE_INNER ? TeXConstants . TYPE_ORDINARY : arg0 ) ; int loc1 = ( arg1 > TeXConstants . TYPE_INNER ? TeXConstants . TYPE_ORDINARY : arg1 ) ; int loc2 = glueTable [ loc0 ] [ loc1 ] [ arg2 . getStyle ( ) / 2 ] ; return glueTyp...
Generate a Java code for the following instruction: send a #verbose log message . concode_field_sep int WARN concode_elem_sep Boolean sDebugLoggingEnabledForTests concode_elem_sep Pattern DATE_CLEANUP_PATTERN_WRONG_TIMEZONE concode_elem_sep int VERBOSE concode_elem_sep int MAX_ENABLED_LOG_LEVEL concode_elem_sep int ERR...
int function ( String arg0 , String arg1 , Object ... arg2 ) { if ( isLoggable ( arg0 , VERBOSE ) ) { return Log . v ( arg0 , String . arg1 ( arg1 , arg2 ) ) ; } return 0 ; }
Generate a Java code for the following instruction: create an floatlistiterator floatlistiterator wrappingthe specified listiterator listiterator . when the given iterator is null , returns null . concode_field_sep ListIterator _iterator concode_field_sep float next concode_elem_sep void add concode_elem_sep void set c...
FloatListIterator function ( ListIterator arg0 ) { return null == arg0 ? null : new ListIteratorFloatListIterator ( arg0 ) ; }
Generate a Java code for the following instruction: gets the value of the structure property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the stru...
List < ApplicationReleaseBinding > function ( ) { if ( structure == null ) { structure = new ArrayList < ApplicationReleaseBinding > ( ) ; } return this . structure ; }
Generate a Java code for the following instruction: test method for com.flatironschool.javacs.mylinearmap #put java.lang.object , java.lang.object . concode_field_sep Map<String,Integer> map concode_field_sep void testContainsValue concode_elem_sep void testClear concode_elem_sep void testKeySet concode_elem_sep void t...
void function ( ) { map . put ( "srini_string" , 11 ) ; assertThat ( map . size ( ) , is ( 4 ) ) ; assertThat ( map . get ( "srini_string" ) , is ( 11 ) ) ; map . put ( "srini_string" , 5 ) ; assertThat ( map . size ( ) , is ( 5 ) ) ; assertThat ( map . get ( "srini_string" ) , is ( 5 ) ) ; }
Generate a Java code for the following instruction: check whether the log4j logger used is enabled for error priority . concode_field_sep String name concode_elem_sep boolean is12 concode_elem_sep Logger logger concode_elem_sep String FQCN concode_field_sep void warn concode_elem_sep void warn concode_elem_sep void tra...
boolean function ( ) { if ( is12 ) { return getLogger ( ) . isEnabledFor ( ( Priority ) Level . ERROR ) ; } else { return getLogger ( ) . isEnabledFor ( Level . ERROR ) ; } }
Generate a Java code for the following instruction: insert entity without transaction . concode_field_sep Object LOCK concode_elem_sep OpenHelper helper concode_elem_sep Map<Class<?>,AbstractModel<?>> modelMap concode_elem_sep Orm orm concode_field_sep T loadById concode_elem_sep int updateInTx concode_elem_sep int upd...
long function ( @ NonNull Class < T > arg0 , @ NonNull T arg1 ) { AbstractModel < T > loc0 = getModelInstanceOrThrow ( arg0 ) ; return loc0 . insert ( arg1 ) ; }
Generate a Java code for the following instruction: adds a reference to an embedded file . part of the richmediacontent . concode_field_sep PdfDictionary richMediaSettings concode_elem_sep PdfArray configurations concode_elem_sep PdfArray views concode_elem_sep HashMap<String,PdfIndirectReference> assetsmap concode_ele...
PdfIndirectReference function ( String arg0 , PdfIndirectReference arg1 ) { if ( views == null ) throw new IllegalPdfSyntaxException ( "srini_string" ) ; assetsmap . put ( arg0 , arg1 ) ; return arg1 ; }
Generate a Java code for the following instruction: returns current position in output 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_elem_sep byte[] getResul...
int function ( ) { return position ; }
Generate a Java code for the following instruction: access to invoke a method on the class that this fast class handles concode_field_sep Class type concode_elem_sep Class[] EMPTY_CLASS_ARRAY concode_field_sep String getName concode_elem_sep int getIndex concode_elem_sep int getIndex concode_elem_sep int hashCode conco...
Object function ( String arg0 , Class [ ] arg1 , Object arg2 , Object [ ] arg3 ) { return this . invoke ( this . getIndex ( arg0 , arg1 ) , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: returns whether this save helper did actually save any files . 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 SAVE_ALL_ALWA...
boolean function ( ) { return fFilesSaved ; }
Generate a Java code for the following instruction: add an integrator to be applied to the bootstrap registry . concode_field_sep LinkedHashSet<Integrator> providedIntegrators concode_elem_sep List<ClassLoader> providedClassLoaders concode_elem_sep boolean autoCloseRegistry concode_elem_sep ClassLoaderService providedC...
BootstrapServiceRegistryBuilder function ( Integrator arg0 ) { providedIntegrators . add ( arg0 ) ; return this ; }
Generate a Java code for the following instruction: send ws_subscribe command to wsservice to subscribe to topic in websocket . concode_field_sep BroadcastReceiver mBroadcastReceiver concode_elem_sep WsManager sInstance concode_elem_sep long mHeartBeatPeriodInMillis concode_elem_sep String mPort concode_elem_sep boolea...
void function ( Context arg0 , String arg1 ) { arg0 . startService ( new Intent ( arg0 , WsService . class ) . putExtra ( Consts . WsConstant . WS_SUBSCRIBE , arg1 ) ) ; }
Generate a Java code for the following instruction: the nin operator is similar to $ in except that it selects objects for which the specified field does not have any value in the specified array . concode_field_sep List<Criteria> criteriaChain concode_elem_sep ValueNode left concode_elem_sep ValueNode right concode_el...
Criteria function ( Object ... arg0 ) { return nin ( Arrays . asList ( arg0 ) ) ; }
Generate a Java code for the following instruction: if the given object is no array , it 's tostring - method is invoked . primitive type - arrays and object - arrays are introspected using java.lang.reflect.array . convention for creation fo string - representation : concode_field_sep StringUtil instance concode_field...
String function ( final Object arg0 ) { String loc0 = StringUtil . arrayToString ( arg0 , "srini_string" ) ; return loc0 ; }
Generate a Java code for the following instruction: returns the change used by this operation . this is either the change passed to the constructor or the one create by the createchangeoperation . method returns null if the create operation did not create a corresponding change or has n't been executed yet . concode_fi...
Change function ( ) { return fChange ; }
Generate a Java code for the following instruction: currently defaultkeyfactory returns just first element of list . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
String function ( List < Object > arg0 ) { if ( arg0 . size ( ) != 1 ) throw new RuntimeException ( "srini_string" ) ; return ( String ) arg0 . get ( 0 ) ; }
Generate a Java code for the following instruction: return a base64-encoded string value as a byte array . concode_field_sep JSONObject object concode_field_sep JSONArray parseJSONArray concode_elem_sep JSONArray parseJSONArray concode_elem_sep org.json.simple.JSONArray getArray concode_elem_sep void put concode_elem_s...
byte [ ] function ( String arg0 ) { String loc0 = ( String ) this . object . get ( arg0 ) ; if ( loc0 == null ) { return null ; } return Base64 . decodeBase64 ( loc0 ) ; }
Generate a Java code for the following instruction: gets the value of the translation property . concode_field_sep String translation concode_elem_sep Language language concode_field_sep Language getLanguage concode_elem_sep void setTranslation concode_elem_sep void setLanguage
String function ( ) { return translation ; }
Generate a Java code for the following instruction: provides a string representation of this instance suitable for human consumption . concode_field_sep Date date concode_elem_sep Map<String,String> variantMap concode_elem_sep StatusLine statusLine concode_elem_sep HeaderGroup responseHeaders concode_elem_sep Resource ...
String function ( ) { return "srini_string" + this . requestDate + "srini_string" + this . responseDate + "srini_string" + this . statusLine + "srini_string" ; }
Generate a Java code for the following instruction: returns how close randoop is to being done , as a percentage between 0 and 100 . concode_field_sep int sequencesGenerated concode_elem_sep double percentDone concode_elem_sep int errorsRevealed concode_elem_sep long serialVersionUID concode_field_sep int getSequencesG...
double function ( ) { return percentDone ; }
Generate a Java code for the following instruction: moves pos and lookat forward in the map plane concode_field_sep VectorXYZ pos concode_elem_sep VectorXYZ lookAt concode_elem_sep VectorXYZ up concode_field_sep void moveMapRight concode_elem_sep void setCamera concode_elem_sep void setCamera concode_elem_sep void move...
void function ( double arg0 ) { VectorXYZ loc0 = getViewDirection ( ) ; VectorXZ loc1 = new VectorXZ ( loc0 . x , loc0 . z ) . normalize ( ) ; move ( loc1 . x * arg0 , 0 , loc1 . z * arg0 ) ; }
Generate a Java code for the following instruction: create a graph . this is just another method for creating the graph data structure . concode_field_sep Vertex[] nodes concode_elem_sep int CONST_m1 concode_elem_sep int CONST_b concode_elem_sep int RANGE concode_field_sep int random concode_elem_sep int mult concode_e...
void function ( int arg0 ) { nodes = new Vertex [ arg0 ] ; Vertex loc0 = null ; for ( int loc1 = arg0 - 1 ; loc1 >= 0 ; loc1 -- ) { Vertex loc2 = nodes [ loc1 ] = new Vertex ( loc0 , arg0 ) ; loc0 = loc2 ; } addEdges ( arg0 ) ; }
Generate a Java code for the following instruction: convert the abstract location into a concrete area , relative to the given component . if a point has been specified , returns a 1x1 rectangle , otherwise returns the a rectangle at 0 , 0 of the component 's size . concode_field_sep Point where concode_elem_sep String...
Rectangle function ( Component arg0 ) { if ( where == null ) return new Rectangle ( 0 , 0 , arg0 . getWidth ( ) , arg0 . getHeight ( ) ) ; return new Rectangle ( where . x , where . y , 1 , 1 ) ; }
Generate a Java code for the following instruction: returns a boolean indicating if the x ordinate value of the projcoordinate provided as an ordinate is equal to the x ordinate value of this projcoordinate . because we are working with floating point numbers the ordinates are considered equal if the difference between...
boolean function ( ProjCoordinate arg0 , double arg1 ) { double loc0 = arg0 . x - this . x ; if ( loc0 > arg1 ) { return false ; } else { return true ; } }
Generate a Java code for the following instruction: determines if a candidate reflectclass is a collection concode_field_sep GenericArrayReflector _array concode_elem_sep Collection4 _collectionPredicates concode_elem_sep Hashtable4 _classByClass concode_elem_sep ObjectContainerBase _stream concode_elem_sep KnownClasse...
boolean function ( ReflectClass arg0 ) { Iterator4 loc0 = _collectionPredicates . iterator ( ) ; while ( loc0 . moveNext ( ) ) { if ( ( ( ReflectClassPredicate ) loc0 . current ( ) ) . match ( arg0 ) ) { return true ; } } return _delegate . isCollection ( arg0 . getDelegate ( ) ) ; }
Generate a Java code for the following instruction: decrypt the encrypted jwt concode_field_sep List<String> audiences concode_elem_sep Object decryptionKey concode_elem_sep boolean signed concode_elem_sep Object verifyKey concode_field_sep boolean verifyAudiences concode_elem_sep AuthToken decodeFromBytes concode_elem...
void function ( EncryptedJWT arg0 ) { try { JWEDecrypter loc0 = getDecrypter ( ) ; arg0 . decrypt ( loc0 ) ; } catch ( JOSEException | KrbException loc0 ) { throw new IOException ( "srini_string" , loc0 ) ; } }
Generate a Java code for the following instruction: is this instant after the millisecond instant passed in comparing solely by millisecond . concode_field_sep PlaceHolder placeHolder concode_field_sep MutableDateTime toMutableDateTime concode_elem_sep MutableDateTime toMutableDateTime concode_elem_sep MutableDateTime ...
boolean function ( long arg0 ) { return ( getMillis ( ) > arg0 ) ; }
Generate a Java code for the following instruction: set to allow tcp or not . concode_field_sep KdcConfig kdcConfig concode_elem_sep BackendConfig backendConfig concode_elem_sep InternalKdcServer innerKdc concode_elem_sep KOptions startupOptions concode_elem_sep KdcSetting kdcSetting concode_field_sep void init concode...
void function ( boolean arg0 ) { startupOptions . add ( KdcServerOption . ALLOW_TCP , arg0 ) ; }
Generate a Java code for the following instruction: checking if the value of y is larger than variable ground . 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 moveY concode_elem_sep int DOWN...
boolean function ( ) { if ( y > ground - 5 ) { y = ground + 5 ; return true ; } else { return false ; } }
Generate a Java code for the following instruction: initializes resources . this must be called before dashboardresources #getresources . this allows us to avoid an evil static initializer that would pollute all the getresources call sites . concode_field_sep Resources resources concode_field_sep String graphOuterDiv c...
void function ( ) { resources = GWT . create ( Resources . class ) ; StyleInjector . inject ( resources . dashboardCss ( ) . getText ( ) + resources . latencyDashboardChartCss ( ) . getText ( ) + resources . rightPieChartCss ( ) . getText ( ) + resources . warningPaneCss ( ) . getText ( ) ) ; }
Generate a Java code for the following instruction: returns a scheduledexecutorservice that wraps ables before submission to the passed in scheduledexecutorservice . concode_field_sep Field causeField concode_field_sep void handleException concode_elem_sep StackTraceElement[] getStackContext concode_elem_sep Throwable ...
ScheduledExecutorService function ( final ScheduledExecutorService arg0 ) { return new ContextScheduledExecutorService ( arg0 ) ; }
Generate a Java code for the following instruction: attempts to transform the object against the map of numbertransformers . otherwise it returns double.nan . concode_field_sep NumberTransformer defaultTransformer concode_elem_sep Map map concode_elem_sep long serialVersionUID concode_field_sep boolean containsTransfor...
double function ( Object arg0 ) { double loc0 = Double . NaN ; if ( arg0 instanceof Number || arg0 instanceof String ) { loc0 = defaultTransformer . transform ( arg0 ) ; } else { NumberTransformer loc1 = getTransformer ( arg0 . getClass ( ) ) ; if ( loc1 != null ) { loc0 = loc1 . transform ( arg0 ) ; } } return loc0 ; ...
Generate a Java code for the following instruction: returns a transaction id which is based on tid calculated the same all the time . variables which are part of the calculation are inet local host address . xid format is static value 4660 . concode_field_sep byte[] gtrid concode_elem_sep int formatId concode_elem_sep ...
Xid function ( int arg0 ) { int loc0 = 0 ; int loc1 = arg0 ; int loc2 = 42 ; return getXid ( loc0 , loc1 , loc2 ) ; }
Generate a Java code for the following instruction: lock the chain so no more iterators can be added . this must be called from all iterator interface methods . concode_field_sep Iterator lastUsedIterator concode_elem_sep boolean isLocked concode_elem_sep Iterator currentIterator concode_elem_sep List iteratorChain con...
void function ( ) { if ( isLocked == false ) { isLocked = true ; } }
Generate a Java code for the following instruction: adds a return . concode_field_sep List<NativeSQLQueryReturn> queryReturns concode_elem_sep String name concode_field_sep String getName concode_elem_sep NativeSQLQueryReturn[] getQueryReturns concode_elem_sep String traceLoggableFormat
void function ( NativeSQLQueryReturn arg0 ) { queryReturns . add ( arg0 ) ; }