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-7981 | java | Where did the file name ? | in " filename " | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7982 | java | Where is objects that are components of the specification object returned saved the error stream also ? | in errors | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7983 | java | What does the code determine ? | the rgb value of a named color | public static int parse Color ( String color String ) { if ( Text Utils . is Empty ( color String ) ) { return TRANSPARENT ; } if ( color String . char At ( NUM ) == STRING ) { if ( color String . length ( ) == NUM || color String . length ( ) == NUM ) { long color = Long . parse Long ( color String . substring ( NUM )... | public static int parseColor ( String colorString ) { if ( TextUtils . isEmpty ( colorString ) ) { return TRANSPARENT ; } if ( colorString . charAt ( _NUM ) == STRING ) { if ( colorString . length ( ) == _NUM || colorString . length ( ) == _NUM ) { long color = Long . parseLong ( colorString . substring ( _NUM ) , _NUM... | 148 |
java-test-7984 | java | What does the code get ? | the decoded stream value | private Byte Buffer decode Stream ( ) throws IO Exception { Byte Buffer out Stream = null ; if ( decoded Stream != null ) { out Stream = ( Byte Buffer ) decoded Stream . get ( ) ; } if ( out Stream == null ) { stream . rewind ( ) ; out Stream = PDF Decoder . decode Stream ( this , stream ) ; decoded Stream = new Soft R... | private ByteBuffer decodeStream ( ) throws IOException { ByteBuffer outStream = null ; if ( decodedStream != null ) { outStream = ( ByteBuffer ) decodedStream . get ( ) ; } if ( outStream == null ) { stream . rewind ( ) ; outStream = PDFDecoder . decodeStream ( this , stream ) ; decodedStream = new SoftReference ( outS... | 86 |
java-test-7987 | java | When do an event notification arrive ? | when this is called by the plugin | public int add Client External ( SSO Token token , Map props ) throws AM Client Cap Exception { synchronized ( external Client Data ) { ext Cap Instance . add Client ( token , props ) ; String ct = get Client Type ( props ) ; Map e Map = merge With Parent ( props ) ; external Client Data . put ( ct , e Map ) ; add To I... | public int addClientExternal ( SSOToken token , Map props ) throws AMClientCapException { synchronized ( externalClientData ) { extCapInstance . addClient ( token , props ) ; String ct = getClientType ( props ) ; Map eMap = mergeWithParent ( props ) ; externalClientData . put ( ct , eMap ) ; addToIndexes ( ct , eMap ) ... | 86 |
java-test-7988 | java | What do we wait ? | for an event notification to arrive when this is called by the plugin | public int add Client External ( SSO Token token , Map props ) throws AM Client Cap Exception { synchronized ( external Client Data ) { ext Cap Instance . add Client ( token , props ) ; String ct = get Client Type ( props ) ; Map e Map = merge With Parent ( props ) ; external Client Data . put ( ct , e Map ) ; add To I... | public int addClientExternal ( SSOToken token , Map props ) throws AMClientCapException { synchronized ( externalClientData ) { extCapInstance . addClient ( token , props ) ; String ct = getClientType ( props ) ; Map eMap = mergeWithParent ( props ) ; externalClientData . put ( ct , eMap ) ; addToIndexes ( ct , eMap ) ... | 86 |
java-test-7989 | java | What does the code set ? | a null property | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7990 | java | What does the cargo plugin replace ? | the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7991 | java | What do we need ? | to verify that the cargo plugin intercepts that and replaces the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7992 | java | What replaces the null with an empty string ? | the cargo plugin | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7993 | java | When does maven2 operate the way ? | when the user specifies an empty property | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7994 | java | What do we verify ? | that the cargo plugin intercepts that and replaces the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7995 | java | What does the code convert into a inet6address ? | a 32 char hex string | public static Inet Address hex To Inet 6 Address ( String addr Hex String ) throws Illegal Argument Exception { try { return numeric To Inet Address ( String . format ( STRING , addr Hex String . substring ( NUM , NUM ) , addr Hex String . substring ( NUM , NUM ) , addr Hex String . substring ( NUM , NUM ) , addr Hex S... | public static InetAddress hexToInet6Address ( String addrHexString ) throws IllegalArgumentException { try { return numericToInetAddress ( String . format ( STRING , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substr... | 159 |
java-test-7996 | java | How do a combined hash code compute from the supplied objects ? | using the supplied seed | private static int compute Hash Code ( int seed , Object ... objects ) { if ( objects == null || objects . length == NUM ) { return seed * Hash Code . PRIME ; } int hc = seed ; for ( Object object : objects ) { hc = Hash Code . PRIME * hc ; if ( object instanceof byte [ ] ) { hc += Arrays . hash Code ( ( byte [ ] ) obj... | private static int computeHashCode ( int seed , Object ... objects ) { if ( objects == null || objects . length == _NUM ) { return seed * HashCode . PRIME ; } int hc = seed ; for ( Object object : objects ) { hc = HashCode . PRIME * hc ; if ( object instanceof byte [ ] ) { hc += Arrays . hashCode ( ( byte [ ] ) object ... | 315 |
java-test-7997 | java | What do a properties file describe ? | a maptileset | protected void parse And Add Map Tile Set ( URL tile Set Properties ) throws IO Exception , Malformed URL Exception { Properties desc Props = new Properties ( ) ; Logger logger = get Logger ( ) ; logger . info ( STRING ) ; Input Stream desc URL Stream = tile Set Properties . open Stream ( ) ; desc Props . load ( desc U... | protected void parseAndAddMapTileSet ( URL tileSetProperties ) throws IOException , MalformedURLException { Properties descProps = new Properties ( ) ; Logger logger = getLogger ( ) ; logger . info ( STRING ) ; InputStream descURLStream = tileSetProperties . openStream ( ) ; descProps . load ( descURLStream ) ; logger ... | 176 |
java-test-7999 | java | What get requests routed to the servlet by the web container ? | all of the http | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8000 | java | In which direction does this method loop ? | through the lists of videos that have been sent to it | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8001 | java | What does all of the http get ? | requests routed to the servlet by the web container | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8002 | java | What did this method generate ? | a plain / text list of the videos that is sent back to the client | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8003 | java | What does this method process ? | all of the http get requests routed to the servlet by the web container | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8004 | java | What is matches the provided string ( where null matches if there is no content type present ? | the content - type field of the properties section ( if present ) in the given message | public static boolean is Content Type ( String content Type , Message message ) { if ( content Type == null ) { return message . get Content Type ( ) == null ; } else { return content Type . equals ( message . get Content Type ( ) ) ; } } | public static boolean isContentType ( String contentType , Message message ) { if ( contentType == null ) { return message . getContentType ( ) == null ; } else { return contentType . equals ( message . getContentType ( ) ) ; } } | 54 |
java-test-8005 | java | What is the content - type field of the properties section ( if present ) in the given message matches ? | the provided string ( where null matches if there is no content type present | public static boolean is Content Type ( String content Type , Message message ) { if ( content Type == null ) { return message . get Content Type ( ) == null ; } else { return content Type . equals ( message . get Content Type ( ) ) ; } } | public static boolean isContentType ( String contentType , Message message ) { if ( contentType == null ) { return message . getContentType ( ) == null ; } else { return contentType . equals ( message . getContentType ( ) ) ; } } | 54 |
java-test-8006 | java | What does this method not validate ? | that the signal is being acted upon | protected void stop Workers ( Collection < Worker Thread > workers ) { if ( workers == null ) { workers = this . workers ; } final Iterator < Worker Thread > iter = workers . iterator ( ) ; while ( iter . has Next ( ) ) { final Worker Thread worker = iter . next ( ) ; if ( ( worker . get Status ( ) & ( Worker Thread . ... | protected void stopWorkers ( Collection < WorkerThread > workers ) { if ( workers == null ) { workers = this . workers ; } final Iterator < WorkerThread > iter = workers . iterator ( ) ; while ( iter . hasNext ( ) ) { final WorkerThread worker = iter . next ( ) ; if ( ( worker . getStatus ( ) & ( WorkerThread . sENDED ... | 102 |
java-test-8007 | java | How does the code arrange the blocks ? | without any constraints | protected Size 2 D arrange NN ( Block Container container , Graphics 2 D g2 ) { List blocks = container . get Blocks ( ) ; Block b = ( Block ) blocks . get ( NUM ) ; Size 2 D s = b . arrange ( g2 , Rectangle Constraint . NONE ) ; b . set Bounds ( new Rectangle 2 D . Double ( NUM , NUM , s . width , s . height ) ) ; ret... | protected Size2D arrangeNN ( BlockContainer container , Graphics2D g2 ) { List blocks = container . getBlocks ( ) ; Block b = ( Block ) blocks . get ( _NUM ) ; Size2D s = b . arrange ( g2 , RectangleConstraint . NONE ) ; b . setBounds ( new Rectangle2D . Double ( _NUM , _NUM , s . width , s . height ) ) ; return new Si... | 99 |
java-test-8010 | java | Where does the code invoke the listener ? | on each chat event encountered | public void parse File ( Chat Event Parse Listener listener ) { synchronized ( this ) { @ Suppress Warnings ( STRING ) long start Time = System . current Time Millis ( ) ; Buffered Reader reader = null ; try { reader = new Buffered Reader ( new File Reader ( path To File ) ) ; String current Line = reader . read Line (... | public void parseFile ( ChatEventParseListener listener ) { synchronized ( this ) { @ SuppressWarnings ( STRING ) long startTime = System . currentTimeMillis ( ) ; BufferedReader reader = null ; try { reader = new BufferedReader ( new FileReader ( pathToFile ) ) ; String currentLine = reader . readLine ( ) ; while ( cu... | 200 |
java-test-8011 | java | What does the code parse ? | the chatlogger | public void parse File ( Chat Event Parse Listener listener ) { synchronized ( this ) { @ Suppress Warnings ( STRING ) long start Time = System . current Time Millis ( ) ; Buffered Reader reader = null ; try { reader = new Buffered Reader ( new File Reader ( path To File ) ) ; String current Line = reader . read Line (... | public void parseFile ( ChatEventParseListener listener ) { synchronized ( this ) { @ SuppressWarnings ( STRING ) long startTime = System . currentTimeMillis ( ) ; BufferedReader reader = null ; try { reader = new BufferedReader ( new FileReader ( pathToFile ) ) ; String currentLine = reader . readLine ( ) ; while ( cu... | 200 |
java-test-8012 | java | How did all dependencies call usually usually ? | with a copy of the modules list | private String check All Dependencies ( Hash Map < String , Module Descriptor > modlist ) { for ( Module Descriptor md : modlist . values ( ) ) { String res = check Dependencies ( md , modlist ) ; if ( ! res . is Empty ( ) ) { return res ; } } return STRING ; } | private String checkAllDependencies ( HashMap < String , ModuleDescriptor > modlist ) { for ( ModuleDescriptor md : modlist . values ( ) ) { String res = checkDependencies ( md , modlist ) ; if ( ! res . isEmpty ( ) ) { return res ; } } return STRING ; } | 61 |
java-test-8013 | java | What does the code create ? | a x . 509 v3 certificate | private static X509 Certificate generate Certificate ( String dn , int days , String application Uri , Key Pair keys , org . opcfoundation . ua . transport . security . Key Pair issuer Keys , String ... host Names ) throws General Security Exception , IO Exception { Private Key privkey = keys . get Private ( ) ; Public... | private static X509Certificate generateCertificate ( String dn , int days , String applicationUri , KeyPair keys , org . opcfoundation . ua . transport . security . KeyPair issuerKeys , String ... hostNames ) throws GeneralSecurityException , IOException { PrivateKey privkey = keys . getPrivate ( ) ; PublicKey publicKe... | 96 |
java-test-8014 | java | What does the code find ? | the first parent directory that exists | public static void check Directory Is Writeable ( @ Not Null File directory ) throws IO Exception { while ( ! directory . exists ( ) || ! directory . is Directory ( ) ) { directory = directory . get Parent File ( ) ; } if ( ! directory . can Write ( ) ) { throw new IO Exception ( STRING + directory . get Absolute Path ... | public static void checkDirectoryIsWriteable ( @ NotNull File directory ) throws IOException { while ( ! directory . exists ( ) || ! directory . isDirectory ( ) ) { directory = directory . getParentFile ( ) ; } if ( ! directory . canWrite ( ) ) { throw new IOException ( STRING + directory . getAbsolutePath ( ) ) ; } } | 76 |
java-test-8016 | java | What does the code dump as a hex dump ? | the given bytes to stdout | public static String dump As Hex ( byte [ ] byte Buffer , int length ) { String Builder output Builder = new String Builder ( length * NUM ) ; int p = NUM ; int rows = length / NUM ; for ( int i = NUM ; ( i < rows ) && ( p < length ) ; i ++ ) { int ptemp = p ; for ( int j = NUM ; j < NUM ; j ++ ) { String hex Val = Int... | public static String dumpAsHex ( byte [ ] byteBuffer , int length ) { StringBuilder outputBuilder = new StringBuilder ( length * _NUM ) ; int p = _NUM ; int rows = length / _NUM ; for ( int i = _NUM ; ( i < rows ) && ( p < length ) ; i ++ ) { int ptemp = p ; for ( int j = _NUM ; j < _NUM ; j ++ ) { String hexVal = Inte... | 412 |
java-test-8017 | java | What does the code compute ? | the " interface hash " of the stub / skeleton pair | private long compute Interface Hash ( ) { long hash = NUM ; Byte Array Output Stream sink = new Byte Array Output Stream ( NUM ) ; try { Message Digest md = Message Digest . get Instance ( STRING ) ; Data Output Stream out = new Data Output Stream ( new Digest Output Stream ( sink , md ) ) ; out . write Int ( INTERFACE... | private long computeInterfaceHash ( ) { long hash = _NUM ; ByteArrayOutputStream sink = new ByteArrayOutputStream ( _NUM ) ; try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; DataOutputStream out = new DataOutputStream ( new DigestOutputStream ( sink , md ) ) ; out . writeInt ( INTERFACE_HASH_STUB_VERSI... | 285 |
java-test-8018 | java | What did it use ? | the first 64 bits of an sha digest | private long compute Interface Hash ( ) { long hash = NUM ; Byte Array Output Stream sink = new Byte Array Output Stream ( NUM ) ; try { Message Digest md = Message Digest . get Instance ( STRING ) ; Data Output Stream out = new Data Output Stream ( new Digest Output Stream ( sink , md ) ) ; out . write Int ( INTERFACE... | private long computeInterfaceHash ( ) { long hash = _NUM ; ByteArrayOutputStream sink = new ByteArrayOutputStream ( _NUM ) ; try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; DataOutputStream out = new DataOutputStream ( new DigestOutputStream ( sink , md ) ) ; out . writeInt ( INTERFACE_HASH_STUB_VERSI... | 285 |
java-test-8019 | java | What used to enforce compatibility between a stub class and a skeleton class in the jdk 1 . 1 version of the jrmp stub / skeleton protocol ? | the 64 - bit value | private long compute Interface Hash ( ) { long hash = NUM ; Byte Array Output Stream sink = new Byte Array Output Stream ( NUM ) ; try { Message Digest md = Message Digest . get Instance ( STRING ) ; Data Output Stream out = new Data Output Stream ( new Digest Output Stream ( sink , md ) ) ; out . write Int ( INTERFACE... | private long computeInterfaceHash ( ) { long hash = _NUM ; ByteArrayOutputStream sink = new ByteArrayOutputStream ( _NUM ) ; try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; DataOutputStream out = new DataOutputStream ( new DigestOutputStream ( sink , md ) ) ; out . writeInt ( INTERFACE_HASH_STUB_VERSI... | 285 |
java-test-8020 | java | How is it is calculated ? | using the first 64 bits of an sha digest | private long compute Interface Hash ( ) { long hash = NUM ; Byte Array Output Stream sink = new Byte Array Output Stream ( NUM ) ; try { Message Digest md = Message Digest . get Instance ( STRING ) ; Data Output Stream out = new Data Output Stream ( new Digest Output Stream ( sink , md ) ) ; out . write Int ( INTERFACE... | private long computeInterfaceHash ( ) { long hash = _NUM ; ByteArrayOutputStream sink = new ByteArrayOutputStream ( _NUM ) ; try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; DataOutputStream out = new DataOutputStream ( new DigestOutputStream ( sink , md ) ) ; out . writeInt ( INTERFACE_HASH_STUB_VERSI... | 285 |
java-test-8021 | java | What did the 64 - bit value use ? | to enforce compatibility between a stub class and a skeleton class in the jdk 1 . 1 version of the jrmp stub / skeleton protocol | private long compute Interface Hash ( ) { long hash = NUM ; Byte Array Output Stream sink = new Byte Array Output Stream ( NUM ) ; try { Message Digest md = Message Digest . get Instance ( STRING ) ; Data Output Stream out = new Data Output Stream ( new Digest Output Stream ( sink , md ) ) ; out . write Int ( INTERFACE... | private long computeInterfaceHash ( ) { long hash = _NUM ; ByteArrayOutputStream sink = new ByteArrayOutputStream ( _NUM ) ; try { MessageDigest md = MessageDigest . getInstance ( STRING ) ; DataOutputStream out = new DataOutputStream ( new DigestOutputStream ( sink , md ) ) ; out . writeInt ( INTERFACE_HASH_STUB_VERSI... | 285 |
java-test-8022 | java | What does the code add to the workflow ? | the export remove volume step | private void add Export Remove Volume Steps ( Workflow workflow , Protection System rp System , URI export Group ID , List < URI > bo I Ds ) throws Internal Exception { Export Group export Group = db Client . query Object ( Export Group . class , export Group ID ) ; String export Step = workflow . create Step Id ( ) ; ... | private void addExportRemoveVolumeSteps ( Workflow workflow , ProtectionSystem rpSystem , URI exportGroupID , List < URI > boIDs ) throws InternalException { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupID ) ; String exportStep = workflow . createStepId ( ) ; initTaskStatus ( exp... | 382 |
java-test-8024 | java | For what purpose is an attempt made subsequently ? | to use this resource index | void clear Resource Index ( String resource Type Name ) { Set resource Types = new Hash Set ( ) ; resource Types . add All ( resource Indices . key Set ( ) ) ; Iterator iter = resource Types . iterator ( ) ; while ( iter . has Next ( ) ) { String resource Type = ( String ) iter . next ( ) ; if ( resource Type . equals ... | void clearResourceIndex ( String resourceTypeName ) { Set resourceTypes = new HashSet ( ) ; resourceTypes . addAll ( resourceIndices . keySet ( ) ) ; Iterator iter = resourceTypes . iterator ( ) ; while ( iter . hasNext ( ) ) { String resourceType = ( String ) iter . next ( ) ; if ( resourceType . equalsIgnoreCase ( re... | 98 |
java-test-8025 | java | What does the code compare ? | the equality of two collators | @ Override public boolean equals ( Object that ) { if ( this == that ) { return BOOL ; } if ( that == null ) { return BOOL ; } if ( get Class ( ) != that . get Class ( ) ) { return BOOL ; } Collator other = ( Collator ) that ; return ( ( strength == other . strength ) && ( decmp == other . decmp ) ) ; } | @ Override public boolean equals ( Object that ) { if ( this == that ) { return _BOOL ; } if ( that == null ) { return _BOOL ; } if ( getClass ( ) != that . getClass ( ) ) { return _BOOL ; } Collator other = ( Collator ) that ; return ( ( strength == other . strength ) && ( decmp == other . decmp ) ) ; } | 79 |
java-test-8026 | java | What does it return ? | a type object | Type rename Type As Type ( Type type ) { if ( type == null ) { return null ; } if ( type . get Sort ( ) == Type . OBJECT ) { String in = type . get Internal Name ( ) ; String new In = rename Internal Type ( in ) ; if ( new In != in ) { return Type . get Type ( STRING + new In + STRING ) ; } } else if ( type . get Sort ... | Type renameTypeAsType ( Type type ) { if ( type == null ) { return null ; } if ( type . getSort ( ) == Type . OBJECT ) { String in = type . getInternalName ( ) ; String newIn = renameInternalType ( in ) ; if ( newIn != in ) { return Type . getType ( STRING + newIn + STRING ) ; } } else if ( type . getSort ( ) == Type .... | 170 |
java-test-8028 | java | What does the code generate ? | the last 52 weeks where the last one is the week which the given date is inside | @ Override public List < Period > generate Rolling Periods ( Date Time Unit date Time Unit ) { Calendar calendar = get Calendar ( ) ; List < Period > periods = Lists . new Array List ( ) ; date Time Unit = calendar . minus Days ( date Time Unit , calendar . weekday ( date Time Unit ) - NUM ) ; date Time Unit = calendar... | @ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar calendar = getCalendar ( ) ; List < Period > periods = Lists . newArrayList ( ) ; dateTimeUnit = calendar . minusDays ( dateTimeUnit , calendar . weekday ( dateTimeUnit ) - _NUM ) ; dateTimeUnit = calendar . minusDays ( da... | 133 |
java-test-8029 | java | Where is the last one the week which the given date is inside ? | the last 52 weeks | @ Override public List < Period > generate Rolling Periods ( Date Time Unit date Time Unit ) { Calendar calendar = get Calendar ( ) ; List < Period > periods = Lists . new Array List ( ) ; date Time Unit = calendar . minus Days ( date Time Unit , calendar . weekday ( date Time Unit ) - NUM ) ; date Time Unit = calendar... | @ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar calendar = getCalendar ( ) ; List < Period > periods = Lists . newArrayList ( ) ; dateTimeUnit = calendar . minusDays ( dateTimeUnit , calendar . weekday ( dateTimeUnit ) - _NUM ) ; dateTimeUnit = calendar . minusDays ( da... | 133 |
java-test-8032 | java | What does trig use ? | to find angle of the arrow | private double find Angle ( Point origin Point , Point target Point ) { int x1 = origin Point . x ; int y1 = origin Point . y ; int x2 = target Point . x ; int y2 = target Point . y ; double angle = NUM ; double offset = NUM ; double side A = x2 - x1 ; double side B = NUM ; if ( y1 >= y2 ) { side B = y1 - y2 ; offset =... | private double findAngle ( Point originPoint , Point targetPoint ) { int x1 = originPoint . x ; int y1 = originPoint . y ; int x2 = targetPoint . x ; int y2 = targetPoint . y ; double angle = _NUM ; double offset = _NUM ; double sideA = x2 - x1 ; double sideB = _NUM ; if ( y1 >= y2 ) { sideB = y1 - y2 ; offset = Math .... | 150 |
java-test-8035 | java | What do we make ? | a backup server the primary | protected void recover Primary ( Set excluded Servers ) { if ( pool . get Pool Or Cache Cancel In Progress ( ) != null ) { return ; } final boolean is Debug Enabled = logger . is Debug Enabled ( ) ; if ( queue Connections . get Primary ( ) != null ) { if ( is Debug Enabled ) { logger . debug ( STRING ) ; } return ; } i... | protected void recoverPrimary ( Set excludedServers ) { if ( pool . getPoolOrCacheCancelInProgress ( ) != null ) { return ; } final boolean isDebugEnabled = logger . isDebugEnabled ( ) ; if ( queueConnections . getPrimary ( ) != null ) { if ( isDebugEnabled ) { logger . debug ( STRING ) ; } return ; } if ( isDebugEnabl... | 582 |
java-test-8036 | java | What does the code find ? | a new primary | protected void recover Primary ( Set excluded Servers ) { if ( pool . get Pool Or Cache Cancel In Progress ( ) != null ) { return ; } final boolean is Debug Enabled = logger . is Debug Enabled ( ) ; if ( queue Connections . get Primary ( ) != null ) { if ( is Debug Enabled ) { logger . debug ( STRING ) ; } return ; } i... | protected void recoverPrimary ( Set excludedServers ) { if ( pool . getPoolOrCacheCancelInProgress ( ) != null ) { return ; } final boolean isDebugEnabled = logger . isDebugEnabled ( ) ; if ( queueConnections . getPrimary ( ) != null ) { if ( isDebugEnabled ) { logger . debug ( STRING ) ; } return ; } if ( isDebugEnabl... | 582 |
java-test-8037 | java | What do we try first ? | to make a backup server the primary | protected void recover Primary ( Set excluded Servers ) { if ( pool . get Pool Or Cache Cancel In Progress ( ) != null ) { return ; } final boolean is Debug Enabled = logger . is Debug Enabled ( ) ; if ( queue Connections . get Primary ( ) != null ) { if ( is Debug Enabled ) { logger . debug ( STRING ) ; } return ; } i... | protected void recoverPrimary ( Set excludedServers ) { if ( pool . getPoolOrCacheCancelInProgress ( ) != null ) { return ; } final boolean isDebugEnabled = logger . isDebugEnabled ( ) ; if ( queueConnections . getPrimary ( ) != null ) { if ( isDebugEnabled ) { logger . debug ( STRING ) ; } return ; } if ( isDebugEnabl... | 582 |
java-test-8038 | java | What will we try if run out of backup servers ? | to find a new server | protected void recover Primary ( Set excluded Servers ) { if ( pool . get Pool Or Cache Cancel In Progress ( ) != null ) { return ; } final boolean is Debug Enabled = logger . is Debug Enabled ( ) ; if ( queue Connections . get Primary ( ) != null ) { if ( is Debug Enabled ) { logger . debug ( STRING ) ; } return ; } i... | protected void recoverPrimary ( Set excludedServers ) { if ( pool . getPoolOrCacheCancelInProgress ( ) != null ) { return ; } final boolean isDebugEnabled = logger . isDebugEnabled ( ) ; if ( queueConnections . getPrimary ( ) != null ) { if ( isDebugEnabled ) { logger . debug ( STRING ) ; } return ; } if ( isDebugEnabl... | 582 |
java-test-8043 | java | Where do transform call ? | on its center | public Shape transform ( Shape shape ) { Rectangle 2 D bounds = shape . get Bounds 2 D ( ) ; Point 2 D center = new Point 2 D . Double ( bounds . get Center X ( ) , bounds . get Center Y ( ) ) ; Point 2 D new Center = transform ( center ) ; double dx = new Center . get X ( ) - center . get X ( ) ; double dy = new Cente... | public Shape transform ( Shape shape ) { Rectangle2D bounds = shape . getBounds2D ( ) ; Point2D center = new Point2D . Double ( bounds . getCenterX ( ) , bounds . getCenterY ( ) ) ; Point2D newCenter = transform ( center ) ; double dx = newCenter . getX ( ) - center . getX ( ) ; double dy = newCenter . getY ( ) - cente... | 125 |
java-test-8044 | java | Where did first enum constant find ? | in at space - separated list of style names | @ Suppress Warnings ( STRING ) public static < E extends Enum < ? extends Style . Has Css Name > > E from Style Name ( final String style Name , final Class < E > enum Class , final E default Value ) { if ( style Name == null || enum Class == null ) { return default Value ; } for ( final Enum < ? extends Style . Has Cs... | @ SuppressWarnings ( STRING ) public static < E extends Enum < ? extends Style . HasCssName > > E fromStyleName ( final String styleName , final Class < E > enumClass , final E defaultValue ) { if ( styleName == null || enumClass == null ) { return defaultValue ; } for ( final Enum < ? extends Style . HasCssName > cons... | 156 |
java-test-8045 | java | What found in at space - separated list of style names ? | first enum constant | @ Suppress Warnings ( STRING ) public static < E extends Enum < ? extends Style . Has Css Name > > E from Style Name ( final String style Name , final Class < E > enum Class , final E default Value ) { if ( style Name == null || enum Class == null ) { return default Value ; } for ( final Enum < ? extends Style . Has Cs... | @ SuppressWarnings ( STRING ) public static < E extends Enum < ? extends Style . HasCssName > > E fromStyleName ( final String styleName , final Class < E > enumClass , final E defaultValue ) { if ( styleName == null || enumClass == null ) { return defaultValue ; } for ( final Enum < ? extends Style . HasCssName > cons... | 156 |
java-test-8046 | java | Where is the section given ? | in asection | public boolean reset Unread Counts ( int a Section ) { boolean ret Code = BOOL ; Array List < Room Summary > summaries List = m Summary List By Group Position . get ( a Section ) ; if ( null != summaries List ) { for ( int summary Idx = NUM ; summary Idx < summaries List . size ( ) ; summary Idx ++ ) { ret Code |= rese... | public boolean resetUnreadCounts ( int aSection ) { boolean retCode = _BOOL ; ArrayList < RoomSummary > summariesList = mSummaryListByGroupPosition . get ( aSection ) ; if ( null != summariesList ) { for ( int summaryIdx = _NUM ; summaryIdx < summariesList . size ( ) ; summaryIdx ++ ) { retCode |= resetUnreadCount ( aS... | 110 |
java-test-8047 | java | What does the code reset ? | the count of the unread messages of the section whose index is given in asection | public boolean reset Unread Counts ( int a Section ) { boolean ret Code = BOOL ; Array List < Room Summary > summaries List = m Summary List By Group Position . get ( a Section ) ; if ( null != summaries List ) { for ( int summary Idx = NUM ; summary Idx < summaries List . size ( ) ; summary Idx ++ ) { ret Code |= rese... | public boolean resetUnreadCounts ( int aSection ) { boolean retCode = _BOOL ; ArrayList < RoomSummary > summariesList = mSummaryListByGroupPosition . get ( aSection ) ; if ( null != summariesList ) { for ( int summaryIdx = _NUM ; summaryIdx < summariesList . size ( ) ; summaryIdx ++ ) { retCode |= resetUnreadCount ( aS... | 110 |
java-test-8048 | java | What does the code read ? | the whole text file | public static String read Definitions File ( String file ) throws IO Exception { Buffered Reader br = new Buffered Reader ( new File Reader ( file ) ) ; try { String Builder builder = new String Builder ( ) ; String line = null ; String new Line = System . get Property ( STRING ) ; while ( ( line = br . read Line ( ) )... | public static String readDefinitionsFile ( String file ) throws IOException { BufferedReader br = new BufferedReader ( new FileReader ( file ) ) ; try { StringBuilder builder = new StringBuilder ( ) ; String line = null ; String newLine = System . getProperty ( STRING ) ; while ( ( line = br . readLine ( ) ) != null ) ... | 145 |
java-test-8050 | java | What does the code write to the given byte array ? | a speex comment | public static int write Speex Comment ( byte [ ] buf , int offset , String comment ) { int length = comment . length ( ) ; write Int ( buf , offset , length ) ; write String ( buf , offset + NUM , comment ) ; write Int ( buf , offset + length + NUM , NUM ) ; return length + NUM ; } | public static int writeSpeexComment ( byte [ ] buf , int offset , String comment ) { int length = comment . length ( ) ; writeInt ( buf , offset , length ) ; writeString ( buf , offset + _NUM , comment ) ; writeInt ( buf , offset + length + _NUM , _NUM ) ; return length + _NUM ; } | 70 |
java-test-8051 | java | What does the code build ? | a small test bipartite graph | public static Static Bipartite Graph build Small Test Bipartite Graph ( ) { Long 2 Object Map < Long List > left Side Graph = new Long 2 Object Open Hash Map < Long List > ( NUM ) ; left Side Graph . put ( NUM , new Long Array List ( new long [ ] { NUM , NUM , NUM , NUM } ) ) ; left Side Graph . put ( NUM , new Long Ar... | public static StaticBipartiteGraph buildSmallTestBipartiteGraph ( ) { Long2ObjectMap < LongList > leftSideGraph = new Long2ObjectOpenHashMap < LongList > ( _NUM ) ; leftSideGraph . put ( _NUM , new LongArrayList ( new long [ ] { _NUM , _NUM , _NUM , _NUM } ) ) ; leftSideGraph . put ( _NUM , new LongArrayList ( new long... | 437 |
java-test-8052 | java | What does the code replace with the replacewith string within the code specified ? | the searchfor string | private static String check And Replace Code ( final String search For , final String replace With , String script ) { final int index = script . index Of ( search For ) ; if ( index != - NUM ) { final String Builder buf = new String Builder ( script . length ( ) ) ; buf . append ( script . substring ( NUM , index ) ) ... | private static String checkAndReplaceCode ( final String searchFor , final String replaceWith , String script ) { final int index = script . indexOf ( searchFor ) ; if ( index != - _NUM ) { final StringBuilder buf = new StringBuilder ( script . length ( ) ) ; buf . append ( script . substring ( _NUM , index ) ) ; buf .... | 132 |
java-test-8055 | java | What uses " union all " for merging ? | structure | public static void merge Output ( String table , String table Prefix , int number Of Partitions , Connection connection ) { String Builder merge Output Query = new String Builder ( ) ; merge Output Query . append ( STRING ) ; merge Output Query . append ( table ) ; for ( int i = NUM ; i < number Of Partitions ; i ++ ) ... | public static void mergeOutput ( String table , String tablePrefix , int numberOfPartitions , Connection connection ) { StringBuilder mergeOutputQuery = new StringBuilder ( ) ; mergeOutputQuery . append ( STRING ) ; mergeOutputQuery . append ( table ) ; for ( int i = _NUM ; i < numberOfPartitions ; i ++ ) { mergeOutput... | 187 |
java-test-8056 | java | What does structure use for merging ? | " union all " | public static void merge Output ( String table , String table Prefix , int number Of Partitions , Connection connection ) { String Builder merge Output Query = new String Builder ( ) ; merge Output Query . append ( STRING ) ; merge Output Query . append ( table ) ; for ( int i = NUM ; i < number Of Partitions ; i ++ ) ... | public static void mergeOutput ( String table , String tablePrefix , int numberOfPartitions , Connection connection ) { StringBuilder mergeOutputQuery = new StringBuilder ( ) ; mergeOutputQuery . append ( STRING ) ; mergeOutputQuery . append ( table ) ; for ( int i = _NUM ; i < numberOfPartitions ; i ++ ) { mergeOutput... | 187 |
java-test-8058 | java | What does volume button simulation need because the normal android system instrumentation will just change the system volume instead of delivering the volume key events to talkback ? | to be handled separately from key event simulation | private void send Volume Key ( int key Code ) { assert True ( key Code == Key Event . KEYCODE VOLUME UP || key Code == Key Event . KEYCODE VOLUME DOWN ) ; long down = System Clock . uptime Millis ( ) ; Key Event key Down = new Key Event ( down , down , Key Event . ACTION DOWN , key Code , NUM , NUM ) ; m Talk Back . on... | private void sendVolumeKey ( int keyCode ) { assertTrue ( keyCode == KeyEvent . KEYCODE_VOLUME_UP || keyCode == KeyEvent . KEYCODE_VOLUME_DOWN ) ; long down = SystemClock . uptimeMillis ( ) ; KeyEvent keyDown = new KeyEvent ( down , down , KeyEvent . ACTION_DOWN , keyCode , _NUM , _NUM ) ; mTalkBack . onKeyEventShared ... | 138 |
java-test-8059 | java | Why does volume button simulation need to be handled separately from key event simulation ? | because the normal android system instrumentation will just change the system volume instead of delivering the volume key events to talkback | private void send Volume Key ( int key Code ) { assert True ( key Code == Key Event . KEYCODE VOLUME UP || key Code == Key Event . KEYCODE VOLUME DOWN ) ; long down = System Clock . uptime Millis ( ) ; Key Event key Down = new Key Event ( down , down , Key Event . ACTION DOWN , key Code , NUM , NUM ) ; m Talk Back . on... | private void sendVolumeKey ( int keyCode ) { assertTrue ( keyCode == KeyEvent . KEYCODE_VOLUME_UP || keyCode == KeyEvent . KEYCODE_VOLUME_DOWN ) ; long down = SystemClock . uptimeMillis ( ) ; KeyEvent keyDown = new KeyEvent ( down , down , KeyEvent . ACTION_DOWN , keyCode , _NUM , _NUM ) ; mTalkBack . onKeyEventShared ... | 138 |
java-test-8060 | java | What needs to be handled separately from key event simulation because the normal android system instrumentation will just change the system volume instead of delivering the volume key events to talkback ? | volume button simulation | private void send Volume Key ( int key Code ) { assert True ( key Code == Key Event . KEYCODE VOLUME UP || key Code == Key Event . KEYCODE VOLUME DOWN ) ; long down = System Clock . uptime Millis ( ) ; Key Event key Down = new Key Event ( down , down , Key Event . ACTION DOWN , key Code , NUM , NUM ) ; m Talk Back . on... | private void sendVolumeKey ( int keyCode ) { assertTrue ( keyCode == KeyEvent . KEYCODE_VOLUME_UP || keyCode == KeyEvent . KEYCODE_VOLUME_DOWN ) ; long down = SystemClock . uptimeMillis ( ) ; KeyEvent keyDown = new KeyEvent ( down , down , KeyEvent . ACTION_DOWN , keyCode , _NUM , _NUM ) ; mTalkBack . onKeyEventShared ... | 138 |
java-test-8061 | java | What will the normal android system instrumentation change just just ? | the system volume | private void send Volume Key ( int key Code ) { assert True ( key Code == Key Event . KEYCODE VOLUME UP || key Code == Key Event . KEYCODE VOLUME DOWN ) ; long down = System Clock . uptime Millis ( ) ; Key Event key Down = new Key Event ( down , down , Key Event . ACTION DOWN , key Code , NUM , NUM ) ; m Talk Back . on... | private void sendVolumeKey ( int keyCode ) { assertTrue ( keyCode == KeyEvent . KEYCODE_VOLUME_UP || keyCode == KeyEvent . KEYCODE_VOLUME_DOWN ) ; long down = SystemClock . uptimeMillis ( ) ; KeyEvent keyDown = new KeyEvent ( down , down , KeyEvent . ACTION_DOWN , keyCode , _NUM , _NUM ) ; mTalkBack . onKeyEventShared ... | 138 |
java-test-8062 | java | What will change the system volume just just ? | the normal android system instrumentation | private void send Volume Key ( int key Code ) { assert True ( key Code == Key Event . KEYCODE VOLUME UP || key Code == Key Event . KEYCODE VOLUME DOWN ) ; long down = System Clock . uptime Millis ( ) ; Key Event key Down = new Key Event ( down , down , Key Event . ACTION DOWN , key Code , NUM , NUM ) ; m Talk Back . on... | private void sendVolumeKey ( int keyCode ) { assertTrue ( keyCode == KeyEvent . KEYCODE_VOLUME_UP || keyCode == KeyEvent . KEYCODE_VOLUME_DOWN ) ; long down = SystemClock . uptimeMillis ( ) ; KeyEvent keyDown = new KeyEvent ( down , down , KeyEvent . ACTION_DOWN , keyCode , _NUM , _NUM ) ; mTalkBack . onKeyEventShared ... | 138 |
java-test-8063 | java | What means shift to the right ? | positive shift value | private void shift Seq Data ( int start , int len , int shift ) { if ( shift > NUM ) { ensure Free Bytes ( shift ) ; } System . arraycopy ( buf , start , buf , start + shift , len ) ; offset += shift ; } | private void shiftSeqData ( int start , int len , int shift ) { if ( shift > _NUM ) { ensureFreeBytes ( shift ) ; } System . arraycopy ( buf , start , buf , start + shift , len ) ; offset += shift ; } | 53 |
java-test-8064 | java | What does positive shift value mean ? | shift to the right | private void shift Seq Data ( int start , int len , int shift ) { if ( shift > NUM ) { ensure Free Bytes ( shift ) ; } System . arraycopy ( buf , start , buf , start + shift , len ) ; offset += shift ; } | private void shiftSeqData ( int start , int len , int shift ) { if ( shift > _NUM ) { ensureFreeBytes ( shift ) ; } System . arraycopy ( buf , start , buf , start + shift , len ) ; offset += shift ; } | 53 |
java-test-8065 | java | What do only one element tag need when ? | to be changed in the xml file | public static String replace Element Text ( String xml File , String tag Name , String value , boolean all , boolean overwrite ) throws DOM Exception { Map elements = new Hash Map ( ) ; elements . put ( tag Name , value ) ; return replace Element Text ( xml File , elements , all , overwrite ) ; } | public static String replaceElementText ( String xmlFile , String tagName , String value , boolean all , boolean overwrite ) throws DOMException { Map elements = new HashMap ( ) ; elements . put ( tagName , value ) ; return replaceElementText ( xmlFile , elements , all , overwrite ) ; } | 63 |
java-test-8066 | java | When does this method use this method ? | when only one element tag needs to be changed in the xml file | public static String replace Element Text ( String xml File , String tag Name , String value , boolean all , boolean overwrite ) throws DOM Exception { Map elements = new Hash Map ( ) ; elements . put ( tag Name , value ) ; return replace Element Text ( xml File , elements , all , overwrite ) ; } | public static String replaceElementText ( String xmlFile , String tagName , String value , boolean all , boolean overwrite ) throws DOMException { Map elements = new HashMap ( ) ; elements . put ( tagName , value ) ; return replaceElementText ( xmlFile , elements , all , overwrite ) ; } | 63 |
java-test-8067 | java | What does this method remove ? | entire subtree of the element | public static String replace Element Text ( String xml File , String tag Name , String value , boolean all , boolean overwrite ) throws DOM Exception { Map elements = new Hash Map ( ) ; elements . put ( tag Name , value ) ; return replace Element Text ( xml File , elements , all , overwrite ) ; } | public static String replaceElementText ( String xmlFile , String tagName , String value , boolean all , boolean overwrite ) throws DOMException { Map elements = new HashMap ( ) ; elements . put ( tagName , value ) ; return replaceElementText ( xmlFile , elements , all , overwrite ) ; } | 63 |
java-test-8068 | java | Where be only one element tag changed ? | in the xml file | public static String replace Element Text ( String xml File , String tag Name , String value , boolean all , boolean overwrite ) throws DOM Exception { Map elements = new Hash Map ( ) ; elements . put ( tag Name , value ) ; return replace Element Text ( xml File , elements , all , overwrite ) ; } | public static String replaceElementText ( String xmlFile , String tagName , String value , boolean all , boolean overwrite ) throws DOMException { Map elements = new HashMap ( ) ; elements . put ( tagName , value ) ; return replaceElementText ( xmlFile , elements , all , overwrite ) ; } | 63 |
java-test-8069 | java | How does the ( k , v ) insert into the store ? | using the specified timebucket | public boolean put ( @ Nullable K k , @ Nullable V v , long time Bucket ) { if ( is Key Contains Multi Value ) { Slice key Slice = stream Codec . to Byte Array ( k ) ; int bucket Id = get Bucket Id ( k ) ; Slice value Slice = store . get Sync ( bucket Id , key Slice ) ; List < V > list Ob ; if ( value Slice == null || ... | public boolean put ( @ Nullable K k , @ Nullable V v , long timeBucket ) { if ( isKeyContainsMultiValue ) { Slice keySlice = streamCodec . toByteArray ( k ) ; int bucketId = getBucketId ( k ) ; Slice valueSlice = store . getSync ( bucketId , keySlice ) ; List < V > listOb ; if ( valueSlice == null || valueSlice . lengt... | 198 |
java-test-8070 | java | What validates within a specific component ? | the unescaped uri string | protected boolean prevalidate ( final String component , final Bit Set disallowed ) { if ( component == null ) { return BOOL ; } final char [ ] target = component . to Char Array ( ) ; for ( int i = NUM ; i < target . length ; i ++ ) { if ( disallowed . get ( target [ i ] ) ) { return BOOL ; } } return BOOL ; } | protected boolean prevalidate ( final String component , final BitSet disallowed ) { if ( component == null ) { return _BOOL ; } final char [ ] target = component . toCharArray ( ) ; for ( int i = _NUM ; i < target . length ; i ++ ) { if ( disallowed . get ( target [ i ] ) ) { return _BOOL ; } } return _BOOL ; } | 78 |
java-test-8071 | java | What validates in an obb ? | the contents of an " int " file | protected void do Validate Int Contents ( String path , String filename , int start , int end ) { File in File = new File ( path , filename ) ; Data Input Stream in Stream = null ; Log . i ( LOG TAG , STRING + filename + STRING + path ) ; try { in Stream = new Data Input Stream ( new File Input Stream ( in File ) ) ; f... | protected void doValidateIntContents ( String path , String filename , int start , int end ) { File inFile = new File ( path , filename ) ; DataInputStream inStream = null ; Log . i ( LOG_TAG , STRING + filename + STRING + path ) ; try { inStream = new DataInputStream ( new FileInputStream ( inFile ) ) ; for ( int i = ... | 193 |
java-test-8076 | java | When is the response_type value token ? | when using the oauth2 implicit grant | public static boolean is O Auth 2 Fragment Error Type ( Set < String > requested Response Types ) { if ( requested Response Types == null ) { return BOOL ; } return requested Response Types . size ( ) == NUM && requested Response Types . contains ( TOKEN ) ; } | public static boolean isOAuth2FragmentErrorType ( Set < String > requestedResponseTypes ) { if ( requestedResponseTypes == null ) { return _BOOL ; } return requestedResponseTypes . size ( ) == _NUM && requestedResponseTypes . contains ( TOKEN ) ; } | 54 |
java-test-8077 | java | How does a classloader register ? | with the clr | private void add Class Loader ( Class Loader loader , final Object Name logical Name ) { final Modifiable Class Loader Repository clr = get Instantiator CLR ( ) ; if ( clr == null ) { final Runtime Exception wrapped = new Illegal Argument Exception ( STRING + STRING ) ; throw new Runtime Operations Exception ( wrapped ... | private void addClassLoader ( ClassLoader loader , final ObjectName logicalName ) { final ModifiableClassLoaderRepository clr = getInstantiatorCLR ( ) ; if ( clr == null ) { final RuntimeException wrapped = new IllegalArgumentException ( STRING + STRING ) ; throw new RuntimeOperationsException ( wrapped , STRING + STRI... | 79 |
java-test-8078 | java | What is scaled to collapsed / expanded text size if its anywhere close to these values ? | the font size | private void calculate Using Text Size ( final float text Size ) { if ( ms Text == null ) return ; final float available Width ; final float new Text Size ; boolean update Draw Text = BOOL ; if ( is Close ( text Size , mf Collapsed Text Size ) ) { available Width = m Collapsed Bounds . width ( ) ; new Text Size = mf Co... | private void calculateUsingTextSize ( final float textSize ) { if ( msText == null ) return ; final float availableWidth ; final float newTextSize ; boolean updateDrawText = _BOOL ; if ( isClose ( textSize , mfCollapsedTextSize ) ) { availableWidth = mCollapsedBounds . width ( ) ; newTextSize = mfCollapsedTextSize ; mS... | 270 |
java-test-8079 | java | How is with the factor calculated here scaled the canvas ? | in draw | private void calculate Using Text Size ( final float text Size ) { if ( ms Text == null ) return ; final float available Width ; final float new Text Size ; boolean update Draw Text = BOOL ; if ( is Close ( text Size , mf Collapsed Text Size ) ) { available Width = m Collapsed Bounds . width ( ) ; new Text Size = mf Co... | private void calculateUsingTextSize ( final float textSize ) { if ( msText == null ) return ; final float availableWidth ; final float newTextSize ; boolean updateDrawText = _BOOL ; if ( isClose ( textSize , mfCollapsedTextSize ) ) { availableWidth = mCollapsedBounds . width ( ) ; newTextSize = mfCollapsedTextSize ; mS... | 270 |
java-test-8080 | java | What is the font size scaled if its anywhere close to these values ? | to collapsed / expanded text size | private void calculate Using Text Size ( final float text Size ) { if ( ms Text == null ) return ; final float available Width ; final float new Text Size ; boolean update Draw Text = BOOL ; if ( is Close ( text Size , mf Collapsed Text Size ) ) { available Width = m Collapsed Bounds . width ( ) ; new Text Size = mf Co... | private void calculateUsingTextSize ( final float textSize ) { if ( msText == null ) return ; final float availableWidth ; final float newTextSize ; boolean updateDrawText = _BOOL ; if ( isClose ( textSize , mfCollapsedTextSize ) ) { availableWidth = mCollapsedBounds . width ( ) ; newTextSize = mfCollapsedTextSize ; mS... | 270 |
java-test-8081 | java | What does the response notify for its termination then ? | the stunstack | public void handle Response ( Stun Message Event evt ) { lock . lock ( ) ; try { Transaction ID transaction ID = get Transaction ID ( ) ; logger . log ( Level . FINE , STRING + transaction ID ) ; if ( ! Boolean . get Boolean ( Stack Properties . KEEP CRANS AFTER A RESPONSE ) ) cancel ( ) ; response Collector . process ... | public void handleResponse ( StunMessageEvent evt ) { lock . lock ( ) ; try { TransactionID transactionID = getTransactionID ( ) ; logger . log ( Level . FINE , STRING + transactionID ) ; if ( ! Boolean . getBoolean ( StackProperties . KEEP_CRANS_AFTER_A_RESPONSE ) ) cancel ( ) ; responseCollector . processResponse ( n... | 116 |
java-test-8082 | java | When did we follow single cardinality children only ? | once found | public Collection < ? extends Element > generate Multiple ( Element parent , Element Metadata < ? , ? > parent Metadata , Element Metadata < ? , ? > metadata ) { Preconditions . check State ( path . selects Element ( ) , STRING ) ; Collection < ? extends Element > elements = get Final Elements ( path , parent ) ; if ( ... | public Collection < ? extends Element > generateMultiple ( Element parent , ElementMetadata < ? , ? > parentMetadata , ElementMetadata < ? , ? > metadata ) { Preconditions . checkState ( path . selectsElement ( ) , STRING ) ; Collection < ? extends Element > elements = getFinalElements ( path , parent ) ; if ( elements... | 181 |
java-test-8083 | java | What be this allows only ? | a single multiple cardinality element in the path | public Collection < ? extends Element > generate Multiple ( Element parent , Element Metadata < ? , ? > parent Metadata , Element Metadata < ? , ? > metadata ) { Preconditions . check State ( path . selects Element ( ) , STRING ) ; Collection < ? extends Element > elements = get Final Elements ( path , parent ) ; if ( ... | public Collection < ? extends Element > generateMultiple ( Element parent , ElementMetadata < ? , ? > parentMetadata , ElementMetadata < ? , ? > metadata ) { Preconditions . checkState ( path . selectsElement ( ) , STRING ) ; Collection < ? extends Element > elements = getFinalElements ( path , parent ) ; if ( elements... | 181 |
java-test-8084 | java | What did we follow only once found once found ? | single cardinality children | public Collection < ? extends Element > generate Multiple ( Element parent , Element Metadata < ? , ? > parent Metadata , Element Metadata < ? , ? > metadata ) { Preconditions . check State ( path . selects Element ( ) , STRING ) ; Collection < ? extends Element > elements = get Final Elements ( path , parent ) ; if ( ... | public Collection < ? extends Element > generateMultiple ( Element parent , ElementMetadata < ? , ? > parentMetadata , ElementMetadata < ? , ? > metadata ) { Preconditions . checkState ( path . selectsElement ( ) , STRING ) ; Collection < ? extends Element > elements = getFinalElements ( path , parent ) ; if ( elements... | 181 |
java-test-8088 | java | What does the code declare ? | a new variable | void declare ( String name , Type type ) { if ( reserved Words . contains ( name ) ) throw new Runtime Exception ( name + STRING ) ; if ( table . contains Key ( name ) ) throw new Runtime Exception ( STRING + name + STRING ) ; Symbol symbol = new Symbol ( this , name , type ) ; table . put ( name , symbol ) ; stack Map... | void declare ( String name , Type type ) { if ( reservedWords . contains ( name ) ) throw new RuntimeException ( name + STRING ) ; if ( table . containsKey ( name ) ) throw new RuntimeException ( STRING + name + STRING ) ; Symbol symbol = new Symbol ( this , name , type ) ; table . put ( name , symbol ) ; stackMap . ad... | 87 |
java-test-8089 | java | What is writing some of it manually ? | singulars | public boolean check For Already Existing Nodes And Generate Error ( Eclipse Node builder Type , Singular Data data ) { for ( Eclipse Node child : builder Type . down ( ) ) { switch ( child . get Kind ( ) ) { case FIELD : { Field Declaration fd = ( Field Declaration ) child . get ( ) ; char [ ] name = fd . name ; if ( ... | public boolean checkForAlreadyExistingNodesAndGenerateError ( EclipseNode builderType , SingularData data ) { for ( EclipseNode child : builderType . down ( ) ) { switch ( child . getKind ( ) ) { case FIELD : { FieldDeclaration fd = ( FieldDeclaration ) child . get ( ) ; char [ ] name = fd . name ; if ( name == null ) ... | 259 |
java-test-8090 | java | What do singulars write manually ? | some of it | public boolean check For Already Existing Nodes And Generate Error ( Eclipse Node builder Type , Singular Data data ) { for ( Eclipse Node child : builder Type . down ( ) ) { switch ( child . get Kind ( ) ) { case FIELD : { Field Declaration fd = ( Field Declaration ) child . get ( ) ; char [ ] name = fd . name ; if ( ... | public boolean checkForAlreadyExistingNodesAndGenerateError ( EclipseNode builderType , SingularData data ) { for ( EclipseNode child : builderType . down ( ) ) { switch ( child . getKind ( ) ) { case FIELD : { FieldDeclaration fd = ( FieldDeclaration ) child . get ( ) ; char [ ] name = fd . name ; if ( name == null ) ... | 259 |
java-test-8091 | java | For what purpose do persistent global userpreferences write ? | to file in user ' s home directory | public void write ( ) { try { File pref File = new File ( System Properties . get Property ( STRING ) , PREF FILE NAME ) ; write ( new File Output Stream ( pref File ) ) ; } catch ( IO Exception e ) { if ( Find Bugs . DEBUG ) { e . print Stack Trace ( ) ; } } } | public void write ( ) { try { File prefFile = new File ( SystemProperties . getProperty ( STRING ) , PREF_FILE_NAME ) ; write ( new FileOutputStream ( prefFile ) ) ; } catch ( IOException e ) { if ( FindBugs . DEBUG ) { e . printStackTrace ( ) ; } } } | 68 |
java-test-8092 | java | What does the code update ? | the internal representation of the mask | private void update Internal Mask ( ) throws Parse Exception { String mask = get Mask ( ) ; Array List < Mask Character > fixed = new Array List < Mask Character > ( ) ; Array List < Mask Character > temp = fixed ; if ( mask != null ) { for ( int counter = NUM , max Counter = mask . length ( ) ; counter < max Counter ;... | private void updateInternalMask ( ) throws ParseException { String mask = getMask ( ) ; ArrayList < MaskCharacter > fixed = new ArrayList < MaskCharacter > ( ) ; ArrayList < MaskCharacter > temp = fixed ; if ( mask != null ) { for ( int counter = _NUM , maxCounter = mask . length ( ) ; counter < maxCounter ; counter ++... | 327 |
java-test-8093 | java | What does low - level cache i / o method restore to main memory physically ? | the data blob | protected void restore Blob Into Memory ( ) throws Cache Exception { String cache File Path And Name = get Cache File Path And Name ( ) ; long begin = LOG . is Trace Enabled ( ) ? System . current Time Millis ( ) : NUM ; if ( LOG . is Trace Enabled ( ) ) LOG . trace ( STRING + get Var Name ( ) + STRING + ( hdfs File Na... | protected void restoreBlobIntoMemory ( ) throws CacheException { String cacheFilePathAndName = getCacheFilePathAndName ( ) ; long begin = LOG . isTraceEnabled ( ) ? System . currentTimeMillis ( ) : _NUM ; if ( LOG . isTraceEnabled ( ) ) LOG . trace ( STRING + getVarName ( ) + STRING + ( _hdfsFileName == null ? STRING :... | 209 |
java-test-8095 | java | What should initiate communications ? | which of the two addresses given | static String which Initiates ( String a , String b ) throws No Such Algorithm Exception , Unsupported Encoding Exception { if ( a == null || b == null ) { return null ; } if ( a . compare To ( b ) < NUM ) { if ( starts With A One Bit ( concat And Hash ( a , b ) ) ) { return a ; } else { return b ; } } else { if ( star... | static String whichInitiates ( String a , String b ) throws NoSuchAlgorithmException , UnsupportedEncodingException { if ( a == null || b == null ) { return null ; } if ( a . compareTo ( b ) < _NUM ) { if ( startsWithAOneBit ( concatAndHash ( a , b ) ) ) { return a ; } else { return b ; } } else { if ( startsWithAOneBi... | 112 |
java-test-8096 | java | What should which of the two addresses given initiate ? | communications | static String which Initiates ( String a , String b ) throws No Such Algorithm Exception , Unsupported Encoding Exception { if ( a == null || b == null ) { return null ; } if ( a . compare To ( b ) < NUM ) { if ( starts With A One Bit ( concat And Hash ( a , b ) ) ) { return a ; } else { return b ; } } else { if ( star... | static String whichInitiates ( String a , String b ) throws NoSuchAlgorithmException , UnsupportedEncodingException { if ( a == null || b == null ) { return null ; } if ( a . compareTo ( b ) < _NUM ) { if ( startsWithAOneBit ( concatAndHash ( a , b ) ) ) { return a ; } else { return b ; } } else { if ( startsWithAOneBi... | 112 |
java-test-8098 | java | What does the code create ? | the levels higher than the given level | private Abstract Node create Higher Levels ( List boundables Of A Level , int level ) { Assert . is True ( ! boundables Of A Level . is Empty ( ) ) ; List parent Boundables = create Parent Boundables ( boundables Of A Level , level + NUM ) ; if ( parent Boundables . size ( ) == NUM ) { return ( Abstract Node ) parent B... | private AbstractNode createHigherLevels ( List boundablesOfALevel , int level ) { Assert . isTrue ( ! boundablesOfALevel . isEmpty ( ) ) ; List parentBoundables = createParentBoundables ( boundablesOfALevel , level + _NUM ) ; if ( parentBoundables . size ( ) == _NUM ) { return ( AbstractNode ) parentBoundables . get ( ... | 92 |
java-test-8099 | java | What does the code count respecting the rules for quotes and escapes defined in rfc4180 ? | the number of tokens defined by the given delimiter | public static int count Tokens CSV ( String str , String delim ) { if ( str == null || str . is Empty ( ) ) return NUM ; int num Tokens = NUM ; int from = NUM , to = NUM ; int len = str . length ( ) ; while ( from < len ) { if ( str . char At ( from ) == CSV QUOTE CHAR && str . index Of ( CSV QUOTE CHAR , from + NUM ) ... | public static int countTokensCSV ( String str , String delim ) { if ( str == null || str . isEmpty ( ) ) return _NUM ; int numTokens = _NUM ; int from = _NUM , to = _NUM ; int len = str . length ( ) ; while ( from < len ) { if ( str . charAt ( from ) == CSV_QUOTE_CHAR && str . indexOf ( CSV_QUOTE_CHAR , from + _NUM ) >... | 237 |
java-test-8100 | java | What does the code respect ? | the rules for quotes and escapes defined in rfc4180 | public static int count Tokens CSV ( String str , String delim ) { if ( str == null || str . is Empty ( ) ) return NUM ; int num Tokens = NUM ; int from = NUM , to = NUM ; int len = str . length ( ) ; while ( from < len ) { if ( str . char At ( from ) == CSV QUOTE CHAR && str . index Of ( CSV QUOTE CHAR , from + NUM ) ... | public static int countTokensCSV ( String str , String delim ) { if ( str == null || str . isEmpty ( ) ) return _NUM ; int numTokens = _NUM ; int from = _NUM , to = _NUM ; int len = str . length ( ) ; while ( from < len ) { if ( str . charAt ( from ) == CSV_QUOTE_CHAR && str . indexOf ( CSV_QUOTE_CHAR , from + _NUM ) >... | 237 |
java-test-8101 | java | In which direction do jpeg file create ? | from window | public static boolean create JPEG ( Window window , String file Name ) { Buffered Image bi = null ; if ( window == null || file Name == null ) new Illegal Argument Exception ( STRING ) ; File file = get JPG File ( window ) ; if ( file == null ) return BOOL ; log . config ( STRING + file ) ; if ( file . exists ( ) ) fil... | public static boolean createJPEG ( Window window , String fileName ) { BufferedImage bi = null ; if ( window == null || fileName == null ) new IllegalArgumentException ( STRING ) ; File file = getJPGFile ( window ) ; if ( file == null ) return _BOOL ; log . config ( STRING + file ) ; if ( file . exists ( ) ) file . del... | 246 |
java-test-8102 | java | What has these substrings represent ? | character sequences that are the same | public boolean region Matches ( boolean ignore Case , int this Start , String string , int start , int length ) { if ( ! ignore Case ) { return region Matches ( this Start , string , start , length ) ; } if ( string == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( this Start < NUM || length > count - th... | public boolean regionMatches ( boolean ignoreCase , int thisStart , String string , int start , int length ) { if ( ! ignoreCase ) { return regionMatches ( thisStart , string , start , length ) ; } if ( string == null ) { throw new NullPointerException ( STRING ) ; } if ( thisStart < _NUM || length > count - thisStart ... | 183 |
java-test-8103 | java | What do these substrings ignore ? | case if and only if ignorecase is true . the substring of this string object to be compared begins at index toffset and has length len . the substring of other to be compared begins at index ooffset and has length len | public boolean region Matches ( boolean ignore Case , int this Start , String string , int start , int length ) { if ( ! ignore Case ) { return region Matches ( this Start , string , start , length ) ; } if ( string == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( this Start < NUM || length > count - th... | public boolean regionMatches ( boolean ignoreCase , int thisStart , String string , int start , int length ) { if ( ! ignoreCase ) { return regionMatches ( thisStart , string , start , length ) ; } if ( string == null ) { throw new NullPointerException ( STRING ) ; } if ( thisStart < _NUM || length > count - thisStart ... | 183 |
java-test-8105 | java | What is launching a url while the browser is quitting ? | applescript | private Set < String > wait For Mac App Quit ( String browser ) { Set < String > running Apps ; boolean app Closed = BOOL ; final long start Millis = System . current Time Millis ( ) ; final long wait Millis = NUM ; do { running Apps = running Applications ( ) ; if ( running Apps . contains ( browser ) ) { app Closed =... | private Set < String > waitForMacAppQuit ( String browser ) { Set < String > runningApps ; boolean appClosed = _BOOL ; final long startMillis = System . currentTimeMillis ( ) ; final long waitMillis = _NUM ; do { runningApps = runningApplications ( ) ; if ( runningApps . contains ( browser ) ) { appClosed = _BOOL ; try... | 146 |
java-test-8106 | java | Why is waiting important ? | because applescript " quit " is not synchronous and launching a url while the browser is quitting is not good | private Set < String > wait For Mac App Quit ( String browser ) { Set < String > running Apps ; boolean app Closed = BOOL ; final long start Millis = System . current Time Millis ( ) ; final long wait Millis = NUM ; do { running Apps = running Applications ( ) ; if ( running Apps . contains ( browser ) ) { app Closed =... | private Set < String > waitForMacAppQuit ( String browser ) { Set < String > runningApps ; boolean appClosed = _BOOL ; final long startMillis = System . currentTimeMillis ( ) ; final long waitMillis = _NUM ; do { runningApps = runningApplications ( ) ; if ( runningApps . contains ( browser ) ) { appClosed = _BOOL ; try... | 146 |
java-test-8107 | java | When do applescript launch a url ? | while the browser is quitting | private Set < String > wait For Mac App Quit ( String browser ) { Set < String > running Apps ; boolean app Closed = BOOL ; final long start Millis = System . current Time Millis ( ) ; final long wait Millis = NUM ; do { running Apps = running Applications ( ) ; if ( running Apps . contains ( browser ) ) { app Closed =... | private Set < String > waitForMacAppQuit ( String browser ) { Set < String > runningApps ; boolean appClosed = _BOOL ; final long startMillis = System . currentTimeMillis ( ) ; final long waitMillis = _NUM ; do { runningApps = runningApplications ( ) ; if ( runningApps . contains ( browser ) ) { appClosed = _BOOL ; try... | 146 |
java-test-8110 | java | What does the code add to the saved list ? | a list of urls | public Url Critter add Url List ( List < String > urls , Context context ) { List < String > saved Urls = url Manager . get Urls ( context ) ; for ( String url : urls ) { if ( ! saved Urls . contains ( url ) ) { saved Urls . add ( url ) ; } } url Manager . save Urls ( context , saved Urls ) ; return this ; } | public UrlCritter addUrlList ( List < String > urls , Context context ) { List < String > savedUrls = urlManager . getUrls ( context ) ; for ( String url : urls ) { if ( ! savedUrls . contains ( url ) ) { savedUrls . add ( url ) ; } } urlManager . saveUrls ( context , savedUrls ) ; return this ; } | 79 |
java-test-8111 | java | What does the code update ? | the view model based on whether filtering or not | public void update Data Model ( ) { m model Data . clear ( ) ; int size = m model . get Size ( ) ; for ( int i = NUM ; i < size ; i ++ ) m model Data . add ( m model . get Element At ( i ) ) ; } | public void updateDataModel ( ) { m_modelData . clear ( ) ; int size = m_model . getSize ( ) ; for ( int i = _NUM ; i < size ; i ++ ) m_modelData . add ( m_model . getElementAt ( i ) ) ; } | 59 |
java-test-8112 | java | When does the actual writing to disk perform in the order specified by calls to write ? | since the last call to initialize ( ) | void flush ( Data Output Stream out ) throws IO Exception { write Header ( out ) ; int size ; int block address ; for ( int block index : on Disk Order ) { block address = memory Lookup . get ( block index ) ; size = block Size ( block index ) ; out . write ( backing , block address , size ) ; } } | void flush ( DataOutputStream out ) throws IOException { writeHeader ( out ) ; int size ; int block_address ; for ( int block_index : onDiskOrder ) { block_address = memoryLookup . get ( block_index ) ; size = blockSize ( block_index ) ; out . write ( backing , block_address , size ) ; } } | 71 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.