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-903 | java | What does this remove ? | obsolete message and signal subscriptions and timers | public void update Timers And Events ( Process Definition Entity process Definition , Process Definition Entity previous Process Definition , Parsed Deployment parsed Deployment ) { Process process = parsed Deployment . get Process Model For Process Definition ( process Definition ) ; Bpmn Model bpmn Model = parsed Dep... | public void updateTimersAndEvents ( ProcessDefinitionEntity processDefinition , ProcessDefinitionEntity previousProcessDefinition , ParsedDeployment parsedDeployment ) { Process process = parsedDeployment . getProcessModelForProcessDefinition ( processDefinition ) ; BpmnModel bpmnModel = parsedDeployment . getBpmnModel... | 161 |
java-test-904 | java | What does this add ? | new ones | public void update Timers And Events ( Process Definition Entity process Definition , Process Definition Entity previous Process Definition , Parsed Deployment parsed Deployment ) { Process process = parsed Deployment . get Process Model For Process Definition ( process Definition ) ; Bpmn Model bpmn Model = parsed Dep... | public void updateTimersAndEvents ( ProcessDefinitionEntity processDefinition , ProcessDefinitionEntity previousProcessDefinition , ParsedDeployment parsedDeployment ) { Process process = parsedDeployment . getProcessModelForProcessDefinition ( processDefinition ) ; BpmnModel bpmnModel = parsedDeployment . getBpmnModel... | 161 |
java-test-906 | java | What does the code start ? | the transmit thread | public void start Transmit Thread ( ) { if ( xmt Thread == null ) { Thread xmt Thread = new Thread ( xmt Handler , STRING ) ; xmt Thread . set Priority ( Thread . MAX PRIORITY - NUM ) ; xmt Thread . start ( ) ; } } | public void startTransmitThread ( ) { if ( xmtThread == null ) { Thread xmtThread = new Thread ( xmtHandler , STRING ) ; xmtThread . setPriority ( Thread . MAX_PRIORITY - _NUM ) ; xmtThread . start ( ) ; } } | 52 |
java-test-907 | java | What could you write ? | a matcher to delete all occurrences where the character ' a ' is followed by a number | private Str Builder replace Impl ( final Str Matcher matcher , final String replace Str , final int from , int to , int replace Count ) { if ( matcher == null || size == NUM ) { return this ; } final int replace Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; final char [ ] buf = buffer ; for ( int i =... | private StrBuilder replaceImpl ( final StrMatcher matcher , final String replaceStr , final int from , int to , int replaceCount ) { if ( matcher == null || size == _NUM ) { return this ; } final int replaceLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; final char [ ] buf = buffer ; for ( int i = from ... | 177 |
java-test-908 | java | What do a matcher delete ? | all occurrences where the character ' a ' is followed by a number | private Str Builder replace Impl ( final Str Matcher matcher , final String replace Str , final int from , int to , int replace Count ) { if ( matcher == null || size == NUM ) { return this ; } final int replace Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; final char [ ] buf = buffer ; for ( int i =... | private StrBuilder replaceImpl ( final StrMatcher matcher , final String replaceStr , final int from , int to , int replaceCount ) { if ( matcher == null || size == _NUM ) { return this ; } final int replaceLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; final char [ ] buf = buffer ; for ( int i = from ... | 177 |
java-test-909 | java | What does the code create ? | a writer to write comments to a given review | public static < T > Git Note Writer < T > create Note Writer ( String review Commit Hash , final Repository db , Person Ident author , String ref ) { return new Git Note Writer < T > ( review Commit Hash , db , ref , author ) ; } | public static < T > GitNoteWriter < T > createNoteWriter ( String reviewCommitHash , final Repository db , PersonIdent author , String ref ) { return new GitNoteWriter < T > ( reviewCommitHash , db , ref , author ) ; } | 53 |
java-test-910 | java | How does a vector construct ? | with the specified list of values | public Vector ( List < Double > lst ) { super ( lst . size ( ) , NUM ) ; for ( int i = NUM ; i < lst . size ( ) ; i ++ ) { set Value ( i , lst . get ( i ) ) ; } } | public Vector ( List < Double > lst ) { super ( lst . size ( ) , _NUM ) ; for ( int i = _NUM ; i < lst . size ( ) ; i ++ ) { setValue ( i , lst . get ( i ) ) ; } } | 55 |
java-test-911 | java | What does the code update depending on the selection in the measurement box ? | the selection options for the key drop - down box | public void update Tag Key Options ( ) { String current Text = key Box . get Text ( ) ; List < String > tag Keys = influx Service . get Tags ( measurement Box . get Text ( ) ) ; if ( null != tag Keys ) { key Box . set Items ( tag Keys . to Array ( new String [ tag Keys . size ( ) ] ) ) ; } key Box . set Text ( current ... | public void updateTagKeyOptions ( ) { String currentText = keyBox . getText ( ) ; List < String > tagKeys = influxService . getTags ( measurementBox . getText ( ) ) ; if ( null != tagKeys ) { keyBox . setItems ( tagKeys . toArray ( new String [ tagKeys . size ( ) ] ) ) ; } keyBox . setText ( currentText ) ; } | 88 |
java-test-913 | java | Where be the token - name be the key in the map ? | the values from | public String replace Tokens With Values ( String query String , Map < String , Object > params ) throws Bad Request Exception { java . util . regex . Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buffer = new String Buffer ( ) ; while ( matcher . find ( ) ) { String token Key = matcher . g... | public String replaceTokensWithValues ( String queryString , Map < String , Object > params ) throws BadRequestException { java . util . regex . Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buffer = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String tokenKey = matcher . group ( _NUM... | 242 |
java-test-914 | java | What be the key in the map the values from ? | the token - name | public String replace Tokens With Values ( String query String , Map < String , Object > params ) throws Bad Request Exception { java . util . regex . Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buffer = new String Buffer ( ) ; while ( matcher . find ( ) ) { String token Key = matcher . g... | public String replaceTokensWithValues ( String queryString , Map < String , Object > params ) throws BadRequestException { java . util . regex . Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buffer = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String tokenKey = matcher . group ( _NUM... | 242 |
java-test-916 | java | What do we expect ? | four integers 0 - 255 separated by some non - numeric character | public static int int Hash ( String ip String ) { int val = NUM ; String [ ] strs = ip String . split ( STRING ) ; int len = strs . length ; if ( len >= NUM ) { val = int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val (... | public static int intHash ( String ipString ) { int val = _NUM ; String [ ] strs = ipString . split ( STRING ) ; int len = strs . length ; if ( len >= _NUM ) { val = intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ... | 104 |
java-test-924 | java | What does the code initialize ? | the base colors | private void define Base Colors ( UI Defaults d ) { d . put ( STRING , new Color UI Resource ( NUM ) ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; add Color ( d , STRING , STRING , NUM , - NUM , NUM , NUM ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; ... | private void defineBaseColors ( UIDefaults d ) { d . put ( STRING , new ColorUIResource ( _NUM ) ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _NUM ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _NUM ) ; addColor ( d , STRING , STRING , _NUM , - _NUM , _NUM , _NUM ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _... | 1,247 |
java-test-925 | java | What did the code read ? | all the sgml file in the given directory | public static List < Reuters Document > extract ( Path reuters Dir ) throws IO Exception , Parse Exception { List < Reuters Document > docs = new Array List < > ( ) ; Directory Stream < Path > stream = Files . new Directory Stream ( reuters Dir , STRING ) ; for ( Path sgm File : stream ) { Input Stream input Stream = F... | public static List < ReutersDocument > extract ( Path reutersDir ) throws IOException , ParseException { List < ReutersDocument > docs = new ArrayList < > ( ) ; DirectoryStream < Path > stream = Files . newDirectoryStream ( reutersDir , STRING ) ; for ( Path sgmFile : stream ) { InputStream inputStream = Files . newInp... | 104 |
java-test-926 | java | What do we enforce with that of the current state if update checking is required ? | version and signature equality in the incoming request body | private boolean validate Update ( Operation request ) { if ( has Option ( Service Option . CONCURRENT UPDATE HANDLING ) ) { return BOOL ; } if ( request . is From Replication ( ) ) { return BOOL ; } if ( request . get Request Header ( Operation . TRANSACTION HEADER ) != null ) { return BOOL ; } if ( ! has Option ( Serv... | private boolean validateUpdate ( Operation request ) { if ( hasOption ( ServiceOption . CONCURRENT_UPDATE_HANDLING ) ) { return _BOOL ; } if ( request . isFromReplication ( ) ) { return _BOOL ; } if ( request . getRequestHeader ( Operation . TRANSACTION_HEADER ) != null ) { return _BOOL ; } if ( ! hasOption ( ServiceOp... | 258 |
java-test-927 | java | Where does the code add a text bubble ? | at a give position | public void add Text Box ( Sprite sprite , double x , double y , int text Length ) { int sx = convert World X To Scaled Screen ( x ) ; int sy = convert World Y To Scaled Screen ( y ) ; sy -= sprite . get Height ( ) ; sx = keep Sprite On Map X ( sprite , sx ) ; sy = keep Sprite On Map Y ( sprite , sy ) ; boolean found =... | public void addTextBox ( Sprite sprite , double x , double y , int textLength ) { int sx = convertWorldXToScaledScreen ( x ) ; int sy = convertWorldYToScaledScreen ( y ) ; sy -= sprite . getHeight ( ) ; sx = keepSpriteOnMapX ( sprite , sx ) ; sy = keepSpriteOnMapY ( sprite , sy ) ; boolean found = _BOOL ; int tries = _... | 225 |
java-test-928 | java | What does the code add at a give position ? | a text bubble | public void add Text Box ( Sprite sprite , double x , double y , int text Length ) { int sx = convert World X To Scaled Screen ( x ) ; int sy = convert World Y To Scaled Screen ( y ) ; sy -= sprite . get Height ( ) ; sx = keep Sprite On Map X ( sprite , sx ) ; sy = keep Sprite On Map Y ( sprite , sy ) ; boolean found =... | public void addTextBox ( Sprite sprite , double x , double y , int textLength ) { int sx = convertWorldXToScaledScreen ( x ) ; int sy = convertWorldYToScaledScreen ( y ) ; sy -= sprite . getHeight ( ) ; sx = keepSpriteOnMapX ( sprite , sx ) ; sy = keepSpriteOnMapY ( sprite , sy ) ; boolean found = _BOOL ; int tries = _... | 225 |
java-test-929 | java | What do it keep ? | a total account of the number resolved , errored , and the amount of time | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
java-test-930 | java | What does the code create ? | a thread pool for resolving urls . reads in the url file on the local filesystem | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
java-test-931 | java | What does it attempt ? | to resolve it keeping a total account of the number resolved , errored , and the amount of time | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
java-test-932 | java | Does it resolve it ? | No | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
java-test-934 | java | What did this technique improve by 2 . 6 % all by itself ? | zipped rt . jar compression | public int encode BCI ( int bci ) { if ( bci <= NUM || bci > get Length ( ) ) return bci ; Object map 0 = get Insn Map ( ) ; int i , len ; if ( shrink Maps && map 0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map 0 ; len = map . length ; i = Arrays . binary Search ( map , ( byte ) ( bci + Byte . MIN VALUE ) ) ;... | public int encodeBCI ( int bci ) { if ( bci <= _NUM || bci > getLength ( ) ) return bci ; Object map0 = getInsnMap ( ) ; int i , len ; if ( shrinkMaps && map0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map0 ; len = map . length ; i = Arrays . binarySearch ( map , ( byte ) ( bci + Byte . MIN_VALUE ) ) ; } else ... | 238 |
java-test-935 | java | How are irregular ( non - boundary ) bcis encoded immediately after the boundary numbers ? | compactly | public int encode BCI ( int bci ) { if ( bci <= NUM || bci > get Length ( ) ) return bci ; Object map 0 = get Insn Map ( ) ; int i , len ; if ( shrink Maps && map 0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map 0 ; len = map . length ; i = Arrays . binary Search ( map , ( byte ) ( bci + Byte . MIN VALUE ) ) ;... | public int encodeBCI ( int bci ) { if ( bci <= _NUM || bci > getLength ( ) ) return bci ; Object map0 = getInsnMap ( ) ; int i , len ; if ( shrinkMaps && map0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map0 ; len = map . length ; i = Arrays . binarySearch ( map , ( byte ) ( bci + Byte . MIN_VALUE ) ) ; } else ... | 238 |
java-test-936 | java | When are irregular ( non - boundary ) bcis encoded compactly ? | immediately after the boundary numbers | public int encode BCI ( int bci ) { if ( bci <= NUM || bci > get Length ( ) ) return bci ; Object map 0 = get Insn Map ( ) ; int i , len ; if ( shrink Maps && map 0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map 0 ; len = map . length ; i = Arrays . binary Search ( map , ( byte ) ( bci + Byte . MIN VALUE ) ) ;... | public int encodeBCI ( int bci ) { if ( bci <= _NUM || bci > getLength ( ) ) return bci ; Object map0 = getInsnMap ( ) ; int i , len ; if ( shrinkMaps && map0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map0 ; len = map . length ; i = Arrays . binarySearch ( map , ( byte ) ( bci + Byte . MIN_VALUE ) ) ; } else ... | 238 |
java-test-937 | java | How did this technique improve zipped rt . jar compression by 2 . 6 % ? | all by itself | public int encode BCI ( int bci ) { if ( bci <= NUM || bci > get Length ( ) ) return bci ; Object map 0 = get Insn Map ( ) ; int i , len ; if ( shrink Maps && map 0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map 0 ; len = map . length ; i = Arrays . binary Search ( map , ( byte ) ( bci + Byte . MIN VALUE ) ) ;... | public int encodeBCI ( int bci ) { if ( bci <= _NUM || bci > getLength ( ) ) return bci ; Object map0 = getInsnMap ( ) ; int i , len ; if ( shrinkMaps && map0 instanceof byte [ ] ) { byte [ ] map = ( byte [ ] ) map0 ; len = map . length ; i = Arrays . binarySearch ( map , ( byte ) ( bci + Byte . MIN_VALUE ) ) ; } else ... | 238 |
java-test-938 | java | For what purpose does the code process the event buffer ? | for a single event | private boolean process Single Event ( ) { if ( event Buffer . remaining ( ) < NUM ) { return BOOL ; } try { event Buffer . get Int ( ) ; final int buffer Length = event Buffer . get Int ( ) ; final int padding = ( NUM - buffer Length ) & NUM ; if ( event Buffer . remaining ( ) < buffer Length + padding + NUM ) return ... | private boolean processSingleEvent ( ) { if ( eventBuffer . remaining ( ) < _NUM ) { return _BOOL ; } try { eventBuffer . getInt ( ) ; final int bufferLength = eventBuffer . getInt ( ) ; final int padding = ( _NUM - bufferLength ) & _NUM ; if ( eventBuffer . remaining ( ) < bufferLength + padding + _NUM ) return _BOOL ... | 226 |
java-test-939 | java | What does the code process for a single event ? | the event buffer | private boolean process Single Event ( ) { if ( event Buffer . remaining ( ) < NUM ) { return BOOL ; } try { event Buffer . get Int ( ) ; final int buffer Length = event Buffer . get Int ( ) ; final int padding = ( NUM - buffer Length ) & NUM ; if ( event Buffer . remaining ( ) < buffer Length + padding + NUM ) return ... | private boolean processSingleEvent ( ) { if ( eventBuffer . remaining ( ) < _NUM ) { return _BOOL ; } try { eventBuffer . getInt ( ) ; final int bufferLength = eventBuffer . getInt ( ) ; final int padding = ( _NUM - bufferLength ) & _NUM ; if ( eventBuffer . remaining ( ) < bufferLength + padding + _NUM ) return _BOOL ... | 226 |
java-test-942 | java | Where will the reading stop for a single line ? | at the first match | public static String Buffer read Content ( File file , Map < String [ ] , String > replace Map ) throws IO Exception { String Buffer content = new String Buffer ( ) ; Buffered Reader reader = new Buffered Reader ( new Input Stream Reader ( new File Input Stream ( file ) , ENCODING UTF 8 ) ) ; String line = null ; Strin... | public static StringBuffer readContent ( File file , Map < String [ ] , String > replaceMap ) throws IOException { StringBuffer content = new StringBuffer ( ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) , ENCODING_UTF8 ) ) ; String line = null ; String currentEndS... | 265 |
java-test-943 | java | What will stop at the first match ? | the reading | public static String Buffer read Content ( File file , Map < String [ ] , String > replace Map ) throws IO Exception { String Buffer content = new String Buffer ( ) ; Buffered Reader reader = new Buffered Reader ( new Input Stream Reader ( new File Input Stream ( file ) , ENCODING UTF 8 ) ) ; String line = null ; Strin... | public static StringBuffer readContent ( File file , Map < String [ ] , String > replaceMap ) throws IOException { StringBuffer content = new StringBuffer ( ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( file ) , ENCODING_UTF8 ) ) ; String line = null ; String currentEndS... | 265 |
java-test-944 | java | What does this run ? | the preferred replica election for all partitions | protected void trigger Preferred Leader Election ( Zk Utils zk Utils , List < Partition Info > partition Info List ) { scala . collection . mutable . Hash Set < Topic And Partition > scala Partition Info Set = new scala . collection . mutable . Hash Set < > ( ) ; for ( Partition Info java Partition Info : partition Inf... | protected void triggerPreferredLeaderElection ( ZkUtils zkUtils , List < PartitionInfo > partitionInfoList ) { scala . collection . mutable . HashSet < TopicAndPartition > scalaPartitionInfoSet = new scala . collection . mutable . HashSet < > ( ) ; for ( PartitionInfo javaPartitionInfo : partitionInfoList ) { scalaPart... | 114 |
java-test-945 | java | When do you specify it as the value of the jmsreplyto message header field ? | when you send a message | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-946 | java | What do we write ? | another external entry , which will have a class name of ' tempqueue ' . the only message consumers that can consume from a temporary destination are those created by the same connection that created the destination . any message producer can send to the temporary destination . if you close the connection that a tempor... | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-947 | java | What do you create ? | a temporary destination | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-948 | java | What will have a class name of ' tempqueue ' ? | another external entry | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-949 | java | What can you use temporary destinations ? | to implement a simple request / reply mechanism | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-950 | java | How can the consumer of the message reference the original request if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a message if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a mes... | by setting the jmscorrelationid header field of the reply message to the value of the jmsmessageid header field of the request | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-951 | java | What can the consumer of the message reference if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a message if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a message by setting the ... | the original request | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-952 | java | In which direction can the only message consume the only message ? | from a temporary destination | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-953 | java | What do the consumer of the message set to the value of the jmsmessageid header field of the request ? | the jmscorrelationid header field of the reply message | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-954 | java | What do we use ? | the same space proxy we obtained in the session | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-955 | java | What created the destination ? | the same connection | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-956 | java | What do you implement ? | a simple request / reply mechanism | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-957 | java | What will another external entry have ? | a class name of ' tempqueue ' | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-958 | java | What can the consumer of the message use as the destination to which it sends a reply if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a message ? | the value of the jmsreplyto field | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-959 | java | What can you use to implement a simple request / reply mechanism ? | temporary destinations | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-960 | java | What did you close ? | the connection that a temporary destination belongs to | public synchronized Temporary Queue create Temporary Queue ( ) throws JMS Exception { ensure Open ( ) ; if ( logger . is Loggable ( Level . FINE ) ) { logger . log ( Level . FINE , STRING ) ; } return new GS Temporary Queue Impl ( m session ID + STRING + get Random Int ( ) , m session ID ) ; } | public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , STRING ) ; } return new GSTemporaryQueueImpl ( m_sessionID + STRING + getRandomInt ( ) , m_sessionID ) ; } | 68 |
java-test-961 | java | What does the code create from a structured content document ( xml , json , etc ) from a structured content document ( xml , json , etc ) ? | an evaluator object | public static Result from Content ( String content , String format ) throws Illegal Argument Exception { if ( content == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( format == null ) { throw new Illegal Argument Exception ( STRING ) ; } try { return from Content ( new Input Stream Reader ( new Byte... | public static Result fromContent ( String content , String format ) throws IllegalArgumentException { if ( content == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( format == null ) { throw new IllegalArgumentException ( STRING ) ; } try { return fromContent ( new InputStreamReader ( new ByteArrayInput... | 107 |
java-test-962 | java | What does the code get ? | approximate stack trace elements for a bytecode position | public static Stack Trace Element [ ] approx Source Stack Trace Element ( Bytecode Position bytecode Position ) { Array List < Stack Trace Element > elements = new Array List < > ( ) ; Bytecode Position position = bytecode Position ; while ( position != null ) { Resolved Java Method method = position . get Method ( ) ;... | public static StackTraceElement [ ] approxSourceStackTraceElement ( BytecodePosition bytecodePosition ) { ArrayList < StackTraceElement > elements = new ArrayList < > ( ) ; BytecodePosition position = bytecodePosition ; while ( position != null ) { ResolvedJavaMethod method = position . getMethod ( ) ; if ( method != n... | 116 |
java-test-965 | java | For what purpose does a scan of all rules perform ? | to see if we have a match | public boolean match ( String schema , String table ) { if ( db Pattern != null ) { if ( logger . is Debug Enabled ( ) ) logger . debug ( STRING + schema ) ; if ( db Matcher == null ) db Matcher = db Pattern . matcher ( schema ) ; else db Matcher . reset ( schema ) ; if ( db Matcher . matches ( ) ) { if ( logger . is D... | public boolean match ( String schema , String table ) { if ( dbPattern != null ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( STRING + schema ) ; if ( dbMatcher == null ) dbMatcher = dbPattern . matcher ( schema ) ; else dbMatcher . reset ( schema ) ; if ( dbMatcher . matches ( ) ) { if ( logger . isDebugEnabl... | 180 |
java-test-967 | java | What does the pushback buffer not contain ? | any available bytes | @ Override public int read ( ) throws IO Exception { if ( buf == null ) { throw new IO Exception ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & NUM ) ; } return in . read ( ) ; } | @ Override public int read ( ) throws IOException { if ( buf == null ) { throw new IOException ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & _NUM ) ; } return in . read ( ) ; } | 55 |
java-test-968 | java | Does the pushback buffer contain any available bytes ? | No | @ Override public int read ( ) throws IO Exception { if ( buf == null ) { throw new IO Exception ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & NUM ) ; } return in . read ( ) ; } | @ Override public int read ( ) throws IOException { if ( buf == null ) { throw new IOException ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & _NUM ) ; } return in . read ( ) ; } | 55 |
java-test-969 | java | What does the code read ? | a single byte from this stream | @ Override public int read ( ) throws IO Exception { if ( buf == null ) { throw new IO Exception ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & NUM ) ; } return in . read ( ) ; } | @ Override public int read ( ) throws IOException { if ( buf == null ) { throw new IOException ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & _NUM ) ; } return in . read ( ) ; } | 55 |
java-test-970 | java | What does not contain any available bytes ? | the pushback buffer | @ Override public int read ( ) throws IO Exception { if ( buf == null ) { throw new IO Exception ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & NUM ) ; } return in . read ( ) ; } | @ Override public int read ( ) throws IOException { if ( buf == null ) { throw new IOException ( ) ; } if ( pos < buf . length ) { return ( buf [ pos ++ ] & _NUM ) ; } return in . read ( ) ; } | 55 |
java-test-971 | java | For what purpose does the code update the list of types ? | to include a new or updated definitive instance | private void update Types ( @ Nonnull Turnout Operation op ) { if ( ! initialized ) initialize ( ) ; Linked List < Turnout Operation > new Types = new Linked List < Turnout Operation > ( ) ; Iterator < Turnout Operation > iter = operation Types . iterator ( ) ; boolean found = BOOL ; while ( iter . has Next ( ) ) { Tur... | private void updateTypes ( @ Nonnull TurnoutOperation op ) { if ( ! initialized ) initialize ( ) ; LinkedList < TurnoutOperation > newTypes = new LinkedList < TurnoutOperation > ( ) ; Iterator < TurnoutOperation > iter = operationTypes . iterator ( ) ; boolean found = _BOOL ; while ( iter . hasNext ( ) ) { TurnoutOpera... | 171 |
java-test-972 | java | What does the code update to include a new or updated definitive instance ? | the list of types | private void update Types ( @ Nonnull Turnout Operation op ) { if ( ! initialized ) initialize ( ) ; Linked List < Turnout Operation > new Types = new Linked List < Turnout Operation > ( ) ; Iterator < Turnout Operation > iter = operation Types . iterator ( ) ; boolean found = BOOL ; while ( iter . has Next ( ) ) { Tur... | private void updateTypes ( @ Nonnull TurnoutOperation op ) { if ( ! initialized ) initialize ( ) ; LinkedList < TurnoutOperation > newTypes = new LinkedList < TurnoutOperation > ( ) ; Iterator < TurnoutOperation > iter = operationTypes . iterator ( ) ; boolean found = _BOOL ; while ( iter . hasNext ( ) ) { TurnoutOpera... | 171 |
java-test-973 | java | What do we retain ? | the existing order | private void update Types ( @ Nonnull Turnout Operation op ) { if ( ! initialized ) initialize ( ) ; Linked List < Turnout Operation > new Types = new Linked List < Turnout Operation > ( ) ; Iterator < Turnout Operation > iter = operation Types . iterator ( ) ; boolean found = BOOL ; while ( iter . has Next ( ) ) { Tur... | private void updateTypes ( @ Nonnull TurnoutOperation op ) { if ( ! initialized ) initialize ( ) ; LinkedList < TurnoutOperation > newTypes = new LinkedList < TurnoutOperation > ( ) ; Iterator < TurnoutOperation > iter = operationTypes . iterator ( ) ; boolean found = _BOOL ; while ( iter . hasNext ( ) ) { TurnoutOpera... | 171 |
java-test-975 | java | Where do a header add ? | in the internal list | private boolean show Header Of ( int position , @ Non Null T item , boolean init ) { I Header header = get Header Of ( item ) ; if ( header == null || get Pending Removed Item ( item ) != null ) return BOOL ; if ( header . is Hidden ( ) ) { if ( DEBUG ) Log . v ( TAG , STRING + position + STRING + header ) ; header . s... | private boolean showHeaderOf ( int position , @ NonNull T item , boolean init ) { IHeader header = getHeaderOf ( item ) ; if ( header == null || getPendingRemovedItem ( item ) != null ) return _BOOL ; if ( header . isHidden ( ) ) { if ( DEBUG ) Log . v ( TAG , STRING + position + STRING + header ) ; header . setHidden ... | 155 |
java-test-976 | java | How should the fields be included ? | based on the accesstype | private static boolean should Include Field ( Field Doc field , String access Type ) { if ( field . is Static ( ) || Annotation Utils . has Annotation ( field , Known Annotations . XML Transient Annotation ) || Annotation Utils . has Annotation ( field , Known Annotations . XML Attribute Annotation ) ) { return BOOL ; ... | private static boolean shouldIncludeField ( FieldDoc field , String accessType ) { if ( field . isStatic ( ) || AnnotationUtils . hasAnnotation ( field , KnownAnnotations . XMLTransient_Annotation ) || AnnotationUtils . hasAnnotation ( field , KnownAnnotations . XMLAttribute_Annotation ) ) { return _BOOL ; } if ( acces... | 148 |
java-test-977 | java | What does it put ? | in the servicebyid map under the serviceid , in the servicebytime map , in the servicebytype map under the service ' s most - specific servicetype | private void add Service ( Svc Reg reg ) { service By ID . put ( reg . item . service ID , reg ) ; service By Time . put ( reg , reg ) ; add Service By Types ( reg . item . service Type , reg ) ; Entry Rep [ ] entries = reg . item . attribute Sets ; for ( int i = entries . length ; -- i >= NUM ; ) { add Attrs ( reg , e... | private void addService ( SvcReg reg ) { serviceByID . put ( reg . item . serviceID , reg ) ; serviceByTime . put ( reg , reg ) ; addServiceByTypes ( reg . item . serviceType , reg ) ; EntryRep [ ] entries = reg . item . attributeSets ; for ( int i = entries . length ; -- i >= _NUM ; ) { addAttrs ( reg , entries [ i ] ... | 100 |
java-test-978 | java | What do we add to the type and all supertypes ? | concrete class information | private void add Service ( Svc Reg reg ) { service By ID . put ( reg . item . service ID , reg ) ; service By Time . put ( reg , reg ) ; add Service By Types ( reg . item . service Type , reg ) ; Entry Rep [ ] entries = reg . item . attribute Sets ; for ( int i = entries . length ; -- i >= NUM ; ) { add Attrs ( reg , e... | private void addService ( SvcReg reg ) { serviceByID . put ( reg . item . serviceID , reg ) ; serviceByTime . put ( reg , reg ) ; addServiceByTypes ( reg . item . serviceType , reg ) ; EntryRep [ ] entries = reg . item . attributeSets ; for ( int i = entries . length ; -- i >= _NUM ; ) { addAttrs ( reg , entries [ i ] ... | 100 |
java-test-979 | java | What do we need if this is the first instance of that servicetype registered if this is the first instance of that servicetype registered ? | to add concrete class information to the type and all supertypes | private void add Service ( Svc Reg reg ) { service By ID . put ( reg . item . service ID , reg ) ; service By Time . put ( reg , reg ) ; add Service By Types ( reg . item . service Type , reg ) ; Entry Rep [ ] entries = reg . item . attribute Sets ; for ( int i = entries . length ; -- i >= NUM ; ) { add Attrs ( reg , e... | private void addService ( SvcReg reg ) { serviceByID . put ( reg . item . serviceID , reg ) ; serviceByTime . put ( reg , reg ) ; addServiceByTypes ( reg . item . serviceType , reg ) ; EntryRep [ ] entries = reg . item . attributeSets ; for ( int i = entries . length ; -- i >= _NUM ; ) { addAttrs ( reg , entries [ i ] ... | 100 |
java-test-980 | java | What does the code add ? | a service to our state | private void add Service ( Svc Reg reg ) { service By ID . put ( reg . item . service ID , reg ) ; service By Time . put ( reg , reg ) ; add Service By Types ( reg . item . service Type , reg ) ; Entry Rep [ ] entries = reg . item . attribute Sets ; for ( int i = entries . length ; -- i >= NUM ; ) { add Attrs ( reg , e... | private void addService ( SvcReg reg ) { serviceByID . put ( reg . item . serviceID , reg ) ; serviceByTime . put ( reg , reg ) ; addServiceByTypes ( reg . item . serviceType , reg ) ; EntryRep [ ] entries = reg . item . attributeSets ; for ( int i = entries . length ; -- i >= _NUM ; ) { addAttrs ( reg , entries [ i ] ... | 100 |
java-test-981 | java | Where does urls rewrite ? | in jsp ' s etc | protected Rewritten Outbound Url process Encode URL ( Http Servlet Response hs Response , Http Servlet Request hs Request , boolean encode Url Has Been Run , String outbound Url ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + outbound Url ) ; } if ( outbound Url == null ) { return new Rewritten Outbound ... | protected RewrittenOutboundUrl processEncodeURL ( HttpServletResponse hsResponse , HttpServletRequest hsRequest , boolean encodeUrlHasBeenRun , String outboundUrl ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + outboundUrl ) ; } if ( outboundUrl == null ) { return new RewrittenOutboundUrl ( null , _BOOL ) ... | 370 |
java-test-982 | java | What keeps within the allowed range and the image on screen ? | scale | private void fit To Bounds ( boolean center , Scale And Translate scale And Translate ) { if ( pan Limit == PAN LIMIT OUTSIDE && is Image Ready ( ) ) { center = BOOL ; } Point F v Translate = scale And Translate . translate ; float scale = limited Scale ( scale And Translate . scale ) ; float scale Width = scale * s Wi... | private void fitToBounds ( boolean center , ScaleAndTranslate scaleAndTranslate ) { if ( panLimit == PAN_LIMIT_OUTSIDE && isImageReady ( ) ) { center = _BOOL ; } PointF vTranslate = scaleAndTranslate . translate ; float scale = limitedScale ( scaleAndTranslate . scale ) ; float scaleWidth = scale * sWidth ( ) ; float s... | 433 |
java-test-983 | java | Where does scale keep ? | within the allowed range and the image on screen | private void fit To Bounds ( boolean center , Scale And Translate scale And Translate ) { if ( pan Limit == PAN LIMIT OUTSIDE && is Image Ready ( ) ) { center = BOOL ; } Point F v Translate = scale And Translate . translate ; float scale = limited Scale ( scale And Translate . scale ) ; float scale Width = scale * s Wi... | private void fitToBounds ( boolean center , ScaleAndTranslate scaleAndTranslate ) { if ( panLimit == PAN_LIMIT_OUTSIDE && isImageReady ( ) ) { center = _BOOL ; } PointF vTranslate = scaleAndTranslate . translate ; float scale = limitedScale ( scaleAndTranslate . scale ) ; float scaleWidth = scale * sWidth ( ) ; float s... | 433 |
java-test-984 | java | What should be what ? | the target of an animation | private void fit To Bounds ( boolean center , Scale And Translate scale And Translate ) { if ( pan Limit == PAN LIMIT OUTSIDE && is Image Ready ( ) ) { center = BOOL ; } Point F v Translate = scale And Translate . translate ; float scale = limited Scale ( scale And Translate . scale ) ; float scale Width = scale * s Wi... | private void fitToBounds ( boolean center , ScaleAndTranslate scaleAndTranslate ) { if ( panLimit == PAN_LIMIT_OUTSIDE && isImageReady ( ) ) { center = _BOOL ; } PointF vTranslate = scaleAndTranslate . translate ; float scale = limitedScale ( scaleAndTranslate . scale ) ; float scaleWidth = scale * sWidth ( ) ; float s... | 433 |
java-test-985 | java | What does the code provide if possible ? | a more user readable string for testresult | @ Override public String to String ( ) { String Builder output = new String Builder ( ) ; if ( m Test Class != null ) { output . append ( m Test Class ) ; output . append ( STRING ) ; } if ( m Test Name != null ) { output . append ( m Test Name ) ; } if ( output . length ( ) > NUM ) { return output . to String ( ) ; } ... | @ Override public String toString ( ) { StringBuilder output = new StringBuilder ( ) ; if ( mTestClass != null ) { output . append ( mTestClass ) ; output . append ( STRING ) ; } if ( mTestName != null ) { output . append ( mTestName ) ; } if ( output . length ( ) > _NUM ) { return output . toString ( ) ; } return STRI... | 88 |
java-test-986 | java | What does that mean just currently ? | to swap the inputs for commutative rules , producing all possible permutations | List < String > generate Variants ( ) { String prefix = format Prefix ( ) ; String suffix = format Suffix ( ) ; Array List < String > variants = new Array List < > ( ) ; if ( inputs . length > NUM ) { for ( String var : recurse Variants ( NUM ) ) { variants . add ( prefix + STRING + var + suffix ) ; } } else { assert i... | List < String > generateVariants ( ) { String prefix = formatPrefix ( ) ; String suffix = formatSuffix ( ) ; ArrayList < String > variants = new ArrayList < > ( ) ; if ( inputs . length > _NUM ) { for ( String var : recurseVariants ( _NUM ) ) { variants . add ( prefix + STRING + var + suffix ) ; } } else { assert input... | 99 |
java-test-988 | java | What does the code assume ? | they ' re not already in the adapter | public boolean add All Unique ( List < Album > ps ) { boolean did Change = BOOL ; synchronized ( m Albums ) { for ( Album p : ps ) { if ( ! m Albums . contains ( p ) && p . is Loaded ( ) ) { m Albums . add ( p ) ; did Change = BOOL ; } } if ( did Change ) { sort List Locked ( ) ; } } return did Change ; } | public boolean addAllUnique ( List < Album > ps ) { boolean didChange = _BOOL ; synchronized ( mAlbums ) { for ( Album p : ps ) { if ( ! mAlbums . contains ( p ) && p . isLoaded ( ) ) { mAlbums . add ( p ) ; didChange = _BOOL ; } } if ( didChange ) { sortListLocked ( ) ; } } return didChange ; } | 86 |
java-test-989 | java | What does the code add to substitution ? | a truetype font directory and contents | public static String add TT Dir ( final String font Path , String failed ) { check Font Tables Initialised ( ) ; final File current Dir = new File ( font Path ) ; if ( ( current Dir . exists ( ) ) && ( current Dir . is Directory ( ) ) ) { final String [ ] files = current Dir . list ( ) ; if ( files != null ) { for ( fi... | public static String addTTDir ( final String fontPath , String failed ) { checkFontTablesInitialised ( ) ; final File currentDir = new File ( fontPath ) ; if ( ( currentDir . exists ( ) ) && ( currentDir . isDirectory ( ) ) ) { final String [ ] files = currentDir . list ( ) ; if ( files != null ) { for ( final String c... | 133 |
java-test-990 | java | What can a subclass change either ? | the value of port | protected void initialize Connection ( MQTT Client Provider provider ) throws Exception { if ( ! is Use SSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSL Context ctx = SSL Context . get Instance ( STRING ) ; ctx . init ( new Key Manager [ NUM ] , new Trust Manager [ ] { new Default Trust Manager ( ) } , n... | protected void initializeConnection ( MQTTClientProvider provider ) throws Exception { if ( ! isUseSSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSLContext ctx = SSLContext . getInstance ( STRING ) ; ctx . init ( new KeyManager [ _NUM ] , new TrustManager [ ] { new DefaultTrustManager ( ) } , new SecureRa... | 100 |
java-test-991 | java | What does the code initialize ? | an mqttclientprovider instance | protected void initialize Connection ( MQTT Client Provider provider ) throws Exception { if ( ! is Use SSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSL Context ctx = SSL Context . get Instance ( STRING ) ; ctx . init ( new Key Manager [ NUM ] , new Trust Manager [ ] { new Default Trust Manager ( ) } , n... | protected void initializeConnection ( MQTTClientProvider provider ) throws Exception { if ( ! isUseSSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSLContext ctx = SSLContext . getInstance ( STRING ) ; ctx . init ( new KeyManager [ _NUM ] , new TrustManager [ ] { new DefaultTrustManager ( ) } , new SecureRa... | 100 |
java-test-992 | java | What did the port assign ? | to be the tcp based port using the base version of addmqttconnector | protected void initialize Connection ( MQTT Client Provider provider ) throws Exception { if ( ! is Use SSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSL Context ctx = SSL Context . get Instance ( STRING ) ; ctx . init ( new Key Manager [ NUM ] , new Trust Manager [ ] { new Default Trust Manager ( ) } , n... | protected void initializeConnection ( MQTTClientProvider provider ) throws Exception { if ( ! isUseSSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSLContext ctx = SSLContext . getInstance ( STRING ) ; ctx . init ( new KeyManager [ _NUM ] , new TrustManager [ ] { new DefaultTrustManager ( ) } , new SecureRa... | 100 |
java-test-993 | java | What do a subclass override this method ? | to assign the correct port | protected void initialize Connection ( MQTT Client Provider provider ) throws Exception { if ( ! is Use SSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSL Context ctx = SSL Context . get Instance ( STRING ) ; ctx . init ( new Key Manager [ NUM ] , new Trust Manager [ ] { new Default Trust Manager ( ) } , n... | protected void initializeConnection ( MQTTClientProvider provider ) throws Exception { if ( ! isUseSSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSLContext ctx = SSLContext . getInstance ( STRING ) ; ctx . init ( new KeyManager [ _NUM ] , new TrustManager [ ] { new DefaultTrustManager ( ) } , new SecureRa... | 100 |
java-test-994 | java | What does this method use using the base version of addmqttconnector ? | the port that ' s assigned to be the tcp based port | protected void initialize Connection ( MQTT Client Provider provider ) throws Exception { if ( ! is Use SSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSL Context ctx = SSL Context . get Instance ( STRING ) ; ctx . init ( new Key Manager [ NUM ] , new Trust Manager [ ] { new Default Trust Manager ( ) } , n... | protected void initializeConnection ( MQTTClientProvider provider ) throws Exception { if ( ! isUseSSL ( ) ) { provider . connect ( STRING + port ) ; } else { SSLContext ctx = SSLContext . getInstance ( STRING ) ; ctx . init ( new KeyManager [ _NUM ] , new TrustManager [ ] { new DefaultTrustManager ( ) } , new SecureRa... | 100 |
java-test-997 | java | Where did sequence counters define ? | in the application dictionary | public String sql AD get Sequences ( String vendor Name , String catalog Name , String schema Name ) { String table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; Array List < String > a... | public String sqlAD_getSequences ( String vendorName , String catalogName , String schemaName ) { String tableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; ArrayList < String > aliasNames = n... | 189 |
java-test-998 | java | For what purpose does the code get the database specific sql command ? | to find sequence counters defined in the application dictionary | public String sql AD get Sequences ( String vendor Name , String catalog Name , String schema Name ) { String table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; Array List < String > a... | public String sqlAD_getSequences ( String vendorName , String catalogName , String schemaName ) { String tableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; ArrayList < String > aliasNames = n... | 189 |
java-test-999 | java | What defined in the application dictionary ? | sequence counters | public String sql AD get Sequences ( String vendor Name , String catalog Name , String schema Name ) { String table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; Array List < String > a... | public String sqlAD_getSequences ( String vendorName , String catalogName , String schemaName ) { String tableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; ArrayList < String > aliasNames = n... | 189 |
java-test-1000 | java | What does this method transform into a xmlattribute ? | a field given in input | public static Xml Attribute to Xml Attribute ( Class < ? > clazz , Field field ) { J Map j Map = field . get Annotation ( J Map . class ) ; Simply Attribute [ ] target Attributes = to Target Attributes ( j Map . attributes ( ) ) ; String get = null , set = null ; J Map Accessor j Map Accessor = Annotation . get Field A... | public static XmlAttribute toXmlAttribute ( Class < ? > clazz , Field field ) { JMap jMap = field . getAnnotation ( JMap . class ) ; SimplyAttribute [ ] targetAttributes = toTargetAttributes ( jMap . attributes ( ) ) ; String get = null , set = null ; JMapAccessor jMapAccessor = Annotation . getFieldAccessors ( clazz ,... | 152 |
java-test-1001 | java | What did the user key expand ? | to the encryption subkey | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1002 | java | What expands to the encryption subkey ? | the user key | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1003 | java | Till when is the rest of the subkey calculated by rotating the previous 16 bytes by 25 bits to the left ? | until the subkey is completed | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1004 | java | What is the following function used ? | to expand the user key to the encryption subkey | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1005 | java | What is used to expand the user key to the encryption subkey ? | the following function | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1006 | java | How is the rest of the subkey calculated until the subkey is completed ? | by rotating the previous 16 bytes by 25 bits to the left | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1007 | java | How do the previous 16 bytes rotate to the left ? | by 25 bits | private int [ ] expand Key ( byte [ ] u Key ) { int [ ] key = new int [ NUM ] ; if ( u Key . length < NUM ) { byte [ ] tmp = new byte [ NUM ] ; System . arraycopy ( u Key , NUM , tmp , tmp . length - u Key . length , u Key . length ) ; u Key = tmp ; } for ( int i = NUM ; i < NUM ; i ++ ) { key [ i ] = bytes To Word ( u... | private int [ ] expandKey ( byte [ ] uKey ) { int [ ] key = new int [ _NUM ] ; if ( uKey . length < _NUM ) { byte [ ] tmp = new byte [ _NUM ] ; System . arraycopy ( uKey , _NUM , tmp , tmp . length - uKey . length , uKey . length ) ; uKey = tmp ; } for ( int i = _NUM ; i < _NUM ; i ++ ) { key [ i ] = bytesToWord ( uKey... | 255 |
java-test-1008 | java | What does the code load ? | the public key of some processes | public Public Key load Public Key ( int id ) throws Exception { if ( default Keys ) { return get Public Key From String ( RSA Key Loader . DEFAULT UKEY ) ; } File Reader f = new File Reader ( path + STRING + id ) ; Buffered Reader r = new Buffered Reader ( f ) ; String tmp = STRING ; String key = STRING ; while ( ( tmp... | public PublicKey loadPublicKey ( int id ) throws Exception { if ( defaultKeys ) { return getPublicKeyFromString ( RSAKeyLoader . DEFAULT_UKEY ) ; } FileReader f = new FileReader ( path + STRING + id ) ; BufferedReader r = new BufferedReader ( f ) ; String tmp = STRING ; String key = STRING ; while ( ( tmp = r . readLin... | 123 |
java-test-1009 | java | How will none of the strings contain the separator ? | useful when separating strings such as " foo / bar / bas " using separator " / " | private String [ ] split Separator ( String sep , String s ) { Vector v = new Vector ( ) ; int token Start = NUM ; int token End = NUM ; while ( ( token End = s . index Of ( sep , token Start ) ) != - NUM ) { v . add Element ( s . substring ( token Start , token End ) ) ; token Start = token End + NUM ; } v . add Eleme... | private String [ ] splitSeparator ( String sep , String s ) { Vector v = new Vector ( ) ; int tokenStart = _NUM ; int tokenEnd = _NUM ; while ( ( tokenEnd = s . indexOf ( sep , tokenStart ) ) != - _NUM ) { v . addElement ( s . substring ( tokenStart , tokenEnd ) ) ; tokenStart = tokenEnd + _NUM ; } v . addElement ( s .... | 126 |
java-test-1010 | java | How do a string split ? | based on the presence of a specified separator | private String [ ] split Separator ( String sep , String s ) { Vector v = new Vector ( ) ; int token Start = NUM ; int token End = NUM ; while ( ( token End = s . index Of ( sep , token Start ) ) != - NUM ) { v . add Element ( s . substring ( token Start , token End ) ) ; token Start = token End + NUM ; } v . add Eleme... | private String [ ] splitSeparator ( String sep , String s ) { Vector v = new Vector ( ) ; int tokenStart = _NUM ; int tokenEnd = _NUM ; while ( ( tokenEnd = s . indexOf ( sep , tokenStart ) ) != - _NUM ) { v . addElement ( s . substring ( tokenStart , tokenEnd ) ) ; tokenStart = tokenEnd + _NUM ; } v . addElement ( s .... | 126 |
java-test-1011 | java | When does a separator be ? | immediately before the end of the string | private String [ ] split Separator ( String sep , String s ) { Vector v = new Vector ( ) ; int token Start = NUM ; int token End = NUM ; while ( ( token End = s . index Of ( sep , token Start ) ) != - NUM ) { v . add Element ( s . substring ( token Start , token End ) ) ; token Start = token End + NUM ; } v . add Eleme... | private String [ ] splitSeparator ( String sep , String s ) { Vector v = new Vector ( ) ; int tokenStart = _NUM ; int tokenEnd = _NUM ; while ( ( tokenEnd = s . indexOf ( sep , tokenStart ) ) != - _NUM ) { v . addElement ( s . substring ( tokenStart , tokenEnd ) ) ; tokenStart = tokenEnd + _NUM ; } v . addElement ( s .... | 126 |
java-test-1012 | java | What will contain the separator useful when separating strings such as " foo / bar / bas " using separator " / " ? | none of the strings | private String [ ] split Separator ( String sep , String s ) { Vector v = new Vector ( ) ; int token Start = NUM ; int token End = NUM ; while ( ( token End = s . index Of ( sep , token Start ) ) != - NUM ) { v . add Element ( s . substring ( token Start , token End ) ) ; token Start = token End + NUM ; } v . add Eleme... | private String [ ] splitSeparator ( String sep , String s ) { Vector v = new Vector ( ) ; int tokenStart = _NUM ; int tokenEnd = _NUM ; while ( ( tokenEnd = s . indexOf ( sep , tokenStart ) ) != - _NUM ) { v . addElement ( s . substring ( tokenStart , tokenEnd ) ) ; tokenStart = tokenEnd + _NUM ; } v . addElement ( s .... | 126 |
java-test-1013 | java | How do strings such as " foo / bar / bas " separate when ? | using separator " / " | private String [ ] split Separator ( String sep , String s ) { Vector v = new Vector ( ) ; int token Start = NUM ; int token End = NUM ; while ( ( token End = s . index Of ( sep , token Start ) ) != - NUM ) { v . add Element ( s . substring ( token Start , token End ) ) ; token Start = token End + NUM ; } v . add Eleme... | private String [ ] splitSeparator ( String sep , String s ) { Vector v = new Vector ( ) ; int tokenStart = _NUM ; int tokenEnd = _NUM ; while ( ( tokenEnd = s . indexOf ( sep , tokenStart ) ) != - _NUM ) { v . addElement ( s . substring ( tokenStart , tokenEnd ) ) ; tokenStart = tokenEnd + _NUM ; } v . addElement ( s .... | 126 |
java-test-1014 | java | When will the aci ' s current position be at the start of the first run which does not contain a graphicattribute ? | when this returns | static boolean advance To First Font ( Attributed Character Iterator aci ) { for ( char ch = aci . first ( ) ; ch != Character Iterator . DONE ; ch = aci . set Index ( aci . get Run Limit ( ) ) ) { if ( aci . get Attribute ( Text Attribute . CHAR REPLACEMENT ) == null ) { return BOOL ; } } return BOOL ; } | static boolean advanceToFirstFont ( AttributedCharacterIterator aci ) { for ( char ch = aci . first ( ) ; ch != CharacterIterator . DONE ; ch = aci . setIndex ( aci . getRunLimit ( ) ) ) { if ( aci . getAttribute ( TextAttribute . CHAR_REPLACEMENT ) == null ) { return _BOOL ; } } return _BOOL ; } | 74 |
java-test-1015 | java | What does not contain a graphicattribute ? | the first run | static boolean advance To First Font ( Attributed Character Iterator aci ) { for ( char ch = aci . first ( ) ; ch != Character Iterator . DONE ; ch = aci . set Index ( aci . get Run Limit ( ) ) ) { if ( aci . get Attribute ( Text Attribute . CHAR REPLACEMENT ) == null ) { return BOOL ; } } return BOOL ; } | static boolean advanceToFirstFont ( AttributedCharacterIterator aci ) { for ( char ch = aci . first ( ) ; ch != CharacterIterator . DONE ; ch = aci . setIndex ( aci . getRunLimit ( ) ) ) { if ( aci . getAttribute ( TextAttribute . CHAR_REPLACEMENT ) == null ) { return _BOOL ; } } return _BOOL ; } | 74 |
java-test-1016 | java | Does the first run contain a graphicattribute ? | No | static boolean advance To First Font ( Attributed Character Iterator aci ) { for ( char ch = aci . first ( ) ; ch != Character Iterator . DONE ; ch = aci . set Index ( aci . get Run Limit ( ) ) ) { if ( aci . get Attribute ( Text Attribute . CHAR REPLACEMENT ) == null ) { return BOOL ; } } return BOOL ; } | static boolean advanceToFirstFont ( AttributedCharacterIterator aci ) { for ( char ch = aci . first ( ) ; ch != CharacterIterator . DONE ; ch = aci . setIndex ( aci . getRunLimit ( ) ) ) { if ( aci . getAttribute ( TextAttribute . CHAR_REPLACEMENT ) == null ) { return _BOOL ; } } return _BOOL ; } | 74 |
java-test-1017 | java | What does the first run not contain ? | a graphicattribute | static boolean advance To First Font ( Attributed Character Iterator aci ) { for ( char ch = aci . first ( ) ; ch != Character Iterator . DONE ; ch = aci . set Index ( aci . get Run Limit ( ) ) ) { if ( aci . get Attribute ( Text Attribute . CHAR REPLACEMENT ) == null ) { return BOOL ; } } return BOOL ; } | static boolean advanceToFirstFont ( AttributedCharacterIterator aci ) { for ( char ch = aci . first ( ) ; ch != CharacterIterator . DONE ; ch = aci . setIndex ( aci . getRunLimit ( ) ) ) { if ( aci . getAttribute ( TextAttribute . CHAR_REPLACEMENT ) == null ) { return _BOOL ; } } return _BOOL ; } | 74 |
java-test-1019 | java | What allows boolean , byte , short , or char to widen to int . support exactly this conversion , from a boxed value type boolean , byte , short , character , or integer ? | the jvm verifier | public static int widen Subword ( Object x ) { if ( x instanceof Integer ) return ( int ) x ; else if ( x instanceof Boolean ) return from Boolean ( ( boolean ) x ) ; else if ( x instanceof Character ) return ( char ) x ; else if ( x instanceof Short ) return ( short ) x ; else if ( x instanceof Byte ) return ( byte ) ... | public static int widenSubword ( Object x ) { if ( x instanceof Integer ) return ( int ) x ; else if ( x instanceof Boolean ) return fromBoolean ( ( boolean ) x ) ; else if ( x instanceof Character ) return ( char ) x ; else if ( x instanceof Short ) return ( short ) x ; else if ( x instanceof Byte ) return ( byte ) x ... | 86 |
java-test-1020 | java | What does the jvm verifier allow ? | boolean , byte , short , or char to widen to int . support exactly this conversion , from a boxed value type boolean , byte , short , character , or integer | public static int widen Subword ( Object x ) { if ( x instanceof Integer ) return ( int ) x ; else if ( x instanceof Boolean ) return from Boolean ( ( boolean ) x ) ; else if ( x instanceof Character ) return ( char ) x ; else if ( x instanceof Short ) return ( short ) x ; else if ( x instanceof Byte ) return ( byte ) ... | public static int widenSubword ( Object x ) { if ( x instanceof Integer ) return ( int ) x ; else if ( x instanceof Boolean ) return fromBoolean ( ( boolean ) x ) ; else if ( x instanceof Character ) return ( char ) x ; else if ( x instanceof Short ) return ( short ) x ; else if ( x instanceof Byte ) return ( byte ) x ... | 86 |
java-test-1021 | java | What is containing the urls ? | a chaticons object | private List < Usericon > parse Chat Icons ( String json , String stream ) { try { JSON Parser parser = new JSON Parser ( ) ; JSON Object root = ( JSON Object ) parser . parse ( json ) ; List < Usericon > icons New = new Array List < > ( ) ; add Usericon ( icons New , Usericon . Type . MOD , null , get Chat Icon Url ( ... | private List < Usericon > parseChatIcons ( String json , String stream ) { try { JSONParser parser = new JSONParser ( ) ; JSONObject root = ( JSONObject ) parser . parse ( json ) ; List < Usericon > iconsNew = new ArrayList < > ( ) ; addUsericon ( iconsNew , Usericon . Type . MOD , null , getChatIconUrl ( root , STRING... | 280 |
java-test-1022 | java | What does the code parse into a chaticons object containing the urls ? | the icons info returned from the twitchapi | private List < Usericon > parse Chat Icons ( String json , String stream ) { try { JSON Parser parser = new JSON Parser ( ) ; JSON Object root = ( JSON Object ) parser . parse ( json ) ; List < Usericon > icons New = new Array List < > ( ) ; add Usericon ( icons New , Usericon . Type . MOD , null , get Chat Icon Url ( ... | private List < Usericon > parseChatIcons ( String json , String stream ) { try { JSONParser parser = new JSONParser ( ) ; JSONObject root = ( JSONObject ) parser . parse ( json ) ; List < Usericon > iconsNew = new ArrayList < > ( ) ; addUsericon ( iconsNew , Usericon . Type . MOD , null , getChatIconUrl ( root , STRING... | 280 |
java-test-1023 | java | What does the code write ? | the header column line to file | private void write Header Line ( List < Extension Property > property List , int total Columns , Archive File af , Writer writer ) throws IO Exception { String [ ] headers = new String [ total Columns ] ; headers [ ID COLUMN INDEX ] = ID COLUMN NAME ; int c = NUM ; for ( Extension Property property : property List ) { ... | private void writeHeaderLine ( List < ExtensionProperty > propertyList , int totalColumns , ArchiveFile af , Writer writer ) throws IOException { String [ ] headers = new String [ totalColumns ] ; headers [ ID_COLUMN_INDEX ] = ID_COLUMN_NAME ; int c = _NUM ; for ( ExtensionProperty property : propertyList ) { headers [... | 112 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.