input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: product of this matrix with scalar . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenMatrixRing<C> ring concode_elem_sep ArrayList<ArrayList<C>> matrix concode_elem_sep int hashValue concode_field_sep GenMatrix<C> leftLinearCombination...
GenMatrix < C > function ( C arg0 ) { ArrayList < ArrayList < C >> loc0 = new ArrayList < ArrayList < C >> ( ring . rows ) ; for ( ArrayList < C > loc1 : matrix ) { ArrayList < C > loc2 = new ArrayList < C > ( ring . cols ) ; for ( C loc3 : loc1 ) { C loc4 = loc3 . multiply ( arg0 ) ; loc2 . add ( loc4 ) ; } loc0 . add...
Generate a Java code for the following instruction: make a request to the facebook graph api with the given string parameters using an http get default method . see http://developers.facebook.com/docs/api note that this method is asynchronous and the callback will be invoked in a background thread ; operations that aff...
void function ( String arg0 , Bundle arg1 , RequestListener arg2 , final Object arg3 ) { request ( arg0 , arg1 , "srini_string" , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: method setoutputstream . concode_field_sep InputStream m_inputStream concode_elem_sep Exception m_scriptCompilationException concode_elem_sep Log log concode_elem_sep Jelly m_jellyEngine concode_elem_sep XMLOutput m_output concode_elem_sep Script m_script concode_elem...
void function ( OutputStream arg0 ) { m_outputStream = arg0 ; m_output = XMLOutput . createXMLOutput ( new OutputStreamWriter ( m_outputStream ) ) ; }
Generate a Java code for the following instruction: uses a private key to sign data in a cms signeddata structure and returns the encoded cms signeddata as bytes . ` signedauthpack ' contains a cms type contentinfo encoded according to rfc3852 . the contenttype field of the type contentinfo is id-signeddata 1.2.840.113...
byte [ ] function ( PrivateKey arg0 , X509Certificate arg1 , AuthPack arg2 ) { byte [ ] loc0 = KrbCodec . encode ( arg2 ) ; byte [ ] loc1 ; try { loc1 = PkiUtil . getSignedData ( arg0 , arg1 , loc0 , ID_PKINIT_AUTHDATA ) ; } catch ( PkiException loc2 ) { throw new KrbException ( "srini_string" , loc2 ) ; } return loc1 ...
Generate a Java code for the following instruction: factory to create the transformer . if the map is null , a transformer that always returns null is returned . concode_field_sep Map iMap concode_elem_sep long serialVersionUID concode_field_sep Object transform concode_elem_sep Map getMap
Transformer function ( Map arg0 ) { if ( arg0 == null ) { return ConstantTransformer . NULL_INSTANCE ; } return new MapTransformer ( arg0 ) ; }
Generate a Java code for the following instruction: returns an unmodifiable intlistiterator containing only the specified element . concode_field_sep IntListIterator EMPTY_INT_LIST_ITERATOR concode_elem_sep IntList EMPTY_INT_LIST concode_elem_sep IntIterator EMPTY_INT_ITERATOR concode_field_sep IntListIterator getEmpty...
IntListIterator function ( int arg0 ) { return singletonIntList ( arg0 ) . listIterator ( ) ; }
Generate a Java code for the following instruction: get bitmap by imageurl concode_field_sep PlaceHolder placeHolder concode_field_sep Drawable bitmapToDrawable concode_elem_sep void closeInputStream concode_elem_sep Bitmap drawableToBitmap concode_elem_sep Bitmap byteToBitmap concode_elem_sep byte[] drawableToByte con...
Bitmap function ( String arg0 , int arg1 , Map < String , String > arg2 ) { InputStream loc0 = getInputStreamFromUrl ( arg0 , arg1 , arg2 ) ; Bitmap loc1 = BitmapFactory . decodeStream ( loc0 ) ; closeInputStream ( loc0 ) ; return loc1 ; }
Generate a Java code for the following instruction: see the discussion on #disableautoclose . this method enables the auto-closing . concode_field_sep Map settings concode_elem_sep LoadedConfig aggregatedCfgXml concode_elem_sep List<ProvidedService> providedServices concode_elem_sep ConfigLoader configLoader concode_el...
StandardServiceRegistryBuilder function ( ) { this . autoCloseRegistry = true ; return this ; }
Generate a Java code for the following instruction: gets the entity manager factory . concode_field_sep Database instance concode_elem_sep EntityManagerFactory emf concode_field_sep void initInstance concode_elem_sep T getElementById concode_elem_sep List<T> getAll concode_elem_sep T create concode_elem_sep T update co...
EntityManagerFactory function ( ) { return emf ; }
Generate a Java code for the following instruction: get whether disabled . concode_field_sep Entry entry concode_field_sep PrincipalName getPrincipalName concode_elem_sep int getKdcFlags concode_elem_sep int getKeyVersion concode_elem_sep KerberosTime createKerberosTime concode_elem_sep List<EncryptionKey> getKeys conc...
boolean function ( ) { String loc0 = entry . get ( KerberosAttribute . KRB5_ACCOUNT_DISABLED_AT ) . getString ( ) ; return Boolean . parseBoolean ( loc0 ) ; }
Generate a Java code for the following instruction: this method is used for when a user has clicked on the `` quit '' button on the gui . it handles exiting the game . concode_field_sep int playerNumber concode_elem_sep Rules theRules concode_elem_sep String playerName concode_elem_sep Driver theDriver concode_elem_sep...
void function ( String arg0 ) { JOptionPane . showMessageDialog ( null , "srini_string" + arg0 , "srini_string" , JOptionPane . INFORMATION_MESSAGE ) ; System . exit ( 0 ) ; }
Generate a Java code for the following instruction: returns the url last path component . concode_field_sep String SCHEME_HTTPS concode_elem_sep String SCHEME_FILE concode_elem_sep String SCHEME_HTTP concode_elem_sep String originUrl concode_elem_sep String applicationUrl concode_elem_sep String lastPathComponent conco...
String function ( ) { if ( lastPathComponent == null ) { int loc0 = url . lastIndexOf ( '/' ) ; lastPathComponent = url . substring ( loc0 + 1 , url . length ( ) ) ; } return lastPathComponent ; }
Generate a Java code for the following instruction: indexing operation . requires : 0 < = index < this.size concode_field_sep Vector underlying_terms concode_elem_sep RatTerm[] terms concode_field_sep void set concode_elem_sep int size concode_elem_sep String printDebug concode_elem_sep boolean equals concode_elem_sep ...
RatTerm function ( int arg0 ) { return ( RatTerm ) underlying_terms . get ( arg0 ) ; }
Generate a Java code for the following instruction: create an instance of localizedmessage 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...
LocalizedMessage function ( ) { return new LocalizedMessage ( ) ; }
Generate a Java code for the following instruction: set the root-tags , this matters for margins . by default these are set to < body > and < div > . concode_field_sep Charset charset concode_elem_sep TagProcessorFactory tagFactory concode_elem_sep Map<String,Object> memory concode_elem_sep List<Element> ctn concode_el...
HtmlPipelineContext function ( final List < String > arg0 ) { this . roottags = arg0 ; return this ; }
Generate a Java code for the following instruction: counts the number of releases available . concode_field_sep EntityManager entityManager concode_elem_sep Logger log concode_field_sep List<ReleaseEntity> loadReleaseEntities concode_elem_sep ReleaseEntity getDefaultRelease concode_elem_sep boolean saveReleaseEntity co...
int function ( ) { CriteriaQuery < Long > loc0 = entityManager . getCriteriaBuilder ( ) . createQuery ( Long . class ) ; loc0 . select ( entityManager . getCriteriaBuilder ( ) . count ( loc0 . from ( ReleaseEntity . class ) ) ) ; Long loc1 = entityManager . createQuery ( loc0 ) . getSingleResult ( ) ; return loc1 != nu...
Generate a Java code for the following instruction: sorts source and adds the first n entries to dest . if source contains less than n entries , all of them are added to dest . if adding an entry to dest does not increase the collection 's size , for example if dest is a set and already contained the inserted contact ,...
void function ( final Collection < ? extends T > arg0 , final Collection < ? super T > arg1 , final Comparator < ? super T > arg2 , final int arg3 ) { final List < ? extends T > loc0 = Collections . list ( Collections . enumeration ( arg0 ) ) ; Collections . sort ( loc0 , arg2 ) ; final Iterator < ? extends T > loc1 = ...
Generate a Java code for the following instruction: gets a map from task id to component id . concode_field_sep StormTopology _topology concode_elem_sep String _stormId concode_elem_sep Map<Integer,String> _taskToComponent concode_elem_sep Map<String,List<Integer>> _componentToTasks concode_elem_sep Map _stormConf conc...
Map < Integer , String > function ( ) { return _taskToComponent ; }
Generate a Java code for the following instruction: returns the save participant descriptor for the given id or null if no such listener is registered . concode_field_sep IPostSaveListener[] EMPTY_ARRAY concode_elem_sep Map<String,SaveParticipantDescriptor> fDescriptors concode_field_sep SaveParticipantDescriptor[] get...
SaveParticipantDescriptor function ( String arg0 ) { ensureRegistered ( ) ; return fDescriptors . get ( arg0 ) ; }
Generate a Java code for the following instruction: lets the subclass update the target after the initial #filltarget jogltarget . concode_field_sep VectorXYZ cameraPos concode_elem_sep VectorXYZ cameraUp concode_elem_sep VectorXYZ cameraLookAt concode_elem_sep boolean targetNeedsReset concode_elem_sep TerrainElevation...
void function ( JOGLTarget arg0 , boolean arg1 ) { }
Generate a Java code for the following instruction: notifies all of this option change-listeners of the given event concode_field_sep List<IOptionChangeListener> fListeners concode_elem_sep boolean fListeneredDisabled concode_field_sep void removeChangeListener concode_elem_sep void initializeWithoutListenersFrom conco...
void function ( IOptionChangeEvent arg0 ) { if ( ! fListeneredDisabled ) { for ( IOptionChangeListener loc0 : fListeners ) { loc0 . attributeChanged ( arg0 ) ; } } }
Generate a Java code for the following instruction: workaround for session scope concode_field_sep long serialVersionUID concode_elem_sep LinkedHashMap<Integer,ReleaseEntity> releaseMap concode_elem_sep ReleaseMgmtService releaseService concode_elem_sep ResourceDependencyResolverService dependencyResolverService concod...
void function ( ) { releaseMap = null ; upcomingReleaseId = null ; upcomingReleaseDate = null ; }
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: gets document to sign concode_field_sep XfaForm xfaForm concode_elem_sep PdfStamper stamper concode_elem_sep String encoding concode_field_sep String getEncoding concode_elem_sep void createXfaForm concode_elem_sep void setDocument concode_elem_sep void setEncoding
Document function ( ) { return xfaForm . getDomDocument ( ) ; }
Generate a Java code for the following instruction: make an instance dummyinvariant for this instance of the splitter , if possible on an appropriate slice from ppt . concode_field_sep boolean instantiated concode_elem_sep long serialVersionUID concode_field_sep boolean valid concode_elem_sep boolean instantiated conco...
void function ( PptTopLevel arg0 ) { }
Generate a Java code for the following instruction: returns true if one of the resourcetypes within tree up until root resource type has the same name as one of the comma separated values of the system property ch.puzzle.itc.mobiliar.common.util.configurationservice.configkey #consumable_softlink_resource_types concode...
boolean function ( Integer arg0 ) { return hasResourceConsumableSoftlinkType ( entityManager . find ( ResourceEntity . class , arg0 ) ) ; }
Generate a Java code for the following instruction: returns a copy of this set , with the given converter removed . if the converter was not in the set , the original set is returned . concode_field_sep Entry[] iSelectEntries concode_elem_sep Converter[] iConverters concode_elem_sep Class<?> iType concode_elem_sep Conv...
ConverterSet function ( Converter arg0 , Converter [ ] arg1 ) { Converter [ ] loc0 = iConverters ; int loc1 = loc0 . loc1 ; for ( int loc2 = 0 ; loc2 < loc1 ; loc2 ++ ) { if ( arg0 . equals ( loc0 [ loc2 ] ) ) { return remove ( loc2 , arg1 ) ; } } if ( arg1 != null ) { arg1 [ 0 ] = null ; } return this ; }
Generate a Java code for the following instruction: ask the monitor to wait until the execution is finished . 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 getTestThreadNam...
void function ( ) { getMonitor ( ) . waitUntilFinished ( ) ; }
Generate a Java code for the following instruction: compute the cosine for the given complex argument . concode_field_sep PlaceHolder placeHolder concode_field_sep Complex tan concode_elem_sep Complex sqrt1z concode_elem_sep Complex log concode_elem_sep Complex sinh concode_elem_sep Complex acos concode_elem_sep Comple...
Complex function ( Complex arg0 ) { if ( arg0 . isNaN ( ) ) { return Complex . NaN ; } double loc0 = arg0 . getReal ( ) ; double loc1 = arg0 . getImaginary ( ) ; return new Complex ( Math . cos ( loc0 ) * MathUtils . cosh ( loc1 ) , - Math . sin ( loc0 ) * MathUtils . sinh ( loc1 ) ) ; }
Generate a Java code for the following instruction: currently the server responds with an json object wrapped in a json array . we need to strip the array . concode_field_sep String POST_VIDEO_DATA concode_elem_sep String GET_PROJECT_DATA concode_elem_sep String GET_VIDEO_DATA concode_elem_sep String host concode_elem_...
String function ( String arg0 ) { return arg0 . substring ( 1 , arg0 . length ( ) - 1 ) ; }
Generate a Java code for the following instruction: returns escaped absolute path of given file instance . concode_field_sep PlaceHolder placeHolder concode_field_sep String escapePath
String function ( File arg0 ) { return escapePath ( Objects . requireNonNull ( arg0 , "srini_string" ) . getAbsolutePath ( ) ) ; }
Generate a Java code for the following instruction: write the script tag with code content . no html escaping applied . w3c has recommended that all scripts within an xhtml document be escaped using cdata sections . concode_field_sep T canvas concode_field_sep T stylesheet concode_elem_sep T favicon concode_elem_sep T ...
T function ( String arg0 ) { return ( T ) canvas . script ( type ( "srini_string" ) ) . cdata ( ) . write ( arg0 , NO_ESCAPE ) . _cdata ( ) . _script ( ) ; }
Generate a Java code for the following instruction: down-grade locks to none for all entities in this context concode_field_sep ManagedEntity head concode_elem_sep boolean dirty concode_elem_sep ManagedEntity next concode_elem_sep IdentityHashMap<Object,ManagedEntity> nonEnhancedEntityXref concode_elem_sep Object entit...
void function ( ) { if ( head == null ) { return ; } ManagedEntity loc0 = head ; while ( loc0 != null ) { loc0 . $$_hibernate_getEntityEntry ( ) . setLockMode ( LockMode . NONE ) ; loc0 = loc0 . $$_hibernate_getNextManagedEntity ( ) ; } }
Generate a Java code for the following instruction: run this runnable as a transaction . concode_field_sep StackListener stackListener concode_elem_sep CommandStackTransaction UNCHECKED_TRANSACTION concode_elem_sep CommandStack stack concode_elem_sep List<Object> commands concode_elem_sep long TRANSACTION_TIMEOUT conco...
Object function ( UIRunnable arg0 , IUIContext arg1 ) { start ( ) ; try { Object loc0 = arg0 . runWithResult ( ) ; arg1 . wait ( TransactionCompleteCondition . forTransaction ( this ) , TRANSACTION_TIMEOUT ) ; return loc0 ; } finally { stop ( ) ; } }
Generate a Java code for the following instruction: sets data , offset , length and header of this buffer to that buffer . note that this method creates copies of the data and header , so that these fields in that buffer can be discarded without affecting the contents of this buffer . fixme - this method does not alway...
void function ( Buffer arg0 ) { this . offset = arg0 . offset ; this . length = arg0 . length ; this . data = copy ( arg0 . data , this . data ) ; this . header = copy ( arg0 . header , this . header ) ; }
Generate a Java code for the following instruction: this method fetches the regular expression value of the key that you are providing . the regular expressions are stored in the regularexp.properties file . concode_field_sep String EMPTY_STRING concode_elem_sep String regularExpPropertyFileLocation concode_elem_sep Pr...
String function ( String arg0 ) { if ( arg0 == null || arg0 . isEmpty ( ) ) return EMPTY_STRING ; return regularExpproperties . getProperty ( arg0 ) ; }
Generate a Java code for the following instruction: add one tag processor that handles multiple tags . concode_field_sep TagProcessor proc concode_elem_sep String className concode_elem_sep Map<String,FactoryObject> map concode_field_sep TagProcessor getProcessor concode_elem_sep TagProcessor getProcessor concode_elem_...
void function ( final String arg0 , final String ... arg1 ) { for ( String loc0 : arg1 ) { addProcessor ( loc0 , arg0 ) ; } }
Generate a Java code for the following instruction: compares object references for equality . concode_field_sep PlaceHolder placeHolder concode_field_sep int computeHashCode
boolean function ( T arg0 , T arg1 ) { return arg0 == arg1 ; }
Generate a Java code for the following instruction: puts the given key and value into this map according to the contract of #put object , object except that the value of an existing key mayonly be updated if allowupdate = true . concode_field_sep SortedMap<K,V> kSmallest concode_elem_sep int maxSize concode_field_sep b...
boolean function ( final K arg0 , final V arg1 , final boolean arg2 ) { if ( ! arg2 && kSmallest . containsKey ( arg0 ) ) { return false ; } return put ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: adds all column or formula elements . concode_field_sep PlaceHolder placeHolder concode_field_sep Element addNativelyGeneratedId concode_elem_sep Element addColumn concode_elem_sep Element addColumn concode_elem_sep void addColumn concode_elem_sep void addColumns conc...
void function ( Element arg0 , Iterator arg1 ) { while ( arg1 . hasNext ( ) ) { final Object loc0 = arg1 . next ( ) ; if ( loc0 instanceof Column ) { addColumn ( arg0 , ( Column ) loc0 ) ; } else if ( loc0 instanceof Formula ) { addFormula ( arg0 , ( Formula ) loc0 ) ; } } }
Generate a Java code for the following instruction: print the message for a log entry to the specified file concode_field_sep ILog sysOutLog concode_elem_sep String PRODUCT_ID concode_elem_sep PrintWriter sysOut concode_elem_sep ILog log concode_field_sep void setLog concode_elem_sep void printLogObject concode_elem_se...
void function ( PrintWriter arg0 , String arg1 ) { if ( arg1 != null ) { arg0 . println ( arg1 ) ; } }
Generate a Java code for the following instruction: gets the value of the omit property . concode_field_sep Keepalive keepalive concode_elem_sep Omit omit concode_field_sep void setOmit concode_elem_sep void setKeepalive concode_elem_sep Keepalive getKeepalive
Omit function ( ) { return omit ; }
Generate a Java code for the following instruction: prints out the current thread stack to the given stream . concode_field_sep ExceptionUtil instance concode_field_sep ExceptionUtil instance
void function ( PrintStream arg0 ) { StackTraceElement [ ] loc0 = Thread . currentThread ( ) . getStackTrace ( ) ; String loc1 = StringUtil . arrayToString ( loc0 , "srini_string" ) ; arg0 . println ( loc1 ) ; }
Generate a Java code for the following instruction: the vm name of the class . concode_field_sep String name concode_elem_sep boolean[] probes concode_elem_sep long id concode_field_sep void merge concode_elem_sep void merge concode_elem_sep boolean[] getProbes concode_elem_sep void reset concode_elem_sep long getId co...
String function ( ) { return name ; }
Generate a Java code for the following instruction: return the native logger instance we are using . concode_field_sep String name concode_elem_sep boolean is12 concode_elem_sep Logger logger concode_elem_sep String FQCN concode_field_sep void warn concode_elem_sep void warn concode_elem_sep void trace concode_elem_sep...
Logger function ( ) { if ( logger == null ) { logger = Logger . getLogger ( name ) ; } return ( this . logger ) ; }
Generate a Java code for the following instruction: number of comparators in the current comparatorchain . concode_field_sep BitSet orderingBits concode_elem_sep List comparatorChain concode_elem_sep boolean isLocked concode_elem_sep long serialVersionUID concode_field_sep int compare concode_elem_sep void checkLocked ...
int function ( ) { return comparatorChain . size ( ) ; }
Generate a Java code for the following instruction: converts given array to an iterable concode_field_sep PlaceHolder placeHolder concode_field_sep Object getMapValue concode_elem_sep void setProperty concode_elem_sep Collection<String> getPropertyKeys concode_elem_sep int length concode_elem_sep boolean isArray concod...
Iterable < ? extends Object > function ( Object arg0 ) { if ( isArray ( arg0 ) ) return ( ( Iterable ) arg0 ) ; else throw new JsonPathException ( "srini_string" + arg0 != null ? arg0 . getClass ( ) . getName ( ) : "srini_string" ) ; }
Generate a Java code for the following instruction: get the zero element . 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 concode_elem_sep...
BigDecimal function ( ) { return ZERO ; }
Generate a Java code for the following instruction: retrieve the name of the team concode_field_sep Player[] players concode_elem_sep String name concode_field_sep int hashCode concode_elem_sep boolean isValid concode_elem_sep boolean equals concode_elem_sep void addTeamToNotPlayedLists concode_elem_sep String toString...
String function ( ) { return name ; }
Generate a Java code for the following instruction: get the power series of the sinus function . 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_...
UnivPowerSeries < C > function ( ) { return fixPoint ( new PowerSeriesMap < C > ( ) { public UnivPowerSeries < C > map ( UnivPowerSeries < C > arg0 ) { return arg0 . negate ( ) . integrate ( coFac . getONE ( ) ) . integrate ( coFac . getZERO ( ) ) ; } } ) ; }
Generate a Java code for the following instruction: looks up the dhtobject associated with key in the local database . concode_field_sep Map<KademliaOverlayKey,KademliaIndexEntry> index concode_elem_sep ComponentsConfig config concode_field_sep void refreshIndex concode_elem_sep void putInitialDataItem concode_elem_sep...
DHTObject function ( final KademliaOverlayKey arg0 ) { final KademliaIndexEntry loc0 = index . get ( arg0 ) ; if ( loc0 == null ) { return null ; } else if ( loc0 . hasExpired ( ) ) { index . remove ( arg0 ) ; return null ; } return loc0 . getValue ( ) ; }
Generate a Java code for the following instruction: gets the sha-1 hash of the completed piece as a byte array concode_field_sep TorrentFilePiecesState state concode_elem_sep BitSet slices concode_elem_sep BitSet loadingSlices concode_elem_sep int maxSlices concode_elem_sep int size concode_elem_sep byte[] data concode...
byte [ ] function ( ) { return hash ; }
Generate a Java code for the following instruction: erase the whole line concode_field_sep String inlineMarkupDelimiters concode_elem_sep int sectionLevel concode_elem_sep boolean erased concode_elem_sep boolean inBlock concode_elem_sep boolean listStart concode_elem_sep List<Boolean> valid concode_elem_sep char ESCAPE...
void function ( ) { for ( int loc0 = 0 ; loc0 < valid . size ( ) ; loc0 ++ ) { valid . set ( loc0 , false ) ; } erased = true ; }
Generate a Java code for the following instruction: carbon concode_field_sep MacExtensions MacExt concode_field_sep Rectangle win32_getBounds concode_elem_sep Rectangle win32_getBounds concode_elem_sep MenuItem[] getItems concode_elem_sep Menu[] getMenus concode_elem_sep Menu[] getMenus concode_elem_sep boolean isMacAc...
Rectangle function ( TabItem arg0 ) { Rectangle loc0 = MacExt . getTabItemBounds ( arg0 ) ; return loc0 ; }
Generate a Java code for the following instruction: getter for the roman number generator instance . concode_field_sep RomanNumeralGenerator romanNumeralGenerator concode_field_sep void start concode_elem_sep void main concode_elem_sep void setRomanNumeralGenerator
RomanNumeralGenerator function ( ) { return romanNumeralGenerator ; }
Generate a Java code for the following instruction: starts the analyzer which starts the statisticgernerationevent concode_field_sep long receivedBytes concode_elem_sep int sentMsg concode_elem_sep int receivedMsg concode_elem_sep StatisticGenerationEvent event concode_elem_sep long sentBytes concode_elem_sep Logger lo...
void function ( ) { event = new StatisticGenerationEvent ( this ) ; event . writerStarted ( ) ; event . scheduleImmediatly ( ) ; receivedBytes = 0 ; sentBytes = 0 ; receivedMsg = 0 ; sentMsg = 0 ; }
Generate a Java code for the following instruction: initializes this image manager . nothing happens if this method is invoked after a previous initialization . this method is not supposed to be invoked more than once . concode_field_sep String T_LCL concode_elem_sep String T_TOOL concode_elem_sep URL iconBaseURL conco...
void function ( URL arg0 , ImageRegistry arg1 ) { this . iconBaseURL = arg0 ; this . imageRegistry = arg1 ; }
Generate a Java code for the following instruction: returns -1 if the first argument is the default working set , 1 if the second argument is the default working set and if the boolean fisotherworkingsetontop is set , to keep the default working set on top while sorting . concode_field_sep boolean fIsOtherWorkingSetOnT...
int function ( IWorkingSet arg0 , IWorkingSet arg1 ) { if ( fIsOtherWorkingSetOnTop && IWorkingSetIDs . OTHERS . equals ( arg0 . getId ( ) ) ) return - 1 ; if ( fIsOtherWorkingSetOnTop && IWorkingSetIDs . OTHERS . equals ( arg1 . getId ( ) ) ) return 1 ; return fCollator . compare ( arg0 . getLabel ( ) , arg1 . getLabe...
Generate a Java code for the following instruction: helper method to copy data based on partition concode_field_sep boolean dropAll concode_elem_sep RecordBatch incoming concode_elem_sep int DEFAULT_RECORD_BATCH_SIZE concode_elem_sep int outgoingRecordBatchSize concode_elem_sep int totalRecords concode_elem_sep org.slf...
void function ( int arg0 ) { int loc0 = doEval ( arg0 ) ; if ( loc0 >= start && loc0 < end ) { OutgoingRecordBatch loc1 = outgoingBatches . get ( loc0 - start ) ; loc1 . copy ( arg0 ) ; } }
Generate a Java code for the following instruction: sets the address stored in a localvariable to which this subroutine will return once it is finished . concode_field_sep Block entry concode_elem_sep Block exit concode_elem_sep ArrayList paths concode_elem_sep FlowGraph graph concode_elem_sep LocalVariable returnAddre...
void function ( final LocalVariable arg0 ) { this . returnAddress = arg0 ; }
Generate a Java code for the following instruction: getter to find out if the signature is a certification signature . concode_field_sep boolean certification concode_elem_sep boolean fillInAllowed concode_elem_sep boolean annotationsAllowed concode_elem_sep PdfName action concode_elem_sep PdfArray fields concode_elem_...
boolean function ( ) { return certification ; }
Generate a Java code for the following instruction: adds an array of cookie http cookies . cookies are added individually and in the given array order . if any of the given cookies has already expired it will not be added , but existing values will still be removed . concode_field_sep long serialVersionUID concode_elem...
void function ( final Cookie [ ] arg0 ) { if ( arg0 != null ) { for ( final Cookie loc0 : arg0 ) { this . addCookie ( loc0 ) ; } } }
Generate a Java code for the following instruction: called to write a string . may be overridden for alternate string representations . concode_field_sep GenericData data concode_elem_sep Schema root concode_field_sep NullPointerException npe concode_elem_sep void writeWithoutConversion concode_elem_sep Iterator<? exte...
void function ( Schema arg0 , Object arg1 , Encoder arg2 ) { writeString ( arg1 , arg2 ) ; }
Generate a Java code for the following instruction: get the post-construct interceptors for client proxy instances . this method should only be called after all interceptors have been added . concode_field_sep Map<Class<?>,Object> privateData concode_elem_sep ViewInstanceFactory viewInstanceFactory concode_elem_sep Set...
List < InterceptorFactory > function ( ) { return clientPostConstructInterceptors . getSortedItems ( ) ; }
Generate a Java code for the following instruction: parse a vector from a reader . concode_field_sep GenVector<C> ZERO concode_elem_sep Logger logger concode_elem_sep RingFactory<C> coFac concode_elem_sep float density concode_elem_sep int cols concode_elem_sep List<GenVector<C>> BASIS concode_elem_sep Random random co...
GenVector < C > function ( Reader arg0 ) { throw new RuntimeException ( "srini_string" ) ; }
Generate a Java code for the following instruction: returns the error message from the computers in this category . concode_field_sep String fId concode_elem_sep boolean fIsEnabled concode_elem_sep IConfigurationElement fElement concode_elem_sep boolean fNeedsSortingAfterFiltering concode_elem_sep boolean fIsIncluded c...
String function ( ) { return fLastError ; }
Generate a Java code for the following instruction: returns a string representing the projpoint in the format : projcoordinate x y z . example : projcoordinate 6241.11 5218.25 12.3 concode_field_sep DecimalFormat DECIMAL_FORMAT concode_elem_sep double x concode_elem_sep String DECIMAL_FORMAT_PATTERN concode_elem_sep do...
String function ( ) { StringBuilder loc0 = new StringBuilder ( ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . x ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . y ) ; loc0 . append ( "srini_string" ) ; loc0 . append ( this . z ) ; loc0 . append ( "srini_string" ) ; return loc0 . toString ( )...
Generate a Java code for the following instruction: validate that the argument condition is true ; otherwise throwing an exception with the specified message . this method is useful when validating according to an arbitrary boolean expression , such as validating a primitive number or using your own custom validation e...
void function ( boolean arg0 , String arg1 ) { if ( arg0 == false ) { throw new IllegalArgumentException ( arg1 ) ; } }
Generate a Java code for the following instruction: returns the paths a collection of two-element arrays of blocks that represent the blocks that end in a call to this subroutine and the block that begin with the return address from this subroutine . concode_field_sep Block entry concode_elem_sep Block exit concode_ele...
Collection function ( ) { return paths ; }
Generate a Java code for the following instruction: power of a to the n-th . concode_field_sep boolean debug concode_elem_sep RingFactory<C> fac concode_elem_sep Logger logger concode_field_sep C modPower concode_elem_sep C modPower concode_elem_sep C positivePower concode_elem_sep C modPositivePower
C function ( C arg0 , long arg1 ) { return power ( fac , arg0 , arg1 ) ; }
Generate a Java code for the following instruction: resolve the column name/alias to its index concode_field_sep ConcurrentHashMap<String,Integer> columnNameToIndexCache concode_elem_sep float LOAD_FACTOR concode_field_sep placeholderType placeHolder
Integer function ( String arg0 , ResultSet arg1 ) { final Integer loc0 = columnNameToIndexCache . get ( arg0 ) ; if ( loc0 != null ) { return loc0 ; } else { final Integer loc1 = Integer . valueOf ( arg1 . findColumn ( arg0 ) ) ; columnNameToIndexCache . put ( arg0 , loc1 ) ; return loc1 ; } }
Generate a Java code for the following instruction: convert a duration to the number of seconds . the result will be rounded towards 0 to the nearest second . e.g. , if the duration represents -1 nanosecond , it will be rounded to 0 . concode_field_sep long DURATION_SECONDS_MAX concode_elem_sep long DURATION_SECONDS_MI...
long function ( Duration arg0 ) { return checkValid ( arg0 ) . getSeconds ( ) ; }
Generate a Java code for the following instruction: is local zero . concode_field_sep Logger logger concode_elem_sep LocalRing<C> ring concode_elem_sep boolean debug concode_elem_sep C num concode_elem_sep int isunit concode_elem_sep C den concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Loc...
boolean function ( ) { return num . isZERO ( ) ; }
Generate a Java code for the following instruction: return the audio resource id of the word . concode_field_sep int mAudioResourceId concode_elem_sep String mDefaultTranslation concode_elem_sep int mImageResourceId concode_elem_sep int NO_IMAGE_PROVIDED concode_elem_sep String mMiwokTranslation concode_field_sep Strin...
int function ( ) { return mAudioResourceId ; }
Generate a Java code for the following instruction: set the last char 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 wsTag c...
void function ( final char arg0 ) { this . lastChar = arg0 ; }
Generate a Java code for the following instruction: gets byte value form cursor for column index . concode_field_sep PlaceHolder placeHolder concode_field_sep Long getLong concode_elem_sep Character getChar concode_elem_sep Integer getInt concode_elem_sep void bind concode_elem_sep void bind concode_elem_sep void bind ...
Byte function ( @ NonNull Cursor arg0 , int arg1 ) { if ( arg0 . isNull ( arg1 ) ) { return null ; } return ( byte ) arg0 . getInt ( arg1 ) ; }
Generate a Java code for the following instruction: checks if the given resources are in sync with the underlying file system . concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isReadOnly concode_elem_sep IStatus addModified concode_elem_sep int getSelectedResourceTypes concode_elem_sep IStatus addOu...
IStatus function ( IResource [ ] arg0 ) { IStatus loc0 = null ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { IResource loc2 = arg0 [ loc1 ] ; if ( ! loc2 . isSynchronized ( IResource . DEPTH_INFINITE ) ) { loc0 = addOutOfSync ( loc0 , loc2 ) ; } } if ( loc0 != null ) return loc0 ; return Status . OK_STATUS ;...
Generate a Java code for the following instruction: log a message with trace 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 co...
void function ( Object arg0 ) { if ( isLevelEnabled ( MemoryLog . LOG_LEVEL_TRACE ) ) { log ( MemoryLog . LOG_LEVEL_TRACE , arg0 , null ) ; } }
Generate a Java code for the following instruction: gets the predicate being decorated . concode_field_sep long serialVersionUID concode_elem_sep Predicate iPredicate concode_field_sep Predicate getInstance concode_elem_sep boolean evaluate
Predicate [ ] function ( ) { return new Predicate [ ] { iPredicate } ; }
Generate a Java code for the following instruction: replace the deserialized instance with its associated static object required for proper serialization . concode_field_sep String TOGGLE_SPY_LABEL concode_elem_sep IRecorderSemanticEvent DISPOSE concode_elem_sep String PAUSE_LABEL concode_elem_sep IRecorderSemanticEven...
Object function ( ) { return get ( name ) ; }
Generate a Java code for the following instruction: default implementation that simply calls thread #sleep long . 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 Timer w...
void function ( int arg0 ) { try { Thread . sleep ( arg0 ) ; } catch ( InterruptedException loc0 ) { } }
Generate a Java code for the following instruction: updates a reading list item with new meta data . concode_field_sep String LOGTAG concode_elem_sep ContentObserver contentObserver concode_elem_sep Context context concode_elem_sep OnReadingListEventListener onReadingListEventListener concode_elem_sep boolean fetchInBa...
void function ( final NativeJSObject arg0 ) { final ContentResolver loc0 = context . getContentResolver ( ) ; final ContentValues loc1 = getContentValues ( arg0 ) ; ThreadUtils . postToBackgroundThread ( new Runnable ( ) { @ Override public void run ( ) { readingListAccessor . updateReadingListItem ( loc0 , loc1 ) ; } ...
Generate a Java code for the following instruction: return the job prefix which is the same as the file name . concode_field_sep Logger log concode_elem_sep Path file concode_elem_sep String prefix concode_elem_sep FileChannel channel concode_elem_sep FileLock lock concode_field_sep JobPrefixFile tryFromExistingFile co...
String function ( ) { return prefix ; }
Generate a Java code for the following instruction: asserts that two chars are equal . if they are not an assertionfailederror is thrown with the given message . concode_field_sep PlaceHolder placeHolder concode_field_sep void fail concode_elem_sep void fail concode_elem_sep void assertNull concode_elem_sep void assert...
void function ( String arg0 , char arg1 , char arg2 ) { assertEquals ( arg0 , new Character ( arg1 ) , new Character ( arg2 ) ) ; }
Generate a Java code for the following instruction: returns whether mouse buttons 2/3 are swapped when using robot . concode_field_sep boolean gotBug1Event concode_elem_sep java.util.ArrayList bugList concode_field_sep boolean fileDialogRequiresDismiss concode_elem_sep boolean hasHierarchyEventGenerationBug concode_ele...
boolean function ( ) { return Platform . isOSX ( ) && Platform . JAVA_VERSION >= Platform . JAVA_1_4 && Platform . JAVA_VERSION <= 0x1425 ; }
Generate a Java code for the following instruction: this method returns the value of the database column sys_ip_area . province concode_field_sep String areaCode concode_elem_sep String IPCODE_UNKNOWN concode_elem_sep String city concode_elem_sep String province concode_elem_sep String edu concode_elem_sep String distr...
String function ( ) { return province ; }
Generate a Java code for the following instruction: build a lobcreator using the given context concode_field_sep boolean useContextualLobCreation concode_elem_sep Object[] NO_ARGS concode_elem_sep Class[] NO_ARG_SIG concode_elem_sep CoreMessageLogger LOG concode_field_sep boolean useContextualLobCreation
LobCreator function ( LobCreationContext arg0 ) { return useContextualLobCreation ? new ContextualLobCreator ( arg0 ) : NonContextualLobCreator . INSTANCE ; }
Generate a Java code for the following instruction: returns default parameters for debug builds . concode_field_sep boolean skip concode_elem_sep boolean runModule concode_elem_sep boolean minify concode_elem_sep boolean dev concode_elem_sep boolean inlineSourceMap concode_field_sep PackagerParams releaseDefaults conco...
PackagerParams function ( ) { PackagerParams loc0 = new PackagerParams ( ) ; loc0 . dev = true ; loc0 . inlineSourceMap = false ; loc0 . minify = false ; loc0 . runModule = true ; loc0 . skip = true ; return loc0 ; }
Generate a Java code for the following instruction: pass interpreteroutput to capture the repl output concode_field_sep Logger logger concode_elem_sep String scriptPath concode_elem_sep Integer rScriptInitializeNotifier concode_elem_sep Integer rRequestNotifier concode_elem_sep String rCmdPath concode_elem_sep Integer ...
void function ( InterpreterOutput arg0 ) { outputStream . setInterpreterOutput ( arg0 ) ; }
Generate a Java code for the following instruction: this method calculates the score of this query with all the documents and sort the score map in the reverse order of value . concode_field_sep Map<Integer,Double> docRankingByW1 concode_elem_sep HashMap<String,Integer> documentNameIdMap concode_elem_sep Map<String,Int...
void function ( ) { for ( Integer loc0 : FileUtils . documentIdMap . keySet ( ) ) { calculateByW1 ( loc0 ) ; } this . docRankingByW1 = Util . sortByValue ( docRankingByW1 ) ; documentNameIdMap = FileUtils . documentNameIdMap ; }
Generate a Java code for the following instruction: gets a uniformly distributed random value with mean = mu . concode_field_sep int DIGEST_MODE concode_elem_sep BufferedReader filePointer concode_elem_sep int CONSTANT_MODE concode_elem_sep int mode concode_elem_sep double mu concode_elem_sep EmpiricalDistribution empi...
double function ( ) { return randomData . nextUniform ( 0 , 2 * mu ) ; }
Generate a Java code for the following instruction: returns a string describing a method declaration . it contains the access flags public , private , static , etc , the return type , the method name , and the types of each of its arguments . concode_field_sep boolean skip_checks concode_elem_sep Type string_array conc...
String function ( Method arg0 ) { StringBuilder loc0 = new StringBuilder ( ) ; Formatter loc1 = new Formatter ( loc0 ) ; loc1 . format ( "srini_string" , get_access_flags ( arg0 ) , arg0 . getReturnType ( ) , arg0 . getName ( ) ) ; for ( Type loc2 : arg0 . getArgumentTypes ( ) ) { loc1 . format ( "srini_string" , loc2 ...
Generate a Java code for the following instruction: test that transformation from second transformer is applied on transformed name obtained from first transformer . concode_field_sep String USER3 concode_elem_sep String USER2 concode_elem_sep PropertyFileBasedDomain chainedThreeTransformers concode_elem_sep String USE...
void function ( @ ArquillianResource URL arg0 ) { URL loc0 = prepareUrl ( arg0 ) ; Utils . makeCallWithBasicAuthn ( loc0 , "srini_string" , PASSWORD3 , SC_OK ) ; }
Generate a Java code for the following instruction: acquires a buffered reader usable to read the contents of a file concode_field_sep PlaceHolder placeHolder concode_field_sep void deleteFile concode_elem_sep void copyFile concode_elem_sep BufferedWriter getWriter concode_elem_sep void main concode_elem_sep boolean fi...
BufferedReader function ( String arg0 ) { BufferedReader loc0 = new BufferedReader ( new FileReader ( arg0 ) ) ; return loc0 ; }
Generate a Java code for the following instruction: called when a section is written . position will hold the height at which the section will be written to . concode_field_sep PlaceHolder placeHolder concode_field_sep void onParagraph concode_elem_sep void onParagraphEnd concode_elem_sep void onOpenDocument concode_el...
void function ( PdfWriter arg0 , Document arg1 , float arg2 , int arg3 , Paragraph arg4 ) { }
Generate a Java code for the following instruction: build a request body out of the phenotype given . concode_field_sep String IF_NONE_MATCH concode_elem_sep String GITHUB concode_elem_sep ObjectMapper mapper concode_elem_sep URL GITHUB_URL concode_elem_sep Repository repository concode_field_sep String getIssueEndpoin...
byte [ ] function ( Phenotype arg0 ) { byte [ ] loc0 = mapper . writeValueAsBytes ( Issue . getRequestParams ( arg0 ) ) ; return loc0 ; }
Generate a Java code for the following instruction: time to live for a contact before it is considered offline concode_field_sep int numberOfReplicates concode_elem_sep long timeToLiveForContacts concode_elem_sep int numberOfPingTries concode_elem_sep long timeBetweenRootPings concode_elem_sep long timeBetweenReplicati...
long function ( ) { return Math . max ( timeToLiveForContacts , timeBetweenRootPings ) ; }
Generate a Java code for the following instruction: returns an index about where in the cache different variants for a given resource are stored . this maps `` variant keys '' to `` cache keys '' , where the variant key is derived from the varying request headers , and the cache key is the location in the ch.boye.httpc...
Map < String , String > function ( ) { return Collections . unmodifiableMap ( variantMap ) ; }
Generate a Java code for the following instruction: returns all document sets that were declared in the xml config file . concode_field_sep Map<String,IDocumentSet> resources concode_elem_sep Map<IDocumentSet,Boolean> resourcesOfSetPublished concode_elem_sep int resourceOffset concode_elem_sep DocumentSpace inst concod...
Collection < IDocumentSet > function ( ) { return Collections . unmodifiableCollection ( resources . values ( ) ) ; }
Generate a Java code for the following instruction: get the number of aliases that have specific lock modes defined . concode_field_sep Map<String,LockMode> aliasSpecificLockModes concode_elem_sep int NO_WAIT concode_elem_sep LockOptions NONE concode_elem_sep boolean scope concode_elem_sep int SKIP_LOCKED concode_elem_...
int function ( ) { if ( aliasSpecificLockModes == null ) { return 0 ; } return aliasSpecificLockModes . size ( ) ; }