input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: mark a task as done for now , just delete the task . concode_field_sep SimpleDateFormat DATE_FORMAT concode_elem_sep Context context concode_elem_sep TaskService serviceInstance concode_field_sep void bulkDone concode_elem_sep long insert concode_elem_sep int update c...
int function ( Long arg0 ) { return context . getContentResolver ( ) . delete ( UriUtils . buildTaskWithId ( arg0 ) , null , null ) ; }
Generate a Java code for the following instruction: expert : declare a count of items to be written to an array column or a column whose parent is an array . concode_field_sep byte[] MAGIC_1 concode_elem_sep ColumnFileMetaData metaData concode_elem_sep long size concode_elem_sep byte[] MAGIC_0 concode_elem_sep ColumnOu...
void function ( int arg0 , int arg1 ) { columns [ arg1 ] . writeLength ( arg0 ) ; }
Generate a Java code for the following instruction: check if the specified node exists . sets no watches . concode_field_sep char ZNODE_PATH_SEPARATOR concode_elem_sep Logger LOG concode_field_sep void createSetData concode_elem_sep String getParent concode_elem_sep boolean setData concode_elem_sep List<String> listChi...
int function ( ZooKeeper arg0 , String arg1 ) { try { Stat loc0 = arg0 . exists ( arg1 , null ) ; return loc0 != null ? loc0 . getVersion ( ) : - 1 ; } catch ( KeeperException loc0 ) { return - 1 ; } catch ( InterruptedException loc0 ) { Thread . currentThread ( ) . interrupt ( ) ; return - 1 ; } }
Generate a Java code for the following instruction: this method does not return until the display thread is in an `` idle '' state . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
void function ( ) { waitForIdle ( Display . getDefault ( ) ) ; }
Generate a Java code for the following instruction: return system properties , extended by any properties specified in hibernate.properties . concode_field_sep boolean ENABLE_BINARY_STREAMS concode_elem_sep CoreMessageLogger LOG concode_elem_sep Map OBSOLETE_PROPERTIES concode_elem_sep Map<Integer,String> ISOLATION_LEV...
Properties function ( ) { Properties loc0 = new Properties ( ) ; loc0 . putAll ( GLOBAL_PROPERTIES ) ; return loc0 ; }
Generate a Java code for the following instruction: sets the array that the arrayiterator should iterate over . if an array has previously been set using the single-arg constructor or this method then that array is discarded in favour of this one . iteration is restarted at the start of the new array . although this ca...
void function ( final Object arg0 ) { this . endIndex = Array . getLength ( arg0 ) ; this . startIndex = 0 ; this . array = arg0 ; this . index = 0 ; }
Generate a Java code for the following instruction: take a path string elements delimited by the ' \ ' character and break it into tokens . if an element contains the delimeter , it must be escaped . for example : `` edit/find \ \ / replace '' tokenizes to `` edit '' , `` find/replace '' . concode_field_sep List _items...
String [ ] function ( String arg0 ) { if ( arg0 == null ) throw new IllegalArgumentException ( "srini_string" ) ; return new PathTokenizer ( arg0 ) . tokenize ( ) ; }
Generate a Java code for the following instruction: removes a class to transformer mapping in the map . concode_field_sep NumberTransformer defaultTransformer concode_elem_sep Map map concode_elem_sep long serialVersionUID concode_field_sep boolean containsTransformer concode_elem_sep Collection transformers concode_el...
Object function ( Class arg0 ) { return map . remove ( arg0 ) ; }
Generate a Java code for the following instruction: get the one element . 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<C> ONE concode_elem_sep RingFactory<C>...
UnivPowerSeries < C > function ( ) { return ONE ; }
Generate a Java code for the following instruction: access to the intercepted entity name concode_field_sep boolean dirty concode_elem_sep SessionImplementor session concode_elem_sep String entityName concode_elem_sep boolean initializing concode_elem_sep Set uninitializedFields concode_field_sep void dirty concode_ele...
String function ( ) { return entityName ; }
Generate a Java code for the following instruction: returns the programmer defined property of the receiver with the specified name , or null if it has not been set . data mappings allow programmers to associate arbitrary key-value pairs with locator instances . concode_field_sep long serialVersionUID concode_elem_sep ...
String function ( String arg0 ) { if ( arg0 == null ) throw new IllegalArgumentException ( "srini_string" ) ; return getDataMap ( ) . get ( arg0 ) ; }
Generate a Java code for the following instruction: noop is the default behavior , which means that kafka will internally handle partition assignment . if you wish to do manual partition management , you must provide an implementation of this method that will check with kafka for any changes and call the consumerrebala...
void function ( ) { }
Generate a Java code for the following instruction: sets the bounds for this timeline . a timeline must have sensible bounds . left side must be < = right side . concode_field_sep List<TimeLineGraph> graphs concode_elem_sep boolean timerActive concode_elem_sep double rightBound concode_elem_sep boolean isDirty concode_...
void function ( double arg0 , double arg1 ) { assert ( arg0 <= arg1 ) ; this . leftBound = arg0 ; this . rightBound = arg1 ; fireBoundsChangeEvent ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: create a new user interface context . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
IUIContext function ( Display arg0 ) { IUIContext loc0 = createContext ( IUIContext . class , arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: inverse . l is a list . the inverse of l is returned . the list l is modified . 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> LIST1 concode_elem_sep LIST<C> RE...
LIST < C > function ( LIST < C > arg0 ) { if ( isNull ( arg0 ) ) { return arg0 ; } Collections . reverse ( arg0 . list ) ; return arg0 ; }
Generate a Java code for the following instruction: determine if any open editors are `` dirty '' . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean anyUnsavedChanges0
boolean function ( ) { final boolean loc0 [ ] = new boolean [ ] { false } ; Display . getDefault ( ) . syncExec ( new Runnable ( ) { public void run ( ) { loc0 [ 0 ] = anyUnsavedChanges0 ( ) ; } } ) ; return loc0 [ 0 ] ; }
Generate a Java code for the following instruction: default implementation that simply throws a waittimedoutexception . concode_field_sep long timeout concode_elem_sep int interval concode_field_sep boolean isTrue concode_elem_sep void wait concode_elem_sep void wait concode_elem_sep boolean timedOut concode_elem_sep T...
void function ( ICondition arg0 ) { throw new WaitTimedOutException ( Diagnostic . toString ( "srini_string" , arg0 ) ) ; }
Generate a Java code for the following instruction: this method returns the list of sub-coordinators , which is maintained by metricstorage . concode_field_sep HashMap<BigDecimal,MetricsSubCoordinatorInfo> listOfSubCoordinators concode_elem_sep float exponentialSmoothing concode_elem_sep MetricsEntry ownMetrics concode...
HashMap < BigDecimal , MetricsSubCoordinatorInfo > function ( ) { return listOfSubCoordinators ; }
Generate a Java code for the following instruction: singleton retrieval method . concode_field_sep IAnnotationCreator instance concode_elem_sep long serialVersionUID concode_field_sep JComponent createAnnotationView
IAnnotationCreator function ( ) { if ( AnnotationCreatorBubble . instance == null ) { AnnotationCreatorBubble . instance = new AnnotationCreatorBubble ( ) ; } return AnnotationCreatorBubble . instance ; }
Generate a Java code for the following instruction: gets the number of accounts in the bank . concode_field_sep double[] accounts concode_field_sep void transfer concode_elem_sep double getTotalBalance
int function ( ) { return accounts . length ; }
Generate a Java code for the following instruction: list all filles . concode_field_sep ArrayList<String> files concode_elem_sep MusicPlayer player concode_field_sep void listFile concode_elem_sep void removeFile concode_elem_sep int getNumberOfFiles concode_elem_sep void listMatching concode_elem_sep int findFirst con...
void function ( ) { for ( String loc0 : files ) { int loc1 = files . indexOf ( loc0 ) ; System . out . println ( ( loc1 + 1 ) + "srini_string" + files . get ( loc1 ) ) ; } }
Generate a Java code for the following instruction: returns the parent tag for this tag . concode_field_sep Tag parent concode_elem_sep Map<String,String> css concode_elem_sep List<Tag> children concode_elem_sep String ns concode_elem_sep Map<String,String> attributes concode_elem_sep String tag concode_elem_sep Object...
Tag function ( ) { return this . parent ; }
Generate a Java code for the following instruction: returns an environment not linked to a storage instance , butpopulated with current field values . concode_field_sep String LOG_TAG concode_field_sep int getScreenYInMM concode_elem_sep int registerCurrentEnvironment concode_elem_sep String getDistributionString conco...
Environment function ( ProfileInformationProvider arg0 , ConfigurationProvider arg1 ) { Environment loc0 = new Environment ( ) { @ Override public int register ( ) { return 0 ; } } ; populateEnvironment ( loc0 , arg0 , arg1 ) ; return loc0 ; }
Generate a Java code for the following instruction: trigger removal of a resource to an index note : the actual operation is performed in background concode_field_sep int CANCEL_IF_NOT_READY_TO_SEARCH concode_elem_sep SearchEngine fgSearchEngine concode_elem_sep HashMap fIndexes concode_elem_sep HashMap fMap concode_el...
void function ( String arg0 , IPath arg1 ) { IIndex loc0 = getIndex ( arg1 , false ) ; if ( loc0 != null ) loc0 . remove ( arg0 ) ; }
Generate a Java code for the following instruction: set this label as a major tick . concode_field_sep String m_label concode_elem_sep boolean m_isMajorTick concode_elem_sep double m_value concode_field_sep double getValue concode_elem_sep String getLabel concode_elem_sep boolean isMajorTick concode_elem_sep void setVa...
void function ( final boolean arg0 ) { this . m_isMajorTick = arg0 ; }
Generate a Java code for the following instruction: right 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 boolea...
List < GenSolvablePolynomial < C >> function ( int arg0 , List < GenSolvablePolynomial < C >> arg1 ) { if ( arg0 == 0 ) { return sbb . rightGB ( arg0 , arg1 ) ; } throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: get the component interceptor factory map . concode_field_sep BasicComponent component concode_elem_sep Class<?> componentClass concode_elem_sep Map<Method,InterceptorFactory> componentInterceptors concode_elem_sep InterceptorFactory preDestroy concode_elem_sep String...
Map < Method , InterceptorFactory > function ( ) { return componentInterceptors ; }
Generate a Java code for the following instruction: reads the next byte as an unsigned value . concode_field_sep byte[] data concode_elem_sep int limit concode_elem_sep int position concode_field_sep int readUnsignedInt24 concode_elem_sep int readSynchSafeInt concode_elem_sep int readUnsignedIntToInt concode_elem_sep v...
int function ( ) { return ( data [ position ++ ] & 0xFF ) ; }
Generate a Java code for the following instruction: set the started status . concode_field_sep boolean started_ concode_elem_sep String jndiName_ concode_elem_sep Logger LOG concode_elem_sep Element config_ concode_field_sep Element getConfiguration concode_elem_sep void stop concode_elem_sep void unbind concode_elem_s...
void function ( boolean arg0 ) { started_ = arg0 ; }
Generate a Java code for the following instruction: parses the uuid from a pssh atom . the uuid is only parsed if the data is a valid pssh atom . concode_field_sep PlaceHolder placeHolder concode_field_sep byte[] parseSchemeSpecificData concode_elem_sep byte[] buildPsshAtom concode_elem_sep boolean isPsshAtom
UUID function ( byte [ ] arg0 ) { ParsableByteArray loc0 = new ParsableByteArray ( arg0 ) ; if ( ! isPsshAtom ( loc0 , null ) ) { return null ; } loc0 . setPosition ( Atom . FULL_HEADER_SIZE ) ; return new UUID ( loc0 . readLong ( ) , loc0 . readLong ( ) ) ; }
Generate a Java code for the following instruction: write the field to a class file . concode_field_sep ClassInfo classInfo concode_elem_sep int name concode_elem_sep int modifiers concode_elem_sep int type concode_elem_sep Attribute[] attrs concode_elem_sep ConstantValue constantValue concode_field_sep void setConstan...
void function ( final DataOutputStream arg0 ) { arg0 . writeShort ( modifiers ) ; arg0 . writeShort ( name ) ; arg0 . writeShort ( type ) ; arg0 . writeShort ( attrs . length ) ; for ( int loc0 = 0 ; loc0 < attrs . length ; loc0 ++ ) { arg0 . writeShort ( attrs [ loc0 ] . nameIndex ( ) ) ; arg0 . writeInt ( attrs [ loc...
Generate a Java code for the following instruction: returns a random entry from the given collection . uses the prng used by the simulator . returns null if the list is empty . concode_field_sep PlaceHolder placeHolder concode_field_sep void filter concode_elem_sep void copyNSortedAndFiltered concode_elem_sep void filt...
E function ( Collection < E > arg0 ) { if ( arg0 instanceof List ) return getRandomEntry ( ( List < E > ) arg0 ) ; if ( arg0 . size ( ) == 0 ) return null ; int loc0 = Simulator . getRandom ( ) . nextInt ( arg0 . size ( ) ) ; for ( E loc1 : arg0 ) { if ( loc0 <= 0 ) return loc1 ; loc0 -- ; } return null ; }
Generate a Java code for the following instruction: parse product from reader . syntax : p1 ... pn no commas concode_field_sep int nCopies concode_elem_sep RingFactory<C> ring concode_elem_sep List<RingFactory<C>> ringList concode_elem_sep Logger logger concode_elem_sep Random random concode_field_sep void addFactory c...
Product < C > function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: a helper method to create a change that adds an entry to the class path . concode_field_sep PlaceHolder placeHolder concode_field_sep String getAdditionalProposalInfo concode_elem_sep ClasspathFixProposal[] getFixImportProposals concode_elem_sep Change newClasspathCha...
Change function ( IJavaProject arg0 , IClasspathEntry arg1 ) { return ClasspathChange . addEntryChange ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: query if this ring is associative . concode_field_sep GenPolynomialRing<C> ring concode_elem_sep int isField concode_elem_sep GenPolynomial<C> modul concode_field_sep boolean isField concode_elem_sep boolean isCommutative concode_elem_sep AlgebraicNumber<C> interpolat...
boolean function ( ) { return ring . isAssociative ( ) ; }
Generate a Java code for the following instruction: create a condition that tests if the given widget is enabled . concode_field_sep Widget widget concode_field_sep Object getWidget concode_elem_sep IWidgetLocator[] findAll concode_elem_sep boolean matches
IUICondition function ( boolean arg0 ) { return new IsEnabledCondition ( this , arg0 ) ; }
Generate a Java code for the following instruction: get name . concode_field_sep boolean isDefault concode_elem_sep String color concode_elem_sep String name concode_elem_sep int id concode_elem_sep String url concode_field_sep void setName concode_elem_sep String getUrl concode_elem_sep boolean isDefault concode_elem_...
String function ( ) { return name ; }
Generate a Java code for the following instruction: set the directory into which commited class files should be written . concode_field_sep File outputDir concode_elem_sep LinkedList cache concode_elem_sep ClassSource _classSource concode_elem_sep String classpath concode_elem_sep Map openZipFiles concode_elem_sep bool...
void function ( final File arg0 ) { outputDir = arg0 ; }
Generate a Java code for the following instruction: add a section without header content . concode_field_sep Optional<String> fileName concode_elem_sep long serialVersionUID concode_elem_sep boolean built concode_elem_sep Set<PreprocessorRule> preprocessorRules concode_elem_sep List<Section> sections concode_elem_sep R...
DocumentBuilder function ( int arg0 ) { ensureNotBuilt ( ) ; addSection ( arg0 , new ArrayList < > ( ) ) ; return this ; }
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: use a strategy that validates that a schema can be read by existing schema s according to the avro default schema resolution . concode_field_sep SchemaValidationStrategy strategy concode_field_sep void valid concode_elem_sep SchemaValidatorBuilder canReadStrategy conc...
SchemaValidatorBuilder function ( ) { this . strategy = new ValidateCanBeRead ( ) ; return this ; }
Generate a Java code for the following instruction: returns a callable that will retain the stack trace information about where it originated from . concode_field_sep Field causeField concode_field_sep Executor decorate concode_elem_sep ExecutorService decorate concode_elem_sep ScheduledExecutorService decorate concode...
Callable < T > function ( final Callable < T > arg0 ) { return new ContextCallable < T > ( arg0 ) ; }
Generate a Java code for the following instruction: add two durations . concode_field_sep long DURATION_SECONDS_MAX concode_elem_sep long DURATION_SECONDS_MIN concode_elem_sep Duration MAX_VALUE concode_elem_sep Duration MIN_VALUE concode_elem_sep Comparator<Duration> COMPARATOR concode_field_sep int compare concode_el...
Duration function ( Duration arg0 , Duration arg1 ) { checkValid ( arg0 ) ; checkValid ( arg1 ) ; return normalizedDuration ( checkedAdd ( arg0 . getSeconds ( ) , arg1 . getSeconds ( ) ) , checkedAdd ( arg0 . getNanos ( ) , arg1 . getNanos ( ) ) ) ; }
Generate a Java code for the following instruction: default implementation of mouseup simply releases capture . concode_field_sep CaptureReleaser releaser concode_field_sep void handleEvent concode_elem_sep void release concode_elem_sep void setCaptureReleaser concode_elem_sep void onMouseMove concode_elem_sep void onM...
void function ( Event arg0 ) { release ( ) ; }
Generate a Java code for the following instruction: returns the name of the class represented by this classeditor . 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 concode_elem_sep ConstantPoo...
String function ( ) { return ( this . classInfo ( ) . name ( ) ) ; }
Generate a Java code for the following instruction: get default proximity sensor if it exists . tablet devices e.g. nexus 7 does not support this type of sensor and false will be retured in such cases . concode_field_sep String TAG concode_elem_sep SensorManager sensorManager concode_elem_sep RtkUtils.NonThreadSafe non...
boolean function ( ) { if ( proximitySensor != null ) { return true ; } proximitySensor = sensorManager . getDefaultSensor ( Sensor . TYPE_PROXIMITY ) ; if ( proximitySensor == null ) { return false ; } logProximitySensorInfo ( ) ; return true ; }
Generate a Java code for the following instruction: returns the suffixed result-set column-aliases for columns making up the key for this collection i.e. , its fk to its owner . concode_field_sep Map userProvidedAliases concode_elem_sep String[] indexAliases concode_elem_sep String[] keyAliases concode_elem_sep String ...
String [ ] function ( ) { return keyAliases ; }
Generate a Java code for the following instruction: indicate if property is in testing mode 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_s...
ResourceEditPropertyBuilder function ( boolean arg0 ) { this . isTesting = arg0 ; return this ; }
Generate a Java code for the following instruction: factory method to create a typed sorted bag . if there are any elements already in the bag being decorated , they are validated . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
SortedBag function ( SortedBag arg0 , Class arg1 ) { return new PredicatedSortedBag ( arg0 , InstanceofPredicate . getInstance ( arg1 ) ) ; }
Generate a Java code for the following instruction: dump out a value . concode_field_sep PlaceHolder placeHolder concode_field_sep void encode concode_elem_sep byte[] encode concode_elem_sep void decodeAndDump concode_elem_sep void decodeAndDump concode_elem_sep void decodeAndDump concode_elem_sep Asn1ParseResult parse...
void function ( Asn1Type arg0 ) { Asn1Dumper loc0 = new Asn1Dumper ( ) ; loc0 . dumpType ( 0 , arg0 ) ; String loc1 = loc0 . loc1 ( ) ; System . out . println ( loc1 ) ; }
Generate a Java code for the following instruction: test method for org.jboss.security.config.securityconfiguration #getcipherkey . concode_field_sep PlaceHolder placeHolder concode_field_sep void testGetCipherAlgorithm concode_elem_sep void testSetIterationCount concode_elem_sep void testGetKeyStoreURL concode_elem_se...
void function ( ) { SecurityConfiguration . getCipherKey ( ) ; }
Generate a Java code for the following instruction: locking key state is reported incorrectly . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenerationBug concode_elem_sep boolean hasKeyS...
boolean function ( ) { return Platform . isLinux ( ) && Platform . JAVA_VERSION <= 0x1424 ; }
Generate a Java code for the following instruction: get the collection of table tables specified in the tablenames with bulk-load if the underlying storageplugin supports . it is not guaranteed that the retrieved tables would have rowtype and statistic being fully populated . specifically , calling table #getrowtype re...
List < Pair < String , ? extends Table >> function ( final List < String > arg0 ) { return getTablesByNames ( arg0 ) ; }
Generate a Java code for the following instruction: compare the two comparable comparable arguments.this method is equivalent to : comparable obj1 . compareto obj2 concode_field_sep long serialVersionUID concode_elem_sep ComparableComparator instance concode_field_sep int hashCode concode_elem_sep boolean equals concod...
int function ( Object arg0 , Object arg1 ) { return ( ( Comparable ) arg0 ) . compareTo ( arg1 ) ; }
Generate a Java code for the following instruction: export objectid to plain byte array concode_field_sep byte[] data concode_field_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean isValid concode_elem_sep String toString
byte [ ] function ( ) { byte [ ] loc0 = new byte [ 12 ] ; System . arraycopy ( data , 0 , loc0 , 0 , 12 ) ; return loc0 ; }
Generate a Java code for the following instruction: sets the start point of the subpath . concode_field_sep List<Shape> segments concode_elem_sep Point2D startPoint concode_elem_sep boolean closed concode_field_sep Point2D getStartPoint concode_elem_sep boolean isSinglePointOpen concode_elem_sep void addSegment concode...
void function ( float arg0 , float arg1 ) { this . startPoint = new Point2D . Float ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: returns the top symbol from the stack . concode_field_sep Symbol[] stack concode_elem_sep int pos concode_elem_sep ActionHandler symbolHandler concode_field_sep Symbol popSymbol concode_elem_sep int depth concode_elem_sep void processImplicitActions concode_elem_sep v...
Symbol function ( ) { return stack [ pos - 1 ] ; }
Generate a Java code for the following instruction: gets a crl from a certificate concode_field_sep PlaceHolder placeHolder concode_field_sep String getOCSPURL concode_elem_sep String getCRLURL concode_elem_sep String getTSAURL concode_elem_sep String getStringFromGeneralName concode_elem_sep ASN1Primitive getExtension...
CRL function ( X509Certificate arg0 ) { return CertificateUtil . getCRL ( CertificateUtil . getCRLURL ( arg0 ) ) ; }
Generate a Java code for the following instruction: get number . concode_field_sep String LABEL_SUFFIX concode_elem_sep Joiner JOINER concode_elem_sep String ETAG concode_elem_sep String BODY_FORMAT concode_elem_sep String body concode_elem_sep String title concode_elem_sep Pattern BODY_PATTERN concode_elem_sep List<La...
int function ( ) { return number ; }
Generate a Java code for the following instruction: returns the depth of the stack . concode_field_sep Deque<Map<String,Object>> stack concode_elem_sep int INITIAL_MAP_CAPACITY concode_field_sep void init concode_elem_sep Set<java.util.Map.Entry<String,Object>> entrySet concode_elem_sep boolean containsKey concode_elem...
int function ( ) { return stack . size ( ) ; }
Generate a Java code for the following instruction: validates that the tags parent is set when adding it as a child concode_field_sep PlaceHolder placeHolder concode_field_sep void validateChildrenNotNull concode_elem_sep void compareFalse concode_elem_sep void compareFalseTagAndNS concode_elem_sep void validateAttribu...
void function ( ) { Tag loc0 = new Tag ( "srini_string" ) ; Tag loc1 = new Tag ( "srini_string" ) ; loc0 . addChild ( loc1 ) ; Assert . assertEquals ( loc0 , loc1 . getParent ( ) ) ; }
Generate a Java code for the following instruction: compares if the same failures occur concode_field_sep Sequence sequenceToSimplify concode_elem_sep List<Integer> removed_indices concode_elem_sep ExecutableSequence eSeq concode_elem_sep MultiVisitor visitor concode_field_sep List<Integer> compute_indices_in_original_...
boolean function ( List < Check > arg0 , List < Check > arg1 ) { return true ; }
Generate a Java code for the following instruction: returns the singleton instance of this class . this method is useless for now as all methods are static . it may be used in future if vm-global configuration will be put to the state of the instance . # concode_field_sep MathUtil instance concode_field_sep void assert...
MathUtil function ( ) { if ( MathUtil . instance == null ) { MathUtil . instance = new MathUtil ( ) ; } return MathUtil . instance ; }
Generate a Java code for the following instruction: adds common classes to the given archive . concode_field_sep String TESTOBJECTS_CONFIG concode_elem_sep String MED_EXAMPLE_POLICY_SET concode_elem_sep Logger LOGGER concode_elem_sep String SUBST_SUBJECT_ID concode_elem_sep String TESTOBJECTS_REQUESTS concode_elem_sep ...
void function ( final ClassContainer < T > arg0 ) { LOGGER . debug ( "srini_string" ) ; arg0 . addClasses ( JBossPDPServiceBean . class , XACMLTestUtils . class ) ; }
Generate a Java code for the following instruction: calculate the greatest common divisor . concode_field_sep String PROMPT concode_field_sep void main
int function ( int arg0 , int arg1 ) { if ( arg0 < 0 ) { arg0 = - arg0 ; } if ( arg1 < 0 ) { arg1 = - arg1 ; } while ( arg1 != 0 ) { int loc0 = arg0 % arg1 ; arg0 = arg1 ; arg1 = loc0 ; } return arg0 ; }
Generate a Java code for the following instruction: gets the value of the iskeyoptional property . concode_field_sep String validationPattern concode_elem_sep boolean isValueOptional concode_elem_sep boolean encrypted concode_elem_sep String machineInterpretationKey concode_elem_sep String displayName concode_elem_sep ...
boolean function ( ) { return isKeyOptional ; }
Generate a Java code for the following instruction: called when an exception is caught in test execution . concode_field_sep IExecutionMonitor monitor concode_elem_sep String DEFAULT_THREAD_NAME concode_field_sep void runFinishing concode_elem_sep IExecutionMonitor getMonitor concode_elem_sep String getTestThreadName c...
void function ( Throwable arg0 ) { getMonitor ( ) . exceptionCaught ( arg0 ) ; }
Generate a Java code for the following instruction: empty the violations list . concode_field_sep long numNormalPptExits concode_elem_sep long numEvaluations concode_elem_sep List<Throwable> internalInvariantEvaluationErrors concode_elem_sep long numPptEntries concode_elem_sep List<Violation> violations concode_elem_se...
void function ( ) { violations = new ArrayList < Violation > ( ) ; }
Generate a Java code for the following instruction: children should override this . the default implementation does nothing . concode_field_sep IPropertyDescriptor[] EMPTY_ARRAY concode_elem_sep PropertyChangeSupport pcsDelegate concode_elem_sep long serialVersionUID concode_field_sep void firePropertyChange concode_el...
void function ( Object arg0 ) { }
Generate a Java code for the following instruction: create a join sequence rooted at the given collection . concode_field_sep SessionFactoryImplementor sfi concode_elem_sep Map<String,PropertyMapping> collectionPropertyMappingByRole concode_field_sep QueryableCollection getCollectionPersister concode_elem_sep Type getE...
JoinSequence function ( QueryableCollection arg0 , String arg1 ) { JoinSequence loc0 = createJoinSequence ( ) ; loc0 . setRoot ( arg0 , arg1 ) ; loc0 . setUseThetaStyle ( true ) ; return loc0 ; }
Generate a Java code for the following instruction: locate a hibernate @linkplain basictype basic type given one of its registration names . concode_field_sep TypeFactory typeFactory concode_elem_sep BasicTypeRegistry basicTypeRegistry concode_field_sep void registerTypeOverride concode_elem_sep void registerTypeOverri...
BasicType function ( String arg0 ) { return basicTypeRegistry . getRegisteredType ( arg0 ) ; }
Generate a Java code for the following instruction: start synchronizing , calling delegate 's callback methods . concode_field_sep SynchronizerDelegate synchronizerDelegate concode_elem_sep String configSyncID concode_elem_sep Repository repositoryA concode_elem_sep RepositorySessionBundle bundleB concode_elem_sep Stri...
void function ( Context arg0 , SynchronizerDelegate arg1 ) { this . synchronizerDelegate = arg1 ; this . session = newSynchronizerSession ( ) ; this . session . init ( arg0 , bundleA , bundleB ) ; }
Generate a Java code for the following instruction: create a path string that identifies this tree item with respect to its parent 's e.g. `` java/project '' concode_field_sep TreeItemSelector _selector concode_elem_sep TreeItemTester _treeItemTester concode_elem_sep TreeTester _treeTester concode_field_sep Widget reve...
String function ( TreeItem arg0 ) { String loc0 = TextUtils . escapeSlashes ( arg0 . getText ( ) ) ; for ( TreeItem loc1 = arg0 . getParentItem ( ) ; loc1 != null ; loc1 = loc1 . getParentItem ( ) ) { loc0 = loc1 . getText ( ) + '/' + loc0 ; } return loc0 ; }
Generate a Java code for the following instruction: removes the value at the top of this stack and returns it . concode_field_sep ArrayFloatList list concode_field_sep int search concode_elem_sep int size concode_elem_sep float get concode_elem_sep void clear concode_elem_sep float push concode_elem_sep boolean empty c...
float function ( ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . removeElementAt ( list . size ( ) - 1 ) ; }
Generate a Java code for the following instruction: length returns the length of this list . concode_field_sep SListNode head concode_elem_sep int size concode_elem_sep SListNode tail concode_field_sep Object nth concode_elem_sep void testAfterInsertEnd concode_elem_sep void testAfterInsertFront concode_elem_sep void i...
int function ( ) { return size ; }
Generate a Java code for the following instruction: creates a closure that will invoke a specific method on the closure 's input object by reflection . concode_field_sep PlaceHolder placeHolder concode_field_sep Closure nopClosure concode_elem_sep Closure switchClosure concode_elem_sep Closure switchClosure concode_ele...
Closure function ( String arg0 , Class [ ] arg1 , Object [ ] arg2 ) { return asClosure ( InvokerTransformer . getInstance ( arg0 , arg1 , arg2 ) ) ; }
Generate a Java code for the following instruction: gets the field type at the specified index . concode_field_sep PlaceHolder placeHolder concode_field_sep int size concode_elem_sep int[] getValues concode_elem_sep int hashCode concode_elem_sep int get concode_elem_sep boolean equals concode_elem_sep Period toPeriod c...
DurationFieldType function ( int arg0 ) { return getPeriodType ( ) . getFieldType ( arg0 ) ; }
Generate a Java code for the following instruction: getter for the cell width concode_field_sep boolean percentage concode_elem_sep float width concode_elem_sep PdfPCell cell concode_field_sep boolean add concode_elem_sep boolean process concode_elem_sep PdfPCell getCell concode_elem_sep boolean isContent concode_elem_...
float function ( ) { return width ; }
Generate a Java code for the following instruction: sets the current attribute value and adds the attribute if it 's not null to the attribute map . concode_field_sep StringBuilder currentEntity concode_elem_sep StringBuilder comment concode_elem_sep String currentTag concode_elem_sep boolean isHtml concode_elem_sep St...
void function ( final String arg0 ) { if ( null != this . currentAttr ) { if ( isHtml ) { attr . put ( this . currentAttr . toLowerCase ( ) , arg0 ) ; } else { attr . put ( this . currentAttr , arg0 ) ; } this . currentAttr = null ; } }
Generate a Java code for the following instruction: create an iterator iterator wrappingthe specified floatiterator floatiterator . when the given iterator is null , returns null . concode_field_sep FloatIterator _iterator concode_field_sep Object next concode_elem_sep boolean hasNext concode_elem_sep void remove
Iterator function ( FloatIterator arg0 ) { return null == arg0 ? null : new FloatIteratorIterator ( arg0 ) ; }
Generate a Java code for the following instruction: returns the basic block in which this node resides . concode_field_sep Node parent concode_elem_sep int valueNumber concode_elem_sep int key concode_field_sep Node parent concode_elem_sep int valueNumber concode_elem_sep Node copyInto concode_elem_sep void setValueNum...
Block function ( ) { Node loc0 = this ; while ( loc0 != null ) { if ( loc0 instanceof Tree ) { return ( ( Tree ) loc0 ) . block ( ) ; } loc0 = loc0 . parent ; } throw new RuntimeException ( this + "srini_string" ) ; }
Generate a Java code for the following instruction: verifies if the class of the elements returned by orderedunorderedlistitem #end is a listitem . concode_field_sep List<Element> currentContent concode_elem_sep OrderedUnorderedListItem li concode_elem_sep WorkerContextImpl workerContextImpl concode_field_sep void init...
void function ( ) { final List < Element > loc0 = li . end ( workerContextImpl , new Tag ( "srini_string" ) , currentContent ) ; Assert . assertTrue ( loc0 . get ( 0 ) instanceof ListItem ) ; }
Generate a Java code for the following instruction: prior to 1.4.1 , hierarchy events are only sent if listeners are added to a given component . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasKeyStrokeG...
boolean function ( ) { return Platform . JAVA_VERSION < Platform . JAVA_1_4 ; }
Generate a Java code for the following instruction: returns a string represntation of this stack . concode_field_sep ArrayList stack concode_elem_sep int height concode_field_sep Expr pop concode_elem_sep void set concode_elem_sep Expr pop1 concode_elem_sep int size concode_elem_sep Expr[] pop2 concode_elem_sep Expr ge...
String function ( ) { return stack . toString ( ) ; }
Generate a Java code for the following instruction: the default action executed from the visit methods . this returns the default value provided at the construction time . concode_field_sep R defaultValue concode_field_sep R visitMetricType concode_elem_sep R visitMetricType concode_elem_sep R visitRelationship concode...
R function ( ) { return defaultValue ; }
Generate a Java code for the following instruction: checks if two subsequent characters in a string are are the higher and the lower character in a surrogate pair and therefore eligible for conversion to a utf 32 character . concode_field_sep PlaceHolder placeHolder concode_field_sep String unEscapeURL concode_elem_sep...
boolean function ( final String arg0 , final int arg1 ) { if ( arg1 < 0 || arg1 > arg0 . length ( ) - 2 ) return false ; return isSurrogateHigh ( arg0 . charAt ( arg1 ) ) && isSurrogateLow ( arg0 . charAt ( arg1 + 1 ) ) ; }
Generate a Java code for the following instruction: writes the text to the given file , overwriting the previous file if it existed . concode_field_sep Logger LOG concode_elem_sep int BUFFER_SIZE concode_field_sep String readFully concode_elem_sep String readFully concode_elem_sep int copy concode_elem_sep int copy con...
void function ( File arg0 , String arg1 ) { write ( arg0 , arg1 , false ) ; }
Generate a Java code for the following instruction: returns the `` caller block '' for a given `` return block '' . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_sep ArrayList paths concode_elem_sep FlowGraph graph concode_elem_sep LocalVariable returnAddress concode_field_sep void setReturnAdd...
Block function ( final Block arg0 ) { for ( int loc0 = 0 ; loc0 < paths . size ( ) ; loc0 ++ ) { final Block [ ] loc1 = ( Block [ ] ) paths . get ( loc0 ) ; if ( loc1 [ 1 ] == arg0 ) { return loc1 [ 0 ] ; } } return null ; }
Generate a Java code for the following instruction: comparison with any other object . 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 conc...
boolean function ( Object arg0 ) { if ( ! ( arg0 instanceof BigDecimal ) ) { return false ; } BigDecimal loc0 = ( BigDecimal ) arg0 ; return val . equals ( loc0 . val ) ; }
Generate a Java code for the following instruction: computes the bounding rectangle for this line segment . the rectangle has a rotation 0 degrees with respect to the coordinate system that the line system is in . for example , if a line segment is 5 unit long and sits at a 37 degree angle from horizontal , the boundin...
Rectangle2D . Float function ( ) { float loc0 = getStartPoint ( ) . get ( Vector . I1 ) ; float loc1 = getStartPoint ( ) . get ( Vector . I2 ) ; float loc2 = getEndPoint ( ) . get ( Vector . I1 ) ; float loc3 = getEndPoint ( ) . get ( Vector . I2 ) ; return new Rectangle2D . Float ( Math . min ( loc0 , loc2 ) , Math . ...
Generate a Java code for the following instruction: returns true , if the timespan of the interpolator has elapsed since initialize was called . concode_field_sep float endValue concode_elem_sep long startTime concode_elem_sep float startValue concode_elem_sep long timespan concode_elem_sep boolean isFinished concode_f...
boolean function ( long arg0 ) { return timespan <= arg0 - startTime ; }
Generate a Java code for the following instruction: gets the value of the properties 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 pro...
List < PropertyDeclaration > function ( ) { if ( properties == null ) { properties = new ArrayList < PropertyDeclaration > ( ) ; } return this . properties ; }
Generate a Java code for the following instruction: create an intlistiterator intlistiterator wrappingthe specified listiterator listiterator . when the given iterator is null , returns null . concode_field_sep ListIterator _iterator concode_field_sep int next concode_elem_sep void add concode_elem_sep void set concode...
IntListIterator function ( ListIterator arg0 ) { return null == arg0 ? null : new ListIteratorIntListIterator ( arg0 ) ; }
Generate a Java code for the following instruction: create an bytelistiterator bytelistiterator wrappingthe specified listiterator listiterator . when the given iterator is null , returns null . concode_field_sep ListIterator _iterator concode_field_sep byte next concode_elem_sep void add concode_elem_sep void set conc...
ByteListIterator function ( ListIterator arg0 ) { return null == arg0 ? null : new ListIteratorByteListIterator ( arg0 ) ; }
Generate a Java code for the following instruction: returns true if any child iterator has remaining elements . concode_field_sep int lastReturned concode_elem_sep Comparator comparator concode_elem_sep ArrayList values concode_elem_sep BitSet valueSet concode_elem_sep ArrayList iterators concode_field_sep Object next ...
boolean function ( ) { start ( ) ; return anyValueSet ( valueSet ) || anyHasNext ( iterators ) ; }
Generate a Java code for the following instruction: returns the result of rotating this vector around a freely chosen axis and origin concode_field_sep VectorXYZ NULL_VECTOR concode_elem_sep double x concode_elem_sep double y concode_elem_sep VectorXYZ X_UNIT concode_elem_sep double z concode_elem_sep VectorXYZ Z_UNIT ...
VectorXYZ function ( double arg0 , VectorXYZ arg1 , VectorXYZ arg2 ) { VectorXYZ loc0 = this . subtract ( arg1 ) ; loc0 = loc0 . rotateVec ( arg0 , arg2 ) ; loc0 = loc0 . add ( arg1 ) ; return loc0 ; }
Generate a Java code for the following instruction: starts the clock . does nothing if the clock is already started . concode_field_sep long deltaUs concode_elem_sep long positionUs concode_elem_sep boolean started concode_field_sep long elapsedRealtimeMinus concode_elem_sep void stop concode_elem_sep long getPositionU...
void function ( ) { if ( ! started ) { started = true ; deltaUs = elapsedRealtimeMinus ( positionUs ) ; } }
Generate a Java code for the following instruction: return the relevant classloader to use as a map key for this request . if there is a thread context class loader , return that ; otherwise , return the class loader that loaded this class . concode_field_sep Log log concode_elem_sep String DELIMITER concode_elem_sep M...
ClassLoader function ( ) { ClassLoader loc0 = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( loc0 == null ) { loc0 = CatalogFactory . class . getClassLoader ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: sets the bookmarks . the list structure is defined in simplebookmark # . concode_field_sep PdfCopyFieldsImp fc concode_field_sep void setViewerPreferences concode_elem_sep void addJavaScript concode_elem_sep void addViewerPreference concode_elem_sep void addDocument c...
void function ( List < HashMap < String , Object >> arg0 ) { fc . setOutlines ( arg0 ) ; }
Generate a Java code for the following instruction: asserts that any string parameter is set . concode_field_sep PlaceHolder placeHolder concode_field_sep void assertSchemaNS concode_elem_sep void assertPrefix concode_elem_sep void assertSpecificLang concode_elem_sep void assertPropName concode_elem_sep void assertArra...
void function ( Object arg0 ) { if ( arg0 == null ) { throw new XMPException ( "srini_string" , XMPError . BADPARAM ) ; } else if ( ( arg0 instanceof String ) && ( ( String ) arg0 ) . length ( ) == 0 ) { throw new XMPException ( "srini_string" , XMPError . BADPARAM ) ; } }