id
stringlengths
11
15
language
stringclasses
1 value
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-4659
java
What does the code split into a parent ' a . b ' into a parent ' a . b ' ?
a name formatted like a . b . c
private String [ ] parent Key ( String name , int idx ) { String [ ] parts = name . split ( STRING ) ; if ( idx > parts . length ) return null ; String parent = STRING ; String key = null ; if ( idx < parts . length ) key = parts [ idx ] ; for ( int i = NUM ; i < idx ; i ++ ) { parent = parent . length ( ) > NUM ? pare...
private String [ ] parentKey ( String name , int idx ) { String [ ] parts = name . split ( STRING ) ; if ( idx > parts . length ) return null ; String parent = STRING ; String key = null ; if ( idx < parts . length ) key = parts [ idx ] ; for ( int i = _NUM ; i < idx ; i ++ ) { parent = parent . length ( ) > _NUM ? par...
114
java-test-4660
java
How does the attribute information replace ?
by a clone of itself
protected void fresh Attribute Info ( ) { Array List < Attribute > new List = new Array List < Attribute > ( m Attributes . size ( ) ) ; for ( Attribute att : m Attributes ) { new List . add ( ( Attribute ) att . copy ( ) ) ; } m Attributes = new List ; }
protected void freshAttributeInfo ( ) { ArrayList < Attribute > newList = new ArrayList < Attribute > ( m_Attributes . size ( ) ) ; for ( Attribute att : m_Attributes ) { newList . add ( ( Attribute ) att . copy ( ) ) ; } m_Attributes = newList ; }
63
java-test-4661
java
How can the null hypothesis be rejected ?
with confidence 1 - alpha
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4662
java
What does chisquare test of goodness of fit use ?
to evaluate the null hypothesis that the distributions are the same
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4663
java
What uses to evaluate the null hypothesis that the distributions are the same ?
chisquare test of goodness of fit
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4664
java
What is comparing to the corresponding expected distribution computed using poissondistributionimpl ?
this distribution
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4665
java
Does nextpoisson ( mean ) generate an empirical distribution of values consistent with poissondistributionimpl by generating 1000 values , computing a grouped frequency distribution of the observed values and comparing this distribution to the corresponding expected distribution computed using poissondistributionimpl ?
No
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4666
java
What do this distribution compare ?
to the corresponding expected distribution computed using poissondistributionimpl
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4667
java
How do the corresponding expected distribution compute ?
using poissondistributionimpl
public void check Next Poisson Consistency ( double mean ) { final int sample Size = NUM ; final int min Expected Count = NUM ; long max Observed Value = NUM ; final double alpha = NUM ; Unit Test Utils . Frequency < Long > frequency = new Unit Test Utils . Frequency < Long > ( ) ; for ( int i = NUM ; i < sample Size ;...
public void checkNextPoissonConsistency ( double mean ) { final int sampleSize = _NUM ; final int minExpectedCount = _NUM ; long maxObservedValue = _NUM ; final double alpha = _NUM ; UnitTestUtils . Frequency < Long > frequency = new UnitTestUtils . Frequency < Long > ( ) ; for ( int i = _NUM ; i < sampleSize ; i ++ ) ...
956
java-test-4668
java
What does the code ensure ?
a max size for the image
public void ensure Max Size ( int max Width , int max Height , boolean keep Proportions ) { int width = canvas . get Width ( ) ; int height = canvas . get Height ( ) ; if ( keep Proportions ) { if ( width > height ) { if ( width > max Width ) { height = Math . round ( height *= max Width / ( double ) width ) ; width = ...
public void ensureMaxSize ( int maxWidth , int maxHeight , boolean keepProportions ) { int width = canvas . getWidth ( ) ; int height = canvas . getHeight ( ) ; if ( keepProportions ) { if ( width > height ) { if ( width > maxWidth ) { height = Math . round ( height *= maxWidth / ( double ) width ) ; width = maxWidth ;...
154
java-test-4669
java
What does the code lighten ?
the given color
public int lighten Color ( int color , float factor ) { float r = Color . red ( color ) * factor ; float g = Color . green ( color ) * factor ; float b = Color . blue ( color ) * factor ; int ir = Math . min ( NUM , ( int ) r ) ; int ig = Math . min ( NUM , ( int ) g ) ; int ib = Math . min ( NUM , ( int ) b ) ; int ia...
public int lightenColor ( int color , float factor ) { float r = Color . red ( color ) * factor ; float g = Color . green ( color ) * factor ; float b = Color . blue ( color ) * factor ; int ir = Math . min ( _NUM , ( int ) r ) ; int ig = Math . min ( _NUM , ( int ) g ) ; int ib = Math . min ( _NUM , ( int ) b ) ; int ...
120
java-test-4670
java
What does the code create ?
a new sender instance
public Amqp Sender ( Amqp Session session , String address , String sender Id ) { if ( address != null && address . is Empty ( ) ) { throw new Illegal Argument Exception ( STRING ) ; } this . session = session ; this . address = address ; this . sender Id = sender Id ; this . user Specified Target = null ; }
public AmqpSender ( AmqpSession session , String address , String senderId ) { if ( address != null && address . isEmpty ( ) ) { throw new IllegalArgumentException ( STRING ) ; } this . session = session ; this . address = address ; this . senderId = senderId ; this . userSpecifiedTarget = null ; }
69
java-test-4672
java
What does the code render on the java ?
the raster
public void render ( Graphics graphics ) { if ( get Need To Regenerate ( ) || get Need To Reposition ( ) || ! is Visible ( ) ) { return ; } boolean small World = bitmap != null && corners != null && corners . size ( ) >= NUM ; if ( small World ) { float [ ] xs = corners . get ( NUM ) ; float [ ] ys = corners . get ( NU...
public void render ( Graphics graphics ) { if ( getNeedToRegenerate ( ) || getNeedToReposition ( ) || ! isVisible ( ) ) { return ; } boolean smallWorld = bitmap != null && corners != null && corners . size ( ) >= _NUM ; if ( smallWorld ) { float [ ] xs = corners . get ( _NUM ) ; float [ ] ys = corners . get ( _NUM ) ; ...
203
java-test-4673
java
What does the code add to circuit ?
icon ' pos '
private void add Icon ( O Block block , Positionable pos ) { Array List < Positionable > icons = circuit Map . get ( block ) ; if ( icons == null ) { icons = new Array List < Positionable > ( ) ; } if ( pos != null ) { if ( ! icons . contains ( pos ) ) { icons . add ( pos ) ; } icon Map . put ( pos , block ) ; } circui...
private void addIcon ( OBlock block , Positionable pos ) { ArrayList < Positionable > icons = _circuitMap . get ( block ) ; if ( icons == null ) { icons = new ArrayList < Positionable > ( ) ; } if ( pos != null ) { if ( ! icons . contains ( pos ) ) { icons . add ( pos ) ; } _iconMap . put ( pos , block ) ; } _circuitMa...
103
java-test-4675
java
What does the code get ?
the percent of values within the specified value range
public double percentage ( Constant Range range ) { Sorted Set < Constant > sorted = values ( ) ; Sorted Set < Constant > contained = new Tree Set < Constant > ( ) ; Constant prev = null ; for ( Constant pct : sorted ) { if ( range . contains ( pct ) ) contained . add ( pct ) ; else if ( contained . is Empty ( ) ) prev...
public double percentage ( ConstantRange range ) { SortedSet < Constant > sorted = values ( ) ; SortedSet < Constant > contained = new TreeSet < Constant > ( ) ; Constant prev = null ; for ( Constant pct : sorted ) { if ( range . contains ( pct ) ) contained . add ( pct ) ; else if ( contained . isEmpty ( ) ) prev = pc...
126
java-test-4676
java
What does the code check ?
the permissions of the relationship
protected boolean check Relation ( String relation Name ) { List < String > relations = dictionary . get Relationships ( obj ) ; String real Name = dictionary . get Name From Alias ( obj , relation Name ) ; relation Name = ( real Name == null ) ? relation Name : real Name ; if ( relation Name == null || relations == nu...
protected boolean checkRelation ( String relationName ) { List < String > relations = dictionary . getRelationships ( obj ) ; String realName = dictionary . getNameFromAlias ( obj , relationName ) ; relationName = ( realName == null ) ? relationName : realName ; if ( relationName == null || relations == null || ! relat...
167
java-test-4678
java
What does the code stop ?
the communicator
public void stop ( ) { synchronized ( private Instance Lock ) { if ( connection Accept Thread == null ) { return ; } } is Stopped . set ( BOOL ) ; try { connection Accept Thread . interrupt ( ) ; connection Accept Thread . join ( ) ; } catch ( Interrupted Exception e ) { } try { server Socket . close ( ) ; } catch ( IO...
public void stop ( ) { synchronized ( privateInstanceLock ) { if ( connectionAcceptThread == null ) { return ; } } isStopped . set ( _BOOL ) ; try { connectionAcceptThread . interrupt ( ) ; connectionAcceptThread . join ( ) ; } catch ( InterruptedException e ) { } try { serverSocket . close ( ) ; } catch ( IOException ...
80
java-test-4679
java
What is having in a recommendation list of a given size ?
a number of items with the same feature
public double patience ( int k , F f , int N ) { double pf = p ( f ) ; Binomial Distribution dist = new Binomial Distribution ( null , N , pf ) ; double p0 = Math . pow ( NUM - pf , N ) ; return NUM - ( dist . cumulative Probability ( k - NUM ) - p0 ) / ( NUM - p0 ) ; }
public double patience ( int k , F f , int N ) { double pf = p ( f ) ; BinomialDistribution dist = new BinomialDistribution ( null , N , pf ) ; double p0 = Math . pow ( _NUM - pf , N ) ; return _NUM - ( dist . cumulativeProbability ( k - _NUM ) - p0 ) / ( _NUM - p0 ) ; }
75
java-test-4680
java
Where do a number of items with the same feature have ?
in a recommendation list of a given size
public double patience ( int k , F f , int N ) { double pf = p ( f ) ; Binomial Distribution dist = new Binomial Distribution ( null , N , pf ) ; double p0 = Math . pow ( NUM - pf , N ) ; return NUM - ( dist . cumulative Probability ( k - NUM ) - p0 ) / ( NUM - p0 ) ; }
public double patience ( int k , F f , int N ) { double pf = p ( f ) ; BinomialDistribution dist = new BinomialDistribution ( null , N , pf ) ; double p0 = Math . pow ( _NUM - pf , N ) ; return _NUM - ( dist . cumulativeProbability ( k - _NUM ) - p0 ) / ( _NUM - p0 ) ; }
75
java-test-4682
java
What returns in a string ?
all the options
protected static String make Option String ( Data Generator generator ) { String Buffer result ; Enumeration < Option > enm ; Option option ; result = new String Buffer ( ) ; result . append ( STRING ) ; enm = generator . list Options ( ) ; while ( enm . has More Elements ( ) ) { option = enm . next Element ( ) ; if ( ...
protected static String makeOptionString ( DataGenerator generator ) { StringBuffer result ; Enumeration < Option > enm ; Option option ; result = new StringBuffer ( ) ; result . append ( STRING ) ; enm = generator . listOptions ( ) ; while ( enm . hasMoreElements ( ) ) { option = enm . nextElement ( ) ; if ( isOnBlack...
117
java-test-4683
java
When did the code invoke ?
when component has been shown
public void component Shown ( Component Event e ) { if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( STRING + layer . get Name ( ) + STRING ) ; } Component comp = e . get Component ( ) ; if ( comp == null ) { } else if ( comp == layer ) { if ( is Layer On ( ) != BOOL ) { set Layer On ( BOOL ) ; if ( logge...
public void componentShown ( ComponentEvent e ) { if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( STRING + layer . getName ( ) + STRING ) ; } Component comp = e . getComponent ( ) ; if ( comp == null ) { } else if ( comp == layer ) { if ( isLayerOn ( ) != _BOOL ) { setLayerOn ( _BOOL ) ; if ( logger . isL...
138
java-test-4684
java
What does the code create ?
a content object
public static Mm Content create Mm Content ( Uri uri , String mime , long size , String file Name ) { if ( mime != null ) { if ( Mime Manager . is Image Type ( mime ) ) { return new Photo Content ( uri , mime , size , file Name ) ; } if ( Mime Manager . is Video Type ( mime ) ) { return new Video Content ( uri , mime ,...
public static MmContent createMmContent ( Uri uri , String mime , long size , String fileName ) { if ( mime != null ) { if ( MimeManager . isImageType ( mime ) ) { return new PhotoContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isVideoType ( mime ) ) { return new VideoContent ( uri , mime , size , fileN...
189
java-test-4685
java
When do us complete a high level read on the channel ?
when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads )
private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset...
private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut...
90
java-test-4686
java
What do us complete when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads ) ?
a high level read on the channel
private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset...
private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut...
90
java-test-4687
java
When did by query termination drive ?
during reads
private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset...
private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut...
90
java-test-4688
java
Why may by an interrupt in another thread have been closed the backing channel when ?
due to java io channel semantics ( e . g . , driven by query termination during reads )
private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset...
private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut...
90
java-test-4689
java
For what purpose is this done ?
in order to allow us to complete a high level read on the channel when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads )
private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset...
private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut...
90
java-test-4690
java
What performs across two raml models ?
a specific check
public Pair < Set < Issue > , Set < Issue > > check ( Raml Root published , Raml Root implemented ) { check Children ( published . get Resources ( ) , published , Issue Location . CONTRACT ) ; if ( ! ignore Code Style && implemented != null ) { check Children ( implemented . get Resources ( ) , implemented , Issue Loca...
public Pair < Set < Issue > , Set < Issue > > check ( RamlRoot published , RamlRoot implemented ) { checkChildren ( published . getResources ( ) , published , IssueLocation . CONTRACT ) ; if ( ! ignoreCodeStyle && implemented != null ) { checkChildren ( implemented . getResources ( ) , implemented , IssueLocation . SOU...
90
java-test-4691
java
Where does a specific check perform ?
across two raml models
public Pair < Set < Issue > , Set < Issue > > check ( Raml Root published , Raml Root implemented ) { check Children ( published . get Resources ( ) , published , Issue Location . CONTRACT ) ; if ( ! ignore Code Style && implemented != null ) { check Children ( implemented . get Resources ( ) , implemented , Issue Loca...
public Pair < Set < Issue > , Set < Issue > > check ( RamlRoot published , RamlRoot implemented ) { checkChildren ( published . getResources ( ) , published , IssueLocation . CONTRACT ) ; if ( ! ignoreCodeStyle && implemented != null ) { checkChildren ( implemented . getResources ( ) , implemented , IssueLocation . SOU...
90
java-test-4692
java
When do database prepare ?
before transfer migration
public void prepare Database ( ) { s logger . log ( Level . FINE , STRING , get Direction ( ) ) ; String vendor = get Vendor ( ) ; String catalog = get Catalog ( ) ; String schema = get Schema ( ) ; int step = NUM ; int errors = NUM ; String sql = STRING ; Statement stmt = set Statement ( ) ; sql = s db Engine . sql Ad...
public void prepareDatabase ( ) { s_logger . log ( Level . FINE , STRING , getDirection ( ) ) ; String vendor = getVendor ( ) ; String catalog = getCatalog ( ) ; String schema = getSchema ( ) ; int step = _NUM ; int errors = _NUM ; String sql = STRING ; Statement stmt = setStatement ( ) ; sql = s_dbEngine . sqlAdmin_pr...
195
java-test-4695
java
What uses the android or android - library plugin ?
the build file
public boolean has Android Plugin ( ) { List < String > plugins = get Plugins ( ) ; return plugins . contains ( Gradle Detector . APP PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD APP PLUGIN ID ) || plugins . contains ( Gradle Detector . LIB PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD LIB PLUG...
public boolean hasAndroidPlugin ( ) { List < String > plugins = getPlugins ( ) ; return plugins . contains ( GradleDetector . APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . LIB_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_LIB_PLUGIN_ID )...
71
java-test-4696
java
What does the build file use ?
the android or android - library plugin
public boolean has Android Plugin ( ) { List < String > plugins = get Plugins ( ) ; return plugins . contains ( Gradle Detector . APP PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD APP PLUGIN ID ) || plugins . contains ( Gradle Detector . LIB PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD LIB PLUG...
public boolean hasAndroidPlugin ( ) { List < String > plugins = getPlugins ( ) ; return plugins . contains ( GradleDetector . APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . LIB_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_LIB_PLUGIN_ID )...
71
java-test-4697
java
What is describing the last dataset backed up ?
the state blob
@ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A...
@ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo...
309
java-test-4698
java
What do it store as the state blob describing the last dataset backed up simply ?
a copy of the backed - up data
@ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A...
@ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo...
309
java-test-4699
java
What do the state blob describe ?
the last dataset backed up
@ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A...
@ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo...
309
java-test-4700
java
What does the code convert to a corresponding array ?
a map of named parameter values
public static Object [ ] build Value Array ( Parsed Sql parsed Sql , Map < String , ? > param Source ) { List < Object > param Array = new Array List < Object > ( ) ; if ( parsed Sql . get Named Parameter Count ( ) > NUM && parsed Sql . get Unnamed Parameter Count ( ) > NUM ) { throw new Illegal State Exception ( STRIN...
public static Object [ ] buildValueArray ( ParsedSql parsedSql , Map < String , ? > paramSource ) { List < Object > paramArray = new ArrayList < Object > ( ) ; if ( parsedSql . getNamedParameterCount ( ) > _NUM && parsedSql . getUnnamedParameterCount ( ) > _NUM ) { throw new IllegalStateException ( STRING + parsedSql ....
246
java-test-4702
java
What does the code append to the buffer ?
the length of the payload
private static void append Length ( Byte Buffer buffer , int length , boolean masked ) { if ( length < NUM ) { throw new Illegal Argument Exception ( STRING ) ; } byte b = ( masked ? ( byte ) NUM : NUM ) ; if ( length > NUM ) { buffer . put ( ( byte ) ( b | NUM ) ) ; buffer . put ( ( byte ) NUM ) ; buffer . put ( ( byt...
private static void appendLength ( ByteBuffer buffer , int length , boolean masked ) { if ( length < _NUM ) { throw new IllegalArgumentException ( STRING ) ; } byte b = ( masked ? ( byte ) _NUM : _NUM ) ; if ( length > _NUM ) { buffer . put ( ( byte ) ( b | _NUM ) ) ; buffer . put ( ( byte ) _NUM ) ; buffer . put ( ( b...
251
java-test-4703
java
How do creature stats adjust ?
using results from the previous run
public void step ( final int left HP , final int rounds ) { float step Size = left HP / ( float ) player . get Base HP ( ) ; step Size = Math . signum ( step Size ) * Math . min ( Math . abs ( step Size ) , NUM ) ; final int old Atk = creature . get Atk ( ) ; int new Atk = Math . max ( NUM , Math . round ( creature . g...
public void step ( final int leftHP , final int rounds ) { float stepSize = leftHP / ( float ) player . getBaseHP ( ) ; stepSize = Math . signum ( stepSize ) * Math . min ( Math . abs ( stepSize ) , _NUM ) ; final int oldAtk = creature . getAtk ( ) ; int newAtk = Math . max ( _NUM , Math . round ( creature . getAtk ( )...
362
java-test-4704
java
For what purpose does it process the textunitdtos by batch by batch ?
to reduce the number of queries needed
public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L...
public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId...
282
java-test-4705
java
What does it process by batch by batch to reduce the number of queries needed ?
the textunitdtos
public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L...
public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId...
282
java-test-4706
java
What does the code add ?
variant comments associated to the given textunitdtos
public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L...
public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId...
282
java-test-4707
java
How does it process the textunitdtos to reduce the number of queries needed ?
by batch
public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L...
public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId...
282
java-test-4708
java
What does it reduce ?
the number of queries needed
public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L...
public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId...
282
java-test-4709
java
For what purpose did method call ?
to calculate utf code point
private int convert Surrogate ( int first Part , int second Part ) { if ( second Part < SURR 2 FIRST || second Part > SURR 2 LAST ) { throw new Illegal Argument Exception ( STRING + Integer . to Hex String ( first Part ) + STRING + Integer . to Hex String ( second Part ) + STRING ) ; } return NUM + ( ( first Part - SUR...
private int _convertSurrogate ( int firstPart , int secondPart ) { if ( secondPart < SURR2_FIRST || secondPart > SURR2_LAST ) { throw new IllegalArgumentException ( STRING + Integer . toHexString ( firstPart ) + STRING + Integer . toHexString ( secondPart ) + STRING ) ; } return _NUM + ( ( firstPart - SURR1_FIRST ) << ...
91
java-test-4711
java
What does the code create ?
an error for the given nameentry
private Column Error make Duplicate Name Error ( Entry < String , List < Integer > > name Entry ) { String duplicaten Name Message = I18 N . get GUI Label ( STRING , name Entry . get Key ( ) , list To String ( name Entry . get Value ( ) ) ) ; return new Column Error ( name Entry . get Value ( ) , name Entry . get Key (...
private ColumnError makeDuplicateNameError ( Entry < String , List < Integer > > nameEntry ) { String duplicatenNameMessage = I18N . getGUILabel ( STRING , nameEntry . getKey ( ) , listToString ( nameEntry . getValue ( ) ) ) ; return new ColumnError ( nameEntry . getValue ( ) , nameEntry . getKey ( ) , duplicatenNameMe...
84
java-test-4714
java
For what purpose are object values traversed recursively ?
to replace sub - properties
private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre...
private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN...
194
java-test-4715
java
What replaces non - object values with the corresponding value from overridetree if present ?
the merge process
private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre...
private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN...
194
java-test-4716
java
What does the code overwrite ?
the fields of tree that intersect with those of overridetree
private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre...
private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN...
194
java-test-4717
java
What did the merge process replace with the corresponding value from overridetree if present ?
non - object values
private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre...
private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN...
194
java-test-4719
java
What does the code add ?
a line break
public void line Starts At ( int char In File ) { if ( immutable ) { throw new Unsupported Operation Exception ( ) ; } if ( n Lines == line Nums . length ) { int [ ] new Line Nums = new int [ n Lines * NUM ] ; System . arraycopy ( line Nums , NUM , new Line Nums , NUM , n Lines ) ; line Nums = new Line Nums ; } line Nu...
public void lineStartsAt ( int charInFile ) { if ( immutable ) { throw new UnsupportedOperationException ( ) ; } if ( nLines == lineNums . length ) { int [ ] newLineNums = new int [ nLines * _NUM ] ; System . arraycopy ( lineNums , _NUM , newLineNums , _NUM , nLines ) ; lineNums = newLineNums ; } lineNums [ nLines ++ ]...
101
java-test-4720
java
What does the code create ?
a view from the given structural element of a document
public View create ( Element elem ) { Document doc = elem . get Document ( ) ; Object i18 n Flag = doc . get Property ( STRING ) ; if ( ( i18 n Flag != null ) && i18 n Flag . equals ( Boolean . TRUE ) ) { return create I 18 N ( elem ) ; } else { return new Wrapped Plain View ( elem ) ; } }
public View create ( Element elem ) { Document doc = elem . getDocument ( ) ; Object i18nFlag = doc . getProperty ( STRING ) ; if ( ( i18nFlag != null ) && i18nFlag . equals ( Boolean . TRUE ) ) { return createI18N ( elem ) ; } else { return new WrappedPlainView ( elem ) ; } }
76
java-test-4721
java
Where do connection release ?
on event stream
@ Override public void release Connection ( ) { Header header = get Response Header ( STRING ) ; if ( header != null ) { String content Type Header = header . get Value ( ) ; if ( content Type Header != null && content Type Header . equals ( STRING ) ) { return ; } } super . release Connection ( ) ; }
@ Override public void releaseConnection ( ) { Header header = getResponseHeader ( STRING ) ; if ( header != null ) { String contentTypeHeader = header . getValue ( ) ; if ( contentTypeHeader != null && contentTypeHeader . equals ( STRING ) ) { return ; } } super . releaseConnection ( ) ; }
68
java-test-4723
java
What does the code create ?
a new typescript translator
public Java 2 Type Script Translator ( Transpilation Handler log Handler , J Sweet Context context , JC Compilation Unit compilation Unit , boolean preserve Source Line Numbers ) { super ( log Handler , context , compilation Unit , new Java 2 Type Script Adapter ( context ) , preserve Source Line Numbers ) ; }
public Java2TypeScriptTranslator ( TranspilationHandler logHandler , JSweetContext context , JCCompilationUnit compilationUnit , boolean preserveSourceLineNumbers ) { super ( logHandler , context , compilationUnit , new Java2TypeScriptAdapter ( context ) , preserveSourceLineNumbers ) ; }
57
java-test-4724
java
What does the code draw using the five different scaling approaches described in the book five times ?
the picture
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4725
java
How does the code draw the picture five times ?
using the five different scaling approaches described in the book
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4726
java
What are all using during the scale operation ?
default ( nearest neighbor ) filtering
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4727
java
When are all using default ( nearest neighbor ) filtering ?
during the scale operation
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4728
java
When does the code draw the picture using the five different scaling approaches described in the book ?
five times
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4729
java
Where did the five different scaling approaches describe ?
in the book
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4730
java
What described in the book ?
the five different scaling approaches
public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ...
public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING...
272
java-test-4731
java
For what purpose does the code get the database specific sql command ?
to find custom entity types
public String sql AD get Custom Entity Types ( String vendor Name , String catalog Name , String schema Name ) { String table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; Array List < String > alias Names = new Array List < String > ( ) ; alias Nam...
public String sqlAD_getCustomEntityTypes ( String vendorName , String catalogName , String schemaName ) { String tableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; ArrayList < String > aliasNames = new ArrayList < String > ( ) ; aliasNames . add ( STRIN...
159
java-test-4732
java
What does the code build ?
a delivery report
public static String build Imdn Delivery Report ( String msg Id , Imdn Document . Delivery Status status , long timestamp ) { String method ; switch ( status ) { case DISPLAYED : method = STRING ; break ; case DELIVERED : method = STRING ; break ; default : method = STRING ; break ; } return STRING + UTF 8 STR + STRING...
public static String buildImdnDeliveryReport ( String msgId , ImdnDocument . DeliveryStatus status , long timestamp ) { String method ; switch ( status ) { case DISPLAYED : method = STRING ; break ; case DELIVERED : method = STRING ; break ; default : method = STRING ; break ; } return STRING + UTF8_STR + STRING + CRLF...
116
java-test-4736
java
What does the code send to all developers ?
a specified email
public void notify Developers ( String subject , String message ) throws J Plag Exception { Node List user List = root Element . get Elements By Tag Name ( STRING ) ; for ( int i = NUM ; i < user List . get Length ( ) ; i ++ ) { Element elem = ( Element ) user List . item ( i ) ; if ( ( parse Int ( elem , STRING ) & MA...
public void notifyDevelopers ( String subject , String message ) throws JPlagException { NodeList userList = rootElement . getElementsByTagName ( STRING ) ; for ( int i = _NUM ; i < userList . getLength ( ) ; i ++ ) { Element elem = ( Element ) userList . item ( i ) ; if ( ( parseInt ( elem , STRING ) & MASK_DEVELOPER ...
103
java-test-4738
java
What does the code create ?
a decisionsupport object for a set of membership estimations , an originally suggested category and a final category
public Decision Support ( Map h Category Estimations , String s Suggested Category , String s Correct Category ) { Category Estimations = new Tree Map ( ) ; Category Estimations . put All ( h Category Estimations ) ; Suggested Category = new String ( s Suggested Category ) ; Correct Category = new String ( s Correct Ca...
public DecisionSupport ( Map hCategoryEstimations , String sSuggestedCategory , String sCorrectCategory ) { CategoryEstimations = new TreeMap ( ) ; CategoryEstimations . putAll ( hCategoryEstimations ) ; SuggestedCategory = new String ( sSuggestedCategory ) ; CorrectCategory = new String ( sCorrectCategory ) ; }
63
java-test-4739
java
Where does the code add a new item to the combo box ?
at a specific index
public synchronized Combo Box < V > add Item ( int index , V item ) { if ( item == null ) { throw new Illegal Argument Exception ( STRING ) ; } items . add ( index , item ) ; if ( index <= selected Index ) { set Selected Index ( selected Index + NUM ) ; } invalidate ( ) ; return this ; }
public synchronized ComboBox < V > addItem ( int index , V item ) { if ( item == null ) { throw new IllegalArgumentException ( STRING ) ; } items . add ( index , item ) ; if ( index <= selectedIndex ) { setSelectedIndex ( selectedIndex + _NUM ) ; } invalidate ( ) ; return this ; }
70
java-test-4740
java
What does the code get ?
the distance between this vector and another vector
public double distance ( Vector other ) { return Math . sqrt ( Math . pow ( other . x - x , NUM ) + Math . pow ( other . y - y , NUM ) + Math . pow ( other . z - z , NUM ) ) ; }
public double distance ( Vector other ) { return Math . sqrt ( Math . pow ( other . x - x , _NUM ) + Math . pow ( other . y - y , _NUM ) + Math . pow ( other . z - z , _NUM ) ) ; }
54
java-test-4741
java
What does this method back the iterator back up ?
to a " safe position " in the text
protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=...
protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR...
143
java-test-4742
java
How be a position be a break position ?
without any context
protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=...
protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR...
143
java-test-4743
java
In which direction does this method back the iterator to a " safe position " in the text ?
back up
protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=...
protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR...
143
java-test-4744
java
In which direction do the various calling methods iterate to the appropriate position to return then ?
from this safe position
protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=...
protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR...
143
java-test-4745
java
What receives all the events ?
the listener attached
@ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ...
@ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI...
214
java-test-4746
java
For what purpose do this test comment it ?
so that test suit will not hang
@ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ...
@ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI...
214
java-test-4747
java
What does this test need ?
to work with darrel
@ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ...
@ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI...
214
java-test-4748
java
When does this test hang ?
after the darrel ' s checkin 36685
@ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ...
@ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI...
214
java-test-4749
java
In which direction does the application user build ?
from the header map
protected Application User build User ( Map < String , String > header Map , boolean include Roles ) { LOGGER . debug ( STRING ) ; Map < String , String > header Names = get Header Names ( ) ; Application User application User = create New Application User ( ) ; build User Id ( application User , header Map , header Na...
protected ApplicationUser buildUser ( Map < String , String > headerMap , boolean includeRoles ) { LOGGER . debug ( STRING ) ; Map < String , String > headerNames = getHeaderNames ( ) ; ApplicationUser applicationUser = createNewApplicationUser ( ) ; buildUserId ( applicationUser , headerMap , headerNames . get ( HTTP_...
235
java-test-4750
java
What does the code validate ?
the uncompressed settings
private void validate SQL Fields ( ) { boolean flag = controller . is Enable SQL Database Output ( ) ; enable SQL Database Connection . set Selected ( flag ) ; sql Host Label . set Enabled ( flag ) ; sql Host Field . set Enabled ( flag ) ; sql Database Label . set Enabled ( flag ) ; sql Database Field . set Enabled ( f...
private void validateSQLFields ( ) { boolean flag = controller . isEnableSQLDatabaseOutput ( ) ; enableSQLDatabaseConnection . setSelected ( flag ) ; sqlHostLabel . setEnabled ( flag ) ; sqlHostField . setEnabled ( flag ) ; sqlDatabaseLabel . setEnabled ( flag ) ; sqlDatabaseField . setEnabled ( flag ) ; sqlUserLabel ....
125
java-test-4759
java
What does the code regenerate ?
the global output properties
public static void regenerate Global Output Properties ( ) { if ( GLOBAL CREATOR != null ) { try { GLOBAL CREATOR . execute ( BOOL , BOOL ) ; GLOBAL INPUT PROPERTIES = GLOBAL CREATOR . get Input Properties ( ) ; GLOBAL OUTPUT PROPERTIES = GLOBAL CREATOR . get Output Properties ( ) ; } catch ( Exception e ) { e . print ...
public static void regenerateGlobalOutputProperties ( ) { if ( GLOBAL_CREATOR != null ) { try { GLOBAL_CREATOR . execute ( _BOOL , _BOOL ) ; GLOBAL_INPUT_PROPERTIES = GLOBAL_CREATOR . getInputProperties ( ) ; GLOBAL_OUTPUT_PROPERTIES = GLOBAL_CREATOR . getOutputProperties ( ) ; } catch ( Exception e ) { e . printStackT...
74
java-test-4760
java
What does the code use ?
the global_input_properties
public static void regenerate Global Output Properties ( ) { if ( GLOBAL CREATOR != null ) { try { GLOBAL CREATOR . execute ( BOOL , BOOL ) ; GLOBAL INPUT PROPERTIES = GLOBAL CREATOR . get Input Properties ( ) ; GLOBAL OUTPUT PROPERTIES = GLOBAL CREATOR . get Output Properties ( ) ; } catch ( Exception e ) { e . print ...
public static void regenerateGlobalOutputProperties ( ) { if ( GLOBAL_CREATOR != null ) { try { GLOBAL_CREATOR . execute ( _BOOL , _BOOL ) ; GLOBAL_INPUT_PROPERTIES = GLOBAL_CREATOR . getInputProperties ( ) ; GLOBAL_OUTPUT_PROPERTIES = GLOBAL_CREATOR . getOutputProperties ( ) ; } catch ( Exception e ) { e . printStackT...
74
java-test-4761
java
What does this clear ?
the tagview map
private void clear Tag View Map ( ) { Text View view ; for ( final Tag tag : m Tag View Map . key Set ( ) ) { view = m Tag View Map . get ( tag ) ; view . set Tag ( null ) ; view . set On Click Listener ( null ) ; view . set Selected ( BOOL ) ; m Text View Pool . add ( view ) ; } m Tag View Map . clear ( ) ; }
private void clearTagViewMap ( ) { TextView view ; for ( final Tag tag : mTagViewMap . keySet ( ) ) { view = mTagViewMap . get ( tag ) ; view . setTag ( null ) ; view . setOnClickListener ( null ) ; view . setSelected ( _BOOL ) ; mTextViewPool . add ( view ) ; } mTagViewMap . clear ( ) ; }
89
java-test-4762
java
What does this restore to the pool ?
the textviews
private void clear Tag View Map ( ) { Text View view ; for ( final Tag tag : m Tag View Map . key Set ( ) ) { view = m Tag View Map . get ( tag ) ; view . set Tag ( null ) ; view . set On Click Listener ( null ) ; view . set Selected ( BOOL ) ; m Text View Pool . add ( view ) ; } m Tag View Map . clear ( ) ; }
private void clearTagViewMap ( ) { TextView view ; for ( final Tag tag : mTagViewMap . keySet ( ) ) { view = mTagViewMap . get ( tag ) ; view . setTag ( null ) ; view . setOnClickListener ( null ) ; view . setSelected ( _BOOL ) ; mTextViewPool . add ( view ) ; } mTagViewMap . clear ( ) ; }
89
java-test-4763
java
What does the code create ?
new account and charge
private void create New ( ) { log . config ( STRING ) ; String value = value Field . get Text ( ) ; if ( value . length ( ) == NUM ) { value Field . set Background ( Adempiere PLAF . get Field Background Error ( ) ) ; return ; } String name = name Field . get Text ( ) ; if ( name . length ( ) == NUM ) { name Field . se...
private void createNew ( ) { log . config ( STRING ) ; String value = valueField . getText ( ) ; if ( value . length ( ) == _NUM ) { valueField . setBackground ( AdempierePLAF . getFieldBackground_Error ( ) ) ; return ; } String name = nameField . getText ( ) ; if ( name . length ( ) == _NUM ) { nameField . setBackgrou...
211
java-test-4765
java
What can we configure the relativedateformat ?
to show hh : mm : ss
public void test 2033092 ( ) { Relative Date Format rdf = new Relative Date Format ( ) ; rdf . set Show Zero Days ( BOOL ) ; rdf . set Show Zero Hours ( BOOL ) ; rdf . set Minute Suffix ( STRING ) ; rdf . set Hour Suffix ( STRING ) ; rdf . set Second Suffix ( STRING ) ; Decimal Format hours Formatter = new Decimal Form...
public void test2033092 ( ) { RelativeDateFormat rdf = new RelativeDateFormat ( ) ; rdf . setShowZeroDays ( _BOOL ) ; rdf . setShowZeroHours ( _BOOL ) ; rdf . setMinuteSuffix ( STRING ) ; rdf . setHourSuffix ( STRING ) ; rdf . setSecondSuffix ( STRING ) ; DecimalFormat hoursFormatter = new DecimalFormat ( ) ; hoursForm...
259
java-test-4766
java
What can we configure to show hh : mm : ss ?
the relativedateformat
public void test 2033092 ( ) { Relative Date Format rdf = new Relative Date Format ( ) ; rdf . set Show Zero Days ( BOOL ) ; rdf . set Show Zero Hours ( BOOL ) ; rdf . set Minute Suffix ( STRING ) ; rdf . set Hour Suffix ( STRING ) ; rdf . set Second Suffix ( STRING ) ; Decimal Format hours Formatter = new Decimal Form...
public void test2033092 ( ) { RelativeDateFormat rdf = new RelativeDateFormat ( ) ; rdf . setShowZeroDays ( _BOOL ) ; rdf . setShowZeroHours ( _BOOL ) ; rdf . setMinuteSuffix ( STRING ) ; rdf . setHourSuffix ( STRING ) ; rdf . setSecondSuffix ( STRING ) ; DecimalFormat hoursFormatter = new DecimalFormat ( ) ; hoursForm...
259
java-test-4770
java
What does a proxylookup add to the global selection returned by utilities ?
the current project instance
@ Override public Lookup create Global Context ( ) { if ( proxy Lookup == null ) { logger . config ( STRING ) ; project Lookup = new Abstract Lookup ( content ) ; proxy Lookup = new Proxy Lookup ( global Context Lookup , project Lookup ) ; } return proxy Lookup ; }
@ Override public Lookup createGlobalContext ( ) { if ( proxyLookup == null ) { logger . config ( STRING ) ; projectLookup = new AbstractLookup ( content ) ; proxyLookup = new ProxyLookup ( globalContextLookup , projectLookup ) ; } return proxyLookup ; }
56
java-test-4771
java
What adds the current project instance to the global selection returned by utilities ?
a proxylookup
@ Override public Lookup create Global Context ( ) { if ( proxy Lookup == null ) { logger . config ( STRING ) ; project Lookup = new Abstract Lookup ( content ) ; proxy Lookup = new Proxy Lookup ( global Context Lookup , project Lookup ) ; } return proxy Lookup ; }
@ Override public Lookup createGlobalContext ( ) { if ( proxyLookup == null ) { logger . config ( STRING ) ; projectLookup = new AbstractLookup ( content ) ; proxyLookup = new ProxyLookup ( globalContextLookup , projectLookup ) ; } return proxyLookup ; }
56
java-test-4772
java
What will not use disabled hosts for allocating resources to tasks ?
the scheduler
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4773
java
How do the virtual machine disable ?
with the specified hostname
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4774
java
What will the scheduler not use for allocating resources to tasks ?
disabled hosts
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4775
java
What do it create if the scheduler is not yet aware of the host with that hostname ?
a new object for it
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4776
java
Will the scheduler use disabled hosts for allocating resources to tasks ?
No
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4777
java
When will your disabling of it be remembered ?
when offers that concern that host come in later . the scheduler will not use disabled hosts for allocating resources to tasks
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4778
java
In which direction do that host come later ?
in
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4779
java
When is the scheduler not is aware of the host with that hostname ?
yet
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4780
java
When do that host come in ?
later
public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; }
public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
55
java-test-4782
java
What does the code draw in current pen color ?
an oval outline
@ Override public void draw Oval ( int x , int y , int width , int height ) { set State To Local ( ) ; m printstream . println ( x Transform ( x Scale ( x ) ) + STRING + y Transform ( y Scale ( y ) ) + STRING + x Scale ( width ) + STRING + y Scale ( height ) + STRING ) ; }
@ Override public void drawOval ( int x , int y , int width , int height ) { setStateToLocal ( ) ; m_printstream . println ( xTransform ( xScale ( x ) ) + STRING + yTransform ( yScale ( y ) ) + STRING + xScale ( width ) + STRING + yScale ( height ) + STRING ) ; }
74
java-test-4783
java
What does the code apply ?
dependent channel coupling ( applied before imdct )
private void apply Dependent Coupling ( Single Channel Element target , Channel Element cce , int index ) { Individual Channel Stream ics = cce . ch [ NUM ] . ics ; int offsets [ ] = ics . swb Offset ; float dest [ ] = target . coeffs ; float src [ ] = cce . ch [ NUM ] . coeffs ; int idx = NUM ; if ( ac . oc [ NUM ] . ...
private void applyDependentCoupling ( SingleChannelElement target , ChannelElement cce , int index ) { IndividualChannelStream ics = cce . ch [ _NUM ] . ics ; int offsets [ ] = ics . swbOffset ; float dest [ ] = target . coeffs ; float src [ ] = cce . ch [ _NUM ] . coeffs ; int idx = _NUM ; if ( ac . oc [ _NUM ] . m4ac...
295
java-test-4785
java
When should a particular element be skipped ?
while scanning for tokens in an fxg document
protected void skip Element ( double version , String uri , String local Name ) { if ( local Name == null ) return ; FXG Version Handler version Handler = FXG Version Handler Registry . get Version Handler ( version ) ; if ( version Handler != null ) { Hash Set < String > skipped Elements = new Hash Set < String > ( NU...
protected void skipElement ( double version , String uri , String localName ) { if ( localName == null ) return ; FXGVersionHandler versionHandler = FXGVersionHandlerRegistry . getVersionHandler ( version ) ; if ( versionHandler != null ) { HashSet < String > skippedElements = new HashSet < String > ( _NUM ) ; skippedE...
106
java-test-4786
java
What does the code detect ?
the error code based on the error message
private int detect Error Code ( String error Message ) { final String error = error Message != null ? error Message : null ; if ( error == null ) { return NUM ; } if ( error . equals ( DAILY TRANSACTION LIMIT EXCEEDED ) ) { return NUM ; } else if ( error . equals ( INVALID API KEY ) ) { return NUM ; } else { return NUM...
private int detectErrorCode ( String errorMessage ) { final String error = errorMessage != null ? errorMessage : null ; if ( error == null ) { return _NUM ; } if ( error . equals ( DAILY_TRANSACTION_LIMIT_EXCEEDED ) ) { return _NUM ; } else if ( error . equals ( INVALID_API_KEY ) ) { return _NUM ; } else { return _NUM ...
77
java-test-4787
java
What does the code write ?
a list of coordinates in kml format
public static boolean write KML Coordinates ( Writer writer , Array List < Geo Point > coordinates ) { try { writer . write ( STRING ) ; for ( Geo Point coord : coordinates ) { writer . write ( coord . to Inverted Double String ( ) ) ; writer . write ( STRING ) ; } writer . write ( STRING ) ; return BOOL ; } catch ( IO...
public static boolean writeKMLCoordinates ( Writer writer , ArrayList < GeoPoint > coordinates ) { try { writer . write ( STRING ) ; for ( GeoPoint coord : coordinates ) { writer . write ( coord . toInvertedDoubleString ( ) ) ; writer . write ( STRING ) ; } writer . write ( STRING ) ; return _BOOL ; } catch ( IOExcepti...
90
java-test-4789
java
How do model populate ?
with method
protected void analyze Dto With Method ( Method method , Method Model method Model ) { method Model . set With ( BOOL ) ; Type field Type = method . get Generic Parameter Types ( ) [ NUM ] ; String field Name = get With Field Name ( method ) ; field Attributes . put ( field Name , field Type ) ; method Model . set Fiel...
protected void analyzeDtoWithMethod ( Method method , MethodModel methodModel ) { methodModel . setWith ( _BOOL ) ; Type fieldType = method . getGenericParameterTypes ( ) [ _NUM ] ; String fieldName = getWithFieldName ( method ) ; fieldAttributes . put ( fieldName , fieldType ) ; methodModel . setFieldName ( fieldName ...
92