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-7266
java
How do a crc update ?
with the specified bytes
public static int crc ( byte [ ] bytes , int start , int end , int initial Value ) { for ( int i = start ; i < end ; i ++ ) { initial Value = ( initial Value << NUM ) ^ CRC 32 BYTES MSBF [ ( ( initial Value > > > NUM ) ^ ( bytes [ i ] & NUM ) ) & NUM ] ; } return initial Value ; }
public static int crc ( byte [ ] bytes , int start , int end , int initialValue ) { for ( int i = start ; i < end ; i ++ ) { initialValue = ( initialValue << _NUM ) ^ CRC32_BYTES_MSBF [ ( ( initialValue > > > _NUM ) ^ ( bytes [ i ] & _NUM ) ) & _NUM ] ; } return initialValue ; }
80
java-test-7267
java
What does the code decode ?
the request message
public static String decode From Redirect ( final String str ) { final String class Method = STRING ; if ( String Utils . is Empty ( str ) ) { debug . error ( class Method + STRING ) ; return null ; } if ( debug . message Enabled ( ) ) { debug . message ( class Method + STRING + str . length ( ) ) ; debug . message ( c...
public static String decodeFromRedirect ( final String str ) { final String classMethod = STRING ; if ( StringUtils . isEmpty ( str ) ) { debug . error ( classMethod + STRING ) ; return null ; } if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + STRING + str . length ( ) ) ; debug . message ( classMeth...
403
java-test-7270
java
What does the code initialize ?
the internal resttemplate instance
@ Post Construct protected void init ( ) { logger . debug ( STRING ) ; make Rest Template With Custom Object Mapper ( rest Template ) ; logger . debug ( STRING ) ; List < Client Http Request Interceptor > interceptors = Collections . < Client Http Request Interceptor > singleton List ( form Login Authentication Csrf To...
@ PostConstruct protected void init ( ) { logger . debug ( STRING ) ; makeRestTemplateWithCustomObjectMapper ( restTemplate ) ; logger . debug ( STRING ) ; List < ClientHttpRequestInterceptor > interceptors = Collections . < ClientHttpRequestInterceptor > singletonList ( formLoginAuthenticationCsrfTokenInterceptor ) ; ...
91
java-test-7277
java
What do they contain only ?
letters or numbers
public Letter Or Number Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Char...
public LetterOrNumberValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCha...
68
java-test-7278
java
What does the code create ?
a new validator , which allows to validate texts to ensure , that they only contain letters or numbers
public Letter Or Number Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Char...
public LetterOrNumberValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCha...
68
java-test-7279
java
For what purpose does which validate texts ?
to ensure , that they only contain letters or numbers
public Letter Or Number Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Char...
public LetterOrNumberValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCha...
68
java-test-7280
java
What does a new validator allow ?
to validate texts to ensure , that they only contain letters or numbers
public Letter Or Number Validator ( @ Non Null final Char Sequence error Message , @ Non Null final Case case Sensitivity , final boolean allow Spaces , @ Non Null final char ... allowed Characters ) { super ( error Message ) ; set Case Sensitivity ( case Sensitivity ) ; allow Spaces ( allow Spaces ) ; set Allowed Char...
public LetterOrNumberValidator ( @ NonNull final CharSequence errorMessage , @ NonNull final Case caseSensitivity , final boolean allowSpaces , @ NonNull final char ... allowedCharacters ) { super ( errorMessage ) ; setCaseSensitivity ( caseSensitivity ) ; allowSpaces ( allowSpaces ) ; setAllowedCharacters ( allowedCha...
68
java-test-7281
java
What did the code set ?
the limit and offset of this statement
public Query limit ( int limit , int offset ) { return limit ( limit < NUM ? NO LIMIT : Field . < Integer > field ( Integer . to String ( limit ) ) , offset < NUM ? NO OFFSET : Field . < Integer > field ( Integer . to String ( offset ) ) ) ; }
public Query limit ( int limit , int offset ) { return limit ( limit < _NUM ? NO_LIMIT : Field . < Integer > field ( Integer . toString ( limit ) ) , offset < _NUM ? NO_OFFSET : Field . < Integer > field ( Integer . toString ( offset ) ) ) ; }
62
java-test-7282
java
For what purpose does registers with indices in the range 2 to ( sparsecutoff + 2 ) to value 1 set cumulatively then ?
to trigger promotion
private static void sparse Edge Test ( final I Schema Version schema Version ) throws IO Exception { final Writer output = open Output ( schema Version , STRING , Test Type . ADD ) ; final HLL hll = new HLL ( HLL Type . SPARSE ) ; init Line Add ( output , hll , schema Version ) ; final long first Value = construct HLL ...
private static void sparseEdgeTest ( final ISchemaVersion schemaVersion ) throws IOException { final Writer output = openOutput ( schemaVersion , STRING , TestType . ADD ) ; final HLL hll = newHLL ( HLLType . SPARSE ) ; initLineAdd ( output , hll , schemaVersion ) ; final long firstValue = constructHLLValue ( LOG2M , _...
202
java-test-7292
java
What do this launch ?
the countdown to the moment the transaction would expire
public synchronized void start ( ) { if ( expiration Time == - NUM ) { expired = BOOL ; expiration Time = LIFETIME + System . current Time Millis ( ) ; } else { throw new Illegal State Exception ( STRING + get Transaction ID ( ) + STRING ) ; } }
public synchronized void start ( ) { if ( expirationTime == - _NUM ) { expired = _BOOL ; expirationTime = LIFETIME + System . currentTimeMillis ( ) ; } else { throw new IllegalStateException ( STRING + getTransactionID ( ) + STRING ) ; } }
55
java-test-7293
java
When would the transaction expire ?
the moment
public synchronized void start ( ) { if ( expiration Time == - NUM ) { expired = BOOL ; expiration Time = LIFETIME + System . current Time Millis ( ) ; } else { throw new Illegal State Exception ( STRING + get Transaction ID ( ) + STRING ) ; } }
public synchronized void start ( ) { if ( expirationTime == - _NUM ) { expired = _BOOL ; expirationTime = LIFETIME + System . currentTimeMillis ( ) ; } else { throw new IllegalStateException ( STRING + getTransactionID ( ) + STRING ) ; } }
55
java-test-7294
java
When did by jvms define ?
4 . 2
public static String to Internal Form ( String d ) { if ( d . char At ( NUM ) != STRING ) { throw new Janino Runtime Exception ( STRING + d + STRING ) ; } return d . substring ( NUM , d . length ( ) - NUM ) ; }
public static String toInternalForm ( String d ) { if ( d . charAt ( _NUM ) != STRING ) { throw new JaninoRuntimeException ( STRING + d + STRING ) ; } return d . substring ( _NUM , d . length ( ) - _NUM ) ; }
55
java-test-7295
java
How are all exceptions logged ?
using debug level
private void disconnect ( boolean finalize ) { if ( is Discarded ( ) && connection == null ) { return ; } set Discarded ( BOOL ) ; if ( connection != null ) { try { parent . disconnect Event ( this , finalize ) ; if ( xa Connection == null ) { connection . close ( ) ; } else { xa Connection . close ( ) ; } } catch ( Ex...
private void disconnect ( boolean finalize ) { if ( isDiscarded ( ) && connection == null ) { return ; } setDiscarded ( _BOOL ) ; if ( connection != null ) { try { parent . disconnectEvent ( this , finalize ) ; if ( xaConnection == null ) { connection . close ( ) ; } else { xaConnection . close ( ) ; } } catch ( Except...
130
java-test-7296
java
How do command line option handle ?
by reading classpath entries from a file and adding them to the project
private void handle Aux Class Path From File ( String file Path ) throws IO Exception { Buffered Reader in = new Buffered Reader ( UTF 8 . file Reader ( file Path ) ) ; try { while ( BOOL ) { String s = in . read Line ( ) ; if ( s == null ) { break ; } project . add Aux Classpath Entry ( s ) ; } } finally { Util . clos...
private void handleAuxClassPathFromFile ( String filePath ) throws IOException { BufferedReader in = new BufferedReader ( UTF8 . fileReader ( filePath ) ) ; try { while ( _BOOL ) { String s = in . readLine ( ) ; if ( s == null ) { break ; } project . addAuxClasspathEntry ( s ) ; } } finally { Util . closeSilently ( in ...
87
java-test-7299
java
What do we use otherwise ?
c2 algorithm described in ` ` methods for modifying matrix factorizations
protected void update Cholesky Factor ( Matrix L , double [ ] D , double [ ] v , double coeff , boolean [ ] is Fixed ) throws Exception { double t , p , b ; int n = v . length ; double [ ] vp = new double [ n ] ; for ( int i = NUM ; i < v . length ; i ++ ) { if ( ! is Fixed [ i ] ) { vp [ i ] = v [ i ] ; } else { vp [ ...
protected void updateCholeskyFactor ( Matrix L , double [ ] D , double [ ] v , double coeff , boolean [ ] isFixed ) throws Exception { double t , p , b ; int n = v . length ; double [ ] vp = new double [ n ] ; for ( int i = _NUM ; i < v . length ; i ++ ) { if ( ! isFixed [ i ] ) { vp [ i ] = v [ i ] ; } else { vp [ i ]...
775
java-test-7300
java
Where is this method used when the server side distributed system is cycled ?
on a client
public void clear ( ) { if ( distributed Type Registry . is Client ( ) ) { id To Type . clear ( ) ; type To Id . clear ( ) ; local Type Ids . clear ( ) ; local Type Id Maps . clear ( ) ; unread Data Map . clear ( ) ; id To Enum . clear ( ) ; enum Info To Id . clear ( ) ; local Enum Ids . clear ( ) ; Auto Serializable M...
public void clear ( ) { if ( distributedTypeRegistry . isClient ( ) ) { idToType . clear ( ) ; typeToId . clear ( ) ; localTypeIds . clear ( ) ; localTypeIdMaps . clear ( ) ; unreadDataMap . clear ( ) ; idToEnum . clear ( ) ; enumInfoToId . clear ( ) ; localEnumIds . clear ( ) ; AutoSerializableManager autoSerializer =...
117
java-test-7301
java
When is this method used on a client ?
when the server side distributed system is cycled
public void clear ( ) { if ( distributed Type Registry . is Client ( ) ) { id To Type . clear ( ) ; type To Id . clear ( ) ; local Type Ids . clear ( ) ; local Type Id Maps . clear ( ) ; unread Data Map . clear ( ) ; id To Enum . clear ( ) ; enum Info To Id . clear ( ) ; local Enum Ids . clear ( ) ; Auto Serializable M...
public void clear ( ) { if ( distributedTypeRegistry . isClient ( ) ) { idToType . clear ( ) ; typeToId . clear ( ) ; localTypeIds . clear ( ) ; localTypeIdMaps . clear ( ) ; unreadDataMap . clear ( ) ; idToEnum . clear ( ) ; enumInfoToId . clear ( ) ; localEnumIds . clear ( ) ; AutoSerializableManager autoSerializer =...
117
java-test-7303
java
What does the code generate ?
the source for a web . xml file with placeholders for the servlet , servlet - mapping , and welcome - file - list tags
public static String create Web Xml Source ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; s...
public static String createWebXmlSource ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . a...
99
java-test-7304
java
What does the code get ?
a methods implementation with a calendar for date and time base tests set to a hardcoded data
private Pac Script Methods build Parser ( ) { Pac Script Methods result = new Pac Script Methods ( ) ; Calendar cal = Calendar . get Instance ( ) ; cal . set ( Calendar . YEAR , NUM ) ; cal . set ( Calendar . MONTH , Calendar . DECEMBER ) ; cal . set ( Calendar . DAY OF MONTH , NUM ) ; cal . set ( Calendar . HOUR OF DA...
private PacScriptMethods buildParser ( ) { PacScriptMethods result = new PacScriptMethods ( ) ; Calendar cal = Calendar . getInstance ( ) ; cal . set ( Calendar . YEAR , _NUM ) ; cal . set ( Calendar . MONTH , Calendar . DECEMBER ) ; cal . set ( Calendar . DAY_OF_MONTH , _NUM ) ; cal . set ( Calendar . HOUR_OF_DAY , _N...
127
java-test-7307
java
What did the code read ?
serialized record
public static Text Annotation deserialize Text Annotation From File ( String file Name ) throws IO Exception { File file = new File ( file Name ) ; if ( ! file . exists ( ) ) throw new IO Exception ( STRING + NAME + STRING + file Name + STRING ) ; return deserialize Text Annotation From Bytes ( File Utils . read File T...
public static TextAnnotation deserializeTextAnnotationFromFile ( String fileName ) throws IOException { File file = new File ( fileName ) ; if ( ! file . exists ( ) ) throw new IOException ( STRING + NAME + STRING + fileName + STRING ) ; return deserializeTextAnnotationFromBytes ( FileUtils . readFileToByteArray ( file...
75
java-test-7308
java
What does the code update based on whether the text component is editable and / or enabled ?
the background of the text component
private void update Background ( J Text Component c ) { if ( this instanceof Synth UI || ( c instanceof J Text Area ) ) { return ; } Color background = c . get Background ( ) ; if ( background instanceof UI Resource ) { String prefix = get Property Prefix ( ) ; Color disabled BG = Default Lookup . get Color ( c , this ...
private void updateBackground ( JTextComponent c ) { if ( this instanceof SynthUI || ( c instanceof JTextArea ) ) { return ; } Color background = c . getBackground ( ) ; if ( background instanceof UIResource ) { String prefix = getPropertyPrefix ( ) ; Color disabledBG = DefaultLookup . getColor ( c , this , prefix + ST...
239
java-test-7310
java
What does the code read ?
the version of the visum file
public void read Network Parameters ( final int [ ] columns Indices , final Buffered Reader reader ) throws IO Exception { String line = reader . read Line ( ) ; while ( line != null && line . length ( ) > NUM ) { line = reader . read Line ( ) ; } }
public void readNetworkParameters ( final int [ ] columnsIndices , final BufferedReader reader ) throws IOException { String line = reader . readLine ( ) ; while ( line != null && line . length ( ) > _NUM ) { line = reader . readLine ( ) ; } }
58
java-test-7318
java
When does the code run the specified runnable ?
when a ' rail ' completes or signals an error
public final Parallel Flux < T > do After Terminate ( Runnable after Terminate ) { Objects . require Non Null ( after Terminate , STRING ) ; return do On Signal ( this , null , null , null , null , after Terminate , null , null , null ) ; }
public final ParallelFlux < T > doAfterTerminate ( Runnable afterTerminate ) { Objects . requireNonNull ( afterTerminate , STRING ) ; return doOnSignal ( this , null , null , null , null , afterTerminate , null , null , null ) ; }
54
java-test-7319
java
How does the code add a highlight for the given channel with the given comment ?
thread - saftey
public String add Highlight ( String channel , String comment ) { if ( channel == null || channel . is Empty ( ) || ! Helper . is Regular Channel ( channel ) ) { return STRING ; } Stream Info stream Info = api . get Stream Info ( Helper . to Stream ( channel ) , null ) ; String stream Time = STRING ; if ( stream Info ....
public String addHighlight ( String channel , String comment ) { if ( channel == null || channel . isEmpty ( ) || ! Helper . isRegularChannel ( channel ) ) { return STRING ; } StreamInfo streamInfo = api . getStreamInfo ( Helper . toStream ( channel ) , null ) ; String streamTime = STRING ; if ( streamInfo . isValid ( ...
260
java-test-7320
java
What does the code handle ?
the processing of an infix operand to postfix
private void handle Operand ( String tok ) throws Exception { if ( tok . index Of ( STRING ) != - NUM ) { m post Fix Exp Vector . add Element ( new Attribute Operand ( tok , m sign Mod ) ) ; } else { try { m post Fix Exp Vector . add Element ( new Numeric Operand ( tok , m sign Mod ) ) ; } catch ( Number Format Excepti...
private void handleOperand ( String tok ) throws Exception { if ( tok . indexOf ( STRING ) != - _NUM ) { m_postFixExpVector . addElement ( new AttributeOperand ( tok , m_signMod ) ) ; } else { try { m_postFixExpVector . addElement ( new NumericOperand ( tok , m_signMod ) ) ; } catch ( NumberFormatException ne ) { throw...
97
java-test-7325
java
What do a swagger2markupconverter . builder use ?
a local path
public static Builder from ( Path swagger Path ) { Validate . not Null ( swagger Path , STRING ) ; if ( Files . not Exists ( swagger Path ) ) { throw new Illegal Argument Exception ( String . format ( STRING , swagger Path ) ) ; } try { if ( Files . is Hidden ( swagger Path ) ) { throw new Illegal Argument Exception ( ...
public static Builder from ( Path swaggerPath ) { Validate . notNull ( swaggerPath , STRING ) ; if ( Files . notExists ( swaggerPath ) ) { throw new IllegalArgumentException ( String . format ( STRING , swaggerPath ) ) ; } try { if ( Files . isHidden ( swaggerPath ) ) { throw new IllegalArgumentException ( STRING ) ; }...
103
java-test-7326
java
What does the code create ?
a swagger2markupconverter . builder using a local path
public static Builder from ( Path swagger Path ) { Validate . not Null ( swagger Path , STRING ) ; if ( Files . not Exists ( swagger Path ) ) { throw new Illegal Argument Exception ( String . format ( STRING , swagger Path ) ) ; } try { if ( Files . is Hidden ( swagger Path ) ) { throw new Illegal Argument Exception ( ...
public static Builder from ( Path swaggerPath ) { Validate . notNull ( swaggerPath , STRING ) ; if ( Files . notExists ( swaggerPath ) ) { throw new IllegalArgumentException ( String . format ( STRING , swaggerPath ) ) ; } try { if ( Files . isHidden ( swaggerPath ) ) { throw new IllegalArgumentException ( STRING ) ; }...
103
java-test-7329
java
What is stored under ?
all imported content
public static Uri resize And Import Image ( Context context , String session Id , Uri uri , String mime Type ) throws IO Exception { String image Path = uri . get Path ( ) ; String target Path = STRING + session Id + STRING + image Path ; target Path = create Unique Filename ( target Path ) ; int default Image Width = ...
public static Uri resizeAndImportImage ( Context context , String sessionId , Uri uri , String mimeType ) throws IOException { String imagePath = uri . getPath ( ) ; String targetPath = STRING + sessionId + STRING + imagePath ; targetPath = createUniqueFilename ( targetPath ) ; int defaultImageWidth = _NUM ; Bitmap bmp...
194
java-test-7330
java
For what purpose is the original full path retained ?
to facilitate browsing the session content
public static Uri resize And Import Image ( Context context , String session Id , Uri uri , String mime Type ) throws IO Exception { String image Path = uri . get Path ( ) ; String target Path = STRING + session Id + STRING + image Path ; target Path = create Unique Filename ( target Path ) ; int default Image Width = ...
public static Uri resizeAndImportImage ( Context context , String sessionId , Uri uri , String mimeType ) throws IOException { String imagePath = uri . getPath ( ) ; String targetPath = STRING + sessionId + STRING + imagePath ; targetPath = createUniqueFilename ( targetPath ) ; int defaultImageWidth = _NUM ; Bitmap bmp...
194
java-test-7331
java
When can the session content be is deleted ?
when the session is over
public static Uri resize And Import Image ( Context context , String session Id , Uri uri , String mime Type ) throws IO Exception { String image Path = uri . get Path ( ) ; String target Path = STRING + session Id + STRING + image Path ; target Path = create Unique Filename ( target Path ) ; int default Image Width = ...
public static Uri resizeAndImportImage ( Context context , String sessionId , Uri uri , String mimeType ) throws IOException { String imagePath = uri . getPath ( ) ; String targetPath = STRING + sessionId + STRING + imagePath ; targetPath = createUniqueFilename ( targetPath ) ; int defaultImageWidth = _NUM ; Bitmap bmp...
194
java-test-7332
java
For what purpose does the code resize an image to an efficient size ?
for sending via otrdata
public static Uri resize And Import Image ( Context context , String session Id , Uri uri , String mime Type ) throws IO Exception { String image Path = uri . get Path ( ) ; String target Path = STRING + session Id + STRING + image Path ; target Path = create Unique Filename ( target Path ) ; int default Image Width = ...
public static Uri resizeAndImportImage ( Context context , String sessionId , Uri uri , String mimeType ) throws IOException { String imagePath = uri . getPath ( ) ; String targetPath = STRING + sessionId + STRING + imagePath ; targetPath = createUniqueFilename ( targetPath ) ; int defaultImageWidth = _NUM ; Bitmap bmp...
194
java-test-7333
java
What does the code create ?
a mock power panel with the specified number of channels
public Mock Power Panel ( int num Channels ) { channels = new Array List < > ( num Channels ) ; for ( int i = NUM ; i != num Channels ; ++ i ) { channels . add ( new Mock Current Sensor ( ) ) ; } }
public MockPowerPanel ( int numChannels ) { channels = new ArrayList < > ( numChannels ) ; for ( int i = _NUM ; i != numChannels ; ++ i ) { channels . add ( new MockCurrentSensor ( ) ) ; } }
52
java-test-7334
java
What does the code find ?
line number associated with an instruction
public static Line Number Node find Line Number For Instruction ( Insn List insn List , Abstract Insn Node insn Node ) { Validate . not Null ( insn List ) ; Validate . not Null ( insn Node ) ; int idx = insn List . index Of ( insn Node ) ; Validate . is True ( idx != - NUM ) ; List Iterator < Abstract Insn Node > insn ...
public static LineNumberNode findLineNumberForInstruction ( InsnList insnList , AbstractInsnNode insnNode ) { Validate . notNull ( insnList ) ; Validate . notNull ( insnNode ) ; int idx = insnList . indexOf ( insnNode ) ; Validate . isTrue ( idx != - _NUM ) ; ListIterator < AbstractInsnNode > insnIt = insnList . iterat...
129
java-test-7335
java
What adds user ' s query into query history file ?
addqueryinhistory method
public boolean add Query In History ( String query Text , String user Id ) { boolean operation Status = BOOL ; if ( String Utils . is Not Null Not Empty Not White Space ( query Text ) && String Utils . is Not Null Not Empty Not White Space ( user Id ) ) { Object Node queries = fetch All Queries From File ( ) ; Object N...
public boolean addQueryInHistory ( String queryText , String userId ) { boolean operationStatus = _BOOL ; if ( StringUtils . isNotNullNotEmptyNotWhiteSpace ( queryText ) && StringUtils . isNotNullNotEmptyNotWhiteSpace ( userId ) ) { ObjectNode queries = fetchAllQueriesFromFile ( ) ; ObjectNode userQueries = ( ObjectNod...
157
java-test-7336
java
What does addqueryinhistory method add into query history file ?
user ' s query
public boolean add Query In History ( String query Text , String user Id ) { boolean operation Status = BOOL ; if ( String Utils . is Not Null Not Empty Not White Space ( query Text ) && String Utils . is Not Null Not Empty Not White Space ( user Id ) ) { Object Node queries = fetch All Queries From File ( ) ; Object N...
public boolean addQueryInHistory ( String queryText , String userId ) { boolean operationStatus = _BOOL ; if ( StringUtils . isNotNullNotEmptyNotWhiteSpace ( queryText ) && StringUtils . isNotNullNotEmptyNotWhiteSpace ( userId ) ) { ObjectNode queries = fetchAllQueriesFromFile ( ) ; ObjectNode userQueries = ( ObjectNod...
157
java-test-7338
java
What does the code create ?
a bubblewindow - object . to paint and repaint this bubblewindow call paint ( boolean refreshlisterns )
public Bubble Window ( final Window owner , final Aligned Side preferred Alignment , final String i18 n Key , final String doc Key , final J Component [ ] components To Add , final Object ... arguments ) { this ( owner , Bubble Style . COMIC , preferred Alignment , i18 n Key , doc Key , null , null , BOOL , BOOL , comp...
public BubbleWindow ( final Window owner , final AlignedSide preferredAlignment , final String i18nKey , final String docKey , final JComponent [ ] componentsToAdd , final Object ... arguments ) { this ( owner , BubbleStyle . COMIC , preferredAlignment , i18nKey , docKey , null , null , _BOOL , _BOOL , componentsToAdd ...
75
java-test-7339
java
What does this method create ?
container schema . configuration file with default definitions
public static File create Container Schema File ( String schema Prefix File Name , String container Schema File Path ) throws Remote Exception { File default Schema File = null ; try { String schema File Path = Constants . Container . CONTAINER CONFIG DIRECTORY + STRING + Constants . Schemas . SCHEMAS FOLDER + STRING +...
public static File createContainerSchemaFile ( String schemaPrefixFileName , String containerSchemaFilePath ) throws RemoteException { File defaultSchemaFile = null ; try { String schemaFilePath = Constants . Container . CONTAINER_CONFIG_DIRECTORY + STRING + Constants . Schemas . SCHEMAS_FOLDER + STRING + Constants . S...
358
java-test-7340
java
For what purpose does subclassof transitivity follow subclassof chains ?
to compute all the ancestor classes
boolean compute Super Classes ( ) { Set < Owl Class > ancestors = new Hash Set < Owl Class > ( ) ; Set < Owl Class > frontier = new Hash Set < Owl Class > ( super Classes ) ; while ( ! frontier . is Empty ( ) ) { Set < Owl Class > next = new Hash Set < Owl Class > ( ) ; for ( Owl Class ancestor : frontier ) { ancestors...
boolean computeSuperClasses ( ) { Set < OwlClass > ancestors = new HashSet < OwlClass > ( ) ; Set < OwlClass > frontier = new HashSet < OwlClass > ( superClasses ) ; while ( ! frontier . isEmpty ( ) ) { Set < OwlClass > next = new HashSet < OwlClass > ( ) ; for ( OwlClass ancestor : frontier ) { ancestors . add ( ances...
135
java-test-7341
java
What does subclassof transitivity follow to compute all the ancestor classes ?
subclassof chains
boolean compute Super Classes ( ) { Set < Owl Class > ancestors = new Hash Set < Owl Class > ( ) ; Set < Owl Class > frontier = new Hash Set < Owl Class > ( super Classes ) ; while ( ! frontier . is Empty ( ) ) { Set < Owl Class > next = new Hash Set < Owl Class > ( ) ; for ( Owl Class ancestor : frontier ) { ancestors...
boolean computeSuperClasses ( ) { Set < OwlClass > ancestors = new HashSet < OwlClass > ( ) ; Set < OwlClass > frontier = new HashSet < OwlClass > ( superClasses ) ; while ( ! frontier . isEmpty ( ) ) { Set < OwlClass > next = new HashSet < OwlClass > ( ) ; for ( OwlClass ancestor : frontier ) { ancestors . add ( ances...
135
java-test-7342
java
What does the code add to an organization ?
an idrepo plugin
private void add Id Repo ( String org Name , String name ) throws Id Repo Exception , SSO Exception { if ( debug . message Enabled ( ) ) { debug . message ( STRING + org Name + STRING + name ) ; } Map config Map = null ; try { Service Config sc = id Repo Service Config Manager . get Organization Config ( org Name , nul...
private void addIdRepo ( String orgName , String name ) throws IdRepoException , SSOException { if ( debug . messageEnabled ( ) ) { debug . message ( STRING + orgName + STRING + name ) ; } Map configMap = null ; try { ServiceConfig sc = idRepoServiceConfigManager . getOrganizationConfig ( orgName , null ) ; if ( sc == ...
382
java-test-7343
java
What was not removed cases ?
the initial register label
private void compute Closure ( ) { for ( Enumeration < Graph Node > e = enumerate Vertices ( ) ; e . has More Elements ( ) ; ) { Value Graph Vertex v = ( Value Graph Vertex ) e . next Element ( ) ; if ( v . get Name ( ) instanceof Register ) { if ( v . get Label ( ) instanceof Register ) { if ( v . get Name ( ) != v . ...
private void computeClosure ( ) { for ( Enumeration < GraphNode > e = enumerateVertices ( ) ; e . hasMoreElements ( ) ; ) { ValueGraphVertex v = ( ValueGraphVertex ) e . nextElement ( ) ; if ( v . getName ( ) instanceof Register ) { if ( v . getLabel ( ) instanceof Register ) { if ( v . getName ( ) != v . getLabel ( ) ...
173
java-test-7344
java
Why be the initial label for a register be another register . fix up the value graph for cases where the initial register label was not removed ?
due to pi nodes and moves
private void compute Closure ( ) { for ( Enumeration < Graph Node > e = enumerate Vertices ( ) ; e . has More Elements ( ) ; ) { Value Graph Vertex v = ( Value Graph Vertex ) e . next Element ( ) ; if ( v . get Name ( ) instanceof Register ) { if ( v . get Label ( ) instanceof Register ) { if ( v . get Name ( ) != v . ...
private void computeClosure ( ) { for ( Enumeration < GraphNode > e = enumerateVertices ( ) ; e . hasMoreElements ( ) ; ) { ValueGraphVertex v = ( ValueGraphVertex ) e . nextElement ( ) ; if ( v . getName ( ) instanceof Register ) { if ( v . getLabel ( ) instanceof Register ) { if ( v . getName ( ) != v . getLabel ( ) ...
173
java-test-7347
java
How will the settingsmanager execute when any sharedpreference has been updated ?
onsettingschanged
public void add Listener ( final On Setting Changed Listener listener ) { synchronized ( m Lock ) { if ( listener == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( m Listeners . contains ( listener ) ) { return ; } m Listeners . add ( listener ) ; On Shared Preference Change Listener shared Preferenc...
public void addListener ( final OnSettingChangedListener listener ) { synchronized ( mLock ) { if ( listener == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( mListeners . contains ( listener ) ) { return ; } mListeners . add ( listener ) ; OnSharedPreferenceChangeListener sharedPreferenceListener = ge...
143
java-test-7348
java
What does the code add to the settingsmanager , which will execute onsettingschanged when any sharedpreference has been updated ?
an onsettingchangedlistener
public void add Listener ( final On Setting Changed Listener listener ) { synchronized ( m Lock ) { if ( listener == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( m Listeners . contains ( listener ) ) { return ; } m Listeners . add ( listener ) ; On Shared Preference Change Listener shared Preferenc...
public void addListener ( final OnSettingChangedListener listener ) { synchronized ( mLock ) { if ( listener == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( mListeners . contains ( listener ) ) { return ; } mListeners . add ( listener ) ; OnSharedPreferenceChangeListener sharedPreferenceListener = ge...
143
java-test-7349
java
What does the code find ?
the smallest element in the sorted array that is larger than or equal to x
private int find Upper ( T x , int from , int to ) { int len = to - from + NUM , half ; while ( len > NUM ) { half = len / NUM ; int m = from + half ; if ( comp . compare ( data [ m ] , x ) <= NUM ) { from = m + NUM ; len = len - half - NUM ; } else { len = half ; } } return from ; }
private int findUpper ( T x , int from , int to ) { int len = to - from + _NUM , half ; while ( len > _NUM ) { half = len / _NUM ; int m = from + half ; if ( comp . compare ( data [ m ] , x ) <= _NUM ) { from = m + _NUM ; len = len - half - _NUM ; } else { len = half ; } } return from ; }
90
java-test-7352
java
What did the code set ?
the authorize token for future requests for " basic " authentication
@ Override public void process Authorize ( Web Socket Channel channel , String authorize Token ) { LOG . entering ( CLASS NAME , STRING ) ; Web Socket Native Channel native Channel = ( Web Socket Native Channel ) channel ; Proxy proxy = native Channel . get Proxy ( ) ; proxy . process Event ( Xoa Event Kind . AUTHORIZE...
@ Override public void processAuthorize ( WebSocketChannel channel , String authorizeToken ) { LOG . entering ( CLASS_NAME , STRING ) ; WebSocketNativeChannel nativeChannel = ( WebSocketNativeChannel ) channel ; Proxy proxy = nativeChannel . getProxy ( ) ; proxy . processEvent ( XoaEventKind . AUTHORIZE , new String [ ...
75
java-test-7353
java
What notifys the component listener when the component is hidden ?
a layer hack
public void notify Hide Hack ( ) { if ( local Hack List == null ) { return ; } Component Event ce = new Component Event ( this , Component Event . COMPONENT HIDDEN ) ; for ( Component Listener listener : local Hack List ) { listener . component Hidden ( ce ) ; } }
public void notifyHideHack ( ) { if ( localHackList == null ) { return ; } ComponentEvent ce = new ComponentEvent ( this , ComponentEvent . COMPONENT_HIDDEN ) ; for ( ComponentListener listener : localHackList ) { listener . componentHidden ( ce ) ; } }
58
java-test-7354
java
What do these components receive ?
the componenthidden notification
public void notify Hide Hack ( ) { if ( local Hack List == null ) { return ; } Component Event ce = new Component Event ( this , Component Event . COMPONENT HIDDEN ) ; for ( Component Listener listener : local Hack List ) { listener . component Hidden ( ce ) ; } }
public void notifyHideHack ( ) { if ( localHackList == null ) { return ; } ComponentEvent ce = new ComponentEvent ( this , ComponentEvent . COMPONENT_HIDDEN ) ; for ( ComponentListener listener : localHackList ) { listener . componentHidden ( ce ) ; } }
58
java-test-7355
java
When do a layer hack notify the component listener ?
when the component is hidden
public void notify Hide Hack ( ) { if ( local Hack List == null ) { return ; } Component Event ce = new Component Event ( this , Component Event . COMPONENT HIDDEN ) ; for ( Component Listener listener : local Hack List ) { listener . component Hidden ( ce ) ; } }
public void notifyHideHack ( ) { if ( localHackList == null ) { return ; } ComponentEvent ce = new ComponentEvent ( this , ComponentEvent . COMPONENT_HIDDEN ) ; for ( ComponentListener listener : localHackList ) { listener . componentHidden ( ce ) ; } }
58
java-test-7356
java
What do a layer hack notify when the component is hidden ?
the component listener
public void notify Hide Hack ( ) { if ( local Hack List == null ) { return ; } Component Event ce = new Component Event ( this , Component Event . COMPONENT HIDDEN ) ; for ( Component Listener listener : local Hack List ) { listener . component Hidden ( ce ) ; } }
public void notifyHideHack ( ) { if ( localHackList == null ) { return ; } ComponentEvent ce = new ComponentEvent ( this , ComponentEvent . COMPONENT_HIDDEN ) ; for ( ComponentListener listener : localHackList ) { listener . componentHidden ( ce ) ; } }
58
java-test-7357
java
What receives the componenthidden notification ?
these components
public void notify Hide Hack ( ) { if ( local Hack List == null ) { return ; } Component Event ce = new Component Event ( this , Component Event . COMPONENT HIDDEN ) ; for ( Component Listener listener : local Hack List ) { listener . component Hidden ( ce ) ; } }
public void notifyHideHack ( ) { if ( localHackList == null ) { return ; } ComponentEvent ce = new ComponentEvent ( this , ComponentEvent . COMPONENT_HIDDEN ) ; for ( ComponentListener listener : localHackList ) { listener . componentHidden ( ce ) ; } }
58
java-test-7358
java
What does an xml node represent ?
attribute - value pairs
public static Map parse Attribute Value Pairs ( Node p Node ) { Node node = null ; Set node Set = XML Utils . get Child Nodes ( p Node , ATTRIBUTE VALUE PAIR ) ; if ( node Set == null ) { debug . error ( STRING + STRING + ATTRIBUTE VALUE PAIR ) ; return null ; } Hash Map attr Value Pairs = new Hash Map ( ) ; Iterator n...
public static Map parseAttributeValuePairs ( Node pNode ) { Node node = null ; Set nodeSet = XMLUtils . getChildNodes ( pNode , ATTRIBUTE_VALUE_PAIR ) ; if ( nodeSet == null ) { debug . error ( STRING + STRING + ATTRIBUTE_VALUE_PAIR ) ; return null ; } HashMap attrValuePairs = new HashMap ( ) ; Iterator nodes = nodeSet...
186
java-test-7359
java
What does an xml node return ?
a map of such values
public static Map parse Attribute Value Pairs ( Node p Node ) { Node node = null ; Set node Set = XML Utils . get Child Nodes ( p Node , ATTRIBUTE VALUE PAIR ) ; if ( node Set == null ) { debug . error ( STRING + STRING + ATTRIBUTE VALUE PAIR ) ; return null ; } Hash Map attr Value Pairs = new Hash Map ( ) ; Iterator n...
public static Map parseAttributeValuePairs ( Node pNode ) { Node node = null ; Set nodeSet = XMLUtils . getChildNodes ( pNode , ATTRIBUTE_VALUE_PAIR ) ; if ( nodeSet == null ) { debug . error ( STRING + STRING + ATTRIBUTE_VALUE_PAIR ) ; return null ; } HashMap attrValuePairs = new HashMap ( ) ; Iterator nodes = nodeSet...
186
java-test-7362
java
When does all selected nodes of the graph show ?
while hiding all other nodes
private void show Selected Nodes ( ) { final Set < Navi Node > selected Nodes = m graph . get Selected Nodes ( ) ; final List < Navi Node > all Nodes = Graph Helpers . get Nodes ( m graph ) ; all Nodes . remove All ( selected Nodes ) ; show Nodes ( selected Nodes , all Nodes ) ; }
private void showSelectedNodes ( ) { final Set < NaviNode > selectedNodes = m_graph . getSelectedNodes ( ) ; final List < NaviNode > allNodes = GraphHelpers . getNodes ( m_graph ) ; allNodes . removeAll ( selectedNodes ) ; showNodes ( selectedNodes , allNodes ) ; }
66
java-test-7363
java
What is stored in the tag vector ?
each tag
protected void close Out Unwanted Embedded Tags ( Attribute Set attr ) throws IO Exception { tags To Remove . remove All Elements ( ) ; attr = convert To HTML ( attr , null ) ; HTML . Tag t ; Object t Value ; int first Index = - NUM ; int size = tags . size ( ) ; for ( int i = size - NUM ; i >= NUM ; i -- ) { t = tags ...
protected void closeOutUnwantedEmbeddedTags ( AttributeSet attr ) throws IOException { tagsToRemove . removeAllElements ( ) ; attr = convertToHTML ( attr , null ) ; HTML . Tag t ; Object tValue ; int firstIndex = - _NUM ; int size = tags . size ( ) ; for ( int i = size - _NUM ; i >= _NUM ; i -- ) { t = tags . elementAt...
353
java-test-7364
java
Where is each tag stored ?
in the tag vector
protected void close Out Unwanted Embedded Tags ( Attribute Set attr ) throws IO Exception { tags To Remove . remove All Elements ( ) ; attr = convert To HTML ( attr , null ) ; HTML . Tag t ; Object t Value ; int first Index = - NUM ; int size = tags . size ( ) ; for ( int i = size - NUM ; i >= NUM ; i -- ) { t = tags ...
protected void closeOutUnwantedEmbeddedTags ( AttributeSet attr ) throws IOException { tagsToRemove . removeAllElements ( ) ; attr = convertToHTML ( attr , null ) ; HTML . Tag t ; Object tValue ; int firstIndex = - _NUM ; int size = tags . size ( ) ; for ( int i = size - _NUM ; i >= _NUM ; i -- ) { t = tags . elementAt...
353
java-test-7365
java
What does the code in this method recognize only ?
statements that directly have a described resource as a subject or object
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7366
java
What do statements have directly ?
a described resource
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7367
java
What will allow us to navigate from a bigdatavalue ( or perhaps just a bigdatabnode ) to all described resources for which that value was observed ?
a reverse map
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7368
java
Why might that map need to contain the blank nodes only ?
since the description can never expand beyond a statement having a blank node in the subject ( or object ) position and a non - blank node in the object ( or subject ) position
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7369
java
What recognizes statements that directly have a described resource as a subject or object only ?
the code in this method
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7370
java
For what purpose is this necessary ?
in order to capture the transitive closure of the resource description specified by cbd
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7371
java
What might that map need only since the description can never expand beyond a statement having a blank node in the subject ( or object ) position and a non - blank node in the object ( or subject ) position ?
to contain the blank nodes
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7372
java
What do we need probably ?
a reverse map that will allow us to navigate from a bigdatavalue ( or perhaps just a bigdatabnode ) to all described resources for which that value was observed . that map might only need to contain the blank nodes since the description can never expand beyond a statement having a blank node in the subject ( or object ...
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7373
java
What do a statement have ?
a blank node in the subject ( or object ) position
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7374
java
What do we recognize ?
statements that describe blank nodes that are part of the description of a described resource as belonging to that described resource
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7375
java
What will a reverse map allow ?
us to navigate from a bigdatavalue ( or perhaps just a bigdatabnode ) to all described resources for which that value was observed
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7376
java
What do statements describe ?
blank nodes that are part of the description of a described resource as belonging to that described resource
@ Override public Bigdata Statement next ( ) throws Query Evaluation Exception { final Bigdata Statement stmt = src . next ( ) ; { final Bigdata Value s = stmt . get Subject ( ) ; if ( described Resources . contains ( s ) ) { record ( s , stmt ) ; } } { final Bigdata Value o = stmt . get Object ( ) ; if ( described Res...
@ Override public BigdataStatement next ( ) throws QueryEvaluationException { final BigdataStatement stmt = src . next ( ) ; { final BigdataValue s = stmt . getSubject ( ) ; if ( describedResources . contains ( s ) ) { record ( s , stmt ) ; } } { final BigdataValue o = stmt . getObject ( ) ; if ( describedResources . c...
94
java-test-7378
java
What does the code transform ?
the html string
public String transform ( String html , URL url , boolean set Base Tag ) throws Page Exception { String Buffer target = new String Buffer ( ) ; Source Code cfml = new Source Code ( html , BOOL , CFML Engine . DIALECT CFML ) ; while ( ! cfml . is After Last ( ) ) { if ( cfml . forward If Current ( STRING ) ) { target . ...
public String transform ( String html , URL url , boolean setBaseTag ) throws PageException { StringBuffer target = new StringBuffer ( ) ; SourceCode cfml = new SourceCode ( html , _BOOL , CFMLEngine . DIALECT_CFML ) ; while ( ! cfml . isAfterLast ( ) ) { if ( cfml . forwardIfCurrent ( STRING ) ) { target . append ( ST...
387
java-test-7379
java
When is the page not is alive ?
at the timeout
private static boolean wait Till Page Alive ( String url , int timeout Secs ) throws IO Exception { int tries = NUM ; int secs Between Tries = NUM ; while ( BOOL ) { boolean alive = is URL Alive ( url ) ; tries ++ ; if ( alive ) break ; out . println ( STRING + tries + STRING ) ; try { Thread . sleep ( secs Between Tri...
private static boolean waitTillPageAlive ( String url , int timeoutSecs ) throws IOException { int tries = _NUM ; int secsBetweenTries = _NUM ; while ( _BOOL ) { boolean alive = isURLAlive ( url ) ; tries ++ ; if ( alive ) break ; out . println ( STRING + tries + STRING ) ; try { Thread . sleep ( secsBetweenTries * _NU...
131
java-test-7381
java
How does the code get the reference to the module from the settings file if present ?
with new name
@ Nullable public Gr Literal find Module Reference ( @ Not Null Module module ) { check Initialized ( ) ; String module Gradle Path = get Module Gradle Path ( module ) ; if ( module Gradle Path != null ) { commit Document Changes ( ) ; for ( Gr Method Call include Statement : get Method Calls ( my Groovy File , INCLUDE...
@ Nullable public GrLiteral findModuleReference ( @ NotNull Module module ) { checkInitialized ( ) ; String moduleGradlePath = getModuleGradlePath ( module ) ; if ( moduleGradlePath != null ) { commitDocumentChanges ( ) ; for ( GrMethodCall includeStatement : getMethodCalls ( myGroovyFile , INCLUDE_METHOD ) ) { for ( G...
113
java-test-7382
java
What does the code get if present with new name ?
the reference to the module from the settings file
@ Nullable public Gr Literal find Module Reference ( @ Not Null Module module ) { check Initialized ( ) ; String module Gradle Path = get Module Gradle Path ( module ) ; if ( module Gradle Path != null ) { commit Document Changes ( ) ; for ( Gr Method Call include Statement : get Method Calls ( my Groovy File , INCLUDE...
@ Nullable public GrLiteral findModuleReference ( @ NotNull Module module ) { checkInitialized ( ) ; String moduleGradlePath = getModuleGradlePath ( module ) ; if ( moduleGradlePath != null ) { commitDocumentChanges ( ) ; for ( GrMethodCall includeStatement : getMethodCalls ( myGroovyFile , INCLUDE_METHOD ) ) { for ( G...
113
java-test-7383
java
What does a keychange object do ?
the actual work of changing the name - to - key mapping
public Key Change ( String new Key Data , DSA Public Key change Key , boolean allows Unsigned Changes , boolean allows Public Visibility , byte [ ] msg , byte [ ] sig , long epoch , long counter ) { this . new Key Data = new Key Data ; this . new Change Key = change Key ; this . allows Unsigned Changes = allows Unsigne...
public KeyChange ( String newKeyData , DSAPublicKey changeKey , boolean allowsUnsignedChanges , boolean allowsPublicVisibility , byte [ ] msg , byte [ ] sig , long epoch , long counter ) { this . newKeyData = newKeyData ; this . newChangeKey = changeKey ; this . allowsUnsignedChanges = allowsUnsignedChanges ; this . al...
155
java-test-7384
java
What does the actual work of changing the name - to - key mapping ?
a keychange object
public Key Change ( String new Key Data , DSA Public Key change Key , boolean allows Unsigned Changes , boolean allows Public Visibility , byte [ ] msg , byte [ ] sig , long epoch , long counter ) { this . new Key Data = new Key Data ; this . new Change Key = change Key ; this . allows Unsigned Changes = allows Unsigne...
public KeyChange ( String newKeyData , DSAPublicKey changeKey , boolean allowsUnsignedChanges , boolean allowsPublicVisibility , byte [ ] msg , byte [ ] sig , long epoch , long counter ) { this . newKeyData = newKeyData ; this . newChangeKey = changeKey ; this . allowsUnsignedChanges = allowsUnsignedChanges ; this . al...
155
java-test-7385
java
Where does the text fit ?
within the bounds of the view
private static void autofit ( Text View view , Text Paint paint , float min Text Size , float max Text Size , int max Lines , float precision ) { if ( max Lines <= NUM || max Lines == Integer . MAX VALUE ) { return ; } int target Width = view . get Width ( ) - view . get Padding Left ( ) - view . get Padding Right ( ) ...
private static void autofit ( TextView view , TextPaint paint , float minTextSize , float maxTextSize , int maxLines , float precision ) { if ( maxLines <= _NUM || maxLines == Integer . MAX_VALUE ) { return ; } int targetWidth = view . getWidth ( ) - view . getPaddingLeft ( ) - view . getPaddingRight ( ) ; if ( targetW...
332
java-test-7388
java
For what purpose does xml file parse ?
to gather data
private void parse File ( File xml ) throws IO Exception , XML Stream Exception , SAX Exception { if ( xml == null ) { throw new Illegal Argument Exception ( STRING ) ; } else if ( ! xml . exists ( ) ) { throw new IO Exception ( STRING ) ; } file = xml ; Project Xml Parser parser = new Project Xml Parser ( file , this ...
private void parseFile ( File xml ) throws IOException , XMLStreamException , SAXException { if ( xml == null ) { throw new IllegalArgumentException ( STRING ) ; } else if ( ! xml . exists ( ) ) { throw new IOException ( STRING ) ; } file = xml ; ProjectXmlParser parser = new ProjectXmlParser ( file , this ) ; parser ....
82
java-test-7394
java
For what purpose do the ports ' implicit ( connected ) varray associations update ?
for a list of storage ports in a network
public static void update Port Associations ( Network Lite network , List < Storage Port > ports , Db Client db Client ) { Set < String > varray Set = new Hash Set < String > ( network . get Assigned Virtual Arrays ( ) ) ; for ( Storage Port port : ports ) { port . set Network ( network . get Id ( ) ) ; port . replace ...
public static void updatePortAssociations ( NetworkLite network , List < StoragePort > ports , DbClient dbClient ) { Set < String > varraySet = new HashSet < String > ( network . getAssignedVirtualArrays ( ) ) ; for ( StoragePort port : ports ) { port . setNetwork ( network . getId ( ) ) ; port . replaceConnectedVirtua...
113
java-test-7395
java
What writes into current section ?
protoid item
public int write Proto Id ( Proto Id proto Id ) { int off = data . position ( ) ; write Int ( proto Id . shorty Index ) ; write Int ( proto Id . return Type Index ) ; write Int ( proto Id . parameters Offset ) ; return off ; }
public int writeProtoId ( ProtoId protoId ) { int off = data . position ( ) ; writeInt ( protoId . shortyIndex ) ; writeInt ( protoId . returnTypeIndex ) ; writeInt ( protoId . parametersOffset ) ; return off ; }
56
java-test-7398
java
What does the code compute ?
the regularized incomplete beta function i_x ( a , b ) which is also the cdf of the beta distribution
public static double regularized Inc Beta ( double x , double alpha , double beta ) { if ( alpha <= NUM || beta <= NUM || Double . is Na N ( alpha ) || Double . is Na N ( beta ) || Double . is Na N ( x ) ) { return Double . Na N ; } if ( x <= NUM ) { return NUM ; } if ( x >= NUM ) { return NUM ; } if ( alpha > SWITCH &...
public static double regularizedIncBeta ( double x , double alpha , double beta ) { if ( alpha <= _NUM || beta <= _NUM || Double . isNaN ( alpha ) || Double . isNaN ( beta ) || Double . isNaN ( x ) ) { return Double . NaN ; } if ( x <= _NUM ) { return _NUM ; } if ( x >= _NUM ) { return _NUM ; } if ( alpha > SWITCH && b...
209
java-test-7399
java
What form a 32b integer , from the stream ?
the next 4 bytes
long read D Word ( ) throws IO Exception { int b0 = m in . read ( ) ; int b1 = m in . read ( ) ; int b2 = m in . read ( ) ; int b3 = m in . read ( ) ; long value = ( ( b3 << NUM ) & NUM ) | ( ( b2 << NUM ) & NUM ) | ( ( b1 << NUM ) & NUM ) | ( b0 & NUM ) ; return value ; }
long readDWord ( ) throws IOException { int b0 = m_in . read ( ) ; int b1 = m_in . read ( ) ; int b2 = m_in . read ( ) ; int b3 = m_in . read ( ) ; long value = ( ( b3 << _NUM ) & _NUM ) | ( ( b2 << _NUM ) & _NUM ) | ( ( b1 << _NUM ) & _NUM ) | ( b0 & _NUM ) ; return value ; }
93
java-test-7400
java
What does the code extract ?
the next 4 bytes , which form a 32b integer , from the stream
long read D Word ( ) throws IO Exception { int b0 = m in . read ( ) ; int b1 = m in . read ( ) ; int b2 = m in . read ( ) ; int b3 = m in . read ( ) ; long value = ( ( b3 << NUM ) & NUM ) | ( ( b2 << NUM ) & NUM ) | ( ( b1 << NUM ) & NUM ) | ( b0 & NUM ) ; return value ; }
long readDWord ( ) throws IOException { int b0 = m_in . read ( ) ; int b1 = m_in . read ( ) ; int b2 = m_in . read ( ) ; int b3 = m_in . read ( ) ; long value = ( ( b3 << _NUM ) & _NUM ) | ( ( b2 << _NUM ) & _NUM ) | ( ( b1 << _NUM ) & _NUM ) | ( b0 & _NUM ) ; return value ; }
93
java-test-7401
java
What do the next 4 bytes form ?
a 32b integer , from the stream
long read D Word ( ) throws IO Exception { int b0 = m in . read ( ) ; int b1 = m in . read ( ) ; int b2 = m in . read ( ) ; int b3 = m in . read ( ) ; long value = ( ( b3 << NUM ) & NUM ) | ( ( b2 << NUM ) & NUM ) | ( ( b1 << NUM ) & NUM ) | ( b0 & NUM ) ; return value ; }
long readDWord ( ) throws IOException { int b0 = m_in . read ( ) ; int b1 = m_in . read ( ) ; int b2 = m_in . read ( ) ; int b3 = m_in . read ( ) ; long value = ( ( b3 << _NUM ) & _NUM ) | ( ( b2 << _NUM ) & _NUM ) | ( ( b1 << _NUM ) & _NUM ) | ( b0 & _NUM ) ; return value ; }
93
java-test-7402
java
How are they returned ?
unordered
@ Suppress Warnings ( STRING ) public List < V > values ( ) { int found = NUM ; Array List < V > result = new Array List < V > ( m size ) ; for ( Osm Element v : m data ) { if ( v != FREE KEY && v != removed Key ) { result . add ( ( V ) v ) ; found ++ ; if ( found >= m size ) { break ; } } } return result ; }
@ SuppressWarnings ( STRING ) public List < V > values ( ) { int found = _NUM ; ArrayList < V > result = new ArrayList < V > ( m_size ) ; for ( OsmElement v : m_data ) { if ( v != FREE_KEY && v != removedKey ) { result . add ( ( V ) v ) ; found ++ ; if ( found >= m_size ) { break ; } } } return result ; }
91
java-test-7403
java
What does this method remove from the queue ?
batchsize entries
public void remove ( int size ) throws Cache Exception { for ( int i = NUM ; i < size ; i ++ ) { remove ( ) ; } if ( logger . is Trace Enabled ( ) ) { logger . trace ( STRING , this , size ) ; } }
public void remove ( int size ) throws CacheException { for ( int i = _NUM ; i < size ; i ++ ) { remove ( ) ; } if ( logger . isTraceEnabled ( ) ) { logger . trace ( STRING , this , size ) ; } }
55
java-test-7404
java
What will it remove only ?
entries that were previously peeked
public void remove ( int size ) throws Cache Exception { for ( int i = NUM ; i < size ; i ++ ) { remove ( ) ; } if ( logger . is Trace Enabled ( ) ) { logger . trace ( STRING , this , size ) ; } }
public void remove ( int size ) throws CacheException { for ( int i = _NUM ; i < size ; i ++ ) { remove ( ) ; } if ( logger . isTraceEnabled ( ) ) { logger . trace ( STRING , this , size ) ; } }
55
java-test-7406
java
What does the user want ?
to insert the value
private void highlight Value ( boolean highlight ) { value Highlighted = highlight ; if ( highlight ) { value Panel . set Border ( Border Factory . create Matte Border ( NUM , NUM , NUM , NUM , Swing Tools . RAPIDMINER ORANGE ) ) ; value Panel . set Background ( Color . LIGHT GRAY ) ; } else { value Panel . set Border ...
private void highlightValue ( boolean highlight ) { valueHighlighted = highlight ; if ( highlight ) { valuePanel . setBorder ( BorderFactory . createMatteBorder ( _NUM , _NUM , _NUM , _NUM , SwingTools . RAPIDMINER_ORANGE ) ) ; valuePanel . setBackground ( Color . LIGHT_GRAY ) ; } else { valuePanel . setBorder ( Border...
102
java-test-7407
java
What expects what for a sdk version string ?
gpe
public static String cleanup Version ( String version Str ) { if ( String Utilities . is Empty ( version Str ) ) { return version Str ; } version Str = to OSGI Compatible Version String ( version Str ) ; String [ ] version Components = version Str . split ( STRING ) ; if ( version Components . length != NUM ) { return ...
public static String cleanupVersion ( String versionStr ) { if ( StringUtilities . isEmpty ( versionStr ) ) { return versionStr ; } versionStr = toOSGICompatibleVersionString ( versionStr ) ; String [ ] versionComponents = versionStr . split ( STRING ) ; if ( versionComponents . length != _NUM ) { return versionStr ; }...
229
java-test-7408
java
What can the 3rd component of the version string contain in some cases ?
both digits and non - digits ( e . g . , 2 . 1 . 0m1 , 2 . 1 . 0 - m1 )
public static String cleanup Version ( String version Str ) { if ( String Utilities . is Empty ( version Str ) ) { return version Str ; } version Str = to OSGI Compatible Version String ( version Str ) ; String [ ] version Components = version Str . split ( STRING ) ; if ( version Components . length != NUM ) { return ...
public static String cleanupVersion ( String versionStr ) { if ( StringUtilities . isEmpty ( versionStr ) ) { return versionStr ; } versionStr = toOSGICompatibleVersionString ( versionStr ) ; String [ ] versionComponents = versionStr . split ( STRING ) ; if ( versionComponents . length != _NUM ) { return versionStr ; }...
229
java-test-7409
java
What can contain both digits and non - digits ( e . g . , 2 . 1 . 0m1 , 2 . 1 . 0 - m1 ) in some cases ?
the 3rd component of the version string
public static String cleanup Version ( String version Str ) { if ( String Utilities . is Empty ( version Str ) ) { return version Str ; } version Str = to OSGI Compatible Version String ( version Str ) ; String [ ] version Components = version Str . split ( STRING ) ; if ( version Components . length != NUM ) { return ...
public static String cleanupVersion ( String versionStr ) { if ( StringUtilities . isEmpty ( versionStr ) ) { return versionStr ; } versionStr = toOSGICompatibleVersionString ( versionStr ) ; String [ ] versionComponents = versionStr . split ( STRING ) ; if ( versionComponents . length != _NUM ) { return versionStr ; }...
229
java-test-7410
java
What does the code compute depending on the value of the action variables given as parameters ?
the utility distribution for the bayesian network
@ Override public Utility Table query Util ( Query . Util Query query ) { B Network network = query . get Network ( ) ; Collection < String > query Vars = query . get Query Vars ( ) ; Assignment evidence = query . get Evidence ( ) ; Map < Assignment , Double > full Joint = get Full Joint ( network , BOOL ) ; Sorted Map...
@ Override public UtilityTable queryUtil ( Query . UtilQuery query ) { BNetwork network = query . getNetwork ( ) ; Collection < String > queryVars = query . getQueryVars ( ) ; Assignment evidence = query . getEvidence ( ) ; Map < Assignment , Double > fullJoint = getFullJoint ( network , _BOOL ) ; SortedMap < String , ...
342
java-test-7413
java
What does the code generate ?
the last 6 bi - months where the last one is the bi - month which the given date is inside
@ Override public List < Period > generate Rolling Periods ( Date Time Unit date Time Unit ) { Calendar cal = get Calendar ( ) ; date Time Unit . set Day ( NUM ) ; date Time Unit = cal . minus Months ( date Time Unit , ( date Time Unit . get Month ( ) % NUM ) + NUM ) ; List < Period > periods = Lists . new Array List (...
@ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit . setDay ( _NUM ) ; dateTimeUnit = cal . minusMonths ( dateTimeUnit , ( dateTimeUnit . getMonth ( ) % _NUM ) + _NUM ) ; List < Period > periods = Lists . newArrayList ( ) ; for ( int i ...
131
java-test-7414
java
When does the given date be inside ?
the bi - month
@ Override public List < Period > generate Rolling Periods ( Date Time Unit date Time Unit ) { Calendar cal = get Calendar ( ) ; date Time Unit . set Day ( NUM ) ; date Time Unit = cal . minus Months ( date Time Unit , ( date Time Unit . get Month ( ) % NUM ) + NUM ) ; List < Period > periods = Lists . new Array List (...
@ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit . setDay ( _NUM ) ; dateTimeUnit = cal . minusMonths ( dateTimeUnit , ( dateTimeUnit . getMonth ( ) % _NUM ) + _NUM ) ; List < Period > periods = Lists . newArrayList ( ) ; for ( int i ...
131
java-test-7415
java
Where is the last one the bi - month which the given date is inside ?
the last 6 bi - months
@ Override public List < Period > generate Rolling Periods ( Date Time Unit date Time Unit ) { Calendar cal = get Calendar ( ) ; date Time Unit . set Day ( NUM ) ; date Time Unit = cal . minus Months ( date Time Unit , ( date Time Unit . get Month ( ) % NUM ) + NUM ) ; List < Period > periods = Lists . new Array List (...
@ Override public List < Period > generateRollingPeriods ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit . setDay ( _NUM ) ; dateTimeUnit = cal . minusMonths ( dateTimeUnit , ( dateTimeUnit . getMonth ( ) % _NUM ) + _NUM ) ; List < Period > periods = Lists . newArrayList ( ) ; for ( int i ...
131
java-test-7416
java
How does a row print if wrapping is enabled ?
possibly as multiple lines
private void print Row ( final Print Stream stream , final String [ ] items , final int [ ] column Display Widths ) { if ( overall Indent > NUM ) { print Spaces ( stream , overall Indent ) ; } boolean needs New Row = BOOL ; final String [ ] new Row = new String [ items . length ] ; for ( int i = NUM ; i < columns . len...
private void printRow ( final PrintStream stream , final String [ ] items , final int [ ] columnDisplayWidths ) { if ( overallIndent > _NUM ) { printSpaces ( stream , overallIndent ) ; } boolean needsNewRow = _BOOL ; final String [ ] newRow = new String [ items . length ] ; for ( int i = _NUM ; i < columns . length ; i...
496
java-test-7418
java
What do http post request send ?
to a connection with given data in request body
public static boolean send Http Post Request ( Http URL Connection connection , String content Type , byte [ ] data ) { try { connection . set Request Method ( STRING ) ; } catch ( Protocol Exception e ) { LOG . log ( Level . SEVERE , STRING , e ) ; return BOOL ; } if ( data . length > NUM ) { connection . set Request ...
public static boolean sendHttpPostRequest ( HttpURLConnection connection , String contentType , byte [ ] data ) { try { connection . setRequestMethod ( STRING ) ; } catch ( ProtocolException e ) { LOG . log ( Level . SEVERE , STRING , e ) ; return _BOOL ; } if ( data . length > _NUM ) { connection . setRequestProperty ...
224
java-test-7419
java
What sends to a connection with given data in request body ?
http post request
public static boolean send Http Post Request ( Http URL Connection connection , String content Type , byte [ ] data ) { try { connection . set Request Method ( STRING ) ; } catch ( Protocol Exception e ) { LOG . log ( Level . SEVERE , STRING , e ) ; return BOOL ; } if ( data . length > NUM ) { connection . set Request ...
public static boolean sendHttpPostRequest ( HttpURLConnection connection , String contentType , byte [ ] data ) { try { connection . setRequestMethod ( STRING ) ; } catch ( ProtocolException e ) { LOG . log ( Level . SEVERE , STRING , e ) ; return _BOOL ; } if ( data . length > _NUM ) { connection . setRequestProperty ...
224
java-test-7420
java
What does the code create ?
a known channel , internally called when we join a channel
@ Synchronized ( STRING ) @ Suppress Warnings ( STRING ) public C create Channel ( @ Non Null String name ) { C chan = ( C ) bot Factory . create Channel ( bot , name ) ; channel Name Map . put ( name . to Lower Case ( locale ) , chan ) ; return chan ; }
@ Synchronized ( STRING ) @ SuppressWarnings ( STRING ) public C createChannel ( @ NonNull String name ) { C chan = ( C ) botFactory . createChannel ( bot , name ) ; channelNameMap . put ( name . toLowerCase ( locale ) , chan ) ; return chan ; }
62
java-test-7421
java
When did a known channel call internally ?
when we join a channel
@ Synchronized ( STRING ) @ Suppress Warnings ( STRING ) public C create Channel ( @ Non Null String name ) { C chan = ( C ) bot Factory . create Channel ( bot , name ) ; channel Name Map . put ( name . to Lower Case ( locale ) , chan ) ; return chan ; }
@ Synchronized ( STRING ) @ SuppressWarnings ( STRING ) public C createChannel ( @ NonNull String name ) { C chan = ( C ) botFactory . createChannel ( bot , name ) ; channelNameMap . put ( name . toLowerCase ( locale ) , chan ) ; return chan ; }
62
java-test-7422
java
What be this run method notified ?
that it needs to scroll the window
public void run ( ) { J Scroll Bar jsb = scroller . get Vertical Scroll Bar ( ) ; while ( running ) { try { synchronized ( hist Data ) { hist Data . wait ( ) ; } Thread . sleep ( NUM ) ; } catch ( Exception e ) { } jsb . set Value ( jsb . get Maximum ( ) ) ; } }
public void run ( ) { JScrollBar jsb = scroller . getVerticalScrollBar ( ) ; while ( running ) { try { synchronized ( histData ) { histData . wait ( ) ; } Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } jsb . setValue ( jsb . getMaximum ( ) ) ; } }
71
java-test-7423
java
Where does this run method run ?
in a separate thread created by this class
public void run ( ) { J Scroll Bar jsb = scroller . get Vertical Scroll Bar ( ) ; while ( running ) { try { synchronized ( hist Data ) { hist Data . wait ( ) ; } Thread . sleep ( NUM ) ; } catch ( Exception e ) { } jsb . set Value ( jsb . get Maximum ( ) ) ; } }
public void run ( ) { JScrollBar jsb = scroller . getVerticalScrollBar ( ) ; while ( running ) { try { synchronized ( histData ) { histData . wait ( ) ; } Thread . sleep ( _NUM ) ; } catch ( Exception e ) { } jsb . setValue ( jsb . getMaximum ( ) ) ; } }
71