input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: looks up a handler matching the given request uri . concode_field_sep UriPatternMatcher<HttpRequestHandler> matcher concode_field_sep void unregister concode_elem_sep void register concode_elem_sep String getRequestPath
HttpRequestHandler function ( final HttpRequest arg0 ) { Args . notNull ( arg0 , "srini_string" ) ; return matcher . lookup ( getRequestPath ( arg0 ) ) ; }
Generate a Java code for the following instruction: makes a copy of the internal buffer . concode_field_sep int pos concode_elem_sep byte buf[] concode_field_sep void writeInt concode_elem_sep void writeByte concode_elem_sep byte[] getBuffer concode_elem_sep void writeFloat concode_elem_sep void writeChar concode_elem_...
byte [ ] function ( ) { byte loc0 [ ] = new byte [ pos ] ; System . arraycopy ( buf , 0 , loc0 , 0 , pos ) ; return loc0 ; }
Generate a Java code for the following instruction: return the n'th byte down the stack , where 0 is the top element and size -1 is the bottom element . concode_field_sep ArrayByteList list concode_field_sep byte pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep byte get concode_elem_sep void c...
byte function ( int arg0 ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . get ( list . size ( ) - arg0 - 1 ) ; }
Generate a Java code for the following instruction: modinteger remainder . concode_field_sep java.math.BigInteger val concode_elem_sep ModIntegerRing ring concode_field_sep java.math.BigInteger getSymmetricVal concode_elem_sep int MISIGN concode_elem_sep ModInteger gcd concode_elem_sep ModInteger sum concode_elem_sep i...
ModInteger function ( ModInteger arg0 , ModInteger arg1 ) { if ( arg0 == null ) return null ; return arg0 . remainder ( arg1 ) ; }
Generate a Java code for the following instruction: adds a measured rtt to monitor . if there is still a rtt , it will be replaced , if the new one is smaller concode_field_sep int MONITOR concode_elem_sep AverageAccumulator avgPingAttemptsPerNode concode_elem_sep long serialVersionUID concode_elem_sep double latitude ...
void function ( Host arg0 , double arg1 ) { if ( cumulatedRTTs != null ) throw new IllegalStateException ( "srini_string" ) ; List < Double > loc0 = rttToMonitors . get ( arg0 ) ; if ( loc0 == null ) { loc0 = new ArrayList < Double > ( 10 ) ; rttToMonitors . put ( arg0 , loc0 ) ; } loc0 . add ( arg1 ) ; }
Generate a Java code for the following instruction: configures the fragment to be one that defines encryption data of the specified length . #definesencryptiondata is set to true , #sampleencryptiondatalength is set tothe specified length , and #sampleencryptiondata is resized if necessary such that itis at least this ...
void function ( int arg0 ) { if ( sampleEncryptionData == null || sampleEncryptionData . limit ( ) < arg0 ) { sampleEncryptionData = new ParsableByteArray ( arg0 ) ; } sampleEncryptionDataLength = arg0 ; definesEncryptionData = true ; sampleEncryptionDataNeedsFill = true ; }
Generate a Java code for the following instruction: scalar / dot product of this vector with other vector . concode_field_sep List<C> val concode_elem_sep Logger logger concode_elem_sep GenVectorModul<C> modul concode_field_sep int signum concode_elem_sep GenVector<C> leftLinearCombination concode_elem_sep GenVector<C>...
C function ( GenVector < C > arg0 ) { C loc0 = modul . coFac . getZERO ( ) ; List < C > loc1 = arg0 . val ; int loc2 = 0 ; for ( C loc3 : val ) { C loc4 = loc3 . multiply ( loc1 . get ( loc2 ++ ) ) ; loc0 = loc0 . sum ( loc4 ) ; } return loc0 ; }
Generate a Java code for the following instruction: returns the previous trace point that had to be painted by #paintpoint int , int , int , int , graphics , itracepoint2d . this value will be null if no previous point had to be painted . concode_field_sep ITracePoint2D m_previousPoint concode_elem_sep int m_previousY ...
ITracePoint2D function ( ) { return this . m_previousPoint ; }
Generate a Java code for the following instruction: indicate if payload size should be estimated and controlled when adding properties default is false . concode_field_sep int expiry concode_elem_sep boolean payloadSizeEstimatedWhenAdding concode_elem_sep Logger logger concode_elem_sep JSONObject payload concode_elem_s...
void function ( boolean arg0 ) { this . payloadSizeEstimatedWhenAdding = arg0 ; }
Generate a Java code for the following instruction: returns the local workercontext , beware : could be a newly initialized one , if xmlworker #close or xmlworker #closelocalwc has been called before . concode_field_sep ThreadLocal<WorkerContextImpl> context concode_elem_sep boolean parseHtml concode_elem_sep Pipeline<...
WorkerContext function ( ) { return context . get ( ) ; }
Generate a Java code for the following instruction: sets the value of the lockscope property . concode_field_sep Locktype locktype concode_elem_sep Lockscope lockscope concode_field_sep Lockscope getLockscope concode_elem_sep void setLocktype concode_elem_sep Locktype getLocktype
void function ( Lockscope arg0 ) { this . lockscope = arg0 ; }
Generate a Java code for the following instruction: same as call to #isstandardtypecode int concode_field_sep CoreMessageLogger LOG concode_elem_sep Map<Integer,String> JDBC_TYPE_MAP concode_field_sep Map<Integer,String> buildJdbcTypeMap concode_elem_sep String getTypeName
boolean function ( Integer arg0 ) { return JDBC_TYPE_MAP . containsKey ( arg0 ) ; }
Generate a Java code for the following instruction: convert this step into a string suitable for editing . the default is the xml representation of the step . concode_field_sep String description concode_elem_sep Resolver resolver concode_elem_sep Throwable invalidScriptError concode_field_sep String toXMLString concod...
String function ( ) { return toXMLString ( this ) ; }
Generate a Java code for the following instruction: starts the nio reactor . concode_field_sep List<AbstractNioChannel> channels concode_elem_sep NioReactor reactor concode_elem_sep Dispatcher dispatcher concode_field_sep AbstractNioChannel udpChannel concode_elem_sep void stop concode_elem_sep AbstractNioChannel tcpCh...
void function ( ) { reactor = new NioReactor ( dispatcher ) ; LoggingHandler loc0 = new LoggingHandler ( ) ; reactor . registerChannel ( tcpChannel ( 6666 , loc0 ) ) . registerChannel ( tcpChannel ( 6667 , loc0 ) ) . registerChannel ( udpChannel ( 6668 , loc0 ) ) . start ( ) ; }
Generate a Java code for the following instruction: translate space character into & pct ; 20 to avoid problems with paths that contain spaces on some jvms . concode_field_sep String CONFIG_CLASS_RESOURCE concode_elem_sep Log log concode_elem_sep String CONFIG_WEB_RESOURCE concode_elem_sep String RULE_SET concode_elem_...
String function ( String arg0 ) { while ( true ) { int loc0 = arg0 . indexOf ( ' ' ) ; if ( loc0 < 0 ) { break ; } arg0 = arg0 . substring ( 0 , loc0 ) + arg0 . substring ( loc0 + 1 ) ; } return ( arg0 ) ; }
Generate a Java code for the following instruction: returns the label for a url , uri or url part . example is ` http://www.x.xom/s.html#1 ' concode_field_sep String CODE_DELIMITERS concode_elem_sep String FILE_PATTERN_DELIMITERS concode_elem_sep String URL_DELIMITERS concode_field_sep String getJavaCodeString concode_...
String function ( String arg0 ) { return Strings . markLTR ( arg0 , URL_DELIMITERS ) ; }
Generate a Java code for the following instruction: blindly decode content and return the result asn1 object . concode_field_sep PlaceHolder placeHolder concode_field_sep void encode concode_elem_sep byte[] encode concode_elem_sep void decodeAndDump concode_elem_sep void decodeAndDump concode_elem_sep void decodeAndDum...
Asn1Type function ( byte [ ] arg0 ) { return decode ( ByteBuffer . wrap ( arg0 ) ) ; }
Generate a Java code for the following instruction: method to verify the content of the bundle are correct . this method will not mutate bundle . concode_field_sep String BUNDLE_EXTRA_STRING_MESSAGE concode_field_sep Bundle generateBundle
boolean function ( Bundle arg0 ) { if ( null == arg0 ) { return false ; } if ( ! arg0 . containsKey ( BUNDLE_EXTRA_STRING_MESSAGE ) ) { return false ; } return true ; }
Generate a Java code for the following instruction: returns the class of type of elements held in this arraydeclarationinfo concode_field_sep long serialVersionUID concode_elem_sep List<Class<?>> inputTypesCached concode_elem_sep Class<?> outputTypeCached concode_elem_sep int hashCodeCached concode_elem_sep boolean has...
Class < ? > function ( ) { return this . elementType ; }
Generate a Java code for the following instruction: called after a successful flush concode_field_sep CollectionPersister currentPersister concode_elem_sep String role concode_elem_sep boolean fromMerge concode_elem_sep boolean dorecreate concode_elem_sep boolean processed concode_elem_sep Serializable currentKey conco...
void function ( PersistentCollection arg0 ) { if ( isIgnore ( ) ) { ignore = false ; } else if ( ! isProcessed ( ) ) { throw new AssertionFailure ( "srini_string" + arg0 . getRole ( ) + "srini_string" ) ; } arg0 . setSnapshot ( loadedKey , role , snapshot ) ; }
Generate a Java code for the following instruction: returns the same citations rdd that was specified as argument . concode_field_sep PlaceHolder placeHolder concode_field_sep JavaPairRDD<String,MatchableEntity> convertDocuments
JavaPairRDD < String , MatchableEntity > function ( JavaPairRDD < String , MatchableEntity > arg0 ) { return arg0 ; }
Generate a Java code for the following instruction: adds a line to the pool and makes it available for reuse . if more than 8 lines are in the cache , then the line is closed . concode_field_sep int volume concode_elem_sep Vector lines concode_elem_sep int loopCount concode_elem_sep int loopStart concode_elem_sep Threa...
void function ( SourceDataLine arg0 ) { if ( lines . size ( ) < 16 ) { lines . addElement ( arg0 ) ; } else { arg0 . close ( ) ; } }
Generate a Java code for the following instruction: get status of a running 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_e...
void function ( int arg0 ) { if ( ! eventPool . containsKey ( arg0 ) ) { throw new EventDoesNotExistException ( arg0 + "srini_string" ) ; } eventPool . get ( arg0 ) . status ( ) ; }
Generate a Java code for the following instruction: fail . should be used whenever an impossible state is encountered such as the default branch of a switch over all possible values of an enum : such an assertion may save future developers time when they try to add new states concode_field_sep PlaceHolder placeHolder c...
void function ( ) { isTrue ( false ) ; }
Generate a Java code for the following instruction: set a new opponent 's weight . should be negative or zero concode_field_sep String teamName concode_elem_sep int weight concode_elem_sep Player player concode_field_sep String getPlayerNick concode_elem_sep void changeWeight concode_elem_sep int getWeight concode_elem...
void function ( int arg0 ) { this . weight = arg0 ; }
Generate a Java code for the following instruction: called on the event dispatching thread not on the worker thread after the construct method has finished and after done or failed has been invoked . the default implementation does nothing . subclasses may override this method to perform completion actions on the event...
void function ( ) { }
Generate a Java code for the following instruction: updates segment tree for given range by given delta concode_field_sep PlaceHolder placeHolder concode_field_sep int rangeMinimumQueryLazy concode_elem_sep int rangeMinimumQueryLazy concode_elem_sep int rangeMinimumQuery concode_elem_sep int rangeMinimumQuery concode_e...
void function ( int arg0 [ ] , int arg1 [ ] , int arg2 , int arg3 , int arg4 ) { for ( int loc0 = arg2 ; loc0 <= arg3 ; loc0 ++ ) { arg0 [ loc0 ] += arg4 ; } updateSegmentTreeRange ( arg1 , arg2 , arg3 , arg4 , 0 , arg0 . length - 1 , 0 ) ; }
Generate a Java code for the following instruction: access the last iteration count . concode_field_sep double functionValueAccuracy concode_elem_sep boolean resultComputed concode_elem_sep double defaultFunctionValueAccuracy concode_elem_sep UnivariateRealFunction f concode_elem_sep double relativeAccuracy concode_ele...
int function ( ) { if ( resultComputed ) { return iterationCount ; } else { throw new IllegalStateException ( "srini_string" ) ; } }
Generate a Java code for the following instruction: obtener las vueltas calculadas , para saber el valor de cada posicion del array podemos usar la variable : public static final int billetes_monedas concode_field_sep float precio concode_elem_sep int BILLETE_MINIMO concode_elem_sep int[] aVueltas concode_elem_sep floa...
int [ ] function ( ) { return this . aVueltas ; }
Generate a Java code for the following instruction: tests that invocation on a service deployed within a . sar , inside a . ear without an application.xml , is successful . concode_field_sep JMXConnector connector concode_elem_sep String EAR_WITH_APPLICATION_XML concode_elem_sep ManagementClient managementClient concod...
void function ( ) { this . testSarWithinEar ( "srini_string" ) ; }
Generate a Java code for the following instruction: creates a new sax parser . concode_field_sep Logger log concode_elem_sep File file concode_elem_sep boolean enableDateParsing concode_elem_sep Sink sink concode_elem_sep InputStream inputStream concode_elem_sep CompressionMethod compressionMethod concode_field_sep voi...
SAXParser function ( ) { try { return SAXParserFactory . newInstance ( ) . newSAXParser ( ) ; } catch ( ParserConfigurationException loc0 ) { throw new OsmosisRuntimeException ( "srini_string" , loc0 ) ; } catch ( SAXException loc0 ) { throw new OsmosisRuntimeException ( "srini_string" , loc0 ) ; } }
Generate a Java code for the following instruction: this method returns an aggregate of the complexity of the solved queries at a certain level . the method returns the complexity , which is attained by varying the amount of searched peers . concode_field_sep MetricsAggregate peerVariation concode_elem_sep int counter ...
MetricsAggregate function ( ) { return peerVariation ; }
Generate a Java code for the following instruction: verifies that the content of the processobject is processed on content . concode_field_sep ElementHandlerPipeline p concode_elem_sep WorkerContextImpl context concode_elem_sep List<Writable> lst concode_elem_sep ProcessObject po concode_elem_sep WritableElement writab...
void function ( ) { p . content ( context , null , null , po ) ; Assert . assertEquals ( writable , lst . get ( 0 ) ) ; }
Generate a Java code for the following instruction: adds an interface of a given type to the set of interfaces that the class implements . concode_field_sep boolean dirty concode_elem_sep ClassInfo classInfo concode_elem_sep Type[] interfaces concode_elem_sep Type superclass concode_elem_sep EditorContext context conco...
void function ( final Type arg0 ) { final Type [ ] loc0 = new Type [ this . interfaces . length + 1 ] ; for ( int loc1 = 0 ; loc1 < this . interfaces . length ; loc1 ++ ) { loc0 [ loc1 ] = this . interfaces [ loc1 ] ; } loc0 [ loc0 . length - 1 ] = arg0 ; this . setInterfaces ( loc0 ) ; }
Generate a Java code for the following instruction: this method creates a validator object that adds support for bean validation api 1.0 and 1.1 . concode_field_sep PlaceHolder placeHolder concode_field_sep SortHandlerMethodArgumentResolver sortArgumentResolver concode_elem_sep MappingJackson2HttpMessageConverter jacks...
LocalValidatorFactoryBean function ( ) { return new LocalValidatorFactoryBean ( ) ; }
Generate a Java code for the following instruction: get the base id url or system id from where urls will be resolved . concode_field_sep Node node concode_elem_sep String FEATURE concode_elem_sep String baseID concode_field_sep void setSystemId concode_elem_sep void setNode concode_elem_sep Node getNode
String function ( ) { return this . baseID ; }
Generate a Java code for the following instruction: creates a parenttree of all parents of a given tag concode_field_sep PlaceHolder placeHolder concode_field_sep List<Tag> getParentTagTree
List < String > function ( Tag arg0 ) { List < String > loc0 = new ArrayList < String > ( ) ; Tag loc1 = arg0 . getParent ( ) ; while ( loc1 != null && ! ( loc1 . getName ( ) . equals ( HTML . Tag . BODY ) ) ) { loc0 . add ( loc1 . getName ( ) ) ; loc1 = loc1 . getParent ( ) ; } return loc0 ; }
Generate a Java code for the following instruction: only concode_field_sep SodaTest st concode_elem_sep Object childFirst concode_elem_sep Object child concode_field_sep String toString concode_elem_sep String toString concode_elem_sep void main concode_elem_sep Object[] store
void function ( ) { Query loc0 = st . query ( ) ; loc0 . descend ( "srini_string" ) ; Object [ ] loc1 = store ( ) ; st . expect ( loc0 , loc1 ) ; }
Generate a Java code for the following instruction: substracts the given value from the internal value . concode_field_sep int MIN_VALUE concode_elem_sep int MAX_VALUE concode_elem_sep int m_value concode_field_sep void add concode_elem_sep void add concode_elem_sep void add concode_elem_sep int getValue concode_elem_s...
void function ( final int arg0 ) { final int loc0 = this . m_value ; this . m_value -= arg0 ; if ( loc0 < this . m_value ) { this . m_value = loc0 ; throw new ArithmeticException ( "srini_string" ) ; } }
Generate a Java code for the following instruction: sets the value of the outofservicebyrelease property . concode_field_sep String fcLink concode_elem_sep String techStack concode_elem_sep String fcKey concode_elem_sep String outOfServiceByRelease concode_elem_sep ApplicationID id concode_elem_sep List<ApplicationRele...
void function ( String arg0 ) { this . outOfServiceByRelease = arg0 ; }
Generate a Java code for the following instruction: return the class loader to be used for instantiating application objects when required . this is determined based upon the following rules : the specified class loader , if any the thread context class loader , if it exists and usecontextclassloader is true the class ...
ClassLoader function ( ClassLoader arg0 , boolean arg1 , Class arg2 ) { if ( arg0 != null ) { return arg0 ; } if ( arg1 ) { ClassLoader loc0 = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( loc0 != null ) { return loc0 ; } } return getClassLoader ( arg2 ) ; }
Generate a Java code for the following instruction: access to the names of all named parameters concode_field_sep Map<String,NamedParameterDescriptor> namedDescriptorMap concode_elem_sep OrdinalParameterDescriptor[] ordinalDescriptors concode_elem_sep OrdinalParameterDescriptor[] EMPTY_ORDINALS concode_field_sep int ge...
Set < String > function ( ) { return namedDescriptorMap . keySet ( ) ; }
Generate a Java code for the following instruction: programatical invocation of a dialog field change . concode_field_sep String fLabelText concode_elem_sep IDialogFieldListener fDialogFieldListener concode_elem_sep Label fLabel concode_elem_sep boolean fEnabled concode_field_sep Label getLabelControl concode_elem_sep ...
void function ( ) { if ( fDialogFieldListener != null ) { fDialogFieldListener . dialogFieldChanged ( this ) ; } }
Generate a Java code for the following instruction: returns the ip address mapped to the given hostname . if no mapping exists , the hostname is returned . concode_field_sep Map<String,TaskStatus> statuses concode_elem_sep Set<String> waitPorts concode_elem_sep List<String> hosts concode_elem_sep Map<String,String> hos...
String function ( String arg0 ) { final String loc0 = hostToIp . get ( arg0 ) ; return loc0 == null ? arg0 : loc0 ; }
Generate a Java code for the following instruction: returns the ones . concode_field_sep String name concode_elem_sep List ones concode_elem_sep Holder otherHolder concode_elem_sep String id concode_elem_sep Foo[] fooArray concode_elem_sep Set foos concode_field_sep Foo[] getFooArray concode_elem_sep void setName conco...
List function ( ) { return ones ; }
Generate a Java code for the following instruction: transforms an object into json and returns the json as a byte array . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
byte [ ] function ( Object arg0 ) { ObjectMapper loc0 = new ObjectMapper ( ) ; loc0 . setSerializationInclusion ( JsonInclude . Include . NON_NULL ) ; return loc0 . writeValueAsBytes ( arg0 ) ; }
Generate a Java code for the following instruction: methode tostring du vector concode_field_sep double _size concode_elem_sep double _yDirection concode_elem_sep double _endTopDistance concode_elem_sep double _leftDistance concode_elem_sep double _topDistance concode_elem_sep double _xDirection concode_elem_sep double...
String function ( ) { return "srini_string" + _topDistance + "srini_string" + _leftDistance + "srini_string" + _endTopDistance + "srini_string" + _endLeftDistance + "srini_string" ; }
Generate a Java code for the following instruction: returns a set view of the mappings contained in this registry . each element in the returned set is a map.entry . the set is backed by the registry , so changes to the map are reflected in the set , and vice-versa . if the registry is modified while an iteration over ...
Set function ( ) { return _register . entrySet ( ) ; }
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 , int arg3 ) { return ArrayTool . transferValues ( arg0 , arg1 , arg2 , 0 , arg3 ) ; }
Generate a Java code for the following instruction: header in freemarker syntax for function concode_field_sep Set<AmwFunctionEntity> overwritingChildFunction concode_elem_sep ResourceEntity resource concode_elem_sep String implementation concode_elem_sep Set<MikEntity> miks concode_elem_sep String name concode_elem_se...
String function ( ) { return "srini_string" + name + "srini_string" ; }
Generate a Java code for the following instruction: get a device according to his id concode_field_sep Object synclock concode_elem_sep Map<String,BasicDevice> devices concode_field_sep Device addDevice concode_elem_sep void removeDevice
Device function ( String arg0 ) { if ( ( arg0 == null ) || ( arg0 . trim ( ) . equals ( "srini_string" ) ) ) { throw new NullIdException ( ) ; } else { if ( this . devices . containsKey ( arg0 ) ) { return this . devices . get ( arg0 ) ; } else { throw new UnknownDeviceException ( ) ; } } }
Generate a Java code for the following instruction: formats time as milliseconds with units . concode_field_sep String UNIT_MILLISECONDS concode_elem_sep String UNIT_SECONDS concode_field_sep String format concode_elem_sep String format concode_elem_sep String format concode_elem_sep String formatToFixedDecimalPoint co...
String function ( double arg0 ) { return ( int ) arg0 + UNIT_MILLISECONDS ; }
Generate a Java code for the following instruction: create a new rawfragmentbatch based on this incoming data batch that is transferred into the provided allocator . also increments the acksender to expect one additional return message . concode_field_sep AckSender sender concode_elem_sep FragmentRecordBatch header con...
RawFragmentBatch function ( final BufferAllocator arg0 ) { final DrillBuf loc0 = body == null ? null : body . transferOwnership ( arg0 ) . buffer ; sender . increment ( ) ; return new RawFragmentBatch ( header , loc0 , sender ) ; }
Generate a Java code for the following instruction: get a quotient element from a long value . concode_field_sep RingFactory<C> ring concode_elem_sep boolean debug concode_elem_sep Logger logger concode_field_sep Quotient<C> random concode_elem_sep Quotient<C> random concode_elem_sep int hashCode concode_elem_sep boole...
Quotient < C > function ( long arg0 ) { return new Quotient < C > ( this , ring . fromInteger ( arg0 ) ) ; }
Generate a Java code for the following instruction: return an list of abis we supported on this device ordered according to preference . use a separate inner class to isolate the version-dependent call where it wo n't cause the whole class to fail preverification . concode_field_sep byte[] cachedBuffer concode_field_se...
String [ ] function ( ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . LOLLIPOP ) { return new String [ ] { Build . CPU_ABI , Build . CPU_ABI2 } ; } else { return LollipopSysdeps . getSupportedAbis ( ) ; } }
Generate a Java code for the following instruction: creation of h2 db concode_field_sep Logger LOGGER concode_field_sep LocalContainerEntityManagerFactoryBean entityManagerFactory concode_elem_sep JpaTransactionManager transactionManager concode_elem_sep void main concode_elem_sep Properties jpaProperties
DataSource function ( ) { BasicDataSource loc0 = new BasicDataSource ( ) ; loc0 . setDriverClassName ( "srini_string" ) ; loc0 . setUrl ( "srini_string" ) ; loc0 . setUsername ( "srini_string" ) ; loc0 . setPassword ( "srini_string" ) ; return ( DataSource ) loc0 ; }
Generate a Java code for the following instruction: get index into children array , that is hit by this planindex concode_field_sep int[] childRanges concode_elem_sep int[] childSizes concode_elem_sep int planSpaceSize concode_elem_sep PlanSpaceNode[] children concode_field_sep PlanSpaceNode[] getChildren concode_elem_...
int function ( int arg0 ) { int loc0 = 0 ; while ( ( arg0 < lowestRangeHit ( loc0 ) ) || ( arg0 > highestRangeHit ( loc0 ) ) ) { loc0 ++ ; } return loc0 ; }
Generate a Java code for the following instruction: create a client-server topology , using one hazelcastinstance server and one hazelcastinstance client . the client is the returned as the @bean . concode_field_sep String CLUSTER_HOST concode_elem_sep Logger LOG concode_elem_sep String MASTER_SERVER concode_elem_sep H...
HazelcastInstance function ( ) { InstanceHelper . makeServer ( "srini_string" + Constants . HAZELCAST_INSTANCE_NAME , CLUSTER_PORT ) ; HazelcastInstance loc0 = InstanceHelper . makeClient ( Constants . HAZELCAST_INSTANCE_NAME ) ; LOG . trace ( "srini_string" , loc0 ) ; return loc0 ; }
Generate a Java code for the following instruction: checks if given permission is available . if not a checked exception is thrown with error message containing extrainfo part . concode_field_sep EntityManager entityManager concode_elem_sep PermissionService permissionService concode_elem_sep ResourceTypeProvider resou...
void function ( Permission arg0 , String arg1 ) { permissionService . checkPermissionAndFireException ( arg0 , arg1 ) ; }
Generate a Java code for the following instruction: paint a cached formula concode_field_sep Image image concode_elem_sep ConcurrentMap<CachedTeXFormula,SoftReference<CachedImage>> cache concode_elem_sep String f concode_elem_sep int inset concode_elem_sep Color fgcolor concode_elem_sep AffineTransform identity concode...
Object function ( String arg0 , int arg1 , int arg2 , int arg3 , int arg4 , Color arg5 , Graphics2D arg6 ) { return paintCachedTeXFormula ( new CachedTeXFormula ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 ) , arg6 ) ; }
Generate a Java code for the following instruction: this method puts treehandler back in its initial state , if the host got off-line or if the peer left the underlying overlay . concode_field_sep SkyNetNodeInfo parentCoordinator concode_elem_sep SkyNetNodeInterface skyNetNode concode_elem_sep TreeHandlerDelegator tree...
void function ( ) { isRoot = false ; }
Generate a Java code for the following instruction: verifies that lower throws illegalargumentexception if not concode_field_sep double functionValueAccuracy concode_elem_sep boolean resultComputed concode_elem_sep double defaultFunctionValueAccuracy concode_elem_sep UnivariateRealFunction f concode_elem_sep double rel...
void function ( double arg0 , double arg1 , double arg2 ) { if ( ! isSequence ( arg0 , arg1 , arg2 ) ) { throw new IllegalArgumentException ( "srini_string" + arg0 + "srini_string" + arg1 + "srini_string" + arg2 ) ; } }
Generate a Java code for the following instruction: adds a richmediaconfiguration . part of the richmediacontent . concode_field_sep PdfDictionary richMediaSettings concode_elem_sep PdfArray configurations concode_elem_sep PdfArray views concode_elem_sep HashMap<String,PdfIndirectReference> assetsmap concode_elem_sep P...
PdfIndirectReference function ( RichMediaConfiguration arg0 ) { if ( configurations == null ) throw new IllegalPdfSyntaxException ( "srini_string" ) ; PdfIndirectReference loc0 = writer . addToBody ( arg0 ) . getIndirectReference ( ) ; configurations . add ( loc0 ) ; return loc0 ; }
Generate a Java code for the following instruction: parse given files . concode_field_sep String VERSION concode_elem_sep SentenceExtractor sentenceExtractor concode_elem_sep Configuration configuration concode_elem_sep List<Validator> validators concode_elem_sep Logger LOG concode_field_sep void runSectionValidators c...
List < Document > function ( DocumentParser arg0 , File [ ] arg1 ) { List < Document > loc0 = new ArrayList < > ( ) ; for ( File loc1 : arg1 ) { loc0 . add ( arg0 . parse ( loc1 , sentenceExtractor , configuration . getTokenizer ( ) ) ) ; } return loc0 ; }
Generate a Java code for the following instruction: can be customized in subclasses . concode_field_sep int RETRY_LIMIT concode_elem_sep String[] textForItems concode_elem_sep MenuItemReference[] items concode_field_sep MenuItemReference getNextMenuItem concode_elem_sep MenuItemReference resolveAndSelect concode_elem_s...
void function ( MenuItemReference arg0 ) { arg0 . click ( ) ; }
Generate a Java code for the following instruction: set the indirect reference concode_field_sep int INDIRECT concode_elem_sep int STRING concode_elem_sep int DICTIONARY concode_elem_sep int NULL concode_elem_sep int NUMBER concode_elem_sep int type concode_elem_sep int NAME concode_elem_sep String NOTHING concode_elem...
void function ( PRIndirectReference arg0 ) { this . indRef = arg0 ; }
Generate a Java code for the following instruction: searchs the stored list of local variables for a local variable with a given value number . concode_field_sep Expr ind_term concode_elem_sep boolean changed concode_elem_sep FlowGraph CFG concode_elem_sep Expr ind_var concode_elem_sep Expr ind_init concode_elem_sep Ex...
MemExpr function ( final int arg0 ) { final Iterator loc0 = LocalStore . keySet ( ) . iterator ( ) ; while ( loc0 . hasNext ( ) ) { final MemExpr loc1 = ( MemExpr ) loc0 . next ( ) ; if ( loc1 . valueNumber ( ) == arg0 ) { return loc1 ; } } return null ; }
Generate a Java code for the following instruction: verifies that the call to content of div returns a nonewlineparagraph . concode_field_sep List<Element> currentContent concode_elem_sep Div d concode_elem_sep WorkerContextImpl workerContextImpl concode_field_sep void init concode_elem_sep void verifyNumberOfParagraph...
void function ( ) { final List < Element > loc0 = d . loc0 ( workerContextImpl , new Tag ( "srini_string" ) , "srini_string" ) ; Assert . assertTrue ( loc0 . get ( 0 ) instanceof NoNewLineParagraph ) ; }
Generate a Java code for the following instruction: verify if nazgul #getinstance nazgulname returns the correct nazgul multiton instance concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
void function ( ) { for ( final NazgulName loc0 : NazgulName . values ( ) ) { final Nazgul loc1 = Nazgul . getInstance ( loc0 ) ; assertNotNull ( loc1 ) ; assertSame ( loc1 , Nazgul . getInstance ( loc0 ) ) ; assertEquals ( loc0 , loc1 . getName ( ) ) ; } }
Generate a Java code for the following instruction: null-safe check for a context - if the given context is null , it returns the global context . concode_field_sep ContextEntity globalContext concode_elem_sep EntityManager entityManager concode_elem_sep Logger log concode_elem_sep ResourceTypeProvider resourceTypeProv...
ContextEntity function ( ContextEntity arg0 ) { if ( arg0 != null ) { return arg0 ; } return getGlobalResourceContextEntity ( ) ; }
Generate a Java code for the following instruction: add a path with a custom schema to the list ofinputs for the map-reduce job . concode_field_sep String mappersKey concode_elem_sep String schemaKey concode_field_sep String toBase64 concode_elem_sep Map<Path,Schema> getInputSchemaMap concode_elem_sep Map<Path,Class<? ...
void function ( JobConf arg0 , Path arg1 , Schema arg2 ) { String loc0 = arg1 . toString ( ) + "srini_string" + toBase64 ( arg2 . toString ( ) ) ; String loc1 = arg0 . get ( schemaKey ) ; arg0 . set ( schemaKey , loc1 == null ? loc0 : loc1 + "srini_string" + loc0 ) ; arg0 . setInputFormat ( DelegatingInputFormat . clas...
Generate a Java code for the following instruction: isempty returns true if this list is empty , false otherwise . concode_field_sep ListNode head concode_elem_sep int size concode_field_sep Keyable find concode_elem_sep Enumeration elements concode_elem_sep int length concode_elem_sep void insert concode_elem_sep Stri...
boolean function ( ) { return ( size == 0 ) ; }
Generate a Java code for the following instruction: change la figure passer en parametre concode_field_sep ArrayList<MyObserver> _observer concode_elem_sep Figure _message concode_field_sep void addObserver concode_elem_sep void notifyObs concode_elem_sep void notifyObservers
void function ( Figure arg0 ) { _message = arg0 ; }
Generate a Java code for the following instruction: frees a hessian 2.0 serializer concode_field_sep SerializerFactory _serializerFactory concode_elem_sep SerializerFactory _defaultSerializerFactory concode_elem_sep Logger log concode_elem_sep HessianFreeList<HessianInput> _freeHessianInput concode_elem_sep HessianFree...
void function ( Hessian2StreamingOutput arg0 ) { if ( arg0 == null ) { return ; } freeHessian2Output ( arg0 . getHessian2Output ( ) ) ; }
Generate a Java code for the following instruction: create an instance of limit 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 co...
Limit function ( ) { return new Limit ( ) ; }
Generate a Java code for the following instruction: sets the parent of this change . requires that this change is n't already connected to a parent . the parent can be null to disconnect this change from a parent . concode_field_sep boolean fIsEnabled concode_elem_sep Change fParent concode_field_sep ChangeDescriptor g...
void function ( Change arg0 ) { if ( arg0 != null ) Assert . isTrue ( fParent == null ) ; fParent = arg0 ; }
Generate a Java code for the following instruction: algebraicnumber greatest common divisor . concode_field_sep GenPolynomial<C> val concode_elem_sep AlgebraicNumberRing<C> ring concode_elem_sep int isunit concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep AlgebraicNumber<C> inverse concode_el...
AlgebraicNumber < C > function ( AlgebraicNumber < C > arg0 ) { if ( arg0 . isZERO ( ) ) { return this ; } if ( isZERO ( ) ) { return arg0 ; } if ( isUnit ( ) || arg0 . isUnit ( ) ) { return ring . getONE ( ) ; } return new AlgebraicNumber < C > ( ring , val . gcd ( arg0 . val ) ) ; }
Generate a Java code for the following instruction: returns an unmodifiable version of the given non-null intlist . 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 singletonIntListIterator...
IntList function ( IntList arg0 ) { if ( null == arg0 ) { throw new NullPointerException ( ) ; } return UnmodifiableIntList . wrap ( arg0 ) ; }
Generate a Java code for the following instruction: stop dispatching item changed events to presenters until start | resume dispatchingitemschanged is called . useful when many menu operations are going to be performed as a batch . concode_field_sep int SHOW_AS_ACTION_NEVER concode_elem_sep Drawable mIcon concode_elem_...
void function ( ) { mDidChange = false ; mShouldDispatchChanges = false ; }
Generate a Java code for the following instruction: remove bean instance . concode_field_sep Map<TypeBeanStateKey,Set<Object>> beans concode_elem_sep Set<Object> instances concode_elem_sep Map<TypeBeanStateKey,List<Callback>> incallbacks concode_elem_sep Map<TypeBeanStateKey,List<Callback>> uncallbacks concode_elem_sep...
void function ( ServiceRegistry arg0 , BeanState arg1 , Object arg2 ) { removeInstance ( arg0 , arg1 , arg2 . getClass ( ) , arg2 ) ; }
Generate a Java code for the following instruction: gets the value of the message property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the messag...
List < Message > function ( ) { if ( message == null ) { message = new ArrayList < Message > ( ) ; } return this . message ; }
Generate a Java code for the following instruction: write the link tag with a reference to the external resource . concode_field_sep T canvas concode_field_sep T favicon concode_elem_sep T script concode_elem_sep T javascript concode_elem_sep T cdata
T function ( String arg0 ) { return ( T ) canvas . link ( type ( "srini_string" ) . href ( arg0 ) . rel ( "srini_string" ) ) ; }
Generate a Java code for the following instruction: returns an iterator over entries in this file . note that this iterator is shared with other users of the file : it does not contain a separate pointer into the file . concode_field_sep Schema schema concode_elem_sep List<String> metaKeyList concode_elem_sep long bloc...
Iterator < D > function ( ) { return this ; }
Generate a Java code for the following instruction: retrieves from the storm configuration the specified named query . concode_field_sep PlaceHolder placeHolder concode_field_sep BatchCQLStatementTupleMapper unLoggedBatch concode_elem_sep CqlMapper.DefaultCqlMapper all concode_elem_sep CQLStatementTupleMapper async con...
ContextQuery function ( final String arg0 ) { return new ContextQuery . BoundQueryContext ( arg0 ) ; }
Generate a Java code for the following instruction: get the jni signaure for a member . concode_field_sep HashMap<String,String> NATIVE_TYPES concode_elem_sep HashMap<String,String> CLASS_DESCRIPTORS concode_elem_sep HashMap<String,String> NATIVE_ARRAY_TYPES concode_field_sep boolean isStatic concode_elem_sep String ge...
String function ( Member arg0 ) { return arg0 instanceof Field ? getSignature ( ( Field ) arg0 ) : arg0 instanceof Method ? getSignature ( ( Method ) arg0 ) : getSignature ( ( Constructor < ? > ) arg0 ) ; }
Generate a Java code for the following instruction: sets the fum . concode_field_sep Locale locale concode_elem_sep Fum fum concode_field_sep Fum getFum concode_elem_sep void setId concode_elem_sep FumCompositeID getId concode_elem_sep Locale getLocale concode_elem_sep void setLocale
void function ( Fum arg0 ) { this . fum = arg0 ; }
Generate a Java code for the following instruction: return the list of issued and renewed tokens . concode_field_sep PlaceHolder placeHolder concode_field_sep void add concode_elem_sep Token[] getExpiredTokens concode_elem_sep Token[] getCancelledTokens concode_elem_sep String[] getTokenIdentifiers concode_elem_sep voi...
Token [ ] function ( ) { return new Token [ 0 ] ; }
Generate a Java code for the following instruction: deletes all text from the clipboard . concode_field_sep String LOGTAG concode_elem_sep SynchronousQueue<String> sClipboardQueue concode_elem_sep Context mContext concode_field_sep void init concode_elem_sep String getClipboardTextImpl concode_elem_sep String getText c...
void function ( ) { setText ( null ) ; }
Generate a Java code for the following instruction: get objects that determines search query concode_field_sep String m_Url concode_elem_sep String m_Key concode_elem_sep String m_Packing concode_elem_sep String m_Language concode_elem_sep String m_Format concode_field_sep String getPacking concode_elem_sep String getL...
String function ( String arg0 , int arg1 ) { return doSendApiRequest ( "srini_string" , "srini_string" + arg0 + "srini_string" + arg1 ) ; }
Generate a Java code for the following instruction: remove the local variable type table attribute lvtt from mg . evidently some changes require this to be updated , but without bcel support that would be hard to do . it should be safe to just delete it since it is optional and really only of use to a debugger . concod...
void function ( MethodGen arg0 ) { for ( Attribute loc0 : arg0 . getCodeAttributes ( ) ) { if ( is_local_variable_type_table ( loc0 , arg0 . getConstantPool ( ) ) ) { arg0 . removeCodeAttribute ( loc0 ) ; } } }
Generate a Java code for the following instruction: convenience method for setting a flag . concode_field_sep Rational timeStamp concode_elem_sep long sequenceNumber concode_elem_sep EnumSet<BufferFlag> flags concode_elem_sep int NOT_SPECIFIED concode_elem_sep Object data concode_elem_sep int offset concode_elem_sep in...
void function ( BufferFlag arg0 ) { setFlag ( arg0 , true ) ; }
Generate a Java code for the following instruction: the index of the statement that creates this value . concode_field_sep Sequence sequence concode_elem_sep long serialVersionUID concode_elem_sep int index concode_field_sep Variable copyWithIndexUpdated concode_elem_sep String getName concode_elem_sep String getName c...
int function ( ) { return this . index ; }
Generate a Java code for the following instruction: initializes the main menu background concode_field_sep Image background concode_field_sep Image loadAndResizeSprite concode_elem_sep Image getBackGround
void function ( ) { this . background = this . loadAndResizeSprite ( "srini_string" , 672 , 864 ) ; }
Generate a Java code for the following instruction: use a strategy that validates that a schema can read existing schema s , and vice-versa , according to the avro default schema resolution . concode_field_sep SchemaValidationStrategy strategy concode_field_sep void valid concode_elem_sep SchemaValidatorBuilder canRead...
SchemaValidatorBuilder function ( ) { this . strategy = new ValidateMutualRead ( ) ; return this ; }
Generate a Java code for the following instruction: return true iff this quadrant is adjacent to the boundary of an image in the given direction . concode_field_sep PlaceHolder placeHolder concode_field_sep Quadrant reflect concode_elem_sep QuadTreeNode child
boolean function ( int arg0 ) { return ( arg0 == QuadTreeNode . SOUTH || arg0 == QuadTreeNode . EAST ) ; }
Generate a Java code for the following instruction: returns an executor that wraps runnables before submission to the passed in executor . concode_field_sep Field causeField concode_field_sep void handleException concode_elem_sep StackTraceElement[] getStackContext concode_elem_sep Throwable findRootCause concode_elem_...
Executor function ( final Executor arg0 ) { return new Executor ( ) { @ Override public void execute ( Runnable arg1 ) { arg0 . execute ( makeContextRunnable ( arg1 ) ) ; } } ; }
Generate a Java code for the following instruction: addfish places a fish in cell x , y if the cell is empty . if the cell is already occupied , leave the cell as it is . concode_field_sep int EMPTY concode_elem_sep int FISH concode_elem_sep int SHARK concode_elem_sep int starveTime concode_elem_sep int width concode_e...
void function ( int arg0 , int arg1 ) { int [ ] loc0 = checkOffGrid ( arg0 , arg1 ) ; if ( gridData [ loc0 [ 0 ] ] [ loc0 [ 1 ] ] == null ) { gridData [ loc0 [ 0 ] ] [ loc0 [ 1 ] ] = new Animal ( 2 ) ; } }
Generate a Java code for the following instruction: returns the iso two-letter country code of this country/region . concode_field_sep String code concode_elem_sep String name concode_field_sep String getName
String function ( ) { return code ; }
Generate a Java code for the following instruction: converts an array of integer pixels into an image . the array is referenced by the image . concode_field_sep PlaceHolder placeHolder concode_field_sep BufferedImage[] split concode_elem_sep Image createImage concode_elem_sep Image createImage concode_elem_sep Buffered...
BufferedImage function ( int [ ] arg0 , int arg1 , int arg2 ) { return new BufferedImage ( DirectColorModel . getRGBdefault ( ) , Raster . createWritableRaster ( new SinglePixelPackedSampleModel ( DataBuffer . TYPE_INT , arg1 , arg2 , new int [ ] { 0xff00000 , 0xff00 , 0xff } ) , new DataBufferInt ( arg0 , arg1 * arg2 ...
Generate a Java code for the following instruction: create an instance of link 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 con...
Link function ( ) { return new Link ( ) ; }