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-11287
java
What does the code interleave ?
the bits from two input integer values
private static int interleave Bits ( int odd , int even ) { int val = NUM ; int max = Math . max ( odd , even ) ; int n = NUM ; while ( max > NUM ) { n ++ ; max >>= NUM ; } for ( int i = NUM ; i < n ; i ++ ) { int bit Mask = NUM << i ; int a = ( even & bit Mask ) > NUM ? ( NUM << ( NUM * i ) ) : NUM ; int b = ( odd & b...
private static int interleaveBits ( int odd , int even ) { int val = _NUM ; int max = Math . max ( odd , even ) ; int n = _NUM ; while ( max > _NUM ) { n ++ ; max >>= _NUM ; } for ( int i = _NUM ; i < n ; i ++ ) { int bitMask = _NUM << i ; int a = ( even & bitMask ) > _NUM ? ( _NUM << ( _NUM * i ) ) : _NUM ; int b = ( ...
134
java-test-11288
java
For what purpose did by the span s give the range ?
for the double occurence of " quotation "
private void parse Quoted Spans ( Span Manager sm , Span s , List < Span > quoted Spans , String quotation ) { final int qlen = quotation . length ( ) ; int start = sm . index Of ( quotation , s . get Start ( ) , s . get End ( ) ) ; while ( start != - NUM ) { int end = sm . index Of ( quotation , start + qlen , s . get...
private void parseQuotedSpans ( SpanManager sm , Span s , List < Span > quotedSpans , String quotation ) { final int qlen = quotation . length ( ) ; int start = sm . indexOf ( quotation , s . getStart ( ) , s . getEnd ( ) ) ; while ( start != - _NUM ) { int end = sm . indexOf ( quotation , start + qlen , s . getEnd ( )...
211
java-test-11289
java
Where does the string pad with the specified character until it reaches the desired length ?
at the left
public static String left Pad ( String s , int min Length , char filling ) { int ln = s . length ( ) ; if ( min Length <= ln ) { return s ; } String Builder res = new String Builder ( min Length ) ; int dif = min Length - ln ; for ( int i = NUM ; i < dif ; i ++ ) { res . append ( filling ) ; } res . append ( s ) ; retu...
public static String leftPad ( String s , int minLength , char filling ) { int ln = s . length ( ) ; if ( minLength <= ln ) { return s ; } StringBuilder res = new StringBuilder ( minLength ) ; int dif = minLength - ln ; for ( int i = _NUM ; i < dif ; i ++ ) { res . append ( filling ) ; } res . append ( s ) ; return res...
97
java-test-11291
java
What is is is means that the output should be left justified within the field . the default is to pad with blanks on the left . the ' # ' flag character means that the output begins with a leading 0 and the precision is increased by 1 . < p / > the field width is treated as the minimum number of characters to be printe...
format method for the o conversion character and long argument
private String print O Format ( long x ) { String sx = null ; if ( x == Long . MIN VALUE ) sx = STRING ; else if ( x < NUM ) { String t = Long . to String ( ( ~ ( - x - NUM ) ) ^ Long . MIN VALUE , NUM ) ; switch ( t . length ( ) ) { case NUM : sx = STRING + t ; break ; case NUM : sx = STRING + t ; break ; case NUM : s...
private String printOFormat ( long x ) { String sx = null ; if ( x == Long . MIN_VALUE ) sx = STRING ; else if ( x < _NUM ) { String t = Long . toString ( ( ~ ( - x - _NUM ) ) ^ Long . MIN_VALUE , _NUM ) ; switch ( t . length ( ) ) { case _NUM : sx = STRING + t ; break ; case _NUM : sx = STRING + t ; break ; case _NUM ...
326
java-test-11300
java
For what purpose does the type return ?
for a give short type and type name
public static Class to Return Type ( short xs Type , String type Name , Integer optional Fraction Digits ) { if ( type Name != null ) { Class result = type Map . get ( type Name ) ; if ( result != null ) { return result ; } } switch ( xs Type ) { case XS Simple Type . PRIMITIVE BOOLEAN : return Boolean . class ; case X...
public static Class toReturnType ( short xsType , String typeName , Integer optionalFractionDigits ) { if ( typeName != null ) { Class result = typeMap . get ( typeName ) ; if ( result != null ) { return result ; } } switch ( xsType ) { case XSSimpleType . PRIMITIVE_BOOLEAN : return Boolean . class ; case XSSimpleType ...
158
java-test-11301
java
What does the code compute ?
the cardinality ( number of set bits ) low - endian layout for the array
public static int cardinality ( long [ ] v ) { int sum = NUM ; for ( int i = NUM ; i < v . length ; i ++ ) { sum += Long . bit Count ( v [ i ] ) ; } return sum ; }
public static int cardinality ( long [ ] v ) { int sum = _NUM ; for ( int i = _NUM ; i < v . length ; i ++ ) { sum += Long . bitCount ( v [ i ] ) ; } return sum ; }
51
java-test-11303
java
What does the code update by replacing the edited entry with the new value ?
the filters for the current indicator display
@ Override public boolean perform Finish ( ) { Filter new Filter = page . get Filter ( ) ; if ( new Filter != null ) { int index = filters . index Of ( filter ) ; filters . set ( index , new Filter ) ; return BOOL ; } return BOOL ; }
@ Override public boolean performFinish ( ) { Filter newFilter = page . getFilter ( ) ; if ( newFilter != null ) { int index = filters . indexOf ( filter ) ; filters . set ( index , newFilter ) ; return _BOOL ; } return _BOOL ; }
57
java-test-11304
java
How does the code update the filters for the current indicator display ?
by replacing the edited entry with the new value
@ Override public boolean perform Finish ( ) { Filter new Filter = page . get Filter ( ) ; if ( new Filter != null ) { int index = filters . index Of ( filter ) ; filters . set ( index , new Filter ) ; return BOOL ; } return BOOL ; }
@ Override public boolean performFinish ( ) { Filter newFilter = page . getFilter ( ) ; if ( newFilter != null ) { int index = filters . indexOf ( filter ) ; filters . set ( index , newFilter ) ; return _BOOL ; } return _BOOL ; }
57
java-test-11307
java
When do the current processes be up to date ?
when the displayed chain changes
void process Displayed Chain Changed ( ) { List < Execution Unit > processes ; Operator Chain op = model . get Displayed Chain ( ) ; if ( op == null ) { processes = Collections . < Execution Unit > empty List ( ) ; } else { processes = new Linked List < > ( op . get Subprocesses ( ) ) ; } model . set Processes ( proces...
void processDisplayedChainChanged ( ) { List < ExecutionUnit > processes ; OperatorChain op = model . getDisplayedChain ( ) ; if ( op == null ) { processes = Collections . < ExecutionUnit > emptyList ( ) ; } else { processes = new LinkedList < > ( op . getSubprocesses ( ) ) ; } model . setProcesses ( processes ) ; mode...
100
java-test-11308
java
What may not match the name paramater passed in here after it has been constructed ?
the name of the clientmessenger
public Client Messenger ( final String host , final int port , final String name , final String mac , final I Object Stream Factory stream Fact , final I Connection Login login ) throws IO Exception { m socket Channel = Socket Channel . open ( ) ; m socket Channel . configure Blocking ( BOOL ) ; final Inet Socket Addre...
public ClientMessenger ( final String host , final int port , final String name , final String mac , final IObjectStreamFactory streamFact , final IConnectionLogin login ) throws IOException { m_socketChannel = SocketChannel . open ( ) ; m_socketChannel . configureBlocking ( _BOOL ) ; final InetSocketAddress remote = n...
435
java-test-11309
java
What passed here ?
the name paramater
public Client Messenger ( final String host , final int port , final String name , final String mac , final I Object Stream Factory stream Fact , final I Connection Login login ) throws IO Exception { m socket Channel = Socket Channel . open ( ) ; m socket Channel . configure Blocking ( BOOL ) ; final Inet Socket Addre...
public ClientMessenger ( final String host , final int port , final String name , final String mac , final IObjectStreamFactory streamFact , final IConnectionLogin login ) throws IOException { m_socketChannel = SocketChannel . open ( ) ; m_socketChannel . configureBlocking ( _BOOL ) ; final InetSocketAddress remote = n...
435
java-test-11310
java
What may the name of the clientmessenger not match after it has been constructed ?
the name paramater passed in here
public Client Messenger ( final String host , final int port , final String name , final String mac , final I Object Stream Factory stream Fact , final I Connection Login login ) throws IO Exception { m socket Channel = Socket Channel . open ( ) ; m socket Channel . configure Blocking ( BOOL ) ; final Inet Socket Addre...
public ClientMessenger ( final String host , final int port , final String name , final String mac , final IObjectStreamFactory streamFact , final IConnectionLogin login ) throws IOException { m_socketChannel = SocketChannel . open ( ) ; m_socketChannel . configureBlocking ( _BOOL ) ; final InetSocketAddress remote = n...
435
java-test-11311
java
When may the name of the clientmessenger not match the name paramater passed in here ?
after it has been constructed
public Client Messenger ( final String host , final int port , final String name , final String mac , final I Object Stream Factory stream Fact , final I Connection Login login ) throws IO Exception { m socket Channel = Socket Channel . open ( ) ; m socket Channel . configure Blocking ( BOOL ) ; final Inet Socket Addre...
public ClientMessenger ( final String host , final int port , final String name , final String mac , final IObjectStreamFactory streamFact , final IConnectionLogin login ) throws IOException { m_socketChannel = SocketChannel . open ( ) ; m_socketChannel . configureBlocking ( _BOOL ) ; final InetSocketAddress remote = n...
435
java-test-11312
java
In which direction does the fields particular set ?
from the properties object
@ Override protected Change configure Cache Object ( Sub Equipment sub Equipment , Properties properties ) { Sub Equipment Cache Object sub Equipment Cache Object = ( Sub Equipment Cache Object ) sub Equipment ; Equipment Configuration Update update = set Common Properties ( sub Equipment , properties ) ; String tmp St...
@ Override protected Change configureCacheObject ( SubEquipment subEquipment , Properties properties ) { SubEquipmentCacheObject subEquipmentCacheObject = ( SubEquipmentCacheObject ) subEquipment ; EquipmentConfigurationUpdate update = setCommonProperties ( subEquipment , properties ) ; String tmpStr = properties . get...
144
java-test-11314
java
For what purpose do dominators compute ?
for provided singled - headed directed graph
public Simple Dominators Finder ( Directed Graph < N > graph ) { this . graph = graph ; Simple Dominators Analysis < N > analysis = new Simple Dominators Analysis < N > ( graph ) ; { node To Dominators = new Hash Map < N , Flow Set < N > > ( graph . size ( ) * NUM + NUM , NUM ) ; for ( Iterator < N > node It = graph . ...
public SimpleDominatorsFinder ( DirectedGraph < N > graph ) { this . graph = graph ; SimpleDominatorsAnalysis < N > analysis = new SimpleDominatorsAnalysis < N > ( graph ) ; { nodeToDominators = new HashMap < N , FlowSet < N > > ( graph . size ( ) * _NUM + _NUM , _NUM ) ; for ( Iterator < N > nodeIt = graph . iterator ...
134
java-test-11315
java
How did graph head ?
singled
public Simple Dominators Finder ( Directed Graph < N > graph ) { this . graph = graph ; Simple Dominators Analysis < N > analysis = new Simple Dominators Analysis < N > ( graph ) ; { node To Dominators = new Hash Map < N , Flow Set < N > > ( graph . size ( ) * NUM + NUM , NUM ) ; for ( Iterator < N > node It = graph . ...
public SimpleDominatorsFinder ( DirectedGraph < N > graph ) { this . graph = graph ; SimpleDominatorsAnalysis < N > analysis = new SimpleDominatorsAnalysis < N > ( graph ) ; { nodeToDominators = new HashMap < N , FlowSet < N > > ( graph . size ( ) * _NUM + _NUM , _NUM ) ; for ( Iterator < N > nodeIt = graph . iterator ...
134
java-test-11317
java
What does part of the html api display ?
a form that enables a user to create a note
private void handle Html New Notebook Form ( Request And Response request And Response ) throws IO Exception , Servlet Exception { final String title = servlet Text . page Title New Notebook ( ) ; if ( add Title ( request And Response , title ) ) { return ; } final Page Wrapper page Wrapper = new Page Wrapper ( request...
private void handleHtmlNewNotebookForm ( RequestAndResponse requestAndResponse ) throws IOException , ServletException { final String title = servletText . pageTitleNewNotebook ( ) ; if ( addTitle ( requestAndResponse , title ) ) { return ; } final PageWrapper pageWrapper = new PageWrapper ( requestAndResponse , title ...
313
java-test-11318
java
What does a form enable a user ?
to create a note
private void handle Html New Notebook Form ( Request And Response request And Response ) throws IO Exception , Servlet Exception { final String title = servlet Text . page Title New Notebook ( ) ; if ( add Title ( request And Response , title ) ) { return ; } final Page Wrapper page Wrapper = new Page Wrapper ( request...
private void handleHtmlNewNotebookForm ( RequestAndResponse requestAndResponse ) throws IOException , ServletException { final String title = servletText . pageTitleNewNotebook ( ) ; if ( addTitle ( requestAndResponse , title ) ) { return ; } final PageWrapper pageWrapper = new PageWrapper ( requestAndResponse , title ...
313
java-test-11320
java
When is time specified ?
in date . gettime ( ) format
private void sched ( Timer Task task , long time , long period ) { if ( time < NUM ) throw new Illegal Argument Exception ( STRING ) ; if ( Math . abs ( period ) > ( Long . MAX VALUE > > NUM ) ) period >>= NUM ; synchronized ( queue ) { if ( ! thread . new Tasks May Be Scheduled ) throw new Illegal State Exception ( ST...
private void sched ( TimerTask task , long time , long period ) { if ( time < _NUM ) throw new IllegalArgumentException ( STRING ) ; if ( Math . abs ( period ) > ( Long . MAX_VALUE > > _NUM ) ) period >>= _NUM ; synchronized ( queue ) { if ( ! thread . newTasksMayBeScheduled ) throw new IllegalStateException ( STRING )...
155
java-test-11321
java
What does the code write to the deroutputstream ?
the distributionpoint value
public void encode ( Der Output Stream out ) throws IO Exception { Der Output Stream tagged = new Der Output Stream ( ) ; if ( ( full Name != null ) || ( relative Name != null ) ) { Der Output Stream distribution Point = new Der Output Stream ( ) ; if ( full Name != null ) { Der Output Stream der Out = new Der Output S...
public void encode ( DerOutputStream out ) throws IOException { DerOutputStream tagged = new DerOutputStream ( ) ; if ( ( fullName != null ) || ( relativeName != null ) ) { DerOutputStream distributionPoint = new DerOutputStream ( ) ; if ( fullName != null ) { DerOutputStream derOut = new DerOutputStream ( ) ; fullName...
343
java-test-11322
java
What does the code update ?
the track , start and end markers , and waypoints
public boolean update ( Google Map google Map , Array List < Polyline > paths , Trip Statistics trip Statistics , boolean reload ) { synchronized ( locations ) { boolean has Start Marker = BOOL ; int new Locations = pending Locations . drain To ( locations ) ; if ( track Path . update State ( trip Statistics ) || reloa...
public boolean update ( GoogleMap googleMap , ArrayList < Polyline > paths , TripStatistics tripStatistics , boolean reload ) { synchronized ( locations ) { boolean hasStartMarker = _BOOL ; int newLocations = pendingLocations . drainTo ( locations ) ; if ( trackPath . updateState ( tripStatistics ) || reload ) { google...
165
java-test-11323
java
What does the code add ?
all moves
private final boolean add Direction ( Array List < Move > move List , Position pos , int sq 0 , int max Steps , int delta ) { int sq = sq 0 ; boolean wtm = pos . white Move ; final int o King = ( wtm ? Piece . BKING : Piece . WKING ) ; while ( max Steps > NUM ) { sq += delta ; int p = pos . get Piece ( sq ) ; if ( p ==...
private final boolean addDirection ( ArrayList < Move > moveList , Position pos , int sq0 , int maxSteps , int delta ) { int sq = sq0 ; boolean wtm = pos . whiteMove ; final int oKing = ( wtm ? Piece . BKING : Piece . WKING ) ; while ( maxSteps > _NUM ) { sq += delta ; int p = pos . getPiece ( sq ) ; if ( p == Piece . ...
214
java-test-11324
java
What do a textual display describe ?
a single ( non - wrapper ) node , including instrumentation status : if probed , and any tags
public String display Node With Instrumentation ( Node node ) { if ( node == null ) { return STRING ; } final String Builder sb = new String Builder ( ) ; sb . append ( display Node Name ( node ) ) ; sb . append ( STRING ) ; sb . append ( display Tags ( node ) ) ; if ( node . get Parent ( ) instanceof Wrapper Node ) { ...
public String displayNodeWithInstrumentation ( Node node ) { if ( node == null ) { return STRING ; } final StringBuilder sb = new StringBuilder ( ) ; sb . append ( displayNodeName ( node ) ) ; sb . append ( STRING ) ; sb . append ( displayTags ( node ) ) ; if ( node . getParent ( ) instanceof WrapperNode ) { sb . appen...
112
java-test-11325
java
What does the code create ?
a textual display describing a single ( non - wrapper ) node , including instrumentation status : if probed , and any tags
public String display Node With Instrumentation ( Node node ) { if ( node == null ) { return STRING ; } final String Builder sb = new String Builder ( ) ; sb . append ( display Node Name ( node ) ) ; sb . append ( STRING ) ; sb . append ( display Tags ( node ) ) ; if ( node . get Parent ( ) instanceof Wrapper Node ) { ...
public String displayNodeWithInstrumentation ( Node node ) { if ( node == null ) { return STRING ; } final StringBuilder sb = new StringBuilder ( ) ; sb . append ( displayNodeName ( node ) ) ; sb . append ( STRING ) ; sb . append ( displayTags ( node ) ) ; if ( node . getParent ( ) instanceof WrapperNode ) { sb . appen...
112
java-test-11326
java
What is describing a single ( non - wrapper ) node , including instrumentation status : if probed , and any tags ?
a textual display
public String display Node With Instrumentation ( Node node ) { if ( node == null ) { return STRING ; } final String Builder sb = new String Builder ( ) ; sb . append ( display Node Name ( node ) ) ; sb . append ( STRING ) ; sb . append ( display Tags ( node ) ) ; if ( node . get Parent ( ) instanceof Wrapper Node ) { ...
public String displayNodeWithInstrumentation ( Node node ) { if ( node == null ) { return STRING ; } final StringBuilder sb = new StringBuilder ( ) ; sb . append ( displayNodeName ( node ) ) ; sb . append ( STRING ) ; sb . append ( displayTags ( node ) ) ; if ( node . getParent ( ) instanceof WrapperNode ) { sb . appen...
112
java-test-11328
java
What adds on manage resource page ?
manager button
public String add Manager ( ) throws Exception { if ( resource == null ) { return NOT FOUND ; } User u = user Manager . get ( id ) ; if ( u != null && ! potential Managers . contains ( u ) ) { add Action Error ( get Text ( STRING , new String [ ] { id } ) ) ; } else if ( u != null ) { resource . add Manager ( u ) ; add...
public String addManager ( ) throws Exception { if ( resource == null ) { return NOT_FOUND ; } User u = userManager . get ( id ) ; if ( u != null && ! potentialManagers . contains ( u ) ) { addActionError ( getText ( STRING , new String [ ] { id } ) ) ; } else if ( u != null ) { resource . addManager ( u ) ; addActionM...
128
java-test-11329
java
Where do manager button add ?
on manage resource page
public String add Manager ( ) throws Exception { if ( resource == null ) { return NOT FOUND ; } User u = user Manager . get ( id ) ; if ( u != null && ! potential Managers . contains ( u ) ) { add Action Error ( get Text ( STRING , new String [ ] { id } ) ) ; } else if ( u != null ) { resource . add Manager ( u ) ; add...
public String addManager ( ) throws Exception { if ( resource == null ) { return NOT_FOUND ; } User u = userManager . get ( id ) ; if ( u != null && ! potentialManagers . contains ( u ) ) { addActionError ( getText ( STRING , new String [ ] { id } ) ) ; } else if ( u != null ) { resource . addManager ( u ) ; addActionM...
128
java-test-11331
java
What set to be equivalent to the web project ' s webcontent directory if the given project is not already a web app ( i . e . it does not have a defined war directory ) , and it is a dynamic web project if the given project is not already a web app ( i . e . it does not have a defined war directory ) , and it is a dyna...
the war directory
public static void maybe Set Web App Properties For Dynamic Web Project ( I Project project ) throws Backing Store Exception { if ( Web App Utilities . is Web App ( project ) ) { return ; } try { if ( ! Dynamic Web Project Utilities . is Dynamic Web Project ( project ) ) { return ; } I Path web Content Folder = Dynamic...
public static void maybeSetWebAppPropertiesForDynamicWebProject ( IProject project ) throws BackingStoreException { if ( WebAppUtilities . isWebApp ( project ) ) { return ; } try { if ( ! DynamicWebProjectUtilities . isDynamicWebProject ( project ) ) { return ; } IPath webContentFolder = DynamicWebProjectUtilities . ge...
144
java-test-11332
java
What is the directory set ?
to be " input - only "
public static void maybe Set Web App Properties For Dynamic Web Project ( I Project project ) throws Backing Store Exception { if ( Web App Utilities . is Web App ( project ) ) { return ; } try { if ( ! Dynamic Web Project Utilities . is Dynamic Web Project ( project ) ) { return ; } I Path web Content Folder = Dynamic...
public static void maybeSetWebAppPropertiesForDynamicWebProject ( IProject project ) throws BackingStoreException { if ( WebAppUtilities . isWebApp ( project ) ) { return ; } try { if ( ! DynamicWebProjectUtilities . isDynamicWebProject ( project ) ) { return ; } IPath webContentFolder = DynamicWebProjectUtilities . ge...
144
java-test-11333
java
What do the war directory set if the given project is not already a web app ( i . e . it does not have a defined war directory ) , and it is a dynamic web project if the given project is not already a web app ( i . e . it does not have a defined war directory ) , and it is a dynamic web project ?
to be equivalent to the web project ' s webcontent directory
public static void maybe Set Web App Properties For Dynamic Web Project ( I Project project ) throws Backing Store Exception { if ( Web App Utilities . is Web App ( project ) ) { return ; } try { if ( ! Dynamic Web Project Utilities . is Dynamic Web Project ( project ) ) { return ; } I Path web Content Folder = Dynamic...
public static void maybeSetWebAppPropertiesForDynamicWebProject ( IProject project ) throws BackingStoreException { if ( WebAppUtilities . isWebApp ( project ) ) { return ; } try { if ( ! DynamicWebProjectUtilities . isDynamicWebProject ( project ) ) { return ; } IPath webContentFolder = DynamicWebProjectUtilities . ge...
144
java-test-11334
java
What does it not have ?
a defined war directory
public static void maybe Set Web App Properties For Dynamic Web Project ( I Project project ) throws Backing Store Exception { if ( Web App Utilities . is Web App ( project ) ) { return ; } try { if ( ! Dynamic Web Project Utilities . is Dynamic Web Project ( project ) ) { return ; } I Path web Content Folder = Dynamic...
public static void maybeSetWebAppPropertiesForDynamicWebProject ( IProject project ) throws BackingStoreException { if ( WebAppUtilities . isWebApp ( project ) ) { return ; } try { if ( ! DynamicWebProjectUtilities . isDynamicWebProject ( project ) ) { return ; } IPath webContentFolder = DynamicWebProjectUtilities . ge...
144
java-test-11337
java
What do a mock replica_host_status table imitate ?
the database used to retrieve information about the endpoints
private Connection table Setup ( String insert Entry Query ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = get New Connection ( BOOL ) ; statement = connection . create Statement ( ) ; statement . execute Query ( STRING ) ; statement . execute Query ( STRING + STRING ...
private Connection tableSetup ( String insertEntryQuery ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = getNewConnection ( _BOOL ) ; statement = connection . createStatement ( ) ; statement . executeQuery ( STRING ) ; statement . executeQuery ( STRING + STRING ) ; Res...
269
java-test-11338
java
What does the code create ?
a mock replica_host_status table to imitate the database used to retrieve information about the endpoints
private Connection table Setup ( String insert Entry Query ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = get New Connection ( BOOL ) ; statement = connection . create Statement ( ) ; statement . execute Query ( STRING ) ; statement . execute Query ( STRING + STRING ...
private Connection tableSetup ( String insertEntryQuery ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = getNewConnection ( _BOOL ) ; statement = connection . createStatement ( ) ; statement . executeQuery ( STRING ) ; statement . executeQuery ( STRING + STRING ) ; Res...
269
java-test-11339
java
What did the database use ?
to retrieve information about the endpoints
private Connection table Setup ( String insert Entry Query ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = get New Connection ( BOOL ) ; statement = connection . create Statement ( ) ; statement . execute Query ( STRING ) ; statement . execute Query ( STRING + STRING ...
private Connection tableSetup ( String insertEntryQuery ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = getNewConnection ( _BOOL ) ; statement = connection . createStatement ( ) ; statement . executeQuery ( STRING ) ; statement . executeQuery ( STRING + STRING ) ; Res...
269
java-test-11340
java
What imitates the database used to retrieve information about the endpoints ?
a mock replica_host_status table
private Connection table Setup ( String insert Entry Query ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = get New Connection ( BOOL ) ; statement = connection . create Statement ( ) ; statement . execute Query ( STRING ) ; statement . execute Query ( STRING + STRING ...
private Connection tableSetup ( String insertEntryQuery ) throws Throwable { Connection connection = null ; Statement statement = null ; try { connection = getNewConnection ( _BOOL ) ; statement = connection . createStatement ( ) ; statement . executeQuery ( STRING ) ; statement . executeQuery ( STRING + STRING ) ; Res...
269
java-test-11341
java
What does the code initialize setting int values according to the position of strings in the array ?
a int - string two - way translator
public Int String Translator ( String [ ] strings ) { list = new Array List < String > ( Arrays . as List ( strings ) ) ; map = new Hash Map < String , Integer > ( ) ; for ( int i = NUM ; i < strings . length ; i ++ ) { map . put ( strings [ i ] , i ) ; } }
public IntStringTranslator ( String [ ] strings ) { list = new ArrayList < String > ( Arrays . asList ( strings ) ) ; map = new HashMap < String , Integer > ( ) ; for ( int i = _NUM ; i < strings . length ; i ++ ) { map . put ( strings [ i ] , i ) ; } }
73
java-test-11342
java
What does the code write to a text file ?
the stack traces member - wise
private String write Stacks To File ( Map < String , byte [ ] > dumps , String file Name ) throws IO Exception { String file Path = null ; Output Stream os = null ; Print Writer ps = null ; File output File = null ; try { output File = new File ( file Name ) ; os = new File Output Stream ( output File ) ; ps = new Prin...
private String writeStacksToFile ( Map < String , byte [ ] > dumps , String fileName ) throws IOException { String filePath = null ; OutputStream os = null ; PrintWriter ps = null ; File outputFile = null ; try { outputFile = new File ( fileName ) ; os = new FileOutputStream ( outputFile ) ; ps = new PrintWriter ( os )...
249
java-test-11343
java
Till when did this method read ?
until end of file
protected String read String ( Reader reader ) { if ( reader == null ) { return null ; } String Builder buffer = new String Builder ( ) ; try { while ( BOOL ) { int c = reader . read ( ) ; if ( c == - NUM ) { break ; } buffer . append ( ( char ) c ) ; } return buffer . to String ( ) ; } catch ( Exception e ) { assert T...
protected String readString ( Reader reader ) { if ( reader == null ) { return null ; } StringBuilder buffer = new StringBuilder ( ) ; try { while ( _BOOL ) { int c = reader . read ( ) ; if ( c == - _NUM ) { break ; } buffer . append ( ( char ) c ) ; } return buffer . toString ( ) ; } catch ( Exception e ) { assertTrue...
94
java-test-11345
java
What can we hookup ?
the stats
public void hookup Stats ( Statistics Factory f , String name ) { if ( this . stats == null ) { this . stats = f . create Atomic Statistics ( type , name ) ; set Locator Count ( known locators . get ( ) ) ; set Server Count ( endpoints known . get ( ) ) ; set Locator Requests ( requests to locator . get ( ) ) ; set Loc...
public void hookupStats ( StatisticsFactory f , String name ) { if ( this . _stats == null ) { this . _stats = f . createAtomicStatistics ( type , name ) ; setLocatorCount ( known_locators . get ( ) ) ; setServerCount ( endpoints_known . get ( ) ) ; setLocatorRequests ( requests_to_locator . get ( ) ) ; setLocatorRespo...
103
java-test-11346
java
When did the code call so we can hookup the stats ?
when the ds comes online
public void hookup Stats ( Statistics Factory f , String name ) { if ( this . stats == null ) { this . stats = f . create Atomic Statistics ( type , name ) ; set Locator Count ( known locators . get ( ) ) ; set Server Count ( endpoints known . get ( ) ) ; set Locator Requests ( requests to locator . get ( ) ) ; set Loc...
public void hookupStats ( StatisticsFactory f , String name ) { if ( this . _stats == null ) { this . _stats = f . createAtomicStatistics ( type , name ) ; setLocatorCount ( known_locators . get ( ) ) ; setServerCount ( endpoints_known . get ( ) ) ; setLocatorRequests ( requests_to_locator . get ( ) ) ; setLocatorRespo...
103
java-test-11347
java
For what purpose did the code call when the ds comes online ?
so we can hookup the stats
public void hookup Stats ( Statistics Factory f , String name ) { if ( this . stats == null ) { this . stats = f . create Atomic Statistics ( type , name ) ; set Locator Count ( known locators . get ( ) ) ; set Server Count ( endpoints known . get ( ) ) ; set Locator Requests ( requests to locator . get ( ) ) ; set Loc...
public void hookupStats ( StatisticsFactory f , String name ) { if ( this . _stats == null ) { this . _stats = f . createAtomicStatistics ( type , name ) ; setLocatorCount ( known_locators . get ( ) ) ; setServerCount ( endpoints_known . get ( ) ) ; setLocatorRequests ( requests_to_locator . get ( ) ) ; setLocatorRespo...
103
java-test-11352
java
What does the code remove ?
the redis application key
@ Override public void remove Redis App Key ( Application application ) { String suffix Cloud Unit = application . get Suffix Cloud Unit IO ( ) ; Jedis Pool pool = null ; Jedis jedis = null ; try { pool = new Jedis Pool ( new Jedis Pool Config ( ) , redis Ip , Integer . parse Int ( redis Port ) , NUM ) ; jedis = pool ....
@ Override public void removeRedisAppKey ( Application application ) { String suffixCloudUnit = application . getSuffixCloudUnitIO ( ) ; JedisPool pool = null ; Jedis jedis = null ; try { pool = new JedisPool ( new JedisPoolConfig ( ) , redisIp , Integer . parseInt ( redisPort ) , _NUM ) ; jedis = pool . getResource ( ...
158
java-test-11353
java
What does the input string contain ?
prefixes from white list
private boolean contains Allowed Prefix ( String tpl ) { if ( white Prefix List . is Empty ( ) ) return BOOL ; for ( String i : white Prefix List ) { if ( tpl . starts With ( i ) ) return BOOL ; } return BOOL ; }
private boolean containsAllowedPrefix ( String tpl ) { if ( whitePrefixList . isEmpty ( ) ) return _BOOL ; for ( String i : whitePrefixList ) { if ( tpl . startsWith ( i ) ) return _BOOL ; } return _BOOL ; }
52
java-test-11354
java
What has a layout and color model that is closest to this native device configuration and thus can be optimally blitted to this device ?
this bufferedimage
public Buffered Image create Compatible Image ( int width , int height ) { Writable Raster wr = raster . create Compatible Writable Raster ( width , height ) ; return new Buffered Image ( model , wr , model . is Alpha Premultiplied ( ) , null ) ; }
public BufferedImage createCompatibleImage ( int width , int height ) { WritableRaster wr = raster . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( model , wr , model . isAlphaPremultiplied ( ) , null ) ; }
51
java-test-11355
java
What does this bufferedimage have ?
a layout and color model that is closest to this native device configuration and thus can be optimally blitted to this device
public Buffered Image create Compatible Image ( int width , int height ) { Writable Raster wr = raster . create Compatible Writable Raster ( width , height ) ; return new Buffered Image ( model , wr , model . is Alpha Premultiplied ( ) , null ) ; }
public BufferedImage createCompatibleImage ( int width , int height ) { WritableRaster wr = raster . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( model , wr , model . isAlphaPremultiplied ( ) , null ) ; }
51
java-test-11356
java
What does this method have ?
nothing to do with memory - mapping a device
public Buffered Image create Compatible Image ( int width , int height ) { Writable Raster wr = raster . create Compatible Writable Raster ( width , height ) ; return new Buffered Image ( model , wr , model . is Alpha Premultiplied ( ) , null ) ; }
public BufferedImage createCompatibleImage ( int width , int height ) { WritableRaster wr = raster . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( model , wr , model . isAlphaPremultiplied ( ) , null ) ; }
51
java-test-11357
java
How can a layout and color model be blitted to this device thus ?
optimally
public Buffered Image create Compatible Image ( int width , int height ) { Writable Raster wr = raster . create Compatible Writable Raster ( width , height ) ; return new Buffered Image ( model , wr , model . is Alpha Premultiplied ( ) , null ) ; }
public BufferedImage createCompatibleImage ( int width , int height ) { WritableRaster wr = raster . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( model , wr , model . isAlphaPremultiplied ( ) , null ) ; }
51
java-test-11358
java
What does the code generate ?
a series of encoded ints , each numerical one bigger than the one before
public void test Int Conversion And Ordering ( ) throws Exception { Bytes Ref previous = null ; Bytes Ref current = new Bytes Ref ( new byte [ Integer . BYTES ] ) ; for ( int value = - NUM ; value < NUM ; value ++ ) { Numeric Utils . int To Sortable Bytes ( value , current . bytes , current . offset ) ; if ( previous =...
public void testIntConversionAndOrdering ( ) throws Exception { BytesRef previous = null ; BytesRef current = new BytesRef ( new byte [ Integer . BYTES ] ) ; for ( int value = - _NUM ; value < _NUM ; value ++ ) { NumericUtils . intToSortableBytes ( value , current . bytes , current . offset ) ; if ( previous == null ) ...
164
java-test-11359
java
Where does the code create a lock icon ?
either in the locked or unlocked state
public Link Icon ( boolean linked ) { this . linked = linked ; link = linked ? linked Im Ic . get Image ( ) : unlinked Im Ic . get Image ( ) ; add Mouse Listener ( this ) ; Dimension dim = new Dimension ( ( int ) link . get Width ( null ) , link . get Height ( null ) ) ; set Preferred Size ( dim ) ; set Minimum Size ( ...
public LinkIcon ( boolean linked ) { this . linked = linked ; link = linked ? linkedImIc . getImage ( ) : unlinkedImIc . getImage ( ) ; addMouseListener ( this ) ; Dimension dim = new Dimension ( ( int ) link . getWidth ( null ) , link . getHeight ( null ) ) ; setPreferredSize ( dim ) ; setMinimumSize ( dim ) ; setMaxi...
107
java-test-11360
java
What does the code create either in the locked or unlocked state ?
a lock icon
public Link Icon ( boolean linked ) { this . linked = linked ; link = linked ? linked Im Ic . get Image ( ) : unlinked Im Ic . get Image ( ) ; add Mouse Listener ( this ) ; Dimension dim = new Dimension ( ( int ) link . get Width ( null ) , link . get Height ( null ) ) ; set Preferred Size ( dim ) ; set Minimum Size ( ...
public LinkIcon ( boolean linked ) { this . linked = linked ; link = linked ? linkedImIc . getImage ( ) : unlinkedImIc . getImage ( ) ; addMouseListener ( this ) ; Dimension dim = new Dimension ( ( int ) link . getWidth ( null ) , link . getHeight ( null ) ) ; setPreferredSize ( dim ) ; setMinimumSize ( dim ) ; setMaxi...
107
java-test-11361
java
What does this method create ?
a new instance of signature element
public void incorporate Signature Dom ( ) { signature Dom = document Dom . create Element NS ( XMLNS , DS SIGNATURE ) ; signature Dom . set Attribute ( XMLNS DS , XMLNS ) ; signature Dom . set Attribute ( ID , deterministic Id ) ; final Node parent Node Of Signature = get Parent Node Of Signature ( ) ; parent Node Of S...
public void incorporateSignatureDom ( ) { signatureDom = documentDom . createElementNS ( XMLNS , DS_SIGNATURE ) ; signatureDom . setAttribute ( XMLNS_DS , XMLNS ) ; signatureDom . setAttribute ( ID , deterministicId ) ; final Node parentNodeOfSignature = getParentNodeOfSignature ( ) ; parentNodeOfSignature . appendChil...
76
java-test-11362
java
For what purpose did it modify if necessary ?
to make it unique within a list of names
static String create Unique Name ( String name , List < String > names ) { String result = name ; if ( name != null && names != null && ! names . is Empty ( ) ) { boolean found = BOOL ; for ( String current Name : names ) { if ( name . equals ( current Name ) ) { found = BOOL ; break ; } } if ( found ) { result = creat...
static String createUniqueName ( String name , List < String > names ) { String result = name ; if ( name != null && names != null && ! names . isEmpty ( ) ) { boolean found = _BOOL ; for ( String currentName : names ) { if ( name . equals ( currentName ) ) { found = _BOOL ; break ; } } if ( found ) { result = createUn...
97
java-test-11364
java
What receives a request ?
any rail
public final Parallel Flux < T > do On Request ( Long Consumer on Request ) { Objects . require Non Null ( on Request , STRING ) ; return do On Signal ( this , null , null , null , null , null , null , on Request , null ) ; }
public final ParallelFlux < T > doOnRequest ( LongConsumer onRequest ) { Objects . requireNonNull ( onRequest , STRING ) ; return doOnSignal ( this , null , null , null , null , null , null , onRequest , null ) ; }
55
java-test-11365
java
How does the code call the specified consumer if any rail receives a request ?
with the request amount
public final Parallel Flux < T > do On Request ( Long Consumer on Request ) { Objects . require Non Null ( on Request , STRING ) ; return do On Signal ( this , null , null , null , null , null , null , on Request , null ) ; }
public final ParallelFlux < T > doOnRequest ( LongConsumer onRequest ) { Objects . requireNonNull ( onRequest , STRING ) ; return doOnSignal ( this , null , null , null , null , null , null , onRequest , null ) ; }
55
java-test-11366
java
What will track service ?
a specific receive load and car type
public boolean accepts Load ( String load , String type ) { if ( load Option . equals ( ALL LOADS ) ) { return BOOL ; } if ( load Option . equals ( INCLUDE LOADS ) ) { return load List . contains ( load ) || load List . contains ( type + Car Load . SPLIT CHAR + load ) ; } return ! load List . contains ( load ) && ! loa...
public boolean acceptsLoad ( String load , String type ) { if ( _loadOption . equals ( ALL_LOADS ) ) { return _BOOL ; } if ( _loadOption . equals ( INCLUDE_LOADS ) ) { return _loadList . contains ( load ) || _loadList . contains ( type + CarLoad . SPLIT_CHAR + load ) ; } return ! _loadList . contains ( load ) && ! _loa...
94
java-test-11367
java
What is this method used ?
to parse the margin and the padding
private int [ ] to Int Array ( String str ) { int [ ] ret Val = new int [ NUM ] ; str = str + STRING ; int rlen = ret Val . length ; for ( int i = NUM ; i < rlen ; i ++ ) { ret Val [ i ] = Integer . parse Int ( str . substring ( NUM , str . index Of ( STRING ) ) ) ; str = str . substring ( str . index Of ( STRING ) + N...
private int [ ] toIntArray ( String str ) { int [ ] retVal = new int [ _NUM ] ; str = str + STRING ; int rlen = retVal . length ; for ( int i = _NUM ; i < rlen ; i ++ ) { retVal [ i ] = Integer . parseInt ( str . substring ( _NUM , str . indexOf ( STRING ) ) ) ; str = str . substring ( str . indexOf ( STRING ) + _NUM ,...
109
java-test-11369
java
What does the code get as a map from column name to java ?
sql column types for the provided tables
public Map < String , Integer > types For Columns ( List < Query Source > relations ) { Hash Map < String , Integer > col Type = new Hash Map < String , Integer > ( ) ; col Type . put ( Heading . ID , Types . VARCHAR ) ; col Type . put ( Heading . TYPE , Types . VARCHAR ) ; col Type . put ( Heading . INDEX , Types . VA...
public Map < String , Integer > typesForColumns ( List < QuerySource > relations ) { HashMap < String , Integer > colType = new HashMap < String , Integer > ( ) ; colType . put ( Heading . ID , Types . VARCHAR ) ; colType . put ( Heading . TYPE , Types . VARCHAR ) ; colType . put ( Heading . INDEX , Types . VARCHAR ) ;...
138
java-test-11370
java
For what purpose does the code get sql column types for the provided tables ?
as a map from column name to java
public Map < String , Integer > types For Columns ( List < Query Source > relations ) { Hash Map < String , Integer > col Type = new Hash Map < String , Integer > ( ) ; col Type . put ( Heading . ID , Types . VARCHAR ) ; col Type . put ( Heading . TYPE , Types . VARCHAR ) ; col Type . put ( Heading . INDEX , Types . VA...
public Map < String , Integer > typesForColumns ( List < QuerySource > relations ) { HashMap < String , Integer > colType = new HashMap < String , Integer > ( ) ; colType . put ( Heading . ID , Types . VARCHAR ) ; colType . put ( Heading . TYPE , Types . VARCHAR ) ; colType . put ( Heading . INDEX , Types . VARCHAR ) ;...
138
java-test-11371
java
What does the printer emit ?
specific text
public Date Time Formatter Builder append Literal ( String text ) { if ( text == null ) { throw new Illegal Argument Exception ( STRING ) ; } switch ( text . length ( ) ) { case NUM : return this ; case NUM : return append 0 ( new Character Literal ( text . char At ( NUM ) ) ) ; default : return append 0 ( new String L...
public DateTimeFormatterBuilder appendLiteral ( String text ) { if ( text == null ) { throw new IllegalArgumentException ( STRING ) ; } switch ( text . length ( ) ) { case _NUM : return this ; case _NUM : return append0 ( new CharacterLiteral ( text . charAt ( _NUM ) ) ) ; default : return append0 ( new StringLiteral (...
81
java-test-11372
java
What does the code instruct the printer ?
to emit specific text
public Date Time Formatter Builder append Literal ( String text ) { if ( text == null ) { throw new Illegal Argument Exception ( STRING ) ; } switch ( text . length ( ) ) { case NUM : return this ; case NUM : return append 0 ( new Character Literal ( text . char At ( NUM ) ) ) ; default : return append 0 ( new String L...
public DateTimeFormatterBuilder appendLiteral ( String text ) { if ( text == null ) { throw new IllegalArgumentException ( STRING ) ; } switch ( text . length ( ) ) { case _NUM : return this ; case _NUM : return append0 ( new CharacterLiteral ( text . charAt ( _NUM ) ) ) ; default : return append0 ( new StringLiteral (...
81
java-test-11373
java
When does the first component center ?
on the second
public static void center ( Component component To Move , Component component To Center On ) { Dimension component To Center On Size = component To Center On . get Size ( ) ; component To Move . set Location ( component To Center On . get X ( ) + ( ( component To Center On Size . width - component To Move . get Width (...
public static void center ( Component componentToMove , Component componentToCenterOn ) { Dimension componentToCenterOnSize = componentToCenterOn . getSize ( ) ; componentToMove . setLocation ( componentToCenterOn . getX ( ) + ( ( componentToCenterOnSize . width - componentToMove . getWidth ( ) ) / _NUM ) , componentTo...
109
java-test-11376
java
How does relationship object create ?
by consuming provided ' data ' node
private Object parse Relationship ( Json Node relationship Data Node , Class < ? > type ) throws IO Exception , Illegal Access Exception , Instantiation Exception { if ( Validation Utils . is Relationship Parsable ( relationship Data Node ) ) { String identifier = create Identifier ( relationship Data Node ) ; if ( res...
private Object parseRelationship ( JsonNode relationshipDataNode , Class < ? > type ) throws IOException , IllegalAccessException , InstantiationException { if ( ValidationUtils . isRelationshipParsable ( relationshipDataNode ) ) { String identifier = createIdentifier ( relationshipDataNode ) ; if ( resourceCache . con...
116
java-test-11377
java
What does the code write ?
any changes that are cached in memory to disk
public synchronized void sync ( ) throws IO Exception { if ( needs Sync ) { Bit Set bit Set = allocated Nodes ; int bit Set Length = allocated Nodes . length ( ) ; if ( bit Set Length < allocated Nodes . size ( ) ) { bit Set = allocated Nodes . get ( NUM , bit Set Length ) ; } byte [ ] data = Byte Array Util . to Byte ...
public synchronized void sync ( ) throws IOException { if ( needsSync ) { BitSet bitSet = allocatedNodes ; int bitSetLength = allocatedNodes . length ( ) ; if ( bitSetLength < allocatedNodes . size ( ) ) { bitSet = allocatedNodes . get ( _NUM , bitSetLength ) ; } byte [ ] data = ByteArrayUtil . toByteArray ( bitSet ) ;...
143
java-test-11378
java
How will a new attribute filter be decoded ?
using the provided schema
public Attribute Filter ( final Collection < String > attribute Descriptions , final Schema schema ) { if ( attribute Descriptions == null || attribute Descriptions . is Empty ( ) ) { include All User Attributes = BOOL ; } else { for ( final String attribute : attribute Descriptions ) { include Attribute ( attribute , ...
public AttributeFilter ( final Collection < String > attributeDescriptions , final Schema schema ) { if ( attributeDescriptions == null || attributeDescriptions . isEmpty ( ) ) { includeAllUserAttributes = _BOOL ; } else { for ( final String attribute : attributeDescriptions ) { includeAttribute ( attribute , schema ) ...
64
java-test-11379
java
What does the code create ?
a new attribute filter which will include the attributes identified by the provided search request attribute list . attributes will be decoded using the provided schema . see the class description for details regarding the types of supported attribute description
public Attribute Filter ( final Collection < String > attribute Descriptions , final Schema schema ) { if ( attribute Descriptions == null || attribute Descriptions . is Empty ( ) ) { include All User Attributes = BOOL ; } else { for ( final String attribute : attribute Descriptions ) { include Attribute ( attribute , ...
public AttributeFilter ( final Collection < String > attributeDescriptions , final Schema schema ) { if ( attributeDescriptions == null || attributeDescriptions . isEmpty ( ) ) { includeAllUserAttributes = _BOOL ; } else { for ( final String attribute : attributeDescriptions ) { includeAttribute ( attribute , schema ) ...
64
java-test-11380
java
When are all parameters cloned ?
before being assigned to class members
Raw Message ( byte [ ] message Bytes , int message Length , Transport Address remote Address , Transport Address local Address ) { this . message Bytes = new byte [ message Length ] ; System . arraycopy ( message Bytes , NUM , this . message Bytes , NUM , message Length ) ; this . message Length = message Length ; this...
RawMessage ( byte [ ] messageBytes , int messageLength , TransportAddress remoteAddress , TransportAddress localAddress ) { this . messageBytes = new byte [ messageLength ] ; System . arraycopy ( messageBytes , _NUM , this . messageBytes , _NUM , messageLength ) ; this . messageLength = messageLength ; this . localAddr...
81
java-test-11381
java
How does a raw message construct ?
with the specified field values
Raw Message ( byte [ ] message Bytes , int message Length , Transport Address remote Address , Transport Address local Address ) { this . message Bytes = new byte [ message Length ] ; System . arraycopy ( message Bytes , NUM , this . message Bytes , NUM , message Length ) ; this . message Length = message Length ; this...
RawMessage ( byte [ ] messageBytes , int messageLength , TransportAddress remoteAddress , TransportAddress localAddress ) { this . messageBytes = new byte [ messageLength ] ; System . arraycopy ( messageBytes , _NUM , this . messageBytes , _NUM , messageLength ) ; this . messageLength = messageLength ; this . localAddr...
81
java-test-11382
java
What does this method attempt ?
to locate , load and link the class
public static java . lang . Class for Name ( java . lang . String class Name ) throws java . lang . Class Not Found Exception { class Name = class Name . replace ( STRING , STRING ) ; Class c = for Name Impl ( class Name ) ; if ( c == null ) { throw new Class Not Found Exception ( class Name ) ; } return c ; }
public static java . lang . Class forName ( java . lang . String className ) throws java . lang . ClassNotFoundException { className = className . replace ( STRING , STRING ) ; Class c = forNameImpl ( className ) ; if ( c == null ) { throw new ClassNotFoundException ( className ) ; } return c ; }
75
java-test-11386
java
What uses to add or remove channel maps from this model ?
the add / remove methods
public void broadcast ( Channel Map Event event ) { if ( event . get Event ( ) == Channel Map Event . Event . CHANGE || event . get Event ( ) == Channel Map Event . Event . RENAME ) { int index = m Channel Maps . index Of ( event . get Channel Map ( ) ) ; if ( index >= NUM ) { fire Contents Changed ( this , index , ind...
public void broadcast ( ChannelMapEvent event ) { if ( event . getEvent ( ) == ChannelMapEvent . Event . CHANGE || event . getEvent ( ) == ChannelMapEvent . Event . RENAME ) { int index = mChannelMaps . indexOf ( event . getChannelMap ( ) ) ; if ( index >= _NUM ) { fireContentsChanged ( this , index , index ) ; } } mEv...
92
java-test-11387
java
What do the add / remove methods use ?
to add or remove channel maps from this model
public void broadcast ( Channel Map Event event ) { if ( event . get Event ( ) == Channel Map Event . Event . CHANGE || event . get Event ( ) == Channel Map Event . Event . RENAME ) { int index = m Channel Maps . index Of ( event . get Channel Map ( ) ) ; if ( index >= NUM ) { fire Contents Changed ( this , index , ind...
public void broadcast ( ChannelMapEvent event ) { if ( event . getEvent ( ) == ChannelMapEvent . Event . CHANGE || event . getEvent ( ) == ChannelMapEvent . Event . RENAME ) { int index = mChannelMaps . indexOf ( event . getChannelMap ( ) ) ; if ( index >= _NUM ) { fireContentsChanged ( this , index , index ) ; } } mEv...
92
java-test-11388
java
When will an add or delete event be generated automatically ?
when using those methods
public void broadcast ( Channel Map Event event ) { if ( event . get Event ( ) == Channel Map Event . Event . CHANGE || event . get Event ( ) == Channel Map Event . Event . RENAME ) { int index = m Channel Maps . index Of ( event . get Channel Map ( ) ) ; if ( index >= NUM ) { fire Contents Changed ( this , index , ind...
public void broadcast ( ChannelMapEvent event ) { if ( event . getEvent ( ) == ChannelMapEvent . Event . CHANGE || event . getEvent ( ) == ChannelMapEvent . Event . RENAME ) { int index = mChannelMaps . indexOf ( event . getChannelMap ( ) ) ; if ( index >= _NUM ) { fireContentsChanged ( this , index , index ) ; } } mEv...
92
java-test-11389
java
What will draw the seed vertices from the seed generator ?
the sampler
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11390
java
What terminates the sampling process ?
the sampler listener
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11391
java
What will the sampler draw from the seed generator ?
the seed vertices
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11392
java
What did the sampler listener terminate ?
the sampling process
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11393
java
What does the code start ?
the snowball sampling
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11394
java
Till when do the sampler expand to all vertices indicated as responding by the response generator ?
until all reachable vertices have been sampled or the sampler listener terminates the sampling process
public void run ( G graph ) { List < Tagged Vertex > recruits = init ( graph ) ; while ( ! recruits . is Empty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < Tagged Vertex > new Recruits = new Linked List < Tagged Vertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( Tagged Verte...
public void run ( G graph ) { List < TaggedVertex > recruits = init ( graph ) ; while ( ! recruits . isEmpty ( ) ) { logger . info ( String . format ( STRING , iteration ) ) ; List < TaggedVertex > newRecruits = new LinkedList < TaggedVertex > ( ) ; Collections . shuffle ( recruits , random ) ; for ( TaggedVertex verte...
166
java-test-11395
java
What adds a record of servers ?
thsi method
@ Request Mapping ( value = { STRING , STRING } , method = Request Method . PUT ) @ Response Body public Rest Wrapper insert ( @ Model Attribute ( STRING ) @ Valid Servers server , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors ( ) ) { Binding...
@ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . PUT ) @ ResponseBody public RestWrapper insert ( @ ModelAttribute ( STRING ) @ Valid Servers server , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultError...
366
java-test-11396
java
What does thsi method add ?
a record of servers
@ Request Mapping ( value = { STRING , STRING } , method = Request Method . PUT ) @ Response Body public Rest Wrapper insert ( @ Model Attribute ( STRING ) @ Valid Servers server , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors ( ) ) { Binding...
@ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . PUT ) @ ResponseBody public RestWrapper insert ( @ ModelAttribute ( STRING ) @ Valid Servers server , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { BindingResultError...
366
java-test-11397
java
What is that the file is in a location only readable by the system process ?
first level
public static byte [ ] pattern To Hash ( List < Lock Pattern View . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = NUM ; i < size ; i ++ ) { Lock Pattern View . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cel...
public static byte [ ] patternToHash ( List < LockPatternView . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = _NUM ; i < size ; i ++ ) { LockPatternView . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cell . g...
149
java-test-11398
java
What is the code generate ?
an sha - 1 hash
public static byte [ ] pattern To Hash ( List < Lock Pattern View . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = NUM ; i < size ; i ++ ) { Lock Pattern View . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cel...
public static byte [ ] patternToHash ( List < LockPatternView . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = _NUM ; i < size ; i ++ ) { LockPatternView . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cell . g...
149
java-test-11399
java
What is first level ?
that the file is in a location only readable by the system process
public static byte [ ] pattern To Hash ( List < Lock Pattern View . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = NUM ; i < size ; i ++ ) { Lock Pattern View . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cel...
public static byte [ ] patternToHash ( List < LockPatternView . Cell > pattern ) { if ( pattern == null ) { return null ; } else { int size = pattern . size ( ) ; byte [ ] res = new byte [ size ] ; for ( int i = _NUM ; i < size ; i ++ ) { LockPatternView . Cell cell = pattern . get ( i ) ; res [ i ] = ( byte ) cell . g...
149
java-test-11401
java
What does the code remove ?
the column represented by the index
public void remove Column ( final int col Index ) { final CSV Info info = get Info ( ) ; if ( info . header ) { final Array List < String > cols = new Array List < > ( Arrays . as List ( info . headers ) ) ; cols . remove ( col Index ) ; info . headers = cols . to Array ( new String [ cols . size ( ) ] ) ; } info . col...
public void removeColumn ( final int colIndex ) { final CSVInfo info = getInfo ( ) ; if ( info . header ) { final ArrayList < String > cols = new ArrayList < > ( Arrays . asList ( info . headers ) ) ; cols . remove ( colIndex ) ; info . headers = cols . toArray ( new String [ cols . size ( ) ] ) ; } info . cols -- ; fo...
128
java-test-11402
java
What does it check ?
whether the client charge transaction is reversed or not
private void is Reversed Transaction ( String client Id , String transaction Id ) { final Boolean is Reversed = Client Helper . get Client Transactions ( this . request Spec , this . response Spec , client Id . to String ( ) , transaction Id ) ; Assert . assert True ( is Reversed ) ; }
private void isReversedTransaction ( String clientId , String transactionId ) { final Boolean isReversed = ClientHelper . getClientTransactions ( this . requestSpec , this . responseSpec , clientId . toString ( ) , transactionId ) ; Assert . assertTrue ( isReversed ) ; }
59
java-test-11403
java
What does the code create ?
a new ( parent ) node
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11404
java
For what purpose does the code group them into runs of size m ( the node capacity ) ?
for each run
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11405
java
How does the code order the items first ?
by the y - values of the midpoints
protected List create Parent Boundables ( List child Boundables , int new Level ) { Assert . is True ( ! child Boundables . is Empty ( ) ) ; int min Leaf Count = ( int ) Math . ceil ( ( child Boundables . size ( ) / ( double ) get Node Capacity ( ) ) ) ; Array List sorted Child Boundables = new Array List ( child Bound...
protected List createParentBoundables ( List childBoundables , int newLevel ) { Assert . isTrue ( ! childBoundables . isEmpty ( ) ) ; int minLeafCount = ( int ) Math . ceil ( ( childBoundables . size ( ) / ( double ) getNodeCapacity ( ) ) ) ; ArrayList sortedChildBoundables = new ArrayList ( childBoundables ) ; Collect...
134
java-test-11407
java
How does a string s wrap ?
by inserting cr - lf instead of the first space after the nth columns
public static String wrap ( String s , int n ) { String Buffer b = new String Buffer ( ) ; boolean wrap Pending = BOOL ; for ( int i = NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == NUM && i > NUM ) { wrap Pending = BOOL ; } char c = s . char At ( i ) ; if ( wrap Pending && c == STRING ) { b . append ( STRING ) ; wr...
public static String wrap ( String s , int n ) { StringBuffer b = new StringBuffer ( ) ; boolean wrapPending = _BOOL ; for ( int i = _NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == _NUM && i > _NUM ) { wrapPending = _BOOL ; } char c = s . charAt ( i ) ; if ( wrapPending && c == STRING ) { b . append ( STRING ) ; wra...
120
java-test-11408
java
When do cr - lf instead of the first space insert ?
after the nth columns
public static String wrap ( String s , int n ) { String Buffer b = new String Buffer ( ) ; boolean wrap Pending = BOOL ; for ( int i = NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == NUM && i > NUM ) { wrap Pending = BOOL ; } char c = s . char At ( i ) ; if ( wrap Pending && c == STRING ) { b . append ( STRING ) ; wr...
public static String wrap ( String s , int n ) { StringBuffer b = new StringBuffer ( ) ; boolean wrapPending = _BOOL ; for ( int i = _NUM ; i < s . length ( ) ; i ++ ) { if ( i % n == _NUM && i > _NUM ) { wrapPending = _BOOL ; } char c = s . charAt ( i ) ; if ( wrapPending && c == STRING ) { b . append ( STRING ) ; wra...
120
java-test-11409
java
What does the code fetch ?
a set of correctly signed and normalized collect data structures
public Hash Set < Collect Data > select Collects ( int regency , int cid ) { Hash Set < Signed Object > c = collects . get ( regency ) ; if ( c == null ) return null ; return normalize Collects ( get Signed Collects ( c ) , cid , regency ) ; }
public HashSet < CollectData > selectCollects ( int regency , int cid ) { HashSet < SignedObject > c = collects . get ( regency ) ; if ( c == null ) return null ; return normalizeCollects ( getSignedCollects ( c ) , cid , regency ) ; }
58
java-test-11412
java
What does the code remove from text created by double printing of text and drowned items where text inside other text ?
shadows
private void cleanup Shadows And Drowned Objects ( final boolean avoid Spaces ) { final int [ ] items = get Unused Fragments ( ) ; final int count = items . length ; int c , n ; String separator ; float diff ; for ( int p = NUM ; p < count ; p ++ ) { c = items [ p ] ; if ( ! is Used [ c ] ) { float mid X = ( f x1 [ c ]...
private void cleanupShadowsAndDrownedObjects ( final boolean avoidSpaces ) { final int [ ] items = getUnusedFragments ( ) ; final int count = items . length ; int c , n ; String separator ; float diff ; for ( int p = _NUM ; p < count ; p ++ ) { c = items [ p ] ; if ( ! isUsed [ c ] ) { float midX = ( f_x1 [ c ] + f_x2 ...
629
java-test-11413
java
What do this instance decrement ?
usage count
public void release ( ) { while ( BOOL ) { int cnt = active Cnt . get ( ) ; if ( cnt == NUM ) { if ( log . is Debug Enabled ( ) ) log . debug ( STRING + this ) ; return ; } if ( active Cnt . compare And Set ( cnt , cnt - NUM ) ) { if ( cnt == NUM ) { ipc Cache . remove ( endpoint Addr , this ) ; if ( log . is Debug Ena...
public void release ( ) { while ( _BOOL ) { int cnt = activeCnt . get ( ) ; if ( cnt == _NUM ) { if ( log . isDebugEnabled ( ) ) log . debug ( STRING + this ) ; return ; } if ( activeCnt . compareAndSet ( cnt , cnt - _NUM ) ) { if ( cnt == _NUM ) { ipcCache . remove ( endpointAddr , this ) ; if ( log . isDebugEnabled (...
134
java-test-11414
java
What does entity have ?
dual role
private boolean is Dual Role ( Entity Descriptor Element entity Descriptor ) { boolean dual = BOOL ; if ( entity Descriptor != null ) { if ( ( SAML 2 Meta Utils . get SPSSO Descriptor ( entity Descriptor ) != null ) && ( SAML 2 Meta Utils . get IDPSSO Descriptor ( entity Descriptor ) != null ) ) { dual = BOOL ; } } ret...
private boolean isDualRole ( EntityDescriptorElement entityDescriptor ) { boolean dual = _BOOL ; if ( entityDescriptor != null ) { if ( ( SAML2MetaUtils . getSPSSODescriptor ( entityDescriptor ) != null ) && ( SAML2MetaUtils . getIDPSSODescriptor ( entityDescriptor ) != null ) ) { dual = _BOOL ; } } return dual ; }
73
java-test-11415
java
What does the code create ?
a escaped charsequence
public Unescaped Char Sequence ( char [ ] chars , boolean [ ] was Escaped , int offset , int length ) { this . chars = new char [ length ] ; this . was Escaped = new boolean [ length ] ; System . arraycopy ( chars , offset , this . chars , NUM , length ) ; System . arraycopy ( was Escaped , offset , this . was Escaped ...
public UnescapedCharSequence ( char [ ] chars , boolean [ ] wasEscaped , int offset , int length ) { this . chars = new char [ length ] ; this . wasEscaped = new boolean [ length ] ; System . arraycopy ( chars , offset , this . chars , _NUM , length ) ; System . arraycopy ( wasEscaped , offset , this . wasEscaped , _NU...
81
java-test-11416
java
What does the code apply ?
the configured sync mappings
private void apply Mappings ( Context context , Json Value source , Json Value old Source , Json Value target , Json Value existing Target , String link Qualifier , Reconciliation Context recon Context ) throws Synchronization Exception { Event Entry measure = Publisher . start ( object Mapping . get Object Mapping Eve...
private void applyMappings ( Context context , JsonValue source , JsonValue oldSource , JsonValue target , JsonValue existingTarget , String linkQualifier , ReconciliationContext reconContext ) throws SynchronizationException { EventEntry measure = Publisher . start ( objectMapping . getObjectMappingEventName ( ) , sou...
186
java-test-11417
java
What does the code create ?
a new instance of a builder with the data of the passed builder
protected Builder ( @ Nonnull final Builder builder ) { Check . not Null ( builder , STRING ) ; family = builder . family ; icon = builder . icon ; id = builder . id ; info Url = builder . info Url ; name = builder . name ; patterns . add All ( builder . patterns ) ; producer = builder . producer ; producer Url = build...
protected Builder ( @ Nonnull final Builder builder ) { Check . notNull ( builder , STRING ) ; family = builder . family ; icon = builder . icon ; id = builder . id ; infoUrl = builder . infoUrl ; name = builder . name ; patterns . addAll ( builder . patterns ) ; producer = builder . producer ; producerUrl = builder . ...
83
java-test-11424
java
In which direction does entity firing data load in the net command ?
from the data
@ Suppress Warnings ( STRING ) protected void receive Attack ( Packet c ) { List < Entity Action > vector = ( List < Entity Action > ) c . get Object ( NUM ) ; int charge = c . get Int Value ( NUM ) ; boolean add Action = BOOL ; for ( Entity Action ea : vector ) { int entity Id = ea . get Entity Id ( ) ; if ( ( ea inst...
@ SuppressWarnings ( STRING ) protected void receiveAttack ( Packet c ) { List < EntityAction > vector = ( List < EntityAction > ) c . getObject ( _NUM ) ; int charge = c . getIntValue ( _NUM ) ; boolean addAction = _BOOL ; for ( EntityAction ea : vector ) { int entityId = ea . getEntityId ( ) ; if ( ( ea instanceof To...
334
java-test-11425
java
Where do both this item and p_other have a shape ?
the last layer
public final int last common layer ( Brd Item p other ) { int max first layer = Math . max ( first layer ( ) , p other . first layer ( ) ) ; int min last layer = Math . min ( last layer ( ) , p other . last layer ( ) ) ; if ( max first layer > min last layer ) return - NUM ; return min last layer ; }
public final int last_common_layer ( BrdItem p_other ) { int max_first_layer = Math . max ( first_layer ( ) , p_other . first_layer ( ) ) ; int min_last_layer = Math . min ( last_layer ( ) , p_other . last_layer ( ) ) ; if ( max_first_layer > min_last_layer ) return - _NUM ; return min_last_layer ; }
79
java-test-11426
java
What does the code return ?
the last layer , where both this item and p_other have a shape . returns - 1 , if such a layer does not exisr
public final int last common layer ( Brd Item p other ) { int max first layer = Math . max ( first layer ( ) , p other . first layer ( ) ) ; int min last layer = Math . min ( last layer ( ) , p other . last layer ( ) ) ; if ( max first layer > min last layer ) return - NUM ; return min last layer ; }
public final int last_common_layer ( BrdItem p_other ) { int max_first_layer = Math . max ( first_layer ( ) , p_other . first_layer ( ) ) ; int min_last_layer = Math . min ( last_layer ( ) , p_other . last_layer ( ) ) ; if ( max_first_layer > min_last_layer ) return - _NUM ; return min_last_layer ; }
79
java-test-11428
java
How does the code compute the sign of the determinant of the 2x2 matrix ?
with the given entries
public static int sign Of Det 2 x 2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = NUM ; sign = NUM ; if ( ( x1 == NUM ) || ( y2 == NUM ) ) { if ( ( y1 == NUM ) || ( x2 == NUM ) ) { return NUM ; } else if ( y1 > NUM ) { if ( x2 > NUM ) { return - sign ; } else { ret...
public static int signOfDet2x2 ( double x1 , double y1 , double x2 , double y2 ) { int sign ; double swap ; double k ; long count = _NUM ; sign = _NUM ; if ( ( x1 == _NUM ) || ( y2 == _NUM ) ) { if ( ( y1 == _NUM ) || ( x2 == _NUM ) ) { return _NUM ; } else if ( y1 > _NUM ) { if ( x2 > _NUM ) { return - sign ; } else {...
825