input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: recursive slow solution . concode_field_sep PlaceHolder placeHolder concode_field_sep void main
int function ( int arg0 [ ] , int arg1 ) { if ( arg1 == 0 ) { return arg0 [ 0 ] ; } else if ( arg1 == 1 ) { return Math . max ( arg0 [ 0 ] , arg0 [ 1 ] ) ; } return Math . max ( this . maxSum ( arg0 , arg1 - 2 ) + arg0 [ arg1 ] , this . maxSum ( arg0 , arg1 - 1 ) ) ; }
Generate a Java code for the following instruction: comparison with any other object . 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 GenPolynomial<C> den concode_field_sep int signum co...
boolean function ( Object arg0 ) { if ( ! ( arg0 instanceof Local ) ) { return false ; } Local < C > loc0 = null ; try { loc0 = ( Local < C > ) arg0 ; } catch ( ClassCastException loc1 ) { } if ( loc0 == null ) { return false ; } return ( 0 == compareTo ( loc0 ) ) ; }
Generate a Java code for the following instruction: test tag #haschild string , string . concode_field_sep Tag childsChild concode_elem_sep String CHILD2 concode_elem_sep Tag child1NoChildren concode_elem_sep String CHILD1 concode_elem_sep Tag root concode_elem_sep String CHILDS_CHILD concode_elem_sep String ROOTSTR co...
void function ( ) { Assert . assertTrue ( root . hasChild ( CHILD1 , "srini_string" ) ) ; }
Generate a Java code for the following instruction: gets the start date of this event concode_field_sep Date _end concode_elem_sep Date _start concode_elem_sep String _title concode_elem_sep String _id concode_elem_sep String _description concode_field_sep String getTitle concode_elem_sep int hashCode concode_elem_sep ...
Date function ( ) { return _start ; }
Generate a Java code for the following instruction: stops event . concode_field_sep Random rand concode_elem_sep int currentlyRunningSyncEvent concode_elem_sep int MIN_ID concode_elem_sep int MAX_RUNNING_EVENTS concode_elem_sep int MAX_EVENT_TIME concode_elem_sep Map<Integer,Event> eventPool concode_elem_sep int MAX_ID...
void function ( int arg0 ) { if ( ! eventPool . containsKey ( arg0 ) ) { throw new EventDoesNotExistException ( arg0 + "srini_string" ) ; } if ( arg0 == currentlyRunningSyncEvent ) { currentlyRunningSyncEvent = - 1 ; } eventPool . get ( arg0 ) . stop ( ) ; eventPool . remove ( arg0 ) ; }
Generate a Java code for the following instruction: sets the value of the quotausedbytes 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 getcontentlanguage ...
void function ( QuotaUsedBytes arg0 ) { this . quotaUsedBytes = arg0 ; }
Generate a Java code for the following instruction: called by a server to deserialize a request , compute and serialize a response or error . concode_field_sep Map<MD5,Protocol> protocols concode_elem_sep Logger LOG concode_elem_sep GenericDatumReader<Map<String,ByteBuffer>> META_READER concode_elem_sep List<RPCPlugin>...
List < ByteBuffer > function ( List < ByteBuffer > arg0 ) { return respond ( arg0 , null ) ; }
Generate a Java code for the following instruction: get a java class from its name . concode_field_sep PlaceHolder placeHolder concode_field_sep ClassLoader getDefaultClassLoader concode_elem_sep boolean isPresent concode_elem_sep Object getNewInstance
Class < ? > function ( String arg0 ) { try { return Class . forName ( arg0 ) ; } catch ( ClassNotFoundException loc0 ) { Thread loc1 = Thread . currentThread ( ) ; ClassLoader loc2 = loc1 . getContextClassLoader ( ) ; return Class . forName ( arg0 , false , loc2 ) ; } }
Generate a Java code for the following instruction: perform validation of the filter state . this is used to verify the state of the filter after its enablement and before its use . concode_field_sep String MARKER concode_elem_sep Map<String,Object> parameters concode_elem_sep String filterName concode_elem_sep FilterD...
void function ( ) { for ( final String loc0 : definition . getParameterNames ( ) ) { if ( parameters . get ( loc0 ) == null ) { throw new HibernateException ( "srini_string" + getName ( ) + "srini_string" + loc0 + "srini_string" ) ; } } }
Generate a Java code for the following instruction: get the list of iterators unmodifiable concode_field_sep Iterator lastUsedIterator concode_elem_sep boolean isLocked concode_elem_sep Iterator currentIterator concode_elem_sep List iteratorChain concode_elem_sep int currentIteratorIndex concode_field_sep Object next c...
List function ( ) { return UnmodifiableList . decorate ( iteratorChain ) ; }
Generate a Java code for the following instruction: leert den puffer . concode_field_sep ZeroBuffer zeroBuffer concode_elem_sep int pointer concode_elem_sep char last concode_elem_sep State state concode_elem_sep AMI.Medium medium concode_elem_sep StringBuilder buffer concode_elem_sep int dc concode_field_sep State nex...
void function ( ) { pointer = - 1 ; }
Generate a Java code for the following instruction: returns an image stored in the file at the specified path concode_field_sep HashMap m_ClassImageMap concode_field_sep void clearImages concode_elem_sep ImageIcon getIcon concode_elem_sep ImageIcon getIcon concode_elem_sep ImageIcon getIcon concode_elem_sep ImageIcon g...
Image function ( String arg0 ) { return getImage ( "srini_string" , arg0 ) ; }
Generate a Java code for the following instruction: rgb in the range 0,1 to ycc in the range y = 0,1 , cb =[ -0.5,0.5 , cr =[ -0.5,0.5 concode_field_sep int bits concode_elem_sep String name concode_elem_sep int mask concode_field_sep int getBits concode_elem_sep void RGBtoYUV concode_elem_sep void RGBtoYIQ concode_ele...
void function ( float [ ] arg0 , float [ ] arg1 ) { float loc0 = max ( 0f , min ( 1f , arg0 [ 0 ] ) ) ; float loc1 = max ( 0f , min ( 1f , arg0 [ 1 ] ) ) ; float loc2 = max ( 0f , min ( 1f , arg0 [ 2 ] ) ) ; float loc3 = 0.3f * loc0 + 0.6f * loc1 + 0.1f * loc2 ; float loc4 = loc0 - loc3 ; float loc5 = loc2 - loc3 ; flo...
Generate a Java code for the following instruction: read a hashmap from a parcel , class of key and value can parcelable both concode_field_sep PlaceHolder placeHolder concode_field_sep void writeHashMap concode_elem_sep Map<String,String> readHashMapStringAndString concode_elem_sep void writeHashMapStringAndString con...
Map < K , V > function ( Parcel arg0 , ClassLoader arg1 ) { if ( arg0 == null ) { return null ; } int loc0 = arg0 . readInt ( ) ; if ( loc0 == - 1 ) { return null ; } Map < K , V > loc1 = new HashMap < K , V > ( ) ; for ( int loc2 = 0 ; loc2 < loc0 ; loc2 ++ ) { loc1 . put ( ( K ) arg0 . readParcelable ( arg1 ) , ( V )...
Generate a Java code for the following instruction: to test the behavior outside of the as i.e. org.jboss.as.naming.initialcontext is not used . concode_field_sep URL webAppURL concode_elem_sep LdapServer ldapServer concode_elem_sep boolean removeBouncyCastle concode_elem_sep ManagementClient mgmtClient concode_elem_se...
void function ( String [ ] arg0 ) { LDAPServerSetupTask loc0 = new LDAPServerSetupTask ( ) ; loc0 . setup ( null , null ) ; loc0 . tearDown ( null , null ) ; }
Generate a Java code for the following instruction: executes org.jclouds.crypto.pems #publickeyspecfromopenssh com.google.common.io.inputsupplier on thestring which was openssh base64 encoded id_rsa . pub concode_field_sep Map<String,ECParameterSpec> CURVES concode_elem_sep String NISTP384 concode_elem_sep Map<Integer,...
ECPublicKeySpec function ( String arg0 ) { try { return publicKeySpecFromOpenSSH ( ByteSource . wrap ( arg0 . getBytes ( Charsets . UTF_8 ) ) ) ; } catch ( IOException loc0 ) { throw propagate ( loc0 ) ; } }
Generate a Java code for the following instruction: returns an unmodifiable floatlist containing only the specified element . concode_field_sep FloatIterator EMPTY_FLOAT_ITERATOR concode_elem_sep FloatListIterator EMPTY_FLOAT_LIST_ITERATOR concode_elem_sep FloatList EMPTY_FLOAT_LIST concode_field_sep FloatListIterator ...
FloatList function ( float arg0 ) { FloatList loc0 = new ArrayFloatList ( 1 ) ; loc0 . add ( arg0 ) ; return UnmodifiableFloatList . wrap ( loc0 ) ; }
Generate a Java code for the following instruction: checks the last token against the given tags ? concode_field_sep LinkedList<Integer> fSentenceBreaks concode_elem_sep String fDelimiter concode_elem_sep int WHITE_SPACE_TOKEN concode_elem_sep int fOffset concode_elem_sep int fNext concode_elem_sep int fPredecessor con...
boolean function ( final String [ ] arg0 ) { return isToken ( fLastToken , arg0 ) ; }
Generate a Java code for the following instruction: convert a timestamp to the number of milliseconds elapsed from the epoch . the result will be rounded down to the nearest millisecond . e.g. , if the timestamp represents `` 1969-12-31t23:59:59 .999999999 z '' , it will be rounded to -1 millisecond . concode_field_sep...
long function ( Timestamp arg0 ) { return Timestamps . toMillis ( arg0 ) ; }
Generate a Java code for the following instruction: sets the output message . concode_field_sep String inputInfo concode_elem_sep String outputMessage concode_elem_sep List<String> validatorErrorMessage concode_field_sep List<String> getValidatorErrorMessage concode_elem_sep String getInputInfo concode_elem_sep void se...
void function ( String arg0 ) { this . outputMessage = arg0 ; }
Generate a Java code for the following instruction: replacement operation . requires : t ! = null & & 0 e.g. given a rattermvec v = t2 , t3 , t4 , the statement `` v.set t5 , 1 ; '' will make v_post = t2 , t5 , t4 . concode_field_sep Vector underlying_terms concode_elem_sep RatTerm[] terms concode_field_sep int size co...
void function ( RatTerm arg0 , int arg1 ) { underlying_terms . setElementAt ( arg0 , arg1 ) ; terms = ( RatTerm [ ] ) underlying_terms . toArray ( new RatTerm [ ] { } ) ; }
Generate a Java code for the following instruction: return the singleton catalogfactory instancefor the relevant classloader . for applications that use a thread context class loader such as web applications running inside a servet container , this will return a separate instance for each application , even if this cla...
CatalogFactory function ( ) { CatalogFactory loc0 = null ; ClassLoader loc1 = getClassLoader ( ) ; synchronized ( factories ) { loc0 = ( CatalogFactory ) factories . get ( loc1 ) ; if ( loc0 == null ) { loc0 = new CatalogFactoryBase ( ) ; factories . put ( loc1 , loc0 ) ; } } return loc0 ; }
Generate a Java code for the following instruction: tests that the viewinterfaces #getpotentialviewinterfaces class returns the correctimplementation class for groovy class implementing messagelistener interface . concode_field_sep PlaceHolder placeHolder concode_field_sep void testJavaClass
void function ( ) { Set loc0 = ViewInterfaces . getPotentialViewInterfaces ( TestGroovyMessageListener . class ) ; Assert . assertEquals ( "srini_string" , 1 , loc0 . size ( ) ) ; Assert . assertEquals ( "srini_string" , MessageListener . class , loc0 . iterator ( ) . next ( ) ) ; }
Generate a Java code for the following instruction: add a resolver at the beginning of the underlying resolver list . the resolver added by this method is at higher priority than any other existing resolvers . concode_field_sep CoreMessageLogger LOG concode_elem_sep List<DialectResolver> resolvers concode_field_sep voi...
void function ( DialectResolver arg0 ) { resolvers . add ( 0 , arg0 ) ; }
Generate a Java code for the following instruction: get the qualified prefixed by alias names of the columns of the owning entity which are to be used in the join concode_field_sep PlaceHolder placeHolder concode_field_sep String[] getRHSColumnNames concode_elem_sep String getLHSTableName concode_elem_sep String[] getL...
String [ ] function ( AssociationType arg0 , String arg1 , int arg2 , OuterJoinLoadable arg3 , Mapping arg4 ) { return getAliasedLHSColumnNames ( arg0 , arg1 , arg2 , 0 , arg3 , arg4 ) ; }
Generate a Java code for the following instruction: will construct underlying dom element if it is not already constructed . concode_field_sep List<LazyEventListenerAttacher<?>> listenerAttachers concode_elem_sep String cssClassName concode_elem_sep ManagesEventListeners listenerManager concode_elem_sep Element element...
Element function ( ) { if ( element == null ) { element = createElement ( ) ; element . setClassName ( cssClassName ) ; hookListeners ( ) ; } return element ; }
Generate a Java code for the following instruction: set the i-th slot to the given outcome . concode_field_sep Sequence owner concode_elem_sep List<ExecutionOutcome> theList concode_field_sep int size concode_elem_sep ExecutionOutcome get
void function ( int arg0 , ExecutionOutcome arg1 ) { if ( arg0 < 0 || arg0 >= theList . size ( ) ) throw new IllegalArgumentException ( "srini_string" + arg0 ) ; if ( arg1 == null ) throw new IllegalArgumentException ( "srini_string" ) ; theList . set ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: creates a new tag object from the given parameters . concode_field_sep ThreadLocal<WorkerContextImpl> context concode_elem_sep boolean parseHtml concode_elem_sep Pipeline<?> rootpPipe concode_field_sep void closeLocalWC concode_elem_sep void init concode_elem_sep void...
Tag function ( String arg0 , final Map < String , String > arg1 , final String arg2 ) { if ( parseHtml ) { arg0 = arg0 . toLowerCase ( ) ; } Tag loc0 = new Tag ( arg0 , arg1 , arg2 ) ; return loc0 ; }
Generate a Java code for the following instruction: creates a org.apache.drill.jdbc.nonclosableconnection connection and caches it.the returned org.apache.drill.jdbc.nonclosableconnection connection does not support java.sql.connection #close . consumer must call #close to close the cached connections . concode_field_s...
Connection function ( ConnectionInfo arg0 ) { Connection loc0 = cache . get ( arg0 ) ; if ( loc0 == null ) { loc0 = delegate . getConnection ( arg0 ) ; cache . put ( arg0 , loc0 ) ; } return new NonClosableConnection ( loc0 ) ; }
Generate a Java code for the following instruction: returns a line-by-line interator for this file . concode_field_sep String lineSep concode_elem_sep Pattern entry_stop_re concode_elem_sep String first_line concode_elem_sep BufferedReader reader concode_elem_sep Pattern include_re concode_elem_sep Pattern comment_re c...
Iterator < String > function ( ) { return this ; }
Generate a Java code for the following instruction: verify if the getters of a rainbowfish return the expected values concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
void function ( ) { final RainbowFish loc0 = new RainbowFish ( "srini_string" , 1 , 2 , 3 ) ; assertEquals ( "srini_string" , loc0 . getName ( ) ) ; assertEquals ( 1 , loc0 . getAge ( ) ) ; assertEquals ( 2 , loc0 . getLengthMeters ( ) ) ; assertEquals ( 3 , loc0 . getWeightTons ( ) ) ; }
Generate a Java code for the following instruction: returns the current player 's number concode_field_sep PlayerNum number concode_elem_sep boolean inCheck concode_elem_sep boolean playing concode_elem_sep boolean human concode_field_sep void setInCheck concode_elem_sep boolean inCheck concode_elem_sep boolean playing...
PlayerNum function ( ) { return number ; }
Generate a Java code for the following instruction: returns java flag concode_field_sep char character concode_elem_sep int flag concode_elem_sep List<RegexFlag> regexFlags concode_elem_sep Map<Character,RegexFlag> characterToRegexFlagMap concode_elem_sep boolean supported concode_field_sep int compare concode_elem_sep...
int function ( ) { return flag ; }
Generate a Java code for the following instruction: get a product element from a long value . 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 concode_elem_sep...
Product < C > function ( long arg0 ) { return fromInteger ( new java . math . BigInteger ( "srini_string" + arg0 ) ) ; }
Generate a Java code for the following instruction: reads the contents of a file to a string . concode_field_sep PlaceHolder placeHolder concode_field_sep String unEscapeURL concode_elem_sep URL toURL concode_elem_sep char[] copyOfRange concode_elem_sep boolean isSurrogatePair concode_elem_sep boolean isSurrogatePair c...
String function ( final File arg0 ) { byte [ ] loc0 = new byte [ ( int ) arg0 . length ( ) ] ; FileInputStream loc1 = new FileInputStream ( arg0 ) ; loc1 . read ( loc0 ) ; return new String ( loc0 ) ; }
Generate a Java code for the following instruction: return the default value for a given configkey concode_field_sep boolean secretValue concode_elem_sep String envName concode_elem_sep String defaultValue concode_elem_sep String value concode_field_sep String getPropertyValue concode_elem_sep String getProperty concod...
String function ( ConfigKey arg0 ) { return arg0 . getDefaultValue ( ) ; }
Generate a Java code for the following instruction: test method for com.itextpdf.text.html.webcolors #getrgbcolor java.lang.string . concode_field_sep String RGB_PERCENT concode_elem_sep String RGB_OUT_OF_RANGE concode_elem_sep String RGB_MISSING_COLOR_VALUES concode_field_sep String dumpColor concode_elem_sep void tes...
void function ( ) { assertEquals ( 84 , WebColors . getRGBColor ( RGB_PERCENT ) . getGreen ( ) ) ; }
Generate a Java code for the following instruction: given an operator type , this method returns an array of metric names indexable by metric id . concode_field_sep String[][] OPERATOR_METRICS concode_field_sep void register
String [ ] function ( final int arg0 ) { return OPERATOR_METRICS [ arg0 ] ; }
Generate a Java code for the following instruction: invokes the underlying map #keyset method . concode_field_sep Map map concode_field_sep Set entrySet concode_elem_sep boolean containsKey concode_elem_sep Collection values concode_elem_sep void clear concode_elem_sep boolean isEmpty concode_elem_sep boolean containsV...
Set function ( ) { return map . keySet ( ) ; }
Generate a Java code for the following instruction: add a node corresponding to an intersection at a geographic point if the location is already in the graph or null , this method does not change the graph . concode_field_sep PlaceHolder placeHolder concode_field_sep int getNumEdges concode_elem_sep Set<GeographicPoint...
boolean function ( GeographicPoint arg0 ) { return false ; }
Generate a Java code for the following instruction: this gets called whenever a session is invalidated because of user logout or timed out . concode_field_sep DrillbitContext drillbitContext concode_elem_sep org.slf4j.Logger logger concode_elem_sep IdentityService identityService concode_field_sep IdentityService getId...
void function ( UserIdentity arg0 ) { final DrillUserPrincipal loc0 = ( DrillUserPrincipal ) arg0 . getUserPrincipal ( ) ; try { loc0 . close ( ) ; } catch ( final Exception loc1 ) { logger . error ( "srini_string" , loc1 ) ; } }
Generate a Java code for the following instruction: gets the entry value . concode_field_sep boolean modifiable concode_elem_sep Object value concode_elem_sep Object key concode_field_sep Object getKey concode_elem_sep int hashCode concode_elem_sep Object setValue concode_elem_sep boolean equals
Object function ( ) { return value ; }
Generate a Java code for the following instruction: mark the deployment as a cdi one . concode_field_sep AttachmentKey<Boolean> ATTACHMENT_KEY concode_field_sep boolean cdiAnnotationsPresent
void function ( final DeploymentUnit arg0 ) { if ( arg0 . getParent ( ) != null ) { arg0 . getParent ( ) . putAttachment ( ATTACHMENT_KEY , true ) ; } else { arg0 . putAttachment ( ATTACHMENT_KEY , true ) ; } }
Generate a Java code for the following instruction: returns content encoding of the entity , if set . concode_field_sep File file concode_elem_sep boolean gzipCompress concode_elem_sep InputStream stream concode_elem_sep byte[] binary concode_elem_sep String contentEncoding concode_elem_sep boolean chunked concode_elem...
String function ( ) { return contentEncoding ; }
Generate a Java code for the following instruction: preprocess the specified file . if no changes were necessary , the the file is not modified . concode_field_sep boolean found concode_elem_sep Pattern pattern concode_elem_sep File currentFile concode_elem_sep String replacement concode_elem_sep List<LineProcessor> li...
boolean function ( File arg0 ) { currentFile = arg0 ; String loc0 = process0 ( arg0 ) ; currentFile = null ; if ( loc0 == null ) return false ; FileWriter loc1 = new FileWriter ( arg0 ) ; try { loc1 . write ( loc0 ) ; } finally { loc1 . close ( ) ; } return true ; }
Generate a Java code for the following instruction: returns whether two variables are comparable . concode_field_sep Logger debug concode_elem_sep int IMPLICIT concode_elem_sep int NONE concode_field_sep VarComparability makeComparabilitySameIndices concode_elem_sep VarComparability makeAlias concode_elem_sep VarCompar...
boolean function ( VarInfo arg0 , VarInfo arg1 ) { return comparable ( arg0 . comparability , arg1 . comparability ) ; }
Generate a Java code for the following instruction: returns the sum of the sizes of the entries in this cache . concode_field_sep int evictionCount concode_elem_sep int putCount concode_elem_sep int hitCount concode_elem_sep int size concode_elem_sep int maxSize concode_elem_sep LinkedHashMap<String,Bitmap> map concode...
int function ( ) { return size ; }
Generate a Java code for the following instruction: returns the junit test suite for this package . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
Test function ( ) { TestSuite loc0 = new TestSuite ( "srini_string" ) ; loc0 . addTest ( TestTreeSetGreedy . loc0 ( ) ) ; loc0 . addTest ( TestRingBufferArrayFast . loc0 ( ) ) ; return loc0 ; }
Generate a Java code for the following instruction: create a new taskmanger with only those tasks in milestone concode_field_sep String lineSep concode_elem_sep Date assigned_date concode_elem_sep String notes concode_elem_sep String milestone concode_elem_sep OutputFormat format concode_elem_sep String comment_re conc...
TaskManager function ( String arg0 ) { TaskManager loc0 = new TaskManager ( ) ; if ( arg0 == null ) return loc0 ; for ( Task loc1 : tasks ) { if ( arg0 . equalsIgnoreCase ( loc1 . arg0 ) ) loc0 . add ( loc1 ) ; } return loc0 ; }
Generate a Java code for the following instruction: test of equals method , of class student . concode_field_sep PlaceHolder placeHolder concode_field_sep void gendervalueTest concode_elem_sep void nameTest concode_elem_sep void namevalueTest concode_elem_sep void testsameiddifferentnameEquals concode_elem_sep void nam...
void function ( ) { System . out . println ( "srini_string" ) ; Student loc0 = new Student ( ) ; loc0 . setName ( "srini_string" ) ; loc0 . setId ( "srini_string" ) ; Student loc1 = new Student ( ) ; loc1 . setName ( "srini_string" ) ; loc1 . setId ( "srini_string" ) ; assertEquals ( loc0 , loc1 ) ; }
Generate a Java code for the following instruction: returns the contents of the text widgets in the dialog in a string array . concode_field_sep ResourceBundle resAddressBook concode_elem_sep Shell shell concode_elem_sep String[] values concode_elem_sep String[] labels concode_field_sep String[] getLabels concode_elem_...
String [ ] function ( ) { return values ; }
Generate a Java code for the following instruction: gets the maximum number of allowed persistent connections . concode_field_sep int leased concode_elem_sep int max concode_elem_sep int pending concode_elem_sep int available concode_field_sep String toString concode_elem_sep int getPending concode_elem_sep int getAvai...
int function ( ) { return this . max ; }
Generate a Java code for the following instruction: returns true if the element has already been created . concode_field_sep List<LazyEventListenerAttacher<?>> listenerAttachers concode_elem_sep String cssClassName concode_elem_sep ManagesEventListeners listenerManager concode_elem_sep Element element concode_field_sep...
boolean function ( ) { return element != null ; }
Generate a Java code for the following instruction: test method for com.flatironschool.javacs.mylinearmap #containskey java.lang.object . concode_field_sep Map<String,Integer> map concode_field_sep void testContainsValue concode_elem_sep void testClear concode_elem_sep void testKeySet concode_elem_sep void testGet conc...
void function ( ) { assertThat ( map . containsKey ( "srini_string" ) , is ( true ) ) ; assertThat ( map . containsKey ( null ) , is ( true ) ) ; assertThat ( map . containsKey ( "srini_string" ) , is ( false ) ) ; }
Generate a Java code for the following instruction: get kdc flags 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_...
String function ( String arg0 ) { return ZKUtil . joinZNode ( getIndentityZNode ( arg0 ) , KDC_FLAGS_ZNODE_NAME ) ; }
Generate a Java code for the following instruction: returns the condition checking failed severity used by this operation . concode_field_sep Change fChange concode_elem_sep int fConditionCheckingFailedSeverity concode_elem_sep CheckConditionsOperation fCheckConditionOperation concode_elem_sep Refactoring fRefactoring ...
int function ( ) { return fConditionCheckingFailedSeverity ; }
Generate a Java code for the following instruction: random matrix . concode_field_sep int blocksize concode_elem_sep GenMatrix<C> ZERO concode_elem_sep int DEFAULT_BSIZE concode_elem_sep GenMatrix<C> ONE concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep...
GenMatrix < C > function ( int arg0 , Random arg1 ) { return arg1 ( arg0 , density , arg1 ) ; }
Generate a Java code for the following instruction: random number generator used by the orignal bh benchmark . concode_field_sep int nbody concode_elem_sep boolean printMsgs concode_elem_sep int nsteps concode_elem_sep double TSTOP concode_elem_sep boolean printResults concode_elem_sep double DTIME concode_field_sep vo...
double function ( double arg0 ) { double loc0 = 16807.0 * arg0 + 1 ; arg0 = loc0 - ( 2147483647.0 * Math . floor ( loc0 / 2147483647.0 ) ) ; return arg0 ; }
Generate a Java code for the following instruction: parses a jerry page and returns the events found in the json of this page concode_field_sep String url concode_field_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_elem_sep List<Event> getEvents concode_...
List < Event > function ( String arg0 ) { List < Event > loc0 = new ArrayList < Event > ( ) ; JSONEvent [ ] loc1 = new Gson ( ) . fromJson ( arg0 , JSONEvent [ ] . class ) ; for ( JSONEvent loc2 : loc1 ) { loc0 . add ( new Event ( loc2 . getId ( ) , loc2 . getTitle ( ) , loc2 . getDescription ( ) , loc2 . getStart ( ) ...
Generate a Java code for the following instruction: gets the topmost y-position of the bounding box . concode_field_sep JLabel label concode_elem_sep double xGrow concode_elem_sep double yGrow concode_elem_sep double x concode_elem_sep double y concode_elem_sep Color color concode_field_sep int getX concode_elem_sep in...
int function ( ) { return ( int ) Math . round ( y - yGrow ) ; }
Generate a Java code for the following instruction: creates builder to build path . concode_field_sep String path concode_elem_sep Path EMPTY concode_elem_sep String relativeTo concode_field_sep Builder withPath concode_elem_sep Path build concode_elem_sep String getPath concode_elem_sep String asString concode_elem_se...
Builder function ( ) { return new Builder ( ) ; }
Generate a Java code for the following instruction: find the constructor for the class specified . concode_field_sep Object[] iArgs concode_elem_sep Constructor iConstructor concode_elem_sep Class iClassToInstantiate concode_elem_sep long serialVersionUID concode_elem_sep Class[] iParamTypes concode_field_sep Object cr...
void function ( ) { try { iConstructor = iClassToInstantiate . getConstructor ( iParamTypes ) ; } catch ( NoSuchMethodException loc0 ) { throw new IllegalArgumentException ( "srini_string" ) ; } }
Generate a Java code for the following instruction: returns the polygon 's vertices . first and last vertex are equal . concode_field_sep List<VectorXZ> vertexLoop concode_field_sep List<VectorXZ> getVertexCollection concode_elem_sep VectorXZ getCenter concode_elem_sep boolean intersects concode_elem_sep boolean inters...
List < VectorXZ > function ( ) { return vertexLoop ; }
Generate a Java code for the following instruction: creates a new tabulardata concode_field_sep long executionMaxTime concode_elem_sep String[] ITEM_DESCRIPTIONS concode_elem_sep long cacheHitCount concode_elem_sep String query concode_elem_sep String TABULAR_TYPE_NAME concode_elem_sep long cachePutCount concode_elem_s...
TabularData function ( ) { return new TabularDataSupport ( TABULAR_TYPE ) ; }
Generate a Java code for the following instruction: sets the comment for the select statement . concode_field_sep LockOptions lockOptions concode_elem_sep int guesstimatedBufferSize concode_elem_sep StringBuilder whereClause concode_elem_sep Dialect dialect concode_elem_sep StringBuilder selectClause concode_elem_sep S...
void function ( String arg0 ) { this . comment = arg0 ; this . guesstimatedBufferSize += arg0 . length ( ) ; }
Generate a Java code for the following instruction: sets the parent link of the given entry to the given id concode_field_sep boolean forward concode_elem_sep Logger LOGGER concode_field_sep Comparator<BaseContentEntry<?>> getUpdatedComparator concode_elem_sep void setContent concode_elem_sep Comparator<BaseContentEntr...
void function ( BaseContentEntry < ? > arg0 , String arg1 ) { arg0 . addLink ( SitesLink . Rel . PARENT , ILink . Type . ATOM , arg1 ) ; }
Generate a Java code for the following instruction: adds a new row to the table . concode_field_sep Map<String,String> styles concode_elem_sep List<List<PdfPCell>> rows concode_elem_sep float[] colWidths concode_field_sep PdfPTable createTable concode_elem_sep boolean process concode_elem_sep void setColWidths concode_...
void function ( List < PdfPCell > arg0 ) { if ( arg0 != null ) { Collections . reverse ( arg0 ) ; rows . add ( arg0 ) ; arg0 = null ; } }
Generate a Java code for the following instruction: gets the temporary properties file . concode_field_sep File customPropertiesFile concode_elem_sep Properties properties concode_elem_sep File tempPropertiesFile concode_field_sep void ImportProperties concode_elem_sep File getCustomPropertiesFile concode_elem_sep File...
File function ( ) { return tempPropertiesFile ; }
Generate a Java code for the following instruction: returns the cached . concode_field_sep FooComponent[] components concode_elem_sep List fees concode_elem_sep List bazez concode_elem_sep List subs concode_elem_sep FooProxy foo concode_elem_sep Collection bag concode_elem_sep Date[] timeArray concode_elem_sep FooProxy...
Set function ( ) { return cached ; }
Generate a Java code for the following instruction: is fatal logging currently enabled ? concode_field_sep String name concode_elem_sep Logger logger concode_field_sep void debug concode_elem_sep void debug concode_elem_sep void log concode_elem_sep Logger getLogger concode_elem_sep boolean isWarnEnabled concode_elem_s...
boolean function ( ) { return ( getLogger ( ) . isLoggable ( Level . SEVERE ) ) ; }
Generate a Java code for the following instruction: gets a comparator that compares using two comparator s . the second comparator is used if the first comparator returns equal . concode_field_sep Comparator NATURAL_COMPARATOR concode_field_sep Comparator transformedComparator concode_elem_sep Object min concode_elem_s...
Comparator function ( Comparator arg0 , Comparator arg1 ) { return chainedComparator ( new Comparator [ ] { arg0 , arg1 } ) ; }
Generate a Java code for the following instruction: log an error with debug log level . concode_field_sep Date date concode_elem_sep int LOG_LEVEL_DEBUG concode_elem_sep int level concode_elem_sep Throwable throwable concode_elem_sep List logEntries concode_elem_sep int LOG_LEVEL_OFF concode_elem_sep Object message con...
void function ( Object arg0 , Throwable arg1 ) { if ( isLevelEnabled ( MemoryLog . LOG_LEVEL_DEBUG ) ) { log ( MemoryLog . LOG_LEVEL_DEBUG , arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: create an instance of locktype concode_field_sep QName _SyncToken_QNAME concode_elem_sep QName _Dst_QNAME concode_elem_sep QName _SyncLevel_QNAME concode_elem_sep QName _Status_QNAME concode_elem_sep QName _Depth_QNAME concode_elem_sep QName _Responsedescription_QNAME...
Locktype function ( ) { return new Locktype ( ) ; }
Generate a Java code for the following instruction: returns the interleave of frames in this movie track . this is 2 for double buffered animations , and 1 one for animations without double buffering . concode_field_sep int xPosition concode_elem_sep boolean isPlayWrapupFrames concode_elem_sep int CMP_VERTICAL concode_...
int function ( ) { return frames_ . size ( ) > 0 && ( ( ANIMFrame ) frames_ . get ( frames_ . size ( ) - 1 ) ) . getInterleave ( ) == 1 ? 1 : 2 ; }
Generate a Java code for the following instruction: returns the string of xml corresponding to this xmlelement . concode_field_sep List<Pair<Object,ChildType>> children concode_elem_sep Map<String,String> attributes concode_elem_sep String elementType concode_field_sep XmlElement addXml concode_elem_sep XmlElement setA...
String function ( ) { StringBuilder loc0 = new StringBuilder ( ) ; try { appendTo ( loc0 ) ; } catch ( IOException loc1 ) { throw new RuntimeException ( loc1 ) ; } return loc0 . toString ( ) ; }
Generate a Java code for the following instruction: compute the base64 encoded size for a stream whose size is specified in the incoming parameter concode_field_sep byte[] decodingTable concode_elem_sep byte[] encodingTable concode_field_sep void encode concode_elem_sep byte[] encode concode_elem_sep byte[] discardNonB...
int function ( int arg0 ) { int loc0 ; int loc1 = arg0 % 3 ; if ( loc1 == 0 ) { loc0 = 4 * arg0 / 3 ; } else { loc0 = 4 * ( ( arg0 / 3 ) + 1 ) ; } return loc0 ; }
Generate a Java code for the following instruction: returns an iterator that returns aggregated values based on the delta finds the max value within each delta . concode_field_sep Entry<Double,Integer> next concode_elem_sep Integer HIGHLIGHT_CRITICAL concode_elem_sep Iterator<Entry<Double,Integer>> subMapIterator conco...
Iterator < HighlightEntry > function ( final double arg0 , final double arg1 , final double arg2 ) { return new HighlightIterator ( arg0 , arg1 , arg2 ) ; }
Generate a Java code for the following instruction: apply an `` ilike '' constraint concode_field_sep PropertyNameGetter propertyNameGetter concode_field_sep AuditCriterion hasNotChanged concode_elem_sep AuditCriterion lt concode_elem_sep AuditProjection distinct concode_elem_sep AuditCriterion leProperty concode_elem_...
AuditCriterion function ( String arg0 , MatchMode arg1 ) { return new IlikeAuditExpression ( propertyNameGetter , arg1 . toMatchString ( arg0 ) ) ; }
Generate a Java code for the following instruction: tries to execute the script with the given script path . concode_field_sep Logger log concode_field_sep List<File> getScriptFiles concode_elem_sep void runSystemCall concode_elem_sep void getAndExecuteScriptFromGeneratedConfig concode_elem_sep String makeScriptExecuta...
void function ( String arg0 ) { if ( arg0 != null ) { runSystemCall ( arg0 ) ; log . info ( arg0 + "srini_string" ) ; } else { throw new ScriptExecutionException ( "srini_string" , REASON . NOTAVAILABLE ) ; } }
Generate a Java code for the following instruction: logs the given exception using the platform 's logging mechanism . the exception is logged as an error with the error code javastatusconstants.internal _ error . concode_field_sep ExceptionHandler fgInstance concode_field_sep void displayMessageDialog concode_elem_sep...
void function ( Throwable arg0 , String arg1 ) { JavaPlugin . log ( new Status ( IStatus . ERROR , JavaPlugin . getPluginId ( ) , IJavaStatusConstants . INTERNAL_ERROR , arg1 , arg0 ) ) ; }
Generate a Java code for the following instruction: format a message to the given user with the given subject and message body , including a cc list . concode_field_sep String[] HTTP concode_field_sep String encodeForMail concode_elem_sep void open concode_elem_sep void open
void function ( String arg0 , String arg1 , String arg2 , String arg3 ) { mail ( arg0 , arg1 , arg2 , arg3 , null ) ; }
Generate a Java code for the following instruction: finds the first node of the specified type in the chain of children . concode_field_sep FilterPredicate predicate concode_elem_sep List collectedNodes concode_field_sep AST getLastSibling concode_elem_sep AST findPreviousSibling concode_elem_sep String getPathText con...
AST function ( AST arg0 , int arg1 ) { AST loc0 = arg0 . getFirstChild ( ) ; while ( loc0 != null && loc0 . getType ( ) != arg1 ) { loc0 = loc0 . getNextSibling ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: test a requestdispatcher forward with tx commit . concode_field_sep String STATUS_ACTIVE concode_elem_sep Logger log concode_field_sep void testIncludeNoCommit concode_elem_sep void testForwardNoCommit concode_elem_sep WebArchive statusDeployment concode_elem_sep void...
void function ( @ ArquillianResource ( TxControlServlet . class ) URL arg0 ) { testURL ( arg0 , false , true ) ; }
Generate a Java code for the following instruction: precomputes and saves the next element of the iterable . null is considered as end of data . concode_field_sep E next concode_elem_sep Iterator<E> fromIterator concode_field_sep E next concode_elem_sep E computeNext
boolean function ( ) { next = computeNext ( ) ; return next != null ; }
Generate a Java code for the following instruction: get full polynomial . 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_elem_sep boole...
GenPolynomial < GenPolynomial < C >> function ( ) { GenPolynomial < GenPolynomial < C >> loc0 = green . sum ( red ) . sum ( white ) ; int loc1 = green . length ( ) + red . length ( ) + white . length ( ) ; int loc2 = loc0 . length ( ) ; if ( loc2 != loc1 ) { throw new RuntimeException ( "srini_string" + loc1 + "srini_s...
Generate a Java code for the following instruction: helper method that prints out a byte string as a series of integer or ascii characters . concode_field_sep PlaceHolder placeHolder concode_field_sep void print concode_elem_sep void print concode_elem_sep void printMap concode_elem_sep void printList concode_elem_sep ...
void function ( byte [ ] arg0 , boolean arg1 , int arg2 ) { for ( int loc0 = 0 ; loc0 < arg2 ; loc0 ++ ) System . out . print ( "srini_string" ) ; System . out . print ( "srini_string" ) ; for ( int loc0 = 0 ; loc0 < arg0 . length ; loc0 ++ ) { System . out . print ( arg1 ? ( char ) arg0 [ loc0 ] : ( int ) arg0 [ loc0 ...
Generate a Java code for the following instruction: get the content of the given element . concode_field_sep PlaceHolder placeHolder concode_field_sep Element getUniqueChild concode_elem_sep boolean getOptionalChildBooleanContent concode_elem_sep Iterator getChildrenByTagName concode_elem_sep Element getOptionalChild c...
String function ( final Element arg0 ) { return getElementContent ( arg0 , null ) ; }
Generate a Java code for the following instruction: return root schema with schema owner as the given user . concode_field_sep UserSession session concode_elem_sep OptionManager queryOptions concode_elem_sep ContextInformation contextInformation concode_elem_sep PlannerSettings plannerSettings concode_elem_sep SchemaTr...
SchemaPlus function ( final String arg0 ) { return schemaTreeProvider . createRootSchema ( arg0 , this ) ; }
Generate a Java code for the following instruction: sets the global config object that contains kademlia-wide constants . this method has an effect only if a config object has never been set before . concode_field_sep KademliaSetup singleton concode_elem_sep WorkloadGenerator workloadGen concode_elem_sep Logger log con...
void function ( final String arg0 ) { if ( config == null ) { config = new FileConfig ( arg0 ) ; log . info ( "srini_string" + arg0 + "srini_string" ) ; } }
Generate a Java code for the following instruction: remove them measured rtt from host to monitor concode_field_sep int MONITOR concode_elem_sep AverageAccumulator avgPingAttemptsPerNode concode_elem_sep long serialVersionUID concode_elem_sep double latitude concode_elem_sep String city concode_elem_sep String isp conc...
void function ( Host arg0 ) { rttToMonitors . remove ( arg0 ) ; }
Generate a Java code for the following instruction: sets the value associated with all existing keys to newvalue . concode_field_sep SortedMap<K,V> kSmallest concode_elem_sep int k concode_field_sep boolean containsKey concode_elem_sep Collection<V> values concode_elem_sep void clear concode_elem_sep boolean isInRange ...
void function ( final V arg0 ) { for ( final K loc0 : kSmallest . keySet ( ) ) { kSmallest . put ( loc0 , arg0 ) ; } }
Generate a Java code for the following instruction: declare an image in the registry table . concode_field_sep String IMG_OBJ_JSP concode_elem_sep String OBJECT concode_elem_sep ImageRegistry imageRegistry concode_elem_sep String IMG_OBJ_TOMCAT concode_elem_sep URL ICON_BASE_URL concode_elem_sep HashMap imageDescriptor...
void function ( String arg0 , String arg1 ) { ImageDescriptor loc0 = ImageDescriptor . getMissingImageDescriptor ( ) ; try { loc0 = ImageDescriptor . createFromURL ( makeIconFileURL ( arg1 ) ) ; } catch ( MalformedURLException loc1 ) { DebugPlugin . log ( loc1 ) ; } imageRegistry . put ( arg0 , loc0 ) ; imageDescriptor...
Generate a Java code for the following instruction: prints the ast in ` ascii art ' tree form to the specified print writer . concode_field_sep boolean showClassNames concode_elem_sep Map tokenTypeNameCache concode_field_sep String showAsString concode_elem_sep String nodeToString concode_elem_sep void showNode concode...
void function ( AST arg0 , PrintWriter arg1 ) { ArrayList < AST > loc0 = new ArrayList < AST > ( ) ; showAst ( loc0 , arg1 , arg0 ) ; arg1 . flush ( ) ; }
Generate a Java code for the following instruction: turn type into class . concode_field_sep String[] NO_PARAMS_TYPES concode_field_sep Object convertValue concode_elem_sep Method findMethod concode_elem_sep boolean equals concode_elem_sep boolean simpleCheck concode_elem_sep String[] getTypes concode_elem_sep Method l...
Class < ? > function ( Type arg0 ) { if ( arg0 instanceof Class ) { return ( Class ) arg0 ; } else if ( arg0 instanceof ParameterizedType ) { ParameterizedType loc0 = ( ParameterizedType ) arg0 ; return toClass ( loc0 . getRawType ( ) ) ; } else { throw PojoLogger . ROOT_LOGGER . unknownType ( arg0 ) ; } }
Generate a Java code for the following instruction: transfer vectors from this to containerout concode_field_sep BatchSchema schema concode_elem_sep boolean schemaChanged concode_elem_sep OperatorContext oContext concode_elem_sep List<VectorWrapper<?>> wrappers concode_elem_sep int recordCount concode_field_sep boolean...
void function ( VectorContainer arg0 ) { Preconditions . checkArgument ( this . wrappers . size ( ) == arg0 . wrappers . size ( ) ) ; for ( int loc0 = 0 ; loc0 < this . wrappers . size ( ) ; ++ loc0 ) { this . wrappers . get ( loc0 ) . transfer ( arg0 . wrappers . get ( loc0 ) ) ; } }
Generate a Java code for the following instruction: creates a new com.datastax.driver.core.batchstatement.type #unlogged batch statement for the specified cql statement builders . concode_field_sep PlaceHolder placeHolder concode_field_sep CqlMapper.DefaultCqlMapper all concode_elem_sep CQLStatementTupleMapper async co...
BatchCQLStatementTupleMapper function ( CQLStatementBuilder ... arg0 ) { return newBatchStatementBuilder ( BatchStatement . Type . UNLOGGED , arg0 ) ; }
Generate a Java code for the following instruction: get the index into the constant pool of the type descriptor of the variable . concode_field_sep int typeIndex concode_elem_sep int nameIndex concode_elem_sep int length concode_elem_sep int index concode_elem_sep int startPC concode_field_sep int nameIndex concode_ele...
int function ( ) { return typeIndex ; }
Generate a Java code for the following instruction: returns the location . concode_field_sep String city concode_elem_sep List orders concode_elem_sep String name concode_elem_sep String location concode_field_sep Order createOrder concode_elem_sep void setName concode_elem_sep String getName concode_elem_sep void remo...
String function ( ) { return location ; }
Generate a Java code for the following instruction: get the contents of a section given the section name . concode_field_sep File krb5conf concode_elem_sep Map<String,Object> items concode_field_sep String insertEntries concode_elem_sep void printEntry concode_elem_sep void load concode_elem_sep void insertSections con...
Map < String , Object > function ( String arg0 ) { Map < String , Object > loc0 = ( HashMap ) items . get ( arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: test method for com.itextpdf.text.html.webcolors #getrgbcolor java.lang.string . concode_field_sep String RGB_PERCENT concode_elem_sep String RGB_OUT_OF_RANGE concode_elem_sep String RGB_MISSING_COLOR_VALUES concode_field_sep String dumpColor concode_elem_sep void tes...
void function ( ) { assertEquals ( 127 , WebColors . getRGBColor ( RGB_MISSING_COLOR_VALUES ) . getRed ( ) ) ; }