id stringlengths 11 16 | language stringclasses 2
values | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-10721 | java | What does method add to the viewer ? | a new fragment class | @ Suppress Warnings ( STRING ) public void add ( final Class < ? extends Fragment > class Name , final Bundle params ) { final Holder m Holder = new Holder ( ) ; m Holder . m Class Name = class Name . get Name ( ) ; m Holder . m Params = params ; final int m Position = m Holder List . size ( ) ; m Holder List . add ( m... | @ SuppressWarnings ( STRING ) public void add ( final Class < ? extends Fragment > className , final Bundle params ) { final Holder mHolder = new Holder ( ) ; mHolder . mClassName = className . getName ( ) ; mHolder . mParams = params ; final int mPosition = mHolderList . size ( ) ; mHolderList . add ( mPosition , mHol... | 92 |
java-test-10722 | java | What does the code create ? | the qos rule objects from the given jsonobject | private List < Qo S Rule > create Qo S Rules ( Json Object qos Settings ) { List < Qo S Rule > rules = new Array List < > ( ) ; if ( qos Settings . contains Key ( JSON FIELD RULES ) ) { Json Object json Rules = qos Settings . get Json Object ( JSON FIELD RULES ) ; for ( String url Pattern Reg Exp : json Rules . field N... | private List < QoSRule > createQoSRules ( JsonObject qosSettings ) { List < QoSRule > rules = new ArrayList < > ( ) ; if ( qosSettings . containsKey ( JSON_FIELD_RULES ) ) { JsonObject jsonRules = qosSettings . getJsonObject ( JSON_FIELD_RULES ) ; for ( String urlPatternRegExp : jsonRules . fieldNames ( ) ) { log . deb... | 247 |
java-test-10723 | java | What does the code provide if it ' s available on this system ? | this adapter name | public String name ( ) { if ( System Type . is Mac OSX ( ) || ( System Type . is Windows ( ) && Double . value Of ( System . get Property ( STRING ) ) >= NUM ) ) { return STRING ; } else { return STRING ; } } | public String name ( ) { if ( SystemType . isMacOSX ( ) || ( SystemType . isWindows ( ) && Double . valueOf ( System . getProperty ( STRING ) ) >= _NUM ) ) { return STRING ; } else { return STRING ; } } | 55 |
java-test-10724 | java | Where s it s available ? | on this system | public String name ( ) { if ( System Type . is Mac OSX ( ) || ( System Type . is Windows ( ) && Double . value Of ( System . get Property ( STRING ) ) >= NUM ) ) { return STRING ; } else { return STRING ; } } | public String name ( ) { if ( SystemType . isMacOSX ( ) || ( SystemType . isWindows ( ) && Double . valueOf ( System . getProperty ( STRING ) ) >= _NUM ) ) { return STRING ; } else { return STRING ; } } | 55 |
java-test-10727 | java | Where will custom implementation of tooctets to ensure a string value too long be truncated properly ? | in view of the space needed by the type , length , and identifier | private static final byte [ ] to Octets ( int identifier , String text ) { byte [ ] s = text . get Bytes ( Standard Charsets . UTF 8 ) ; byte [ ] base = Octet Utils . to Octets ( Attribute Type . VENDOR SPECIFIC , identifier ) ; int max Text Space = Attribute . MAX ATTRIBUTE LENGTH - base . length ; byte [ ] octets ; i... | private static final byte [ ] toOctets ( int identifier , String text ) { byte [ ] s = text . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] base = OctetUtils . toOctets ( AttributeType . VENDOR_SPECIFIC , identifier ) ; int maxTextSpace = Attribute . MAX_ATTRIBUTE_LENGTH - base . length ; byte [ ] octets ; if ( s . ... | 191 |
java-test-10728 | java | What will be truncated in view of the space needed by the type , length , and identifier ? | custom implementation of tooctets to ensure a string value too long | private static final byte [ ] to Octets ( int identifier , String text ) { byte [ ] s = text . get Bytes ( Standard Charsets . UTF 8 ) ; byte [ ] base = Octet Utils . to Octets ( Attribute Type . VENDOR SPECIFIC , identifier ) ; int max Text Space = Attribute . MAX ATTRIBUTE LENGTH - base . length ; byte [ ] octets ; i... | private static final byte [ ] toOctets ( int identifier , String text ) { byte [ ] s = text . getBytes ( StandardCharsets . UTF_8 ) ; byte [ ] base = OctetUtils . toOctets ( AttributeType . VENDOR_SPECIFIC , identifier ) ; int maxTextSpace = Attribute . MAX_ATTRIBUTE_LENGTH - base . length ; byte [ ] octets ; if ( s . ... | 191 |
java-test-10729 | java | What does it return if successful ? | the size of the parsed bytes which is the key provider identifier length | private int parse Key Provider Id ( final byte [ ] b , final int off ) throws Parse Exception { final int bytes To Parse Len = b . length - off ; if ( bytes To Parse Len >= key Provider Id Len ) { key Provider Id = Arrays . copy Of Range ( b , off , off + key Provider Id Len ) ; return key Provider Id Len ; } else { th... | private int parseKeyProviderId ( final byte [ ] b , final int off ) throws ParseException { final int bytesToParseLen = b . length - off ; if ( bytesToParseLen >= keyProviderIdLen_ ) { keyProviderId_ = Arrays . copyOfRange ( b , off , off + keyProviderIdLen_ ) ; return keyProviderIdLen_ ; } else { throw new ParseExcept... | 88 |
java-test-10730 | java | What does the code skip for any given result object ? | more than one search result | private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } } | private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } } | 64 |
java-test-10731 | java | For what purpose does the code skip more than one search result ? | for any given result object | private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } } | private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } } | 64 |
java-test-10732 | java | How does the reduced results list fill the code ? | by skipping more than one search result for any given result object | private void remove Duplicates ( ) { m reduced Results . clear ( ) ; Object last = null ; for ( final Search Result r : m results ) { if ( last != r . get Object ( ) ) { last = r . get Object ( ) ; m reduced Results . add ( r ) ; } } } | private void removeDuplicates ( ) { m_reducedResults . clear ( ) ; Object last = null ; for ( final SearchResult r : m_results ) { if ( last != r . getObject ( ) ) { last = r . getObject ( ) ; m_reducedResults . add ( r ) ; } } } | 64 |
java-test-10733 | java | What does the code add to the database ? | a chat | public boolean add Chat ( @ Not Null Chat Impl chat ) { int updated Rows = NUM ; try { final Prepared Statement prepared Statement = connetion . get Prepared Statement ( STRING + STRING ) ; prepared Statement . set Int ( NUM , chat . get Id ( ) ) ; if ( chat . get Access Hash ( ) == null ) { prepared Statement . set Nu... | public boolean addChat ( @ NotNull ChatImpl chat ) { int updatedRows = _NUM ; try { final PreparedStatement preparedStatement = connetion . getPreparedStatement ( STRING + STRING ) ; preparedStatement . setInt ( _NUM , chat . getId ( ) ) ; if ( chat . getAccessHash ( ) == null ) { preparedStatement . setNull ( _NUM , T... | 154 |
java-test-10734 | java | Where did irix computers connect through a central gateway ? | on a lan | public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad... | public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb... | 285 |
java-test-10735 | java | What do we pick ? | the first ip that is not a loopback and not a link local and not private | public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad... | public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb... | 285 |
java-test-10736 | java | How did irix computers connect on a lan ? | through a central gateway | public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad... | public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb... | 285 |
java-test-10737 | java | What connected on a lan ? | irix computers | public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad... | public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb... | 285 |
java-test-10738 | java | How do we iterate ? | through an enumeration of network interfaces on the machine | public static Inet Address find Inet Address ( ) throws Socket Exception , Unknown Host Exception { final Enumeration < Network Interface > enum 1 = Network Interface . get Network Interfaces ( ) ; if ( enum 1 == null ) { final Inet Address ip 1 = Inet Address . get Local Host ( ) ; return ip 1 ; } final List < Inet Ad... | public static InetAddress findInetAddress ( ) throws SocketException , UnknownHostException { final Enumeration < NetworkInterface > enum1 = NetworkInterface . getNetworkInterfaces ( ) ; if ( enum1 == null ) { final InetAddress ip1 = InetAddress . getLocalHost ( ) ; return ip1 ; } final List < InetAddress > allButLoopb... | 285 |
java-test-10739 | java | Where is the upper left corner of the rectangle the minimum x , y values ? | the four coordinates | public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; } | public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; } | 87 |
java-test-10740 | java | What does the code create ? | a bounding rectangle given the four coordinates , where the upper left corner of the rectangle is the minimum x , y values and the width and height are the difference between xs and ys | public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; } | public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; } | 87 |
java-test-10741 | java | What are the difference between xs and ys a ? | the width and height | public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; } | public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; } | 87 |
java-test-10742 | java | What is the minimum x , y values the four coordinates ? | the upper left corner of the rectangle | public Rectangle 2 D create Proper Bounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle 2 D . Double ( x , y , w , h ) ; } | public Rectangle2D createProperBounds ( double x1 , double y1 , double x2 , double y2 ) { double x = Math . min ( x1 , x2 ) ; double y = Math . min ( y1 , y2 ) ; double w = Math . abs ( x1 - x2 ) ; double h = Math . abs ( y1 - y2 ) ; return new Rectangle2D . Double ( x , y , w , h ) ; } | 87 |
java-test-10743 | java | What does the code add to the set ? | a single terminal | public boolean add ( terminal sym ) throws internal error { boolean result ; not null ( sym ) ; result = elements . get ( sym . index ( ) ) ; if ( ! result ) elements . set ( sym . index ( ) ) ; return result ; } | public boolean add ( terminal sym ) throws internal_error { boolean result ; not_null ( sym ) ; result = _elements . get ( sym . index ( ) ) ; if ( ! result ) _elements . set ( sym . index ( ) ) ; return result ; } | 53 |
java-test-10744 | java | How does the specified range of the array sort if possible ? | using the given workspace array slice | static void sort ( float [ ] a , int left , int right , float [ ] work , int work Base , int work Len ) { while ( left <= right && Float . is Na N ( a [ right ] ) ) { -- right ; } for ( int k = right ; -- k >= left ; ) { float ak = a [ k ] ; if ( ak != ak ) { a [ k ] = a [ right ] ; a [ right ] = ak ; -- right ; } } do... | static void sort ( float [ ] a , int left , int right , float [ ] work , int workBase , int workLen ) { while ( left <= right && Float . isNaN ( a [ right ] ) ) { -- right ; } for ( int k = right ; -- k >= left ; ) { float ak = a [ k ] ; if ( ak != ak ) { a [ k ] = a [ right ] ; a [ right ] = ak ; -- right ; } } doSort... | 278 |
java-test-10746 | java | How does the code split the specified string before width ? | at the last blank | public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch... | public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA... | 165 |
java-test-10747 | java | When does the code split the specified string at the last blank ? | before width | public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch... | public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA... | 165 |
java-test-10748 | java | Where is it is split if there is no blank before the given width ? | at the next | public static List < String > split At Last Blank ( String s , int width ) { List < String > chunks = new Array List < > ( ) ; String tmp = s ; while ( tmp . length ( ) > NUM ) { int index = find Splitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . ch... | public static List < String > splitAtLastBlank ( String s , int width ) { List < String > chunks = new ArrayList < > ( ) ; String tmp = s ; while ( tmp . length ( ) > _NUM ) { int index = findSplitpoint ( tmp , width ) ; chunks . add ( tmp . substring ( _NUM , index ) ) ; while ( index < tmp . length ( ) && tmp . charA... | 165 |
java-test-10749 | java | What is resolveproxyclass extended ? | to acquire ( if present ) the location to determine the class loader to define the proxy class in | protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def... | protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas... | 118 |
java-test-10750 | java | What is extended to acquire ( if present ) the location to determine the class loader to define the proxy class in ? | resolveproxyclass | protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def... | protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas... | 118 |
java-test-10751 | java | For what purpose did the location acquire ? | to determine the class loader to define the proxy class in | protected Class < ? > resolve Proxy Class ( String [ ] interfaces ) throws IO Exception , Class Not Found Exception { Stream Checker checker = stream Checker ; if ( checker != null ) { checker . check Proxy Interface Names ( interfaces ) ; } Object annotation = read Location ( ) ; Class Loader default Loader = skip Def... | protected Class < ? > resolveProxyClass ( String [ ] interfaces ) throws IOException , ClassNotFoundException { StreamChecker checker = streamChecker ; if ( checker != null ) { checker . checkProxyInterfaceNames ( interfaces ) ; } Object annotation = readLocation ( ) ; ClassLoader defaultLoader = skipDefaultResolveClas... | 118 |
java-test-10753 | java | What does the code run ? | an init script from the classpath | private void run Init Script If Required ( String url , Connection connection ) throws SQL Exception { Matcher matcher = INITSCRIPT MATCHING PATTERN . matcher ( url ) ; if ( matcher . matches ( ) ) { String init Script Path = matcher . group ( NUM ) ; try { URL resource = Resources . get Resource ( init Script Path ) ;... | private void runInitScriptIfRequired ( String url , Connection connection ) throws SQLException { Matcher matcher = INITSCRIPT_MATCHING_PATTERN . matcher ( url ) ; if ( matcher . matches ( ) ) { String initScriptPath = matcher . group ( _NUM ) ; try { URL resource = Resources . getResource ( initScriptPath ) ; String s... | 173 |
java-test-10754 | java | What does the code return if no esds box is found ? | the position of the esds box within a parent | private static int find Esds Position ( Parsable Byte Array parent , int position , int size ) { int child Atom Position = parent . get Position ( ) ; while ( child Atom Position - position < size ) { parent . set Position ( child Atom Position ) ; int child Atom Size = parent . read Int ( ) ; Assertions . check Argume... | private static int findEsdsPosition ( ParsableByteArray parent , int position , int size ) { int childAtomPosition = parent . getPosition ( ) ; while ( childAtomPosition - position < size ) { parent . setPosition ( childAtomPosition ) ; int childAtomSize = parent . readInt ( ) ; Assertions . checkArgument ( childAtomSi... | 120 |
java-test-10755 | java | What does the code generate ? | a byte array containing random data | public static byte [ ] generate Random Bytes ( final int num Bytes ) { final Secure Random rand = new Secure Random ( ) ; final byte [ ] input = new byte [ num Bytes ] ; rand . next Bytes ( input ) ; return input ; } | public static byte [ ] generateRandomBytes ( final int numBytes ) { final SecureRandom rand = new SecureRandom ( ) ; final byte [ ] input = new byte [ numBytes ] ; rand . nextBytes ( input ) ; return input ; } | 51 |
java-test-10756 | java | What do a byte array contain ? | random data | public static byte [ ] generate Random Bytes ( final int num Bytes ) { final Secure Random rand = new Secure Random ( ) ; final byte [ ] input = new byte [ num Bytes ] ; rand . next Bytes ( input ) ; return input ; } | public static byte [ ] generateRandomBytes ( final int numBytes ) { final SecureRandom rand = new SecureRandom ( ) ; final byte [ ] input = new byte [ numBytes ] ; rand . nextBytes ( input ) ; return input ; } | 51 |
java-test-10757 | java | Why can this take a long time ? | since it spawns external process | protected boolean is Executable Valid ( @ Not Null String executable ) { try { General Command Line command Line = new General Command Line ( ) ; command Line . set Exe Path ( executable ) ; Capturing Process Handler handler = new Capturing Process Handler ( command Line . create Process ( ) , Charset Toolkit . get Def... | protected boolean isExecutableValid ( @ NotNull String executable ) { try { GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; commandLine . setExePath ( executable ) ; CapturingProcessHandler handler = new CapturingProcessHandler ( commandLine . createProcess ( ) , CharsetToolkit . getDefaultSystemCharset (... | 213 |
java-test-10758 | java | What do it spawn ? | external process | protected boolean is Executable Valid ( @ Not Null String executable ) { try { General Command Line command Line = new General Command Line ( ) ; command Line . set Exe Path ( executable ) ; Capturing Process Handler handler = new Capturing Process Handler ( command Line . create Process ( ) , Charset Toolkit . get Def... | protected boolean isExecutableValid ( @ NotNull String executable ) { try { GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; commandLine . setExePath ( executable ) ; CapturingProcessHandler handler = new CapturingProcessHandler ( commandLine . createProcess ( ) , CharsetToolkit . getDefaultSystemCharset (... | 213 |
java-test-10759 | java | How does this method work ? | great with dp mixture model | public void initialize Atoms For DP ( List < Datum > data , String filename , Random random ) { omega = new Array List < > ( K ) ; dof = new double [ K ] ; beta = new double [ K ] ; if ( filename != null ) { try { loc = Batch Mixture Model . initialize Clusters From File ( filename , K ) ; log . debug ( STRING , loc ) ... | public void initializeAtomsForDP ( List < Datum > data , String filename , Random random ) { omega = new ArrayList < > ( K ) ; dof = new double [ K ] ; beta = new double [ K ] ; if ( filename != null ) { try { loc = BatchMixtureModel . initializeClustersFromFile ( filename , K ) ; log . debug ( STRING , loc ) ; if ( lo... | 229 |
java-test-10760 | java | What does the code reset ? | the internal state of this singleton | public void reset Singleton ( ) { root = null ; tmp File Counter . set ( NUM ) ; accessed Files . clear ( ) ; should All Throw IO Exception = BOOL ; classes That Should Throw IO Exception . clear ( ) ; synchronized ( leaking Resources ) { for ( Leaking Resource resource : leaking Resources ) { try { resource . release ... | public void resetSingleton ( ) { root = null ; tmpFileCounter . set ( _NUM ) ; accessedFiles . clear ( ) ; shouldAllThrowIOException = _BOOL ; classesThatShouldThrowIOException . clear ( ) ; synchronized ( leakingResources ) { for ( LeakingResource resource : leakingResources ) { try { resource . release ( ) ; } catch ... | 104 |
java-test-10762 | java | When do a simple verification to maintain class invariants do ? | after reading an object from the input stream | private void read Object ( Object Input Stream in ) throws IO Exception , Class Not Found Exception { in . default Read Object ( ) ; if ( choice Limits . length != choice Formats . length ) { throw new Invalid Object Exception ( STRING ) ; } } | private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( choiceLimits . length != choiceFormats . length ) { throw new InvalidObjectException ( STRING ) ; } } | 51 |
java-test-10763 | java | What does the code return ? | the name of the lm method | @ Override public String to String ( ) { String coll = collection Model . get Name ( ) ; if ( coll != null ) { return String . format ( Locale . ROOT , STRING , get Name ( ) , coll ) ; } else { return String . format ( Locale . ROOT , STRING , get Name ( ) ) ; } } | @ Override public String toString ( ) { String coll = collectionModel . getName ( ) ; if ( coll != null ) { return String . format ( Locale . ROOT , STRING , getName ( ) , coll ) ; } else { return String . format ( Locale . ROOT , STRING , getName ( ) ) ; } } | 68 |
java-test-10764 | java | What does the code determine ? | the path to the file relative to the given directory path | private static String find Relative Path ( String file Path , String dir Path ) { String rel Path ; if ( ! dir Path . ends With ( File . separator ) ) { dir Path = dir Path + File . separator ; } if ( file Path . starts With ( dir Path ) ) { rel Path = file Path . substring ( dir Path . length ( ) ) ; } else { rel Path... | private static String findRelativePath ( String filePath , String dirPath ) { String relPath ; if ( ! dirPath . endsWith ( File . separator ) ) { dirPath = dirPath + File . separator ; } if ( filePath . startsWith ( dirPath ) ) { relPath = filePath . substring ( dirPath . length ( ) ) ; } else { relPath = filePath ; } ... | 90 |
java-test-10765 | java | What does the code read ? | a sequence of bit encoded using lzw compression with 12 - bit codewords from standard input | public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = Binary Std In . read Int ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( BOOL ) { Binary Std Out . write ( val ) ;... | public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = _NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = BinaryStdIn . readInt ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( _BOOL ) { BinaryStdOut . write ( val ) ; co... | 179 |
java-test-10766 | java | How did lzw compression use from standard input ? | with 12 - bit codewords | public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = Binary Std In . read Int ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( BOOL ) { Binary Std Out . write ( val ) ;... | public static void expand ( ) { String [ ] st = new String [ L ] ; int i ; for ( i = _NUM ; i < R ; i ++ ) st [ i ] = STRING + ( char ) i ; st [ i ++ ] = STRING ; int codeword = BinaryStdIn . readInt ( W ) ; if ( codeword == R ) return ; String val = st [ codeword ] ; while ( _BOOL ) { BinaryStdOut . write ( val ) ; co... | 179 |
java-test-10767 | java | How are the offset points computed for accuracy ? | in full double precision | private void compute Offset Segment ( Line Segment seg , int side , double distance , Line Segment offset ) { int side Sign = side == Position . LEFT ? NUM : - NUM ; double dx = seg . p1 . x - seg . p0 . x ; double dy = seg . p1 . y - seg . p0 . y ; double len = Math . sqrt ( dx * dx + dy * dy ) ; double ux = side Sign... | private void computeOffsetSegment ( LineSegment seg , int side , double distance , LineSegment offset ) { int sideSign = side == Position . LEFT ? _NUM : - _NUM ; double dx = seg . p1 . x - seg . p0 . x ; double dy = seg . p1 . y - seg . p0 . y ; double len = Math . sqrt ( dx * dx + dy * dy ) ; double ux = sideSign * d... | 163 |
java-test-10769 | java | How is the hash code generated if present ? | using the signer ' s certificate path and the timestamp | public int hash Code ( ) { if ( myhash == - NUM ) { if ( timestamp == null ) { myhash = signer Cert Path . hash Code ( ) ; } else { myhash = signer Cert Path . hash Code ( ) + timestamp . hash Code ( ) ; } } return myhash ; } | public int hashCode ( ) { if ( myhash == - _NUM ) { if ( timestamp == null ) { myhash = signerCertPath . hashCode ( ) ; } else { myhash = signerCertPath . hashCode ( ) + timestamp . hashCode ( ) ; } } return myhash ; } | 60 |
java-test-10771 | java | What does method handle ? | time update for pseudotcp logic class | private void update Next Clock ( final Pseudo TCP Base tcp , final Object lock ) { try { long now = Pseudo TCP Base . now ( ) ; synchronized ( tcp ) { tcp . notify Clock ( now ) ; } long interval ; synchronized ( tcp ) { interval = tcp . get Next Clock ( Pseudo TCP Base . now ( ) ) ; } if ( logger . is Loggable ( Level... | private void updateNextClock ( final PseudoTCPBase tcp , final Object lock ) { try { long now = PseudoTCPBase . now ( ) ; synchronized ( tcp ) { tcp . notifyClock ( now ) ; } long interval ; synchronized ( tcp ) { interval = tcp . getNextClock ( PseudoTCPBase . now ( ) ) ; } if ( logger . isLoggable ( Level . FINEST ) ... | 151 |
java-test-10772 | java | For what purpose does the object implement the readfrom method ? | to restore its contents by calling the methods of datainput for primitive types and strings or calling readexternal for other objects | public void read From ( Data Input in ) throws IO Exception { type Id = in . read Int ( ) ; type Name = U . read String ( in ) ; int fields Size = in . read Int ( ) ; if ( fields Size == - NUM ) fields = null ; else { fields = new Hash Map < > ( ) ; for ( int i = NUM ; i < fields Size ; i ++ ) { String field Name = U .... | public void readFrom ( DataInput in ) throws IOException { typeId = in . readInt ( ) ; typeName = U . readString ( in ) ; int fieldsSize = in . readInt ( ) ; if ( fieldsSize == - _NUM ) fields = null ; else { fields = new HashMap < > ( ) ; for ( int i = _NUM ; i < fieldsSize ; i ++ ) { String fieldName = U . readString... | 223 |
java-test-10773 | java | How does its contents restore ? | by calling the methods of datainput for primitive types and strings or calling readexternal for other objects | public void read From ( Data Input in ) throws IO Exception { type Id = in . read Int ( ) ; type Name = U . read String ( in ) ; int fields Size = in . read Int ( ) ; if ( fields Size == - NUM ) fields = null ; else { fields = new Hash Map < > ( ) ; for ( int i = NUM ; i < fields Size ; i ++ ) { String field Name = U .... | public void readFrom ( DataInput in ) throws IOException { typeId = in . readInt ( ) ; typeName = U . readString ( in ) ; int fieldsSize = in . readInt ( ) ; if ( fieldsSize == - _NUM ) fields = null ; else { fields = new HashMap < > ( ) ; for ( int i = _NUM ; i < fieldsSize ; i ++ ) { String fieldName = U . readString... | 223 |
java-test-10774 | java | What do fields add ? | to parameterpanel ( gridlayout ) | private void stat Init ( ) { label 1 . set Label For ( text Field 1 ) ; label 1 . set Text ( STRING ) ; label 1 . set Horizontal Alignment ( J Label . LEADING ) ; text Field 1 . set Background ( Adempiere PLAF . get Info Background ( ) ) ; label 2 . set Label For ( text Field 2 ) ; label 2 . set Text ( STRING ) ; label... | private void statInit ( ) { label1 . setLabelFor ( textField1 ) ; label1 . setText ( STRING ) ; label1 . setHorizontalAlignment ( JLabel . LEADING ) ; textField1 . setBackground ( AdempierePLAF . getInfoBackground ( ) ) ; label2 . setLabelFor ( textField2 ) ; label2 . setText ( STRING ) ; label2 . setHorizontalAlignmen... | 342 |
java-test-10777 | java | How does a bunch of swfs combine into one swf ? | by concatenate | public Hash Map < String , String > generate SWF By Combine ( List < String > swfs , String outputswf , int fps ) { List < String > argv List = Arrays . as List ( new String [ ] { get Path To Swf Tools ( ) + STRING + exec Ext , STRING , STRING , STRING , outputswf , STRING , Integer . to String ( fps ) , STRING , STRIN... | public HashMap < String , String > generateSWFByCombine ( List < String > swfs , String outputswf , int fps ) { List < String > argvList = Arrays . asList ( new String [ ] { getPathToSwfTools ( ) + STRING + execExt , STRING , STRING , STRING , outputswf , STRING , Integer . toString ( fps ) , STRING , STRING } ) ; argv... | 113 |
java-test-10778 | java | For what purpose did total shared storage capacity require ? | for solution | public double calculate Usable Capacity ( double storageparentusablecapacity , double storagereplicausablecapacity , double storagecloneusablecapacity , double storagepersistentusablecapacity , double storagesuspendusablecapacity , double swappowerstatecapacityreduction ) { double d = ( storageparentusablecapacity + st... | public double calculateUsableCapacity ( double storageparentusablecapacity , double storagereplicausablecapacity , double storagecloneusablecapacity , double storagepersistentusablecapacity , double storagesuspendusablecapacity , double swappowerstatecapacityreduction ) { double d = ( storageparentusablecapacity + stor... | 62 |
java-test-10780 | java | What does the code translate into a big endian int ? | a little endian int | public int read LE Int ( ) throws IO Exception { int byte 1 , byte 2 , byte 3 , byte 4 ; synchronized ( this ) { byte 1 = in . read ( ) ; byte 2 = in . read ( ) ; byte 3 = in . read ( ) ; byte 4 = in . read ( ) ; } if ( byte 4 == - NUM ) { throw new EOF Exception ( ) ; } return ( byte 4 << NUM ) + ( byte 3 << NUM ) + (... | public int readLEInt ( ) throws IOException { int byte1 , byte2 , byte3 , byte4 ; synchronized ( this ) { byte1 = in . read ( ) ; byte2 = in . read ( ) ; byte3 = in . read ( ) ; byte4 = in . read ( ) ; } if ( byte4 == - _NUM ) { throw new EOFException ( ) ; } return ( byte4 << _NUM ) + ( byte3 << _NUM ) + ( byte2 << _N... | 109 |
java-test-10781 | java | When do results find ? | after map changes | @ Override public void event Happened ( Map Event event ) { if ( event . get Type ( ) == Map Event . Type . MAP CLEARED || event . get Type ( ) == Map Event . Type . MAP NEW ) { entity Finder = null ; update Results ( BOOL ) ; } } | @ Override public void eventHappened ( MapEvent event ) { if ( event . getType ( ) == MapEvent . Type . MAP_CLEARED || event . getType ( ) == MapEvent . Type . MAP_NEW ) { entityFinder = null ; updateResults ( _BOOL ) ; } } | 58 |
java-test-10782 | java | What changed dim ? | changing data | private void run Par For Repeated Opt Test ( boolean reuse Partitioned Data , boolean update , boolean changed Dim , Exec Type et , int num Expected MR ) { RUNTIME PLATFORM platform Old = rtplatform ; double memfactor Old = Optimizer Utils . MEM UTIL FACTOR ; boolean reuse Old = Par For Program Block . ALLOW REUSE PART... | private void runParForRepeatedOptTest ( boolean reusePartitionedData , boolean update , boolean changedDim , ExecType et , int numExpectedMR ) { RUNTIME_PLATFORM platformOld = rtplatform ; double memfactorOld = OptimizerUtils . MEM_UTIL_FACTOR ; boolean reuseOld = ParForProgramBlock . ALLOW_REUSE_PARTITION_VARS ; Strin... | 505 |
java-test-10783 | java | What did changing data change ? | dim | private void run Par For Repeated Opt Test ( boolean reuse Partitioned Data , boolean update , boolean changed Dim , Exec Type et , int num Expected MR ) { RUNTIME PLATFORM platform Old = rtplatform ; double memfactor Old = Optimizer Utils . MEM UTIL FACTOR ; boolean reuse Old = Par For Program Block . ALLOW REUSE PART... | private void runParForRepeatedOptTest ( boolean reusePartitionedData , boolean update , boolean changedDim , ExecType et , int numExpectedMR ) { RUNTIME_PLATFORM platformOld = rtplatform ; double memfactorOld = OptimizerUtils . MEM_UTIL_FACTOR ; boolean reuseOld = ParForProgramBlock . ALLOW_REUSE_PARTITION_VARS ; Strin... | 505 |
java-test-10784 | java | When did the path follow ? | while traveling from one vertex of the box | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10785 | java | What has 4 vertices in dimension 3 ? | a simplex | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10786 | java | What has would be imply the start simplex would be : { ( 1 , 1 , 1 ) , ( 2 , 1 , 1 ) , ( 2 , 11 , 1 ) , ( 2 , 11 , 3 ) } . the first vertex would be set to the start point at ( 1 , 1 , 1 ) and the last vertex would be set to the diagonally opposite vertex at ( 2 , 11 , 3 ) in dimension 3 ? | the start point to ( 1 , 1 , 1 ) | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10787 | java | In which direction do the diagonally opposite vertex move ? | only along the box edges | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10788 | java | What has the start point to ( 1 , 1 , 1 ) would be imply in dimension 3 ? | the start simplex would be : { ( 1 , 1 , 1 ) , ( 2 , 1 , 1 ) , ( 2 , 11 , 1 ) , ( 2 , 11 , 3 ) } . the first vertex would be set to the start point at ( 1 , 1 , 1 ) and the last vertex would be set to the diagonally opposite vertex at ( 2 , 11 , 3 ) | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10789 | java | When is it built as the path followed ? | while traveling from one vertex of the box to the diagonally opposite vertex moving only along the box edges | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10790 | java | What will be located at the start point of the optimization ? | the first vertex of the box | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10791 | java | Where will the first vertex of the box be located ? | at the start point of the optimization | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10792 | java | How is it built while traveling from one vertex of the box to the diagonally opposite vertex moving only along the box edges ? | as the path followed | protected Abstract Simplex ( final double [ ] steps ) { if ( steps == null ) { throw new Null Argument Exception ( ) ; } if ( steps . length == NUM ) { throw new Math Illegal Argument Exception ( Localized Core Formats . ZERO NOT ALLOWED ) ; } dimension = steps . length ; start Configuration = new double [ dimension ] ... | protected AbstractSimplex ( final double [ ] steps ) { if ( steps == null ) { throw new NullArgumentException ( ) ; } if ( steps . length == _NUM ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ZERO_NOT_ALLOWED ) ; } dimension = steps . length ; startConfiguration = new double [ dimension ] [ dimens... | 165 |
java-test-10801 | java | What does this private method create just ? | a number of files with a specific extension | private void create File ( int number , String extention ) { for ( int i = NUM ; i < number ; i ++ ) { try { Buffered Writer output = new Buffered Writer ( new File Writer ( new File ( text Input Folder + STRING + String . value Of ( i ) + extention ) ) ) ; try { output . write ( STRING ) ; output . write ( String . va... | private void createFile ( int number , String extention ) { for ( int i = _NUM ; i < number ; i ++ ) { try { BufferedWriter output = new BufferedWriter ( new FileWriter ( new File ( textInputFolder + STRING + String . valueOf ( i ) + extention ) ) ) ; try { output . write ( STRING ) ; output . write ( String . valueOf ... | 114 |
java-test-10802 | java | What does the code write ? | a tag with a name | private void write Tag ( String name , Tag tag ) throws IO Exception { Tag Type type = tag . get Type ( ) ; byte [ ] name Bytes = name . get Bytes ( Standard Charsets . UTF 8 ) ; if ( type == Tag Type . END ) { throw new IO Exception ( STRING ) ; } os . write Byte ( type . get Id ( ) ) ; os . write Short ( name Bytes .... | private void writeTag ( String name , Tag tag ) throws IOException { TagType type = tag . getType ( ) ; byte [ ] nameBytes = name . getBytes ( StandardCharsets . UTF_8 ) ; if ( type == TagType . END ) { throw new IOException ( STRING ) ; } os . writeByte ( type . getId ( ) ) ; os . writeShort ( nameBytes . length ) ; o... | 103 |
java-test-10803 | java | What does the code translate ? | a little endian long | public long read LE Long ( ) throws IO Exception { long byte 1 = in . read ( ) ; long byte 2 = in . read ( ) ; long byte 3 = in . read ( ) ; long byte 4 = in . read ( ) ; long byte 5 = in . read ( ) ; long byte 6 = in . read ( ) ; long byte 7 = in . read ( ) ; long byte 8 = in . read ( ) ; if ( byte 8 == - NUM ) { thro... | public long readLELong ( ) throws IOException { long byte1 = in . read ( ) ; long byte2 = in . read ( ) ; long byte3 = in . read ( ) ; long byte4 = in . read ( ) ; long byte5 = in . read ( ) ; long byte6 = in . read ( ) ; long byte7 = in . read ( ) ; long byte8 = in . read ( ) ; if ( byte8 == - _NUM ) { throw new EOFEx... | 162 |
java-test-10804 | java | What does the code create ? | a subset of vertices detected in a specific iteration | public static < V extends Sampled Vertex > Set < V > create Detected Partition ( Collection < V > vertices , int iteration ) { Set < V > partition = new Hash Set < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . is Detected ( ) ) { if ( vertex . get Iteration Detected ( ) == iteration ) vertices . add ( vertex ) ... | public static < V extends SampledVertex > Set < V > createDetectedPartition ( Collection < V > vertices , int iteration ) { Set < V > partition = new HashSet < V > ( ) ; for ( V vertex : vertices ) { if ( vertex . isDetected ( ) ) { if ( vertex . getIterationDetected ( ) == iteration ) vertices . add ( vertex ) ; } } r... | 84 |
java-test-10805 | java | What do the settings describe ? | how to handle certain debugger events to the debug client | private void send Debugger Event Settings ( ) { try { final Debugger Event Settings Storage event Settings Storage = new Debugger Event Settings Storage ( m debugger , m debug Target ) ; m debugger . set Debugger Event Settings ( event Settings Storage . deserialize ( ) ) ; } catch ( final Debug Exception Wrapper excep... | private void sendDebuggerEventSettings ( ) { try { final DebuggerEventSettingsStorage eventSettingsStorage = new DebuggerEventSettingsStorage ( m_debugger , m_debugTarget ) ; m_debugger . setDebuggerEventSettings ( eventSettingsStorage . deserialize ( ) ) ; } catch ( final DebugExceptionWrapper exception ) { CUtilityFu... | 206 |
java-test-10806 | java | What does the code send ? | the settings describing how to handle certain debugger events to the debug client | private void send Debugger Event Settings ( ) { try { final Debugger Event Settings Storage event Settings Storage = new Debugger Event Settings Storage ( m debugger , m debug Target ) ; m debugger . set Debugger Event Settings ( event Settings Storage . deserialize ( ) ) ; } catch ( final Debug Exception Wrapper excep... | private void sendDebuggerEventSettings ( ) { try { final DebuggerEventSettingsStorage eventSettingsStorage = new DebuggerEventSettingsStorage ( m_debugger , m_debugTarget ) ; m_debugger . setDebuggerEventSettings ( eventSettingsStorage . deserialize ( ) ) ; } catch ( final DebugExceptionWrapper exception ) { CUtilityFu... | 206 |
java-test-10813 | java | How are both names and values encoded before being added to the buffer ? | using the urlencoder | private void append Buffer ( String Builder buffer , String name , String value ) { if ( buffer . length ( ) > NUM ) { buffer . append ( STRING ) ; } String encoded Name = URL Encoder . encode ( name ) ; buffer . append ( encoded Name ) ; buffer . append ( STRING ) ; String encoded Value = URL Encoder . encode ( value ... | private void appendBuffer ( StringBuilder buffer , String name , String value ) { if ( buffer . length ( ) > _NUM ) { buffer . append ( STRING ) ; } String encodedName = URLEncoder . encode ( name ) ; buffer . append ( encodedName ) ; buffer . append ( STRING ) ; String encodedValue = URLEncoder . encode ( value ) ; bu... | 83 |
java-test-10814 | java | When are both names and values encoded using the urlencoder ? | before being added to the buffer | private void append Buffer ( String Builder buffer , String name , String value ) { if ( buffer . length ( ) > NUM ) { buffer . append ( STRING ) ; } String encoded Name = URL Encoder . encode ( name ) ; buffer . append ( encoded Name ) ; buffer . append ( STRING ) ; String encoded Value = URL Encoder . encode ( value ... | private void appendBuffer ( StringBuilder buffer , String name , String value ) { if ( buffer . length ( ) > _NUM ) { buffer . append ( STRING ) ; } String encodedName = URLEncoder . encode ( name ) ; buffer . append ( encodedName ) ; buffer . append ( STRING ) ; String encodedValue = URLEncoder . encode ( value ) ; bu... | 83 |
java-test-10815 | java | What did the code check ? | it ' s the right version | public static Map < String , Object > load Json Model ( File js File ) { try { Map < String , Object > model = Java Script Resolver . read Json Model ( js File ) ; if ( model == null ) { throw new Compiler Error Exception ( STRING + js File . get Absolute Path ( ) ) ; } if ( ! model . contains Key ( STRING ) ) { throw ... | public static Map < String , Object > loadJsonModel ( File jsFile ) { try { Map < String , Object > model = JavaScriptResolver . readJsonModel ( jsFile ) ; if ( model == null ) { throw new CompilerErrorException ( STRING + jsFile . getAbsolutePath ( ) ) ; } if ( ! model . containsKey ( STRING ) ) { throw new CeylonRunJ... | 118 |
java-test-10816 | java | What did the code read ? | the metamodel declaration from a js file | public static Map < String , Object > load Json Model ( File js File ) { try { Map < String , Object > model = Java Script Resolver . read Json Model ( js File ) ; if ( model == null ) { throw new Compiler Error Exception ( STRING + js File . get Absolute Path ( ) ) ; } if ( ! model . contains Key ( STRING ) ) { throw ... | public static Map < String , Object > loadJsonModel ( File jsFile ) { try { Map < String , Object > model = JavaScriptResolver . readJsonModel ( jsFile ) ; if ( model == null ) { throw new CompilerErrorException ( STRING + jsFile . getAbsolutePath ( ) ) ; } if ( ! model . containsKey ( STRING ) ) { throw new CeylonRunJ... | 118 |
java-test-10817 | java | What does the code add to the config ? | a style | public Resources Poet add Style ( String name , @ Nullable String parent Ref , @ Nullable List < Style Item > style Items ) { Element element = document . create Element ( STRING ) ; element . set Attribute ( STRING , name ) ; if ( parent Ref != null ) { element . set Attribute ( STRING , parent Ref ) ; } if ( style It... | public ResourcesPoet addStyle ( String name , @ Nullable String parentRef , @ Nullable List < StyleItem > styleItems ) { Element element = document . createElement ( STRING ) ; element . setAttribute ( STRING , name ) ; if ( parentRef != null ) { element . setAttribute ( STRING , parentRef ) ; } if ( styleItems != null... | 152 |
java-test-10818 | java | What does the code write to nce cs memory as long as there are no user input errors ? | all bytes | private boolean save Macro ( ) { if ( first Time ) { try { Thread . sleep ( first Time Sleep ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } first Time = BOOL ; byte [ ] macro Accy = new byte [ macro Size ] ; int index = NUM ; int accy Num = NUM ; accy Num = get Accy Row ( macro Accy , index ,... | private boolean saveMacro ( ) { if ( firstTime ) { try { Thread . sleep ( firstTimeSleep ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } firstTime = _BOOL ; byte [ ] macroAccy = new byte [ macroSize ] ; int index = _NUM ; int accyNum = _NUM ; accyNum = getAccyRow ( macroAccy , index , textAccy1 ,... | 628 |
java-test-10819 | java | When does the code write all bytes to nce cs memory ? | as long as there are no user input errors | private boolean save Macro ( ) { if ( first Time ) { try { Thread . sleep ( first Time Sleep ) ; } catch ( Interrupted Exception e ) { e . print Stack Trace ( ) ; } } first Time = BOOL ; byte [ ] macro Accy = new byte [ macro Size ] ; int index = NUM ; int accy Num = NUM ; accy Num = get Accy Row ( macro Accy , index ,... | private boolean saveMacro ( ) { if ( firstTime ) { try { Thread . sleep ( firstTimeSleep ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } } firstTime = _BOOL ; byte [ ] macroAccy = new byte [ macroSize ] ; int index = _NUM ; int accyNum = _NUM ; accyNum = getAccyRow ( macroAccy , index , textAccy1 ,... | 628 |
java-test-10820 | java | How did the associated sessions initialize for a given set of starting tasks for a given set of starting tasks ? | with a proper blocking semaphore and value of number of tasks to be run | protected void initialize Task Done ( Set < Task Image Container > tasks , Optional < Runnable > runnable When Done ) { Set < Capture Session > session Set = new Hash Set < > ( ) ; Map < Capture Session , Integer > session Task Count = new Hash Map < > ( ) ; for ( Task Image Container task : tasks ) { session Set . add... | protected void initializeTaskDone ( Set < TaskImageContainer > tasks , Optional < Runnable > runnableWhenDone ) { Set < CaptureSession > sessionSet = new HashSet < > ( ) ; Map < CaptureSession , Integer > sessionTaskCount = new HashMap < > ( ) ; for ( TaskImageContainer task : tasks ) { sessionSet . add ( task . mSessi... | 240 |
java-test-10821 | java | For what purpose did the associated sessions initialize with a proper blocking semaphore and value of number of tasks to be run ? | for a given set of starting tasks | protected void initialize Task Done ( Set < Task Image Container > tasks , Optional < Runnable > runnable When Done ) { Set < Capture Session > session Set = new Hash Set < > ( ) ; Map < Capture Session , Integer > session Task Count = new Hash Map < > ( ) ; for ( Task Image Container task : tasks ) { session Set . add... | protected void initializeTaskDone ( Set < TaskImageContainer > tasks , Optional < Runnable > runnableWhenDone ) { Set < CaptureSession > sessionSet = new HashSet < > ( ) ; Map < CaptureSession , Integer > sessionTaskCount = new HashMap < > ( ) ; for ( TaskImageContainer task : tasks ) { sessionSet . add ( task . mSessi... | 240 |
java-test-10822 | java | What does the code initialize ? | the java servlet | @ Override public void init ( ) throws Servlet Exception { try { destination Configuration = get Destination Configuration ( ) ; } catch ( IO Exception e ) { throw new Servlet Exception ( e . get Message ( ) , e ) ; } try { destination Url = get Destination Url ( ) ; } catch ( IO Exception e ) { throw new Servlet Excep... | @ Override public void init ( ) throws ServletException { try { destinationConfiguration = getDestinationConfiguration ( ) ; } catch ( IOException e ) { throw new ServletException ( e . getMessage ( ) , e ) ; } try { destinationUrl = getDestinationUrl ( ) ; } catch ( IOException e ) { throw new ServletException ( e . g... | 82 |
java-test-10824 | java | What does the code translate the os name ? | to folder name | private static String translate OS Name To Folder Name ( String os Name ) { if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } e... | private static String translateOSNameToFolderName ( String osName ) { if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else { retu... | 94 |
java-test-10825 | java | What does the code translate to folder name ? | the os name | private static String translate OS Name To Folder Name ( String os Name ) { if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } else if ( os Name . contains ( STRING ) ) { return STRING ; } e... | private static String translateOSNameToFolderName ( String osName ) { if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else if ( osName . contains ( STRING ) ) { return STRING ; } else { retu... | 94 |
java-test-10826 | java | Where does all of the text consume ? | in the next word | private void parse Text ( ) { String Builder buf = new String Builder ( ) ; int start = next Char ; do { char ch = text . char At ( next Char ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING... | private void parseText ( ) { StringBuilder buf = new StringBuilder ( ) ; int start = nextChar ; do { char ch = text . charAt ( nextChar ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf... | 166 |
java-test-10827 | java | What consumes in the next word ? | all of the text | private void parse Text ( ) { String Builder buf = new String Builder ( ) ; int start = next Char ; do { char ch = text . char At ( next Char ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING... | private void parseText ( ) { StringBuilder buf = new StringBuilder ( ) ; int start = nextChar ; do { char ch = text . charAt ( nextChar ++ ) ; switch ( ch ) { case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf . append ( STRING ) ; break ; case STRING : buf... | 166 |
java-test-10828 | java | How are files deleted until the total byte size is greater than targetbytes ? | in lru order | private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES... | private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C... | 364 |
java-test-10829 | java | Till when are files deleted in lru order ? | until the total byte size is greater than targetbytes | private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES... | private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C... | 364 |
java-test-10830 | java | What does this delete also ? | the matching database entries | private long discard Purgeable Files ( int destination , long target Bytes ) { L Log . i ( STRING + destination + STRING + target Bytes ) ; String dest Str = ( destination == Downloads Destination . DESTINATION SYSTEMCACHE PARTITION ) ? String . value Of ( destination ) : String . value Of ( Downloads Destination . DES... | private long discardPurgeableFiles ( int destination , long targetBytes ) { LLog . i ( STRING + destination + STRING + targetBytes ) ; String destStr = ( destination == DownloadsDestination . DESTINATION_SYSTEMCACHE_PARTITION ) ? String . valueOf ( destination ) : String . valueOf ( DownloadsDestination . DESTINATION_C... | 364 |
java-test-10831 | java | What do pos tag convert ? | to jwi pos instance | public static POS convert POS ( String pos ) { if ( pos . starts With ( STRING ) ) return POS . NOUN ; else if ( pos . starts With ( ( STRING ) ) ) return POS . VERB ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADVERB ; return null ; } | public static POS convertPOS ( String pos ) { if ( pos . startsWith ( STRING ) ) return POS . NOUN ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . VERB ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADVERB ; return null ; } | 83 |
java-test-10832 | java | What converts to jwi pos instance ? | pos tag | public static POS convert POS ( String pos ) { if ( pos . starts With ( STRING ) ) return POS . NOUN ; else if ( pos . starts With ( ( STRING ) ) ) return POS . VERB ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . starts With ( ( STRING ) ) ) return POS . ADVERB ; return null ; } | public static POS convertPOS ( String pos ) { if ( pos . startsWith ( STRING ) ) return POS . NOUN ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . VERB ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADJECTIVE ; else if ( pos . startsWith ( ( STRING ) ) ) return POS . ADVERB ; return null ; } | 83 |
java-test-10833 | java | What does the code open ? | a database connection | @ Override public Connection connect ( String url , Properties info ) throws SQL Exception { try { if ( info == null ) { info = new Properties ( ) ; } if ( ! accepts URL ( url ) ) { return null ; } if ( url . equals ( DEFAULT URL ) ) { return DEFAULT CONNECTION . get ( ) ; } Connection c = Db Upgrade . connect Or Upgra... | @ Override public Connection connect ( String url , Properties info ) throws SQLException { try { if ( info == null ) { info = new Properties ( ) ; } if ( ! acceptsURL ( url ) ) { return null ; } if ( url . equals ( DEFAULT_URL ) ) { return DEFAULT_CONNECTION . get ( ) ; } Connection c = DbUpgrade . connectOrUpgrade ( ... | 123 |
java-test-10841 | java | What does the code write to an output stream in png format ? | a scaled version of a chart | public static void write Scaled Chart As PNG ( Output Stream out , J Free Chart chart , int width , int height , int width Scale Factor , int height Scale Factor ) throws IO Exception { Param Checks . null Not Permitted ( out , STRING ) ; Param Checks . null Not Permitted ( chart , STRING ) ; double desired Width = wid... | public static void writeScaledChartAsPNG ( OutputStream out , JFreeChart chart , int width , int height , int widthScaleFactor , int heightScaleFactor ) throws IOException { ParamChecks . nullNotPermitted ( out , STRING ) ; ParamChecks . nullNotPermitted ( chart , STRING ) ; double desiredWidth = width * widthScaleFact... | 307 |
java-test-10843 | java | What does the code ensure ? | the buffer is large enough | private Byte Buffer ensure Buffer ( int size , Byte Buffer buffer , Writable Byte Channel output ) throws IO Exception { if ( buffer . remaining ( ) >= size ) { return buffer ; } flush Buffer ( buffer , output ) ; if ( buffer . remaining ( ) >= size ) { return buffer ; } return Byte Buffer . allocate Direct ( Math . ma... | private ByteBuffer ensureBuffer ( int size , ByteBuffer buffer , WritableByteChannel output ) throws IOException { if ( buffer . remaining ( ) >= size ) { return buffer ; } flushBuffer ( buffer , output ) ; if ( buffer . remaining ( ) >= size ) { return buffer ; } return ByteBuffer . allocateDirect ( Math . max ( buffe... | 90 |
java-test-10845 | java | What does the code remove ? | the log filter | public static void remove Log Filter ( Log Filter filter ) { if ( filter == null || filters == null || filters . is Empty ( ) ) { return ; } if ( filters . contains ( filter ) ) { filters . remove ( filter ) ; } } | public static void removeLogFilter ( LogFilter filter ) { if ( filter == null || filters == null || filters . isEmpty ( ) ) { return ; } if ( filters . contains ( filter ) ) { filters . remove ( filter ) ; } } | 52 |
java-test-10846 | java | How be this limit defined ? | at session level | private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN... | private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ... | 90 |
java-test-10847 | java | What does executing this query force this limit also ? | to be defined at session level | private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN... | private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ... | 90 |
java-test-10848 | java | What does executing this query force to be defined at session level also ? | this limit | private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN... | private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ... | 90 |
java-test-10849 | java | How does the sql_select_limit defined test ? | executing this | private Statement test Bug 71396 Statement Init ( Connection test Conn , int max Rows ) throws SQL Exception { Result Set test RS ; Statement test Stmt = test Conn . create Statement ( ) ; test Stmt . set Max Rows ( max Rows ) ; test RS = test Stmt . execute Query ( STRING ) ; test RS . next ( ) ; assert Equals ( STRIN... | private Statement testBug71396StatementInit ( Connection testConn , int maxRows ) throws SQLException { ResultSet testRS ; Statement testStmt = testConn . createStatement ( ) ; testStmt . setMaxRows ( maxRows ) ; testRS = testStmt . executeQuery ( STRING ) ; testRS . next ( ) ; assertEquals ( STRING , maxRows , testRS ... | 90 |
java-test-10850 | java | What does the code convert into its string representation ? | an array field | private static String convert Field Value To String ( final JBBP Abstract Array Field < ? > field ) { final String Builder result ; if ( field instanceof JBBP Field Array Bit ) { final JBBP Field Array Bit array = ( JBBP Field Array Bit ) field ; result = new String Builder ( array . size ( ) ) ; for ( final byte b : a... | private static String convertFieldValueToString ( final JBBPAbstractArrayField < ? > field ) { final StringBuilder result ; if ( field instanceof JBBPFieldArrayBit ) { final JBBPFieldArrayBit array = ( JBBPFieldArrayBit ) field ; result = new StringBuilder ( array . size ( ) ) ; for ( final byte b : array . getArray ( ... | 389 |
java-test-10851 | java | When does the code retrieve the state of the labels ? | when orientation screen changed | @ Suppress Warnings ( STRING ) @ Override public void on Restore Instance State ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; Auto Label UI Settings auto Label UI Settings = bundle . get Parcelable ( KEY INSTANCE STATE SETTINGS ) ; if ( auto Label UI Settings != null ) { set... | @ SuppressWarnings ( STRING ) @ Override public void onRestoreInstanceState ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; AutoLabelUISettings autoLabelUISettings = bundle . getParcelable ( KEY_INSTANCE_STATE_SETTINGS ) ; if ( autoLabelUISettings != null ) { setSettings ( aut... | 224 |
java-test-10852 | java | What does the code retrieve when orientation screen changed ? | the state of the labels | @ Suppress Warnings ( STRING ) @ Override public void on Restore Instance State ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; Auto Label UI Settings auto Label UI Settings = bundle . get Parcelable ( KEY INSTANCE STATE SETTINGS ) ; if ( auto Label UI Settings != null ) { set... | @ SuppressWarnings ( STRING ) @ Override public void onRestoreInstanceState ( Parcelable state ) { if ( state instanceof Bundle ) { Bundle bundle = ( Bundle ) state ; AutoLabelUISettings autoLabelUISettings = bundle . getParcelable ( KEY_INSTANCE_STATE_SETTINGS ) ; if ( autoLabelUISettings != null ) { setSettings ( aut... | 224 |
java-test-10857 | java | What does the code populate with the relevant field value ? | the primitive property of the entity | public void fill Primitive Property ( Object entity , Set < String > key Set , Structural Property property , Field field , String node , Map < String , Object > map ) throws O Data Exception { for ( String target : key Set ) { if ( node . equals Ignore Case ( target ) ) { Object value = get Field Value By Type ( prope... | public void fillPrimitiveProperty ( Object entity , Set < String > keySet , StructuralProperty property , Field field , String node , Map < String , Object > map ) throws ODataException { for ( String target : keySet ) { if ( node . equalsIgnoreCase ( target ) ) { Object value = getFieldValueByType ( property . getType... | 120 |
java-test-10859 | java | What is contained in rsetuids list ? | repsetuid | private boolean contains Rep Set UID ( List < Replication Set UID > rset Uids , Replication Set UID rep Set UID ) { for ( Replication Set UID rset Uid : rset Uids ) { if ( rset Uid . get Id ( ) == rep Set UID . get Id ( ) ) { return BOOL ; } } return BOOL ; } | private boolean containsRepSetUID ( List < ReplicationSetUID > rsetUids , ReplicationSetUID repSetUID ) { for ( ReplicationSetUID rsetUid : rsetUids ) { if ( rsetUid . getId ( ) == repSetUID . getId ( ) ) { return _BOOL ; } } return _BOOL ; } | 65 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.