input
stringlengths
147
4.02k
output
stringlengths
21
493
Generate a Java code for the following instruction: creates a zip fie from the given source directory and output zip file name concode_field_sep PlaceHolder placeHolder concode_field_sep void zipDirectory concode_elem_sep void unzip concode_elem_sep boolean matches
void function ( Logger arg0 , File arg1 , File arg2 ) { FileFilter loc0 = null ; createZipFile ( arg0 , arg1 , arg2 , loc0 ) ; }
Generate a Java code for the following instruction: sum of getcheckinitialconditionsticks and getcheckfinalconditionsticks concode_field_sep RefactoringTickProvider DEFAULT concode_elem_sep int CHECK_INITIAL_CONDITIONS concode_elem_sep int INITIALIZE_CHANGE concode_elem_sep int CHECK_FINAL_CONDITIONS concode_elem_sep i...
int function ( ) { return fValues [ CHECK_INITIAL_CONDITIONS ] + fValues [ CHECK_FINAL_CONDITIONS ] ; }
Generate a Java code for the following instruction: returns a label for a version name . example is ' 1.4.1 ' concode_field_sep String CONCAT_STRING concode_field_sep String getURLPart concode_elem_sep String getFilePattern concode_elem_sep String markLTR concode_elem_sep String getResourceName concode_elem_sep String ...
String function ( String arg0 ) { return markLTR ( arg0 , "srini_string" ) ; }
Generate a Java code for the following instruction: local absolute value . 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 concode_elem_s...
Local < C > function ( ) { return new Local < C > ( ring , num . abs ( ) , den , true ) ; }
Generate a Java code for the following instruction: generate variable list . concode_field_sep String var concode_elem_sep int N concode_elem_sep String order concode_field_sep String sum1 concode_elem_sep String polyList concode_elem_sep String sumUm concode_elem_sep String variable concode_elem_sep void main concode_...
String function ( String arg0 , String arg1 ) { StringBuffer loc0 = new StringBuffer ( ) ; loc0 . append ( arg0 ) ; loc0 . append ( "srini_string" ) ; for ( int loc1 = 0 ; loc1 <= N ; loc1 ++ ) { loc0 . append ( variable ( loc1 ) ) ; if ( loc1 < N ) { loc0 . append ( "srini_string" ) ; } } loc0 . append ( "srini_string...
Generate a Java code for the following instruction: gets the predicate this iterator is using . concode_field_sep Predicate predicate concode_elem_sep Object nextObject concode_elem_sep ListIterator iterator concode_elem_sep boolean nextObjectSet concode_elem_sep boolean previousObjectSet concode_elem_sep int nextIndex...
Predicate function ( ) { return predicate ; }
Generate a Java code for the following instruction: get listview height according to every children concode_field_sep String CLASS_NAME_GRID_VIEW concode_elem_sep String FIELD_NAME_VERTICAL_SPACING concode_field_sep List<T> getDescendants concode_elem_sep void setViewHeight concode_elem_sep void setSearchViewOnClickLis...
int function ( ListView arg0 ) { int loc0 = getAbsListViewHeightBasedOnChildren ( arg0 ) ; ListAdapter loc1 ; int loc2 ; if ( arg0 != null && ( loc1 = arg0 . getAdapter ( ) ) != null && ( loc2 = loc1 . getCount ( ) ) > 0 ) { loc0 += arg0 . getDividerHeight ( ) * ( loc2 - 1 ) ; } return loc0 ; }
Generate a Java code for the following instruction: creates a new customizable refactoring descriptor initialized with its default values . this method may be reimplemented to return a language-specified refactoring descriptor which can be initialized using language-specific features . refactoring tool providers may re...
RefactoringDescriptor function ( ) { return null ; }
Generate a Java code for the following instruction: create an instance of businessexception 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 co...
BusinessException function ( ) { return new BusinessException ( ) ; }
Generate a Java code for the following instruction: create a fingerprint per the following spec concode_field_sep Map<String,ECParameterSpec> CURVES concode_elem_sep String NISTP384 concode_elem_sep Map<Integer,String> CURVE_SIZES concode_elem_sep String ECDSA_SHA2_PREFIX concode_elem_sep ECParameterSpec nistp521 conco...
String function ( ECPublicKey arg0 ) { byte [ ] loc0 = loc0 ( arg0 ) ; return hexColonDelimited ( Hashing . md5 ( ) . hashBytes ( loc0 ) ) ; }
Generate a Java code for the following instruction: append a hashcode for a byte . concode_field_sep int iConstant concode_elem_sep int iTotal concode_field_sep HashCodeBuilder appendSuper concode_elem_sep int toHashCode
HashCodeBuilder function ( byte arg0 ) { iTotal = iTotal * iConstant + arg0 ; return this ; }
Generate a Java code for the following instruction: returns true iff the method could be a virtual method , i.e. if it is not a constructor , is private , or is static . concode_field_sep PlaceHolder placeHolder concode_field_sep IMethod isDeclaredInInterface concode_elem_sep IMethod overridesAnotherMethod concode_elem...
boolean function ( IMethod arg0 ) { if ( arg0 . isConstructor ( ) ) return false ; if ( JdtFlags . isPrivate ( arg0 ) ) return false ; if ( JdtFlags . isStatic ( arg0 ) ) return false ; return true ; }
Generate a Java code for the following instruction: invoke to tell listeners that an atomic test flagged that it assumed something false . concode_field_sep List<RunListener> fListeners concode_elem_sep boolean fPleaseStop concode_elem_sep List<RunListener> fCurrentListeners concode_field_sep void fireTestIgnored conco...
void function ( final Failure arg0 ) { new SafeNotifier ( ) { @ Override protected void notifyListener ( RunListener arg1 ) throws Exception { arg1 . testAssumptionFailure ( arg0 ) ; } } . run ( ) ; }
Generate a Java code for the following instruction: get 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_e...
Image function ( String arg0 , int arg1 , int arg2 , int arg3 , int arg4 , Color arg5 ) { return getCachedTeXFormulaImage ( new CachedTeXFormula ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 ) ) ; }
Generate a Java code for the following instruction: a shorthand for readfixed bytes , 0 , bytes.length . concode_field_sep PlaceHolder placeHolder concode_field_sep void skipFixed concode_elem_sep long readArrayStart concode_elem_sep long arrayNext concode_elem_sep long skipMap concode_elem_sep Utf8 readString concode_...
void function ( byte [ ] arg0 ) { readFixed ( arg0 , 0 , arg0 . length ) ; }
Generate a Java code for the following instruction: set the sql comment to use . concode_field_sep CriteriaImpl impl concode_elem_sep Criteria criteria concode_field_sep DetachedCriteria add concode_elem_sep Criteria getExecutableCriteria concode_elem_sep DetachedCriteria setFetchMode concode_elem_sep DetachedCriteria ...
DetachedCriteria function ( String arg0 ) { criteria . setComment ( arg0 ) ; return this ; }
Generate a Java code for the following instruction: waits until the statemodel reaches the indicated state . note : waitforstate methods may not be called from multiple threads simoultaneously . concode_field_sep int[] targetStates_ concode_elem_sep StateModel model_ concode_field_sep void stateChanged concode_elem_sep...
void function ( int arg0 ) { int [ ] loc0 = { arg0 } ; waitForState ( loc0 ) ; }
Generate a Java code for the following instruction: appends the `` order by '' fragment , prefixed by a comma if the `` order by '' fragment already exists . concode_field_sep LockOptions lockOptions concode_elem_sep int guesstimatedBufferSize concode_elem_sep StringBuilder whereClause concode_elem_sep Dialect dialect ...
void function ( String arg0 ) { if ( this . orderByClause == null ) { this . orderByClause = new StringBuilder ( ) ; } else { this . orderByClause . append ( "srini_string" ) ; this . guesstimatedBufferSize += 2 ; } this . orderByClause . append ( arg0 ) ; }
Generate a Java code for the following instruction: get event listener of this object concode_field_sep String name concode_elem_sep AngularObjectListener listener concode_elem_sep String noteId concode_elem_sep String paragraphId concode_elem_sep List<AngularObjectWatcher> watchers concode_elem_sep T object concode_fi...
AngularObjectListener function ( ) { return listener ; }
Generate a Java code for the following instruction: factory method that performs validation and copies the parameter array . concode_field_sep Closure[] iClosures concode_elem_sep long serialVersionUID concode_field_sep Closure[] getClosures concode_elem_sep void execute
Closure function ( Closure [ ] arg0 ) { FunctorUtils . validate ( arg0 ) ; if ( arg0 . length == 0 ) { return NOPClosure . INSTANCE ; } arg0 = FunctorUtils . copy ( arg0 ) ; return new ChainedClosure ( arg0 ) ; }
Generate a Java code for the following instruction: indicates whether some other object is `` equal to '' this comparator . concode_field_sep EditorContext context concode_elem_sep boolean DEBUG concode_field_sep int compare concode_elem_sep void db
boolean function ( final Object arg0 ) { return ( arg0 instanceof TypeComparator ) ; }
Generate a Java code for the following instruction: is this menu contained by this control ? concode_field_sep SWTHierarchy _hierarchy concode_field_sep boolean isOrphanedBy concode_elem_sep boolean isSubMenu
boolean function ( Menu arg0 , Control arg1 ) { Collection loc0 = _hierarchy . getWidgets ( arg1 ) ; return loc0 == null ? false : loc0 . contains ( arg0 ) ; }
Generate a Java code for the following instruction: dispatch a mouserelease event . concode_field_sep Point pointT concode_elem_sep abbot.swt.Robot _robot concode_field_sep void robotKeyClick concode_elem_sep void doKeyDown concode_elem_sep void doKeyUp concode_elem_sep void mouseMove concode_elem_sep void mouseMove co...
void function ( int arg0 ) { Event loc0 = createClickEvent ( arg0 ) ; loc0 . type = SWT . MouseUp ; new SWTPushEventOperation ( loc0 ) . execute ( ) ; }
Generate a Java code for the following instruction: adds a notification . concode_field_sep Notification mForegroundNotification concode_elem_sep ConcurrentHashMap<Integer,Notification> mNotifications concode_elem_sep NotificationManagerCompat mNotificationManager concode_elem_sep Context mContext concode_elem_sep int ...
void function ( int arg0 , Notification arg1 ) { mNotificationManager . notify ( arg0 , arg1 ) ; mNotifications . put ( arg0 , arg1 ) ; if ( mForegroundNotification == null && isOngoing ( arg1 ) ) { setForegroundNotification ( arg0 , arg1 ) ; } }
Generate a Java code for the following instruction: looks at the top of this stack without removing it . concode_field_sep ArrayShortList list concode_field_sep short pop concode_elem_sep int search concode_elem_sep int size concode_elem_sep short get concode_elem_sep void clear concode_elem_sep short push concode_elem...
short function ( ) { if ( list . isEmpty ( ) ) { throw new EmptyStackException ( ) ; } return list . get ( list . size ( ) - 1 ) ; }
Generate a Java code for the following instruction: return the ending location of this move . concode_field_sep int startingLocation concode_elem_sep Player thePlayer concode_elem_sep int endingLocation concode_field_sep Player getPlayer concode_elem_sep int startLocation
int function ( ) { return endingLocation ; }
Generate a Java code for the following instruction: sets the new vendorid . concode_field_sep long signature1 concode_elem_sep int productID concode_elem_sep String manufacturer concode_elem_sep int vendorID concode_elem_sep long version concode_elem_sep long signature2 concode_elem_sep String productDescription concod...
void function ( int arg0 ) { this . vendorID = arg0 ; }
Generate a Java code for the following instruction: finds the cross product of two 3d vectors represented to float arrays concode_field_sep float x concode_elem_sep float z concode_elem_sep float y concode_field_sep void setLength concode_elem_sep void logVector concode_elem_sep void normalize concode_elem_sep double d...
void function ( float [ ] arg0 , float [ ] arg1 , Point3D arg2 ) { arg2 . x = arg0 [ 1 ] * arg1 [ 2 ] - arg0 [ 2 ] * arg1 [ 1 ] ; arg2 . y = arg0 [ 2 ] * arg1 [ 0 ] - arg0 [ 0 ] * arg1 [ 2 ] ; arg2 . z = arg0 [ 0 ] * arg1 [ 1 ] - arg0 [ 1 ] * arg1 [ 0 ] ; }
Generate a Java code for the following instruction: gets the size of the list of keys . concode_field_sep long serialVersionUID concode_elem_sep Object[] keys concode_elem_sep int hashCode concode_field_sep Object getKey concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString conc...
int function ( ) { return keys . length ; }
Generate a Java code for the following instruction: find a widget , using the given matcher to determine whether a given widget in the hierarchy in the given display is the desired one . concode_field_sep int MATCH concode_elem_sep Collection _widgets concode_elem_sep int _dbComparisons concode_elem_sep Widget _widget ...
MatchResult function ( Display arg0 , Matcher arg1 ) { return find ( arg0 , arg1 , getMaxFinderRetries ( ) ) ; }
Generate a Java code for the following instruction: assume for test failures when running with elytron profile enabled . it skips test in case the ' - delytron ' mavenargument is used for elytron profile activation and system property wildfly.tmp.enable.elytron.profile.tests has n't value ` true ' . concode_field_sep S...
void function ( ) { assumeCondition ( "srini_string" , CONDITION_SKIP_ELYTRON_PROFILE ) ; }
Generate a Java code for the following instruction: reads a group of ppt statements statements following the line `` ppt_name ... '' . all the lines between firstline and the first empty line are placed into a list and then this list is placed in to pptsections . concode_field_sep String lineSep concode_elem_sep Statem...
void function ( LineNumberReader arg0 , List < List < String >> arg1 , String arg2 ) { List < String > loc0 = new ArrayList < String > ( ) ; loc0 . add ( arg2 ) ; String loc1 = arg0 . readLine ( ) ; while ( ( loc1 != null ) && ( ! loc1 . trim ( ) . equals ( "srini_string" ) ) ) { loc0 . add ( loc1 ) ; loc1 = arg0 . rea...
Generate a Java code for the following instruction: return a library that loads the core from code.jquery.com concode_field_sep String BASE_RESOURCE_URL concode_elem_sep String url concode_field_sep JQueryLibrary mobileStructure concode_elem_sep JQueryLibrary baseTheme concode_elem_sep JQueryLibrary ui concode_elem_sep...
JQueryLibrary function ( String arg0 ) { return new JQueryLibrary ( BASE_RESOURCE_URL + "srini_string" + arg0 + "srini_string" ) ; }
Generate a Java code for the following instruction: build a condition that tests whether the active wizard page has an expected message text . concode_field_sep long serialVersionUID concode_field_sep IUICondition hasErrorMessage concode_elem_sep IUICondition hasDescription concode_elem_sep String toString concode_elem...
IUICondition function ( String arg0 ) { return new HasTextCondition ( new WizardPageElement ( ) { public String getText ( IUIContext arg1 ) throws WidgetSearchException { return getPage ( ) . getMessage ( ) ; } } , arg0 ) ; }
Generate a Java code for the following instruction: returns an unmodifiable set of enabled filter names . concode_field_sep String internalFetchProfile concode_elem_sep EntityGraph loadGraph concode_elem_sep SessionFactoryImplementor sessionFactory concode_elem_sep Map<String,Filter> enabledFilters concode_elem_sep Set...
Set < String > function ( ) { return java . util . Collections . unmodifiableSet ( enabledFilters . keySet ( ) ) ; }
Generate a Java code for the following instruction: create and cache a new recording debug info structure concode_field_sep IPath workspaceLocation concode_elem_sep String PROJECT_CLASSPATH concode_elem_sep String[] recorderClasspath concode_elem_sep String[] bundleClasspath concode_elem_sep String recLogContent concod...
void function ( ) { mostRecentInfo = new DebugRecordingInfo ( ) ; }
Generate a Java code for the following instruction: solves a linear system for x , y with cramer 's rule . ax + by = e cx + dy = f concode_field_sep PlaceHolder placeHolder concode_field_sep double det concode_elem_sep double det
double [ ] function ( double arg0 , double arg1 , double arg2 , double arg3 , double arg4 , double arg5 ) { System . out . println ( "srini_string" + arg0 + "srini_string" + arg1 + "srini_string" + arg2 + "srini_string" + arg3 + "srini_string" + arg4 + "srini_string" + arg5 + "srini_string" ) ; double loc0 = ( arg4 * a...
Generate a Java code for the following instruction: returns the paint surface associated with this paint session . concode_field_sep PaintSurface paintSurface concode_field_sep placeholderType placeHolder
PaintSurface function ( ) { return paintSurface ; }
Generate a Java code for the following instruction: this method splits a string by hyphens in it and returns the list of strings . concode_field_sep PlaceHolder placeHolder concode_field_sep String getDocContent concode_elem_sep ArrayList<String> processToken concode_elem_sep Map<Integer,Double> sortByValue concode_ele...
List < String > function ( String arg0 ) { return Arrays . asList ( ( arg0 . split ( "srini_string" ) ) ) ; }
Generate a Java code for the following instruction: stop monitoring the ui for responsiveness . concode_field_sep ITestCleanupHandler _cleanupHandler concode_elem_sep boolean _isRunning concode_elem_sep List<ITestExecutionListener> _listeners concode_elem_sep RunningState _runningState concode_elem_sep TestExceptionCac...
void function ( ) { getUIThreadMonitor ( ) . setListener ( null ) ; }
Generate a Java code for the following instruction: launch the application concode_field_sep Shell shell concode_elem_sep boolean ALPHA concode_elem_sep Text text concode_elem_sep boolean BETA concode_field_sep void toggleBETA concode_elem_sep Text getText concode_elem_sep void toggleALPHA concode_elem_sep Shell getShe...
void function ( String [ ] arg0 ) { try { TextTestShell loc0 = new TextTestShell ( ) ; loc0 . open ( ) ; final Display loc1 = Display . getDefault ( ) ; while ( ! loc0 . getShell ( ) . isDisposed ( ) ) { if ( ! loc1 . readAndDispatch ( ) ) loc1 . sleep ( ) ; } } catch ( Exception loc0 ) { loc0 . printStackTrace ( ) ; }...
Generate a Java code for the following instruction: transform a given cache into a cache that fails silently if cache reads fail . concode_field_sep PlaceHolder placeHolder concode_field_sep AdvancedCache asyncWriteCache concode_elem_sep boolean isClustered concode_elem_sep AdvancedCache localCache concode_elem_sep Adv...
AdvancedCache function ( AdvancedCache arg0 ) { return arg0 . withFlags ( Flag . FAIL_SILENTLY , Flag . ZERO_LOCK_ACQUISITION_TIMEOUT ) ; }
Generate a Java code for the following instruction: return the original line number for this 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 con...
int function ( ) { return lineNo ; }
Generate a Java code for the following instruction: gets the next key from the map . concode_field_sep Iterator iterator concode_elem_sep Map.Entry last concode_elem_sep Map map concode_elem_sep boolean canRemove concode_field_sep Object getKey concode_elem_sep Object getValue concode_elem_sep Object setValue concode_e...
Object function ( ) { last = ( Map . Entry ) iterator . next ( ) ; canRemove = true ; return last . getKey ( ) ; }
Generate a Java code for the following instruction: called by the default implementation of #writearray to get thesize of an array . the default implementation is for collection . concode_field_sep GenericData data concode_elem_sep Schema root concode_field_sep NullPointerException npe concode_elem_sep void writeWithou...
long function ( Object arg0 ) { return ( ( Collection ) arg0 ) . size ( ) ; }
Generate a Java code for the following instruction: called when a paragraph is written . paragraphposition will hold the height of the end of the paragraph . concode_field_sep PlaceHolder placeHolder concode_field_sep void onSection concode_elem_sep void onParagraph concode_elem_sep void onOpenDocument concode_elem_sep...
void function ( PdfWriter arg0 , Document arg1 , float arg2 ) { }
Generate a Java code for the following instruction: adds the given text as a child to this node . the text will be quoted . concode_field_sep char EQ concode_elem_sep char LT concode_elem_sep char AMP concode_elem_sep char QUOT concode_elem_sep char GT concode_elem_sep XMLElement lastchild concode_elem_sep char SPACE c...
XMLElement function ( final String arg0 ) { if ( closed ) { throw new IOException ( format ( "srini_string" , name ) ) ; } finishOpenTag ( ) ; if ( lastchild != null ) { lastchild . close ( ) ; } quote ( arg0 ) ; return this ; }
Generate a Java code for the following instruction: parse an inputstream that optionally detects encoding from the stream concode_field_sep String text concode_elem_sep Charset charset concode_elem_sep StateController controller concode_elem_sep XMLParserMemory memory concode_elem_sep List<XMLParserListener> listeners ...
void function ( final InputStream arg0 , final boolean arg1 ) { if ( arg1 ) { parse ( arg1 ( new BufferedInputStream ( arg0 ) ) ) ; } else { parse ( arg0 ) ; } }
Generate a Java code for the following instruction: getter for property ` entityname ' . concode_field_sep String propertyName concode_elem_sep String entityName concode_field_sep String getRole concode_elem_sep void configure concode_elem_sep Serializable generate concode_elem_sep String getPropertyName
String function ( ) { return entityName ; }
Generate a Java code for the following instruction: does this word contain upper-case letters only ? concode_field_sep Set<ISpellDictionary> fDictionaries concode_elem_sep Set<String> fIgnored concode_elem_sep Locale fLocale concode_elem_sep String[] URL_PREFIXES concode_elem_sep IPreferenceStore fPreferences concode_f...
boolean function ( final String arg0 ) { for ( int loc0 = arg0 . length ( ) - 1 ; loc0 >= 0 ; loc0 -- ) { if ( Character . isLowerCase ( arg0 . charAt ( loc0 ) ) ) return false ; } return true ; }
Generate a Java code for the following instruction: maps a codec name into a codecfactory . currently there are five codecs registered by default : null deflate snappy bzip2 xz concode_field_sep int DEFAULT_XZ_LEVEL concode_elem_sep Map<String,CodecFactory> REGISTERED concode_elem_sep int DEFAULT_DEFLATE_LEVEL concode_...
CodecFactory function ( String arg0 ) { CodecFactory loc0 = REGISTERED . get ( arg0 ) ; if ( loc0 == null ) { throw new AvroRuntimeException ( "srini_string" + arg0 ) ; } return loc0 ; }
Generate a Java code for the following instruction: invoked when a test method is about to start concode_field_sep PlaceHolder placeHolder concode_field_sep Statement apply concode_elem_sep void finished concode_elem_sep void failed concode_elem_sep void succeeded
void function ( FrameworkMethod arg0 ) { }
Generate a Java code for the following instruction: create two hazelcastinstance server @bean s clustered together . concode_field_sep String CLUSTER_HOST concode_elem_sep Logger LOG concode_elem_sep String MASTER_SERVER concode_elem_sep HazelcastInstance hazelcastInstance concode_elem_sep int CLUSTER_PORT concode_fiel...
HazelcastInstance function ( ) { HazelcastInstance loc0 = InstanceHelper . makeServer ( Constants . HAZELCAST_INSTANCE_NAME , CLUSTER_PORT ) ; LOG . trace ( "srini_string" , loc0 ) ; InstanceHelper . makeServer ( "srini_string" + Constants . HAZELCAST_INSTANCE_NAME , ( 1 + CLUSTER_PORT ) ) ; return loc0 ; }
Generate a Java code for the following instruction: invokes the underlying map #isempty 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 containsValue concode_elem_sep Object put...
boolean function ( ) { return map . isEmpty ( ) ; }
Generate a Java code for the following instruction: returns the quirks . concode_field_sep T headPointer concode_elem_sep int mode concode_elem_sep boolean quirks concode_elem_sep T formPointer concode_elem_sep StackNode<T>[] stack concode_elem_sep boolean framesetOk concode_elem_sep boolean needToDropLF concode_elem_s...
boolean function ( ) { return quirks ; }
Generate a Java code for the following instruction: sets the value of ours concode_field_sep long theirs concode_elem_sep long ours concode_elem_sep String description concode_elem_sep int iterations concode_field_sep int getIterations concode_elem_sep void setIterations concode_elem_sep long getOurAvg concode_elem_sep...
void function ( long arg0 ) { this . ours = arg0 ; }
Generate a Java code for the following instruction: getter for the leading concode_field_sep boolean knockout concode_elem_sep LineDashPattern lineDashPattern concode_elem_sep BaseColor fillColor concode_elem_sep float wordSpacing concode_elem_sep float leading concode_elem_sep BaseColor strokeColor concode_elem_sep in...
float function ( ) { return leading ; }
Generate a Java code for the following instruction: always return constant . concode_field_sep Factory NULL_INSTANCE concode_elem_sep long serialVersionUID concode_elem_sep Object iConstant concode_field_sep Object getConstant concode_elem_sep Factory getInstance
Object function ( ) { return iConstant ; }
Generate a Java code for the following instruction: get reference to the scene that has the input focus concode_field_sep List<Scene> scenes concode_elem_sep Map<String,Scene> sceneHashMap concode_elem_sep List<Btimer> btimers concode_elem_sep Scene focusScene concode_field_sep void startScene concode_elem_sep void sta...
Scene function ( ) { return focusScene ; }
Generate a Java code for the following instruction: builds the commands . concode_field_sep PlaceHolder placeHolder concode_field_sep Command findCommand concode_elem_sep boolean commandEquals
List < Command > function ( String ... arg0 ) { List < Command > loc0 = new ArrayList < Command > ( ) ; for ( String loc1 : arg0 ) { Command loc2 = findCommand ( loc1 ) ; if ( loc2 != null ) { loc0 . add ( loc2 ) ; } } return loc0 ; }
Generate a Java code for the following instruction: removes from the underlying collection the last element returned by the iterator . as with next and hasnext , this method calls remove on the underlying iterator . therefore , this method may throw an unsupportedoperationexception if the underlying iterator does not s...
void function ( ) { lockChain ( ) ; updateCurrentIterator ( ) ; lastUsedIterator . remove ( ) ; }
Generate a Java code for the following instruction: inclusive min / max concode_field_sep Random rand concode_field_sep int nextIntRange concode_elem_sep double getAngle concode_elem_sep byte[] putBytesInArray
float function ( float arg0 , float arg1 ) { return arg0 + ( rand . nextFloat ( ) * ( ( 1 + arg1 ) - arg0 ) ) ; }
Generate a Java code for the following instruction: return the slot id 's of all active jsf versions . concode_field_sep Map<String,ModuleIdentifier> apiIds concode_elem_sep Set<String> allVersions concode_elem_sep List<String> activeVersions concode_elem_sep JSFModuleIdFactory instance concode_elem_sep Map<String,Modu...
List < String > function ( ) { return Collections . unmodifiableList ( activeVersions ) ; }
Generate a Java code for the following instruction: sets the current active layout manager concode_field_sep SchemaDiagramPart diagram concode_elem_sep Map partsToNodeMap concode_elem_sep GraphXYLayout xyLayoutManager concode_elem_sep Map figureToBoundsMap concode_elem_sep LayoutManager activeLayoutManager concode_elem...
void function ( IFigure arg0 , LayoutManager arg1 ) { arg0 . setLayoutManager ( arg1 ) ; this . activeLayoutManager = arg1 ; if ( arg1 == xyLayoutManager ) { diagram . installEditPolicy ( EditPolicy . LAYOUT_ROLE , new SchemaXYLayoutPolicy ( ) ) ; } else { diagram . installEditPolicy ( EditPolicy . LAYOUT_ROLE , null )...
Generate a Java code for the following instruction: transfers money from one account to another . concode_field_sep double[] accounts concode_field_sep int size concode_elem_sep double getTotalBalance
void function ( int arg0 , int arg1 , double arg2 ) { if ( accounts [ arg0 ] < arg2 ) return ; System . out . print ( Thread . currentThread ( ) ) ; accounts [ arg0 ] -= arg2 ; System . out . printf ( "srini_string" , arg2 , arg0 , arg1 ) ; accounts [ arg1 ] += arg2 ; System . out . printf ( "srini_string" , getTotalBa...
Generate a Java code for the following instruction: called to evict data from the entire region concode_field_sep CoreMessageLogger LOG concode_field_sep void unlockRegion concode_elem_sep void evictAll concode_elem_sep BaseGeneralDataRegion getInternalRegion concode_elem_sep void unlockItem concode_elem_sep Object get...
void function ( ) { evictAll ( ) ; }
Generate a Java code for the following instruction: converts an instance of the object model described in org.apache.avro.jsonproperties to a json string . concode_field_sep ResolvingDecoder resolver concode_elem_sep Schema SCHEMA concode_elem_sep Schema written concode_elem_sep JsonFactory FACTORY concode_elem_sep Obj...
String function ( Object arg0 ) { return JacksonUtils . toJsonNode ( arg0 ) . toString ( ) ; }
Generate a Java code for the following instruction: configure a job 's mapper implementation . concode_field_sep String COMBINER concode_elem_sep String MAP_OUTPUT_SCHEMA concode_elem_sep String INPUT_SCHEMA concode_elem_sep String MAPPER concode_elem_sep String TEXT_PREFIX concode_elem_sep String CONF_DATA_MODEL conco...
void function ( JobConf arg0 , Class < ? extends AvroMapper > arg1 ) { arg0 . set ( MAPPER , arg1 . getName ( ) ) ; }
Generate a Java code for the following instruction: residue summation . concode_field_sep GenPolynomial<C> val concode_elem_sep ResidueRing<C> ring concode_elem_sep int isunit concode_field_sep int signum concode_elem_sep boolean isONE concode_elem_sep Residue<C> inverse concode_elem_sep boolean isUnit concode_elem_sep...
Residue < C > function ( Residue < C > arg0 ) { return new Residue < C > ( ring , val . sum ( arg0 . val ) ) ; }
Generate a Java code for the following instruction: invoked when a test fails concode_field_sep PlaceHolder placeHolder concode_field_sep void finishedQuietly concode_elem_sep Statement apply concode_elem_sep void startingQuietly concode_elem_sep void finished concode_elem_sep void succeededQuietly concode_elem_sep voi...
void function ( Throwable arg0 , Description arg1 ) { }
Generate a Java code for the following instruction: is the current token a single letter token surrounded by non-whitespace characters ? 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...
boolean function ( final int arg0 ) { if ( ! Character . isLetter ( fContent . charAt ( arg0 ) ) ) return false ; if ( arg0 > 0 && ! Character . isWhitespace ( fContent . charAt ( arg0 - 1 ) ) ) return false ; if ( arg0 < fContent . length ( ) - 1 && ! Character . isWhitespace ( fContent . charAt ( arg0 + 1 ) ) ) retur...
Generate a Java code for the following instruction: create and return a new predicate that checks if the element is displayed . concode_field_sep PlaceHolder placeHolder concode_field_sep Predicate<WebElement> attrEquals concode_elem_sep Predicate<WebElement> textEndsWith concode_elem_sep Predicate<WebElement> hasClass...
Predicate < WebElement > function ( ) { return new Predicate < WebElement > ( ) { @ Override public boolean apply ( WebElement arg0 ) { return arg0 . isDisplayed ( ) ; } @ Override public String toString ( ) { return "srini_string" ; } } ; }
Generate a Java code for the following instruction: creates junit tests for the faults . output is a set of . java files . the default junit class name is the driver class name + index concode_field_sep boolean includeParseableString concode_elem_sep String junitDriverClassName concode_elem_sep String packageName conco...
List < File > function ( List < ExecutableSequence > arg0 ) { return createJunitTestFiles ( arg0 , junitDriverClassName ) ; }
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: performs actions that follow a disconnect . concode_field_sep Node<T> myNode concode_elem_sep PeerStatus peerStatus concode_elem_sep Logger log concode_elem_sep ComponentsConfig config concode_elem_sep boolean lookupEnabled concode_field_sep void enablePeriodicLookup ...
void function ( ) { peerStatus = PeerStatus . ABSENT ; myNode . getOperationFactory ( ) . abortAllOperations ( ) ; }
Generate a Java code for the following instruction: append a hashcode for a float array . concode_field_sep int iConstant concode_elem_sep int iTotal concode_field_sep HashCodeBuilder appendSuper concode_elem_sep int toHashCode
HashCodeBuilder function ( float [ ] arg0 ) { if ( arg0 == null ) { iTotal = iTotal * iConstant ; } else { for ( float loc0 : arg0 ) { append ( loc0 ) ; } } return this ; }
Generate a Java code for the following instruction: should be called only once , for global concode_field_sep List<KdcPreauth> preauths concode_field_sep boolean isToken concode_elem_sep void loadPreauthPlugins concode_elem_sep PreauthContext preparePreauthContext concode_elem_sep void providePaData concode_elem_sep bo...
void function ( ) { loadPreauthPlugins ( ) ; }
Generate a Java code for the following instruction: gets the rectangular position of a bitmap if it were placed inside a view with scale type set to android.widget.imageview #scaletype #center_inside . concode_field_sep PlaceHolder placeHolder concode_field_sep Rect getBitmapRectCenterInsideHelper
Rect function ( int arg0 , int arg1 , int arg2 , int arg3 ) { return getBitmapRectCenterInsideHelper ( arg0 , arg1 , arg2 , arg3 ) ; }
Generate a Java code for the following instruction: creates the paletteroot and adds all palette elements . concode_field_sep PlaceHolder placeHolder concode_field_sep PaletteContainer createControlGroup concode_elem_sep List createCategories concode_elem_sep PaletteContainer createComponentsDrawer
PaletteRoot function ( ) { PaletteRoot loc0 = new PaletteRoot ( ) ; loc0 . addAll ( createCategories ( loc0 ) ) ; return loc0 ; }
Generate a Java code for the following instruction: this loader is used when proxy debugging is enabled . in that case there is no point in fetching the bundle from device as remote executor will have to do it anyway . concode_field_sep PlaceHolder placeHolder concode_field_sep JSBundleLoader createAssetLoader concode_...
JSBundleLoader function ( final String arg0 ) { return new JSBundleLoader ( ) { @ Override public void loadScript ( ReactBridge arg1 ) { arg1 . loadScriptFromNetworkCached ( arg0 , null ) ; } @ Override public String getSourceUrl ( ) { return arg0 ; } } ; }
Generate a Java code for the following instruction: method to get the average of the colors of this pixel concode_field_sep int x concode_elem_sep int y concode_elem_sep DigitalPicture picture concode_field_sep int getCol concode_elem_sep int correctValue concode_elem_sep Color getColor concode_elem_sep void setAlpha c...
double function ( ) { double loc0 = ( getRed ( ) + getGreen ( ) + getBlue ( ) ) / 3.0 ; return loc0 ; }
Generate a Java code for the following instruction: map column names to protocol field names . concode_field_sep Cursor cursor concode_elem_sep int[] columns concode_elem_sep String[] fields concode_elem_sep int MAX_SERVER_STRING_CHARS concode_field_sep void fillHoneycomb concode_elem_sep ClientReadingListRecord getNex...
String function ( final String arg0 ) { switch ( arg0 ) { case "srini_string" : return "srini_string" ; case "srini_string" : return "srini_string" ; case "srini_string" : return "srini_string" ; } return arg0 ; }
Generate a Java code for the following instruction: when set to true , the xml parser will attempt to validate the jelly xml before converting it into a script . concode_field_sep Log log concode_elem_sep boolean loadedProperties concode_elem_sep String defaultNamespaceURI concode_elem_sep JellyContext context concode_...
void function ( boolean arg0 ) { this . validateXML = arg0 ; }
Generate a Java code for the following instruction: this method tests , if this skynet-id ranges between the two provided bounds . concode_field_sep BigDecimal skyNetID concode_field_sep BigDecimal getUniqueValue concode_elem_sep boolean equals concode_elem_sep BigDecimal getID concode_elem_sep int compareTo concode_el...
boolean function ( SkyNetID arg0 , SkyNetID arg1 ) { if ( arg0 . compareTo ( arg1 ) < 0 ) { if ( this . compareTo ( arg0 ) > 0 && this . compareTo ( arg1 ) < 0 ) { return true ; } } else { if ( this . compareTo ( arg0 ) > 0 || this . compareTo ( arg1 ) < 0 ) { return true ; } } return false ; }
Generate a Java code for the following instruction: sets the preferred difficulty for this user and overwrites any previous preference . concode_field_sep String SIZE concode_elem_sep String LIBRARY_LOCATION concode_elem_sep String DIFFICULTY concode_field_sep void setPreferredSize concode_elem_sep void clearPreference...
void function ( Difficulty arg0 ) { Preferences loc0 = Preferences . userNodeForPackage ( this . getClass ( ) ) ; loc0 . putInt ( DIFFICULTY , arg0 . toInt ( ) ) ; }
Generate a Java code for the following instruction: it is safe to call this method concurrently from any random thread . concode_field_sep Action1<Resource> urlDeletedAction concode_elem_sep PingDestination destination concode_elem_sep Action<?,?> action concode_elem_sep Action1<Resource> urlCreatedAction concode_elem_...
void function ( Resource arg0 ) { if ( PingDestination . isUrl ( arg0 ) ) { synchronized ( lock ) { PingDestination loc0 = PingDestination . from ( arg0 ) ; changes . add ( new UrlChange ( Action . deleted ( ) , loc0 ) ) ; Log . LOG . debugf ( "srini_string" , loc0 . getUrl ( ) ) ; } } }
Generate a Java code for the following instruction: the name of the context where the property is defined concode_field_sep boolean isTesting concode_elem_sep String typeName concode_elem_sep Clob propertyValue concode_elem_sep Clob exampleValue concode_elem_sep boolean isEncrypted concode_elem_sep String propContName ...
ResourceEditPropertyBuilder function ( String arg0 ) { this . typeContName = arg0 ; return this ; }
Generate a Java code for the following instruction: default begin for when you do n't need anything but no authentication and default settings for ssl . concode_field_sep PlaceHolder placeHolder concode_field_sep placeholderType placeHolder
Sardine function ( ) { return begin ( null , null ) ; }
Generate a Java code for the following instruction: decodes the stream and produces animation frames into the specified movie track . this method can only be called once . concode_field_sep int nFrames concode_elem_sep int nColors concode_elem_sep boolean enforce8BitColorModel concode_elem_sep ImageInputStream in conco...
void function ( SEQMovieTrack arg0 , boolean arg1 ) { this . track = arg0 ; readHeader ( ) ; readOffsets ( ) ; readFrames ( ) ; }
Generate a Java code for the following instruction: returns the value as a byte array . concode_field_sep long releaseTimestamp concode_elem_sep Object value concode_field_sep int getTransmissionSize concode_elem_sep Object getObject concode_elem_sep long getReleaseTimestamp concode_elem_sep String toString
byte [ ] function ( ) { ByteArrayOutputStream loc0 = new ByteArrayOutputStream ( ) ; ObjectOutputStream loc1 ; try { loc1 = new ObjectOutputStream ( loc0 ) ; loc1 . writeObject ( value ) ; loc1 . close ( ) ; } catch ( IOException loc2 ) { loc2 . printStackTrace ( ) ; } return loc0 . toByteArray ( ) ; }
Generate a Java code for the following instruction: logs all objects in the passed objectcontainer . concode_field_sep java.io.PrintStream out concode_elem_sep boolean silent concode_elem_sep String sp concode_elem_sep int maximumDepth concode_elem_sep Class[] IGNORE concode_elem_sep int MAXIMUM_OBJECTS concode_field_s...
void function ( ObjectContainer arg0 ) { ObjectSet loc0 = arg0 . queryByExample ( null ) ; while ( loc0 . hasNext ( ) ) { log ( arg0 , loc0 . next ( ) ) ; } }
Generate a Java code for the following instruction: return all root components in the current awt hierarchy . concode_field_sep Collection EMPTY concode_elem_sep WindowTracker tracker concode_elem_sep Hierarchy defaultHierarchy concode_field_sep boolean contains concode_elem_sep Container getParent concode_elem_sep Col...
Collection function ( ) { return tracker . getRootWindows ( ) ; }
Generate a Java code for the following instruction: setup filters for this finder . filters are checked before search criteria . typical filters are defined in the filter enum . concode_field_sep ISearchable scope concode_elem_sep ISWTWidgetMatcher matcher concode_field_sep ISWTWidgetReference<?>[] doFindAll concode_el...
SWTWidgetFinder function ( ISWTWidgetMatcher ... arg0 ) { Invariants . notNull ( arg0 ) ; throw new UnsupportedOperationException ( ) ; }
Generate a Java code for the following instruction: fetch records modified since the provided timestamp . the caller is responsible for closing the cursor . concode_field_sep Context context concode_elem_sep String[] GUID_COLUMNS concode_elem_sep String LOG_TAG concode_elem_sep RepoUtils.QueryHelper queryHelper concode...
Cursor function ( long arg0 ) { return queryHelper . safeQuery ( "srini_string" , getAllColumns ( ) , dateModifiedWhere ( arg0 ) , null , null ) ; }
Generate a Java code for the following instruction: a distinct property value count projection concode_field_sep PlaceHolder placeHolder concode_field_sep Projection sqlGroupProjection concode_elem_sep AggregateProjection max concode_elem_sep CountProjection count concode_elem_sep Projection distinct concode_elem_sep A...
CountProjection function ( String arg0 ) { return new CountProjection ( arg0 ) . setDistinct ( ) ; }
Generate a Java code for the following instruction: sets the callback object for the imageloader . once this is set , we may invoke the callback once all images that need to be loaded report in from their onload event handlers . concode_field_sep ArrayList<ImageHandle> images concode_elem_sep CallBack callBack concode_...
void function ( CallBack arg0 ) { this . callBack = arg0 ; }
Generate a Java code for the following instruction: calculates and returns the next element which is either gap or dash . concode_field_sep float val concode_elem_sep boolean isGap concode_elem_sep float dashPhase concode_elem_sep int elemOrdinalNumber concode_elem_sep DashArrayElem currentElem concode_elem_sep PdfArra...
DashArrayElem function ( ) { DashArrayElem loc0 = currentElem ; if ( dashArray . size ( ) > 0 ) { currentIndex = ( currentIndex + 1 ) % dashArray . size ( ) ; currentElem = new DashArrayElem ( dashArray . getAsNumber ( currentIndex ) . floatValue ( ) , isEven ( ++ elemOrdinalNumber ) ) ; } return loc0 ; }
Generate a Java code for the following instruction: sets the value of the responsedescription property . concode_field_sep Prop prop concode_elem_sep Error error concode_elem_sep String status concode_elem_sep String responsedescription concode_field_sep Error getError concode_elem_sep String getResponsedescription con...
void function ( String arg0 ) { this . responsedescription = arg0 ; }
Generate a Java code for the following instruction: is algebraicnumber one . 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 AlgebraicNumber<C> inverse concode_elem_sep GenPolynomial<C> getVal concode_elem_sep ...
boolean function ( ) { return val . equals ( ring . ring . getONE ( ) ) ; }
Generate a Java code for the following instruction: if called with one or more null elements in objects , the test will halt and be ignored . concode_field_sep PlaceHolder placeHolder concode_field_sep void assumeFalse concode_elem_sep void assumeFalse concode_elem_sep void assumeTrue concode_elem_sep void assumeTrue c...
void function ( Object ... arg0 ) { assumeThat ( asList ( arg0 ) , everyItem ( notNullValue ( ) ) ) ; }