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-3651
java
What does the code draw from the configured address range ?
a random host address
protected int draw Host Address ( int host Range [ ] ) { if ( host Range [ NUM ] == host Range [ NUM ] ) { return host Range [ NUM ] ; } return host Range [ NUM ] + rng . next Int ( host Range [ NUM ] - host Range [ NUM ] ) ; }
protected int drawHostAddress ( int hostRange [ ] ) { if ( hostRange [ _NUM ] == hostRange [ _NUM ] ) { return hostRange [ _NUM ] ; } return hostRange [ _NUM ] + rng . nextInt ( hostRange [ _NUM ] - hostRange [ _NUM ] ) ; }
62
java-test-3652
java
What does this represent then ?
a null element value in the array
private void read ( Input Node node , Object list , int index ) throws Exception { Class type = entry . get Type ( ) ; Object value = null ; if ( ! node . is Empty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
private void read ( InputNode node , Object list , int index ) throws Exception { Class type = entry . getType ( ) ; Object value = null ; if ( ! node . isEmpty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
67
java-test-3653
java
What contains no child xml elements ?
that parent
private void read ( Input Node node , Object list , int index ) throws Exception { Class type = entry . get Type ( ) ; Object value = null ; if ( ! node . is Empty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
private void read ( InputNode node , Object list , int index ) throws Exception { Class type = entry . getType ( ) ; Object value = null ; if ( ! node . isEmpty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
67
java-test-3654
java
What is this used ?
to read the specified node from in to the list
private void read ( Input Node node , Object list , int index ) throws Exception { Class type = entry . get Type ( ) ; Object value = null ; if ( ! node . is Empty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
private void read ( InputNode node , Object list , int index ) throws Exception { Class type = entry . getType ( ) ; Object value = null ; if ( ! node . isEmpty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
67
java-test-3655
java
What does that parent contain ?
no child xml elements
private void read ( Input Node node , Object list , int index ) throws Exception { Class type = entry . get Type ( ) ; Object value = null ; if ( ! node . is Empty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
private void read ( InputNode node , Object list , int index ) throws Exception { Class type = entry . getType ( ) ; Object value = null ; if ( ! node . isEmpty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
67
java-test-3656
java
In which direction did the specified node read to the list ?
from in
private void read ( Input Node node , Object list , int index ) throws Exception { Class type = entry . get Type ( ) ; Object value = null ; if ( ! node . is Empty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
private void read ( InputNode node , Object list , int index ) throws Exception { Class type = entry . getType ( ) ; Object value = null ; if ( ! node . isEmpty ( ) ) { value = root . read ( node , type ) ; } Array . set ( list , index , value ) ; }
67
java-test-3657
java
What is stored in zookeeper ?
json string
public static Cluster State load ( Integer version , byte [ ] bytes , Set < String > live Nodes , String znode ) { if ( bytes == null || bytes . length == NUM ) { return new Cluster State ( version , live Nodes , Collections . < String , Doc Collection > empty Map ( ) ) ; } Map < String , Object > state Map = ( Map < S...
public static ClusterState load ( Integer version , byte [ ] bytes , Set < String > liveNodes , String znode ) { if ( bytes == null || bytes . length == _NUM ) { return new ClusterState ( version , liveNodes , Collections . < String , DocCollection > emptyMap ( ) ) ; } Map < String , Object > stateMap = ( Map < String ...
203
java-test-3658
java
When do this use this to avoid deadlocks or long pauses ?
only when necessary
private < T > T run Write Fresh Connection ( Connection Supplier conns , Table Reference table Ref , Function < Db Write Table , T > runner ) { log . debug ( STRING ) ; Atomic Reference < T > result = Atomics . new Reference ( ) ; Thread write Thread = new Thread ( null ) ; write Thread . start ( ) ; try { write Thread...
private < T > T runWriteFreshConnection ( ConnectionSupplier conns , TableReference tableRef , Function < DbWriteTable , T > runner ) { log . debug ( STRING ) ; AtomicReference < T > result = Atomics . newReference ( ) ; Thread writeThread = new Thread ( null ) ; writeThread . start ( ) ; try { writeThread . join ( ) ;...
106
java-test-3659
java
How can this block getting a new connection if the pool is full to avoid deadlocks or long pauses ?
unlike most other calls
private < T > T run Write Fresh Connection ( Connection Supplier conns , Table Reference table Ref , Function < Db Write Table , T > runner ) { log . debug ( STRING ) ; Atomic Reference < T > result = Atomics . new Reference ( ) ; Thread write Thread = new Thread ( null ) ; write Thread . start ( ) ; try { write Thread...
private < T > T runWriteFreshConnection ( ConnectionSupplier conns , TableReference tableRef , Function < DbWriteTable , T > runner ) { log . debug ( STRING ) ; AtomicReference < T > result = Atomics . newReference ( ) ; Thread writeThread = new Thread ( null ) ; writeThread . start ( ) ; try { writeThread . join ( ) ;...
106
java-test-3660
java
What do we re ?
getting
private < T > T run Write Fresh Connection ( Connection Supplier conns , Table Reference table Ref , Function < Db Write Table , T > runner ) { log . debug ( STRING ) ; Atomic Reference < T > result = Atomics . new Reference ( ) ; Thread write Thread = new Thread ( null ) ; write Thread . start ( ) ; try { write Thread...
private < T > T runWriteFreshConnection ( ConnectionSupplier conns , TableReference tableRef , Function < DbWriteTable , T > runner ) { log . debug ( STRING ) ; AtomicReference < T > result = Atomics . newReference ( ) ; Thread writeThread = new Thread ( null ) ; writeThread . start ( ) ; try { writeThread . join ( ) ;...
106
java-test-3661
java
What does we don ?
reuse the connection we ' re getting from reentrantmanagedconnectionsupplier
private < T > T run Write Fresh Connection ( Connection Supplier conns , Table Reference table Ref , Function < Db Write Table , T > runner ) { log . debug ( STRING ) ; Atomic Reference < T > result = Atomics . new Reference ( ) ; Thread write Thread = new Thread ( null ) ; write Thread . start ( ) ; try { write Thread...
private < T > T runWriteFreshConnection ( ConnectionSupplier conns , TableReference tableRef , Function < DbWriteTable , T > runner ) { log . debug ( STRING ) ; AtomicReference < T > result = Atomics . newReference ( ) ; Thread writeThread = new Thread ( null ) ; writeThread . start ( ) ; try { writeThread . join ( ) ;...
106
java-test-3662
java
What does the code create ?
a new siteexporter with the given dependencies
@ Inject Site Exporter Impl ( Absolute Link Converter link Converter , Appendable Factory appendable Factory , Attachment Downloader attachment Downloader , Entry Store Factory entry Store Factory , Feed Provider feed Provider , Page Exporter page Exporter , Revisions Exporter revisions Exporter ) { this . link Convert...
@ Inject SiteExporterImpl ( AbsoluteLinkConverter linkConverter , AppendableFactory appendableFactory , AttachmentDownloader attachmentDownloader , EntryStoreFactory entryStoreFactory , FeedProvider feedProvider , PageExporter pageExporter , RevisionsExporter revisionsExporter ) { this . linkConverter = checkNotNull ( ...
139
java-test-3663
java
What does the code add ?
all the attributes to the given elements
protected void add Attributes ( Element element , Attributes attributes ) { boolean no Namespace Attributes = BOOL ; if ( element instanceof Abstract Element ) { Abstract Element base Element = ( Abstract Element ) element ; base Element . set Attributes ( attributes , namespace Stack , no Namespace Attributes ) ; } el...
protected void addAttributes ( Element element , Attributes attributes ) { boolean noNamespaceAttributes = _BOOL ; if ( element instanceof AbstractElement ) { AbstractElement baseElement = ( AbstractElement ) element ; baseElement . setAttributes ( attributes , namespaceStack , noNamespaceAttributes ) ; } else { int si...
193
java-test-3664
java
When do for calendar events cursor ?
for given month
void swap Cursor ( long month Millis , @ Nullable Event Cursor cursor , Content Observer content Observer ) { for ( int i = NUM ; i < m Months . size ( ) ; i ++ ) { if ( Calendar Utils . same Month ( month Millis , m Months . get ( i ) ) ) { swap Cursor ( i , cursor , content Observer ) ; break ; } } }
void swapCursor ( long monthMillis , @ Nullable EventCursor cursor , ContentObserver contentObserver ) { for ( int i = _NUM ; i < mMonths . size ( ) ; i ++ ) { if ( CalendarUtils . sameMonth ( monthMillis , mMonths . get ( i ) ) ) { swapCursor ( i , cursor , contentObserver ) ; break ; } } }
77
java-test-3665
java
What define sub sections of the json stream that are to be emitted as separate records ?
path expressions
void add Split ( String split Path ) { String [ ] splits = split Path . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . starts With ( STRING ) ) throw new Runtime Exception ( STRING + split ) ; if ( split . length ( ) == NUM ) continue ; add Field ( split , split , BOOL , BOOL...
void addSplit ( String splitPath ) { String [ ] splits = splitPath . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . startsWith ( STRING ) ) throw new RuntimeException ( STRING + split ) ; if ( split . length ( ) == _NUM ) continue ; addField ( split , split , _BOOL , _BOOL ) ...
84
java-test-3666
java
What are to be emitted as separate records ?
sub sections of the json stream
void add Split ( String split Path ) { String [ ] splits = split Path . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . starts With ( STRING ) ) throw new Runtime Exception ( STRING + split ) ; if ( split . length ( ) == NUM ) continue ; add Field ( split , split , BOOL , BOOL...
void addSplit ( String splitPath ) { String [ ] splits = splitPath . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . startsWith ( STRING ) ) throw new RuntimeException ( STRING + split ) ; if ( split . length ( ) == _NUM ) continue ; addField ( split , split , _BOOL , _BOOL ) ...
84
java-test-3667
java
What do path expressions define ?
sub sections of the json stream that are to be emitted as separate records
void add Split ( String split Path ) { String [ ] splits = split Path . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . starts With ( STRING ) ) throw new Runtime Exception ( STRING + split ) ; if ( split . length ( ) == NUM ) continue ; add Field ( split , split , BOOL , BOOL...
void addSplit ( String splitPath ) { String [ ] splits = splitPath . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . startsWith ( STRING ) ) throw new RuntimeException ( STRING + split ) ; if ( split . length ( ) == _NUM ) continue ; addField ( split , split , _BOOL , _BOOL ) ...
84
java-test-3668
java
What do sub sections of the json stream be ?
to be emitted as separate records
void add Split ( String split Path ) { String [ ] splits = split Path . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . starts With ( STRING ) ) throw new Runtime Exception ( STRING + split ) ; if ( split . length ( ) == NUM ) continue ; add Field ( split , split , BOOL , BOOL...
void addSplit ( String splitPath ) { String [ ] splits = splitPath . split ( STRING ) ; for ( String split : splits ) { split = split . trim ( ) ; if ( split . startsWith ( STRING ) ) throw new RuntimeException ( STRING + split ) ; if ( split . length ( ) == _NUM ) continue ; addField ( split , split , _BOOL , _BOOL ) ...
84
java-test-3671
java
What do nodes from a given set have transitively ?
a usage outside the set
private static Set < Node > remove Externally Used Nodes ( Set < Node > set ) { boolean change ; do { change = BOOL ; for ( Iterator < Node > iter = set . iterator ( ) ; iter . has Next ( ) ; ) { Node node = iter . next ( ) ; for ( Node usage : node . usages ( ) ) { if ( ! set . contains ( usage ) ) { change = BOOL ; i...
private static Set < Node > removeExternallyUsedNodes ( Set < Node > set ) { boolean change ; do { change = _BOOL ; for ( Iterator < Node > iter = set . iterator ( ) ; iter . hasNext ( ) ; ) { Node node = iter . next ( ) ; for ( Node usage : node . usages ( ) ) { if ( ! set . contains ( usage ) ) { change = _BOOL ; ite...
107
java-test-3672
java
What have a usage outside the set transitively ?
nodes from a given set
private static Set < Node > remove Externally Used Nodes ( Set < Node > set ) { boolean change ; do { change = BOOL ; for ( Iterator < Node > iter = set . iterator ( ) ; iter . has Next ( ) ; ) { Node node = iter . next ( ) ; for ( Node usage : node . usages ( ) ) { if ( ! set . contains ( usage ) ) { change = BOOL ; i...
private static Set < Node > removeExternallyUsedNodes ( Set < Node > set ) { boolean change ; do { change = _BOOL ; for ( Iterator < Node > iter = set . iterator ( ) ; iter . hasNext ( ) ; ) { Node node = iter . next ( ) ; for ( Node usage : node . usages ( ) ) { if ( ! set . contains ( usage ) ) { change = _BOOL ; ite...
107
java-test-3673
java
What does the code create ?
a new instance of quote
public Quote ( int i ) { cusip = NUM - i ; quote Id = i ; quote Id Str = Integer . to String ( quote Id ) ; dealer Code = cusip ; String [ ] arr 1 = { STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; quote Type = arr 1 [ i % NUM ] ; unique Quote Type = STRING + Integer . to String ( i ) ; String [ ] arr...
public Quote ( int i ) { cusip = _NUM - i ; quoteId = i ; quoteIdStr = Integer . toString ( quoteId ) ; dealerCode = cusip ; String [ ] arr1 = { STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; quoteType = arr1 [ i % _NUM ] ; uniqueQuoteType = STRING + Integer . toString ( i ) ; String [ ] arr2 = { STRI...
261
java-test-3674
java
By how much do the solution reduce ?
by three - tenths of a percent
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3675
java
When do 6363 add ?
235 to v and 2250
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3676
java
Where are distances measured of the projection except for the scale correction accurately ?
the foci
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3677
java
By how much do the solution rotate ?
by 76 . 597497 degrees
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3678
java
What do this alter ?
the latitude
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3679
java
What do the coefficients compute ?
the arc distances of the given point to the reference points
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3680
java
What is the x - axis the coordinate system ?
the line through the reference points
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3681
java
What uses to get the ellipsoidal earth latitude on the latitude ?
the inverse polynomial approximation
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3682
java
What do the coefficients subtract from the longitude . <p> for the rest ?
52 degrees
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3683
java
Where do the inverse polynomial approximation use to get the ellipsoidal earth latitude ?
on the latitude
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3684
java
What do the inverse polynomial approximation use on the latitude ?
to get the ellipsoidal earth latitude
public void to Lat Lon ( double v0 , double h0 ) { final double GX = NUM ; final double GY = - NUM ; final double A = NUM ; final double Q = - NUM ; final double Q2 = NUM ; final double EPSILON = NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRANSH )...
public void toLatLon ( double v0 , double h0 ) { final double GX = _NUM ; final double GY = - _NUM ; final double A = _NUM ; final double Q = - _NUM ; final double Q2 = _NUM ; final double EPSILON = _NUM ; double v = ( double ) v0 ; double h = ( double ) h0 ; double t1 = ( v - TRANSV ) / RADIUS ; double t2 = ( h - TRAN...
539
java-test-3689
java
What are they represent if there are any edges in the edgebuffer by this point ?
a concave polygon
private static boolean make Concave Polygon ( final Planet Model planet Model , final Geo Composite Polygon rval , final Mutable Boolean seen Concave , final Edge Buffer edge Buffer , final List < Geo Polygon > holes , final Geo Point test Point ) { if ( edge Buffer . size ( ) == NUM ) { return BOOL ; } if ( seen Conca...
private static boolean makeConcavePolygon ( final PlanetModel planetModel , final GeoCompositePolygon rval , final MutableBoolean seenConcave , final EdgeBuffer edgeBuffer , final List < GeoPolygon > holes , final GeoPoint testPoint ) { if ( edgeBuffer . size ( ) == _NUM ) { return _BOOL ; } if ( seenConcave . value ) ...
392
java-test-3690
java
What does the code obtain ?
a boolean glass function from the boolean glass gene pm provided
public Boolean Glass Gene Im ( Boolean Glass Gene Pm gene Pm , Parameters parameters ) { try { this . gene Pm = gene Pm ; this . glass Function = new Boolean Glass Function ( gene Pm . get Lag Graph ( ) ) ; this . initializer = new Basal Initializer ( glass Function , NUM , NUM ) ; this . history = new Gene History ( i...
public BooleanGlassGeneIm ( BooleanGlassGenePm genePm , Parameters parameters ) { try { this . genePm = genePm ; this . glassFunction = new BooleanGlassFunction ( genePm . getLagGraph ( ) ) ; this . initializer = new BasalInitializer ( glassFunction , _NUM , _NUM ) ; this . history = new GeneHistory ( initializer , gla...
106
java-test-3691
java
What does the code create ?
a glass history and a measurement simulator
public Boolean Glass Gene Im ( Boolean Glass Gene Pm gene Pm , Parameters parameters ) { try { this . gene Pm = gene Pm ; this . glass Function = new Boolean Glass Function ( gene Pm . get Lag Graph ( ) ) ; this . initializer = new Basal Initializer ( glass Function , NUM , NUM ) ; this . history = new Gene History ( i...
public BooleanGlassGeneIm ( BooleanGlassGenePm genePm , Parameters parameters ) { try { this . genePm = genePm ; this . glassFunction = new BooleanGlassFunction ( genePm . getLagGraph ( ) ) ; this . initializer = new BasalInitializer ( glassFunction , _NUM , _NUM ) ; this . history = new GeneHistory ( initializer , gla...
106
java-test-3692
java
What does the code use it ?
to create a glass history and a measurement simulator
public Boolean Glass Gene Im ( Boolean Glass Gene Pm gene Pm , Parameters parameters ) { try { this . gene Pm = gene Pm ; this . glass Function = new Boolean Glass Function ( gene Pm . get Lag Graph ( ) ) ; this . initializer = new Basal Initializer ( glass Function , NUM , NUM ) ; this . history = new Gene History ( i...
public BooleanGlassGeneIm ( BooleanGlassGenePm genePm , Parameters parameters ) { try { this . genePm = genePm ; this . glassFunction = new BooleanGlassFunction ( genePm . getLagGraph ( ) ) ; this . initializer = new BasalInitializer ( glassFunction , _NUM , _NUM ) ; this . history = new GeneHistory ( initializer , gla...
106
java-test-3693
java
For what purpose be return name of font name be lowercase ?
to avoid issues of capitalisation when used for lookup - if no name , will default to null mode is pdfdecoder
public static String [ ] read Font Names ( final Font Data font Data ) { final String [ ] font Names = new String [ NUM ] ; font Names [ NUM ] = null ; final Buffered Reader br = new Buffered Reader ( new String Reader ( new String ( font Data . get Bytes ( NUM , font Data . length ( ) ) ) ) ) ; String line = null ; wh...
public static String [ ] readFontNames ( final FontData fontData ) { final String [ ] fontNames = new String [ _NUM ] ; fontNames [ _NUM ] = null ; final BufferedReader br = new BufferedReader ( new StringReader ( new String ( fontData . getBytes ( _NUM , fontData . length ( ) ) ) ) ) ; String line = null ; while ( _BO...
285
java-test-3696
java
What does the code register if specified ?
the given ui
public static Edit Patient Dialog Fragment new Instance ( Patient patient ) { Edit Patient Dialog Fragment fragment = new Edit Patient Dialog Fragment ( ) ; Bundle args = new Bundle ( ) ; args . put Boolean ( STRING , patient == null ) ; if ( patient != null ) { args . put String ( STRING , patient . uuid ) ; args . pu...
public static EditPatientDialogFragment newInstance ( Patient patient ) { EditPatientDialogFragment fragment = new EditPatientDialogFragment ( ) ; Bundle args = new Bundle ( ) ; args . putBoolean ( STRING , patient == null ) ; if ( patient != null ) { args . putString ( STRING , patient . uuid ) ; args . putString ( ST...
147
java-test-3697
java
What does the code remove ?
the nature i d from a project ' s description
public static void remove Nature ( I Project project , String nature Id ) throws Core Exception { if ( ! project . has Nature ( nature Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < String > new Natures = new Array List < String > ( ) ; new Natures . add All ( Arrays . as...
public static void removeNature ( IProject project , String natureId ) throws CoreException { if ( ! project . hasNature ( natureId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < String > newNatures = new ArrayList < String > ( ) ; newNatures . addAll ( Arrays . asList ( descri...
123
java-test-3698
java
How can one given user interact with a 2nd given user ?
in a permission sense
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3699
java
Does this check the actual permission ( kick / ban / manage_role / . . if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) ?
No
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3700
java
What does not check the actual permission ( kick / ban / manage_role / . . if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) ?
this
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3701
java
What does this check only ?
the role - position
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3702
java
What checks the role - position only ?
this
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3703
java
What does this not check if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) if one given user can interact with a 2nd given user - in a permission sense ( kick / ban / modify perms ) ?
the actual permission ( kick / ban / manage_role / . .
public static boolean can Interact ( User issuer , User target , Guild guild ) { if ( guild . get Owner ( ) == issuer ) return BOOL ; if ( guild . get Owner ( ) == target ) return BOOL ; List < Role > issuer Roles = guild . get Roles For User ( issuer ) ; List < Role > target Roles = guild . get Roles For User ( target...
public static boolean canInteract ( User issuer , User target , Guild guild ) { if ( guild . getOwner ( ) == issuer ) return _BOOL ; if ( guild . getOwner ( ) == target ) return _BOOL ; List < Role > issuerRoles = guild . getRolesForUser ( issuer ) ; List < Role > targetRoles = guild . getRolesForUser ( target ) ; if (...
151
java-test-3704
java
What does the code write to the underlying output stream ?
a stuffed or non - stuffed byte
@ Override public void write ( int b ) throws IO Exception { if ( stack . size ( ) == NUM || standalone Markers . contains ( stack . peek ( ) . marker ) ) { write Stuffed ( b ) ; } else { write Nonstuffed ( b ) ; } }
@ Override public void write ( int b ) throws IOException { if ( stack . size ( ) == _NUM || standaloneMarkers . contains ( stack . peek ( ) . marker ) ) { writeStuffed ( b ) ; } else { writeNonstuffed ( b ) ; } }
55
java-test-3707
java
For what purpose does the code add entries from the statements collection ?
to munge wikibase rdf exports into a more queryable form
public void munge ( String entity Id , Collection < Statement > statements , Collection < String > existing Values , Collection < String > existing Refs , Change source Change ) { if ( statements . is Empty ( ) ) { return ; } Munge Operation op = new Munge Operation ( entity Id , statements , existing Values , existing...
public void munge ( String entityId , Collection < Statement > statements , Collection < String > existingValues , Collection < String > existingRefs , Change sourceChange ) { if ( statements . isEmpty ( ) ) { return ; } MungeOperation op = new MungeOperation ( entityId , statements , existingValues , existingRefs ) ; ...
120
java-test-3708
java
What is this method called ?
to kick off the dita generation process
public static void create Top Level Classes XML ( String output Dir , String templates Path , boolean lenient ) throws Compiler Exception { try { As Doc Helper as Doc Help = new As Doc Helper ( output Dir + STRING , output Dir + STRING , output Dir , output Dir + STRING + File . separator + STRING ) ; as Doc Help . cre...
public static void createTopLevelClassesXML ( String outputDir , String templatesPath , boolean lenient ) throws CompilerException { try { AsDocHelper asDocHelp = new AsDocHelper ( outputDir + STRING , outputDir + STRING , outputDir , outputDir + STRING + File . separator + STRING ) ; asDocHelp . createTopLevelClasses ...
123
java-test-3709
java
What do it use as entry point to dita generation ?
the asdochelper class
public static void create Top Level Classes XML ( String output Dir , String templates Path , boolean lenient ) throws Compiler Exception { try { As Doc Helper as Doc Help = new As Doc Helper ( output Dir + STRING , output Dir + STRING , output Dir , output Dir + STRING + File . separator + STRING ) ; as Doc Help . cre...
public static void createTopLevelClassesXML ( String outputDir , String templatesPath , boolean lenient ) throws CompilerException { try { AsDocHelper asDocHelp = new AsDocHelper ( outputDir + STRING , outputDir + STRING , outputDir , outputDir + STRING + File . separator + STRING ) ; asDocHelp . createTopLevelClasses ...
123
java-test-3712
java
What does the code get ?
a double min max cellprocessor
private static Cell Processor add Double Min Max ( Double min Value , Double max Value ) { Double min = min Value == null ? D Min Max . MIN DOUBLE : min Value ; Double max = max Value == null ? D Min Max . MAX DOUBLE : max Value ; return new D Min Max ( min , max ) ; }
private static CellProcessor addDoubleMinMax ( Double minValue , Double maxValue ) { Double min = minValue == null ? DMinMax . MIN_DOUBLE : minValue ; Double max = maxValue == null ? DMinMax . MAX_DOUBLE : maxValue ; return new DMinMax ( min , max ) ; }
66
java-test-3713
java
Till when do we rewind the stream ?
until we find the delimiter which stands at least [ maxdelimlen ] from the start search position or until we faced stream start
@ Nullable private Ignite Bi Tuple < State , Delimiter > find First Delimiter ( Igfs Input Stream stream , long start Pos ) throws IO Exception { State state ; Delimiter delim ; long cur Pos = Math . max ( NUM , start Pos - max Delim Len ) ; while ( BOOL ) { stream . seek ( cur Pos ) ; state = new State ( ) ; delim = n...
@ Nullable private IgniteBiTuple < State , Delimiter > findFirstDelimiter ( IgfsInputStream stream , long startPos ) throws IOException { State state ; Delimiter delim ; long curPos = Math . max ( _NUM , startPos - maxDelimLen ) ; while ( _BOOL ) { stream . seek ( curPos ) ; state = new State ( ) ; delim = nextDelimite...
138
java-test-3714
java
What does we face ?
stream start
@ Nullable private Ignite Bi Tuple < State , Delimiter > find First Delimiter ( Igfs Input Stream stream , long start Pos ) throws IO Exception { State state ; Delimiter delim ; long cur Pos = Math . max ( NUM , start Pos - max Delim Len ) ; while ( BOOL ) { stream . seek ( cur Pos ) ; state = new State ( ) ; delim = n...
@ Nullable private IgniteBiTuple < State , Delimiter > findFirstDelimiter ( IgfsInputStream stream , long startPos ) throws IOException { State state ; Delimiter delim ; long curPos = Math . max ( _NUM , startPos - maxDelimLen ) ; while ( _BOOL ) { stream . seek ( curPos ) ; state = new State ( ) ; delim = nextDelimite...
138
java-test-3715
java
What do we find ?
the delimiter which stands at least [ maxdelimlen ] from the start search position or until we faced stream start
@ Nullable private Ignite Bi Tuple < State , Delimiter > find First Delimiter ( Igfs Input Stream stream , long start Pos ) throws IO Exception { State state ; Delimiter delim ; long cur Pos = Math . max ( NUM , start Pos - max Delim Len ) ; while ( BOOL ) { stream . seek ( cur Pos ) ; state = new State ( ) ; delim = n...
@ Nullable private IgniteBiTuple < State , Delimiter > findFirstDelimiter ( IgfsInputStream stream , long startPos ) throws IOException { State state ; Delimiter delim ; long curPos = Math . max ( _NUM , startPos - maxDelimLen ) ; while ( _BOOL ) { stream . seek ( curPos ) ; state = new State ( ) ; delim = nextDelimite...
138
java-test-3716
java
What does the code find ?
first delimiter
@ Nullable private Ignite Bi Tuple < State , Delimiter > find First Delimiter ( Igfs Input Stream stream , long start Pos ) throws IO Exception { State state ; Delimiter delim ; long cur Pos = Math . max ( NUM , start Pos - max Delim Len ) ; while ( BOOL ) { stream . seek ( cur Pos ) ; state = new State ( ) ; delim = n...
@ Nullable private IgniteBiTuple < State , Delimiter > findFirstDelimiter ( IgfsInputStream stream , long startPos ) throws IOException { State state ; Delimiter delim ; long curPos = Math . max ( _NUM , startPos - maxDelimLen ) ; while ( _BOOL ) { stream . seek ( curPos ) ; state = new State ( ) ; delim = nextDelimite...
138
java-test-3717
java
What does the delimiter stand ?
at least [ maxdelimlen ] from the start search position
@ Nullable private Ignite Bi Tuple < State , Delimiter > find First Delimiter ( Igfs Input Stream stream , long start Pos ) throws IO Exception { State state ; Delimiter delim ; long cur Pos = Math . max ( NUM , start Pos - max Delim Len ) ; while ( BOOL ) { stream . seek ( cur Pos ) ; state = new State ( ) ; delim = n...
@ Nullable private IgniteBiTuple < State , Delimiter > findFirstDelimiter ( IgfsInputStream stream , long startPos ) throws IOException { State state ; Delimiter delim ; long curPos = Math . max ( _NUM , startPos - maxDelimLen ) ; while ( _BOOL ) { stream . seek ( curPos ) ; state = new State ( ) ; delim = nextDelimite...
138
java-test-3718
java
When did the code invoke ?
when a client has unexpectedly disconnected from this process or when this process has unexpectedly disconnected from a cacheserver
public void member Crashed ( Client Membership Event event ) { Notification notification = new Notification ( JMX Notification Type . CLIENT CRASHED , server Source , Sequence Number . next ( ) , System . current Time Millis ( ) , Management Constants . CLIENT CRASHED PREFIX + event . get Member Id ( ) ) ; server Level...
public void memberCrashed ( ClientMembershipEvent event ) { Notification notification = new Notification ( JMXNotificationType . CLIENT_CRASHED , serverSource , SequenceNumber . next ( ) , System . currentTimeMillis ( ) , ManagementConstants . CLIENT_CRASHED_PREFIX + event . getMemberId ( ) ) ; serverLevelNotifEmitter ...
81
java-test-3720
java
For what purpose does fetch data dump ?
to file in xml format
public void export Xml ( String filepath ) throws IO Exception { Output Stream output Stream = null ; try { output Stream = new File Output Stream ( filepath ) ; export Xml ( output Stream ) ; } finally { if ( output Stream != null ) { output Stream . close ( ) ; } } }
public void exportXml ( String filepath ) throws IOException { OutputStream outputStream = null ; try { outputStream = new FileOutputStream ( filepath ) ; exportXml ( outputStream ) ; } finally { if ( outputStream != null ) { outputStream . close ( ) ; } } }
60
java-test-3721
java
What do this routine transform to smi8 . 0 delimiters if the the using_smis80_delimiters context flag is enabled ?
any cimobjectpaths
public static Object [ ] normalized Write Args ( Map < String , Object > key Map , Object [ ] objects ) { int index = NUM ; Boolean using 80 Delimiters = ( Boolean ) key Map . get ( Constants . USING SMIS 80 DELIMITERS ) ; if ( using 80 Delimiters != null && using 80 Delimiters ) { for ( Object object : objects ) { if ...
public static Object [ ] normalizedWriteArgs ( Map < String , Object > keyMap , Object [ ] objects ) { int index = _NUM ; Boolean using80Delimiters = ( Boolean ) keyMap . get ( Constants . USING_SMIS80_DELIMITERS ) ; if ( using80Delimiters != null && using80Delimiters ) { for ( Object object : objects ) { if ( object i...
318
java-test-3728
java
What does this method read ?
the metadata string
protected void fetch Metadata ( ) throws IO Exception { remaining = period ; int size = in . read ( ) ; if ( size < NUM ) return ; size <<= NUM ; if ( mbuffer . length < size ) { mbuffer = null ; mbuffer = new byte [ size ] ; Log . d ( LOG , STRING + size + STRING ) ; } size = read Fully ( mbuffer , NUM , size ) ; for ...
protected void fetchMetadata ( ) throws IOException { remaining = period ; int size = in . read ( ) ; if ( size < _NUM ) return ; size <<= _NUM ; if ( mbuffer . length < size ) { mbuffer = null ; mbuffer = new byte [ size ] ; Log . d ( LOG , STRING + size + STRING ) ; } size = readFully ( mbuffer , _NUM , size ) ; for ...
172
java-test-3729
java
What is containing this point ?
the smallest intbox
public Shape Tile Box bounding box ( ) { Pla Point Int lower left = new Pla Point Int ( Math . floor ( v x ) , Math . floor ( v y ) ) ; Pla Point Int upper right = new Pla Point Int ( Math . ceil ( v x ) , Math . ceil ( v y ) ) ; return new Shape Tile Box ( lower left , upper right ) ; }
public ShapeTileBox bounding_box ( ) { PlaPointInt lower_left = new PlaPointInt ( Math . floor ( v_x ) , Math . floor ( v_y ) ) ; PlaPointInt upper_right = new PlaPointInt ( Math . ceil ( v_x ) , Math . ceil ( v_y ) ) ; return new ShapeTileBox ( lower_left , upper_right ) ; }
79
java-test-3730
java
What does the code create ?
the smallest intbox containing this point
public Shape Tile Box bounding box ( ) { Pla Point Int lower left = new Pla Point Int ( Math . floor ( v x ) , Math . floor ( v y ) ) ; Pla Point Int upper right = new Pla Point Int ( Math . ceil ( v x ) , Math . ceil ( v y ) ) ; return new Shape Tile Box ( lower left , upper right ) ; }
public ShapeTileBox bounding_box ( ) { PlaPointInt lower_left = new PlaPointInt ( Math . floor ( v_x ) , Math . floor ( v_y ) ) ; PlaPointInt upper_right = new PlaPointInt ( Math . ceil ( v_x ) , Math . ceil ( v_y ) ) ; return new ShapeTileBox ( lower_left , upper_right ) ; }
79
java-test-3731
java
What do the smallest intbox contain ?
this point
public Shape Tile Box bounding box ( ) { Pla Point Int lower left = new Pla Point Int ( Math . floor ( v x ) , Math . floor ( v y ) ) ; Pla Point Int upper right = new Pla Point Int ( Math . ceil ( v x ) , Math . ceil ( v y ) ) ; return new Shape Tile Box ( lower left , upper right ) ; }
public ShapeTileBox bounding_box ( ) { PlaPointInt lower_left = new PlaPointInt ( Math . floor ( v_x ) , Math . floor ( v_y ) ) ; PlaPointInt upper_right = new PlaPointInt ( Math . ceil ( v_x ) , Math . ceil ( v_y ) ) ; return new ShapeTileBox ( lower_left , upper_right ) ; }
79
java-test-3733
java
What does the code replace with decimal digits ?
arabic / unicode digits
@ Suppress Lint ( STRING ) public static String replace Unicode Digits ( String number ) { String Builder normalized Digits = new String Builder ( number . length ( ) ) ; for ( char c : number . to Char Array ( ) ) { int digit = Character . digit ( c , NUM ) ; if ( digit != - NUM ) { normalized Digits . append ( digit ...
@ SuppressLint ( STRING ) public static String replaceUnicodeDigits ( String number ) { StringBuilder normalizedDigits = new StringBuilder ( number . length ( ) ) ; for ( char c : number . toCharArray ( ) ) { int digit = Character . digit ( c , _NUM ) ; if ( digit != - _NUM ) { normalizedDigits . append ( digit ) ; } e...
98
java-test-3742
java
What is the magic number in the first 2 bytes used ?
to detect the compression
public static boolean is Compressed ( File file ) { Input Stream fis = null ; try { if ( file . exists ( ) ) { fis = new File Input Stream ( file ) ; int mag 1 = fis . read ( ) ; int mag 2 = fis . read ( ) ; fis . close ( ) ; return select Compression Provider ( mag 1 , mag 2 ) != null ; } } catch ( IO Exception e ) { ...
public static boolean isCompressed ( File file ) { InputStream fis = null ; try { if ( file . exists ( ) ) { fis = new FileInputStream ( file ) ; int mag1 = fis . read ( ) ; int mag2 = fis . read ( ) ; fis . close ( ) ; return selectCompressionProvider ( mag1 , mag2 ) != null ; } } catch ( IOException e ) { LOG . log (...
122
java-test-3743
java
What is used to detect the compression ?
the magic number in the first 2 bytes
public static boolean is Compressed ( File file ) { Input Stream fis = null ; try { if ( file . exists ( ) ) { fis = new File Input Stream ( file ) ; int mag 1 = fis . read ( ) ; int mag 2 = fis . read ( ) ; fis . close ( ) ; return select Compression Provider ( mag 1 , mag 2 ) != null ; } } catch ( IO Exception e ) { ...
public static boolean isCompressed ( File file ) { InputStream fis = null ; try { if ( file . exists ( ) ) { fis = new FileInputStream ( file ) ; int mag1 = fis . read ( ) ; int mag2 = fis . read ( ) ; fis . close ( ) ; return selectCompressionProvider ( mag1 , mag2 ) != null ; } } catch ( IOException e ) { LOG . log (...
122
java-test-3748
java
What did the code read ?
proxy settings from the system properties
public static System Proxy Settings create ( ) { final System Proxy Settings proxy Settings = new System Proxy Settings ( ) ; proxy Settings . http User = System . get Property ( STRING ) ; proxy Settings . http Password = System . get Property ( STRING ) ; proxy Settings . http Host = System . get Property ( STRING ) ...
public static SystemProxySettings create ( ) { final SystemProxySettings proxySettings = new SystemProxySettings ( ) ; proxySettings . httpUser = System . getProperty ( STRING ) ; proxySettings . httpPassword = System . getProperty ( STRING ) ; proxySettings . httpHost = System . getProperty ( STRING ) ; proxySettings ...
156
java-test-3750
java
Where did keys find ?
in the other featurevector but not in this one
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3751
java
What found in the other featurevector but not in this one ?
keys
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3752
java
What is not set subtraction ?
this
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3753
java
How will keys found in the other featurevector but not in this one be initialized 0f 0f ?
with a value of 0
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3754
java
When will keys found in the other featurevector but not in this one be initialized with a value of 0 ?
0f
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3755
java
What does the code subtract from this one ?
the weights in the other feature vector
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3756
java
What is this not set ?
subtraction
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3757
java
Is this set subtraction ?
No
public void subtract ( Feature Vector other ) { for ( int i = NUM ; i < dense Features . size ( ) ; i ++ ) dense Features . set ( i , get Dense ( i ) - other . get Dense ( i ) ) ; for ( String key : other . key Set ( ) ) { float old Value = ( sparse Features . contains Key ( key ) ) ? sparse Features . get ( key ) : NU...
public void subtract ( FeatureVector other ) { for ( int i = _NUM ; i < denseFeatures . size ( ) ; i ++ ) denseFeatures . set ( i , getDense ( i ) - other . getDense ( i ) ) ; for ( String key : other . keySet ( ) ) { float oldValue = ( sparseFeatures . containsKey ( key ) ) ? sparseFeatures . get ( key ) : _NUM ; spar...
109
java-test-3760
java
What pass the validation ?
many files
public static int validate Geo Json ( Input Stream is ) { int n = NUM ; Json Factory f = new Json Factory ( ) ; try { Json Parser jp = f . create Parser ( is ) ; Json Token current = jp . next Token ( ) ; if ( current != Json Token . START OBJECT ) { LOG . error ( STRING ) ; return - NUM ; } while ( jp . next Token ( )...
public static int validateGeoJson ( InputStream is ) { int n = _NUM ; JsonFactory f = new JsonFactory ( ) ; try { JsonParser jp = f . createParser ( is ) ; JsonToken current = jp . nextToken ( ) ; if ( current != JsonToken . START_OBJECT ) { LOG . error ( STRING ) ; return - _NUM ; } while ( jp . nextToken ( ) != JsonT...
219
java-test-3761
java
For what purpose does a json stream examine ?
to see if it matches the expected otpa format
public static int validate Geo Json ( Input Stream is ) { int n = NUM ; Json Factory f = new Json Factory ( ) ; try { Json Parser jp = f . create Parser ( is ) ; Json Token current = jp . next Token ( ) ; if ( current != Json Token . START OBJECT ) { LOG . error ( STRING ) ; return - NUM ; } while ( jp . next Token ( )...
public static int validateGeoJson ( InputStream is ) { int n = _NUM ; JsonFactory f = new JsonFactory ( ) ; try { JsonParser jp = f . createParser ( is ) ; JsonToken current = jp . nextToken ( ) ; if ( current != JsonToken . START_OBJECT ) { LOG . error ( STRING ) ; return - _NUM ; } while ( jp . nextToken ( ) != JsonT...
219
java-test-3764
java
What do the user profile have ?
a risk attribute with value
protected int check Risk Attribute ( ) { int ret Val = NUM ; if ( debug . message Enabled ( ) ) { debug . message ( STRING , ADAPTIVE ) ; } if ( risk Attribute Name != null && risk Attribute Value != null ) { Set < String > risk Attribute Values = null ; risk Attribute Values = get Identity Attribute Set ( risk Attribu...
protected int checkRiskAttribute ( ) { int retVal = _NUM ; if ( debug . messageEnabled ( ) ) { debug . message ( STRING , ADAPTIVE ) ; } if ( riskAttributeName != null && riskAttributeValue != null ) { Set < String > riskAttributeValues = null ; riskAttributeValues = getIdentityAttributeSet ( riskAttributeName ) ; if (...
165
java-test-3765
java
For what purpose does volatility divided by 4 have terrain below biome height ?
probably to add some flat generator to mountanious biomes
private void biome Factor ( final int x , final int z , final double add Height ) { float smooth Volatility = NUM ; float smooth Height = NUM ; float biome Weight Sum = NUM ; final Biome center Biome Config = get Center Biome ( x , z ) ; final int look Radius = this . max Smooth Radius ; for ( int next X = - look Radiu...
private void biomeFactor ( final int x , final int z , final double addHeight ) { float smoothVolatility = _NUM ; float smoothHeight = _NUM ; float biomeWeightSum = _NUM ; final Biome centerBiomeConfig = getCenterBiome ( x , z ) ; final int lookRadius = this . maxSmoothRadius ; for ( int nextX = - lookRadius ; nextX <=...
300
java-test-3766
java
Where will generator generate = 1 ?
at sea level < p > biome height
private void biome Factor ( final int x , final int z , final double add Height ) { float smooth Volatility = NUM ; float smooth Height = NUM ; float biome Weight Sum = NUM ; final Biome center Biome Config = get Center Biome ( x , z ) ; final int look Radius = this . max Smooth Radius ; for ( int next X = - look Radiu...
private void biomeFactor ( final int x , final int z , final double addHeight ) { float smoothVolatility = _NUM ; float smoothHeight = _NUM ; float biomeWeightSum = _NUM ; final Biome centerBiomeConfig = getCenterBiome ( x , z ) ; final int lookRadius = this . maxSmoothRadius ; for ( int nextX = - lookRadius ; nextX <=...
300
java-test-3767
java
What will <p> biome volatility = = 0 generate ?
flat generator < p > biome volatility = = 0 . 5
private void biome Factor ( final int x , final int z , final double add Height ) { float smooth Volatility = NUM ; float smooth Height = NUM ; float biome Weight Sum = NUM ; final Biome center Biome Config = get Center Biome ( x , z ) ; final int look Radius = this . max Smooth Radius ; for ( int next X = - look Radiu...
private void biomeFactor ( final int x , final int z , final double addHeight ) { float smoothVolatility = _NUM ; float smoothHeight = _NUM ; float biomeWeightSum = _NUM ; final Biome centerBiomeConfig = getCenterBiome ( x , z ) ; final int lookRadius = this . maxSmoothRadius ; for ( int nextX = - lookRadius ; nextX <=...
300
java-test-3768
java
What will generate at sea level <p> biome height ?
generator
private void biome Factor ( final int x , final int z , final double add Height ) { float smooth Volatility = NUM ; float smooth Height = NUM ; float biome Weight Sum = NUM ; final Biome center Biome Config = get Center Biome ( x , z ) ; final int look Radius = this . max Smooth Radius ; for ( int next X = - look Radiu...
private void biomeFactor ( final int x , final int z , final double addHeight ) { float smoothVolatility = _NUM ; float smoothHeight = _NUM ; float biomeWeightSum = _NUM ; final Biome centerBiomeConfig = getCenterBiome ( x , z ) ; final int lookRadius = this . maxSmoothRadius ; for ( int nextX = - lookRadius ; nextX <=...
300
java-test-3769
java
For what purpose did volatility divide by 4 ?
probably to add
private void biome Factor ( final int x , final int z , final double add Height ) { float smooth Volatility = NUM ; float smooth Height = NUM ; float biome Weight Sum = NUM ; final Biome center Biome Config = get Center Biome ( x , z ) ; final int look Radius = this . max Smooth Radius ; for ( int next X = - look Radiu...
private void biomeFactor ( final int x , final int z , final double addHeight ) { float smoothVolatility = _NUM ; float smoothHeight = _NUM ; float biomeWeightSum = _NUM ; final Biome centerBiomeConfig = getCenterBiome ( x , z ) ; final int lookRadius = this . maxSmoothRadius ; for ( int nextX = - lookRadius ; nextX <=...
300
java-test-3771
java
What is confing at the specified place ?
the matsim4urbansim
String write Config File V 2 ( Matsim Config Type matsim Config Type ) throws Unchecked IO Exception { try { String destination = this . dummy Path + STRING ; Buffered Writer bw = IO Utils . get Buffered Writer ( destination ) ; String xsd Path = Temp Directory Util . create Custom Temp Directory ( STRING ) ; Load File...
String writeConfigFileV2 ( MatsimConfigType matsimConfigType ) throws UncheckedIOException { try { String destination = this . dummyPath + STRING ; BufferedWriter bw = IOUtils . getBufferedWriter ( destination ) ; String xsdPath = TempDirectoryUtil . createCustomTempDirectory ( STRING ) ; LoadFile loadFile = new LoadFi...
365
java-test-3772
java
What does the code write ?
the matsim4urbansim confing at the specified place using jaxb
String write Config File V 2 ( Matsim Config Type matsim Config Type ) throws Unchecked IO Exception { try { String destination = this . dummy Path + STRING ; Buffered Writer bw = IO Utils . get Buffered Writer ( destination ) ; String xsd Path = Temp Directory Util . create Custom Temp Directory ( STRING ) ; Load File...
String writeConfigFileV2 ( MatsimConfigType matsimConfigType ) throws UncheckedIOException { try { String destination = this . dummyPath + STRING ; BufferedWriter bw = IOUtils . getBufferedWriter ( destination ) ; String xsdPath = TempDirectoryUtil . createCustomTempDirectory ( STRING ) ; LoadFile loadFile = new LoadFi...
365
java-test-3773
java
What did the code move after click on portal icon ?
recheck block connections
protected boolean check Portal Icon For Update ( Portal Icon icon , boolean moved ) { Portal portal = icon . get Portal ( ) ; if ( portal == null ) { icon . remove ( ) ; log . error ( STRING ) ; return BOOL ; } String name = portal . get Display Name ( ) ; String msg = null ; O Block from Block = portal . get From Bloc...
protected boolean checkPortalIconForUpdate ( PortalIcon icon , boolean moved ) { Portal portal = icon . getPortal ( ) ; if ( portal == null ) { icon . remove ( ) ; log . error ( STRING ) ; return _BOOL ; } String name = portal . getDisplayName ( ) ; String msg = null ; OBlock fromBlock = portal . getFromBlock ( ) ; OBl...
745
java-test-3774
java
What have events ?
which days
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3775
java
When be events marked ?
the days
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3776
java
What does the code send ?
a request for the days with events to be marked . loads " numdays " worth of days , starting at start , and fills in eventdays to express which
void load Event Days In Background ( int start Day , int num Days , boolean [ ] event Days , final Runnable ui Callback ) { Load Event Days Request request = new Load Event Days Request ( start Day , num Days , event Days , ui Callback ) ; try { m Loader Queue . put ( request ) ; } catch ( Interrupted Exception ex ) { ...
void loadEventDaysInBackground ( int startDay , int numDays , boolean [ ] eventDays , final Runnable uiCallback ) { LoadEventDaysRequest request = new LoadEventDaysRequest ( startDay , numDays , eventDays , uiCallback ) ; try { mLoaderQueue . put ( request ) ; } catch ( InterruptedException ex ) { Log . e ( STRING , ST...
82
java-test-3777
java
What inserts at that index ?
a key and value
protected void copy Down ( final int entry Index , final int count ) { final Mutable Leaf Data data = ( Mutable Leaf Data ) this . data ; final Mutable Key Buffer keys = data . keys ; final Mutable Value Buffer vals = data . vals ; System . arraycopy ( keys . keys , entry Index , keys . keys , entry Index + NUM , count...
protected void copyDown ( final int entryIndex , final int count ) { final MutableLeafData data = ( MutableLeafData ) this . data ; final MutableKeyBuffer keys = data . keys ; final MutableValueBuffer vals = data . vals ; System . arraycopy ( keys . keys , entryIndex , keys . keys , entryIndex + _NUM , count ) ; System...
291
java-test-3778
java
Where do a key and value insert ?
at that index
protected void copy Down ( final int entry Index , final int count ) { final Mutable Leaf Data data = ( Mutable Leaf Data ) this . data ; final Mutable Key Buffer keys = data . keys ; final Mutable Value Buffer vals = data . vals ; System . arraycopy ( keys . keys , entry Index , keys . keys , entry Index + NUM , count...
protected void copyDown ( final int entryIndex , final int count ) { final MutableLeafData data = ( MutableLeafData ) this . data ; final MutableKeyBuffer keys = data . keys ; final MutableValueBuffer vals = data . vals ; System . arraycopy ( keys . keys , entryIndex , keys . keys , entryIndex + _NUM , count ) ; System...
291
java-test-3779
java
How does an iso file mount ?
using ' mount ' command
public void mount ( String iso , String dir ) { String Builder buf = new String Builder ( ) ; String command = String . format ( Image Server Dialog Properties . get String ( STRING ) , STRING + iso + STRING , dir ) ; send Wait For ( command , default Timeout , prompts , buf ) ; log . debug ( buf . to String ( ) ) ; }
public void mount ( String iso , String dir ) { StringBuilder buf = new StringBuilder ( ) ; String command = String . format ( ImageServerDialogProperties . getString ( STRING ) , STRING + iso + STRING , dir ) ; sendWaitFor ( command , defaultTimeout , prompts , buf ) ; log . debug ( buf . toString ( ) ) ; }
75
java-test-3781
java
What does the code draw ?
a line with an arrow at the end
public void line Arrow ( final int x0 , final int y0 , final int x1 , final int y1 , final int sidelength , final int padding , final long line Color , final long arrow Color ) { final double dx = x1 - x0 ; final double dy = y1 - y0 ; final double angle = Math . atan 2 ( dy , dx ) ; final double d = Math . sqrt ( ( dx ...
public void lineArrow ( final int x0 , final int y0 , final int x1 , final int y1 , final int sidelength , final int padding , final long lineColor , final long arrowColor ) { final double dx = x1 - x0 ; final double dy = y1 - y0 ; final double angle = Math . atan2 ( dy , dx ) ; final double d = Math . sqrt ( ( dx * dx...
357
java-test-3782
java
What does the code instantiate ?
a new delegating resource loader
public Delegating Resource Loader ( Map < String , Resource Loader > loaders , File cache Directory ) { this . loaders = Collection Utils . is Empty ( loaders ) ? Collections . < String , Resource Loader > empty Map ( ) : Collections . unmodifiable Map ( loaders ) ; this . cache Directory = init Cache Directory ( cache...
public DelegatingResourceLoader ( Map < String , ResourceLoader > loaders , File cacheDirectory ) { this . loaders = CollectionUtils . isEmpty ( loaders ) ? Collections . < String , ResourceLoader > emptyMap ( ) : Collections . unmodifiableMap ( loaders ) ; this . cacheDirectory = initCacheDirectory ( cacheDirectory ) ...
67
java-test-3783
java
What does the code create for the given endpoint , username , password and xtremio version for the given endpoint , username , password and xtremio version ?
a new xtremio rest client
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3784
java
What will a rest client support ?
version 2 rest apis
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3785
java
For what purpose does the code create a new xtremio rest client ?
for the given endpoint , username , password and xtremio version
protected Rest Client Itf create New Rest Client ( URI endpoint , String username , String password , String version , Client client ) { Xtrem IO Client xio Client = null ; if ( version != null && ! version . is Empty ( ) && Integer . value Of ( version . split ( DOT OPERATOR ) [ NUM ] ) >= XIO MIN 4X VERSION ) { xio C...
protected RestClientItf createNewRestClient ( URI endpoint , String username , String password , String version , Client client ) { XtremIOClient xioClient = null ; if ( version != null && ! version . isEmpty ( ) && Integer . valueOf ( version . split ( DOT_OPERATOR ) [ _NUM ] ) >= XIO_MIN_4X_VERSION ) { xioClient = ne...
115
java-test-3786
java
What does the code translate to a row - major ( ie . c - type ) array ?
a column - major ( ie . fortran - type ) array
static private < E > List < E > to Java List ( List < E > values , int rows , int columns ) { List < E > result = new Array List < > ( values . size ( ) ) ; for ( int i = NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result...
static private < E > List < E > toJavaList ( List < E > values , int rows , int columns ) { List < E > result = new ArrayList < > ( values . size ( ) ) ; for ( int i = _NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result ....
106
java-test-3787
java
How do ie array ?
column - major
static private < E > List < E > to Java List ( List < E > values , int rows , int columns ) { List < E > result = new Array List < > ( values . size ( ) ) ; for ( int i = NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result...
static private < E > List < E > toJavaList ( List < E > values , int rows , int columns ) { List < E > result = new ArrayList < > ( values . size ( ) ) ; for ( int i = _NUM ; i < values . size ( ) ; i ++ ) { int row = i / columns ; int column = i % columns ; E value = values . get ( ( column * rows ) + row ) ; result ....
106
java-test-3788
java
What does the code read ?
a " flags - list " argument from the request
public Flags flag List ( ) throws Decoding Exception { Flags flags = new Flags ( ) ; next Word Char ( ) ; consume Char ( STRING ) ; Character Validator validator = new Noop Char Validator ( ) ; String next Word = consume Word ( validator ) ; while ( ! next Word . ends With ( STRING ) ) { Decoder Utils . set Flag ( next...
public Flags flagList ( ) throws DecodingException { Flags flags = new Flags ( ) ; nextWordChar ( ) ; consumeChar ( STRING ) ; CharacterValidator validator = new NoopCharValidator ( ) ; String nextWord = consumeWord ( validator ) ; while ( ! nextWord . endsWith ( STRING ) ) { DecoderUtils . setFlag ( nextWord , flags )...
153
java-test-3789
java
What does this method perform to see if we need to refresh ?
a series of quick checks on the current open file
public boolean must Refresh ( ) { try { if ( current Snapshot == null || source File . count Files ( ) != current Snapshot . size ( ) ) return BOOL ; if ( current Open File != null ) { if ( ! Files . exists ( current Open File . get Path ( ) ) ) { LOGGER . debug ( STRING , current Open File . get Path ( ) ) ; return BO...
public boolean mustRefresh ( ) { try { if ( currentSnapshot == null || sourceFile . countFiles ( ) != currentSnapshot . size ( ) ) return _BOOL ; if ( currentOpenFile != null ) { if ( ! Files . exists ( currentOpenFile . getPath ( ) ) ) { LOGGER . debug ( STRING , currentOpenFile . getPath ( ) ) ; return _BOOL ; } Basi...
254