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-3457 | java | What builds in snapshot ? | neighborhood map for all nodes | public static Map < UUID , Collection < Cluster Node > > neighbors ( Collection < Cluster Node > top Snapshot ) { Map < String , Collection < Cluster Node > > mac Map = new Hash Map < > ( top Snapshot . size ( ) , NUM ) ; for ( Cluster Node node : top Snapshot ) { String macs = node . attribute ( Ignite Node Attributes... | public static Map < UUID , Collection < ClusterNode > > neighbors ( Collection < ClusterNode > topSnapshot ) { Map < String , Collection < ClusterNode > > macMap = new HashMap < > ( topSnapshot . size ( ) , _NUM ) ; for ( ClusterNode node : topSnapshot ) { String macs = node . attribute ( IgniteNodeAttributes . ATTR_MA... | 193 |
java-test-3461 | java | What does the code generate ? | a list of highlighted query fragments for each item in a list of documents | @ Override @ Suppress Warnings ( STRING ) public Named List < Object > do Highlighting ( Doc List docs , Query query , Solr Query Request req , String [ ] default Fields ) throws IO Exception { Solr Params params = req . get Params ( ) ; if ( ! is Highlighting Enabled ( params ) ) return null ; Solr Index Searcher sear... | @ Override @ SuppressWarnings ( STRING ) public NamedList < Object > doHighlighting ( DocList docs , Query query , SolrQueryRequest req , String [ ] defaultFields ) throws IOException { SolrParams params = req . getParams ( ) ; if ( ! isHighlightingEnabled ( params ) ) return null ; SolrIndexSearcher searcher = req . g... | 455 |
java-test-3462 | java | What does the code check ? | the given word for derived adjectives like " magical " or " nomadic " | public static boolean is Derived Adjective ( final String word ) { if ( word . length ( ) > NUM ) { if ( word . ends With ( STRING ) || word . ends With ( STRING ) ) return BOOL ; if ( word . ends With ( STRING ) ) return BOOL ; } return BOOL ; } | public static boolean isDerivedAdjective ( final String word ) { if ( word . length ( ) > _NUM ) { if ( word . endsWith ( STRING ) || word . endsWith ( STRING ) ) return _BOOL ; if ( word . endsWith ( STRING ) ) return _BOOL ; } return _BOOL ; } | 62 |
java-test-3465 | java | How does the filename return ? | according to the rules in mappings | String rename File ( String input Filename ) { for ( Pattern search Exp : regex Mappings . key Set ( ) ) { Matcher matcher = search Exp . matcher ( input Filename ) ; if ( matcher . find ( ) ) { String renamed = matcher . replace First ( regex Mappings . get ( search Exp ) ) ; return FILE SEP CHAR MATCHER . trim Leadin... | String renameFile ( String inputFilename ) { for ( Pattern searchExp : regexMappings . keySet ( ) ) { Matcher matcher = searchExp . matcher ( inputFilename ) ; if ( matcher . find ( ) ) { String renamed = matcher . replaceFirst ( regexMappings . get ( searchExp ) ) ; return FILE_SEP_CHAR_MATCHER . trimLeadingFrom ( ren... | 92 |
java-test-3466 | java | What does this define also ? | the construction order | private Iterable < Fragment Constructor > create Constructors ( ) { return Collections . unmodifiable List ( Arrays . as List ( new Biome Data Constructor ( Resolution . QUARTER ) , new End Islands Constructor ( ) , new Image Constructor ( Resolution . QUARTER , Layer Ids . BACKGROUND ) , new Image Constructor ( Resolu... | private Iterable < FragmentConstructor > createConstructors ( ) { return Collections . unmodifiableList ( Arrays . asList ( new BiomeDataConstructor ( Resolution . QUARTER ) , new EndIslandsConstructor ( ) , new ImageConstructor ( Resolution . QUARTER , LayerIds . BACKGROUND ) , new ImageConstructor ( Resolution . CHUN... | 70 |
java-test-3467 | java | Does the code accept new queries ? | No | public void shutdown Now ( ) { shutdown = BOOL ; final Future < ? > f = engine Future . get ( ) ; if ( f != null ) { if ( log . is Info Enabled ( ) ) log . info ( STRING + this ) ; f . cancel ( BOOL ) ; } final Executor Service s = engine Service . get ( ) ; if ( s != null ) { if ( log . is Info Enabled ( ) ) log . inf... | public void shutdownNow ( ) { shutdown = _BOOL ; final Future < ? > f = engineFuture . get ( ) ; if ( f != null ) { if ( log . isInfoEnabled ( ) ) log . info ( STRING + this ) ; f . cancel ( _BOOL ) ; } final ExecutorService s = engineService . get ( ) ; if ( s != null ) { if ( log . isInfoEnabled ( ) ) log . info ( ST... | 235 |
java-test-3468 | java | What does the code not accept ? | new queries | public void shutdown Now ( ) { shutdown = BOOL ; final Future < ? > f = engine Future . get ( ) ; if ( f != null ) { if ( log . is Info Enabled ( ) ) log . info ( STRING + this ) ; f . cancel ( BOOL ) ; } final Executor Service s = engine Service . get ( ) ; if ( s != null ) { if ( log . is Info Enabled ( ) ) log . inf... | public void shutdownNow ( ) { shutdown = _BOOL ; final Future < ? > f = engineFuture . get ( ) ; if ( f != null ) { if ( log . isInfoEnabled ( ) ) log . info ( STRING + this ) ; f . cancel ( _BOOL ) ; } final ExecutorService s = engineService . get ( ) ; if ( s != null ) { if ( log . isInfoEnabled ( ) ) log . info ( ST... | 235 |
java-test-3469 | java | Does the code halt any running binding set chunk tasks ? | No | public void shutdown Now ( ) { shutdown = BOOL ; final Future < ? > f = engine Future . get ( ) ; if ( f != null ) { if ( log . is Info Enabled ( ) ) log . info ( STRING + this ) ; f . cancel ( BOOL ) ; } final Executor Service s = engine Service . get ( ) ; if ( s != null ) { if ( log . is Info Enabled ( ) ) log . inf... | public void shutdownNow ( ) { shutdown = _BOOL ; final Future < ? > f = engineFuture . get ( ) ; if ( f != null ) { if ( log . isInfoEnabled ( ) ) log . info ( STRING + this ) ; f . cancel ( _BOOL ) ; } final ExecutorService s = engineService . get ( ) ; if ( s != null ) { if ( log . isInfoEnabled ( ) ) log . info ( ST... | 235 |
java-test-3470 | java | What does the code not halt ? | any running binding set chunk tasks | public void shutdown Now ( ) { shutdown = BOOL ; final Future < ? > f = engine Future . get ( ) ; if ( f != null ) { if ( log . is Info Enabled ( ) ) log . info ( STRING + this ) ; f . cancel ( BOOL ) ; } final Executor Service s = engine Service . get ( ) ; if ( s != null ) { if ( log . is Info Enabled ( ) ) log . inf... | public void shutdownNow ( ) { shutdown = _BOOL ; final Future < ? > f = engineFuture . get ( ) ; if ( f != null ) { if ( log . isInfoEnabled ( ) ) log . info ( STRING + this ) ; f . cancel ( _BOOL ) ; } final ExecutorService s = engineService . get ( ) ; if ( s != null ) { if ( log . isInfoEnabled ( ) ) log . info ( ST... | 235 |
java-test-3471 | java | What is not stopped in that case ? | the work | public static boolean cancel Potential Work ( Object data , Image View image View ) { final Bitmap Worker Task bitmap Worker Task = get Bitmap Worker Task ( image View ) ; if ( bitmap Worker Task != null ) { final Object bitmap Data = bitmap Worker Task . m Data ; if ( bitmap Data == null || ! bitmap Data . equals ( da... | public static boolean cancelPotentialWork ( Object data , ImageView imageView ) { final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask ( imageView ) ; if ( bitmapWorkerTask != null ) { final Object bitmapData = bitmapWorkerTask . mData ; if ( bitmapData == null || ! bitmapData . equals ( data ) ) { bitmapWorke... | 112 |
java-test-3472 | java | Is the work stopped in that case ? | No | public static boolean cancel Potential Work ( Object data , Image View image View ) { final Bitmap Worker Task bitmap Worker Task = get Bitmap Worker Task ( image View ) ; if ( bitmap Worker Task != null ) { final Object bitmap Data = bitmap Worker Task . m Data ; if ( bitmap Data == null || ! bitmap Data . equals ( da... | public static boolean cancelPotentialWork ( Object data , ImageView imageView ) { final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask ( imageView ) ; if ( bitmapWorkerTask != null ) { final Object bitmapData = bitmapWorkerTask . mData ; if ( bitmapData == null || ! bitmapData . equals ( data ) ) { bitmapWorke... | 112 |
java-test-3473 | java | Where is the work not stopped ? | in that case | public static boolean cancel Potential Work ( Object data , Image View image View ) { final Bitmap Worker Task bitmap Worker Task = get Bitmap Worker Task ( image View ) ; if ( bitmap Worker Task != null ) { final Object bitmap Data = bitmap Worker Task . m Data ; if ( bitmap Data == null || ! bitmap Data . equals ( da... | public static boolean cancelPotentialWork ( Object data , ImageView imageView ) { final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask ( imageView ) ; if ( bitmapWorkerTask != null ) { final Object bitmapData = bitmapWorkerTask . mData ; if ( bitmapData == null || ! bitmapData . equals ( data ) ) { bitmapWorke... | 112 |
java-test-3474 | java | What does the code add to the consistency group with the passed name ? | the volumes with the passed names | public void add Volumes To Consistency Group ( String cg Name , List < String > virtual Volume Names ) throws V Plex Api Exception { s logger . info ( STRING , base URI ) ; cg Mgr . add Volumes To Consistency Group ( cg Name , virtual Volume Names ) ; } | public void addVolumesToConsistencyGroup ( String cgName , List < String > virtualVolumeNames ) throws VPlexApiException { s_logger . info ( STRING , _baseURI ) ; _cgMgr . addVolumesToConsistencyGroup ( cgName , virtualVolumeNames ) ; } | 55 |
java-test-3475 | java | For what purpose does the code parse the response stream ? | for a request based upon request properties and an expected result type | public < E > E parse Response Data ( G Data Request req , Class < E > result Type ) throws IO Exception , Service Exception { Input Properties input Properties = new Client Input Properties ( req , result Type ) ; return parse Response Data ( req . get Parse Source ( ) , input Properties , result Type ) ; } | public < E > E parseResponseData ( GDataRequest req , Class < E > resultType ) throws IOException , ServiceException { InputProperties inputProperties = new ClientInputProperties ( req , resultType ) ; return parseResponseData ( req . getParseSource ( ) , inputProperties , resultType ) ; } | 65 |
java-test-3476 | java | What does the code parse for a request based upon request properties and an expected result type ? | the response stream | public < E > E parse Response Data ( G Data Request req , Class < E > result Type ) throws IO Exception , Service Exception { Input Properties input Properties = new Client Input Properties ( req , result Type ) ; return parse Response Data ( req . get Parse Source ( ) , input Properties , result Type ) ; } | public < E > E parseResponseData ( GDataRequest req , Class < E > resultType ) throws IOException , ServiceException { InputProperties inputProperties = new ClientInputProperties ( req , resultType ) ; return parseResponseData ( req . getParseSource ( ) , inputProperties , resultType ) ; } | 65 |
java-test-3477 | java | How will the parser be selected ? | based upon the request alt type or response content type | public < E > E parse Response Data ( G Data Request req , Class < E > result Type ) throws IO Exception , Service Exception { Input Properties input Properties = new Client Input Properties ( req , result Type ) ; return parse Response Data ( req . get Parse Source ( ) , input Properties , result Type ) ; } | public < E > E parseResponseData ( GDataRequest req , Class < E > resultType ) throws IOException , ServiceException { InputProperties inputProperties = new ClientInputProperties ( req , resultType ) ; return parseResponseData ( req . getParseSource ( ) , inputProperties , resultType ) ; } | 65 |
java-test-3479 | java | What are the imagereaderloaders used if filepath is a file ? | to try to load and place the image | protected void load Image ( String file Path , OM Graphic List ret ) { File file = new File ( file Path ) ; if ( file . exists ( ) && file . is Directory ( ) ) { String [ ] files = file . list ( ) ; for ( int i = NUM ; i < files . length ; i ++ ) { load Image ( file Path + STRING + files [ i ] , ret ) ; } } else { fire... | protected void loadImage ( String filePath , OMGraphicList ret ) { File file = new File ( filePath ) ; if ( file . exists ( ) && file . isDirectory ( ) ) { String [ ] files = file . list ( ) ; for ( int i = _NUM ; i < files . length ; i ++ ) { loadImage ( filePath + STRING + files [ i ] , ret ) ; } } else { fireStatusU... | 330 |
java-test-3481 | java | How does the code format ? | in a readable way | public static void dump Cursor ( I Cursor cursor , int max Column Width ) { String Builder builder = new String Builder ( STRING ) ; dump Cursor ( cursor , max Column Width , builder ) ; Logger . d ( Logger . LOG TAG , builder . to String ( ) ) ; } | public static void dumpCursor ( ICursor cursor , int maxColumnWidth ) { StringBuilder builder = new StringBuilder ( STRING ) ; dumpCursor ( cursor , maxColumnWidth , builder ) ; Logger . d ( Logger . LOG_TAG , builder . toString ( ) ) ; } | 57 |
java-test-3483 | java | What does the code create ? | an export mask object | public static Export Mask create Export Mask ( Db Client db Client , Export Group export Group , URI sd Uri , String mask Name ) throws Database Exception { Export Mask export Mask = new Export Mask ( ) ; export Mask . set Id ( URI Util . create Id ( Export Mask . class ) ) ; export Mask . set Mask Name ( mask Name ) ;... | public static ExportMask createExportMask ( DbClient dbClient , ExportGroup exportGroup , URI sdUri , String maskName ) throws DatabaseException { ExportMask exportMask = new ExportMask ( ) ; exportMask . setId ( URIUtil . createId ( ExportMask . class ) ) ; exportMask . setMaskName ( maskName ) ; exportMask . setStora... | 123 |
java-test-3484 | java | Where is by the controller service created the actual mask ? | at the array | public static Export Mask create Export Mask ( Db Client db Client , Export Group export Group , URI sd Uri , String mask Name ) throws Database Exception { Export Mask export Mask = new Export Mask ( ) ; export Mask . set Id ( URI Util . create Id ( Export Mask . class ) ) ; export Mask . set Mask Name ( mask Name ) ;... | public static ExportMask createExportMask ( DbClient dbClient , ExportGroup exportGroup , URI sdUri , String maskName ) throws DatabaseException { ExportMask exportMask = new ExportMask ( ) ; exportMask . setId ( URIUtil . createId ( ExportMask . class ) ) ; exportMask . setMaskName ( maskName ) ; exportMask . setStora... | 123 |
java-test-3485 | java | What is created the actual mask at the array ? | by the controller service | public static Export Mask create Export Mask ( Db Client db Client , Export Group export Group , URI sd Uri , String mask Name ) throws Database Exception { Export Mask export Mask = new Export Mask ( ) ; export Mask . set Id ( URI Util . create Id ( Export Mask . class ) ) ; export Mask . set Mask Name ( mask Name ) ;... | public static ExportMask createExportMask ( DbClient dbClient , ExportGroup exportGroup , URI sdUri , String maskName ) throws DatabaseException { ExportMask exportMask = new ExportMask ( ) ; exportMask . setId ( URIUtil . createId ( ExportMask . class ) ) ; exportMask . setMaskName ( maskName ) ; exportMask . setStora... | 123 |
java-test-3487 | java | What do a set contain ? | this charset ' s aliases | public final Set < String > aliases ( ) { if ( alias Set != null ) return alias Set ; int n = aliases . length ; Hash Set < String > hs = new Hash Set < String > ( n ) ; for ( int i = NUM ; i < n ; i ++ ) hs . add ( aliases [ i ] ) ; alias Set = Collections . unmodifiable Set ( hs ) ; return alias Set ; } | public final Set < String > aliases ( ) { if ( aliasSet != null ) return aliasSet ; int n = aliases . length ; HashSet < String > hs = new HashSet < String > ( n ) ; for ( int i = _NUM ; i < n ; i ++ ) hs . add ( aliases [ i ] ) ; aliasSet = Collections . unmodifiableSet ( hs ) ; return aliasSet ; } | 85 |
java-test-3489 | java | What causes truncation exceptions to be thrown ? | server - side prepared statements | public void test Bug 18041 ( ) throws Exception { if ( version Meets Minimum ( NUM , NUM ) ) { create Table ( STRING , STRING ) ; Properties props = new Properties ( ) ; props . set Property ( STRING , STRING ) ; props . set Property ( STRING , STRING ) ; Connection trunc Conn = null ; Prepared Statement stm = null ; t... | public void testBug18041 ( ) throws Exception { if ( versionMeetsMinimum ( _NUM , _NUM ) ) { createTable ( STRING , STRING ) ; Properties props = new Properties ( ) ; props . setProperty ( STRING , STRING ) ; props . setProperty ( STRING , STRING ) ; Connection truncConn = null ; PreparedStatement stm = null ; try { tr... | 157 |
java-test-3490 | java | What do server - side prepared statements because ? | truncation exceptions to be thrown | public void test Bug 18041 ( ) throws Exception { if ( version Meets Minimum ( NUM , NUM ) ) { create Table ( STRING , STRING ) ; Properties props = new Properties ( ) ; props . set Property ( STRING , STRING ) ; props . set Property ( STRING , STRING ) ; Connection trunc Conn = null ; Prepared Statement stm = null ; t... | public void testBug18041 ( ) throws Exception { if ( versionMeetsMinimum ( _NUM , _NUM ) ) { createTable ( STRING , STRING ) ; Properties props = new Properties ( ) ; props . setProperty ( STRING , STRING ) ; props . setProperty ( STRING , STRING ) ; Connection truncConn = null ; PreparedStatement stm = null ; try { tr... | 157 |
java-test-3491 | java | What is using to discover any case where it can not make naive assumptions about the number of chars , and how to index through them this ? | a caller | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3492 | java | What do a caller discover ? | any case where it can not make naive assumptions about the number of chars , and how to index through them | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3493 | java | What can it not make any case ? | naive assumptions about the number of chars | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3494 | java | What does not map 1 in straightforward left - > right ordering a case ? | char - > glyph | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3495 | java | Does char - > glyph map in straightforward left - > right ordering 1 a case ? | No | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3496 | java | Till when be these be one unicode character - > one glyph all all from a rendering perspective ? | still | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3497 | java | What does anything in the text trigger ? | a case where char - > glyph does not map 1 : 1 in straightforward left - > right ordering | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3498 | java | Can it make naive assumptions about the number of chars any case ? | No | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3499 | java | Why are scripts not treated as such ? | due to jdk implementations | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3500 | java | How be these be one unicode character - > one glyph all all still ? | from a rendering perspective | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3501 | java | Does char - > glyph map 1 a case in straightforward left - > right ordering ? | No | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3502 | java | What does char - > glyph not map 1 a case ? | in straightforward left - > right ordering | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3503 | java | What does char - > glyph not map in straightforward left - > right ordering a case ? | 1 | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3504 | java | What does this method accept ? | the ' char ' type | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3505 | java | Where does char - > glyph not map 1 in straightforward left - > right ordering ? | a case | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3506 | java | Does char - > glyph map 1 in straightforward left - > right ordering a case ? | No | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3507 | java | What is using this to discover any case where it can not make naive assumptions about the number of chars , and how to index through them ? | a caller | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3508 | java | Where can it not make naive assumptions about the number of chars ? | any case | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3509 | java | What triggers a case where char - > glyph does not map 1 : 1 in straightforward left - > right ordering ? | anything in the text | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3510 | java | What does not map 1 a case ? | char - > glyph | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3511 | java | What might require it ? | scripts | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3512 | java | What is a caller using to discover any case where it can not make naive assumptions about the number of chars , and how to index through them ? | this | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3513 | java | What is a caller using this ? | to discover any case where it can not make naive assumptions about the number of chars , and how to index through them | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3514 | java | What discovers any case where it can not make naive assumptions about the number of chars , and how to index through them ? | a caller | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3515 | java | What do it have in such a case ? | a ' true ' return | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3516 | java | What may it need if a caller is using this to discover any case where it can not make naive assumptions about the number of chars , and how to index through them if a caller is using this to discover any case where it can not make naive assumptions about the number of chars , and how to index through them ? | the option to have a ' true ' return in such a case | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3517 | java | What does not map in straightforward left - > right ordering 1 a case ? | char - > glyph | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3518 | java | Where do it have a ' true ' return ? | in such a case | public static boolean is Complex Text ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN LAYOUT CHARCODE ) { continue ; } else if ( is Non Simple Char ( chs [ i ] ) ) { return BOOL ; } } return BOOL ; } | public static boolean isComplexText ( char [ ] chs , int start , int limit ) { for ( int i = start ; i < limit ; i ++ ) { if ( chs [ i ] < MIN_LAYOUT_CHARCODE ) { continue ; } else if ( isNonSimpleChar ( chs [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 73 |
java-test-3519 | java | How do unexport finish ? | in vnxe | private void update FS Export ( File Share fs Obj , Db Client db Client , VN Xe Api Client api Client ) { logger . info ( STRING ) ; FS Export Map exports = fs Obj . get Fs Exports ( ) ; if ( exports == null ) { logger . info ( STRING ) ; return ; } if ( export Info != null ) { File Export export = export Info . get Fi... | private void updateFSExport ( FileShare fsObj , DbClient dbClient , VNXeApiClient apiClient ) { _logger . info ( STRING ) ; FSExportMap exports = fsObj . getFsExports ( ) ; if ( exports == null ) { _logger . info ( STRING ) ; return ; } if ( exportInfo != null ) { FileExport export = exportInfo . getFileExport ( ) ; Fi... | 138 |
java-test-3520 | java | When do fileshare update ? | after unexport finished in vnxe | private void update FS Export ( File Share fs Obj , Db Client db Client , VN Xe Api Client api Client ) { logger . info ( STRING ) ; FS Export Map exports = fs Obj . get Fs Exports ( ) ; if ( exports == null ) { logger . info ( STRING ) ; return ; } if ( export Info != null ) { File Export export = export Info . get Fi... | private void updateFSExport ( FileShare fsObj , DbClient dbClient , VNXeApiClient apiClient ) { _logger . info ( STRING ) ; FSExportMap exports = fsObj . getFsExports ( ) ; if ( exports == null ) { _logger . info ( STRING ) ; return ; } if ( exportInfo != null ) { FileExport export = exportInfo . getFileExport ( ) ; Fi... | 138 |
java-test-3521 | java | What does the code delete by name ? | a kernel | public void delete Kernel ( String name ) { Kernel kernel = get Kernel By Name ( name ) ; if ( kernel != null ) { kernel . dispose ( ) ; Integer old Size = Integer . value Of ( kernel Hash Table . size ( ) ) ; kernel Hash Table . remove ( name ) ; set Dirty And Fire Property Change ( KERNEL LISTLENGTH CHANGED PROPERTY ... | public void deleteKernel ( String name ) { Kernel kernel = getKernelByName ( name ) ; if ( kernel != null ) { kernel . dispose ( ) ; Integer oldSize = Integer . valueOf ( _kernelHashTable . size ( ) ) ; _kernelHashTable . remove ( name ) ; setDirtyAndFirePropertyChange ( KERNEL_LISTLENGTH_CHANGED_PROPERTY , oldSize , I... | 92 |
java-test-3528 | java | What does the code return for the context root ? | the help for the endpoint | @ GET @ Produces ( Media Type . APPLICATION JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new Linked Hash Map < > ( ) ; List < Endpoint Help Dto > endpoints = describe Endpoints ( get Endpoints ( ) ) ; if ( endpoints != null && ! endpoints . i... | @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new LinkedHashMap < > ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ... | 136 |
java-test-3529 | java | For what purpose will it return the method help for the endpoint ? | for a specific endpoint | @ GET @ Produces ( Media Type . APPLICATION JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new Linked Hash Map < > ( ) ; List < Endpoint Help Dto > endpoints = describe Endpoints ( get Endpoints ( ) ) ; if ( endpoints != null && ! endpoints . i... | @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new LinkedHashMap < > ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ... | 136 |
java-test-3530 | java | What will it return for a specific endpoint ? | the method help for the endpoint | @ GET @ Produces ( Media Type . APPLICATION JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new Linked Hash Map < > ( ) ; List < Endpoint Help Dto > endpoints = describe Endpoints ( get Endpoints ( ) ) ; if ( endpoints != null && ! endpoints . i... | @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new LinkedHashMap < > ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ... | 136 |
java-test-3531 | java | What will it return for the context root for the context root ? | the endpoint help for all major endpoints | @ GET @ Produces ( Media Type . APPLICATION JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new Linked Hash Map < > ( ) ; List < Endpoint Help Dto > endpoints = describe Endpoints ( get Endpoints ( ) ) ; if ( endpoints != null && ! endpoints . i... | @ GET @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( STRING ) public Map < String , List < ? extends Object > > help ( ) { Map < String , List < ? > > result = new LinkedHashMap < > ( ) ; List < EndpointHelpDto > endpoints = describeEndpoints ( getEndpoints ( ) ) ; if ( endpoints != null && ! endpoints . isEmpty ... | 136 |
java-test-3532 | java | What evaluates at url ? | text in the interpreter | public static int eval ( String url , String text ) throws IO Exception { String return Value = null ; if ( url . starts With ( STRING ) ) { return Value = do Http ( url , text ) ; } else if ( url . starts With ( STRING ) ) { return Value = do Bsh ( url , text ) ; } else throw new IO Exception ( STRING + STRING ) ; try... | public static int eval ( String url , String text ) throws IOException { String returnValue = null ; if ( url . startsWith ( STRING ) ) { returnValue = doHttp ( url , text ) ; } else if ( url . startsWith ( STRING ) ) { returnValue = doBsh ( url , text ) ; } else throw new IOException ( STRING + STRING ) ; try { return... | 103 |
java-test-3533 | java | Where do text in the interpreter evaluate returning a possible integer return value ? | at url | public static int eval ( String url , String text ) throws IO Exception { String return Value = null ; if ( url . starts With ( STRING ) ) { return Value = do Http ( url , text ) ; } else if ( url . starts With ( STRING ) ) { return Value = do Bsh ( url , text ) ; } else throw new IO Exception ( STRING + STRING ) ; try... | public static int eval ( String url , String text ) throws IOException { String returnValue = null ; if ( url . startsWith ( STRING ) ) { returnValue = doHttp ( url , text ) ; } else if ( url . startsWith ( STRING ) ) { returnValue = doBsh ( url , text ) ; } else throw new IOException ( STRING + STRING ) ; try { return... | 103 |
java-test-3534 | java | How does this method convert the specified password into a key ? | in a deterministic manner | private byte [ ] convert Password To Key ( byte [ ] password ) { try { Message Digest md = Message Digest . get Instance ( STRING ) ; byte [ ] seed = md . digest ( password ) ; Secure Random random = Secure Random . get Instance ( STRING ) ; random . set Seed ( seed ) ; byte [ ] rawkey = new byte [ key Length ] ; rando... | private byte [ ] convertPasswordToKey ( byte [ ] password ) { try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; byte [ ] seed = md . digest ( password ) ; SecureRandom random = SecureRandom . getInstance ( STRING ) ; random . setSeed ( seed ) ; byte [ ] rawkey = new byte [ keyLength ] ; random . nextByt... | 103 |
java-test-3535 | java | What does this method convert into a key in a deterministic manner ? | the specified password | private byte [ ] convert Password To Key ( byte [ ] password ) { try { Message Digest md = Message Digest . get Instance ( STRING ) ; byte [ ] seed = md . digest ( password ) ; Secure Random random = Secure Random . get Instance ( STRING ) ; random . set Seed ( seed ) ; byte [ ] rawkey = new byte [ key Length ] ; rando... | private byte [ ] convertPasswordToKey ( byte [ ] password ) { try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; byte [ ] seed = md . digest ( password ) ; SecureRandom random = SecureRandom . getInstance ( STRING ) ; random . setSeed ( seed ) ; byte [ ] rawkey = new byte [ keyLength ] ; random . nextByt... | 103 |
java-test-3536 | java | What does the code create to the last move - to position ? | a straight - edge record ( i . e a straight line ) from the current drawing position | public void close ( ) { double dx = last Move To . x - pen . x ; double dy = last Move To . y - pen . y ; if ( convert To Twips ) { dx *= Swf Constants . TWIPS PER PIXEL ; dy *= Swf Constants . TWIPS PER PIXEL ; } pen . x = last Move To . x ; pen . y = last Move To . y ; if ( dx == NUM && dy == NUM ) { return ; } else ... | public void close ( ) { double dx = lastMoveTo . x - pen . x ; double dy = lastMoveTo . y - pen . y ; if ( convertToTwips ) { dx *= SwfConstants . TWIPS_PER_PIXEL ; dy *= SwfConstants . TWIPS_PER_PIXEL ; } pen . x = lastMoveTo . x ; pen . y = lastMoveTo . y ; if ( dx == _NUM && dy == _NUM ) { return ; } else { int intd... | 144 |
java-test-3537 | java | In which direction does the code create a straight - edge record ( i . e a straight line ) from the current drawing position ? | to the last move - to position | public void close ( ) { double dx = last Move To . x - pen . x ; double dy = last Move To . y - pen . y ; if ( convert To Twips ) { dx *= Swf Constants . TWIPS PER PIXEL ; dy *= Swf Constants . TWIPS PER PIXEL ; } pen . x = last Move To . x ; pen . y = last Move To . y ; if ( dx == NUM && dy == NUM ) { return ; } else ... | public void close ( ) { double dx = lastMoveTo . x - pen . x ; double dy = lastMoveTo . y - pen . y ; if ( convertToTwips ) { dx *= SwfConstants . TWIPS_PER_PIXEL ; dy *= SwfConstants . TWIPS_PER_PIXEL ; } pen . x = lastMoveTo . x ; pen . y = lastMoveTo . y ; if ( dx == _NUM && dy == _NUM ) { return ; } else { int intd... | 144 |
java-test-3539 | java | What does the code check ? | whether to release the hold partitions | private void check Release ( ) { List < Partition Reader > to Release = new Array List < Partition Reader > ( ) ; for ( Partition Reader p : hold ) { if ( ! p . is Taken ( ) ) { to Release . add ( p ) ; finish ( p ) ; } } hold . remove All ( to Release ) ; } | private void checkRelease ( ) { List < PartitionReader > toRelease = new ArrayList < PartitionReader > ( ) ; for ( PartitionReader p : hold ) { if ( ! p . isTaken ( ) ) { toRelease . add ( p ) ; finish ( p ) ; } } hold . removeAll ( toRelease ) ; } | 70 |
java-test-3540 | java | Why is test case commented normally ? | since it is only useful to print out the ddl statements recorded by the binlog during a mysql server initialization and startup | @ Ignore @ Test public void should Capture Query Event Data ( ) throws Exception { start Client ( null ) ; counters . consume All ( NUM , Time Unit . SECONDS ) ; List < Query Event Data > all Query Events = recorded Event Data ( Query Event Data . class , - NUM ) ; all Query Events . for Each ( null ) ; } | @ Ignore @ Test public void shouldCaptureQueryEventData ( ) throws Exception { startClient ( null ) ; counters . consumeAll ( _NUM , TimeUnit . SECONDS ) ; List < QueryEventData > allQueryEvents = recordedEventData ( QueryEventData . class , - _NUM ) ; allQueryEvents . forEach ( null ) ; } | 70 |
java-test-3541 | java | When did by the binlog record the ddl statements ? | during a mysql server initialization and startup | @ Ignore @ Test public void should Capture Query Event Data ( ) throws Exception { start Client ( null ) ; counters . consume All ( NUM , Time Unit . SECONDS ) ; List < Query Event Data > all Query Events = recorded Event Data ( Query Event Data . class , - NUM ) ; all Query Events . for Each ( null ) ; } | @ Ignore @ Test public void shouldCaptureQueryEventData ( ) throws Exception { startClient ( null ) ; counters . consumeAll ( _NUM , TimeUnit . SECONDS ) ; List < QueryEventData > allQueryEvents = recordedEventData ( QueryEventData . class , - _NUM ) ; allQueryEvents . forEach ( null ) ; } | 70 |
java-test-3544 | java | What does the method have ? | no declared exceptions | private static boolean usable ( Method m , Class c , Class base ) { int mods = m . get Modifiers ( ) ; return ( m . get Return Type ( ) == Proxy Trust Iterator . class && m . get Exception Types ( ) . length == NUM && ( mods & Modifier . STATIC ) == NUM && ( ( mods & ( Modifier . PUBLIC | Modifier . PROTECTED ) ) != NU... | private static boolean usable ( Method m , Class c , Class base ) { int mods = m . getModifiers ( ) ; return ( m . getReturnType ( ) == ProxyTrustIterator . class && m . getExceptionTypes ( ) . length == _NUM && ( mods & Modifier . STATIC ) == _NUM && ( ( mods & ( Modifier . PUBLIC | Modifier . PROTECTED ) ) != _NUM ||... | 107 |
java-test-3545 | java | What have the code assumes ? | that the texts do not have any common prefix or suffix | private Linked List < Diff > diff compute ( String text 1 , String text 2 , boolean checklines , long deadline ) { Linked List < Diff > diffs = new Linked List < Diff > ( ) ; if ( text 1 . length ( ) == NUM ) { diffs . add ( new Diff ( Operation . INSERT , text 2 ) ) ; return diffs ; } if ( text 2 . length ( ) == NUM )... | private LinkedList < Diff > diff_compute ( String text1 , String text2 , boolean checklines , long deadline ) { LinkedList < Diff > diffs = new LinkedList < Diff > ( ) ; if ( text1 . length ( ) == _NUM ) { diffs . add ( new Diff ( Operation . INSERT , text2 ) ) ; return diffs ; } if ( text2 . length ( ) == _NUM ) { dif... | 512 |
java-test-3546 | java | Do the texts have any common prefix or suffix ? | No | private Linked List < Diff > diff compute ( String text 1 , String text 2 , boolean checklines , long deadline ) { Linked List < Diff > diffs = new Linked List < Diff > ( ) ; if ( text 1 . length ( ) == NUM ) { diffs . add ( new Diff ( Operation . INSERT , text 2 ) ) ; return diffs ; } if ( text 2 . length ( ) == NUM )... | private LinkedList < Diff > diff_compute ( String text1 , String text2 , boolean checklines , long deadline ) { LinkedList < Diff > diffs = new LinkedList < Diff > ( ) ; if ( text1 . length ( ) == _NUM ) { diffs . add ( new Diff ( Operation . INSERT , text2 ) ) ; return diffs ; } if ( text2 . length ( ) == _NUM ) { dif... | 512 |
java-test-3547 | java | What does the code find ? | the differences between two texts | private Linked List < Diff > diff compute ( String text 1 , String text 2 , boolean checklines , long deadline ) { Linked List < Diff > diffs = new Linked List < Diff > ( ) ; if ( text 1 . length ( ) == NUM ) { diffs . add ( new Diff ( Operation . INSERT , text 2 ) ) ; return diffs ; } if ( text 2 . length ( ) == NUM )... | private LinkedList < Diff > diff_compute ( String text1 , String text2 , boolean checklines , long deadline ) { LinkedList < Diff > diffs = new LinkedList < Diff > ( ) ; if ( text1 . length ( ) == _NUM ) { diffs . add ( new Diff ( Operation . INSERT , text2 ) ) ; return diffs ; } if ( text2 . length ( ) == _NUM ) { dif... | 512 |
java-test-3548 | java | What do not have any common prefix or suffix ? | the texts | private Linked List < Diff > diff compute ( String text 1 , String text 2 , boolean checklines , long deadline ) { Linked List < Diff > diffs = new Linked List < Diff > ( ) ; if ( text 1 . length ( ) == NUM ) { diffs . add ( new Diff ( Operation . INSERT , text 2 ) ) ; return diffs ; } if ( text 2 . length ( ) == NUM )... | private LinkedList < Diff > diff_compute ( String text1 , String text2 , boolean checklines , long deadline ) { LinkedList < Diff > diffs = new LinkedList < Diff > ( ) ; if ( text1 . length ( ) == _NUM ) { diffs . add ( new Diff ( Operation . INSERT , text2 ) ) ; return diffs ; } if ( text2 . length ( ) == _NUM ) { dif... | 512 |
java-test-3549 | java | What do the texts not have ? | any common prefix or suffix | private Linked List < Diff > diff compute ( String text 1 , String text 2 , boolean checklines , long deadline ) { Linked List < Diff > diffs = new Linked List < Diff > ( ) ; if ( text 1 . length ( ) == NUM ) { diffs . add ( new Diff ( Operation . INSERT , text 2 ) ) ; return diffs ; } if ( text 2 . length ( ) == NUM )... | private LinkedList < Diff > diff_compute ( String text1 , String text2 , boolean checklines , long deadline ) { LinkedList < Diff > diffs = new LinkedList < Diff > ( ) ; if ( text1 . length ( ) == _NUM ) { diffs . add ( new Diff ( Operation . INSERT , text2 ) ) ; return diffs ; } if ( text2 . length ( ) == _NUM ) { dif... | 512 |
java-test-3550 | java | How does the given string representation of the date convert ? | using the format pattern | public static Date parse Date ( final String format , final String date String ) throws DSS Exception { try { final Simple Date Format sdf = new Simple Date Format ( format ) ; final Date date = sdf . parse ( date String ) ; return date ; } catch ( Parse Exception e ) { throw new DSS Exception ( e ) ; } } | public static Date parseDate ( final String format , final String dateString ) throws DSSException { try { final SimpleDateFormat sdf = new SimpleDateFormat ( format ) ; final Date date = sdf . parse ( dateString ) ; return date ; } catch ( ParseException e ) { throw new DSSException ( e ) ; } } | 68 |
java-test-3551 | java | How was a cleartext password obfuscated previously ? | using the xor scrambler | public static char [ ] de Obfuscate ( String e Password ) { if ( e Password == null ) return null ; byte [ ] bytes = null ; try { bytes = Simple Base 64 Encoder . decode ( e Password . substring ( xor Tag . length ( ) ) ) ; } catch ( Exception e ) { return null ; } for ( int i = NUM ; i < bytes . length ; i ++ ) { byte... | public static char [ ] deObfuscate ( String ePassword ) { if ( ePassword == null ) return null ; byte [ ] bytes = null ; try { bytes = SimpleBase64Encoder . decode ( ePassword . substring ( xorTag . length ( ) ) ) ; } catch ( Exception e ) { return null ; } for ( int i = _NUM ; i < bytes . length ; i ++ ) { bytes [ i ]... | 120 |
java-test-3552 | java | What does the code write this instance ? | to byte contiguous memory | @ Override public void write To Parcel ( Parcel dest , int flags ) { dest . write String ( m Name ) ; dest . write Long ( m Date ) ; dest . write Long ( m Cod ) ; final Weather weather = m Weathers . get ( NUM ) ; dest . write Long ( weather . get Id ( ) ) ; dest . write String ( weather . get Main ( ) ) ; dest . write... | @ Override public void writeToParcel ( Parcel dest , int flags ) { dest . writeString ( mName ) ; dest . writeLong ( mDate ) ; dest . writeLong ( mCod ) ; final Weather weather = mWeathers . get ( _NUM ) ; dest . writeLong ( weather . getId ( ) ) ; dest . writeString ( weather . getMain ( ) ) ; dest . writeString ( wea... | 219 |
java-test-3554 | java | For what purpose does the code put the specified builder queue ? | as a write message for the passed characteristic | private void queue Alarm ( Alarm alarm , Transaction Builder builder , Bluetooth Gatt Characteristic characteristic ) { Calendar calendar = alarm . get Alarm Cal ( ) ; int days Mask = NUM ; int max Alarms = NUM ; if ( alarm . get Index ( ) >= max Alarms ) { if ( alarm . is Enabled ( ) ) { GB . toast ( get Context ( ) ,... | private void queueAlarm ( Alarm alarm , TransactionBuilder builder , BluetoothGattCharacteristic characteristic ) { Calendar calendar = alarm . getAlarmCal ( ) ; int daysMask = _NUM ; int maxAlarms = _NUM ; if ( alarm . getIndex ( ) >= maxAlarms ) { if ( alarm . isEnabled ( ) ) { GB . toast ( getContext ( ) , STRING , ... | 185 |
java-test-3556 | java | How does the code read the page ? | with the given i d from this file | @ Override public P read Page ( int page ID ) { try { count Read ( ) ; long offset = ( ( long ) ( header . get Reserved Pages ( ) + page ID ) ) * ( long ) page Size ; byte [ ] buffer = new byte [ page Size ] ; file . seek ( offset ) ; file . read ( buffer ) ; return byte Array To Page ( buffer ) ; } catch ( IO Exceptio... | @ Override public P readPage ( int pageID ) { try { countRead ( ) ; long offset = ( ( long ) ( header . getReservedPages ( ) + pageID ) ) * ( long ) pageSize ; byte [ ] buffer = new byte [ pageSize ] ; file . seek ( offset ) ; file . read ( buffer ) ; return byteArrayToPage ( buffer ) ; } catch ( IOException e ) { thro... | 106 |
java-test-3559 | java | What does the code start if the current index is not already the latest ? | the online reindexer | public synchronized boolean start Reindexer ( String name , boolean force ) throws Reindexer Already Running Exception { Online Reindexer < ? , ? , ? > reindexer = reindexers . get ( name ) ; validate Reindexer Not Running ( reindexer ) ; if ( force || ! is Current Index Version Latest ( name , reindexer ) ) { reindexe... | public synchronized boolean startReindexer ( String name , boolean force ) throws ReindexerAlreadyRunningException { OnlineReindexer < ? , ? , ? > reindexer = reindexers . get ( name ) ; validateReindexerNotRunning ( reindexer ) ; if ( force || ! isCurrentIndexVersionLatest ( name , reindexer ) ) { reindexer . start ( ... | 75 |
java-test-3565 | java | What does the code instantiate ? | the specific payload coordinator used by the specified index | public static < PAYLOAD > Term Payload Coordinator < PAYLOAD > create ( Index i ) { String clz Str = i . get Index Property ( PAYLOAD COORDINATOR CLASS KEY , STRING ) ; try { @ Suppress Warnings ( STRING ) Class < Term Payload Coordinator < PAYLOAD > > clz = ( Class < Term Payload Coordinator < PAYLOAD > > ) Class . fo... | public static < PAYLOAD > TermPayloadCoordinator < PAYLOAD > create ( Index i ) { String clzStr = i . getIndexProperty ( PAYLOAD_COORDINATOR_CLASS_KEY , STRING ) ; try { @ SuppressWarnings ( STRING ) Class < TermPayloadCoordinator < PAYLOAD > > clz = ( Class < TermPayloadCoordinator < PAYLOAD > > ) Class . forName ( cl... | 117 |
java-test-3566 | java | When does npe throw ? | after possibly adding some elements | public void test Add All 3 ( ) { try { Linked Blocking Queue q = new Linked Blocking Queue ( SIZE ) ; Integer [ ] ints = new Integer [ SIZE ] ; for ( int i = NUM ; i < SIZE - NUM ; ++ i ) ints [ i ] = new Integer ( i ) ; q . add All ( Arrays . as List ( ints ) ) ; should Throw ( ) ; } catch ( Null Pointer Exception suc... | public void testAddAll3 ( ) { try { LinkedBlockingQueue q = new LinkedBlockingQueue ( SIZE ) ; Integer [ ] ints = new Integer [ SIZE ] ; for ( int i = _NUM ; i < SIZE - _NUM ; ++ i ) ints [ i ] = new Integer ( i ) ; q . addAll ( Arrays . asList ( ints ) ) ; shouldThrow ( ) ; } catch ( NullPointerException success ) { }... | 92 |
java-test-3569 | java | What does the code perform with debugging output ? | a parse | public void debug parse ( ) throws java . lang . Exception { int act ; symbol lhs sym ; short handle size , lhs sym num ; production tab = production table ( ) ; action tab = action table ( ) ; reduce tab = reduce table ( ) ; debug message ( STRING ) ; init actions ( ) ; user init ( ) ; cur token = scan ( ) ; debug mes... | public void debug_parse ( ) throws java . lang . Exception { int act ; symbol lhs_sym ; short handle_size , lhs_sym_num ; production_tab = production_table ( ) ; action_tab = action_table ( ) ; reduce_tab = reduce_table ( ) ; debug_message ( STRING ) ; init_actions ( ) ; user_init ( ) ; cur_token = scan ( ) ; debug_mes... | 399 |
java-test-3576 | java | What did a use ? | format = flowed " | public static String deflow ( String text , boolean del Sp ) { String [ ] lines = text . split ( STRING , - NUM ) ; String Buffer result = null ; String Buffer result Line = new String Buffer ( ) ; int result Line Quote Depth = NUM ; boolean result Line Flowed = BOOL ; for ( int i = NUM ; i <= lines . length ; i ++ ) {... | public static String deflow ( String text , boolean delSp ) { String [ ] lines = text . split ( STRING , - _NUM ) ; StringBuffer result = null ; StringBuffer resultLine = new StringBuffer ( ) ; int resultLineQuoteDepth = _NUM ; boolean resultLineFlowed = _BOOL ; for ( int i = _NUM ; i <= lines . length ; i ++ ) { Strin... | 496 |
java-test-3577 | java | How did a text wrap previously ? | using " format = flowed " | public static String deflow ( String text , boolean del Sp ) { String [ ] lines = text . split ( STRING , - NUM ) ; String Buffer result = null ; String Buffer result Line = new String Buffer ( ) ; int result Line Quote Depth = NUM ; boolean result Line Flowed = BOOL ; for ( int i = NUM ; i <= lines . length ; i ++ ) {... | public static String deflow ( String text , boolean delSp ) { String [ ] lines = text . split ( STRING , - _NUM ) ; StringBuffer result = null ; StringBuffer resultLine = new StringBuffer ( ) ; int resultLineQuoteDepth = _NUM ; boolean resultLineFlowed = _BOOL ; for ( int i = _NUM ; i <= lines . length ; i ++ ) { Strin... | 496 |
java-test-3581 | java | What does the code compare ? | a string . case sensitive | private static boolean compare String Case ( final String val , final int comparator , final String attr ) { final String value = comparator == APPROX ? strip Whitespaces ( val ) : val ; final String attribute = comparator == APPROX ? strip Whitespaces ( attr ) : attr ; switch ( comparator ) { case APPROX : case EQUALS... | private static boolean compareStringCase ( final String val , final int comparator , final String attr ) { final String value = comparator == APPROX ? stripWhitespaces ( val ) : val ; final String attribute = comparator == APPROX ? stripWhitespaces ( attr ) : attr ; switch ( comparator ) { case APPROX : case EQUALS : r... | 175 |
java-test-3582 | java | What does the code remove from this map if present ? | the mapping for this key | @ Override public Object remove ( Object key ) { Entry tab [ ] = table ; if ( key != null ) { int hash = System . identity Hash Code ( key ) ; int index = ( hash & NUM ) % tab . length ; for ( Entry e = tab [ index ] , prev = null ; e != null ; prev = e , e = e . next ) { if ( ( e . hash == hash ) && key == e . key ) {... | @ Override public Object remove ( Object key ) { Entry tab [ ] = table ; if ( key != null ) { int hash = System . identityHashCode ( key ) ; int index = ( hash & _NUM ) % tab . length ; for ( Entry e = tab [ index ] , prev = null ; e != null ; prev = e , e = e . next ) { if ( ( e . hash == hash ) && key == e . key ) { ... | 243 |
java-test-3583 | java | What does the code create ? | a new lexical analyzer for the specified sql statement | public Lexer ( String s ) { init Keywords ( ) ; tok = new Stream Tokenizer ( new String Reader ( s ) ) ; tok . word Chars ( STRING , STRING ) ; tok . ordinary Char ( STRING ) ; tok . lower Case Mode ( BOOL ) ; next Token ( ) ; } | public Lexer ( String s ) { initKeywords ( ) ; tok = new StreamTokenizer ( new StringReader ( s ) ) ; tok . wordChars ( STRING , STRING ) ; tok . ordinaryChar ( STRING ) ; tok . lowerCaseMode ( _BOOL ) ; nextToken ( ) ; } | 59 |
java-test-3584 | java | Where do xpos be past the track ? | at the left or the right | public int value For X Position ( int x Pos ) { int value ; int min Value = slider . get Minimum ( ) ; int max Value = slider . get Maximum ( ) ; int track Left = track Rect . x + thumb Rect . width / NUM + track Border ; int track Right = track Rect . x + track Rect . width - thumb Rect . width / NUM - track Border ; ... | public int valueForXPosition ( int xPos ) { int value ; int minValue = slider . getMinimum ( ) ; int maxValue = slider . getMaximum ( ) ; int trackLeft = trackRect . x + thumbRect . width / _NUM + trackBorder ; int trackRight = trackRect . x + trackRect . width - thumbRect . width / _NUM - trackBorder ; int trackLength... | 232 |
java-test-3585 | java | What is a value give ? | an x position | public int value For X Position ( int x Pos ) { int value ; int min Value = slider . get Minimum ( ) ; int max Value = slider . get Maximum ( ) ; int track Left = track Rect . x + thumb Rect . width / NUM + track Border ; int track Right = track Rect . x + track Rect . width - thumb Rect . width / NUM - track Border ; ... | public int valueForXPosition ( int xPos ) { int value ; int minValue = slider . getMinimum ( ) ; int maxValue = slider . getMaximum ( ) ; int trackLeft = trackRect . x + thumbRect . width / _NUM + trackBorder ; int trackRight = trackRect . x + trackRect . width - thumbRect . width / _NUM - trackBorder ; int trackLength... | 232 |
java-test-3586 | java | What is past the track at the left or the right ? | xpos | public int value For X Position ( int x Pos ) { int value ; int min Value = slider . get Minimum ( ) ; int max Value = slider . get Maximum ( ) ; int track Left = track Rect . x + thumb Rect . width / NUM + track Border ; int track Right = track Rect . x + track Rect . width - thumb Rect . width / NUM - track Border ; ... | public int valueForXPosition ( int xPos ) { int value ; int minValue = slider . getMinimum ( ) ; int maxValue = slider . getMaximum ( ) ; int trackLeft = trackRect . x + thumbRect . width / _NUM + trackBorder ; int trackRight = trackRect . x + trackRect . width - thumbRect . width / _NUM - trackBorder ; int trackLength... | 232 |
java-test-3587 | java | What does this implementation reset ? | the edges control points | public Object flip Edge ( Object edge ) { if ( edge != null && alternate Edge Style != null ) { model . begin Update ( ) ; try { String style = model . get Style ( edge ) ; if ( style == null || style . length ( ) == NUM ) { model . set Style ( edge , alternate Edge Style ) ; } else { model . set Style ( edge , null ) ... | public Object flipEdge ( Object edge ) { if ( edge != null && alternateEdgeStyle != null ) { model . beginUpdate ( ) ; try { String style = model . getStyle ( edge ) ; if ( style == null || style . length ( ) == _NUM ) { model . setStyle ( edge , alternateEdgeStyle ) ; } else { model . setStyle ( edge , null ) ; } rese... | 125 |
java-test-3588 | java | When did the code call ? | when the main control point of the edge is double - clicked | public Object flip Edge ( Object edge ) { if ( edge != null && alternate Edge Style != null ) { model . begin Update ( ) ; try { String style = model . get Style ( edge ) ; if ( style == null || style . length ( ) == NUM ) { model . set Style ( edge , alternate Edge Style ) ; } else { model . set Style ( edge , null ) ... | public Object flipEdge ( Object edge ) { if ( edge != null && alternateEdgeStyle != null ) { model . beginUpdate ( ) ; try { String style = model . getStyle ( edge ) ; if ( style == null || style . length ( ) == _NUM ) { model . setStyle ( edge , alternateEdgeStyle ) ; } else { model . setStyle ( edge , null ) ; } rese... | 125 |
java-test-3592 | java | What does the code run writing the relevant audit data to the db ? | the log module | public void run ( ) throws Serialization Exception , SQL Exception { final String query = String . format ( STRING + STRING + STRING + STRING + STRING + STRING + STRING + STRING , table Name ) ; Map < String , Map Red Stats > stats Per Stage = session State Lite . get Map Red Stats ( ) ; for ( String stage : stats Per ... | public void run ( ) throws SerializationException , SQLException { final String query = String . format ( STRING + STRING + STRING + STRING + STRING + STRING + STRING + STRING , tableName ) ; Map < String , MapRedStats > statsPerStage = sessionStateLite . getMapRedStats ( ) ; for ( String stage : statsPerStage . keySet... | 220 |
java-test-3593 | java | What does the code write to the db ? | the relevant audit data | public void run ( ) throws Serialization Exception , SQL Exception { final String query = String . format ( STRING + STRING + STRING + STRING + STRING + STRING + STRING + STRING , table Name ) ; Map < String , Map Red Stats > stats Per Stage = session State Lite . get Map Red Stats ( ) ; for ( String stage : stats Per ... | public void run ( ) throws SerializationException , SQLException { final String query = String . format ( STRING + STRING + STRING + STRING + STRING + STRING + STRING + STRING , tableName ) ; Map < String , MapRedStats > statsPerStage = sessionStateLite . getMapRedStats ( ) ; for ( String stage : statsPerStage . keySet... | 220 |
java-test-3596 | java | What does the code convert to a matrix ? | an bufferedimage | public IND Array as Matrix ( Buffered Image image ) { if ( channels == NUM ) { return to Bgr ( image ) ; } else { image = scaling If Need ( image , BOOL ) ; int w = image . get Width ( ) ; int h = image . get Height ( ) ; IND Array ret = Nd 4 j . create ( h , w ) ; for ( int i = NUM ; i < h ; i ++ ) { for ( int j = NUM... | public INDArray asMatrix ( BufferedImage image ) { if ( channels == _NUM ) { return toBgr ( image ) ; } else { image = scalingIfNeed ( image , _BOOL ) ; int w = image . getWidth ( ) ; int h = image . getHeight ( ) ; INDArray ret = Nd4j . create ( h , w ) ; for ( int i = _NUM ; i < h ; i ++ ) { for ( int j = _NUM ; j < ... | 137 |
java-test-3597 | java | What does the code draw ? | a marker for the range axis | @ Override public void draw Range Marker ( Graphics 2 D g2 , Category Plot plot , Value Axis axis , Marker marker , Rectangle 2 D data Area ) { if ( marker instanceof Value Marker ) { Value Marker vm = ( Value Marker ) marker ; double value = vm . get Value ( ) ; Range range = axis . get Range ( ) ; if ( ! range . cont... | @ Override public void drawRangeMarker ( Graphics2D g2 , CategoryPlot plot , ValueAxis axis , Marker marker , Rectangle2D dataArea ) { if ( marker instanceof ValueMarker ) { ValueMarker vm = ( ValueMarker ) marker ; double value = vm . getValue ( ) ; Range range = axis . getRange ( ) ; if ( ! range . contains ( value )... | 1,529 |
java-test-3622 | java | What does the code add to the query ? | all available table columns | private void add All Columns ( ) throws SQL Exception { Database Meta Data meta Data = get Database Meta Data ( ) ; List < String > columns = new Array List < > ( ) ; try ( Result Set rs = meta Data . get Columns ( null , null , normalize Object Name ( statement Model . get Table Name ( ) ) , null ) ) { while ( rs . ne... | private void addAllColumns ( ) throws SQLException { DatabaseMetaData metaData = getDatabaseMetaData ( ) ; List < String > columns = new ArrayList < > ( ) ; try ( ResultSet rs = metaData . getColumns ( null , null , normalizeObjectName ( statementModel . getTableName ( ) ) , null ) ) { while ( rs . next ( ) ) { columns... | 125 |
java-test-3623 | java | What does the code add ? | a limited mitre join connecting the two reflex offset segments | private void add Limited Mitre Join ( Line Segment offset 0 , Line Segment offset 1 , double distance , double mitre Limit ) { Coordinate base Pt = seg 0 . p1 ; double ang 0 = Angle . angle ( base Pt , seg 0 . p0 ) ; double ang 1 = Angle . angle ( base Pt , seg 1 . p1 ) ; double ang Diff = Angle . angle Between Oriente... | private void addLimitedMitreJoin ( LineSegment offset0 , LineSegment offset1 , double distance , double mitreLimit ) { Coordinate basePt = seg0 . p1 ; double ang0 = Angle . angle ( basePt , seg0 . p0 ) ; double ang1 = Angle . angle ( basePt , seg1 . p1 ) ; double angDiff = Angle . angleBetweenOriented ( seg0 . p0 , bas... | 353 |
java-test-3627 | java | How does a socks5 instance construct ? | without any parameter | private void init ( ) { acceptable Methods = new Array List < > ( ) ; acceptable Methods . add ( new No Authentication Required Method ( ) ) ; acceptable Methods . add ( new Gss Api Method ( ) ) ; acceptable Methods . add ( new Username Password Method ( ) ) ; } | private void init ( ) { acceptableMethods = new ArrayList < > ( ) ; acceptableMethods . add ( new NoAuthenticationRequiredMethod ( ) ) ; acceptableMethods . add ( new GssApiMethod ( ) ) ; acceptableMethods . add ( new UsernamePasswordMethod ( ) ) ; } | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.