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-1191 | java | What will the code dealing with a query filter give ? | an empty map | @ Override public Map < String , Map < String , Set < String > > > search ( String user ID Attribute Name , int limit , Query Filter < Json Pointer > query Filter , Set < String > attributes To Fetch , String filter Operand , Map < String , Set < String > > av Pairs ) throws Id Repo Unsupported Op Exception { throw new... | @ Override public Map < String , Map < String , Set < String > > > search ( String userIDAttributeName , int limit , QueryFilter < JsonPointer > queryFilter , Set < String > attributesToFetch , String filterOperand , Map < String , Set < String > > avPairs ) throws IdRepoUnsupportedOpException { throw new IdRepoUnsuppo... | 80 |
java-test-1192 | java | When is the code dealing with a query filter not supported ? | as yet | @ Override public Map < String , Map < String , Set < String > > > search ( String user ID Attribute Name , int limit , Query Filter < Json Pointer > query Filter , Set < String > attributes To Fetch , String filter Operand , Map < String , Set < String > > av Pairs ) throws Id Repo Unsupported Op Exception { throw new... | @ Override public Map < String , Map < String , Set < String > > > search ( String userIDAttributeName , int limit , QueryFilter < JsonPointer > queryFilter , Set < String > attributesToFetch , String filterOperand , Map < String , Set < String > > avPairs ) throws IdRepoUnsupportedOpException { throw new IdRepoUnsuppo... | 80 |
java-test-1194 | java | What did the layout need whenever ? | to be updated along the minor axis | protected void layout Minor Axis ( int target Span , int axis , int [ ] offsets , int [ ] spans ) { super . layout Minor Axis ( target Span , axis , offsets , spans ) ; int col = NUM ; int ncells = get View Count ( ) ; for ( int cell = NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = get View ( cell ) ; for ( ; is ... | protected void layoutMinorAxis ( int targetSpan , int axis , int [ ] offsets , int [ ] spans ) { super . layoutMinorAxis ( targetSpan , axis , offsets , spans ) ; int col = _NUM ; int ncells = getViewCount ( ) ; for ( int cell = _NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = getView ( cell ) ; for ( ; isFilled (... | 192 |
java-test-1195 | java | When is by the superclass called this ? | whenever the layout needs to be updated along the minor axis | protected void layout Minor Axis ( int target Span , int axis , int [ ] offsets , int [ ] spans ) { super . layout Minor Axis ( target Span , axis , offsets , spans ) ; int col = NUM ; int ncells = get View Count ( ) ; for ( int cell = NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = get View ( cell ) ; for ( ; is ... | protected void layoutMinorAxis ( int targetSpan , int axis , int [ ] offsets , int [ ] spans ) { super . layoutMinorAxis ( targetSpan , axis , offsets , spans ) ; int col = _NUM ; int ncells = getViewCount ( ) ; for ( int cell = _NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = getView ( cell ) ; for ( ; isFilled (... | 192 |
java-test-1196 | java | What spans multiple rows ? | any cell | protected void layout Minor Axis ( int target Span , int axis , int [ ] offsets , int [ ] spans ) { super . layout Minor Axis ( target Span , axis , offsets , spans ) ; int col = NUM ; int ncells = get View Count ( ) ; for ( int cell = NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = get View ( cell ) ; for ( ; is ... | protected void layoutMinorAxis ( int targetSpan , int axis , int [ ] offsets , int [ ] spans ) { super . layoutMinorAxis ( targetSpan , axis , offsets , spans ) ; int col = _NUM ; int ncells = getViewCount ( ) ; for ( int cell = _NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = getView ( cell ) ; for ( ; isFilled (... | 192 |
java-test-1197 | java | What does any cell span ? | multiple rows | protected void layout Minor Axis ( int target Span , int axis , int [ ] offsets , int [ ] spans ) { super . layout Minor Axis ( target Span , axis , offsets , spans ) ; int col = NUM ; int ncells = get View Count ( ) ; for ( int cell = NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = get View ( cell ) ; for ( ; is ... | protected void layoutMinorAxis ( int targetSpan , int axis , int [ ] offsets , int [ ] spans ) { super . layoutMinorAxis ( targetSpan , axis , offsets , spans ) ; int col = _NUM ; int ncells = getViewCount ( ) ; for ( int cell = _NUM ; cell < ncells ; cell ++ , col ++ ) { View cv = getView ( cell ) ; for ( ; isFilled (... | 192 |
java-test-1198 | java | What does the code produce ? | a string representation of the edge | public final String to String ( ) { String Builder buf = new String Builder ( ) ; Endpoint endpt Type A = get Endpoint 1 ( ) ; Endpoint endpt Type B = get Endpoint 2 ( ) ; buf . append ( get Node 1 ( ) ) ; buf . append ( STRING ) ; if ( endpt Type A == Endpoint . TAIL ) { buf . append ( STRING ) ; } else if ( endpt Typ... | public final String toString ( ) { StringBuilder buf = new StringBuilder ( ) ; Endpoint endptTypeA = getEndpoint1 ( ) ; Endpoint endptTypeB = getEndpoint2 ( ) ; buf . append ( getNode1 ( ) ) ; buf . append ( STRING ) ; if ( endptTypeA == Endpoint . TAIL ) { buf . append ( STRING ) ; } else if ( endptTypeA == Endpoint .... | 210 |
java-test-1200 | java | What will it return if the element does not exists by comparator ? | negative value | private int find ( E [ ] array , E element ) { int min = NUM ; int max = array . length - NUM ; while ( max >= min ) { int mid = midpoint ( min , max ) ; int compare = comparator . compare ( array [ mid ] , element ) ; if ( NUM == compare ) { return mid ; } min = ( compare < NUM ) ? mid + NUM : min ; max = ( compare > ... | private int find ( E [ ] array , E element ) { int min = _NUM ; int max = array . length - _NUM ; while ( max >= min ) { int mid = midpoint ( min , max ) ; int compare = comparator . compare ( array [ mid ] , element ) ; if ( _NUM == compare ) { return mid ; } min = ( compare < _NUM ) ? mid + _NUM : min ; max = ( compa... | 104 |
java-test-1201 | java | How does the element not exists ? | by comparator | private int find ( E [ ] array , E element ) { int min = NUM ; int max = array . length - NUM ; while ( max >= min ) { int mid = midpoint ( min , max ) ; int compare = comparator . compare ( array [ mid ] , element ) ; if ( NUM == compare ) { return mid ; } min = ( compare < NUM ) ? mid + NUM : min ; max = ( compare > ... | private int find ( E [ ] array , E element ) { int min = _NUM ; int max = array . length - _NUM ; while ( max >= min ) { int mid = midpoint ( min , max ) ; int compare = comparator . compare ( array [ mid ] , element ) ; if ( _NUM == compare ) { return mid ; } min = ( compare < _NUM ) ? mid + _NUM : min ; max = ( compa... | 104 |
java-test-1202 | java | What fails to create a thread when asked ? | the thread factory | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1203 | java | How do the thread factory return ? | null | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1204 | java | What does the thread factory fail when asked ? | to create a thread | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1205 | java | Why does the thread creation fail ? | either due to the thread factory returning null , or due to an exception ( typically outofmemoryerror in thread . start ( ) | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1206 | java | Does the thread factory create a thread ? | No | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1207 | java | In which direction did we roll cleanly ? | back | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1208 | java | How did we roll back ? | cleanly | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1209 | java | How is the worker count adjusted ? | accordingly | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1210 | java | When does the thread factory fail to create a thread ? | when asked | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1211 | java | How can a new worker be added ? | with respect to current pool state and the given bound ( either core or maximum ) | private boolean add Worker ( Runnable first Task , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = run State Of ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && first Task == null && ! work Queue . is Empty ( ) ) ) return BOOL ; for ( ; ; ) { int wc = worker Count Of ( c ) ; if ( wc >= CAPAC... | private boolean addWorker ( Runnable firstTask , boolean core ) { retry : for ( ; ; ) { int c = ctl . get ( ) ; int rs = runStateOf ( c ) ; if ( rs >= SHUTDOWN && ! ( rs == SHUTDOWN && firstTask == null && ! workQueue . isEmpty ( ) ) ) return _BOOL ; for ( ; ; ) { int wc = workerCountOf ( c ) ; if ( wc >= CAPACITY || w... | 348 |
java-test-1213 | java | When is full accuracy obtained ? | for xx > 1 | public static double log Gamma ( double xx ) { double x = xx - NUM ; double tmp = x + NUM ; tmp -= ( x + NUM ) * Math . log ( tmp ) ; double ser = NUM ; double [ ] coeff = cof ; for ( int j = NUM ; j <= NUM ; j ++ ) { x ++ ; ser += coeff [ j ] / x ; } return - tmp + Math . log ( NUM * ser ) ; } | public static double logGamma ( double xx ) { double x = xx - _NUM ; double tmp = x + _NUM ; tmp -= ( x + _NUM ) * Math . log ( tmp ) ; double ser = _NUM ; double [ ] coeff = cof ; for ( int j = _NUM ; j <= _NUM ; j ++ ) { x ++ ; ser += coeff [ j ] / x ; } return - tmp + Math . log ( _NUM * ser ) ; } | 93 |
java-test-1214 | java | Where is it connected to ? | on the next layer | private int calculated Weighted Value ( mx Graph Abstract Hierarchy Cell current Cell , Collection < mx Graph Abstract Hierarchy Cell > collection ) { int total Weight = NUM ; Iterator < mx Graph Abstract Hierarchy Cell > iter = collection . iterator ( ) ; while ( iter . has Next ( ) ) { mx Graph Abstract Hierarchy Cel... | private int calculatedWeightedValue ( mxGraphAbstractHierarchyCell currentCell , Collection < mxGraphAbstractHierarchyCell > collection ) { int totalWeight = _NUM ; Iterator < mxGraphAbstractHierarchyCell > iter = collection . iterator ( ) ; while ( iter . hasNext ( ) ) { mxGraphAbstractHierarchyCell cell = iter . next... | 132 |
java-test-1215 | java | What does the code calculate ? | the priority the specified cell has based on the type of its cell and the cells it is connected to on the next layer | private int calculated Weighted Value ( mx Graph Abstract Hierarchy Cell current Cell , Collection < mx Graph Abstract Hierarchy Cell > collection ) { int total Weight = NUM ; Iterator < mx Graph Abstract Hierarchy Cell > iter = collection . iterator ( ) ; while ( iter . has Next ( ) ) { mx Graph Abstract Hierarchy Cel... | private int calculatedWeightedValue ( mxGraphAbstractHierarchyCell currentCell , Collection < mxGraphAbstractHierarchyCell > collection ) { int totalWeight = _NUM ; Iterator < mxGraphAbstractHierarchyCell > iter = collection . iterator ( ) ; while ( iter . hasNext ( ) ) { mxGraphAbstractHierarchyCell cell = iter . next... | 132 |
java-test-1216 | java | What does this build ? | the proper dominance tree | private void build Dom Tree ( ) { int sz Nodes = nodes . size ( ) ; for ( int i = NUM ; i < sz Nodes ; i ++ ) { Dom Info info = dom Infos [ i ] ; if ( info . idom == - NUM ) continue ; Ssa Basic Block dom Parent = nodes . get ( info . idom ) ; dom Parent . add Dom Child ( nodes . get ( i ) ) ; } } | private void buildDomTree ( ) { int szNodes = nodes . size ( ) ; for ( int i = _NUM ; i < szNodes ; i ++ ) { DomInfo info = domInfos [ i ] ; if ( info . idom == - _NUM ) continue ; SsaBasicBlock domParent = nodes . get ( info . idom ) ; domParent . addDomChild ( nodes . get ( i ) ) ; } } | 87 |
java-test-1217 | java | What is us knowing ? | who the immediate dominator is for each node | private void build Dom Tree ( ) { int sz Nodes = nodes . size ( ) ; for ( int i = NUM ; i < sz Nodes ; i ++ ) { Dom Info info = dom Infos [ i ] ; if ( info . idom == - NUM ) continue ; Ssa Basic Block dom Parent = nodes . get ( info . idom ) ; dom Parent . add Dom Child ( nodes . get ( i ) ) ; } } | private void buildDomTree ( ) { int szNodes = nodes . size ( ) ; for ( int i = _NUM ; i < szNodes ; i ++ ) { DomInfo info = domInfos [ i ] ; if ( info . idom == - _NUM ) continue ; SsaBasicBlock domParent = nodes . get ( info . idom ) ; domParent . addDomChild ( nodes . get ( i ) ) ; } } | 87 |
java-test-1218 | java | What is who ? | the immediate dominator | private void build Dom Tree ( ) { int sz Nodes = nodes . size ( ) ; for ( int i = NUM ; i < sz Nodes ; i ++ ) { Dom Info info = dom Infos [ i ] ; if ( info . idom == - NUM ) continue ; Ssa Basic Block dom Parent = nodes . get ( info . idom ) ; dom Parent . add Dom Child ( nodes . get ( i ) ) ; } } | private void buildDomTree ( ) { int szNodes = nodes . size ( ) ; for ( int i = _NUM ; i < szNodes ; i ++ ) { DomInfo info = domInfos [ i ] ; if ( info . idom == - _NUM ) continue ; SsaBasicBlock domParent = nodes . get ( info . idom ) ; domParent . addDomChild ( nodes . get ( i ) ) ; } } | 87 |
java-test-1219 | java | What does the code create ? | a resolved classifier reference | public Classifier Reference ( Qualified Name qualified Name , URI uri ) { this . classifier Name = qualified Name . get Last Segment ( ) ; List < String > front Segments = qualified Name . get Segments ( ) ; if ( front Segments . size ( ) > NUM ) { String Joiner joiner = new String Joiner ( N4 JS Qualified Name Convert... | public ClassifierReference ( QualifiedName qualifiedName , URI uri ) { this . classifierName = qualifiedName . getLastSegment ( ) ; List < String > frontSegments = qualifiedName . getSegments ( ) ; if ( frontSegments . size ( ) > _NUM ) { StringJoiner joiner = new StringJoiner ( N4JSQualifiedNameConverter . DELIMITER )... | 135 |
java-test-1220 | java | What does this mean ? | a classifier with a valid uri of its declaration | public Classifier Reference ( Qualified Name qualified Name , URI uri ) { this . classifier Name = qualified Name . get Last Segment ( ) ; List < String > front Segments = qualified Name . get Segments ( ) ; if ( front Segments . size ( ) > NUM ) { String Joiner joiner = new String Joiner ( N4 JS Qualified Name Convert... | public ClassifierReference ( QualifiedName qualifiedName , URI uri ) { this . classifierName = qualifiedName . getLastSegment ( ) ; List < String > frontSegments = qualifiedName . getSegments ( ) ; if ( frontSegments . size ( ) > _NUM ) { StringJoiner joiner = new StringJoiner ( N4JSQualifiedNameConverter . DELIMITER )... | 135 |
java-test-1223 | java | What do we need for processes to access shared internal storage ( / sdcard ) ? | this permission | @ Target Api ( Build . VERSION CODES . M ) public boolean ensure Storage Permission Granted ( ) { if ( Build . VERSION . SDK INT >= Build . VERSION CODES . M ) { if ( check Self Permission ( Manifest . permission . WRITE EXTERNAL STORAGE ) == Package Manager . PERMISSION GRANTED ) { return BOOL ; } else { request Permi... | @ TargetApi ( Build . VERSION_CODES . M ) public boolean ensureStoragePermissionGranted ( ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { if ( checkSelfPermission ( Manifest . permission . WRITE_EXTERNAL_STORAGE ) == PackageManager . PERMISSION_GRANTED ) { return _BOOL ; } else { requestPermissions ... | 99 |
java-test-1224 | java | For what purpose do we need this permission ? | for processes to access shared internal storage ( / sdcard ) | @ Target Api ( Build . VERSION CODES . M ) public boolean ensure Storage Permission Granted ( ) { if ( Build . VERSION . SDK INT >= Build . VERSION CODES . M ) { if ( check Self Permission ( Manifest . permission . WRITE EXTERNAL STORAGE ) == Package Manager . PERMISSION GRANTED ) { return BOOL ; } else { request Permi... | @ TargetApi ( Build . VERSION_CODES . M ) public boolean ensureStoragePermissionGranted ( ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { if ( checkSelfPermission ( Manifest . permission . WRITE_EXTERNAL_STORAGE ) == PackageManager . PERMISSION_GRANTED ) { return _BOOL ; } else { requestPermissions ... | 99 |
java-test-1226 | java | What does this function verify with the aid of the public key ? | the signature of the message that has been updated | public boolean verify Signature ( byte [ ] message , byte [ ] signature ) { short [ ] sig Int = new short [ signature . length ] ; short tmp ; for ( int i = NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) NUM ; sig Int [ i ] = tmp ; } short [ ] msg Hash Val = make Message Repr... | public boolean verifySignature ( byte [ ] message , byte [ ] signature ) { short [ ] sigInt = new short [ signature . length ] ; short tmp ; for ( int i = _NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) _NUM ; sigInt [ i ] = tmp ; } short [ ] msgHashVal = makeMessageRepresent... | 168 |
java-test-1227 | java | How does this function verify the signature of the message that has been updated ? | with the aid of the public key | public boolean verify Signature ( byte [ ] message , byte [ ] signature ) { short [ ] sig Int = new short [ signature . length ] ; short tmp ; for ( int i = NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) NUM ; sig Int [ i ] = tmp ; } short [ ] msg Hash Val = make Message Repr... | public boolean verifySignature ( byte [ ] message , byte [ ] signature ) { short [ ] sigInt = new short [ signature . length ] ; short tmp ; for ( int i = _NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) _NUM ; sigInt [ i ] = tmp ; } short [ ] msgHashVal = makeMessageRepresent... | 168 |
java-test-1228 | java | How has the message been updated ? | with the aid of the public | public boolean verify Signature ( byte [ ] message , byte [ ] signature ) { short [ ] sig Int = new short [ signature . length ] ; short tmp ; for ( int i = NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) NUM ; sig Int [ i ] = tmp ; } short [ ] msg Hash Val = make Message Repr... | public boolean verifySignature ( byte [ ] message , byte [ ] signature ) { short [ ] sigInt = new short [ signature . length ] ; short tmp ; for ( int i = _NUM ; i < signature . length ; i ++ ) { tmp = ( short ) signature [ i ] ; tmp &= ( short ) _NUM ; sigInt [ i ] = tmp ; } short [ ] msgHashVal = makeMessageRepresent... | 168 |
java-test-1229 | java | When is by the gpslocator called this method ? | the first time it fixes | public void on Location Changed ( Location location ) { if ( Cfg . DEBUG ) { Check . log ( TAG + STRING + location ) ; } synchronized ( listeners ) { got Valid Position = BOOL ; for ( GPS Location Listener listener : listeners ) { if ( Cfg . DEBUG ) { Check . log ( TAG + STRING + listener ) ; } listener . on Location C... | public void onLocationChanged ( Location location ) { if ( Cfg . DEBUG ) { Check . log ( TAG + STRING + location ) ; } synchronized ( listeners ) { gotValidPosition = _BOOL ; for ( GPSLocationListener listener : listeners ) { if ( Cfg . DEBUG ) { Check . log ( TAG + STRING + listener ) ; } listener . onLocationChanged ... | 87 |
java-test-1230 | java | What does the code generate ? | the native guid for block related provider triggered indications | public static String generate Native Guid ( Hashtable < String , String > cim Indication ) throws IO Exception { String native Guid = cim Indication . get ( CIM Constants . SOURCE INSTANCE MODEL PATH COMPOSITE ID ) ; logger . debug ( STRING , native Guid ) ; if ( native Guid != null && native Guid . index Of ( CIM Cons... | public static String generateNativeGuid ( Hashtable < String , String > cimIndication ) throws IOException { String nativeGuid = cimIndication . get ( CIMConstants . SOURCE_INSTANCE_MODEL_PATH_COMPOSITE_ID ) ; _logger . debug ( STRING , nativeGuid ) ; if ( nativeGuid != null && nativeGuid . indexOf ( CIMConstants . CLA... | 139 |
java-test-1231 | java | What does not match the selector if not specified issuer ? | specified issuers | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1232 | java | What match the selector in the case of null issuernames criteria ? | crls with any issuers | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1233 | java | What does specified issuers match ? | the selector | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1234 | java | What does crls with any issuers match in the case of null issuernames criteria ? | the selector | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1235 | java | When is the internal collection of issuer names copied ? | during initialization | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1236 | java | How does crls with any issuers match the selector ? | in the case of null issuernames criteria | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1237 | java | What does specified issuers not match if not specified issuer ? | the selector | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1238 | java | Does specified issuers match the selector if not specified issuer ? | No | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1239 | java | What match the selector ? | specified issuers | @ Suppress Warnings ( STRING ) public void test Set Issuer Names Ljava util Collection 02 ( ) { X509 CRL Selector selector = new X509 CRL Selector ( ) ; String iss 1 = STRING ; byte [ ] iss 2 = new byte [ ] { NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM , NUM... | @ SuppressWarnings ( STRING ) public void testSetIssuerNamesLjava_util_Collection02 ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; String iss1 = STRING ; byte [ ] iss2 = new byte [ ] { _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM , _NUM... | 333 |
java-test-1240 | java | How is state passed into the stateless httpmonitem instances ? | via ' this ' instance | public Http Mon start ( ) { time Mon Index = NUM ; Iterator iter = iter ( ) ; while ( iter . has Next ( ) ) { Http Mon Item mon Item = ( Http Mon Item ) iter . next ( ) ; mon Item . start ( this ) ; } return this ; } | public HttpMon start ( ) { timeMonIndex = _NUM ; Iterator iter = iter ( ) ; while ( iter . hasNext ( ) ) { HttpMonItem monItem = ( HttpMonItem ) iter . next ( ) ; monItem . start ( this ) ; } return this ; } | 60 |
java-test-1241 | java | For what purpose did method call ? | to start monitoring http requests , and responses . loop through all httpmonitems starting each of them | public Http Mon start ( ) { time Mon Index = NUM ; Iterator iter = iter ( ) ; while ( iter . has Next ( ) ) { Http Mon Item mon Item = ( Http Mon Item ) iter . next ( ) ; mon Item . start ( this ) ; } return this ; } | public HttpMon start ( ) { timeMonIndex = _NUM ; Iterator iter = iter ( ) ; while ( iter . hasNext ( ) ) { HttpMonItem monItem = ( HttpMonItem ) iter . next ( ) ; monItem . start ( this ) ; } return this ; } | 60 |
java-test-1245 | java | When be give one more answer be the max of two array if ratings [ i ] increase , give one more from right to left if ratings [ i ] increase , give one more from right to left ? | o ( n ) time , o ( n ) space from left to right | public int candy ( int [ ] ratings ) { int [ ] candies = new int [ ratings . length ] ; candies [ NUM ] = NUM ; for ( int i = NUM ; i < ratings . length ; i ++ ) candies [ i ] = ratings [ i ] > ratings [ i - NUM ] ? candies [ i - NUM ] + NUM : NUM ; int res = candies [ candies . length - NUM ] ; for ( int i = ratings .... | public int candy ( int [ ] ratings ) { int [ ] candies = new int [ ratings . length ] ; candies [ _NUM ] = _NUM ; for ( int i = _NUM ; i < ratings . length ; i ++ ) candies [ i ] = ratings [ i ] > ratings [ i - _NUM ] ? candies [ i - _NUM ] + _NUM : _NUM ; int res = candies [ candies . length - _NUM ] ; for ( int i = r... | 155 |
java-test-1247 | java | What does not contain a member with the specified name ? | this object | public Json Object remove ( String name ) { if ( name == null ) { throw new Null Pointer Exception ( STRING ) ; } int index = index Of ( name ) ; if ( index != - NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | public JsonObject remove ( String name ) { if ( name == null ) { throw new NullPointerException ( STRING ) ; } int index = indexOf ( name ) ; if ( index != - _NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | 69 |
java-test-1248 | java | What did this object contain ? | multiple members with the given name | public Json Object remove ( String name ) { if ( name == null ) { throw new Null Pointer Exception ( STRING ) ; } int index = index Of ( name ) ; if ( index != - NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | public JsonObject remove ( String name ) { if ( name == null ) { throw new NullPointerException ( STRING ) ; } int index = indexOf ( name ) ; if ( index != - _NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | 69 |
java-test-1249 | java | What does this object not contain ? | a member with the specified name | public Json Object remove ( String name ) { if ( name == null ) { throw new Null Pointer Exception ( STRING ) ; } int index = index Of ( name ) ; if ( index != - NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | public JsonObject remove ( String name ) { if ( name == null ) { throw new NullPointerException ( STRING ) ; } int index = indexOf ( name ) ; if ( index != - _NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | 69 |
java-test-1250 | java | What contains multiple members with the given name ? | this object | public Json Object remove ( String name ) { if ( name == null ) { throw new Null Pointer Exception ( STRING ) ; } int index = index Of ( name ) ; if ( index != - NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | public JsonObject remove ( String name ) { if ( name == null ) { throw new NullPointerException ( STRING ) ; } int index = indexOf ( name ) ; if ( index != - _NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | 69 |
java-test-1251 | java | Does this object contain a member with the specified name ? | No | public Json Object remove ( String name ) { if ( name == null ) { throw new Null Pointer Exception ( STRING ) ; } int index = index Of ( name ) ; if ( index != - NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | public JsonObject remove ( String name ) { if ( name == null ) { throw new NullPointerException ( STRING ) ; } int index = indexOf ( name ) ; if ( index != - _NUM ) { table . remove ( index ) ; names . remove ( index ) ; values . remove ( index ) ; } return this ; } | 69 |
java-test-1253 | java | Till when are any cells whose level is less than " min_level " or where ( level - min_level ) is not a multiple of " level_mod " replaced by their children ? | until either both of these conditions are satisfied or the maximum level is reached | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1254 | java | Where is ( level - min_level ) not is a multiple of " level_mod " ? | any cells | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1255 | java | What allows various geometric computations to be done ? | a normalized cell union | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1256 | java | What satisfies the desired constraints ? | the original list of cell ids | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1257 | java | Is ( level - min_level ) is a multiple of " level_mod " any cells ? | No | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1258 | java | In which direction did a covering convert to the original list of cell ids that satisfies the desired constraints then ? | back | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1259 | java | What does output " replace ? | with an expanded version of the cell union where any cells whose level is less than " min_level " or where ( level - min_level ) is not a multiple of " level_mod " are replaced by their children , until either both of these conditions are satisfied or the maximum level is reached . this method allows a covering generat... | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1260 | java | What does this method allow either both of these conditions are satisfied or the maximum level is reached ? | a covering generated by s2regioncoverer using min_level ( ) or level_mod ( ) constraints to be stored as a normalized cell union ( which allows various geometric computations to be done ) and then converted back to the original list of cell ids that satisfies the desired constraints | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1261 | java | What does the original list of cell ids satisfy ? | the desired constraints | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1262 | java | What is not a multiple of " level_mod " any cells ? | ( level - min_level ) | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1263 | java | What replaces with an expanded version of the cell union where any cells whose level is less than " min_level " or where ( level - min_level ) is not a multiple of " level_mod " are replaced by their children , until either both of these conditions are satisfied or the maximum level is reached . this method allows a co... | output " | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1264 | java | When does this method allow a covering generated by s2regioncoverer using min_level ( ) or level_mod ( ) constraints to be stored as a normalized cell union ( which allows various geometric computations to be done ) and then converted back to the original list of cell ids that satisfies the desired constraints ? | either both of these conditions are satisfied or the maximum level is reached | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1265 | java | What does a normalized cell union allow ? | various geometric computations to be done | public void denormalize ( int min Level , int level Mod , Array List < S2 Cell Id > output ) { output . clear ( ) ; output . ensure Capacity ( size ( ) ) ; for ( S2 Cell Id id : this ) { int level = id . level ( ) ; int new Level = Math . max ( min Level , level ) ; if ( level Mod > NUM ) { new Level += ( S2 Cell Id . ... | public void denormalize ( int minLevel , int levelMod , ArrayList < S2CellId > output ) { output . clear ( ) ; output . ensureCapacity ( size ( ) ) ; for ( S2CellId id : this ) { int level = id . level ( ) ; int newLevel = Math . max ( minLevel , level ) ; if ( levelMod > _NUM ) { newLevel += ( S2CellId . MAX_LEVEL - (... | 194 |
java-test-1266 | java | Where does the code create a new chunk ? | at the current position of the imageoutputstream | public Segment ( int marker ) throws IO Exception { this . marker = marker ; if ( marker != NUM ) { out . write Short ( marker ) ; offset = get Stream Position ( ) ; if ( ! standalone Markers . contains ( marker ) ) { out . write Short ( NUM ) ; } } } | public Segment ( int marker ) throws IOException { this . marker = marker ; if ( marker != _NUM ) { out . writeShort ( marker ) ; offset = getStreamPosition ( ) ; if ( ! standaloneMarkers . contains ( marker ) ) { out . writeShort ( _NUM ) ; } } } | 62 |
java-test-1267 | java | When did from the connection thread call the code ? | once the initial connection has been established without an error | protected void connected ( String ip , int port ) { this . connected Ip = ip ; this . connected Port = port ; this . connected Since = System . current Time Millis ( ) ; set State ( Irc . STATE CONNECTED ) ; on Connect ( ) ; if ( pass != null ) { send ( STRING + pass ) ; } send ( STRING + nick ) ; send ( String . forma... | protected void connected ( String ip , int port ) { this . connectedIp = ip ; this . connectedPort = port ; this . connectedSince = System . currentTimeMillis ( ) ; setState ( Irc . STATE_CONNECTED ) ; onConnect ( ) ; if ( pass != null ) { send ( STRING + pass ) ; } send ( STRING + nick ) ; send ( String . format ( STR... | 87 |
java-test-1268 | java | How has the initial connection been established ? | without an error | protected void connected ( String ip , int port ) { this . connected Ip = ip ; this . connected Port = port ; this . connected Since = System . current Time Millis ( ) ; set State ( Irc . STATE CONNECTED ) ; on Connect ( ) ; if ( pass != null ) { send ( STRING + pass ) ; } send ( STRING + nick ) ; send ( String . forma... | protected void connected ( String ip , int port ) { this . connectedIp = ip ; this . connectedPort = port ; this . connectedSince = System . currentTimeMillis ( ) ; setState ( Irc . STATE_CONNECTED ) ; onConnect ( ) ; if ( pass != null ) { send ( STRING + pass ) ; } send ( STRING + nick ) ; send ( String . format ( STR... | 87 |
java-test-1269 | java | In which direction did the code call ? | from window close of icon editors | public static boolean check Image Index ( ) { if ( index Changed ) { int result = J Option Pane . show Confirm Dialog ( null , Bundle . get Message ( STRING ) , Bundle . get Message ( STRING ) , J Option Pane . YES NO CANCEL OPTION , J Option Pane . QUESTION MESSAGE ) ; if ( result == J Option Pane . YES OPTION ) { sto... | public static boolean checkImageIndex ( ) { if ( _indexChanged ) { int result = JOptionPane . showConfirmDialog ( null , Bundle . getMessage ( STRING ) , Bundle . getMessage ( STRING ) , JOptionPane . YES_NO_CANCEL_OPTION , JOptionPane . QUESTION_MESSAGE ) ; if ( result == JOptionPane . YES_OPTION ) { storeImageIndex (... | 108 |
java-test-1270 | java | What does a utility method load into a string ? | the contents of the given input stream | public static String input Stream To String ( Input Stream input Stream ) { String Writer string Writer = new String Writer ( ) ; try { IO Utils . copy ( input Stream , string Writer ) ; } catch ( IO Exception ex ) { throw new Runtime Exception ( ex ) ; } return string Writer . to String ( ) ; } | public static String inputStreamToString ( InputStream inputStream ) { StringWriter stringWriter = new StringWriter ( ) ; try { IOUtils . copy ( inputStream , stringWriter ) ; } catch ( IOException ex ) { throw new RuntimeException ( ex ) ; } return stringWriter . toString ( ) ; } | 66 |
java-test-1271 | java | How does the code create the class loader ? | with the context class loader | public static J Class Loader Wrapper create ( Class Loader loader ) { J Class Loader Wrapper j Loader = local Class Loader . get Level ( loader ) ; if ( j Loader == null ) { j Loader = new J Class Loader Wrapper ( loader ) ; local Class Loader . set ( j Loader , loader ) ; } return j Loader ; } | public static JClassLoaderWrapper create ( ClassLoader loader ) { JClassLoaderWrapper jLoader = _localClassLoader . getLevel ( loader ) ; if ( jLoader == null ) { jLoader = new JClassLoaderWrapper ( loader ) ; _localClassLoader . set ( jLoader , loader ) ; } return jLoader ; } | 68 |
java-test-1273 | java | What specified in the element xpointer scheme ? | the element position | protected boolean match Child Sequence ( Q Name element , int event ) throws XNI Exception { if ( f Current Child Depth >= f Current Child Sequence . length ) { int tmp Current Child Sequence [ ] = new int [ f Current Child Sequence . length ] ; System . arraycopy ( f Current Child Sequence , NUM , tmp Current Child Se... | protected boolean matchChildSequence ( QName element , int event ) throws XNIException { if ( fCurrentChildDepth >= fCurrentChildSequence . length ) { int tmpCurrentChildSequence [ ] = new int [ fCurrentChildSequence . length ] ; System . arraycopy ( fCurrentChildSequence , _NUM , tmpCurrentChildSequence , _NUM , fCurr... | 454 |
java-test-1274 | java | Where did the element position specify ? | in the element xpointer scheme | protected boolean match Child Sequence ( Q Name element , int event ) throws XNI Exception { if ( f Current Child Depth >= f Current Child Sequence . length ) { int tmp Current Child Sequence [ ] = new int [ f Current Child Sequence . length ] ; System . arraycopy ( f Current Child Sequence , NUM , tmp Current Child Se... | protected boolean matchChildSequence ( QName element , int event ) throws XNIException { if ( fCurrentChildDepth >= fCurrentChildSequence . length ) { int tmpCurrentChildSequence [ ] = new int [ fCurrentChildSequence . length ] ; System . arraycopy ( fCurrentChildSequence , _NUM , tmpCurrentChildSequence , _NUM , fCurr... | 454 |
java-test-1275 | java | When do this call ? | after the game has been left | public void client Left Game ( ) { if ( ! Swing Utilities . is Event Dispatch Thread ( ) ) { Swing Action . invoke And Wait ( null ) ; return ; } Thread Util . sleep ( NUM ) ; m game Selector Model . load Default Game ( this ) ; m setup Panel Model . show Select Type ( ) ; set Visible ( BOOL ) ; } | public void clientLeftGame ( ) { if ( ! SwingUtilities . isEventDispatchThread ( ) ) { SwingAction . invokeAndWait ( null ) ; return ; } ThreadUtil . sleep ( _NUM ) ; m_gameSelectorModel . loadDefaultGame ( this ) ; m_setupPanelModel . showSelectType ( ) ; setVisible ( _BOOL ) ; } | 73 |
java-test-1276 | java | What do the dates resolve ? | the same way joda - time resolves dates | private Wikibase Date check ( int year , int month , int day , int hour , int minute , int second ) { Wikibase Date wb Date = new Wikibase Date ( year , month , day , hour , minute , second ) ; assert Equals ( wb Date . to String ( ) , joda Seconds ( year , month , day , hour , minute , second ) , wb Date . seconds Sin... | private WikibaseDate check ( int year , int month , int day , int hour , int minute , int second ) { WikibaseDate wbDate = new WikibaseDate ( year , month , day , hour , minute , second ) ; assertEquals ( wbDate . toString ( ) , jodaSeconds ( year , month , day , hour , minute , second ) , wbDate . secondsSinceEpoch ( ... | 96 |
java-test-1277 | java | What resolve the same way joda - time resolves dates ? | the dates | private Wikibase Date check ( int year , int month , int day , int hour , int minute , int second ) { Wikibase Date wb Date = new Wikibase Date ( year , month , day , hour , minute , second ) ; assert Equals ( wb Date . to String ( ) , joda Seconds ( year , month , day , hour , minute , second ) , wb Date . seconds Sin... | private WikibaseDate check ( int year , int month , int day , int hour , int minute , int second ) { WikibaseDate wbDate = new WikibaseDate ( year , month , day , hour , minute , second ) ; assertEquals ( wbDate . toString ( ) , jodaSeconds ( year , month , day , hour , minute , second ) , wbDate . secondsSinceEpoch ( ... | 96 |
java-test-1283 | java | What is within the closest word boundaries containing c ? | a cased letter | private static boolean is Final Cased ( String src , int index , Locale locale ) { Break Iterator word Boundary = Break Iterator . get Word Instance ( locale ) ; word Boundary . set Text ( src ) ; int ch ; for ( int i = index ; ( i >= NUM ) && ! word Boundary . is Boundary ( i ) ; i -= Character . char Count ( ch ) ) {... | private static boolean isFinalCased ( String src , int index , Locale locale ) { BreakIterator wordBoundary = BreakIterator . getWordInstance ( locale ) ; wordBoundary . setText ( src ) ; int ch ; for ( int i = index ; ( i >= _NUM ) && ! wordBoundary . isBoundary ( i ) ; i -= Character . charCount ( ch ) ) { ch = src .... | 189 |
java-test-1284 | java | What do c contain ? | within the closest word boundaries | private static boolean is Final Cased ( String src , int index , Locale locale ) { Break Iterator word Boundary = Break Iterator . get Word Instance ( locale ) ; word Boundary . set Text ( src ) ; int ch ; for ( int i = index ; ( i >= NUM ) && ! word Boundary . is Boundary ( i ) ; i -= Character . char Count ( ch ) ) {... | private static boolean isFinalCased ( String src , int index , Locale locale ) { BreakIterator wordBoundary = BreakIterator . getWordInstance ( locale ) ; wordBoundary . setText ( src ) ; int ch ; for ( int i = index ; ( i >= _NUM ) && ! wordBoundary . isBoundary ( i ) ; i -= Character . charCount ( ch ) ) { ch = src .... | 189 |
java-test-1285 | java | When is a cased letter within the closest word boundaries containing c ? | before c | private static boolean is Final Cased ( String src , int index , Locale locale ) { Break Iterator word Boundary = Break Iterator . get Word Instance ( locale ) ; word Boundary . set Text ( src ) ; int ch ; for ( int i = index ; ( i >= NUM ) && ! word Boundary . is Boundary ( i ) ; i -= Character . char Count ( ch ) ) {... | private static boolean isFinalCased ( String src , int index , Locale locale ) { BreakIterator wordBoundary = BreakIterator . getWordInstance ( locale ) ; wordBoundary . setText ( src ) ; int ch ; for ( int i = index ; ( i >= _NUM ) && ! wordBoundary . isBoundary ( i ) ; i -= Character . charCount ( ch ) ) { ch = src .... | 189 |
java-test-1286 | java | Where is a cased letter before c ? | within the closest word boundaries containing c | private static boolean is Final Cased ( String src , int index , Locale locale ) { Break Iterator word Boundary = Break Iterator . get Word Instance ( locale ) ; word Boundary . set Text ( src ) ; int ch ; for ( int i = index ; ( i >= NUM ) && ! word Boundary . is Boundary ( i ) ; i -= Character . char Count ( ch ) ) {... | private static boolean isFinalCased ( String src , int index , Locale locale ) { BreakIterator wordBoundary = BreakIterator . getWordInstance ( locale ) ; wordBoundary . setText ( src ) ; int ch ; for ( int i = index ; ( i >= _NUM ) && ! wordBoundary . isBoundary ( i ) ; i -= Character . charCount ( ch ) ) { ch = src .... | 189 |
java-test-1288 | java | For what purpose is this invoked on the toolkit thread ? | in response to an expose event | public boolean show ( Container c , int x , int y , int w , int h ) { synchronized ( this ) { if ( painting ) { return BOOL ; } showing = BOOL ; } try { Buffer Info info = get Buffer Info ( c ) ; Buffer Strategy buffer Strategy ; if ( info != null && info . is In Sync ( ) && ( buffer Strategy = info . get Buffer Strate... | public boolean show ( Container c , int x , int y , int w , int h ) { synchronized ( this ) { if ( painting ) { return _BOOL ; } showing = _BOOL ; } try { BufferInfo info = getBufferInfo ( c ) ; BufferStrategy bufferStrategy ; if ( info != null && info . isInSync ( ) && ( bufferStrategy = info . getBufferStrategy ( _BO... | 203 |
java-test-1289 | java | What does the code show ? | the specified region of the back buffer | public boolean show ( Container c , int x , int y , int w , int h ) { synchronized ( this ) { if ( painting ) { return BOOL ; } showing = BOOL ; } try { Buffer Info info = get Buffer Info ( c ) ; Buffer Strategy buffer Strategy ; if ( info != null && info . is In Sync ( ) && ( buffer Strategy = info . get Buffer Strate... | public boolean show ( Container c , int x , int y , int w , int h ) { synchronized ( this ) { if ( painting ) { return _BOOL ; } showing = _BOOL ; } try { BufferInfo info = getBufferInfo ( c ) ; BufferStrategy bufferStrategy ; if ( info != null && info . isInSync ( ) && ( bufferStrategy = info . getBufferStrategy ( _BO... | 203 |
java-test-1292 | java | What does the code remove at the specified index ? | the segment | public void remove Segment ( int shape Index , int segment Index ) { List < WKT Segment List > shape List = segment List . get ( shape Index ) ; if ( ( segment Index >= NUM ) && ( segment Index < shape List . size ( ) ) ) { shape List . remove ( segment Index ) ; } } | public void removeSegment ( int shapeIndex , int segmentIndex ) { List < WKTSegmentList > shapeList = segmentList . get ( shapeIndex ) ; if ( ( segmentIndex >= _NUM ) && ( segmentIndex < shapeList . size ( ) ) ) { shapeList . remove ( segmentIndex ) ; } } | 65 |
java-test-1293 | java | What contain it ? | all categories | public void deregister Service Provider ( Object provider ) { if ( provider == null ) { throw new Illegal Argument Exception ( STRING ) ; } Iterator regs = get Sub Registries ( provider ) ; while ( regs . has Next ( ) ) { Sub Registry reg = ( Sub Registry ) regs . next ( ) ; reg . deregister Service Provider ( provider... | public void deregisterServiceProvider ( Object provider ) { if ( provider == null ) { throw new IllegalArgumentException ( STRING ) ; } Iterator regs = getSubRegistries ( provider ) ; while ( regs . hasNext ( ) ) { SubRegistry reg = ( SubRegistry ) regs . next ( ) ; reg . deregisterServiceProvider ( provider ) ; } } | 72 |
java-test-1294 | java | What does the code remove from all categories that contain it ? | a service provider object | public void deregister Service Provider ( Object provider ) { if ( provider == null ) { throw new Illegal Argument Exception ( STRING ) ; } Iterator regs = get Sub Registries ( provider ) ; while ( regs . has Next ( ) ) { Sub Registry reg = ( Sub Registry ) regs . next ( ) ; reg . deregister Service Provider ( provider... | public void deregisterServiceProvider ( Object provider ) { if ( provider == null ) { throw new IllegalArgumentException ( STRING ) ; } Iterator regs = getSubRegistries ( provider ) ; while ( regs . hasNext ( ) ) { SubRegistry reg = ( SubRegistry ) regs . next ( ) ; reg . deregisterServiceProvider ( provider ) ; } } | 72 |
java-test-1295 | java | When be this be some html containing an " a " element with the " href " attribute linking to the to the pdf ? | br / > < br / > | private static String read Text Date ( final Reader r ) throws IO Exception { final Buffered Reader br = new Buffered Reader ( r ) ; String Builder text Data = new String Builder ( ) ; String line = br . read Line ( ) ; while ( line != null ) { text Data . append ( line ) ; line = br . read Line ( ) ; } br . close ( ) ... | private static String readTextDate ( final Reader r ) throws IOException { final BufferedReader br = new BufferedReader ( r ) ; StringBuilder textData = new StringBuilder ( ) ; String line = br . readLine ( ) ; while ( line != null ) { textData . append ( line ) ; line = br . readLine ( ) ; } br . close ( ) ; return te... | 89 |
java-test-1296 | java | What is containing an " a " element with the " href " attribute linking to the to the pdf ? | some html | private static String read Text Date ( final Reader r ) throws IO Exception { final Buffered Reader br = new Buffered Reader ( r ) ; String Builder text Data = new String Builder ( ) ; String line = br . read Line ( ) ; while ( line != null ) { text Data . append ( line ) ; line = br . read Line ( ) ; } br . close ( ) ... | private static String readTextDate ( final Reader r ) throws IOException { final BufferedReader br = new BufferedReader ( r ) ; StringBuilder textData = new StringBuilder ( ) ; String line = br . readLine ( ) ; while ( line != null ) { textData . append ( line ) ; line = br . readLine ( ) ; } br . close ( ) ; return te... | 89 |
java-test-1297 | java | What do some html contain ? | an " a " element with the " href " attribute linking to the to the pdf | private static String read Text Date ( final Reader r ) throws IO Exception { final Buffered Reader br = new Buffered Reader ( r ) ; String Builder text Data = new String Builder ( ) ; String line = br . read Line ( ) ; while ( line != null ) { text Data . append ( line ) ; line = br . read Line ( ) ; } br . close ( ) ... | private static String readTextDate ( final Reader r ) throws IOException { final BufferedReader br = new BufferedReader ( r ) ; StringBuilder textData = new StringBuilder ( ) ; String line = br . readLine ( ) ; while ( line != null ) { textData . append ( line ) ; line = br . readLine ( ) ; } br . close ( ) ; return te... | 89 |
java-test-1298 | java | Where does a fixed rate cash flow vector , equivalent to the input vector , have the required npv according to the given term structure ? | the fixed rate | public double atm Rate ( final Leg leg , final Handle < Yield Term Structure > discount Curve , final Date settlement Date , final Date npv Date , final int ex Dividend Days , double npv ) { final double bps = bps ( leg , discount Curve , settlement Date , npv Date , ex Dividend Days ) ; if ( npv == NUM ) { npv = npv (... | public double atmRate ( final Leg leg , final Handle < YieldTermStructure > discountCurve , final Date settlementDate , final Date npvDate , final int exDividendDays , double npv ) { final double bps = bps ( leg , discountCurve , settlementDate , npvDate , exDividendDays ) ; if ( npv == _NUM ) { npv = npv ( leg , disco... | 98 |
java-test-1299 | java | How does a fixed rate cash flow vector , equivalent to the input vector , have the required npv the fixed rate ? | according to the given term structure | public double atm Rate ( final Leg leg , final Handle < Yield Term Structure > discount Curve , final Date settlement Date , final Date npv Date , final int ex Dividend Days , double npv ) { final double bps = bps ( leg , discount Curve , settlement Date , npv Date , ex Dividend Days ) ; if ( npv == NUM ) { npv = npv (... | public double atmRate ( final Leg leg , final Handle < YieldTermStructure > discountCurve , final Date settlementDate , final Date npvDate , final int exDividendDays , double npv ) { final double bps = bps ( leg , discountCurve , settlementDate , npvDate , exDividendDays ) ; if ( npv == _NUM ) { npv = npv ( leg , disco... | 98 |
java-test-1300 | java | What does a fixed rate cash flow vector , equivalent to the input vector , have the fixed rate according to the given term structure ? | the required npv | public double atm Rate ( final Leg leg , final Handle < Yield Term Structure > discount Curve , final Date settlement Date , final Date npv Date , final int ex Dividend Days , double npv ) { final double bps = bps ( leg , discount Curve , settlement Date , npv Date , ex Dividend Days ) ; if ( npv == NUM ) { npv = npv (... | public double atmRate ( final Leg leg , final Handle < YieldTermStructure > discountCurve , final Date settlementDate , final Date npvDate , final int exDividendDays , double npv ) { final double bps = bps ( leg , discountCurve , settlementDate , npvDate , exDividendDays ) ; if ( npv == _NUM ) { npv = npv ( leg , disco... | 98 |
java-test-1301 | java | Where does the result be the fixed rate for which a fixed rate cash flow vector , equivalent to the input vector , has the required npv according to the given term structure ? | at - | public double atm Rate ( final Leg leg , final Handle < Yield Term Structure > discount Curve , final Date settlement Date , final Date npv Date , final int ex Dividend Days , double npv ) { final double bps = bps ( leg , discount Curve , settlement Date , npv Date , ex Dividend Days ) ; if ( npv == NUM ) { npv = npv (... | public double atmRate ( final Leg leg , final Handle < YieldTermStructure > discountCurve , final Date settlementDate , final Date npvDate , final int exDividendDays , double npv ) { final double bps = bps ( leg , discountCurve , settlementDate , npvDate , exDividendDays ) ; if ( npv == _NUM ) { npv = npv ( leg , disco... | 98 |
java-test-1302 | java | How did which contain a map document ? | as per the prefs dtd | static void import Map ( Input Stream is , Map < String , String > m ) throws IO Exception , Invalid Preferences Format Exception { try { Document doc = load Prefs Doc ( is ) ; Element xml Map = doc . get Document Element ( ) ; String map Version = xml Map . get Attribute ( STRING ) ; if ( map Version . compare To ( MA... | static void importMap ( InputStream is , Map < String , String > m ) throws IOException , InvalidPreferencesFormatException { try { Document doc = loadPrefsDoc ( is ) ; Element xmlMap = doc . getDocumentElement ( ) ; String mapVersion = xmlMap . getAttribute ( STRING ) ; if ( mapVersion . compareTo ( MAP_XML_VERSION ) ... | 197 |
java-test-1303 | java | What did which contain as per the prefs dtd ? | a map document | static void import Map ( Input Stream is , Map < String , String > m ) throws IO Exception , Invalid Preferences Format Exception { try { Document doc = load Prefs Doc ( is ) ; Element xml Map = doc . get Document Element ( ) ; String map Version = xml Map . get Attribute ( STRING ) ; if ( map Version . compare To ( MA... | static void importMap ( InputStream is , Map < String , String > m ) throws IOException , InvalidPreferencesFormatException { try { Document doc = loadPrefsDoc ( is ) ; Element xmlMap = doc . getDocumentElement ( ) ; String mapVersion = xmlMap . getAttribute ( STRING ) ; if ( mapVersion . compareTo ( MAP_XML_VERSION ) ... | 197 |
java-test-1304 | java | What will it contain if this map is empty when this method returns ? | exactly the key - value pairs int the xml - document | static void import Map ( Input Stream is , Map < String , String > m ) throws IO Exception , Invalid Preferences Format Exception { try { Document doc = load Prefs Doc ( is ) ; Element xml Map = doc . get Document Element ( ) ; String map Version = xml Map . get Attribute ( STRING ) ; if ( map Version . compare To ( MA... | static void importMap ( InputStream is , Map < String , String > m ) throws IOException , InvalidPreferencesFormatException { try { Document doc = loadPrefsDoc ( is ) ; Element xmlMap = doc . getDocumentElement ( ) ; String mapVersion = xmlMap . getAttribute ( STRING ) ; if ( mapVersion . compareTo ( MAP_XML_VERSION ) ... | 197 |
java-test-1308 | java | What does the code get ? | a temporarystore . lazily initialized once per test class | private static Temporary Store temporary Store ( ) { if ( temporary Store != null ) { return temporary Store ; } Uncaught Exception Handler uncaught Exception Handler = Thread . get Default Uncaught Exception Handler ( ) ; temporary Store = new Temporary Store ( ) ; Thread . set Default Uncaught Exception Handler ( unc... | private static TemporaryStore temporaryStore ( ) { if ( temporaryStore != null ) { return temporaryStore ; } UncaughtExceptionHandler uncaughtExceptionHandler = Thread . getDefaultUncaughtExceptionHandler ( ) ; temporaryStore = new TemporaryStore ( ) ; Thread . setDefaultUncaughtExceptionHandler ( uncaughtExceptionHand... | 66 |
java-test-1309 | java | What does the code decompose ? | a linestring given as array of coordinates at a vertical line | protected static Coordinate [ ] [ ] decompose ( double dateline , Coordinate [ ] coordinates ) { int offset = NUM ; Array List < Coordinate [ ] > parts = new Array List < > ( ) ; double shift = coordinates [ NUM ] . x > DATELINE ? DATELINE : ( coordinates [ NUM ] . x < - DATELINE ? - DATELINE : NUM ) ; for ( int i = NU... | protected static Coordinate [ ] [ ] decompose ( double dateline , Coordinate [ ] coordinates ) { int offset = _NUM ; ArrayList < Coordinate [ ] > parts = new ArrayList < > ( ) ; double shift = coordinates [ _NUM ] . x > DATELINE ? DATELINE : ( coordinates [ _NUM ] . x < - DATELINE ? - DATELINE : _NUM ) ; for ( int i = ... | 373 |
java-test-1310 | java | Where did a linestring give as array of coordinates ? | at a vertical line | protected static Coordinate [ ] [ ] decompose ( double dateline , Coordinate [ ] coordinates ) { int offset = NUM ; Array List < Coordinate [ ] > parts = new Array List < > ( ) ; double shift = coordinates [ NUM ] . x > DATELINE ? DATELINE : ( coordinates [ NUM ] . x < - DATELINE ? - DATELINE : NUM ) ; for ( int i = NU... | protected static Coordinate [ ] [ ] decompose ( double dateline , Coordinate [ ] coordinates ) { int offset = _NUM ; ArrayList < Coordinate [ ] > parts = new ArrayList < > ( ) ; double shift = coordinates [ _NUM ] . x > DATELINE ? DATELINE : ( coordinates [ _NUM ] . x < - DATELINE ? - DATELINE : _NUM ) ; for ( int i = ... | 373 |
java-test-1311 | java | What returns passwords , decrypts data , etc ? | sensitive methods | public static boolean is Caller Valid ( String class Name ) { if ( ! check Caller ) { return ( BOOL ) ; } String parent Class = get Parent Class ( class Name ) ; for ( int i = NUM ; i < VALID PACKAGES . length ; i ++ ) { if ( parent Class . starts With ( VALID PACKAGES [ i ] ) ) { return ( BOOL ) ; } } for ( int i = NU... | public static boolean isCallerValid ( String className ) { if ( ! checkCaller ) { return ( _BOOL ) ; } String parentClass = getParentClass ( className ) ; for ( int i = _NUM ; i < VALID_PACKAGES . length ; i ++ ) { if ( parentClass . startsWith ( VALID_PACKAGES [ i ] ) ) { return ( _BOOL ) ; } } for ( int i = _NUM ; i ... | 124 |
java-test-1312 | java | What does sensitive methods return ? | passwords , decrypts data , etc | public static boolean is Caller Valid ( String class Name ) { if ( ! check Caller ) { return ( BOOL ) ; } String parent Class = get Parent Class ( class Name ) ; for ( int i = NUM ; i < VALID PACKAGES . length ; i ++ ) { if ( parent Class . starts With ( VALID PACKAGES [ i ] ) ) { return ( BOOL ) ; } } for ( int i = NU... | public static boolean isCallerValid ( String className ) { if ( ! checkCaller ) { return ( _BOOL ) ; } String parentClass = getParentClass ( className ) ; for ( int i = _NUM ; i < VALID_PACKAGES . length ; i ++ ) { if ( parentClass . startsWith ( VALID_PACKAGES [ i ] ) ) { return ( _BOOL ) ; } } for ( int i = _NUM ; i ... | 124 |
java-test-1313 | java | What do the calling class have ? | the privilege to execute sensitive methods which returns passwords , decrypts data , etc | public static boolean is Caller Valid ( String class Name ) { if ( ! check Caller ) { return ( BOOL ) ; } String parent Class = get Parent Class ( class Name ) ; for ( int i = NUM ; i < VALID PACKAGES . length ; i ++ ) { if ( parent Class . starts With ( VALID PACKAGES [ i ] ) ) { return ( BOOL ) ; } } for ( int i = NU... | public static boolean isCallerValid ( String className ) { if ( ! checkCaller ) { return ( _BOOL ) ; } String parentClass = getParentClass ( className ) ; for ( int i = _NUM ; i < VALID_PACKAGES . length ; i ++ ) { if ( parentClass . startsWith ( VALID_PACKAGES [ i ] ) ) { return ( _BOOL ) ; } } for ( int i = _NUM ; i ... | 124 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.