id
stringlengths
11
16
language
stringclasses
2 values
question
stringlengths
13
844
answer
stringlengths
1
900
code
stringlengths
162
27.4k
code_original
stringlengths
162
26k
code_word_count
int64
51
5.96k
java-test-10983
java
What does this test exhaustively ?
the parametric transitions tables
private void assert Char Vectors ( int n ) { int k = NUM * n + NUM ; int limit = ( int ) Math . pow ( NUM , k + NUM ) ; for ( int i = NUM ; i < limit ; i ++ ) { String encoded = Integer . to String ( i , NUM ) ; assert Lev ( encoded , n ) ; } }
private void assertCharVectors ( int n ) { int k = _NUM * n + _NUM ; int limit = ( int ) Math . pow ( _NUM , k + _NUM ) ; for ( int i = _NUM ; i < limit ; i ++ ) { String encoded = Integer . toString ( i , _NUM ) ; assertLev ( encoded , n ) ; } }
74
java-test-10984
java
How does this test the parametric transitions tables ?
exhaustively
private void assert Char Vectors ( int n ) { int k = NUM * n + NUM ; int limit = ( int ) Math . pow ( NUM , k + NUM ) ; for ( int i = NUM ; i < limit ; i ++ ) { String encoded = Integer . to String ( i , NUM ) ; assert Lev ( encoded , n ) ; } }
private void assertCharVectors ( int n ) { int k = _NUM * n + _NUM ; int limit = ( int ) Math . pow ( _NUM , k + _NUM ) ; for ( int i = _NUM ; i < limit ; i ++ ) { String encoded = Integer . toString ( i , _NUM ) ; assertLev ( encoded , n ) ; } }
74
java-test-10985
java
What does the code add ?
attributes to be included in the element comparison
public void add Included Attributes ( final String element Name , final List attr Names ) { List attr Names List = null ; if ( ( attr Names List = ( List ) included Element Attrs Map . get ( element Name ) ) == null ) { attr Names List = new Array List ( ) ; } attr Names List . add All ( attr Names ) ; included Element...
public void addIncludedAttributes ( final String elementName , final List attrNames ) { List attrNamesList = null ; if ( ( attrNamesList = ( List ) _includedElementAttrsMap . get ( elementName ) ) == null ) { attrNamesList = new ArrayList ( ) ; } attrNamesList . addAll ( attrNames ) ; _includedElementAttrsMap . put ( e...
87
java-test-10987
java
What carrys on the database ?
an update sql command
private synchronized void update ( String query ) throws SQL Exception { Statement st = connection . create Statement ( ) ; int ok = st . execute Update ( query ) ; if ( ok == - NUM ) { throw new SQL Exception ( STRING + query ) ; } st . close ( ) ; }
private synchronized void update ( String query ) throws SQLException { Statement st = connection . createStatement ( ) ; int ok = st . executeUpdate ( query ) ; if ( ok == - _NUM ) { throw new SQLException ( STRING + query ) ; } st . close ( ) ; }
59
java-test-10989
java
What does the code create ?
a new data node component
public C Data Node Component ( final I Navi Module module , final I View Container origin Container ) { super ( new Border Layout ( ) ) ; Preconditions . check Not Null ( module , STRING ) ; final Jide Split Pane split Pane = new Jide Split Pane ( Jide Split Pane . VERTICAL SPLIT ) ; split Pane . set Double Buffered ( ...
public CDataNodeComponent ( final INaviModule module , final IViewContainer originContainer ) { super ( new BorderLayout ( ) ) ; Preconditions . checkNotNull ( module , STRING ) ; final JideSplitPane splitPane = new JideSplitPane ( JideSplitPane . VERTICAL_SPLIT ) ; splitPane . setDoubleBuffered ( _BOOL ) ; splitPane ....
219
java-test-10990
java
How does the word return ?
in its stemmed form
@ Override public String stem ( String word ) { String result ; Object [ ] args ; if ( m Stemmer == null ) { result = new String ( word ) ; } else { if ( m Set Current Method == null ) { set Stemmer ( get Stemmer ( ) ) ; } try { args = new Object [ NUM ] ; args [ NUM ] = word ; m Set Current Method . invoke ( m Stemmer...
@ Override public String stem ( String word ) { String result ; Object [ ] args ; if ( m_Stemmer == null ) { result = new String ( word ) ; } else { if ( m_SetCurrentMethod == null ) { setStemmer ( getStemmer ( ) ) ; } try { args = new Object [ _NUM ] ; args [ _NUM ] = word ; m_SetCurrentMethod . invoke ( m_Stemmer , a...
158
java-test-10991
java
What is using to something like " home dir is / home / justin_bieber ?
the env var " home "
static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m...
static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro...
182
java-test-10992
java
How will home dir is $ { env . home } " expand to something like " home dir is / home / justin_bieber ?
using the env var " home "
static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m...
static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro...
182
java-test-10993
java
What found in the expression ?
any environment variables
static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m...
static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro...
182
java-test-10994
java
What do the env var " home " use ?
to something like " home dir is / home / justin_bieber
static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m...
static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro...
182
java-test-10995
java
What does the earliest start date from the periods use ?
as start date and the latest end date from the periods as end date
public void replace Periods With Start End Dates ( ) { List < Period > periods = as Typed List ( get Dimension Or Filter Items ( PERIOD DIM ID ) ) ; for ( Period period : periods ) { Date start = period . get Start Date ( ) ; Date end = period . get End Date ( ) ; if ( start Date == null || ( start != null && start . b...
public void replacePeriodsWithStartEndDates ( ) { List < Period > periods = asTypedList ( getDimensionOrFilterItems ( PERIOD_DIM_ID ) ) ; for ( Period period : periods ) { Date start = period . getStartDate ( ) ; Date end = period . getEndDate ( ) ; if ( startDate == null || ( start != null && start . before ( startDat...
131
java-test-10996
java
What is using as start date and the latest end date from the periods as end date ?
the earliest start date from the periods
public void replace Periods With Start End Dates ( ) { List < Period > periods = as Typed List ( get Dimension Or Filter Items ( PERIOD DIM ID ) ) ; for ( Period period : periods ) { Date start = period . get Start Date ( ) ; Date end = period . get End Date ( ) ; if ( start Date == null || ( start != null && start . b...
public void replacePeriodsWithStartEndDates ( ) { List < Period > periods = asTypedList ( getDimensionOrFilterItems ( PERIOD_DIM_ID ) ) ; for ( Period period : periods ) { Date start = period . getStartDate ( ) ; Date end = period . getEndDate ( ) ; if ( startDate == null || ( start != null && start . before ( startDat...
131
java-test-10998
java
What does the code create ?
a new hashtokensessionmap configured using the given environment
public Hash Token Session Map ( Environment environment ) { int session Timeout Value ; try { session Timeout Value = environment . get Property ( API SESSION TIMEOUT , NUM ) ; } catch ( Guacamole Exception e ) { logger . error ( STRING , e . get Message ( ) ) ; logger . debug ( STRING , e ) ; session Timeout Value = N...
public HashTokenSessionMap ( Environment environment ) { int sessionTimeoutValue ; try { sessionTimeoutValue = environment . getProperty ( API_SESSION_TIMEOUT , _NUM ) ; } catch ( GuacamoleException e ) { logger . error ( STRING , e . getMessage ( ) ) ; logger . debug ( STRING , e ) ; sessionTimeoutValue = _NUM ; } log...
112
java-test-11000
java
What does the code create ?
a new register description object
public Register Description ( final String name , final int size , final boolean editable ) { this . name = Preconditions . check Not Null ( name , STRING ) ; if ( ! is Valid Size ( size ) ) { throw new Illegal Argument Exception ( String . format ( STRING , size ) ) ; } byte Size = size ; is Editable = editable ; }
public RegisterDescription ( final String name , final int size , final boolean editable ) { this . name = Preconditions . checkNotNull ( name , STRING ) ; if ( ! isValidSize ( size ) ) { throw new IllegalArgumentException ( String . format ( STRING , size ) ) ; } byteSize = size ; isEditable = editable ; }
71
java-test-11001
java
What does the code create if null , uses the global logger around a given logger ?
a log formatter
public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
87
java-test-11002
java
Where does the code create a log formatter if null , uses the global logger ?
around a given logger
public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
87
java-test-11003
java
What does the code use if null ?
the global logger
public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
87
java-test-11005
java
What is used in oidc claims ?
the script identified by the specified uuid
private int oidc Claims Usage Count ( String uuid ) throws SSO Exception , SMS Exception { SMS Entry sms Entry = new SMS Entry ( get Token ( ) , get O Auth 2 Provider Base DN ( ) ) ; Map < String , Set < String > > attributes = sms Entry . get Attributes ( ) ; try { Set < String > sun Key Values = get Map Set Throws ( ...
private int oidcClaimsUsageCount ( String uuid ) throws SSOException , SMSException { SMSEntry smsEntry = new SMSEntry ( getToken ( ) , getOAuth2ProviderBaseDN ( ) ) ; Map < String , Set < String > > attributes = smsEntry . getAttributes ( ) ; try { Set < String > sunKeyValues = getMapSetThrows ( attributes , STRING ) ...
114
java-test-11006
java
Where is the script identified by the specified uuid used how many times ?
in oidc claims
private int oidc Claims Usage Count ( String uuid ) throws SSO Exception , SMS Exception { SMS Entry sms Entry = new SMS Entry ( get Token ( ) , get O Auth 2 Provider Base DN ( ) ) ; Map < String , Set < String > > attributes = sms Entry . get Attributes ( ) ; try { Set < String > sun Key Values = get Map Set Throws ( ...
private int oidcClaimsUsageCount ( String uuid ) throws SSOException , SMSException { SMSEntry smsEntry = new SMSEntry ( getToken ( ) , getOAuth2ProviderBaseDN ( ) ) ; Map < String , Set < String > > attributes = smsEntry . getAttributes ( ) ; try { Set < String > sunKeyValues = getMapSetThrows ( attributes , STRING ) ...
114
java-test-11009
java
How is a new list created ?
with the same elements as the given iterable
public static < E > List < E > as List ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new Array List < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; }
public static < E > List < E > asList ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new ArrayList < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; }
71
java-test-11010
java
What does the code return ?
the given iterable as a list
public static < E > List < E > as List ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new Array List < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; }
public static < E > List < E > asList ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new ArrayList < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; }
71
java-test-11011
java
What will the string returned have ?
no slashes or punctuation
protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re...
protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat...
84
java-test-11012
java
What will have no slashes or punctuation ?
the string returned
protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re...
protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat...
84
java-test-11013
java
What have the code get ?
a string name for the configuration of this datasource
protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re...
protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat...
84
java-test-11015
java
What does the code create ?
new form gotopopup
public Go To Popup ( String caption , List < Go To Item > items ) { this . caption = caption ; this . items = items ; init Components ( ) ; j List 1 . set Cursor ( Cursor . get Predefined Cursor ( Cursor . HAND CURSOR ) ) ; add Focus Listener ( this ) ; init ( ) ; }
public GoToPopup ( String caption , List < GoToItem > items ) { this . caption = caption ; this . items = items ; initComponents ( ) ; jList1 . setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; addFocusListener ( this ) ; init ( ) ; }
66
java-test-11018
java
When does transaction commit ?
in case when node started transaction failed
public void commit If Prepared ( Ignite Internal Tx tx , Set < UUID > failed Node Ids ) { assert tx instanceof Grid Dht Tx Local || tx instanceof Grid Dht Tx Remote : tx ; assert ! F . is Empty ( tx . transaction Nodes ( ) ) : tx ; assert tx . near Xid Version ( ) != null : tx ; Grid Cache Tx Recovery Future fut = new ...
public void commitIfPrepared ( IgniteInternalTx tx , Set < UUID > failedNodeIds ) { assert tx instanceof GridDhtTxLocal || tx instanceof GridDhtTxRemote : tx ; assert ! F . isEmpty ( tx . transactionNodes ( ) ) : tx ; assert tx . nearXidVersion ( ) != null : tx ; GridCacheTxRecoveryFuture fut = new GridCacheTxRecoveryF...
148
java-test-11019
java
What does the code create ?
a test alivetimer for a subequipment
public static Control Tag Cache Object create Test Sub Equipment Alive ( ) { Control Tag Cache Object cache Object = new Control Tag Cache Object ( new Long ( NUM ) , STRING , STRING , Data Tag Constants . MODE TEST ) ; cache Object . set Description ( STRING ) ; cache Object . set Logged ( BOOL ) ; cache Object . set ...
public static ControlTagCacheObject createTestSubEquipmentAlive ( ) { ControlTagCacheObject cacheObject = new ControlTagCacheObject ( new Long ( _NUM ) , STRING , STRING , DataTagConstants . MODE_TEST ) ; cacheObject . setDescription ( STRING ) ; cacheObject . setLogged ( _BOOL ) ; cacheObject . setUnit ( STRING ) ; ca...
266
java-test-11020
java
What does the code add when ?
the specified amount the specified field
@ Override public void roll ( int field , int value ) { if ( value == NUM ) { return ; } if ( field < NUM || field >= ZONE OFFSET ) { throw new Illegal Argument Exception ( ) ; } complete ( ) ; int days , day , mod , max Weeks , new Week ; int max = - NUM ; switch ( field ) { case YEAR : max = maximums [ field ] ; brea...
@ Override public void roll ( int field , int value ) { if ( value == _NUM ) { return ; } if ( field < _NUM || field >= ZONE_OFFSET ) { throw new IllegalArgumentException ( ) ; } complete ( ) ; int days , day , mod , maxWeeks , newWeek ; int max = - _NUM ; switch ( field ) { case YEAR : max = maximums [ field ] ; break...
769
java-test-11021
java
What does the code create in the database ?
a new type instance reference
public static void create Type Instance Reference ( final Connection connection , final int module Id , final long address , final int position , final int expression Id , final int type Instance Id ) throws Couldnt Save Data Exception { Preconditions . check Not Null ( connection , STRING ) ; Preconditions . check Arg...
public static void createTypeInstanceReference ( final Connection connection , final int moduleId , final long address , final int position , final int expressionId , final int typeInstanceId ) throws CouldntSaveDataException { Preconditions . checkNotNull ( connection , STRING ) ; Preconditions . checkArgument ( modul...
219
java-test-11023
java
What does the code build ?
the visual representation of this entity
@ Override protected void build Representation ( I Entity entity ) { final Sprite Store store = Sprite Store . get ( ) ; Zone Info info = Zone Info . get ( ) ; Sprite sprite = store . get Modified Sprite ( translate ( get Class Resource Path ( ) ) , info . get Zone Color ( ) , info . get Color Method ( ) ) ; int width ...
@ Override protected void buildRepresentation ( IEntity entity ) { final SpriteStore store = SpriteStore . get ( ) ; ZoneInfo info = ZoneInfo . get ( ) ; Sprite sprite = store . getModifiedSprite ( translate ( getClassResourcePath ( ) ) , info . getZoneColor ( ) , info . getColorMethod ( ) ) ; int width = ( int ) entit...
192
java-test-11024
java
How does the pluscal code call this currently ?
only with replace = true and outputvec = null
public static void Find Matching Brace ( Vector input Vec , Int Pair cur Loc , String error Msg ) throws Parse Algorithm Exception { cur Loc . two ++ ; while ( cur Loc . one < input Vec . size ( ) ) { String cur Line = ( String ) input Vec . element At ( cur Loc . one ) ; while ( cur Loc . two < cur Line . length ( ) )...
public static void FindMatchingBrace ( Vector inputVec , IntPair curLoc , String errorMsg ) throws ParseAlgorithmException { curLoc . two ++ ; while ( curLoc . one < inputVec . size ( ) ) { String curLine = ( String ) inputVec . elementAt ( curLoc . one ) ; while ( curLoc . two < curLine . length ( ) ) { curLoc . two =...
386
java-test-11025
java
When does it update curloc to the position if it ' s found ?
immediately after the token
public static void Find Matching Brace ( Vector input Vec , Int Pair cur Loc , String error Msg ) throws Parse Algorithm Exception { cur Loc . two ++ ; while ( cur Loc . one < input Vec . size ( ) ) { String cur Line = ( String ) input Vec . element At ( cur Loc . one ) ; while ( cur Loc . two < cur Line . length ( ) )...
public static void FindMatchingBrace ( Vector inputVec , IntPair curLoc , String errorMsg ) throws ParseAlgorithmException { curLoc . two ++ ; while ( curLoc . one < inputVec . size ( ) ) { String curLine = ( String ) inputVec . elementAt ( curLoc . one ) ; while ( curLoc . two < curLine . length ( ) ) { curLoc . two =...
386
java-test-11026
java
Where be actions performed ?
on the node
@ Override public void mouse Clicked ( Mouse Event me ) { int x , y ; Rectangle r = new Rectangle ( NUM , NUM , ( int ) ( m n Padded Node Width * m f Scale ) , ( int ) ( m n Node Height * m f Scale ) ) ; x = me . get X ( ) ; y = me . get Y ( ) ; for ( int i Node = NUM ; i Node < m Bayes Net . get Nr Of Nodes ( ) ; i No...
@ Override public void mouseClicked ( MouseEvent me ) { int x , y ; Rectangle r = new Rectangle ( _NUM , _NUM , ( int ) ( m_nPaddedNodeWidth * m_fScale ) , ( int ) ( m_nNodeHeight * m_fScale ) ) ; x = me . getX ( ) ; y = me . getY ( ) ; for ( int iNode = _NUM ; iNode < m_BayesNet . getNrOfNodes ( ) ; iNode ++ ) { r . x...
364
java-test-11028
java
What does the code add to the filter ?
a new raw value
@ Override public double apply ( double sample ) { if ( cutoff Freq Factor <= NUM ) { return sample ; } double element 0 = sample - elements [ NUM ] * a1 - elements [ NUM ] * a2 ; if ( Double . is Na N ( element 0 ) ) { element 0 = sample ; } double output = element 0 * b0 + elements [ NUM ] * b1 + elements [ NUM ] * b...
@ Override public double apply ( double sample ) { if ( cutoffFreqFactor <= _NUM ) { return sample ; } double element_0 = sample - elements [ _NUM ] * a1 - elements [ _NUM ] * a2 ; if ( Double . isNaN ( element_0 ) ) { element_0 = sample ; } double output = element_0 * b0 + elements [ _NUM ] * b1 + elements [ _NUM ] * ...
106
java-test-11033
java
What does the code write ?
the initial clustering changes to a file
public final void print Initial Clustering Changes ( File file , List < Cluster Data > cluster Data , int [ ] mat Index To Msg Internal Id ) throws Ade Usage Exception { if ( m initial Clusters == null ) { return ; } final Print Writer out = File Utils . open Print Writer To File ( file , BOOL ) ; if ( m final Clusters...
public final void printInitialClusteringChanges ( File file , List < ClusterData > clusterData , int [ ] matIndexToMsgInternalId ) throws AdeUsageException { if ( m_initialClusters == null ) { return ; } final PrintWriter out = FileUtils . openPrintWriterToFile ( file , _BOOL ) ; if ( m_finalClusters == null ) { update...
441
java-test-11034
java
What does the code add to favorites if applicable ?
the pokemon
private void add Pokemon To Favs ( Poke Model poke Model , Array List < Integer > list Of Fav Pokemon ) { if ( poke Model != null && list Of Fav Pokemon != null ) { int poke Num = poke Model . get Pokedex Num ( ) ; if ( list Of Fav Pokemon . contains ( poke Num ) ) { Typeface Utils . display Toast ( m Context , get Str...
private void addPokemonToFavs ( PokeModel pokeModel , ArrayList < Integer > listOfFavPokemon ) { if ( pokeModel != null && listOfFavPokemon != null ) { int pokeNum = pokeModel . getPokedexNum ( ) ; if ( listOfFavPokemon . contains ( pokeNum ) ) { TypefaceUtils . displayToast ( mContext , getString ( R . string . redund...
170
java-test-11036
java
When can this method be called only ?
once the workbench has been started
private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } }
private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } }
55
java-test-11037
java
What is being displayed on the workbench page ?
the perspective
private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } }
private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } }
55
java-test-11038
java
Where is the perspective being displayed ?
on the workbench page
private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } }
private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } }
55
java-test-11045
java
What have the given protocol ?
initiators from list
private void clear Initiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . has Next ( ) ) { Initiator initiator = iterator . next ( ) ; if ( String Utils . equals ( initiator . get Protocol ( ) , protocol ) ) { iterator . remove (...
private void clearInitiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . hasNext ( ) ) { Initiator initiator = iterator . next ( ) ; if ( StringUtils . equals ( initiator . getProtocol ( ) , protocol ) ) { iterator . remove ( ) ;...
73
java-test-11046
java
What do initiators from list have ?
the given protocol
private void clear Initiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . has Next ( ) ) { Initiator initiator = iterator . next ( ) ; if ( String Utils . equals ( initiator . get Protocol ( ) , protocol ) ) { iterator . remove (...
private void clearInitiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . hasNext ( ) ) { Initiator initiator = iterator . next ( ) ; if ( StringUtils . equals ( initiator . getProtocol ( ) , protocol ) ) { iterator . remove ( ) ;...
73
java-test-11051
java
What does the code create ?
a vao for the scene with some boxes
void create Vao ( ) { vao = gl Gen Vertex Arrays ( ) ; int vbo = gl Gen Buffers ( ) ; gl Bind Vertex Array ( vao ) ; gl Bind Buffer ( GL ARRAY BUFFER , vbo ) ; Byte Buffer bb = Buffer Utils . create Byte Buffer ( boxes . length * NUM * ( NUM + NUM ) * NUM * NUM ) ; Float Buffer fv = bb . as Float Buffer ( ) ; for ( int...
void createVao ( ) { vao = glGenVertexArrays ( ) ; int vbo = glGenBuffers ( ) ; glBindVertexArray ( vao ) ; glBindBuffer ( GL_ARRAY_BUFFER , vbo ) ; ByteBuffer bb = BufferUtils . createByteBuffer ( boxes . length * _NUM * ( _NUM + _NUM ) * _NUM * _NUM ) ; FloatBuffer fv = bb . asFloatBuffer ( ) ; for ( int i = _NUM ; i...
228
java-test-11064
java
What does this method ask ?
a file size in bytes
public long file Size ( String path ) throws Illegal State Exception , IO Exception , FTP Illegal Reply Exception , FTP Exception { synchronized ( lock ) { if ( ! connected ) { throw new Illegal State Exception ( STRING ) ; } if ( ! authenticated ) { throw new Illegal State Exception ( STRING ) ; } communication . send...
public long fileSize ( String path ) throws IllegalStateException , IOException , FTPIllegalReplyException , FTPException { synchronized ( lock ) { if ( ! connected ) { throw new IllegalStateException ( STRING ) ; } if ( ! authenticated ) { throw new IllegalStateException ( STRING ) ; } communication . sendFTPCommand (...
226
java-test-11067
java
What does the code calculate ?
the new message lambda value
@ Override public void process Properties ( ) throws Ade Usage Exception { if ( m new Message Mean Num Appear <= NUM ) { throw new Ade Usage Exception ( STRING + NEW MESSAGE EXPECTED MEAN + STRING ) ; } m new Message Lambda = Math . log ( m new Message Mean Num Appear ) ; }
@ Override public void processProperties ( ) throws AdeUsageException { if ( m_newMessageMeanNumAppear <= _NUM ) { throw new AdeUsageException ( STRING + NEW_MESSAGE_EXPECTED_MEAN + STRING ) ; } m_newMessageLambda = Math . log ( m_newMessageMeanNumAppear ) ; }
60
java-test-11068
java
What does the code use it ?
to calculate the new message lambda value
@ Override public void process Properties ( ) throws Ade Usage Exception { if ( m new Message Mean Num Appear <= NUM ) { throw new Ade Usage Exception ( STRING + NEW MESSAGE EXPECTED MEAN + STRING ) ; } m new Message Lambda = Math . log ( m new Message Mean Num Appear ) ; }
@ Override public void processProperties ( ) throws AdeUsageException { if ( m_newMessageMeanNumAppear <= _NUM ) { throw new AdeUsageException ( STRING + NEW_MESSAGE_EXPECTED_MEAN + STRING ) ; } m_newMessageLambda = Math . log ( m_newMessageMeanNumAppear ) ; }
60
java-test-11069
java
What has the correct format ( camelcase and begin with ' m ' ) ?
an instance variable
private boolean instance Variable Correct Format ( String name ) { return name . starts With ( STRING ) && Character . is Upper Case ( name . char At ( NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; }
private boolean instanceVariableCorrectFormat ( String name ) { return name . startsWith ( STRING ) && Character . isUpperCase ( name . charAt ( _NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; }
52
java-test-11070
java
What do an instance variable have ?
the correct format ( camelcase and begin with ' m ' )
private boolean instance Variable Correct Format ( String name ) { return name . starts With ( STRING ) && Character . is Upper Case ( name . char At ( NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; }
private boolean instanceVariableCorrectFormat ( String name ) { return name . startsWith ( STRING ) && Character . isUpperCase ( name . charAt ( _NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; }
52
java-test-11072
java
What does the code throw ?
ioexception { extended precision ieee floating - point conversion routine
private void write ieee extended ( Data Output Stream dos , double f ) throws IO Exception { int exponent = NUM ; double high Mantissa = f ; while ( high Mantissa < NUM ) { high Mantissa *= NUM ; exponent -- ; } dos . write Short ( exponent ) ; dos . write Int ( ( ( int ) high Mantissa ) << NUM ) ; dos . write Int ( NU...
private void write_ieee_extended ( DataOutputStream dos , double f ) throws IOException { int exponent = _NUM ; double highMantissa = f ; while ( highMantissa < _NUM ) { highMantissa *= _NUM ; exponent -- ; } dos . writeShort ( exponent ) ; dos . writeInt ( ( ( int ) highMantissa ) << _NUM ) ; dos . writeInt ( _NUM ) ;...
79
java-test-11073
java
What represents a valid number ?
the string parameter
public static boolean is Number ( String string ) { final String Digits = STRING ; final String Hex Digits = STRING ; final String Exp = STRING + Digits ; final String fp Regex = ( STRING + STRING + STRING + STRING + STRING + Digits + STRING + Digits + STRING + Exp + STRING + STRING + Digits + STRING + Exp + STRING + S...
public static boolean isNumber ( String string ) { final String Digits = STRING ; final String HexDigits = STRING ; final String Exp = STRING + Digits ; final String fpRegex = ( STRING + STRING + STRING + STRING + STRING + Digits + STRING + Digits + STRING + Exp + STRING + STRING + Digits + STRING + Exp + STRING + STRI...
113
java-test-11074
java
What does the code compare with another attribute object ?
the current attribute object
public boolean equals ( Object object ) { if ( ! ( object instanceof Attribute ) ) { return BOOL ; } Attribute val = ( Attribute ) object ; if ( value == null ) { if ( val . get Value ( ) == null ) { return name . equals ( val . get Name ( ) ) ; } else { return BOOL ; } } return ( ( name . equals ( val . get Name ( ) )...
public boolean equals ( Object object ) { if ( ! ( object instanceof Attribute ) ) { return _BOOL ; } Attribute val = ( Attribute ) object ; if ( value == null ) { if ( val . getValue ( ) == null ) { return name . equals ( val . getName ( ) ) ; } else { return _BOOL ; } } return ( ( name . equals ( val . getName ( ) ) ...
102
java-test-11075
java
When is this called ?
when a cell was removed from the model
protected void remove State For Cell ( Object cell ) { int child Count = model . get Child Count ( cell ) ; for ( int i = NUM ; i < child Count ; i ++ ) { remove State For Cell ( model . get Child At ( cell , i ) ) ; } view . remove State ( cell ) ; }
protected void removeStateForCell ( Object cell ) { int childCount = model . getChildCount ( cell ) ; for ( int i = _NUM ; i < childCount ; i ++ ) { removeStateForCell ( model . getChildAt ( cell , i ) ) ; } view . removeState ( cell ) ; }
67
java-test-11076
java
For what purpose does an iterator take also ?
to remove items from the map
private void deselect ( int position , Iterator < Integer > entries ) { Item item = get Item ( position ) ; if ( item != null ) { item . with Set Selected ( BOOL ) ; } if ( entries == null ) { if ( m Position Based State Management ) { if ( m Selections . contains ( position ) ) { m Selections . remove ( position ) ; }...
private void deselect ( int position , Iterator < Integer > entries ) { Item item = getItem ( position ) ; if ( item != null ) { item . withSetSelected ( _BOOL ) ; } if ( entries == null ) { if ( mPositionBasedStateManagement ) { if ( mSelections . contains ( position ) ) { mSelections . remove ( position ) ; } } } els...
116
java-test-11077
java
What is the code create ?
a default title for pull request < p / > if there is only one commit , use its subject
public String create Default Title ( final List < Git Commit > commits , final String source Branch Name , final String target Branch Name ) { if ( commits == null || commits . is Empty ( ) ) { return String Utils . EMPTY ; } if ( commits . size ( ) == NUM ) { final Git Commit commit = commits . get ( NUM ) ; final Str...
public String createDefaultTitle ( final List < GitCommit > commits , final String sourceBranchName , final String targetBranchName ) { if ( commits == null || commits . isEmpty ( ) ) { return StringUtils . EMPTY ; } if ( commits . size ( ) == _NUM ) { final GitCommit commit = commits . get ( _NUM ) ; final String comm...
171
java-test-11078
java
How did this stream encode ?
as utf
public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt...
public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; }
87
java-test-11079
java
What does the code create ?
a heapdataoutputstream optimized to contain just the specified string
public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt...
public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; }
87
java-test-11080
java
What did a heapdataoutputstream contain ?
just the specified string
public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt...
public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; }
87
java-test-11081
java
What did a heapdataoutputstream optimize ?
to contain just the specified string
public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt...
public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; }
87
java-test-11083
java
What is set to null indicating that there is no current scan ?
the variable currentscan
@ Override public void before First ( ) { current Scan = null ; s1 . before First ( ) ; has More 1 = s1 . next ( ) ; if ( s2 != null ) { s2 . before First ( ) ; has More 2 = s2 . next ( ) ; } }
@ Override public void beforeFirst ( ) { currentScan = null ; s1 . beforeFirst ( ) ; hasMore1 = s1 . next ( ) ; if ( s2 != null ) { s2 . beforeFirst ( ) ; hasMore2 = s2 . next ( ) ; } }
57
java-test-11084
java
What handles three arrays ?
a modified version of the jdk sort
public static void sort ( final Common Index x , final long off , final long len , final Swapper swapper ) { if ( len < NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - NUM ) ; } } return ; } long m = off + ( len ...
public static void sort ( final CommonIndex x , final long off , final long len , final Swapper swapper ) { if ( len < _NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - _NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - _NUM ) ; } } return ; } long m = off + ( le...
486
java-test-11085
java
What do a modified version of the jdk sort handle ?
three arrays
public static void sort ( final Common Index x , final long off , final long len , final Swapper swapper ) { if ( len < NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - NUM ) ; } } return ; } long m = off + ( len ...
public static void sort ( final CommonIndex x , final long off , final long len , final Swapper swapper ) { if ( len < _NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - _NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - _NUM ) ; } } return ; } long m = off + ( le...
486
java-test-11086
java
Where is the gap not located currently ?
at the change location
protected void replace ( int position , int rm Size , Object add Items , int add Size ) { int add Offset = NUM ; if ( add Size == NUM ) { close ( position , rm Size ) ; return ; } else if ( rm Size > add Size ) { close ( position + add Size , rm Size - add Size ) ; } else { int end Size = add Size - rm Size ; int end =...
protected void replace ( int position , int rmSize , Object addItems , int addSize ) { int addOffset = _NUM ; if ( addSize == _NUM ) { close ( position , rmSize ) ; return ; } else if ( rmSize > addSize ) { close ( position + addSize , rmSize - addSize ) ; } else { int endSize = addSize - rmSize ; int end = open ( posi...
140
java-test-11087
java
What do an instance define ?
the yearly rule to create transitions between two offsets
Zone Offset Transition Rule ( int month , int day Of Month Indicator , int day Of Week , Local Time time , boolean time End Of Day , Time Definition time Defnition , Zone Offset standard Offset , Zone Offset offset Before , Zone Offset offset After ) { Objects . require Non Null ( time , STRING ) ; Objects . require No...
ZoneOffsetTransitionRule ( int month , int dayOfMonthIndicator , int dayOfWeek , LocalTime time , boolean timeEndOfDay , TimeDefinition timeDefnition , ZoneOffset standardOffset , ZoneOffset offsetBefore , ZoneOffset offsetAfter ) { Objects . requireNonNull ( time , STRING ) ; Objects . requireNonNull ( timeDefnition ,...
272
java-test-11091
java
How does a bucket construct ?
with the option of specifying the pivot year for two - digit year parsing
public Date Time Parser Bucket ( long instant Local , Chronology chrono , Locale locale , Integer pivot Year , int default Year ) { super ( ) ; chrono = Date Time Utils . get Chronology ( chrono ) ; i Millis = instant Local ; i Zone = chrono . get Zone ( ) ; i Chrono = chrono . with UTC ( ) ; i Locale = ( locale == nul...
public DateTimeParserBucket ( long instantLocal , Chronology chrono , Locale locale , Integer pivotYear , int defaultYear ) { super ( ) ; chrono = DateTimeUtils . getChronology ( chrono ) ; iMillis = instantLocal ; iZone = chrono . getZone ( ) ; iChrono = chrono . withUTC ( ) ; iLocale = ( locale == null ? Locale . get...
100
java-test-11092
java
When should this method be called ?
at the end of all customisation method
public void initialise ( ) { m Selected Position = DEFAULT SELECTED POSITION ; m Bottom Navigation Tabs . clear ( ) ; if ( ! m Bottom Navigation Items . is Empty ( ) ) { m Tab Container . remove All Views ( ) ; if ( m Mode == MODE DEFAULT ) { if ( m Bottom Navigation Items . size ( ) <= MIN SIZE ) { m Mode = MODE FIXED...
public void initialise ( ) { mSelectedPosition = DEFAULT_SELECTED_POSITION ; mBottomNavigationTabs . clear ( ) ; if ( ! mBottomNavigationItems . isEmpty ( ) ) { mTabContainer . removeAllViews ( ) ; if ( mMode == MODE_DEFAULT ) { if ( mBottomNavigationItems . size ( ) <= MIN_SIZE ) { mMode = MODE_FIXED ; } else { mMode ...
474
java-test-11093
java
What does this flag require ?
a parameter of a specified type
public Flag register Required ( final char name Char , final String name , final Class < ? > type , final String usage , final String description ) { return register Required ( Character . value Of ( name Char ) , name , type , usage , description ) ; }
public Flag registerRequired ( final char nameChar , final String name , final Class < ? > type , final String usage , final String description ) { return registerRequired ( Character . valueOf ( nameChar ) , name , type , usage , description ) ; }
53
java-test-11094
java
What does the code initialize ?
the nn cache
private static void initialize NN Cache ( double [ ] scratch , double [ ] bestd , int [ ] besti ) { final int size = bestd . length ; Arrays . fill ( bestd , Double . POSITIVE INFINITY ) ; Arrays . fill ( besti , - NUM ) ; for ( int x = NUM , p = NUM ; x < size ; x ++ ) { assert ( p == AGNES . triangle Size ( x ) ) ; d...
private static void initializeNNCache ( double [ ] scratch , double [ ] bestd , int [ ] besti ) { final int size = bestd . length ; Arrays . fill ( bestd , Double . POSITIVE_INFINITY ) ; Arrays . fill ( besti , - _NUM ) ; for ( int x = _NUM , p = _NUM ; x < size ; x ++ ) { assert ( p == AGNES . triangleSize ( x ) ) ; d...
184
java-test-11096
java
What reset itself through the static block in components ?
addon
private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } }
private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } }
52
java-test-11097
java
How do addon reset itself through the static block ?
in components
private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } }
private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } }
52
java-test-11098
java
Why will the addon not reinitialize ?
because addon reset itself through the static block in components and the classes do not get reloaded
private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } }
private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } }
52
java-test-11099
java
What did this mean ?
component . updateui will fail because it will not find its ui . < p / > this method ensures lookandfeeladdons get re - initialized if needed . it must be called in every component updateui methods
private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } }
private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } }
52
java-test-11100
java
How does a number string return if possible ?
with no fraction digits
public static String format Integer If Possible ( double value , int number Of Digits , boolean grouping Character ) { if ( Double . is Na N ( value ) ) { return STRING ; } if ( Double . is Infinite ( value ) ) { if ( value < NUM ) { return STRING + FORMAT SYMBOLS . get Infinity ( ) ; } else { return FORMAT SYMBOLS . g...
public static String formatIntegerIfPossible ( double value , int numberOfDigits , boolean groupingCharacter ) { if ( Double . isNaN ( value ) ) { return STRING ; } if ( Double . isInfinite ( value ) ) { if ( value < _NUM ) { return STRING + FORMAT_SYMBOLS . getInfinity ( ) ; } else { return FORMAT_SYMBOLS . getInfinit...
144
java-test-11107
java
What converts to srgb image ?
data stream
@ Override public Buffered Image JPEG To RGB Image ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { Buffered Image image = null ; Raster ras = JPEG Decoder . get Raster From JPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanup Raster ( ras , pX , pY , component Count ) ; fina...
@ Override public BufferedImage JPEGToRGBImage ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { BufferedImage image = null ; Raster ras = JPEGDecoder . getRasterFromJPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanupRaster ( ras , pX , pY , componentCount ) ; final int w = r...
140
java-test-11108
java
What do data stream convert ?
to srgb image
@ Override public Buffered Image JPEG To RGB Image ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { Buffered Image image = null ; Raster ras = JPEG Decoder . get Raster From JPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanup Raster ( ras , pX , pY , component Count ) ; fina...
@ Override public BufferedImage JPEGToRGBImage ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { BufferedImage image = null ; Raster ras = JPEGDecoder . getRasterFromJPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanupRaster ( ras , pX , pY , componentCount ) ; final int w = r...
140
java-test-11109
java
What did the code set ?
the path style ( if any ) stroke - dasharray = " n1 , n2 , . . . " stroke - dashoffset = n
private void path Style Helper ( String style , String offset ) { if ( style == null ) { return ; } if ( style . equals ( STRING ) ) { stroke Paint . set Path Effect ( null ) ; return ; } String Tokenizer st = new String Tokenizer ( style , STRING ) ; int count = st . count Tokens ( ) ; float [ ] intervals = new float ...
private void pathStyleHelper ( String style , String offset ) { if ( style == null ) { return ; } if ( style . equals ( STRING ) ) { strokePaint . setPathEffect ( null ) ; return ; } StringTokenizer st = new StringTokenizer ( style , STRING ) ; int count = st . countTokens ( ) ; float [ ] intervals = new float [ ( coun...
233
java-test-11110
java
What does the code create in programmer or decoder definition ?
a single pane
public void new Pane ( String name , Element pane , Element model Elem , Roster Entry r ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + name ) ; } Pane Prog Pane p = new Pane Prog Pane ( container , name , pane , cv Model , i Cv Model , variable Model , model Elem , r ) ; pane List . add ( p ) ; }
public void newPane ( String name , Element pane , Element modelElem , RosterEntry r ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + name ) ; } PaneProgPane p = new PaneProgPane ( container , name , pane , cvModel , iCvModel , variableModel , modelElem , r ) ; paneList . add ( p ) ; }
82
java-test-11111
java
Where does the code create a single pane ?
in programmer or decoder definition
public void new Pane ( String name , Element pane , Element model Elem , Roster Entry r ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + name ) ; } Pane Prog Pane p = new Pane Prog Pane ( container , name , pane , cv Model , i Cv Model , variable Model , model Elem , r ) ; pane List . add ( p ) ; }
public void newPane ( String name , Element pane , Element modelElem , RosterEntry r ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + name ) ; } PaneProgPane p = new PaneProgPane ( container , name , pane , cvModel , iCvModel , variableModel , modelElem , r ) ; paneList . add ( p ) ; }
82
java-test-11112
java
What does the code create ?
an operation to copy from the original clipboard to the given extent
public Operation copy To ( Extent target ) { Block Transform Extent extent = new Block Transform Extent ( original , transform , world Data . get Block Registry ( ) ) ; Forward Extent Copy copy = new Forward Extent Copy ( extent , original . get Region ( ) , original . get Origin ( ) , target , original . get Origin ( ...
public Operation copyTo ( Extent target ) { BlockTransformExtent extent = new BlockTransformExtent ( original , transform , worldData . getBlockRegistry ( ) ) ; ForwardExtentCopy copy = new ForwardExtentCopy ( extent , original . getRegion ( ) , original . getOrigin ( ) , target , original . getOrigin ( ) ) ; copy . se...
81
java-test-11113
java
By how much do an operation copy an operation ?
to the given extent
public Operation copy To ( Extent target ) { Block Transform Extent extent = new Block Transform Extent ( original , transform , world Data . get Block Registry ( ) ) ; Forward Extent Copy copy = new Forward Extent Copy ( extent , original . get Region ( ) , original . get Origin ( ) , target , original . get Origin ( ...
public Operation copyTo ( Extent target ) { BlockTransformExtent extent = new BlockTransformExtent ( original , transform , worldData . getBlockRegistry ( ) ) ; ForwardExtentCopy copy = new ForwardExtentCopy ( extent , original . getRegion ( ) , original . getOrigin ( ) , target , original . getOrigin ( ) ) ; copy . se...
81
java-test-11114
java
What does the code write ?
the given writable as the value of the given attribute name
public void call ( String name , Writable json ) throws IO Exception { write Name ( name ) ; verify Value ( ) ; if ( json instanceof G String ) { writer . write ( Json Output . to Json ( json . to String ( ) ) ) ; } else { json . write To ( writer ) ; } }
public void call ( String name , Writable json ) throws IOException { writeName ( name ) ; verifyValue ( ) ; if ( json instanceof GString ) { writer . write ( JsonOutput . toJson ( json . toString ( ) ) ) ; } else { json . writeTo ( writer ) ; } }
65
java-test-11115
java
What returns in the given database ?
the mean vectors of the given clusters
protected double [ ] [ ] means With Treshhold ( List < ? extends Modifiable Double DBID List > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] new Means = new double [ k ] [ ] ; for ( int i = NUM ; i < k ; i ++ ) { Double DBID List list = clusters . get ( i ) ; double [ ] raw...
protected double [ ] [ ] meansWithTreshhold ( List < ? extends ModifiableDoubleDBIDList > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] newMeans = new double [ k ] [ ] ; for ( int i = _NUM ; i < k ; i ++ ) { DoubleDBIDList list = clusters . get ( i ) ; double [ ] raw = null...
234
java-test-11116
java
Where does the mean vectors of the given clusters return ?
in the given database
protected double [ ] [ ] means With Treshhold ( List < ? extends Modifiable Double DBID List > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] new Means = new double [ k ] [ ] ; for ( int i = NUM ; i < k ; i ++ ) { Double DBID List list = clusters . get ( i ) ; double [ ] raw...
protected double [ ] [ ] meansWithTreshhold ( List < ? extends ModifiableDoubleDBIDList > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] newMeans = new double [ k ] [ ] ; for ( int i = _NUM ; i < k ; i ++ ) { DoubleDBIDList list = clusters . get ( i ) ; double [ ] raw = null...
234
java-test-11117
java
What does the code create ?
a new namespace object
public Namespace ( Principal User creator , String qualifier , Principal User owner , Set < Principal User > users ) { super ( creator ) ; set Qualifier ( qualifier ) ; set Owner ( owner ) ; if ( users != null && ! users . is Empty ( ) ) { set Users ( users ) ; } add User ( owner ) ; }
public Namespace ( PrincipalUser creator , String qualifier , PrincipalUser owner , Set < PrincipalUser > users ) { super ( creator ) ; setQualifier ( qualifier ) ; setOwner ( owner ) ; if ( users != null && ! users . isEmpty ( ) ) { setUsers ( users ) ; } addUser ( owner ) ; }
68
java-test-11120
java
What does the compound size have ?
format : max ( & lt ; atomic size & gt ; ; & lt ; atomic size2 & gt ; ) | min ( & lt ; atomic size1 & gt ; ; & lt ; atomic size2 & gt
private Size parse Old Bounded Size ( String token , boolean set Max ) { int semicolon Index = token . index Of ( STRING ) ; String size Token 1 = token . substring ( NUM , semicolon Index ) ; String size Token 2 = token . substring ( semicolon Index + NUM , token . length ( ) - NUM ) ; Size size 1 = parse Atomic Size ...
private Size parseOldBoundedSize ( String token , boolean setMax ) { int semicolonIndex = token . indexOf ( STRING ) ; String sizeToken1 = token . substring ( _NUM , semicolonIndex ) ; String sizeToken2 = token . substring ( semicolonIndex + _NUM , token . length ( ) - _NUM ) ; Size size1 = parseAtomicSize ( sizeToken1...
194
java-test-11121
java
What has format : max ( & lt ; atomic size & gt ; ; & lt ; atomic size2 & gt ; ) | min ( & lt ; atomic size1 & gt ; ; & lt ; atomic size2 & gt ?
the compound size
private Size parse Old Bounded Size ( String token , boolean set Max ) { int semicolon Index = token . index Of ( STRING ) ; String size Token 1 = token . substring ( NUM , semicolon Index ) ; String size Token 2 = token . substring ( semicolon Index + NUM , token . length ( ) - NUM ) ; Size size 1 = parse Atomic Size ...
private Size parseOldBoundedSize ( String token , boolean setMax ) { int semicolonIndex = token . indexOf ( STRING ) ; String sizeToken1 = token . substring ( _NUM , semicolonIndex ) ; String sizeToken2 = token . substring ( semicolonIndex + _NUM , token . length ( ) - _NUM ) ; Size size1 = parseAtomicSize ( sizeToken1...
194
java-test-11122
java
What do this service have ?
its supported * properties for keys defined
private boolean has Key Attributes ( ) { Boolean b = has Key Attributes ; if ( b == null ) { synchronized ( this ) { String s ; s = get Attribute ( STRING ) ; if ( s != null ) { supported Formats = s . split ( STRING ) ; } s = get Attribute ( STRING ) ; if ( s != null ) { String [ ] class Names = s . split ( STRING ) ;...
private boolean hasKeyAttributes ( ) { Boolean b = hasKeyAttributes ; if ( b == null ) { synchronized ( this ) { String s ; s = getAttribute ( STRING ) ; if ( s != null ) { supportedFormats = s . split ( STRING ) ; } s = getAttribute ( STRING ) ; if ( s != null ) { String [ ] classNames = s . split ( STRING ) ; List < ...
205
java-test-11123
java
What does the code check ?
the requirements of a table cell that spans a single column
void check Single Column Cell ( int axis , int col , View v ) { Size Requirements req = column Requirements [ col ] ; req . minimum = Math . max ( ( int ) v . get Minimum Span ( axis ) , req . minimum ) ; req . preferred = Math . max ( ( int ) v . get Preferred Span ( axis ) , req . preferred ) ; }
void checkSingleColumnCell ( int axis , int col , View v ) { SizeRequirements req = columnRequirements [ col ] ; req . minimum = Math . max ( ( int ) v . getMinimumSpan ( axis ) , req . minimum ) ; req . preferred = Math . max ( ( int ) v . getPreferredSpan ( axis ) , req . preferred ) ; }
77
java-test-11124
java
What does the code add to this url ' s query string ?
the pre - encoded query parameter
Builder add Encoded Query Parameter ( String encoded Name , String encoded Value ) { if ( encoded Name == null ) throw new Illegal Argument Exception ( STRING ) ; if ( encoded Query Names And Values == null ) encoded Query Names And Values = new Array List < > ( ) ; encoded Query Names And Values . add ( canonicalize (...
Builder addEncodedQueryParameter ( String encodedName , String encodedValue ) { if ( encodedName == null ) throw new IllegalArgumentException ( STRING ) ; if ( encodedQueryNamesAndValues == null ) encodedQueryNamesAndValues = new ArrayList < > ( ) ; encodedQueryNamesAndValues . add ( canonicalize ( encodedName , QUERY_...
114
java-test-11125
java
What does the code create ?
a new store for configuration values
public In Memory Message Exchange Store ( final Network Config config , Token Provider token Provider ) { if ( config == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( token Provider == null ) { throw new Null Pointer Exception ( STRING ) ; } this . token Provider = token Provider ; this . config = confi...
public InMemoryMessageExchangeStore ( final NetworkConfig config , TokenProvider tokenProvider ) { if ( config == null ) { throw new NullPointerException ( STRING ) ; } if ( tokenProvider == null ) { throw new NullPointerException ( STRING ) ; } this . tokenProvider = tokenProvider ; this . config = config ; }
68
java-test-11126
java
What does function read ?
the fdselect
protected void Build FD Array Used ( int Font ) { int [ ] FD Select = fonts [ Font ] . FD Select ; for ( Integer glyphs In List 1 : glyphs In List ) { int glyph = ( int ) glyphs In List 1 ; int FD = FD Select [ glyph ] ; FD Array Used . add ( FD ) ; } }
protected void BuildFDArrayUsed ( int Font ) { int [ ] FDSelect = fonts [ Font ] . FDSelect ; for ( Integer glyphsInList1 : glyphsInList ) { int glyph = ( int ) glyphsInList1 ; int FD = FDSelect [ glyph ] ; FDArrayUsed . add ( FD ) ; } }
69
java-test-11127
java
What does function build according to the glyphs used ?
the fdarrayused map
protected void Build FD Array Used ( int Font ) { int [ ] FD Select = fonts [ Font ] . FD Select ; for ( Integer glyphs In List 1 : glyphs In List ) { int glyph = ( int ) glyphs In List 1 ; int FD = FD Select [ glyph ] ; FD Array Used . add ( FD ) ; } }
protected void BuildFDArrayUsed ( int Font ) { int [ ] FDSelect = fonts [ Font ] . FDSelect ; for ( Integer glyphsInList1 : glyphsInList ) { int glyph = ( int ) glyphsInList1 ; int FD = FDSelect [ glyph ] ; FDArrayUsed . add ( FD ) ; } }
69
java-test-11129
java
What do it replace in ' str ' with ' newchar ' ?
any occurrances of ' oldchars '
public static String replace Chars ( String str , String oldchars , char newchar ) { int pos = index Of Chars ( str , oldchars ) ; if ( pos == - NUM ) { return str ; } String Builder buf = new String Builder ( str ) ; do { buf . set Char At ( pos , newchar ) ; pos = index Of Chars ( str , oldchars , pos + NUM ) ; } whi...
public static String replaceChars ( String str , String oldchars , char newchar ) { int pos = indexOfChars ( str , oldchars ) ; if ( pos == - _NUM ) { return str ; } StringBuilder buf = new StringBuilder ( str ) ; do { buf . setCharAt ( pos , newchar ) ; pos = indexOfChars ( str , oldchars , pos + _NUM ) ; } while ( po...
97
java-test-11130
java
What does it accept ?
any number of old chars
public static String replace Chars ( String str , String oldchars , char newchar ) { int pos = index Of Chars ( str , oldchars ) ; if ( pos == - NUM ) { return str ; } String Builder buf = new String Builder ( str ) ; do { buf . set Char At ( pos , newchar ) ; pos = index Of Chars ( str , oldchars , pos + NUM ) ; } whi...
public static String replaceChars ( String str , String oldchars , char newchar ) { int pos = indexOfChars ( str , oldchars ) ; if ( pos == - _NUM ) { return str ; } StringBuilder buf = new StringBuilder ( str ) ; do { buf . setCharAt ( pos , newchar ) ; pos = indexOfChars ( str , oldchars , pos + _NUM ) ; } while ( po...
97
java-test-11134
java
Where do misc size calculate ?
in settings - > storage
@ Override public byte [ ] list Directory ( String path ) throws Remote Exception { Process . set Thread Priority ( Process . THREAD PRIORITY BACKGROUND ) ; final File directory = new File ( path ) ; final File [ ] files = directory . list Files ( ) ; final Parcel out = Parcel . obtain ( ) ; if ( files == null ) { out ...
@ Override public byte [ ] listDirectory ( String path ) throws RemoteException { Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ; final File directory = new File ( path ) ; final File [ ] files = directory . listFiles ( ) ; final Parcel out = Parcel . obtain ( ) ; if ( files == null ) { out . wri...
195
java-test-11135
java
What is calculating in settings - > storage ?
misc size
@ Override public byte [ ] list Directory ( String path ) throws Remote Exception { Process . set Thread Priority ( Process . THREAD PRIORITY BACKGROUND ) ; final File directory = new File ( path ) ; final File [ ] files = directory . list Files ( ) ; final Parcel out = Parcel . obtain ( ) ; if ( files == null ) { out ...
@ Override public byte [ ] listDirectory ( String path ) throws RemoteException { Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ; final File directory = new File ( path ) ; final File [ ] files = directory . listFiles ( ) ; final Parcel out = Parcel . obtain ( ) ; if ( files == null ) { out . wri...
195
java-test-11136
java
When do the content verify to be identical ?
afterward
private void assert Zip And Unzip Of Directory Matches Original ( File source Dir ) throws IO Exception { File [ ] source Files = source Dir . list Files ( ) ; Arrays . sort ( source Files ) ; File zip File = create Zip File Handle ( ) ; Zip Files . zip Directory ( source Dir , zip File ) ; File output Dir = Files . cr...
private void assertZipAndUnzipOfDirectoryMatchesOriginal ( File sourceDir ) throws IOException { File [ ] sourceFiles = sourceDir . listFiles ( ) ; Arrays . sort ( sourceFiles ) ; File zipFile = createZipFileHandle ( ) ; ZipFiles . zipDirectory ( sourceDir , zipFile ) ; File outputDir = Files . createTempDir ( ) ; ZipF...
189
java-test-11138
java
What do a sound contain ?
an array of all values
public static Sound create Sound ( String chars ) { String [ ] sounds = chars . split ( STRING ) ; char [ ] sound Symbols = new char [ sounds . length ] ; int i = NUM ; for ( String sound : sounds ) { sound Symbols [ i ] = sound . char At ( NUM ) ; i ++ ; } return new Sound ( sound Symbols ) ; }
public static Sound createSound ( String chars ) { String [ ] sounds = chars . split ( STRING ) ; char [ ] soundSymbols = new char [ sounds . length ] ; int i = _NUM ; for ( String sound : sounds ) { soundSymbols [ i ] = sound . charAt ( _NUM ) ; i ++ ; } return new Sound ( soundSymbols ) ; }
76
java-test-11139
java
How do single bitmap draw ?
with the giving centerx , centery and radius
private void draw Bitmap With Stroke ( Canvas canvas , Bitmap bitmap , int center X , int center Y , float radius , Paint draw Paint ) { draw Paint . set Style ( Paint . Style . FILL ) ; float stroke Radius = radius + m Radius Stroke Width ; draw Paint . set Xfermode ( new Porter Duff Xfermode ( Porter Duff . Mode . CL...
private void drawBitmapWithStroke ( Canvas canvas , Bitmap bitmap , int centerX , int centerY , float radius , Paint drawPaint ) { drawPaint . setStyle ( Paint . Style . FILL ) ; float strokeRadius = radius + mRadiusStrokeWidth ; drawPaint . setXfermode ( new PorterDuffXfermode ( PorterDuff . Mode . CLEAR ) ) ; canvas ...
295
java-test-11140
java
What did the code set to the episode ' s if it is more recent ?
the podcast ' s publication date
private void update Podcast Publication Date And Last Media Url ( Episode episode , Podcast podcast ) { Date podcast Publication Date = podcast . get Publication Date ( ) ; boolean episode Pub Date Is More Recent = episode . get Publication Date ( ) != null && ( podcast Publication Date == null || podcast Publication D...
private void updatePodcastPublicationDateAndLastMediaUrl ( Episode episode , Podcast podcast ) { Date podcastPublicationDate = podcast . getPublicationDate ( ) ; boolean episodePubDateIsMoreRecent = episode . getPublicationDate ( ) != null && ( podcastPublicationDate == null || podcastPublicationDate . before ( episode...
116
java-test-11141
java
What does this change actually ?
the items on the board
private Array List < Brd Tracep > split with end line ( int p line no , Pla Line Int p new end line ) { Array List < Brd Tracep > risul = new Array List < Brd Tracep > ( NUM ) ; if ( ! is on the board ( ) ) return risul ; if ( ! split inside drill pad allowed ( p line no , p new end line ) ) return risul ; Array List <...
private ArrayList < BrdTracep > split_with_end_line ( int p_line_no , PlaLineInt p_new_end_line ) { ArrayList < BrdTracep > risul = new ArrayList < BrdTracep > ( _NUM ) ; if ( ! is_on_the_board ( ) ) return risul ; if ( ! split_inside_drill_pad_allowed ( p_line_no , p_new_end_line ) ) return risul ; ArrayList < Polylin...
251
java-test-11142
java
How does this trace at the line split with number p_line_no ?
by inserting p_endline as concluding line of the first split piece
private Array List < Brd Tracep > split with end line ( int p line no , Pla Line Int p new end line ) { Array List < Brd Tracep > risul = new Array List < Brd Tracep > ( NUM ) ; if ( ! is on the board ( ) ) return risul ; if ( ! split inside drill pad allowed ( p line no , p new end line ) ) return risul ; Array List <...
private ArrayList < BrdTracep > split_with_end_line ( int p_line_no , PlaLineInt p_new_end_line ) { ArrayList < BrdTracep > risul = new ArrayList < BrdTracep > ( _NUM ) ; if ( ! is_on_the_board ( ) ) return risul ; if ( ! split_inside_drill_pad_allowed ( p_line_no , p_new_end_line ) ) return risul ; ArrayList < Polylin...
251