input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: actually walks the bag to make sure the count is correct and resets the running total 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 _s...
int function ( ) { _total = extractList ( ) . size ( ) ; return _total ; }
Generate a Java code for the following instruction: controls whether the compiler should perform statements recovery . to be effective , this method must be called before any of #getroot , #getastrewrite , #getimportremover . this method has no effect if the target object has been created with #compilationunitrewrite i...
void function ( boolean arg0 ) { fStatementsRecovery = arg0 ; }
Generate a Java code for the following instruction: override and return true for database updates that produce changed class metadata concode_field_sep String _db4oVersion concode_elem_sep byte _db4oHeaderVersion concode_field_sep String fileName concode_elem_sep String fileName concode_elem_sep String getTempPath conc...
boolean function ( ) { return false ; }
Generate a Java code for the following instruction: get identity znode . concode_field_sep String ENCRYPTION_KEY_NO_ZNODE_NAME concode_elem_sep String KEY_VERSION_ZNODE_NAME concode_elem_sep String PRINCIPAL_NAME_ZNODE_NAME concode_elem_sep String baseZNode concode_elem_sep String CREATED_TIME_ZNODE_NAME concode_elem_s...
String function ( String arg0 ) { return ZKUtil . joinZNode ( getIdentitiesZNode ( ) , arg0 ) ; }
Generate a Java code for the following instruction: compareto , lexicogaphical comparison . 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> rightScalarProd...
int function ( GenVector < C > arg0 ) { if ( ! modul . equals ( arg0 . modul ) ) { return - 1 ; } List < C > loc0 = arg0 . val ; int loc1 = 0 ; for ( C loc2 : val ) { int loc3 = loc2 . compareTo ( loc0 . get ( loc1 ++ ) ) ; if ( loc3 != 0 ) { return loc3 ; } } return 0 ; }
Generate a Java code for the following instruction: sets the tag position if one is associated with the nls element . 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_...
void function ( int arg0 , int arg1 ) { fTagPosition = new Region ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: convenience method to find a zero of a univariate real function . a default solver is used . concode_field_sep UnivariateRealSolverFactory factory concode_field_sep double[] bracket concode_elem_sep double[] bracket concode_elem_sep double midpoint concode_elem_sep vo...
double function ( UnivariateRealFunction arg0 , double arg1 , double arg2 ) { setup ( arg0 ) ; return factory . newDefaultSolver ( arg0 ) . solve ( arg1 , arg2 ) ; }
Generate a Java code for the following instruction: do we get multiple clicks even when the individual clicks are on different frames ? concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenera...
boolean function ( ) { return Platform . isWindows ( ) || Platform . isOSX ( ) || Platform . JAVA_VERSION < Platform . JAVA_1_3 ; }
Generate a Java code for the following instruction: gets the fractional second precision of the type qualifier of the interval data type descriptor of this field iff interval type . gets the interval type descriptor 's fractional second precision iff interval type . concode_field_sep SqlIntervalQualifier intervalQualif...
Integer function ( ) { return null == intervalQualifier ? null : intervalQualifier . getFractionalSecondPrecisionPreservingDefault ( ) ; }
Generate a Java code for the following instruction: convert drawable to byte array concode_field_sep PlaceHolder placeHolder concode_field_sep Drawable bitmapToDrawable concode_elem_sep void closeInputStream concode_elem_sep Bitmap drawableToBitmap concode_elem_sep Bitmap byteToBitmap concode_elem_sep Bitmap getBitmapF...
byte [ ] function ( Drawable arg0 ) { return bitmapToByte ( drawableToBitmap ( arg0 ) ) ; }
Generate a Java code for the following instruction: resets migration flag . should only be used in tests . concode_field_sep String APP_PREFS_NAME concode_elem_sep String PROFILE_PREFS_NAME_PREFIX concode_elem_sep String[] PROFILE_MIGRATIONS_0_TO_1 concode_elem_sep EnumSet<Flags> disableMigrations concode_elem_sep bool...
void function ( ) { migrationDone = false ; }
Generate a Java code for the following instruction: comment f1z concode_field_sep int I1z concode_elem_sep int I2z concode_elem_sep int I1 concode_elem_sep int I3 concode_elem_sep int I2 concode_elem_sep int I4 concode_field_sep void fz concode_elem_sep void f concode_elem_sep void f11 concode_elem_sep void f1 concode_...
void function ( ) { }
Generate a Java code for the following instruction: creates a dialog to present a refactoringstatus to the user . thefollowing values are returned from the dialogs open method : org.eclipse.jface.dialogs.idialogconstants #ok_id idialogconstants #ok_id : if the user has pressed the continue button . org.eclipse.jface.di...
Dialog function ( RefactoringStatus arg0 , Shell arg1 , String arg2 , boolean arg3 ) { return new RefactoringStatusDialog ( arg0 , arg1 , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: gets the current stroke color concode_field_sep boolean knockout concode_elem_sep LineDashPattern lineDashPattern concode_elem_sep BaseColor fillColor concode_elem_sep float wordSpacing concode_elem_sep float leading concode_elem_sep BaseColor strokeColor concode_elem...
BaseColor function ( ) { return strokeColor ; }
Generate a Java code for the following instruction: test method for org.jboss.security.config.securityconfiguration #getapplicationpolicy java.lang.string . concode_field_sep PlaceHolder placeHolder concode_field_sep void testGetCipherAlgorithm concode_elem_sep void testSetIterationCount concode_elem_sep void testGetKe...
void function ( ) { SecurityConfiguration . getApplicationPolicy ( "srini_string" ) ; }
Generate a Java code for the following instruction: copy method concode_field_sep PlaceHolder placeHolder concode_field_sep void validateMin2 concode_elem_sep void validate concode_elem_sep Predicate[] validate concode_elem_sep void validate concode_elem_sep void validate
Transformer [ ] function ( Transformer [ ] arg0 ) { if ( arg0 == null ) { return null ; } return ( Transformer [ ] ) arg0 . clone ( ) ; }
Generate a Java code for the following instruction: abre el libro y retorna el marcador con la pagina actual 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_fie...
int function ( ) { return this . getMarcador ( ) ; }
Generate a Java code for the following instruction: returns the element surrounding the selection of the given editor . concode_field_sep IJavaElement[] EMPTY_RESULT concode_field_sep IJavaElement selectJavaElement concode_elem_sep IJavaElement[] codeResolve concode_elem_sep IJavaElement[] codeResolve concode_elem_sep ...
IJavaElement function ( JavaEditor arg0 , boolean arg1 ) { ITypeRoot loc0 = getInput ( arg0 , arg1 ) ; if ( loc0 != null ) return getElementAtOffset ( loc0 , ( ITextSelection ) arg0 . getSelectionProvider ( ) . getSelection ( ) ) ; return null ; }
Generate a Java code for the following instruction: coordinates building a loadplan that defines just a single root entity return may have fetches . typically this includes building load plans for entity loading or cascade loading . concode_field_sep PlaceHolder placeHolder concode_field_sep LoadPlan buildRootCollectio...
LoadPlan function ( LoadPlanBuildingAssociationVisitationStrategy arg0 , EntityPersister arg1 ) { MetamodelGraphWalker . visitEntity ( arg0 , arg1 ) ; return arg0 . buildLoadPlan ( ) ; }
Generate a Java code for the following instruction: compute a single body-body or body-cell interaction concode_field_sep MathVector acc0 concode_elem_sep MathVector pos concode_elem_sep double mass concode_elem_sep int IMAX concode_elem_sep MathVector pos0 concode_elem_sep double phi0 concode_elem_sep double EPS conco...
HG function ( HG arg0 ) { MathVector loc0 = new MathVector ( ) ; loc0 . subtraction ( pos , arg0 . pos0 ) ; double loc1 = loc0 . dotProduct ( ) + ( EPS * EPS ) ; double loc2 = Math . sqrt ( loc1 ) ; double loc3 = mass / loc2 ; arg0 . phi0 -= loc3 ; double loc4 = loc3 / loc1 ; loc0 . multScalar ( loc4 ) ; arg0 . acc0 . ...
Generate a Java code for the following instruction: set the name of the catalog to be searched , ornull to search the default catalog . concode_field_sep String name concode_elem_sep String catalogName concode_elem_sep boolean optional concode_elem_sep String nameKey concode_field_sep void setName concode_elem_sep Stri...
void function ( String arg0 ) { this . catalogName = arg0 ; }
Generate a Java code for the following instruction: return an iterator over values in a column . 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_s...
ColumnValues < T > function ( int arg0 ) { return new ColumnValues < T > ( columns [ arg0 ] ) ; }
Generate a Java code for the following instruction: when the login machine terminates , we might not be in the married state , and therefore we ca n't sync . this method messages as much to the user . to avoid stopping us syncing altogether , we set a soft error rather than a hard error . in future , we would like to s...
void function ( State arg0 ) { setSyncResultSoftError ( ) ; latch . offer ( Result . Error ) ; }
Generate a Java code for the following instruction: converts the handle . handle need not exist , but must be a source reference . concode_field_sep IType fOldType concode_elem_sep IType fNewType concode_elem_sep Map<IJavaElement,String> fRefactoredSimilarElements concode_field_sep IMember resolveTypeInMember concode_e...
IMember function ( IMember arg0 ) { final LinkedList < IMember > loc0 = new LinkedList < > ( ) ; addElements ( arg0 , loc0 ) ; final IMember [ ] loc1 = convertElements ( loc0 . toArray ( new IMember [ 0 ] ) ) ; return loc1 [ loc1 . length - 1 ] ; }
Generate a Java code for the following instruction: returns the sampleduration of the track in seconds . concode_field_sep Buffer outputBuffer concode_elem_sep Codec codec concode_elem_sep Buffer inputBuffer concode_elem_sep ArrayList<VideoTrack> tracks concode_elem_sep String nameFormat concode_elem_sep Format videoFo...
Rational function ( int arg0 ) { VideoTrack loc0 = tracks . get ( arg0 ) ; return new Rational ( loc0 . count , 30 ) ; }
Generate a Java code for the following instruction: does a popularity reorder on this document set . concode_field_sep boolean configured concode_elem_sep Distribution reorderIntvlDist concode_elem_sep boolean useRanks concode_elem_sep double zipfExp concode_elem_sep long meanReorderIntvl concode_elem_sep RandomGenerat...
void function ( ) { int loc0 = rand . nextInt ( size ) ; int loc1 = rand . nextInt ( size ) ; log . debug ( "srini_string" + Simulator . getCurrentTime ( ) + "srini_string" + loc0 + "srini_string" + loc1 ) ; keyPopularity . add ( loc1 , keyPopularity . remove ( loc0 ) ) ; getKeyForLookup ( ) ; }
Generate a Java code for the following instruction: gets the child scripts that make up this block . this list is live so that it can be modified if requried concode_field_sep List list concode_field_sep void addScript concode_elem_sep Script compile concode_elem_sep void trimWhitespace concode_elem_sep String toString...
List function ( ) { return list ; }
Generate a Java code for the following instruction: analyzes if the given resource is the best matching for the given release . returns true if so , false otherwise . concode_field_sep ResourceReleaseComparator resourceReleaseComparator concode_field_sep List<ResourceEntity> getAllFutureReleases concode_elem_sep int co...
boolean function ( @ NotNull ResourceEntity arg0 , @ NotNull ReleaseEntity arg1 ) { return arg0 . equals ( getResourceEntityForRelease ( arg0 . getResourceGroup ( ) , arg1 ) ) ; }
Generate a Java code for the following instruction: get the docker rest uri . concode_field_sep String address concode_elem_sep int port concode_elem_sep String host concode_elem_sep String DEFAULT_HOST concode_elem_sep String DEFAULT_UNIX_ENDPOINT concode_elem_sep int DEFAULT_PORT concode_elem_sep URI uri concode_elem...
URI function ( ) { return uri ; }
Generate a Java code for the following instruction: gets the value of the getcontentlanguage 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 getcontentlangu...
Getcontentlanguage function ( ) { return getcontentlanguage ; }
Generate a Java code for the following instruction: indicates whether or not the factory is configured to produce parsers which converts cdata nodes to text nodes and appends it to the adjacent if any text node . concode_field_sep boolean validating concode_elem_sep boolean namespaceAware concode_elem_sep boolean white...
boolean function ( ) { return coalescing ; }
Generate a Java code for the following instruction: gets the number of persistent connections tracked by the connection manager currently being used to execute requests . the total number of connections in the pool is equal to available plus leased . concode_field_sep int leased concode_elem_sep int max concode_elem_se...
int function ( ) { return this . leased ; }
Generate a Java code for the following instruction: log an error to the log4j logger with 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 trace concode_el...
void function ( Object arg0 , Throwable arg1 ) { if ( is12 ) { getLogger ( ) . log ( FQCN , ( Priority ) Level . ERROR , arg0 , arg1 ) ; } else { getLogger ( ) . log ( FQCN , Level . ERROR , arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: returns the first child element of a node that matches the given tag name . concode_field_sep PlaceHolder placeHolder concode_field_sep List<Element> getAllChildElemsMatching
Element function ( Node arg0 , String arg1 ) { NodeList loc0 = arg0 . getChildNodes ( ) ; for ( int loc1 = 0 ; loc1 < loc0 . getLength ( ) ; loc1 ++ ) { Node loc2 = loc0 . item ( loc1 ) ; if ( loc2 . getNodeType ( ) == Node . ELEMENT_NODE && arg1 . equals ( loc2 . getNodeName ( ) ) ) return ( Element ) loc2 ; } return ...
Generate a Java code for the following instruction: gets the value of the fclink property . concode_field_sep String fcLink concode_elem_sep String localPortID concode_elem_sep String displayName concode_elem_sep String fcKey concode_elem_sep ProvidedPortID id concode_elem_sep List<PropertyDeclaration> properties conco...
String function ( ) { return fcLink ; }
Generate a Java code for the following instruction: checks if this pdfobject is of the type pdfdictionary . concode_field_sep int INDIRECT concode_elem_sep int STRING concode_elem_sep int DICTIONARY concode_elem_sep int NULL concode_elem_sep int NUMBER concode_elem_sep int type concode_elem_sep int NAME concode_elem_se...
boolean function ( ) { return ( type == DICTIONARY ) ; }
Generate a Java code for the following instruction: set removed pair number . concode_field_sep boolean useCriterion4 concode_elem_sep ColorPolynomial<C> pi concode_elem_sep int i concode_elem_sep ColorPolynomial<C> pj concode_elem_sep int j concode_elem_sep boolean useCriterion3 concode_elem_sep int n concode_elem_sep...
void function ( int arg0 ) { this . n = arg0 ; }
Generate a Java code for the following instruction: twosided groebner base using pairlist class . concode_field_sep SolvableGroebnerBase<C> sbb concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep List<GenSolvablePolynomial<C>> leftGB concode_elem_sep ModuleList<C> leftGB concode_elem_sep boo...
List < GenSolvablePolynomial < C >> function ( int arg0 , List < GenSolvablePolynomial < C >> arg1 ) { return sbb . twosidedGB ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: controls whether the compiler should provide binding information for the ast nodes it creates . to be effective , this method must be called before any of #getroot , #getastrewrite , #getimportremover . this method has no effect if the target object has been created w...
void function ( boolean arg0 ) { fResolveBindings = arg0 ; }
Generate a Java code for the following instruction: dispatch a keyup 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_e...
void function ( int arg0 ) { int [ ] loc0 = extractKeys ( arg0 ) ; for ( int loc1 = loc0 . length - 1 ; loc1 >= 0 ; -- loc1 ) doKeyUp ( loc0 [ loc1 ] ) ; }
Generate a Java code for the following instruction: local absolute value . 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 ( ) { return new Local < C > ( ring , num . abs ( ) , den , true ) ; }
Generate a Java code for the following instruction: compare two object concode_field_sep PlaceHolder placeHolder concode_field_sep String nullStrToEmpty concode_elem_sep Long[] transformLongArray concode_elem_sep long[] transformLongArray concode_elem_sep int compare concode_elem_sep Integer[] transformIntArray concode...
boolean function ( Object arg0 , Object arg1 ) { return arg0 == arg1 || ( arg0 == null ? arg1 == null : arg0 . equals ( arg1 ) ) ; }
Generate a Java code for the following instruction: sets all probes to false . concode_field_sep String name concode_elem_sep boolean[] probes concode_elem_sep long id concode_field_sep String getName concode_elem_sep void merge concode_elem_sep void merge concode_elem_sep boolean[] getProbes concode_elem_sep long getI...
void function ( ) { Arrays . fill ( probes , false ) ; }
Generate a Java code for the following instruction: create an instance of providedportid concode_field_sep QName _PropertyDeclaration_QNAME concode_elem_sep QName _ProvidedPort_QNAME concode_elem_sep QName _ApplicationPayload_QNAME concode_elem_sep QName _Application_QNAME concode_elem_sep QName _ApplicationID_QNAME co...
ProvidedPortID function ( ) { return new ProvidedPortID ( ) ; }
Generate a Java code for the following instruction: adds the given locator . locators are queried in the sequence they have been added . concode_field_sep int tabWidth concode_elem_sep List<ISourceFileLocator> delegates concode_field_sep int getTabWidth concode_elem_sep Reader getSourceFile
void function ( final ISourceFileLocator arg0 ) { delegates . add ( arg0 ) ; }
Generate a Java code for the following instruction: get a constant univpowerseries from a java.math.biginteger . concode_field_sep UnivPowerSeries<C> ZERO concode_elem_sep String DEFAULT_NAME concode_elem_sep int truncate concode_elem_sep String var concode_elem_sep int DEFAULT_TRUNCATE concode_elem_sep UnivPowerSeries...
UnivPowerSeries < C > function ( java . math . BigInteger arg0 ) { return ONE . multiply ( coFac . fromInteger ( arg0 ) ) ; }
Generate a Java code for the following instruction: brings the passed shell to the top of the drawing order so that it receives keyboard focus . concode_field_sep String copyright concode_field_sep IWorkbenchWindow getWorkbenchWindow concode_elem_sep void bringWorkbenchToFront concode_elem_sep IWorkbench getWorkbench
void function ( final Shell arg0 ) { Robot . syncExec ( arg0 . getDisplay ( ) , null , new Runnable ( ) { public void run ( ) { arg0 . forceActive ( ) ; arg0 . setFocus ( ) ; } } ) ; Robot . waitForIdle ( arg0 . getDisplay ( ) ) ; }
Generate a Java code for the following instruction: creates and adds a new limit . concode_field_sep WildcardMatcher excludesMatcher concode_elem_sep String excludes concode_elem_sep String includes concode_elem_sep WildcardMatcher includesMatcher concode_elem_sep List<Limit> limits concode_elem_sep ElementType element...
Limit function ( ) { final Limit loc0 = new Limit ( ) ; this . limits . add ( loc0 ) ; return loc0 ; }
Generate a Java code for the following instruction: skips the next char . concode_field_sep String str concode_elem_sep int pos concode_field_sep char ch concode_elem_sep char ch concode_elem_sep int pos concode_elem_sep int length concode_elem_sep boolean hasNext concode_elem_sep XMPDateTime parse concode_elem_sep XMP...
void function ( ) { pos ++ ; }
Generate a Java code for the following instruction: main method execution steps : 1 . configure jaxb for the classes in the com.cooksys.serialization.assignment.model package 2 . read a session object from the / input/memphis / directory using the methods defined above 3 . write the session object to the / output/sessi...
void function ( String [ ] arg0 ) { JAXBContext loc0 = JAXBContext . newInstance ( Session . class ) ; writeSession ( readSession ( new File ( "srini_string" ) , loc0 ) , new File ( "srini_string" ) , loc0 ) ; }
Generate a Java code for the following instruction: the `` friendly '' name for this machine 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...
String function ( ) { return name ; }
Generate a Java code for the following instruction: set usecriterion4 . concode_field_sep boolean useCriterion4 concode_elem_sep ColorPolynomial<C> pi concode_elem_sep int i concode_elem_sep ColorPolynomial<C> pj concode_elem_sep int j concode_elem_sep boolean useCriterion3 concode_elem_sep int n concode_elem_sep boole...
void function ( boolean arg0 ) { this . useCriterion4 = arg0 ; }
Generate a Java code for the following instruction: look for fields in the specified class that begin with the specified prefix . concode_field_sep String lineSep concode_elem_sep RootDoc root concode_elem_sep Map<ClassDoc,Set<ClassDoc>> cmap concode_elem_sep boolean dump_class_tree concode_field_sep void gather_derive...
Vector < FieldDoc > function ( ClassDoc arg0 , String arg1 ) { Vector < FieldDoc > loc0 = new Vector < FieldDoc > ( ) ; for ( FieldDoc loc1 : arg0 . fields ( ) ) { if ( loc1 . name ( ) . startsWith ( arg1 ) ) loc0 . add ( loc1 ) ; } return ( loc0 ) ; }
Generate a Java code for the following instruction: the violated property . concode_field_sep String xmlname concode_elem_sep Time onExit concode_elem_sep HashMap<Integer,Violation> violationsMap concode_elem_sep Time onEntry concode_elem_sep Property property concode_elem_sep String name concode_elem_sep long serialVe...
Property function ( ) { return property ; }
Generate a Java code for the following instruction: does a single lookup . added by leo nobach concode_field_sep Node<T> myNode concode_elem_sep PeerStatus peerStatus concode_elem_sep Logger log concode_elem_sep ComponentsConfig config concode_elem_sep boolean lookupEnabled concode_field_sep void enablePeriodicLookup c...
void function ( KademliaOverlayKey arg0 , OperationCallback < DHTObject > arg1 ) { KademliaOperation < DHTObject > loc0 = myNode . getOperationFactory ( ) . getDataLookupOperation ( arg0 , arg1 ) ; loc0 . scheduleImmediately ( ) ; }
Generate a Java code for the following instruction: collects 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 double[] get...
void function ( NetMessage arg0 , NetID arg1 ) { addReceivedMsg ( arg0 ) ; receivedMsg ++ ; }
Generate a Java code for the following instruction: log the specified exception . concode_field_sep boolean sendToConsole concode_field_sep placeholderType placeHolder
void function ( Throwable arg0 ) { if ( Platform . isRunning ( ) ) Logger . log ( arg0 ) ; else { if ( sendToConsole ) arg0 . printStackTrace ( ) ; } }
Generate a Java code for the following instruction: return the items for this channel . concode_field_sep String managingEditor concode_elem_sep String title concode_elem_sep String language concode_elem_sep String link concode_elem_sep ArrayList skipDays concode_elem_sep TextInput textInput concode_elem_sep String rat...
Item [ ] function ( ) { synchronized ( items ) { Item loc0 [ ] = new Item [ this . items . size ( ) ] ; return ( ( Item [ ] ) this . items . toArray ( loc0 ) ) ; } }
Generate a Java code for the following instruction: getter for property ` name ' . concode_field_sep CoreMessageLogger LOG concode_elem_sep boolean containsJoinFetchedCollection concode_elem_sep Fetch bagJoinFetch concode_elem_sep String name concode_elem_sep boolean containsJoinFetchedBag concode_elem_sep Map<String,F...
String function ( ) { return name ; }
Generate a Java code for the following instruction: retrieves and removes the top of the stack . concode_field_sep Charset charset concode_elem_sep TagProcessorFactory tagFactory concode_elem_sep Map<String,Object> memory concode_elem_sep List<Element> ctn concode_elem_sep LinkProvider linkprovider concode_elem_sep boo...
StackKeeper function ( ) { try { return this . queue . removeFirst ( ) ; } catch ( NoSuchElementException loc0 ) { throw new NoStackException ( ) ; } }
Generate a Java code for the following instruction: getzero . concode_field_sep GenVector<C> ZERO concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep int cols concode_elem_sep List<GenVector<C>> BASIS concode_elem_sep Random random concode_elem_sep float ...
GenVector < C > function ( ) { return ZERO ; }
Generate a Java code for the following instruction: set level of section . concode_field_sep List<Section> subsections concode_elem_sep Section parent concode_elem_sep List<Sentence> headerContent concode_elem_sep int level concode_elem_sep List<ListBlock> lists concode_elem_sep List<Paragraph> paragraphs concode_field...
void function ( int arg0 ) { this . level = arg0 ; }
Generate a Java code for the following instruction: this method is invoked at the server before the response is executed , but before the response has been formulated concode_field_sep PlaceHolder placeHolder concode_field_sep void clientStartConnect concode_elem_sep void clientFinishConnect concode_elem_sep void clien...
void function ( RPCContext arg0 ) { }
Generate a Java code for the following instruction: adds a parameter to the request ; if the parameter is a file , the file is uploaded , otherwise the string value of the parameter is passed in the request concode_field_sep Map<String,Object> mParameters concode_elem_sep String boundary concode_elem_sep OutputStream m...
void function ( String arg0 , Object arg1 ) { mParameters . put ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: returns the namespace uris found in the given xml file concode_field_sep SAXParserFactory factory concode_field_sep void setFactory concode_elem_sep XmlNamespaceFinder createNamespaceFinder concode_elem_sep SAXParserFactory getFactory
Set < String > function ( InputSource arg0 ) { XmlNamespaceFinder loc0 = createNamespaceFinder ( ) ; Set < String > loc1 = loc0 . parseContents ( arg0 ) ; if ( factory == null ) { factory = loc0 . getFactory ( ) ; } return loc1 ; }
Generate a Java code for the following instruction: put list of task id to its queue concode_field_sep ReentrantLock takeLock concode_elem_sep LinkedList<List<Integer>> taskIdsQueue concode_elem_sep Condition notEmpty concode_elem_sep LinkedBlockingQueue<BoltMsg> boltMsgQueue concode_field_sep void putBoltMsg concode_e...
void function ( List < Integer > arg0 ) { takeLock . lock ( ) ; try { taskIdsQueue . add ( arg0 ) ; notEmpty . signal ( ) ; } finally { takeLock . unlock ( ) ; } }
Generate a Java code for the following instruction: enable or disable debug mode by default , debug mode is enabled for development builds and disabled for exported apks - see buildconfig.debug concode_field_sep int LOG_GENERAL concode_elem_sep OnLogListener logListener concode_elem_sep int LOG_COMMAND concode_elem_sep...
void function ( boolean arg0 ) { debug = arg0 ; }
Generate a Java code for the following instruction: returns the label of a path . concode_field_sep String CODE_DELIMITERS concode_elem_sep String FILE_PATTERN_DELIMITERS concode_elem_sep String URL_DELIMITERS concode_field_sep String getJavaCodeString concode_elem_sep String getWorkingSetLabel concode_elem_sep String ...
String function ( IPath arg0 , boolean arg1 ) { String loc0 ; if ( arg1 ) { loc0 = arg0 . toOSString ( ) ; } else { loc0 = arg0 . makeRelative ( ) . toString ( ) ; } return Strings . markLTR ( loc0 ) ; }
Generate a Java code for the following instruction: answer the condition monitor concode_field_sep ConditionMonitor INSTANCE concode_field_sep void add concode_elem_sep void add concode_elem_sep void removeAll concode_elem_sep int process concode_elem_sep com.windowtester.runtime.condition.ICondition[] getConditions co...
ConditionMonitor function ( ) { return INSTANCE ; }
Generate a Java code for the following instruction: gets the value of ours concode_field_sep long theirs concode_elem_sep long ours concode_elem_sep String description concode_elem_sep int iterations concode_field_sep int getIterations concode_elem_sep void setIterations concode_elem_sep void setOurs concode_elem_sep l...
long function ( ) { return this . ours ; }
Generate a Java code for the following instruction: characteristic of this ring . 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 co...
java . math . BigInteger function ( ) { return coFac . characteristic ( ) ; }
Generate a Java code for the following instruction: tests that a class available in a jar , which is added as a class-path manifest attribute of a . rar is available for access from within a class in a . war deployment , belonging to the same . ear top level deployment . this tests section 8.3 of java ee6 spec concode_...
void function ( @ ArquillianResource URL arg0 ) { final String loc0 = "srini_string" + arg0 . getHost ( ) + "srini_string" + arg0 . getPort ( ) + "srini_string" + JarClass . class . getName ( ) ; final String loc1 = HttpRequest . get ( loc0 , 2 , TimeUnit . SECONDS ) ; Assert . assertEquals ( Servlet . SUCCESS , loc1 )...
Generate a Java code for the following instruction: inserts all the fonts recognized by itext in the directory into the map . the encoding will be basefont.cp1252 but can be changed later . concode_field_sep HashMap<String,String> aliases concode_elem_sep String fontName concode_elem_sep byte pfb[] concode_elem_sep Has...
int function ( String arg0 ) { File loc0 = new File ( arg0 ) ; if ( ! loc0 . exists ( ) || ! loc0 . isDirectory ( ) ) return 0 ; File loc1 [ ] = loc0 . listFiles ( ) ; if ( loc1 == null ) return 0 ; int loc2 = 0 ; for ( int loc3 = 0 ; loc3 < loc1 . length ; ++ loc3 ) { loc2 += insertFile ( loc1 [ loc3 ] ) ; } return lo...
Generate a Java code for the following instruction: log the specified message and object concode_field_sep ILog sysOutLog concode_elem_sep PrintWriter sysOut concode_elem_sep ILog log concode_elem_sep String PRODUCT_ID concode_field_sep void setLog concode_elem_sep void printLogObject concode_elem_sep void removeLogLis...
void function ( String arg0 , Object arg1 ) { if ( Tracer . isDebugging ( ) ) printLog ( sysOut , arg0 , arg1 ) ; IStatus loc0 = createLogStatus ( arg0 , arg1 , "srini_string" ) ; try { log . log ( loc0 ) ; } catch ( Throwable loc1 ) { } }
Generate a Java code for the following instruction: sets the value of the nresults property . concode_field_sep BigInteger nresults concode_field_sep BigInteger getNresults
void function ( BigInteger arg0 ) { this . nresults = arg0 ; }
Generate a Java code for the following instruction: store an invalid script exception describing the proper script usage . this should be used by derived classes whenever parsing indicates invalid input . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep String copyright concode_e...
void function ( String arg0 ) { String loc0 = getUsage ( ) ; if ( arg0 != null ) { MessageFormat loc1 = new MessageFormat ( Strings . get ( "srini_string" ) ) ; loc0 = loc1 . format ( new Object [ ] { loc0 , arg0 } ) ; } setScriptError ( new InvalidScriptException ( loc0 ) ) ; }
Generate a Java code for the following instruction: test whether the widget in question is showing . concode_field_sep IUIContext ui concode_elem_sep IWidgetLocator locator concode_field_sep placeholderType placeHolder
boolean function ( ) { return ui . findAll ( locator ) . length == 1 ; }
Generate a Java code for the following instruction: returns a unit vector based on an angular direction . for example , angle 0 creates vector 0,1 , angle pi/2 creates vector 1,0 . concode_field_sep VectorXZ NULL_VECTOR concode_elem_sep VectorXZ Z_UNIT concode_elem_sep double x concode_elem_sep VectorXZ X_UNIT concode_...
VectorXZ function ( double arg0 ) { return new VectorXZ ( sin ( arg0 ) , cos ( arg0 ) ) ; }
Generate a Java code for the following instruction: reads 16-bit rgb and converts it to 24-bit rgb . endian is defined by input stream . concode_field_sep byte[] byteBuf concode_field_sep void writeInt24LE concode_elem_sep void readRGBs555to24 concode_elem_sep void readInts24LE concode_elem_sep void writeInts24LE conco...
int function ( ImageInputStream arg0 ) { int loc0 = arg0 . readUnsignedShort ( ) ; return ( ( loc0 & 0xf800 ) << 8 ) | ( ( loc0 & 0x3800 ) << 5 ) | ( ( loc0 & 0x07e0 ) << 5 ) | ( ( loc0 & 0x0060 ) << 3 ) | ( ( loc0 & 0x001f ) << 3 ) | ( ( loc0 & 0x0007 ) ) ; }
Generate a Java code for the following instruction: executes the closure whose matching predicate returns true concode_field_sep Closure[] iClosures concode_elem_sep Predicate[] iPredicates concode_elem_sep long serialVersionUID concode_elem_sep Closure iDefault concode_field_sep Closure getDefaultClosure concode_elem_...
void function ( Object arg0 ) { for ( int loc0 = 0 ; loc0 < iPredicates . length ; loc0 ++ ) { if ( iPredicates [ loc0 ] . evaluate ( arg0 ) == true ) { iClosures [ loc0 ] . execute ( arg0 ) ; return ; } } iDefault . execute ( arg0 ) ; }
Generate a Java code for the following instruction: read the random bytes from an input file and store them into an arraylist . concode_field_sep File inputFile concode_elem_sep ArrayList<Byte> bytes concode_elem_sep File outputImage concode_field_sep BufferedImage getGrayscale concode_elem_sep boolean create
boolean function ( ArrayList < Byte > arg0 ) { try { FileInputStream loc0 = new FileInputStream ( inputFile ) ; byte [ ] loc1 = new byte [ 1 ] ; while ( loc0 . read ( loc1 ) != - 1 ) { arg0 . add ( new Byte ( loc1 [ 0 ] ) ) ; } loc0 . close ( ) ; return true ; } catch ( Exception loc3 ) { loc3 . printStackTrace ( ) ; }...
Generate a Java code for the following instruction: returns the derivative of the polynomial spline function as a univariaterealfunction concode_field_sep int n concode_elem_sep long serialVersionUID concode_elem_sep PolynomialFunction polynomials[] concode_elem_sep double knots[] concode_field_sep double[] getKnots co...
UnivariateRealFunction function ( ) { return polynomialSplineDerivative ( ) ; }
Generate a Java code for the following instruction: always throw an exception . concode_field_sep Closure INSTANCE concode_elem_sep long serialVersionUID concode_field_sep Closure getInstance
void function ( Object arg0 ) { throw new FunctorException ( "srini_string" ) ; }
Generate a Java code for the following instruction: get the type of the rightermost child atom . most atoms have no child atoms , so the `` left type '' and the `` right type '' are the same : the atom 's type . this also is the default implementation . but some atoms are composed of child atoms put one after another i...
int function ( ) { return type ; }
Generate a Java code for the following instruction: getter for property mu . concode_field_sep int DIGEST_MODE concode_elem_sep BufferedReader filePointer concode_elem_sep int CONSTANT_MODE concode_elem_sep int mode concode_elem_sep double mu concode_elem_sep EmpiricalDistribution empiricalDistribution concode_elem_sep...
double function ( ) { return mu ; }
Generate a Java code for the following instruction: create an doublelistiterator doublelistiterator wrappingthe specified listiterator listiterator . when the given iterator is null , returns null . concode_field_sep ListIterator _iterator concode_field_sep double next concode_elem_sep void add concode_elem_sep void se...
DoubleListIterator function ( ListIterator arg0 ) { return null == arg0 ? null : new ListIteratorDoubleListIterator ( arg0 ) ; }
Generate a Java code for the following instruction: remove all countries that are not defined in the set concode_field_sep HashMap<String,String[]> countryLookup concode_elem_sep ArrayList<String> pingErCountry concode_elem_sep ArrayList<String> pingErRegion concode_elem_sep long serialVersionUID concode_elem_sep Logge...
void function ( Set < String > arg0 ) { countryLookup . keySet ( ) . retainAll ( arg0 ) ; }
Generate a Java code for the following instruction: set the parser for a given class . returns the old one , if any . concode_field_sep String copyright concode_elem_sep HashMap parsers concode_field_sep Object[] eval concode_elem_sep Object eval concode_elem_sep Parser getParser concode_elem_sep String replace concode...
Parser function ( Class arg0 , Parser arg1 ) { Parser loc0 = ( Parser ) parsers . get ( arg0 ) ; parsers . put ( arg0 , arg1 ) ; return loc0 ; }
Generate a Java code for the following instruction: return a unmodifiable list that has all elements of the given collection . concode_field_sep PlaceHolder placeHolder concode_field_sep T getNthIteratedElement concode_elem_sep T getNthIteratedElement concode_elem_sep boolean containsIdentical concode_elem_sep List<Str...
List < T > function ( Collection < T > arg0 ) { return Collections . unmodifiableList ( new ArrayList < T > ( arg0 ) ) ; }
Generate a Java code for the following instruction: get kdc tcp port concode_field_sep KdcConfig kdcConfig concode_elem_sep BackendConfig backendConfig concode_elem_sep KOptions startupOptions concode_field_sep int getKdcPort concode_elem_sep String getKdcRealm concode_elem_sep int checkGetKdcTcpPort concode_elem_sep i...
int function ( ) { int loc0 = startupOptions . getIntegerOption ( KdcServerOption . KDC_TCP_PORT ) ; if ( loc0 < 1 ) { loc0 = kdcConfig . getKdcTcpPort ( ) ; } if ( loc0 < 1 ) { loc0 = getKdcPort ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: load a map for the current locale to translate a character into a corresponding virtual keycode-based keystroke . concode_field_sep KeyStrokeMapProvider generator concode_elem_sep Map chars concode_elem_sep boolean loaded concode_elem_sep Map characterMap concode_elem...
Map function ( ) { loadMaps ( ) ; return characterMap ; }
Generate a Java code for the following instruction: cleans str by replacing all characters that are not valid java indentifier parts with '' _ '' . concode_field_sep int dkconfig_compile_timeout concode_elem_sep Logger debug concode_elem_sep FileCompiler fileCompiler concode_elem_sep boolean dkconfig_delete_splitters_o...
String function ( String arg0 ) { char [ ] loc0 = arg0 . toCharArray ( ) ; for ( int loc1 = 0 ; loc1 < loc0 . length ; loc1 ++ ) { char loc2 = loc0 [ loc1 ] ; if ( ! Character . isJavaIdentifierPart ( loc2 ) ) { loc0 [ loc1 ] = '_' ; } } return new String ( loc0 ) ; }
Generate a Java code for the following instruction: modinteger comparison . concode_field_sep java.math.BigInteger val concode_elem_sep ModIntegerRing ring concode_field_sep ModInteger MIREM concode_elem_sep java.math.BigInteger getSymmetricVal concode_elem_sep int MISIGN concode_elem_sep ModInteger gcd concode_elem_se...
int function ( ModInteger arg0 ) { java . math . BigInteger loc0 = arg0 . val ; if ( ring != arg0 . ring ) { loc0 = loc0 . mod ( ring . modul ) ; } return val . compareTo ( loc0 ) ; }
Generate a Java code for the following instruction: unambiguous identification of a account concode_field_sep Pattern bicRegex concode_field_sep PartyIdentification32 createParty concode_elem_sep RemittanceInformation5 createRmtInf_struct concode_elem_sep XMLGregorianCalendar createXMLGregorianCalendarDate concode_elem...
CashAccount16 function ( String arg0 ) { CashAccount16 loc0 = new CashAccount16 ( ) ; AccountIdentification4Choice loc1 = new AccountIdentification4Choice ( ) ; loc1 . setIBAN ( arg0 ) ; loc0 . setId ( loc1 ) ; return loc0 ; }
Generate a Java code for the following instruction: creates an unmarshaller from the sardineutil #jaxb_context . note : the unmarshaller is not thread safe , so it must be created for every request . concode_field_sep JAXBContext JAXB_CONTEXT concode_elem_sep String CUSTOM_NAMESPACE_URI concode_elem_sep String DEFAULT_...
Unmarshaller function ( ) { try { return JAXB_CONTEXT . createUnmarshaller ( ) ; } catch ( JAXBException loc0 ) { throw new RuntimeException ( loc0 . getMessage ( ) , loc0 ) ; } }
Generate a Java code for the following instruction: discards any characters outside of the base64 alphabet see page 25 of rfc 2045 `` any characters outside of the base64 alphabet are to be ignored in base64 encoded data . '' concode_field_sep byte[] decodingTable concode_elem_sep byte[] encodingTable concode_field_sep...
byte [ ] function ( byte [ ] arg0 ) { byte loc0 [ ] = new byte [ arg0 . length ] ; int loc1 = 0 ; for ( int loc2 = 0 ; loc2 < arg0 . length ; loc2 ++ ) { if ( isValidBase64Byte ( arg0 [ loc2 ] ) ) { loc0 [ loc1 ++ ] = arg0 [ loc2 ] ; } } byte loc3 [ ] = new byte [ loc1 ] ; System . arraycopy ( loc0 , 0 , loc3 , 0 , loc...
Generate a Java code for the following instruction: get a message with one parameter as an primitive int . the parameter will replace the string '' 1 '' found in the message . concode_field_sep String BASE_PATH concode_elem_sep HashMap<String,String> currentLanguage concode_elem_sep HashMap<String,String> defaultLangua...
String function ( String arg0 , int arg1 ) { return getComposedMessage ( arg0 , String . valueOf ( arg1 ) , null , null , null ) ; }
Generate a Java code for the following instruction: attach a non-null propertychangelistener to this object . concode_field_sep IPropertyDescriptor[] EMPTY_ARRAY concode_elem_sep PropertyChangeSupport pcsDelegate concode_elem_sep long serialVersionUID concode_field_sep void firePropertyChange concode_elem_sep Object ge...
void function ( PropertyChangeListener arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( ) ; } pcsDelegate . addPropertyChangeListener ( arg0 ) ; }
Generate a Java code for the following instruction: creates a new instance . concode_field_sep ReflectConstructor _constructor concode_elem_sep Object[] _args concode_elem_sep ReflectConstructorSpec UNSPECIFIED_CONSTRUCTOR concode_elem_sep TernaryBool _canBeInstantiated concode_elem_sep ReflectConstructorSpec INVALID_C...
Object function ( ) { if ( _constructor == null ) { return null ; } return _constructor . newInstance ( _args ) ; }
Generate a Java code for the following instruction: interpret a short as its binary form concode_field_sep PlaceHolder placeHolder concode_field_sep long asLong concode_elem_sep int toInt concode_elem_sep String toBinaryString concode_elem_sep String toBinaryString concode_elem_sep String toBinaryString concode_elem_se...
byte [ ] function ( int arg0 ) { byte [ ] loc0 = new byte [ 2 ] ; loc0 [ 0 ] = ( byte ) ( arg0 >> 8 ) ; loc0 [ 1 ] = ( byte ) ( ( arg0 << 8 ) >> 8 ) ; return loc0 ; }