id
stringlengths
11
15
language
stringclasses
1 value
question
stringlengths
13
844
answer
stringlengths
1
900
code
stringlengths
162
27.4k
code_original
stringlengths
162
26k
code_word_count
int64
51
5.96k
java-test-11259
java
What need action ?
which tiles
public void grab Tiles ( Action builder ) { if ( bounds List == null ) { bounds List = new Array List < double [ ] > ( ) ; bounds List . add ( new double [ ] { NUM , - NUM , - NUM , NUM } ) ; } for ( int i = NUM ; i < ZOOM LEVELS ; i ++ ) { if ( zoom Levels == null ) { if ( i > NUM ) continue ; } else { if ( ! zoom Lev...
public void grabTiles ( Action builder ) { if ( boundsList == null ) { boundsList = new ArrayList < double [ ] > ( ) ; boundsList . add ( new double [ ] { _NUM , - _NUM , - _NUM , _NUM } ) ; } for ( int i = _NUM ; i < ZOOM_LEVELS ; i ++ ) { if ( zoomLevels == null ) { if ( i > _NUM ) continue ; } else { if ( ! zoomLeve...
320
java-test-11260
java
What does the code create ?
a pretty string
public String to String ( ) { String Buffer buf = new String Buffer ( ) ; String indent = STRING ; buf . append ( indent + STRING + Integer . to Hex String ( get Version ( ) ) + STRING ) ; buf . append ( indent + STRING + get Ascent ( ) + STRING ) ; buf . append ( indent + STRING + get Descent ( ) + STRING ) ; buf . ap...
public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; String indent = STRING ; buf . append ( indent + STRING + Integer . toHexString ( getVersion ( ) ) + STRING ) ; buf . append ( indent + STRING + getAscent ( ) + STRING ) ; buf . append ( indent + STRING + getDescent ( ) + STRING ) ; buf . append ( i...
268
java-test-11261
java
What unloads it ?
owns an entity whose i d is in the passed array
public Unload Stranded Turn ( int [ ] ids ) { super ( I Player . PLAYER NONE ) ; if ( null == ids ) { throw new Illegal Argument Exception ( STRING ) ; } if ( NUM == ids . length ) { throw new Illegal Argument Exception ( STRING ) ; } entity Ids = new int [ ids . length ] ; System . arraycopy ( ids , NUM , entity Ids ,...
public UnloadStrandedTurn ( int [ ] ids ) { super ( IPlayer . PLAYER_NONE ) ; if ( null == ids ) { throw new IllegalArgumentException ( STRING ) ; } if ( _NUM == ids . length ) { throw new IllegalArgumentException ( STRING ) ; } entityIds = new int [ ids . length ] ; System . arraycopy ( ids , _NUM , entityIds , _NUM ,...
86
java-test-11262
java
What owns an entity whose i d is in the passed array ?
any player
public Unload Stranded Turn ( int [ ] ids ) { super ( I Player . PLAYER NONE ) ; if ( null == ids ) { throw new Illegal Argument Exception ( STRING ) ; } if ( NUM == ids . length ) { throw new Illegal Argument Exception ( STRING ) ; } entity Ids = new int [ ids . length ] ; System . arraycopy ( ids , NUM , entity Ids ,...
public UnloadStrandedTurn ( int [ ] ids ) { super ( IPlayer . PLAYER_NONE ) ; if ( null == ids ) { throw new IllegalArgumentException ( STRING ) ; } if ( _NUM == ids . length ) { throw new IllegalArgumentException ( STRING ) ; } entityIds = new int [ ids . length ] ; System . arraycopy ( ids , _NUM , entityIds , _NUM ,...
86
java-test-11263
java
What does any player own ?
an entity whose i d is in the passed array
public Unload Stranded Turn ( int [ ] ids ) { super ( I Player . PLAYER NONE ) ; if ( null == ids ) { throw new Illegal Argument Exception ( STRING ) ; } if ( NUM == ids . length ) { throw new Illegal Argument Exception ( STRING ) ; } entity Ids = new int [ ids . length ] ; System . arraycopy ( ids , NUM , entity Ids ,...
public UnloadStrandedTurn ( int [ ] ids ) { super ( IPlayer . PLAYER_NONE ) ; if ( null == ids ) { throw new IllegalArgumentException ( STRING ) ; } if ( _NUM == ids . length ) { throw new IllegalArgumentException ( STRING ) ; } entityIds = new int [ ids . length ] ; System . arraycopy ( ids , _NUM , entityIds , _NUM ,...
86
java-test-11264
java
What does random generator use always ?
the same seed
double [ ] create Real Data ( final int n ) { final Random random = new Random ( SEED ) ; final double [ ] data = new double [ n ] ; for ( int i = NUM ; i < n ; i ++ ) { data [ i ] = NUM * random . next Double ( ) - NUM ; } return data ; }
double [ ] createRealData ( final int n ) { final Random random = new Random ( SEED ) ; final double [ ] data = new double [ n ] ; for ( int i = _NUM ; i < n ; i ++ ) { data [ i ] = _NUM * random . nextDouble ( ) - _NUM ; } return data ; }
70
java-test-11265
java
What uses the same seed always ?
random generator
double [ ] create Real Data ( final int n ) { final Random random = new Random ( SEED ) ; final double [ ] data = new double [ n ] ; for ( int i = NUM ; i < n ; i ++ ) { data [ i ] = NUM * random . next Double ( ) - NUM ; } return data ; }
double [ ] createRealData ( final int n ) { final Random random = new Random ( SEED ) ; final double [ ] data = new double [ n ] ; for ( int i = _NUM ; i < n ; i ++ ) { data [ i ] = _NUM * random . nextDouble ( ) - _NUM ; } return data ; }
70
java-test-11267
java
How does the code write the given image in the given file ?
using the ppm data format
public static void write Image To Ppm ( int [ ] [ ] image , String ppm File Name ) throws IO Exception { try ( Buffered Writer ppm Out = new Buffered Writer ( new File Writer ( ppm File Name ) ) ) { int rows = image . length ; int cols = image [ NUM ] . length ; ppm Out . write ( STRING ) ; ppm Out . write ( STRING + r...
public static void writeImageToPpm ( int [ ] [ ] image , String ppmFileName ) throws IOException { try ( BufferedWriter ppmOut = new BufferedWriter ( new FileWriter ( ppmFileName ) ) ) { int rows = image . length ; int cols = image [ _NUM ] . length ; ppmOut . write ( STRING ) ; ppmOut . write ( STRING + rows + STRING ...
169
java-test-11268
java
For what purpose do the fragment pane switch when in two - pane mode ?
to show the given preference fragment
public void switch To Header ( String fragment Name , Bundle args ) { Header selected Header = null ; for ( int i = NUM ; i < m Headers . size ( ) ; i ++ ) { if ( fragment Name . equals ( m Headers . get ( i ) . fragment ) ) { selected Header = m Headers . get ( i ) ; break ; } } set Selected Header ( selected Header )...
public void switchToHeader ( String fragmentName , Bundle args ) { Header selectedHeader = null ; for ( int i = _NUM ; i < mHeaders . size ( ) ; i ++ ) { if ( fragmentName . equals ( mHeaders . get ( i ) . fragment ) ) { selectedHeader = mHeaders . get ( i ) ; break ; } } setSelectedHeader ( selectedHeader ) ; switchTo...
94
java-test-11269
java
When do the fragment pane switch to show the given preference fragment ?
when in two - pane mode
public void switch To Header ( String fragment Name , Bundle args ) { Header selected Header = null ; for ( int i = NUM ; i < m Headers . size ( ) ; i ++ ) { if ( fragment Name . equals ( m Headers . get ( i ) . fragment ) ) { selected Header = m Headers . get ( i ) ; break ; } } set Selected Header ( selected Header )...
public void switchToHeader ( String fragmentName , Bundle args ) { Header selectedHeader = null ; for ( int i = _NUM ; i < mHeaders . size ( ) ; i ++ ) { if ( fragmentName . equals ( mHeaders . get ( i ) . fragment ) ) { selectedHeader = mHeaders . get ( i ) ; break ; } } setSelectedHeader ( selectedHeader ) ; switchTo...
94
java-test-11277
java
What does the code create ?
a new id3v1 datatype
public ID 3 v 1 Tag ( Random Access File file , String logging Filename ) throws Tag Not Found Exception , IO Exception { set Logging Filename ( logging Filename ) ; File Channel fc ; Byte Buffer byte Buffer ; fc = file . get Channel ( ) ; fc . position ( file . length ( ) - TAG LENGTH ) ; byte Buffer = Byte Buffer . a...
public ID3v1Tag ( RandomAccessFile file , String loggingFilename ) throws TagNotFoundException , IOException { setLoggingFilename ( loggingFilename ) ; FileChannel fc ; ByteBuffer byteBuffer ; fc = file . getChannel ( ) ; fc . position ( file . length ( ) - TAG_LENGTH ) ; byteBuffer = ByteBuffer . allocate ( TAG_LENGTH...
99
java-test-11278
java
What does the code open ?
a certificate input stream
protected X509 Certificate [ ] open Certificate ( Input Stream is , String name ) { try { X509 Certificate [ ] certs = X509 Cert Util . load Certificates ( is ) ; if ( certs . length == NUM ) { J Option Pane . show Message Dialog ( frame , Message Format . format ( res . get String ( STRING ) , name ) , res . get Strin...
protected X509Certificate [ ] openCertificate ( InputStream is , String name ) { try { X509Certificate [ ] certs = X509CertUtil . loadCertificates ( is ) ; if ( certs . length == _NUM ) { JOptionPane . showMessageDialog ( frame , MessageFormat . format ( res . getString ( STRING ) , name ) , res . getString ( STRING ) ...
204
java-test-11279
java
Where do the event occur ?
on a vertex
@ Suppress Warnings ( STRING ) public void mouse Pressed ( Mouse Event e ) { if ( e . get Modifiers ( ) == modifiers ) { Visualization Viewer < V , E > vv = ( Visualization Viewer < V , E > ) e . get Source ( ) ; Graph Element Accessor < V , E > pick Support = vv . get Pick Support ( ) ; Picked State < V > picked Verte...
@ SuppressWarnings ( STRING ) public void mousePressed ( MouseEvent e ) { if ( e . getModifiers ( ) == modifiers ) { VisualizationViewer < V , E > vv = ( VisualizationViewer < V , E > ) e . getSource ( ) ; GraphElementAccessor < V , E > pickSupport = vv . getPickSupport ( ) ; PickedState < V > pickedVertexState = vv . ...
209
java-test-11281
java
What does the code reduce ?
size of hitlist
private List < Search Hit > limit List ( int limit , List < Search Hit > hit List ) { if ( LOG . is Debug Enabled ( ) ) { LOG . debug ( STRING + hit List . size ( ) + STRING + limit + STRING ) ; } Search Hit [ ] limited Hits = new Search Hit [ limit ] ; System . arraycopy ( hit List . to Array ( new Search Hit [ hit Li...
private List < SearchHit > limitList ( int limit , List < SearchHit > hitList ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( STRING + hitList . size ( ) + STRING + limit + STRING ) ; } SearchHit [ ] limitedHits = new SearchHit [ limit ] ; System . arraycopy ( hitList . toArray ( new SearchHit [ hitList . size ( ) ...
111
java-test-11282
java
What does the code append to a file ?
the contents string
public static void append To File ( final File file , final String contents ) throws IO Exception { try ( File Output Stream fos = new File Output Stream ( file , BOOL ) ) { fos . write ( contents . get Bytes ( ) ) ; } }
public static void appendToFile ( final File file , final String contents ) throws IOException { try ( FileOutputStream fos = new FileOutputStream ( file , _BOOL ) ) { fos . write ( contents . getBytes ( ) ) ; } }
51
java-test-11283
java
What does the code add to the map of object permissions provided ?
the object permissions from the given objectpermissionset
private void add Object Permissions ( Map < String , Set < Object Permission . Type > > permissions , Object Permission Set perm Set ) throws Guacamole Exception { for ( Object Permission permission : perm Set . get Permissions ( ) ) { String identifier = permission . get Object Identifier ( ) ; Set < Object Permission...
private void addObjectPermissions ( Map < String , Set < ObjectPermission . Type > > permissions , ObjectPermissionSet permSet ) throws GuacamoleException { for ( ObjectPermission permission : permSet . getPermissions ( ) ) { String identifier = permission . getObjectIdentifier ( ) ; Set < ObjectPermission . Type > obj...
116
java-test-11285
java
When should this method be called only ?
after the source has been prepared
public void select Track ( int index ) { selected Track Index = index ; Exposed Track selected Track = tracks . get ( selected Track Index ) ; selected Variant Index = selected Track . default Variant Index ; variants = selected Track . variants ; variant Playlists = new Hls Media Playlist [ variants . length ] ; varia...
public void selectTrack ( int index ) { selectedTrackIndex = index ; ExposedTrack selectedTrack = tracks . get ( selectedTrackIndex ) ; selectedVariantIndex = selectedTrack . defaultVariantIndex ; variants = selectedTrack . variants ; variantPlaylists = new HlsMediaPlaylist [ variants . length ] ; variantLastPlaylistLo...
88
java-test-11286
java
When did the code invoke ?
when a client has connected to this process or when this process has connected to a cacheserver
public void member Joined ( Client Membership Event event ) { Notification notification = new Notification ( JMX Notification Type . CLIENT JOINED , server Source , Sequence Number . next ( ) , System . current Time Millis ( ) , Management Constants . CLIENT JOINED PREFIX + event . get Member Id ( ) ) ; server Level No...
public void memberJoined ( ClientMembershipEvent event ) { Notification notification = new Notification ( JMXNotificationType . CLIENT_JOINED , serverSource , SequenceNumber . next ( ) , System . currentTimeMillis ( ) , ManagementConstants . CLIENT_JOINED_PREFIX + event . getMemberId ( ) ) ; serverLevelNotifEmitter . s...
81
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