input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: invokes the underlying listiterator #add object method . concode_field_sep ListIterator iterator concode_field_sep Object next concode_elem_sep void set concode_elem_sep Object previous concode_elem_sep boolean hasPrevious concode_elem_sep boolean hasNext concode_elem...
void function ( Object arg0 ) { getListIterator ( ) . add ( arg0 ) ; }
Generate a Java code for the following instruction: transfers from right to left concode_field_sep PlaceHolder placeHolder concode_field_sep void swap concode_elem_sep void swap
T [ ] function ( T [ ] arg0 , T [ ] arg1 , int arg2 , boolean arg3 ) { return ArrayTool . transferValues ( arg0 , arg1 , arg2 , arg1 . length , arg3 ) ; }
Generate a Java code for the following instruction: update entity inside 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 AbstractModel<T> getRepository concode_e...
boolean function ( @ NonNull Class < T > arg0 , T arg1 ) { AbstractModel < T > loc0 = getModelInstanceOrThrow ( arg0 ) ; return loc0 . updateInTx ( helper . getWritableDatabase ( ) , arg1 ) ; }
Generate a Java code for the following instruction: liefert den player concode_field_sep JComponent vis_component concode_elem_sep Visualization visualization_api concode_elem_sep UIMainWindow ui concode_elem_sep EventTimeline timeline concode_elem_sep VisDataModel model concode_elem_sep Player player concode_field_sep...
Player function ( ) { return player ; }
Generate a Java code for the following instruction: has the iterator any more elements . returns false only if the collection originally had zero elements , or all the elements have been #remove removed . concode_field_sep Iterator iterator concode_elem_sep Collection collection concode_field_sep Object next concode_el...
boolean function ( ) { return ( collection . size ( ) > 0 ) ; }
Generate a Java code for the following instruction: sets the value of iterations 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 setOurs concode_elem_sep long getOurAvg concode_elem_sep...
void function ( int arg0 ) { this . iterations = arg0 ; }
Generate a Java code for the following instruction: this method returns the number of clauses , of which a query currently consists . concode_field_sep int solvedAddend concode_elem_sep SkyNetNodeInfo queryOriginator concode_elem_sep Vector<QueryAddend> addends concode_elem_sep float answerQuality concode_elem_sep int ...
int function ( ) { return addends . size ( ) ; }
Generate a Java code for the following instruction: sets the number of hosts that take part in the overlay network . if not set , the default value of 1 host is assumed . has to be set before analysis is started and will be ignored else . concode_field_sep Logger log concode_elem_sep double numHosts concode_elem_sep bo...
void function ( final int arg0 ) { if ( ! started ) { numHosts = arg0 ; } }
Generate a Java code for the following instruction: return the remote protocol . accesses a threadlocal that 's setaround calls to #respond protocol.message , object . concode_field_sep Map<MD5,Protocol> protocols concode_elem_sep Logger LOG concode_elem_sep GenericDatumReader<Map<String,ByteBuffer>> META_READER concod...
Protocol function ( ) { return REMOTE . get ( ) ; }
Generate a Java code for the following instruction: if the child of a structured element is an array , we need to loop over the elements . concode_field_sep PdfReader reader concode_elem_sep PrintWriter out concode_field_sep String xmlName concode_elem_sep void convertToXml concode_elem_sep void convertToXml concode_el...
void function ( PdfArray arg0 ) { if ( arg0 == null ) return ; for ( int loc0 = 0 ; loc0 < arg0 . size ( ) ; loc0 ++ ) { inspectChild ( arg0 . getDirectObject ( loc0 ) ) ; } }
Generate a Java code for the following instruction: creates a new branch object . concode_field_sep int branchNumber concode_elem_sep Map<Branch,Branch> savedBranchInfos concode_elem_sep String methodName concode_elem_sep String className concode_elem_sep int lineNumber concode_elem_sep long serialVersionUID concode_el...
Branch function ( String arg0 , String arg1 , int arg2 , int arg3 , boolean arg4 ) { Branch loc0 = new Branch ( arg0 , arg1 , arg2 , arg3 , arg4 ) ; Branch loc1 = savedBranchInfos . get ( loc0 ) ; if ( loc1 == null ) { savedBranchInfos . put ( loc0 , loc0 ) ; loc1 = loc0 ; } return loc1 ; }
Generate a Java code for the following instruction: resolve a constant to its actual value . concode_field_sep PropertyAccessor DIRECT_PROPERTY_ACCESSOR concode_elem_sep Method OBJECT_EQUALS concode_elem_sep Class[] SINGLE_OBJECT_PARAM_SIGNATURE concode_elem_sep Object[] NO_PARAMS concode_elem_sep Method OBJECT_HASHCOD...
Object function ( String arg0 ) { Class loc0 ; try { loc0 = classForName ( StringHelper . qualifier ( arg0 ) ) ; } catch ( Throwable loc1 ) { return null ; } try { return loc0 . getField ( StringHelper . unqualify ( arg0 ) ) . get ( null ) ; } catch ( Throwable loc1 ) { return null ; } }
Generate a Java code for the following instruction: causes the currently executing thread to sleep temporarily cease execution for the specified number of milliseconds . the thread does not lose ownership of any monitors . if trace messages associated with the given trace option have been enabled , log the start and en...
void function ( long arg0 , String arg1 , String arg2 ) { trace ( arg1 , arg2 , "srini_string" + arg0 ) ; try { Thread . sleep ( arg0 ) ; } catch ( InterruptedException loc0 ) { } trace ( arg1 , arg2 , "srini_string" ) ; }
Generate a Java code for the following instruction: gets the type of the message back . concode_field_sep MSG_TYPE msgType concode_field_sep long getSize concode_elem_sep boolean equals
MSG_TYPE function ( ) { return this . msgType ; }
Generate a Java code for the following instruction: org.jboss.as.weld.deployment.processors.welddeploymentprocessor assembles a basic accessibility graph based onthe deployment structure . here , we complete the graph by examining classloader visibility . this allows additional accessibility edges caused e.g. by the cl...
void function ( Iterable < BeanDeploymentArchiveImpl > arg0 ) { for ( BeanDeploymentArchiveImpl loc0 : arg0 ) { for ( BeanDeploymentArchiveImpl loc1 : arg0 ) { if ( loc0 . isAccessible ( loc1 ) ) { loc0 . addBeanDeploymentArchive ( loc1 ) ; } } } }
Generate a Java code for the following instruction: called by the default implementation of #writemap to get the sizeof a map . the default implementation is for map . concode_field_sep GenericData data concode_elem_sep Schema root concode_field_sep NullPointerException npe concode_elem_sep void writeWithoutConversion ...
int function ( Object arg0 ) { return ( ( Map ) arg0 ) . size ( ) ; }
Generate a Java code for the following instruction: sorts source and adds the first n entries that match filter to dest . if source contains less than n entries , all of them are added to dest . for details , see collectionhelpers #copynsorted collection , collection , comparator , int , except that source is filtered ...
void function ( final Collection < T > arg0 , final Collection < T > arg1 , final Predicate < T > arg2 , final Comparator < T > arg3 , final int arg4 ) { final List < T > loc0 = new ArrayList < T > ( arg0 . size ( ) ) ; arg2 ( arg0 , loc0 , arg2 ) ; Collections . sort ( loc0 , arg3 ) ; final Iterator < T > loc1 = loc0 ...
Generate a Java code for the following instruction: returns an array of string objects . the array represents the names of the columns arranged in the same order as in the getrowsbyindex method . concode_field_sep boolean isLimited concode_elem_sep String[] columnNames concode_elem_sep List rowMap concode_elem_sep List...
String [ ] function ( ) { return columnNames ; }
Generate a Java code for the following instruction: information supplied to enable the matching of an entry with the items that the transfer is intended to settle , such as commercial invoices in an accounts ' receivable system max length : 140 concode_field_sep Pattern bicRegex concode_field_sep PartyIdentification32 ...
RemittanceInformation5 function ( String arg0 ) { checkMax140Text ( arg0 ) ; RemittanceInformation5 loc0 = new RemittanceInformation5 ( ) ; loc0 . getUstrd ( ) . add ( arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: get the number of required pairs removed from the pairlist . concode_field_sep ArrayList<GenPolynomial<C>> P concode_elem_sep ArrayList<BitSet> red concode_elem_sep boolean useCriterion4 concode_elem_sep int putCount concode_elem_sep Logger logger concode_elem_sep Gen...
int function ( ) { return remCount ; }
Generate a Java code for the following instruction: get the flag to know the character should have a space . concode_field_sep boolean needAfterSpace concode_elem_sep SymbolType name concode_elem_sep long serialVersionUID concode_elem_sep char[] invalidChars concode_elem_sep boolean needBeforeSpace concode_elem_sep cha...
boolean function ( ) { return needBeforeSpace ; }
Generate a Java code for the following instruction: returns the evaluation listeners registered in this configuration concode_field_sep JsonProvider jsonProvider concode_elem_sep Collection<EvaluationListener> evaluationListener concode_elem_sep Collection<EvaluationListener> evaluationListeners concode_elem_sep EnumSe...
Collection < EvaluationListener > function ( ) { return evaluationListeners ; }
Generate a Java code for the following instruction: builds a jmx compositedata view of our state concode_field_sep OpenType[] ITEM_TYPES concode_elem_sep long updateCount concode_elem_sep long fetchCount concode_elem_sep String TABULAR_TYPE_NAME concode_elem_sep String COMPOSITE_TYPE_NAME concode_elem_sep CompositeType...
CompositeData function ( ) { try { return new CompositeDataSupport ( COMPOSITE_TYPE , ITEM_NAMES , new Object [ ] { roleName , shortName , loadCount , fetchCount , updateCount , removeCount , recreateCount } ) ; } catch ( OpenDataException loc0 ) { throw new RuntimeException ( loc0 ) ; } }
Generate a Java code for the following instruction: append listelement . concode_field_sep List<ListElement> listElements concode_field_sep List<ListElement> getListElements concode_elem_sep ListElement getListElement concode_elem_sep int getNumberOfListElements
void function ( int arg0 , List < Sentence > arg1 ) { listElements . add ( new ListElement ( arg0 , arg1 ) ) ; }
Generate a Java code for the following instruction: setup for connection success scenario . concode_field_sep String DB_URL concode_elem_sep DbCustomerDao dao concode_elem_sep Customer existingCustomer concode_elem_sep String EXCEPTION_CAUSE concode_elem_sep ExpectedException exception concode_field_sep void addingShou...
void function ( ) { JdbcDataSource loc0 = new JdbcDataSource ( ) ; loc0 . setURL ( DB_URL ) ; dao = new DbCustomerDao ( loc0 ) ; boolean loc1 = dao . add ( existingCustomer ) ; assertTrue ( loc1 ) ; }
Generate a Java code for the following instruction: assert that the actual collection contains the expected elements but may contain more . concode_field_sep PlaceHolder placeHolder concode_field_sep int testContains concode_elem_sep int testContains concode_elem_sep boolean testContains concode_elem_sep void fail conc...
void function ( Object [ ] arg0 , Collection < Object > arg1 ) { int loc0 = testContains ( arg0 , arg1 ) ; if ( loc0 != - 1 ) fail ( "srini_string" + arg0 [ loc0 ] , arg0 , arg1 ) ; }
Generate a Java code for the following instruction: gets items from the stack where the index is zero based and the top of the stack is at an index of size -1 with the bottom of the stack at an index of 0 . concode_field_sep ArrayDoubleList list concode_field_sep double pop concode_elem_sep int search concode_elem_sep ...
double function ( int arg0 ) { return list . get ( arg0 ) ; }
Generate a Java code for the following instruction: cardinality of property concode_field_sep boolean isTesting concode_elem_sep String typeName concode_elem_sep Clob propertyValue concode_elem_sep Clob exampleValue concode_elem_sep boolean isEncrypted concode_elem_sep String propContName concode_elem_sep Integer descr...
ResourceEditPropertyBuilder function ( Integer arg0 ) { this . cardinalityProperty = arg0 ; return this ; }
Generate a Java code for the following instruction: calculate the red histogram of an image concode_field_sep int[] histogram concode_elem_sep float[] RED concode_elem_sep float[] GRAYSCALE concode_elem_sep float[] BLUE concode_elem_sep float[] GREEN concode_field_sep int[] histogram concode_elem_sep int[] histogram co...
int [ ] function ( BufferedImage arg0 ) { return histogram ( arg0 , RED ) ; }
Generate a Java code for the following instruction: adds negated parameters , by default with the `` and '' connective . these paremeters will be grouped in parentheses in the generated query and negated , e.g. ... not exp1 and exp2 ... concode_field_sep String OR concode_elem_sep MutableInteger queryParamCounter conco...
Parameters function ( ) { final Parameters loc0 = new Parameters ( alias , AND , queryParamCounter ) ; negatedParameters . add ( loc0 ) ; return loc0 ; }
Generate a Java code for the following instruction: concatenates a pdf document . concode_field_sep PdfCopyFieldsImp fc concode_field_sep void setOutlines concode_elem_sep void setViewerPreferences concode_elem_sep void addJavaScript concode_elem_sep void addViewerPreference concode_elem_sep PdfWriter getWriter concode...
void function ( PdfReader arg0 ) { fc . addDocument ( arg0 ) ; }
Generate a Java code for the following instruction: returns the last exception thrown on the event dispatch thread , or null if no such exception has been thrown . concode_field_sep AWTEventListener listener concode_elem_sep SystemState state concode_field_sep void restore concode_elem_sep long getEventDispatchErrorTim...
Throwable function ( ) { return EDTExceptionCatcher . getThrowable ( ) ; }
Generate a Java code for the following instruction: sets the value associated with the current key . concode_field_sep Iterator iterator concode_elem_sep Map.Entry last concode_elem_sep Map map concode_elem_sep boolean canRemove concode_field_sep Object next concode_elem_sep Object getKey concode_elem_sep Object getVal...
Object function ( Object arg0 ) { if ( last == null ) { throw new IllegalStateException ( "srini_string" ) ; } return last . setValue ( arg0 ) ; }
Generate a Java code for the following instruction: returns the size in pixels of an attribute dimension concode_field_sep PlaceHolder placeHolder concode_field_sep int getThemeColor concode_elem_sep float convertPixelsToDp concode_elem_sep void setBackground concode_elem_sep void setBackground concode_elem_sep float c...
int function ( Context arg0 , int arg1 ) { TypedArray loc0 = null ; try { loc0 = arg0 . getTheme ( ) . obtainStyledAttributes ( new int [ ] { arg1 } ) ; return loc0 . getDimensionPixelSize ( 0 , 0 ) ; } finally { if ( loc0 != null ) { loc0 . recycle ( ) ; } } }
Generate a Java code for the following instruction: module twosided groebner base test . 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 List<GenSolv...
boolean function ( int arg0 , List < GenSolvablePolynomial < C >> arg1 ) { return sbb . isTwosidedGB ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: negative value . 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 isCommutative conco...
BigInteger function ( BigInteger arg0 ) { if ( arg0 == null ) return null ; return arg0 . negate ( ) ; }
Generate a Java code for the following instruction: compares two canvid and gives the number of common values back . so it gives the number of common parents concode_field_sep List<String> VID concode_field_sep boolean inBetween concode_elem_sep List<String> listCommon concode_elem_sep boolean lower concode_elem_sep bo...
int function ( CanVID arg0 ) { int loc0 = 0 ; for ( int loc1 = 0 ; loc1 < Math . min ( VID . size ( ) , arg0 . getVIDList ( ) . size ( ) ) ; loc1 ++ ) { if ( ! VID . get ( loc1 ) . toString ( ) . equals ( arg0 . getVIDList ( ) . get ( loc1 ) . toString ( ) ) ) break ; loc0 ++ ; } return loc0 ; }
Generate a Java code for the following instruction: convert mixed case to underscores concode_field_sep NamingStrategy INSTANCE concode_field_sep String classToTableName concode_elem_sep String collectionTableName concode_elem_sep String propertyToColumnName concode_elem_sep String logicalColumnName concode_elem_sep St...
String function ( String arg0 ) { return addUnderscores ( arg0 ) ; }
Generate a Java code for the following instruction: test that javax.validation.validation #builddefaultvalidatorfactory works fine within an ejb concode_field_sep StatelessBean slsb concode_field_sep JavaArchive getDeployment concode_elem_sep void testValidatorInjection concode_elem_sep void testGetValidatorFromValidat...
void function ( ) { this . slsb . buildDefaultValidatorFactory ( ) ; }
Generate a Java code for the following instruction: the name of the document origin . interpretation is relative to the type , but might be the resource name or file url . concode_field_sep String name concode_elem_sep SourceType type concode_elem_sep String UNKNOWN_FILE_PATH concode_field_sep SourceType getType concod...
String function ( ) { return name ; }
Generate a Java code for the following instruction: returns the job status for the given job id . the job status includes things like where it 's deployed , and the status of the jobs where it 's deployed , etc. . concode_field_sep Logger log concode_elem_sep MasterModel model concode_elem_sep MasterMetrics metrics con...
Optional < JobStatus > function ( @ PathParam ( "srini_string" ) @ Valid final JobId arg0 ) { if ( ! arg0 . isFullyQualified ( ) ) { throw badRequest ( "srini_string" ) ; } return Optional . fromNullable ( model . getJobStatus ( arg0 ) ) ; }
Generate a Java code for the following instruction: partitionbatch - decorator method to call real partitioner s to process incoming batch uses either threading or not threading approach based on number partitioners concode_field_sep RecordBatch incoming concode_elem_sep boolean isLastBatch concode_elem_sep Partitioner...
void function ( final RecordBatch arg0 ) { executeMethodLogic ( new PartitionBatchHandlingClass ( arg0 ) ) ; }
Generate a Java code for the following instruction: get cause concode_field_sep FailedType failedType concode_elem_sep Throwable cause concode_field_sep FailedType getFailedType
Throwable function ( ) { return cause ; }
Generate a Java code for the following instruction: return the unique identifier of the given plug-in . concode_field_sep PlaceHolder placeHolder concode_field_sep PluginVersionIdentifier getVersion concode_elem_sep PluginVersionIdentifier getVersion concode_elem_sep URL getUrl concode_elem_sep URL getUrl concode_elem_...
String function ( Plugin arg0 ) { return arg0 . getBundle ( ) . getSymbolicName ( ) ; }
Generate a Java code for the following instruction: initializes resources . this must be called before monitorresources #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 buildInfoView con...
void function ( ) { resources = GWT . create ( Resources . class ) ; }
Generate a Java code for the following instruction: returns the characters in the buffer to the scanner . concode_field_sep char[] fContent concode_elem_sep boolean fIsHashCached concode_elem_sep IWordDetector fDetector concode_elem_sep int fLength concode_elem_sep List<WordMatcher> fMatchers concode_elem_sep Map<Chara...
void function ( ICharacterScanner arg0 ) { for ( int loc0 = fBuffer . length ( ) - 1 ; loc0 >= 0 ; loc0 -- ) arg0 . unread ( ) ; }
Generate a Java code for the following instruction: moves pos and lookat to the right in the map plane concode_field_sep VectorXYZ pos concode_elem_sep VectorXYZ lookAt concode_elem_sep VectorXYZ up concode_field_sep void setCamera concode_elem_sep void setCamera concode_elem_sep void moveForward concode_elem_sep void ...
void function ( double arg0 ) { VectorXYZ loc0 = getRight ( ) ; 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 an iterator iterator wrappingthe specified doubleiterator doubleiterator . when the given iterator is null , returns null . concode_field_sep DoubleIterator _iterator concode_field_sep Object next concode_elem_sep boolean hasNext concode_elem_sep void remove
Iterator function ( DoubleIterator arg0 ) { return null == arg0 ? null : new DoubleIteratorIterator ( arg0 ) ; }
Generate a Java code for the following instruction: load all releases concode_field_sep ReleaseMgmtPersistenceService persistenceService concode_elem_sep Logger log concode_elem_sep PropertyEditor propertyEditor concode_elem_sep EntityManager em concode_elem_sep ResourceDependencyResolverService resourceDependencyResol...
List < ReleaseEntity > function ( boolean arg0 ) { return persistenceService . loadAllReleaseEntities ( arg0 ) ; }
Generate a Java code for the following instruction: is this polynomial equal to other . concode_field_sep GenPolynomial<GenPolynomial<C>> red concode_elem_sep GenPolynomial<GenPolynomial<C>> green concode_elem_sep GenPolynomial<GenPolynomial<C>> white concode_field_sep List<GenPolynomial<C>> getRedCoefficients concode_...
boolean function ( Object arg0 ) { ColorPolynomial < C > loc0 = null ; try { loc0 = ( ColorPolynomial < C > ) arg0 ; } catch ( ClassCastException loc1 ) { return false ; } if ( loc0 == null ) { return false ; } return ( green . equals ( loc0 . green ) && red . equals ( loc0 . red ) && white . equals ( loc0 . white ) ) ...
Generate a Java code for the following instruction: a helper method to create a new instance of a type using the default constructor arguments . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean hasAnnotation concode_elem_sep boolean hasMethodWithAnnotation concode_elem_sep Object invokeMethod
T function ( Class < T > arg0 ) { try { return arg0 . newInstance ( ) ; } catch ( InstantiationException loc0 ) { throw new RuntimeException ( loc0 ) ; } catch ( IllegalAccessException loc0 ) { throw new RuntimeException ( loc0 ) ; } }
Generate a Java code for the following instruction: this method returns the id of the node , that measured or aggregated the metrics , which are currently stored within this class . concode_field_sep SkyNetNodeInfo nodeInfo concode_elem_sep HashMap<String,MetricsAggregate> metrics concode_field_sep long getSize concode...
SkyNetNodeInfo function ( ) { return nodeInfo ; }
Generate a Java code for the following instruction: comparison with any other object . concode_field_sep Logger logger concode_elem_sep RingFactory<C> ring concode_elem_sep int isField concode_elem_sep C modul concode_field_sep Residue<C> random concode_elem_sep Residue<C> random concode_elem_sep int hashCode concode_e...
boolean function ( Object arg0 ) { if ( ! ( arg0 instanceof ResidueRing ) ) { return false ; } ResidueRing < C > loc0 = null ; try { loc0 = ( ResidueRing < C > ) arg0 ; } catch ( ClassCastException loc1 ) { } if ( loc0 == null ) { return false ; } if ( ! ring . equals ( loc0 . ring ) ) { return false ; } return modul ....
Generate a Java code for the following instruction: creates war with a secured servlet and basic authentication configured in web.xml deployment descriptor . it uses default security domain . concode_field_sep String SD_WITHOUT_LOGIN_PERMISSION concode_elem_sep SimpleSecurityDomain securityDomain concode_elem_sep Under...
WebArchive function ( ) { return createWar ( SD_DEFAULT ) ; }
Generate a Java code for the following instruction: returns reflectclass for the specified class name concode_field_sep Reflector _parent concode_elem_sep ReflectArray _array concode_elem_sep JdkLoader _classLoader concode_elem_sep ReflectorConfiguration _config concode_field_sep Reflector parent concode_elem_sep void ...
ReflectClass function ( String arg0 ) { Class loc0 = _classLoader . loadClass ( arg0 ) ; if ( loc0 == null ) { return null ; } return createClass ( loc0 ) ; }
Generate a Java code for the following instruction: returns true iff all entries of the input array are > 0 . returns true if the array is non-null , but empty concode_field_sep DistributionFactory distributionFactory concode_field_sep double chiSquare concode_elem_sep double chiSquare concode_elem_sep void checkArray ...
boolean function ( double [ ] arg0 ) { for ( int loc0 = 0 ; loc0 < arg0 . length ; loc0 ++ ) { if ( arg0 [ loc0 ] <= 0 ) { return false ; } } return true ; }
Generate a Java code for the following instruction: this method returns a org.springframework.web.method.support.handlermethodargumentresolver that canconstruct org.springframework.data.domain.sort objects by using the request params of theincoming request . concode_field_sep PlaceHolder placeHolder concode_field_sep M...
SortHandlerMethodArgumentResolver function ( ) { return new SortHandlerMethodArgumentResolver ( ) ; }
Generate a Java code for the following instruction: create an instance of keyvaluepairlist concode_field_sep QName _HistoryHeader_QNAME concode_elem_sep QName _ISDVInfo_QNAME concode_elem_sep QName _KeyValuePairList_QNAME concode_elem_sep QName _LocalizedMessage_QNAME concode_elem_sep QName _BusinessException_QNAME con...
KeyValuePairList function ( ) { return new KeyValuePairList ( ) ; }
Generate a Java code for the following instruction: extended greatest common divisor . note : not implemented , throws runtimeexception . concode_field_sep Logger logger concode_elem_sep LocalRing<C> ring concode_elem_sep boolean debug concode_elem_sep GenPolynomial<C> num concode_elem_sep int isunit concode_elem_sep G...
Local < C > [ ] function ( Local < C > arg0 ) { throw new RuntimeException ( "srini_string" + this . getClass ( ) . getName ( ) ) ; }
Generate a Java code for the following instruction: determines if fully qualified method name is in this class example methodname : public static string dostuff int , java.lang.object concode_field_sep RootInfo traversalObject concode_elem_sep List<MethodInfo> method_infos concode_elem_sep ClassLoader loader concode_el...
boolean function ( String arg0 ) { return arg0 . matches ( "srini_string" + class_name + "srini_string" ) ; }
Generate a Java code for the following instruction: start processing events as soon as the queue is n't empty . if the queue is not empty , this method will process all events already in the queue and any event that will be added while the queue is being processed . concode_field_sep boolean started concode_elem_sep Li...
void function ( ) { synchronized ( queuedEvents ) { if ( started ) { return ; } started = true ; isProcessing = true ; } processEvents ( ) ; }
Generate a Java code for the following instruction: larnacaairport initializer concode_field_sep int larnacaAirportNumberOfRunways concode_elem_sep Passenger[] passengersArray concode_elem_sep Airport larnacaAirport concode_elem_sep Plane[] planesArray concode_elem_sep Flight[] flightsArray concode_elem_sep int numberO...
void function ( ) { getLarnacaAirport ( ) . setName ( "srini_string" ) ; getLarnacaAirport ( ) . setCity ( "srini_string" ) ; getLarnacaAirport ( ) . setCountry ( "srini_string" ) ; getLarnacaAirport ( ) . setCode ( "srini_string" ) ; }
Generate a Java code for the following instruction: returns language targeted by this configuration concode_field_sep List<ValidatorConfiguration> validatorConfigs concode_elem_sep SymbolTable symbolTable concode_elem_sep File home concode_elem_sep boolean built concode_elem_sep String lang concode_elem_sep List<Symbol...
String function ( ) { return lang ; }
Generate a Java code for the following instruction: gets the initial available numer . concode_field_sep Map<Integer,String> buyedNumber concode_elem_sep Map<Integer,Integer> winnerNumer concode_elem_sep List<Integer> initialAvailableNumer concode_elem_sep List<Integer> availableNumer concode_elem_sep List<Command> com...
List < Integer > function ( ) { return initialAvailableNumer ; }
Generate a Java code for the following instruction: return is other before first concode_field_sep int[] retentionMonthly concode_elem_sep int[] browsingFreq concode_elem_sep int[] retentionDaily concode_elem_sep int[] retentionWeekly concode_field_sep int weekBetween concode_elem_sep String getMonthRetention concode_e...
boolean function ( String arg0 , String arg1 ) { try { DateFormat loc0 = new SimpleDateFormat ( "srini_string" ) ; Date loc1 = loc0 . parse ( arg0 ) ; Date loc2 = loc0 . parse ( arg1 ) ; return loc2 . before ( loc1 ) ; } catch ( Exception loc0 ) { loc0 . printStackTrace ( ) ; } return false ; }
Generate a Java code for the following instruction: factory to create the predicate . concode_field_sep Predicate[] iPredicates concode_elem_sep long serialVersionUID concode_field_sep boolean evaluate concode_elem_sep Predicate[] getPredicates
Predicate function ( Collection arg0 ) { Predicate [ ] loc0 = FunctorUtils . validate ( arg0 ) ; return new OnePredicate ( loc0 ) ; }
Generate a Java code for the following instruction: returns the bag . concode_field_sep List components concode_elem_sep One one concode_elem_sep List manyToMany concode_elem_sep Foo foo concode_elem_sep int count concode_elem_sep Collection bag concode_elem_sep Simple simple concode_elem_sep Many many concode_elem_sep...
Collection function ( ) { return bag ; }
Generate a Java code for the following instruction: get this widget 's index relative to its parent widget . concode_field_sep long serialVersionUID concode_elem_sep HashMap _map concode_elem_sep int UNASSIGNED concode_elem_sep int _index concode_elem_sep WidgetLocator _parentInfo concode_elem_sep Class _cls concode_el...
int function ( ) { return _index ; }
Generate a Java code for the following instruction: load all resourcegroups for the given type concode_field_sep EntityManager entityManager concode_elem_sep ResourceRepository resourceRepository concode_elem_sep ResourceRelationService resourceRelationService concode_elem_sep ResourceTypeDomainService resourceTypeDoma...
List < ? extends NamedIdentifiable > function ( String arg0 , Integer arg1 ) { ResourceEntity loc0 = resourceRepository . loadWithResourceGroupAndRelatedResourcesForId ( arg1 ) ; return resourceGroupService . loadGroupsForTypeNameExcludeSelected ( arg0 , Collections . singletonList ( loc0 . getResourceGroup ( ) . getId...
Generate a Java code for the following instruction: returns the trace data is added to . concode_field_sep ITrace2D m_trace concode_field_sep void collectData
ITrace2D function ( ) { return this . m_trace ; }
Generate a Java code for the following instruction: creates testing web-app module for app1.ear concode_field_sep EnterpriseArchive DEPENDENT concode_elem_sep String DEP_APP1 concode_elem_sep Logger LOGGER concode_elem_sep String DEP_APP2 concode_elem_sep EnterpriseArchive DEPENDEE concode_elem_sep String MODULE_WEB co...
Archive < ? > function ( ) { return ShrinkWrap . create ( WebArchive . class , MODULE_WEB + "srini_string" ) . setWebXML ( InterDeploymentDependenciesEarTestCase . class . getPackage ( ) , "srini_string" ) . addClass ( SleeperContextListener . class ) ; }
Generate a Java code for the following instruction: sets the constraints . concode_field_sep Component component concode_elem_sep GridBagConstraints constraints concode_field_sep GridBagConstraints getConstraints concode_elem_sep Component getComponent concode_elem_sep void setComponent
void function ( GridBagConstraints arg0 ) { this . constraints = arg0 ; }
Generate a Java code for the following instruction: gets the closures , do not modify the array . 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_sep Closure g...
Closure [ ] function ( ) { return iClosures ; }
Generate a Java code for the following instruction: set the output resource file . if not set , no output file will be created . concode_field_sep int bufferIndex concode_elem_sep ArrayList<Byte> bytes concode_elem_sep int delayMax concode_elem_sep File inputImage1 concode_elem_sep File inputImage2 concode_elem_sep int...
void function ( String arg0 ) { outputFile = new File ( arg0 ) ; createOutputFile = true ; }
Generate a Java code for the following instruction: returns the piece at the certain position . concode_field_sep int MAX_BOARD_SIZE concode_elem_sep Piece pieces[] concode_elem_sep int KING_PIECE_TYPE concode_elem_sep int SINGLE_PIECE_TYPE concode_field_sep boolean isOccupied concode_elem_sep void removePiece concode_...
Piece function ( int arg0 ) { Piece loc0 = new SinglePiece ( Color . red ) ; try { if ( isOccupied ( arg0 ) ) { loc0 = pieces [ arg0 ] ; } } catch ( ArrayIndexOutOfBoundsException loc1 ) { } catch ( NullPointerException loc1 ) { } return loc0 ; }
Generate a Java code for the following instruction: called when a chunk with a generic tag is written . it is useful to pinpoint the chunk location to generate bookmarks , for example . concode_field_sep ArrayList<PdfPageEvent> events concode_field_sep void addPageEvent concode_elem_sep void onSection concode_elem_sep ...
void function ( PdfWriter arg0 , Document arg1 , Rectangle arg2 , String arg3 ) { PdfPageEvent loc0 ; for ( Object loc1 : events ) { loc0 = ( PdfPageEvent ) loc1 ; loc0 . onGenericTag ( arg0 , arg1 , arg2 , arg3 ) ; } }
Generate a Java code for the following instruction: sets the current cluster id . concode_field_sep ProcessListener processListener concode_elem_sep FXMLController guiController concode_elem_sep String user concode_elem_sep File fileBiBiGridJar concode_elem_sep File fileSingularityScript concode_elem_sep ProcessBuilder...
void function ( String arg0 ) { clusterId = arg0 ; }
Generate a Java code for the following instruction: compare the contents of two files : concode_field_sep FileFilter CVSFILTER concode_field_sep void compareResourceTree concode_elem_sep void compareResourceTree concode_elem_sep void compareResourceTree concode_elem_sep void compareResourceTree concode_elem_sep boolean...
void function ( IProject arg0 , String arg1 , String arg2 ) { Assert . assertNotNull ( "srini_string" , arg0 ) ; Assert . assertNotNull ( "srini_string" , arg1 ) ; Assert . assertNotNull ( "srini_string" , arg2 ) ; compareFileContents ( arg0 . getFile ( arg1 ) , arg2 ) ; }
Generate a Java code for the following instruction: the current text buffer . concode_field_sep StringBuilder currentEntity concode_elem_sep StringBuilder comment concode_elem_sep String currentTag concode_elem_sep boolean isHtml concode_elem_sep String currentAttr concode_elem_sep char lastChar concode_elem_sep String...
StringBuilder function ( ) { return baos ; }
Generate a Java code for the following instruction: a lower bound on the number of elements in the set . returns either the number of elements that have been inserted in the set , or max_size , whichever is less . concode_field_sep int num_values concode_elem_sep int[] values concode_elem_sep long serialVersionUID conc...
int function ( ) { return num_values ; }
Generate a Java code for the following instruction: returns the non-terminal that is the start symbol for the grammar for the given schema sc . concode_field_sep Schema actual concode_field_sep int hashCode concode_elem_sep boolean equals
Symbol function ( Schema arg0 ) { return Symbol . root ( generate ( arg0 , new HashMap < LitS , Symbol > ( ) ) ) ; }
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: ensures that the expression given as a method parameter is true . concode_field_sep PlaceHolder placeHolder concode_field_sep void notNull concode_elem_sep void notEmpty
void function ( boolean arg0 , String arg1 ) { if ( ! arg0 ) { throw new IllegalArgumentException ( arg1 ) ; } }
Generate a Java code for the following instruction: convenience method to return the text of the filter control . if the text widget is not created , then null is returned . concode_field_sep Text fTextControl concode_elem_sep ImageDescriptor fgClearIconDescriptor concode_elem_sep Control fClearButton concode_elem_sep ...
String function ( ) { return fTextControl != null ? fTextControl . getText ( ) : null ; }
Generate a Java code for the following instruction: returns whether one of the given categories is contained in this set of group categories concode_field_sep List<GroupCategory> fContent concode_elem_sep GroupCategorySet NONE concode_field_sep boolean contains concode_elem_sep boolean contains concode_elem_sep GroupCa...
boolean function ( List < GroupCategory > arg0 ) { for ( Iterator < GroupCategory > loc0 = arg0 . iterator ( ) ; loc0 . hasNext ( ) ; ) { GroupCategory loc1 = loc0 . next ( ) ; if ( contains ( loc1 ) ) return true ; } return false ; }
Generate a Java code for the following instruction: checks if the space on the board contains a piece . if outside board array bounds , return true . concode_field_sep int MAX_BOARD_SIZE concode_elem_sep Piece pieces[] concode_elem_sep int KING_PIECE_TYPE concode_elem_sep int SINGLE_PIECE_TYPE concode_field_sep void re...
boolean function ( int arg0 ) { return ( arg0 >= 1 && arg0 <= 63 && pieces [ arg0 ] == null ) ? false : true ; }
Generate a Java code for the following instruction: appends a byte array or part of to the buffer . concode_field_sep String encoding concode_elem_sep int length concode_elem_sep byte[] buffer concode_field_sep InputStream getByteStream concode_elem_sep String getEncoding concode_elem_sep byte byteAt concode_elem_sep i...
void function ( byte [ ] arg0 , int arg1 , int arg2 ) { ensureCapacity ( length + arg2 ) ; System . arraycopy ( arg0 , arg1 , buffer , length , arg2 ) ; length += arg2 ; }
Generate a Java code for the following instruction: return the number of words in the dictionary . this is not necessarily the same as the number of trienodes in the trie . concode_field_sep int size concode_elem_sep TrieNode root concode_field_sep boolean addWord concode_elem_sep List<String> predictCompletions concod...
int function ( ) { return size ; }
Generate a Java code for the following instruction: look for @entity annotation concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isPersistentField concode_elem_sep boolean doDirtyCheckingInline concode_elem_sep boolean hasLazyLoadableAttributes concode_elem_sep boolean isCompositeClass concode_elem_s...
boolean function ( CtClass arg0 ) { return arg0 . hasAnnotation ( Entity . class ) ; }
Generate a Java code for the following instruction: gets a debugging string version of this converter . concode_field_sep PlaceHolder placeHolder concode_field_sep long getInstantMillis concode_elem_sep boolean isReadableInterval concode_elem_sep PeriodType getPeriodType concode_elem_sep Chronology getChronology concod...
String function ( ) { return "srini_string" + ( getSupportedType ( ) == null ? "srini_string" : getSupportedType ( ) . getName ( ) ) + "srini_string" ; }
Generate a Java code for the following instruction: gets the context type . concode_field_sep TemplateContextType fContextType concode_elem_sep Comparator<TemplateVariableProposal> fgTemplateVariableProposalComparator concode_field_sep char[] getCompletionProposalAutoActivationCharacters concode_elem_sep int compare co...
TemplateContextType function ( ) { return fContextType ; }
Generate a Java code for the following instruction: sole entry point to application , as always . concode_field_sep PlaceHolder placeHolder concode_field_sep void printCapitalized
void function ( String [ ] arg0 ) { String loc0 ; TextIO . putln ( "srini_string" ) ; loc0 = TextIO . getln ( ) ; TextIO . putln ( ) ; TextIO . putln ( "srini_string" ) ; printCapitalized ( loc0 ) ; }
Generate a Java code for the following instruction: same as c.isprimitive but faster if this test is done very frequently as it is in randoop . concode_field_sep Map<String,Boolean> stringLengthOKCached concode_elem_sep Map<Class<?>,Class<?>> boxedToPrimitiveAndString concode_elem_sep Map<String,Class<?>> typeNameToPri...
boolean function ( Class < ? > arg0 ) { if ( arg0 == null ) throw new IllegalArgumentException ( "srini_string" ) ; Boolean loc0 = isPrimitiveCached . get ( arg0 ) ; if ( loc0 == null ) { loc0 = arg0 . isPrimitive ( ) ; isPrimitiveCached . put ( arg0 , loc0 ) ; } return loc0 ; }
Generate a Java code for the following instruction: remove incorrect values and repaint the panel concode_field_sep KenKenGUI gui concode_field_sep placeholderType placeHolder
void function ( ActionEvent arg0 ) { if ( gui . isPlaying ( ) ) { this . gui . getPuzzle ( ) . removeIncorrect ( ) ; this . gui . getMainPanel ( ) . getGamePanel ( ) . paintGamePanel ( gui . getPuzzle ( ) ) ; this . gui . initiateCommandHistory ( ) ; } }
Generate a Java code for the following instruction: check invariants . check if all colored systems are determined and all invariants are met . concode_field_sep Logger logger concode_elem_sep boolean debug concode_elem_sep List<Condition<C>> conds concode_elem_sep List<ColoredSystem<C>> list concode_elem_sep Polynomia...
boolean function ( ) { for ( ColoredSystem < C > loc0 : list ) { if ( ! loc0 . checkInvariant ( ) ) { return false ; } } return true ; }
Generate a Java code for the following instruction: gets the value of the technicalkey 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 S...
String function ( ) { return technicalKey ; }
Generate a Java code for the following instruction: hash code . concode_field_sep ExpVector e1 concode_elem_sep ExpVector e2 concode_field_sep ExpVector getFirst concode_elem_sep boolean equals concode_elem_sep boolean equals concode_elem_sep ExpVector getSecond concode_elem_sep String toString concode_elem_sep boolean...
int function ( ) { return ( e1 . hashCode ( ) << 16 ) + e2 . hashCode ( ) ; }
Generate a Java code for the following instruction: verifies if a given editing owner is equals the foreignable owner or if the the user has super user chuck norris role which can overrule foreignable rules concode_field_sep PermissionService permissionService concode_field_sep boolean isNewObject concode_elem_sep bool...
boolean function ( ForeignableOwner arg0 , ForeignableOwner arg1 ) { return isChuckNorris ( ) || arg1 . isSameOwner ( arg0 ) ; }
Generate a Java code for the following instruction: import lockup data from an xml-file . 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 Logger log concode_e...
void function ( File arg0 ) { try { SAXReader loc0 = new SAXReader ( false ) ; Document loc1 = loc0 . read ( arg0 ) ; Element loc2 = loc1 . getRootElement ( ) ; importFromXML ( loc2 ) ; } catch ( DocumentException loc0 ) { loc0 . printStackTrace ( ) ; } }
Generate a Java code for the following instruction: returns the refactoring descriptor proxy . depending on the event , this proxy may refer to an inexisting refactoring and can not be resolved to a refactoring descriptor . clients should also be prepared to receive notifications for unknown refactorings , which are di...
RefactoringDescriptorProxy function ( ) { return fProxy ; }