id stringlengths 11 16 | language stringclasses 2
values | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-5230 | java | What does the code add ? | an attribute to the attribute payload | public void add Attribute ( String alias , String type Uri , String value ) throws Message Exception { if ( alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM || alias . index Of ( STRING ) > - NUM ) throw new Message Exception ( STRING + alias ) ; int coun... | public void addAttribute ( String alias , String typeUri , String value ) throws MessageException { if ( alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM || alias . indexOf ( STRING ) > - _NUM ) throw new MessageException ( STRING + alias ) ; int count = ... | 224 |
java-test-5233 | java | What does the code remove from the layout since they ' re only listed in the user toolbar ? | the given meta beans | protected void remove User Tool Bar Beans ( Vector < ? > metabeans ) { int i ; int n ; Meta Bean meta ; Vector < Object > subflow ; Bean Instance beaninst ; for ( i = NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( Meta Bean ) metabeans . get ( i ) ; subflow = meta . get Sub Flow ( ) ; for ( n = NUM ; n < subflow . ... | protected void removeUserToolBarBeans ( Vector < ? > metabeans ) { int i ; int n ; MetaBean meta ; Vector < Object > subflow ; BeanInstance beaninst ; for ( i = _NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( MetaBean ) metabeans . get ( i ) ; subflow = meta . getSubFlow ( ) ; for ( n = _NUM ; n < subflow . size ( ... | 120 |
java-test-5234 | java | Why does the code remove the given meta beans from the layout ? | since they ' re only listed in the user toolbar | protected void remove User Tool Bar Beans ( Vector < ? > metabeans ) { int i ; int n ; Meta Bean meta ; Vector < Object > subflow ; Bean Instance beaninst ; for ( i = NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( Meta Bean ) metabeans . get ( i ) ; subflow = meta . get Sub Flow ( ) ; for ( n = NUM ; n < subflow . ... | protected void removeUserToolBarBeans ( Vector < ? > metabeans ) { int i ; int n ; MetaBean meta ; Vector < Object > subflow ; BeanInstance beaninst ; for ( i = _NUM ; i < metabeans . size ( ) ; i ++ ) { meta = ( MetaBean ) metabeans . get ( i ) ; subflow = meta . getSubFlow ( ) ; for ( n = _NUM ; n < subflow . size ( ... | 120 |
java-test-5241 | java | What did the code put into the cache for reuse ? | a dmessage | public static void free ( D Message msg ) { int index = size 2 Index ( msg . get Size ( ) ) ; msg . clear ( ) ; if ( index < NUM ) ; else if ( m cache [ index ] != null ) ; else m cache [ index ] = msg ; } | public static void free ( DMessage msg ) { int index = size2Index ( msg . getSize ( ) ) ; msg . clear ( ) ; if ( index < _NUM ) ; else if ( m_cache [ index ] != null ) ; else m_cache [ index ] = msg ; } | 60 |
java-test-5244 | java | What does the code find ? | customizations which must be re - applied | public String sql AD get Customization Change Logs ( String vendor Name , String catalog Name , String schema Name ) { String search Table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; ... | public String sqlAD_getCustomizationChangeLogs ( String vendorName , String catalogName , String schemaName ) { String searchTableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . a... | 382 |
java-test-5245 | java | For what purpose does the code get the database specific sql command ? | to find customizations which must be re - applied | public String sql AD get Customization Change Logs ( String vendor Name , String catalog Name , String schema Name ) { String search Table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; column Names . add ( STRING ) ; ... | public String sqlAD_getCustomizationChangeLogs ( String vendorName , String catalogName , String schemaName ) { String searchTableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . add ( STRING ) ; columnNames . a... | 382 |
java-test-5246 | java | How do mouse wheel rotations treat ? | like slider - handle drags | public void adjust Zoom From Mouse Wheel ( int rot ) { Projection projection = get Projection ( ) ; if ( projection == null ) { return ; } set User Has Changed Scale ( BOOL ) ; Point 2 D minutes Pnt 0 = projection . inverse ( NUM , NUM ) ; Point 2 D minutes Pnt 1 = projection . inverse ( NUM , NUM ) ; double minutes Pe... | public void adjustZoomFromMouseWheel ( int rot ) { Projection projection = getProjection ( ) ; if ( projection == null ) { return ; } setUserHasChangedScale ( _BOOL ) ; Point2D minutesPnt0 = projection . inverse ( _NUM , _NUM ) ; Point2D minutesPnt1 = projection . inverse ( _NUM , _NUM ) ; double minutesPerPixel = minu... | 200 |
java-test-5255 | java | What maps to one or more platform dependent names ? | a platform independent library name | private String [ ] platform Names ( String library Name ) { if ( is Windows ) return new String [ ] { library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Linux ) return new String [ ] { STRING + library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Mac ) return new String [ ] { STRING + library Name + STRIN... | private String [ ] platformNames ( String libraryName ) { if ( isWindows ) return new String [ ] { libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isLinux ) return new String [ ] { STRING + libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isMac ) return new String [ ] { STRING + libraryName + STRING , STRING +... | 101 |
java-test-5256 | java | What does a platform independent library name map ? | to one or more platform dependent names | private String [ ] platform Names ( String library Name ) { if ( is Windows ) return new String [ ] { library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Linux ) return new String [ ] { STRING + library Name + ( is 64 Bit ? STRING : STRING ) } ; if ( is Mac ) return new String [ ] { STRING + library Name + STRIN... | private String [ ] platformNames ( String libraryName ) { if ( isWindows ) return new String [ ] { libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isLinux ) return new String [ ] { STRING + libraryName + ( is64Bit ? STRING : STRING ) } ; if ( isMac ) return new String [ ] { STRING + libraryName + STRING , STRING +... | 101 |
java-test-5257 | java | What do the parameter values inform ? | this managedsysteminfo instance | private void update Managed System ( I Source S ) throws Ade Exception { logger . trace ( String . format ( STRING , S . get Source Id ( ) ) ) ; boolean update Ok ; try { logger . info ( String . format ( STRING , S . get Source Id ( ) ) ) ; update Ok = execute Batch ( get Sql For Update ( S ) ) ; if ( update Ok ) { ch... | private void updateManagedSystem ( ISource S ) throws AdeException { logger . trace ( String . format ( STRING , S . getSourceId ( ) ) ) ; boolean updateOk ; try { logger . info ( String . format ( STRING , S . getSourceId ( ) ) ) ; updateOk = executeBatch ( getSqlForUpdate ( S ) ) ; if ( updateOk ) { checkForObsoleteR... | 198 |
java-test-5258 | java | Where did the values find ? | in the database query | private void update Managed System ( I Source S ) throws Ade Exception { logger . trace ( String . format ( STRING , S . get Source Id ( ) ) ) ; boolean update Ok ; try { logger . info ( String . format ( STRING , S . get Source Id ( ) ) ) ; update Ok = execute Batch ( get Sql For Update ( S ) ) ; if ( update Ok ) { ch... | private void updateManagedSystem ( ISource S ) throws AdeException { logger . trace ( String . format ( STRING , S . getSourceId ( ) ) ) ; boolean updateOk ; try { logger . info ( String . format ( STRING , S . getSourceId ( ) ) ) ; updateOk = executeBatch ( getSqlForUpdate ( S ) ) ; if ( updateOk ) { checkForObsoleteR... | 198 |
java-test-5259 | java | What are that is ? | that their left edges are on the same x location , with respect to the specified margin | static public void assert Left Aligned ( View first , View second , int margin ) { int [ ] xy = new int [ NUM ] ; first . get Location On Screen ( xy ) ; int first Left = xy [ NUM ] ; second . get Location On Screen ( xy ) ; int second Left = xy [ NUM ] ; assert Equals ( STRING , Math . abs ( first Left - second Left )... | static public void assertLeftAligned ( View first , View second , int margin ) { int [ ] xy = new int [ _NUM ] ; first . getLocationOnScreen ( xy ) ; int firstLeft = xy [ _NUM ] ; second . getLocationOnScreen ( xy ) ; int secondLeft = xy [ _NUM ] ; assertEquals ( STRING , Math . abs ( firstLeft - secondLeft ) , margin ... | 86 |
java-test-5260 | java | What does the code read into the specified drawing ? | a list of figures | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5261 | java | Where did a child element name " figures " ? | in the element that represents the drawing | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5262 | java | What is this method expects ? | that there is a child element named " figures " in the element that represents the drawing | protected void read ( URL url , Input Stream in , Drawing drawing , Linked List < Figure > figures ) throws IO Exception { Nano XMLDOM Input domi = new Nano XMLDOM Input ( factory , in ) ; domi . open Element ( factory . get Name ( drawing ) ) ; domi . open Element ( STRING , NUM ) ; figures . clear ( ) ; for ( int i =... | protected void read ( URL url , InputStream in , Drawing drawing , LinkedList < Figure > figures ) throws IOException { NanoXMLDOMInput domi = new NanoXMLDOMInput ( factory , in ) ; domi . openElement ( factory . getName ( drawing ) ) ; domi . openElement ( STRING , _NUM ) ; figures . clear ( ) ; for ( int i = _NUM , n... | 148 |
java-test-5263 | java | Where does the code create a string in the buffer from an already encoded utf - 8 string ? | in a bytebuffer | public int create String ( Byte Buffer s ) { int length = s . remaining ( ) ; add Byte ( ( byte ) NUM ) ; start Vector ( NUM , length , NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return end Vector ( ) ; } | public int createString ( ByteBuffer s ) { int length = s . remaining ( ) ; addByte ( ( byte ) _NUM ) ; startVector ( _NUM , length , _NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return endVector ( ) ; } | 61 |
java-test-5264 | java | What does the code create in a bytebuffer ? | a string in the buffer from an already encoded utf - 8 string | public int create String ( Byte Buffer s ) { int length = s . remaining ( ) ; add Byte ( ( byte ) NUM ) ; start Vector ( NUM , length , NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return end Vector ( ) ; } | public int createString ( ByteBuffer s ) { int length = s . remaining ( ) ; addByte ( ( byte ) _NUM ) ; startVector ( _NUM , length , _NUM ) ; bb . position ( space -= length ) ; bb . put ( s ) ; return endVector ( ) ; } | 61 |
java-test-5265 | java | What does the list contain already ? | a padstack with p_padstack | public boolean add via padstack ( Lib Padstack p padstack ) { if ( p padstack == null ) return BOOL ; if ( get via padstack ( p padstack . pads name ) != null ) return BOOL ; via padstacks . add ( p padstack ) ; return BOOL ; } | public boolean add_via_padstack ( LibPadstack p_padstack ) { if ( p_padstack == null ) return _BOOL ; if ( get_via_padstack ( p_padstack . pads_name ) != null ) return _BOOL ; via_padstacks . add ( p_padstack ) ; return _BOOL ; } | 53 |
java-test-5266 | java | How can the atomicinteger be not incremented ? | without exceeding the maximum | private boolean try Increment ( Atomic Integer counter , int max ) { while ( BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != NUM ) return BOOL ; if ( counter . compare And Set ( count , count + NUM ) ) return BOOL ; } } | private boolean tryIncrement ( AtomicInteger counter , int max ) { while ( _BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != _NUM ) return _BOOL ; if ( counter . compareAndSet ( count , count + _NUM ) ) return _BOOL ; } } | 60 |
java-test-5267 | java | How do the given atomicinteger increment ? | without exceeding the specified maximum value | private boolean try Increment ( Atomic Integer counter , int max ) { while ( BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != NUM ) return BOOL ; if ( counter . compare And Set ( count , count + NUM ) ) return BOOL ; } } | private boolean tryIncrement ( AtomicInteger counter , int max ) { while ( _BOOL ) { int count = counter . get ( ) ; if ( count >= max && max != _NUM ) return _BOOL ; if ( counter . compareAndSet ( count , count + _NUM ) ) return _BOOL ; } } | 60 |
java-test-5268 | java | What can be passed in the content - type header ? | the full media type string | public String build ( ) { if ( cached Build Result != null ) { return cached Build Result ; } String Builder str = new String Builder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( sub Type ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entry Set ( ) ) { Str... | public String build ( ) { if ( cachedBuildResult != null ) { return cachedBuildResult ; } StringBuilder str = new StringBuilder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( subType ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entrySet ( ) ) { String valu... | 153 |
java-test-5269 | java | Where can the full media type string be passed ? | in the content - type header | public String build ( ) { if ( cached Build Result != null ) { return cached Build Result ; } String Builder str = new String Builder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( sub Type ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entry Set ( ) ) { Str... | public String build ( ) { if ( cachedBuildResult != null ) { return cachedBuildResult ; } StringBuilder str = new StringBuilder ( ) ; str . append ( type ) ; str . append ( STRING ) ; str . append ( subType ) ; if ( parameters != null ) { for ( Entry < String , String > entry : parameters . entrySet ( ) ) { String valu... | 153 |
java-test-5272 | java | What do this plugin perform ? | work on a background task | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5273 | java | When do the event proceed ? | once the registered background task has completed | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5274 | java | What will this plugin continue ? | to perform work on a background task | public void register Intent ( Plugin plugin ) { Preconditions . check State ( ! fired . get ( ) , STRING , this ) ; Preconditions . check State ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . increment And Get ( ) ; } | public void registerIntent ( Plugin plugin ) { Preconditions . checkState ( ! fired . get ( ) , STRING , this ) ; Preconditions . checkState ( ! intents . contains ( plugin ) , STRING , plugin , this ) ; intents . add ( plugin ) ; latch . incrementAndGet ( ) ; } | 62 |
java-test-5279 | java | What does the code create ? | a vertical separator for visually separating status bar elements | private Component create Separator ( ) { J Separator sep = new J Separator ( Swing Constants . VERTICAL ) ; sep . set Preferred Size ( new Dimension ( NUM , NUM ) ) ; sep . set Minimum Size ( new Dimension ( NUM , NUM ) ) ; return sep ; } | private Component createSeparator ( ) { JSeparator sep = new JSeparator ( SwingConstants . VERTICAL ) ; sep . setPreferredSize ( new Dimension ( _NUM , _NUM ) ) ; sep . setMinimumSize ( new Dimension ( _NUM , _NUM ) ) ; return sep ; } | 55 |
java-test-5280 | java | What does a merge hold on indexwriter instance ? | the synchronized lock | final synchronized void merge Finish ( Merge Policy . One Merge merge ) { notify All ( ) ; if ( merge . register Done ) { final List < Segment Commit Info > source Segments = merge . segments ; for ( Segment Commit Info info : source Segments ) { merging Segments . remove ( info ) ; } merge . register Done = BOOL ; } r... | final synchronized void mergeFinish ( MergePolicy . OneMerge merge ) { notifyAll ( ) ; if ( merge . registerDone ) { final List < SegmentCommitInfo > sourceSegments = merge . segments ; for ( SegmentCommitInfo info : sourceSegments ) { mergingSegments . remove ( info ) ; } merge . registerDone = _BOOL ; } runningMerges... | 78 |
java-test-5281 | java | Where does a merge hold the synchronized lock ? | on indexwriter instance | final synchronized void merge Finish ( Merge Policy . One Merge merge ) { notify All ( ) ; if ( merge . register Done ) { final List < Segment Commit Info > source Segments = merge . segments ; for ( Segment Commit Info info : source Segments ) { merging Segments . remove ( info ) ; } merge . register Done = BOOL ; } r... | final synchronized void mergeFinish ( MergePolicy . OneMerge merge ) { notifyAll ( ) ; if ( merge . registerDone ) { final List < SegmentCommitInfo > sourceSegments = merge . segments ; for ( SegmentCommitInfo info : sourceSegments ) { mergingSegments . remove ( info ) ; } merge . registerDone = _BOOL ; } runningMerges... | 78 |
java-test-5283 | java | What does the code update to center the target position ? | the view position | private void adjust View ( ) { if ( ( dvx == NUM ) && ( dvy == NUM ) ) { return ; } final int sx = convert World X To Scaled Screen ( x ) - get Screen View X ( ) + SIZE UNIT PIXELS / NUM ; final int sy = convert World Y To Scaled Screen ( y ) - get Screen View Y ( ) + SIZE UNIT PIXELS / NUM ; if ( ( sx < NUM ) || ( sx ... | private void adjustView ( ) { if ( ( dvx == _NUM ) && ( dvy == _NUM ) ) { return ; } final int sx = convertWorldXToScaledScreen ( x ) - getScreenViewX ( ) + SIZE_UNIT_PIXELS / _NUM ; final int sy = convertWorldYToScaledScreen ( y ) - getScreenViewY ( ) + SIZE_UNIT_PIXELS / _NUM ; if ( ( sx < _NUM ) || ( sx >= sw ) || (... | 281 |
java-test-5284 | java | For what purpose does the code update the view position ? | to center the target position | private void adjust View ( ) { if ( ( dvx == NUM ) && ( dvy == NUM ) ) { return ; } final int sx = convert World X To Scaled Screen ( x ) - get Screen View X ( ) + SIZE UNIT PIXELS / NUM ; final int sy = convert World Y To Scaled Screen ( y ) - get Screen View Y ( ) + SIZE UNIT PIXELS / NUM ; if ( ( sx < NUM ) || ( sx ... | private void adjustView ( ) { if ( ( dvx == _NUM ) && ( dvy == _NUM ) ) { return ; } final int sx = convertWorldXToScaledScreen ( x ) - getScreenViewX ( ) + SIZE_UNIT_PIXELS / _NUM ; final int sy = convertWorldYToScaledScreen ( y ) - getScreenViewY ( ) + SIZE_UNIT_PIXELS / _NUM ; if ( ( sx < _NUM ) || ( sx >= sw ) || (... | 281 |
java-test-5285 | java | How do a layer initialize ? | by adding the desired number of neurons with the desired neuron update rule | private void initialize Layer ( List < Neuron > layer , Neuron Update Rule node Type , int nodes ) { for ( int i = NUM ; i < nodes ; i ++ ) { Neuron node = new Neuron ( get Parent Network ( ) , node Type ) ; layer . add ( node ) ; } } | private void initializeLayer ( List < Neuron > layer , NeuronUpdateRule nodeType , int nodes ) { for ( int i = _NUM ; i < nodes ; i ++ ) { Neuron node = new Neuron ( getParentNetwork ( ) , nodeType ) ; layer . add ( node ) ; } } | 61 |
java-test-5286 | java | Where does the code draw a vertical line and a corresponding frequency label ? | at the bottom | private void draw Frequency Line And Label ( Graphics 2 D graphics , long frequency ) { double x Axis = get Axis From Frequency ( frequency ) ; draw Frequency Line ( graphics , x Axis , m Color Spectrum Line ) ; draw Tick Line ( graphics , frequency , BOOL ) ; graphics . set Color ( m Color Spectrum Line ) ; draw Frequ... | private void drawFrequencyLineAndLabel ( Graphics2D graphics , long frequency ) { double xAxis = getAxisFromFrequency ( frequency ) ; drawFrequencyLine ( graphics , xAxis , mColorSpectrumLine ) ; drawTickLine ( graphics , frequency , _BOOL ) ; graphics . setColor ( mColorSpectrumLine ) ; drawFrequencyLabel ( graphics ,... | 79 |
java-test-5287 | java | What does the code draw at the bottom ? | a vertical line and a corresponding frequency label | private void draw Frequency Line And Label ( Graphics 2 D graphics , long frequency ) { double x Axis = get Axis From Frequency ( frequency ) ; draw Frequency Line ( graphics , x Axis , m Color Spectrum Line ) ; draw Tick Line ( graphics , frequency , BOOL ) ; graphics . set Color ( m Color Spectrum Line ) ; draw Frequ... | private void drawFrequencyLineAndLabel ( Graphics2D graphics , long frequency ) { double xAxis = getAxisFromFrequency ( frequency ) ; drawFrequencyLine ( graphics , xAxis , mColorSpectrumLine ) ; drawTickLine ( graphics , frequency , _BOOL ) ; graphics . setColor ( mColorSpectrumLine ) ; drawFrequencyLabel ( graphics ,... | 79 |
java-test-5288 | java | Where are all ' show ' filters listed ? | after other types of filters | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5289 | java | What are listed after other types of filters ? | all ' show ' filters | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5290 | java | Does the code maintain the invariant that all ' show ' filters are listed after other types of filters ? | No | public void add Filter ( Filter filter ) { int size = filters . size ( ) ; if ( size == NUM || filter . type == Filter Type . SHOW || filters . get ( size - NUM ) . type != Filter Type . SHOW ) { filters . add ( filter ) ; } else { for ( int i = NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == Filter Type .... | public void addFilter ( Filter filter ) { int size = filters . size ( ) ; if ( size == _NUM || filter . type == FilterType . SHOW || filters . get ( size - _NUM ) . type != FilterType . SHOW ) { filters . add ( filter ) ; } else { for ( int i = _NUM ; i < size ; i ++ ) { if ( filters . get ( i ) . type == FilterType . ... | 107 |
java-test-5291 | java | What does the code generate using the key we were initialised with ? | a signature for the message we ' ve been loaded with | public byte [ ] generate Signature ( ) throws Crypto Exception , Data Length Exception { content Digest . do Final ( m Dash , m Dash . length - h Len - s Len ) ; if ( s Len != NUM ) { random . next Bytes ( salt ) ; System . arraycopy ( salt , NUM , m Dash , m Dash . length - s Len , s Len ) ; } byte [ ] h = new byte [ ... | public byte [ ] generateSignature ( ) throws CryptoException , DataLengthException { contentDigest . doFinal ( mDash , mDash . length - hLen - sLen ) ; if ( sLen != _NUM ) { random . nextBytes ( salt ) ; System . arraycopy ( salt , _NUM , mDash , mDash . length - sLen , sLen ) ; } byte [ ] h = new byte [ hLen ] ; conte... | 306 |
java-test-5292 | java | How does the code sort the players ? | by seat | public void sort Players ( ) { int index = NUM ; for ( int i = NUM ; i <= get Player Count ( ) ; i ++ ) { Player p = get Player At Seat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | public void sortPlayers ( ) { int index = _NUM ; for ( int i = _NUM ; i <= getPlayerCount ( ) ; i ++ ) { Player p = getPlayerAtSeat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | 71 |
java-test-5293 | java | What does the code sort by seat ? | the players | public void sort Players ( ) { int index = NUM ; for ( int i = NUM ; i <= get Player Count ( ) ; i ++ ) { Player p = get Player At Seat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | public void sortPlayers ( ) { int index = _NUM ; for ( int i = _NUM ; i <= getPlayerCount ( ) ; i ++ ) { Player p = getPlayerAtSeat ( i ) ; if ( p != null ) { players . remove ( p ) ; players . add ( index , p ) ; index ++ ; } } } | 71 |
java-test-5297 | java | What will method create if makedirs set to true and file ' s path doesn ' t exists ? | path / mkdirs | public static boolean is Writable ( final File file , final boolean make Dirs ) { if ( file == null ) { Log . e ( File Utils . class , STRING ) ; return BOOL ; } final String file Parent Dir = file . get Parent ( ) ; if ( ! Text Utils . is Empty ( file Parent Dir ) ) { final File file Dir = new File ( file Parent Dir )... | public static boolean isWritable ( final File file , final boolean makeDirs ) { if ( file == null ) { Log . e ( FileUtils . class , STRING ) ; return _BOOL ; } final String fileParentDir = file . getParent ( ) ; if ( ! TextUtils . isEmpty ( fileParentDir ) ) { final File fileDir = new File ( fileParentDir ) ; if ( ! fi... | 179 |
java-test-5298 | java | What does the code create ? | a datasource from an input stream | public Byte Array Data Source ( Input Stream is , String type ) { try { Byte Array Output Stream os = new Byte Array Output Stream ( ) ; int ch ; while ( ( ch = is . read ( ) ) != - NUM ) { os . write ( ch ) ; } m data = os . to Byte Array ( ) ; } catch ( IO Exception ioex ) { log . log ( Level . WARNING , STRING , ioe... | public ByteArrayDataSource ( InputStream is , String type ) { try { ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; int ch ; while ( ( ch = is . read ( ) ) != - _NUM ) { os . write ( ch ) ; } m_data = os . toByteArray ( ) ; } catch ( IOException ioex ) { log . log ( Level . WARNING , STRING , ioex ) ; } if (... | 110 |
java-test-5299 | java | How do details of api changes construct ? | by service and component name | private String create Component Changes ( ) { String Builder builder = new String Builder ( ) ; for ( Service Catalog Diff service Catalog Diff : diff List ) { builder . append ( create Api Changes ( service Catalog Diff ) ) ; } return builder . to String ( ) ; } | private String createComponentChanges ( ) { StringBuilder builder = new StringBuilder ( ) ; for ( ServiceCatalogDiff serviceCatalogDiff : diffList ) { builder . append ( createApiChanges ( serviceCatalogDiff ) ) ; } return builder . toString ( ) ; } | 55 |
java-test-5300 | java | For what purpose does the code show a list ? | to select one or more items to delete | private void cmd delete Selection ( ) { m frame . set Cursor ( Cursor . get Predefined Cursor ( Cursor . WAIT CURSOR ) ) ; if ( A Dialog . ask ( get Window No ( ) , m frame , STRING ) ) { int records = delete Selection ( ) ; set Status Line ( Msg . get Msg ( Env . get Ctx ( ) , STRING ) + records , BOOL ) ; } m frame .... | private void cmd_deleteSelection ( ) { m_frame . setCursor ( Cursor . getPredefinedCursor ( Cursor . WAIT_CURSOR ) ) ; if ( ADialog . ask ( getWindowNo ( ) , m_frame , STRING ) ) { int records = deleteSelection ( ) ; setStatusLine ( Msg . getMsg ( Env . getCtx ( ) , STRING ) + records , _BOOL ) ; } m_frame . setCursor ... | 111 |
java-test-5301 | java | In which direction does this method deserializ a string ? | from the given byte array | public static String deserialize String ( byte [ ] buffer , Mutable Int offset ) { int length = deserialize Int ( buffer , offset ) ; String val = new String ( buffer , offset . int Value ( ) , length ) ; offset . add ( length ) ; return val ; } | public static String deserializeString ( byte [ ] buffer , MutableInt offset ) { int length = deserializeInt ( buffer , offset ) ; String val = new String ( buffer , offset . intValue ( ) , length ) ; offset . add ( length ) ; return val ; } | 56 |
java-test-5302 | java | What is used to determine if they contain an id3 tag this method ? | by non mp3s ( such as . ogg and . flac ) | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5303 | java | What does file contain ? | an id3 tag | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5304 | java | What is by non mp3s ( such as . ogg and . flac ) used this method ? | to determine if they contain an id3 tag | public static boolean is Id 3 Tag ( Random Access File raf ) throws IO Exception { if ( ! is ID 3 V 2 Header ( raf ) ) { return BOOL ; } byte [ ] tag Header = new byte [ FIELD TAG SIZE LENGTH ] ; raf . seek ( raf . get File Pointer ( ) + NUM ) ; raf . read ( tag Header ) ; Byte Buffer bb = Byte Buffer . wrap ( tag Head... | public static boolean isId3Tag ( RandomAccessFile raf ) throws IOException { if ( ! isID3V2Header ( raf ) ) { return _BOOL ; } byte [ ] tagHeader = new byte [ FIELD_TAG_SIZE_LENGTH ] ; raf . seek ( raf . getFilePointer ( ) + _NUM ) ; raf . read ( tagHeader ) ; ByteBuffer bb = ByteBuffer . wrap ( tagHeader ) ; int size ... | 117 |
java-test-5307 | java | What do an array hold ? | the collected events | public Event Bean [ ] to Array ( ) { if ( first Event == null ) { return new Event Bean [ NUM ] ; } if ( additional Events == null ) { return new Event Bean [ ] { first Event } ; } Event Bean [ ] events = new Event Bean [ NUM + additional Events . size ( ) ] ; events [ NUM ] = first Event ; int count = NUM ; for ( Even... | public EventBean [ ] toArray ( ) { if ( firstEvent == null ) { return new EventBean [ _NUM ] ; } if ( additionalEvents == null ) { return new EventBean [ ] { firstEvent } ; } EventBean [ ] events = new EventBean [ _NUM + additionalEvents . size ( ) ] ; events [ _NUM ] = firstEvent ; int count = _NUM ; for ( EventBean t... | 107 |
java-test-5312 | java | What does this function calculate ? | the position for each legend | private void Legends ( List < String > legends list , List < Integer > color code list ) { text Paint . set Color ( Color . BLACK ) ; text Paint . set Text Size ( NUM ) ; int left = ( int ) ( graphwidth * NUM ) ; for ( int i = NUM ; i < legends list . size ( ) ; i ++ ) { String label = legends list . get ( i ) ; float ... | private void Legends ( List < String > legends_list , List < Integer > color_code_list ) { textPaint . setColor ( Color . BLACK ) ; textPaint . setTextSize ( _NUM ) ; int left = ( int ) ( graphwidth * _NUM ) ; for ( int i = _NUM ; i < legends_list . size ( ) ; i ++ ) { String label = legends_list . get ( i ) ; float te... | 185 |
java-test-5314 | java | What does the code make with a random direction ? | a new 3d unit vector | static public P Vector random 3 D ( P Vector target , P Applet parent ) { float angle ; float vz ; if ( parent == null ) { angle = ( float ) ( Math . random ( ) * Math . PI * NUM ) ; vz = ( float ) ( Math . random ( ) * NUM - NUM ) ; } else { angle = parent . random ( P Constants . TWO PI ) ; vz = parent . random ( - N... | static public PVector random3D ( PVector target , PApplet parent ) { float angle ; float vz ; if ( parent == null ) { angle = ( float ) ( Math . random ( ) * Math . PI * _NUM ) ; vz = ( float ) ( Math . random ( ) * _NUM - _NUM ) ; } else { angle = parent . random ( PConstants . TWO_PI ) ; vz = parent . random ( - _NUM... | 186 |
java-test-5321 | java | What does the code write into the application bundle ? | the pkginfo file | private void write Pkg Info ( ) throws Build Exception { File pkg Info = new File ( m Contents Dir , STRING ) ; Print Writer writer = null ; try { writer = new Print Writer ( new Buffered Writer ( new File Writer ( pkg Info ) ) ) ; writer . print ( bundle Properties . get CF Bundle Package Type ( ) ) ; writer . println... | private void writePkgInfo ( ) throws BuildException { File pkgInfo = new File ( mContentsDir , STRING ) ; PrintWriter writer = null ; try { writer = new PrintWriter ( new BufferedWriter ( new FileWriter ( pkgInfo ) ) ) ; writer . print ( bundleProperties . getCFBundlePackageType ( ) ) ; writer . println ( bundlePropert... | 122 |
java-test-5323 | java | Do a static utility method create an image from a document automatically ? | No | public static Buffered Image render To Image ( String url , int width , int height , int buffered Image Type ) { Graphics 2 D Renderer g2 r = new Graphics 2 D Renderer ( ) ; g2 r . set Document ( url ) ; Dimension dim = new Dimension ( width , height ) ; Buffered Image buff = new Buffered Image ( ( int ) dim . get Widt... | public static BufferedImage renderToImage ( String url , int width , int height , int bufferedImageType ) { Graphics2DRenderer g2r = new Graphics2DRenderer ( ) ; g2r . setDocument ( url ) ; Dimension dim = new Dimension ( width , height ) ; BufferedImage buff = new BufferedImage ( ( int ) dim . getWidth ( ) , ( int ) d... | 136 |
java-test-5324 | java | When must blob index to the bloballocator that then points to the blobheader if saving as ? | then addr | public long save ( ) { if ( m is Saved ) { throw new Illegal State Exception ( ERR ALREADY SAVED ) ; } if ( m store == null ) { return NUM ; } if ( m count == NUM ) { m is Saved = BOOL ; return NUM ; } int addr = ( int ) m store . alloc ( m buf , m count , m context ) ; if ( m blob Header != null ) { try { m writing Hd... | public long save ( ) { if ( m_isSaved ) { throw new IllegalStateException ( ERR_ALREADY_SAVED ) ; } if ( m_store == null ) { return _NUM ; } if ( m_count == _NUM ) { m_isSaved = _BOOL ; return _NUM ; } int addr = ( int ) m_store . alloc ( m_buf , m_count , m_context ) ; if ( m_blobHeader != null ) { try { m_writingHdr ... | 290 |
java-test-5327 | java | How does the code split the input string ? | based on the default delimiter | public List < String > split String With Default Delimiter ( String input String ) { List < String > split String = new Array List < > ( ) ; if ( input String != null ) { String Tokenizer string Tokenizer = new String Tokenizer ( input String , configuration Helper . get Property ( Configuration Value . FIELD DATA DELI... | public List < String > splitStringWithDefaultDelimiter ( String inputString ) { List < String > splitString = new ArrayList < > ( ) ; if ( inputString != null ) { StringTokenizer stringTokenizer = new StringTokenizer ( inputString , configurationHelper . getProperty ( ConfigurationValue . FIELD_DATA_DELIMITER ) ) ; whi... | 99 |
java-test-5329 | java | Do arguments have a common prefix ? | No | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5330 | java | What do not have a common prefix ? | arguments | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5331 | java | What do arguments not have ? | a common prefix | public static String find Common Prefix ( String ... strings ) { String Builder prefix = new String Builder ( ) ; int index = NUM ; char c = NUM ; loop : while ( BOOL ) { for ( int i = NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == NUM ) { c = ... | public static String findCommonPrefix ( String ... strings ) { StringBuilder prefix = new StringBuilder ( ) ; int index = _NUM ; char c = _NUM ; loop : while ( _BOOL ) { for ( int i = _NUM ; i < strings . length ; i ++ ) { String s = strings [ i ] ; if ( index == s . length ( ) ) { break loop ; } if ( i == _NUM ) { c =... | 151 |
java-test-5336 | java | Do we delete the file for testing reasons immediately ? | No | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5337 | java | When do we not delete the file for testing reasons ? | immediately | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5338 | java | What do we mark ? | the file | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5339 | java | For what purpose do we not delete the file immediately ? | for testing reasons | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5340 | java | For what purpose did we upload mark file just just ? | for cleanup | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5341 | java | What do we not delete for testing reasons immediately ? | the file | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5342 | java | When did we upload mark file for cleanup ? | just | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5343 | java | When do we delete it if marking the file fails ? | right away | private void cleanup Minidump File ( ) { if ( ! Crash File Manager . try Mark As Uploaded ( m File To Upload ) ) { Log . w ( TAG , STRING + m File To Upload + STRING ) ; if ( ! m File To Upload . delete ( ) ) { Log . w ( TAG , STRING + m File To Upload ) ; } } } | private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , STRING + mFileToUpload + STRING ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , STRING + mFileToUpload ) ; } } } | 73 |
java-test-5344 | java | How does the code inflate the current sam line ? | by replacing all & by the corresponding field in the previous sam line | public static int inflate ( byte [ ] previous , int previous Length , byte [ ] current , int current Length , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , NUM , result , NUM , current Length ) ; return current Length ; } int length = NUM ; int start 1 = NUM ; int start 2 = NUM ; while ( ... | public static int inflate ( byte [ ] previous , int previousLength , byte [ ] current , int currentLength , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , _NUM , result , _NUM , currentLength ) ; return currentLength ; } int length = _NUM ; int start1 = _NUM ; int start2 = _NUM ; while ( s... | 261 |
java-test-5345 | java | What does the code inflate by replacing all & by the corresponding field in the previous sam line ? | the current sam line | public static int inflate ( byte [ ] previous , int previous Length , byte [ ] current , int current Length , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , NUM , result , NUM , current Length ) ; return current Length ; } int length = NUM ; int start 1 = NUM ; int start 2 = NUM ; while ( ... | public static int inflate ( byte [ ] previous , int previousLength , byte [ ] current , int currentLength , byte [ ] result ) { if ( previous == null ) { System . arraycopy ( current , _NUM , result , _NUM , currentLength ) ; return currentLength ; } int length = _NUM ; int start1 = _NUM ; int start2 = _NUM ; while ( s... | 261 |
java-test-5346 | java | When do unsupported attributes ignore ? | when directed | private byte [ ] decode ( Der Input Stream in ) throws IO Exception { Der Value val = in . get Der Value ( ) ; byte [ ] der Encoding = val . to Byte Array ( ) ; der Encoding [ NUM ] = Der Value . tag Set Of ; Der Input Stream der In = new Der Input Stream ( der Encoding ) ; Der Value [ ] der Vals = der In . get Set ( N... | private byte [ ] decode ( DerInputStream in ) throws IOException { DerValue val = in . getDerValue ( ) ; byte [ ] derEncoding = val . toByteArray ( ) ; derEncoding [ _NUM ] = DerValue . tag_SetOf ; DerInputStream derIn = new DerInputStream ( derEncoding ) ; DerValue [ ] derVals = derIn . getSet ( _NUM , _BOOL ) ; PKCS9... | 249 |
java-test-5347 | java | What does the code load ? | the projects of a database | public static List < I Navi Project > load Projects ( final Abstract SQL Provider provider , final Debugger Template Manager debugger Manager ) throws Couldnt Load Data Exception { Postgre SQL Database Functions . check Arguments ( provider , debugger Manager ) ; final C Connection connection = provider . get Connectio... | public static List < INaviProject > loadProjects ( final AbstractSQLProvider provider , final DebuggerTemplateManager debuggerManager ) throws CouldntLoadDataException { PostgreSQLDatabaseFunctions . checkArguments ( provider , debuggerManager ) ; final CConnection connection = provider . getConnection ( ) ; final List... | 350 |
java-test-5348 | java | Why will the set be converted to a list also ? | because of the use of a comparator | private List < Protection System > sort Protection Systems ( Set < Protection System > protection Systems ) { List < Protection System > protection Systems Lst = new Array List < Protection System > ( protection Systems ) ; if ( protection Systems . size ( ) > NUM ) { log . info ( STRING ) ; log . info ( STRING + prote... | private List < ProtectionSystem > sortProtectionSystems ( Set < ProtectionSystem > protectionSystems ) { List < ProtectionSystem > protectionSystemsLst = new ArrayList < ProtectionSystem > ( protectionSystems ) ; if ( protectionSystems . size ( ) > _NUM ) { _log . info ( STRING ) ; _log . info ( STRING + protectionSyst... | 122 |
java-test-5349 | java | How does the set of protectionsystem objects sort ? | by the cglastcreatedtime field | private List < Protection System > sort Protection Systems ( Set < Protection System > protection Systems ) { List < Protection System > protection Systems Lst = new Array List < Protection System > ( protection Systems ) ; if ( protection Systems . size ( ) > NUM ) { log . info ( STRING ) ; log . info ( STRING + prote... | private List < ProtectionSystem > sortProtectionSystems ( Set < ProtectionSystem > protectionSystems ) { List < ProtectionSystem > protectionSystemsLst = new ArrayList < ProtectionSystem > ( protectionSystems ) ; if ( protectionSystems . size ( ) > _NUM ) { _log . info ( STRING ) ; _log . info ( STRING + protectionSyst... | 122 |
java-test-5350 | java | What does the code create ? | the button pages for a category | public static Array List < Page > page Creator Buttons ( Array List < Page > pages , Item manual Type ) { Array List < Page > new Pages = new Array List < > ( ) ; int page Amount = pages . size ( ) ; int times = NUM ; while ( page Amount > NUM ) { Array List < Page > pages Temp = new Array List < > ( ) ; pages Temp . a... | public static ArrayList < Page > pageCreatorButtons ( ArrayList < Page > pages , Item manualType ) { ArrayList < Page > newPages = new ArrayList < > ( ) ; int pageAmount = pages . size ( ) ; int times = _NUM ; while ( pageAmount > _NUM ) { ArrayList < Page > pagesTemp = new ArrayList < > ( ) ; pagesTemp . addAll ( page... | 230 |
java-test-5351 | java | What do the string represent ? | a level | public static Level string To Level ( String level ) { Level result ; if ( level . equals Ignore Case ( STRING ) ) result = ALL ; else if ( level . equals Ignore Case ( STRING ) ) result = CONFIG ; else if ( level . equals Ignore Case ( STRING ) ) result = FINE ; else if ( level . equals Ignore Case ( STRING ) ) result... | public static Level stringToLevel ( String level ) { Level result ; if ( level . equalsIgnoreCase ( STRING ) ) result = ALL ; else if ( level . equalsIgnoreCase ( STRING ) ) result = CONFIG ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINE ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINER ;... | 166 |
java-test-5352 | java | What does the code turn into the corresponding level ( case - insensitive ) ? | the string representing a level , e . g . , | public static Level string To Level ( String level ) { Level result ; if ( level . equals Ignore Case ( STRING ) ) result = ALL ; else if ( level . equals Ignore Case ( STRING ) ) result = CONFIG ; else if ( level . equals Ignore Case ( STRING ) ) result = FINE ; else if ( level . equals Ignore Case ( STRING ) ) result... | public static Level stringToLevel ( String level ) { Level result ; if ( level . equalsIgnoreCase ( STRING ) ) result = ALL ; else if ( level . equalsIgnoreCase ( STRING ) ) result = CONFIG ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINE ; else if ( level . equalsIgnoreCase ( STRING ) ) result = FINER ;... | 166 |
java-test-5353 | java | What does the code create ? | a new exportmask for host for the given initiators | protected List < String > create New Export Mask Workflow For Initiators ( List < URI > initiator UR Is , Export Group export Group , Workflow workflow , Map < URI , Integer > volume Map , Storage System storage , String token , String previous Step ) throws Exception { List < String > new Steps = new Array List < > ( ... | protected List < String > createNewExportMaskWorkflowForInitiators ( List < URI > initiatorURIs , ExportGroup exportGroup , Workflow workflow , Map < URI , Integer > volumeMap , StorageSystem storage , String token , String previousStep ) throws Exception { List < String > newSteps = new ArrayList < > ( ) ; if ( ! init... | 270 |
java-test-5354 | java | Where does the code add a certain event handler ? | on event bus | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . get Certain Job Address ( event , this ) ) ; event Bus . consumer ( Kue . get Certain Job Address ( event , this ) , handler ) ; return this ; } | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . getCertainJobAddress ( event , this ) ) ; eventBus . consumer ( Kue . getCertainJobAddress ( event , this ) , handler ) ; return this ; } | 65 |
java-test-5355 | java | What does the code add on event bus ? | a certain event handler | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . get Certain Job Address ( event , this ) ) ; event Bus . consumer ( Kue . get Certain Job Address ( event , this ) , handler ) ; return this ; } | @ Fluent public < T > Job on ( String event , Handler < Message < T > > handler ) { logger . debug ( STRING + Kue . getCertainJobAddress ( event , this ) ) ; eventBus . consumer ( Kue . getCertainJobAddress ( event , this ) , handler ) ; return this ; } | 65 |
java-test-5356 | java | What does the code draw around the content area ? | the bottom edge of the border | protected void paint Content Border Bottom Edge ( Graphics g , int x , int y , int w , int h , boolean draw Broken , Rectangle sel Rect , boolean is Content Border Painted ) { if ( is Content Border Painted ) { g . set Color ( dark Shadow ) ; g . fill Rect ( x , y + h - NUM , w - NUM , NUM ) ; } } | protected void paintContentBorderBottomEdge ( Graphics g , int x , int y , int w , int h , boolean drawBroken , Rectangle selRect , boolean isContentBorderPainted ) { if ( isContentBorderPainted ) { g . setColor ( darkShadow ) ; g . fillRect ( x , y + h - _NUM , w - _NUM , _NUM ) ; } } | 77 |
java-test-5357 | java | What have returned in the same spots ? | infinities | protected static void assert Statistical Summary Equals ( Statistical Summary expected , Statistical Summary observed , double delta ) { Unit Test Utils . assert Equals ( expected . get Max ( ) , observed . get Max ( ) , NUM ) ; Unit Test Utils . assert Equals ( expected . get Min ( ) , observed . get Min ( ) , NUM ) ;... | protected static void assertStatisticalSummaryEquals ( StatisticalSummary expected , StatisticalSummary observed , double delta ) { UnitTestUtils . assertEquals ( expected . getMax ( ) , observed . getMax ( ) , _NUM ) ; UnitTestUtils . assertEquals ( expected . getMin ( ) , observed . getMin ( ) , _NUM ) ; Assert . ass... | 187 |
java-test-5358 | java | Where have infinities returned ? | in the same spots | protected static void assert Statistical Summary Equals ( Statistical Summary expected , Statistical Summary observed , double delta ) { Unit Test Utils . assert Equals ( expected . get Max ( ) , observed . get Max ( ) , NUM ) ; Unit Test Utils . assert Equals ( expected . get Min ( ) , observed . get Min ( ) , NUM ) ;... | protected static void assertStatisticalSummaryEquals ( StatisticalSummary expected , StatisticalSummary observed , double delta ) { UnitTestUtils . assertEquals ( expected . getMax ( ) , observed . getMax ( ) , _NUM ) ; UnitTestUtils . assertEquals ( expected . getMin ( ) , observed . getMin ( ) , _NUM ) ; Assert . ass... | 187 |
java-test-5360 | java | What does the code syllabify marking syllable boundaries with dash characters in the output ? | a phonetic string | public String syllabify ( String phone String ) { Linked List < String > phone List = split Into Allophones ( phone String ) ; syllabify ( phone List ) ; String Builder sb = new String Builder ( ) ; for ( String p : phone List ) { if ( sb . length ( ) > NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . t... | public String syllabify ( String phoneString ) { LinkedList < String > phoneList = splitIntoAllophones ( phoneString ) ; syllabify ( phoneList ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String p : phoneList ) { if ( sb . length ( ) > _NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . toString (... | 84 |
java-test-5361 | java | When are single quotes inserted ? | at the beginning of the corresponding syllable | public String syllabify ( String phone String ) { Linked List < String > phone List = split Into Allophones ( phone String ) ; syllabify ( phone List ) ; String Builder sb = new String Builder ( ) ; for ( String p : phone List ) { if ( sb . length ( ) > NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . t... | public String syllabify ( String phoneString ) { LinkedList < String > phoneList = splitIntoAllophones ( phoneString ) ; syllabify ( phoneList ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String p : phoneList ) { if ( sb . length ( ) > _NUM ) sb . append ( STRING ) ; sb . append ( p ) ; } return sb . toString (... | 84 |
java-test-5362 | java | How do the relevant fields for the object instance passed in write ? | using the given pdxwriter | public boolean write Data ( Pdx Writer writer , Object obj ) { if ( is Relevant ( obj . get Class ( ) ) ) { write Data ( writer , obj , get Class Info ( obj . get Class ( ) ) ) ; return BOOL ; } return BOOL ; } | public boolean writeData ( PdxWriter writer , Object obj ) { if ( isRelevant ( obj . getClass ( ) ) ) { writeData ( writer , obj , getClassInfo ( obj . getClass ( ) ) ) ; return _BOOL ; } return _BOOL ; } | 55 |
java-test-5363 | java | What does the code use ? | the given pdxwriter | public boolean write Data ( Pdx Writer writer , Object obj ) { if ( is Relevant ( obj . get Class ( ) ) ) { write Data ( writer , obj , get Class Info ( obj . get Class ( ) ) ) ; return BOOL ; } return BOOL ; } | public boolean writeData ( PdxWriter writer , Object obj ) { if ( isRelevant ( obj . getClass ( ) ) ) { writeData ( writer , obj , getClassInfo ( obj . getClass ( ) ) ) ; return _BOOL ; } return _BOOL ; } | 55 |
java-test-5364 | java | What do a histogram enumerate ? | all of the return value of failurereasons | @ Visible For Testing void record Failure Reasons ( Context context ) { int reasons = Failure Reason . bit Value ( failure Reasons ( context ) ) ; m Failure Reasons To Record . add ( reasons ) ; if ( Library Loader . is Initialized ( ) ) { Integer reasons To Record ; while ( ( reasons To Record = m Failure Reasons To R... | @ VisibleForTesting void recordFailureReasons ( Context context ) { int reasons = FailureReason . bitValue ( failureReasons ( context ) ) ; mFailureReasonsToRecord . add ( reasons ) ; if ( LibraryLoader . isInitialized ( ) ) { Integer reasonsToRecord ; while ( ( reasonsToRecord = mFailureReasonsToRecord . poll ( ) ) !=... | 104 |
java-test-5365 | java | What do the current context have ? | a static member import , either on - demand or explicit | public static boolean has Import Static ( String fq Class Name , String member Name , Psi Element context ) { final Psi File file = context . get Containing File ( ) ; if ( ! ( file instanceof Psi Java File ) ) { return BOOL ; } final Psi Java File java File = ( Psi Java File ) file ; final Psi Import List import List ... | public static boolean hasImportStatic ( String fqClassName , String memberName , PsiElement context ) { final PsiFile file = context . getContainingFile ( ) ; if ( ! ( file instanceof PsiJavaFile ) ) { return _BOOL ; } final PsiJavaFile javaFile = ( PsiJavaFile ) file ; final PsiImportList importList = javaFile . getIm... | 306 |
java-test-5366 | java | What does the code render into textures ? | the normals and depth | void render Normal And Depth ( ) { gl Enable ( GL DEPTH TEST ) ; gl Use Program ( this . normal Program ) ; gl Uniform Matrix 4 fv ( view Matrix Uniform , BOOL , view Matrix . get ( matrix Buffer ) ) ; gl Uniform Matrix 4 fv ( proj Matrix Uniform , BOOL , proj Matrix . get ( matrix Buffer ) ) ; gl Uniform Matrix 3 fv (... | void renderNormalAndDepth ( ) { glEnable ( GL_DEPTH_TEST ) ; glUseProgram ( this . normalProgram ) ; glUniformMatrix4fv ( viewMatrixUniform , _BOOL , viewMatrix . get ( matrixBuffer ) ) ; glUniformMatrix4fv ( projMatrixUniform , _BOOL , projMatrix . get ( matrixBuffer ) ) ; glUniformMatrix3fv ( normalMatrixUniform , _B... | 251 |
java-test-5367 | java | When does us compute the length of the output stream ? | when stream is closed | @ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ... | @ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ... | 191 |
java-test-5368 | java | What does us compute when stream is closed ? | the length of the output stream | @ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ... | @ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ... | 191 |
java-test-5369 | java | What does this allow ? | us to compute the length of the output stream when stream is closed | @ Override public void around Write To ( Writer Interceptor Context writer Interceptor Context ) throws IO Exception { Length Of Output Stream stream = ( Length Of Output Stream ) writer Interceptor Context . get Property ( PROPERTY OUTPUT STREAM ) ; try { writer Interceptor Context . proceed ( ) ; if ( stream != null ... | @ Override public void aroundWriteTo ( WriterInterceptorContext writerInterceptorContext ) throws IOException { LengthOfOutputStream stream = ( LengthOfOutputStream ) writerInterceptorContext . getProperty ( PROPERTY_OUTPUT_STREAM ) ; try { writerInterceptorContext . proceed ( ) ; if ( stream != null ) { emitSuccess ( ... | 191 |
java-test-5370 | java | What converts to forward slashes ? | back slashes | @ Not Null public static String normalize ( @ Not Null String path ) { int start = NUM ; boolean separator = BOOL ; if ( System Info . is Windows ) { if ( path . starts With ( STRING ) ) { start = NUM ; separator = BOOL ; } else if ( path . starts With ( STRING ) ) { return normalize Tail ( NUM , path , BOOL ) ; } } fo... | @ NotNull public static String normalize ( @ NotNull String path ) { int start = _NUM ; boolean separator = _BOOL ; if ( SystemInfo . isWindows ) { if ( path . startsWith ( STRING ) ) { start = _NUM ; separator = _BOOL ; } else if ( path . startsWith ( STRING ) ) { return normalizeTail ( _NUM , path , _BOOL ) ; } } for... | 171 |
java-test-5371 | java | What does back slashes convert ? | to forward slashes | @ Not Null public static String normalize ( @ Not Null String path ) { int start = NUM ; boolean separator = BOOL ; if ( System Info . is Windows ) { if ( path . starts With ( STRING ) ) { start = NUM ; separator = BOOL ; } else if ( path . starts With ( STRING ) ) { return normalize Tail ( NUM , path , BOOL ) ; } } fo... | @ NotNull public static String normalize ( @ NotNull String path ) { int start = _NUM ; boolean separator = _BOOL ; if ( SystemInfo . isWindows ) { if ( path . startsWith ( STRING ) ) { start = _NUM ; separator = _BOOL ; } else if ( path . startsWith ( STRING ) ) { return normalizeTail ( _NUM , path , _BOOL ) ; } } for... | 171 |
java-test-5372 | java | For what purpose should this method return its argument just ? | for a correctly formed url | public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI... | public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL... | 131 |
java-test-5373 | java | How does that url transform into a canonical form ? | by including a protocol name and additional syntax , if necessary | public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI... | public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL... | 131 |
java-test-5374 | java | What does this method ' s job be ? | to transform that url into a canonical form , by including a protocol name and additional syntax , if necessary . for a correctly formed url | public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI... | public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL... | 131 |
java-test-5375 | java | What is to transform that url into a canonical form , by including a protocol name and additional syntax , if necessary . for a correctly formed url ? | this method ' s job | public String canonicalize ( String simple URL ) { String result URL = simple URL ; if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRING + simple URL ; } else if ( simple URL . starts With ( STRING ) ) { result URL = STRI... | public String canonicalize ( String simpleURL ) { String resultURL = simpleURL ; if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL ; } else if ( simpleURL . startsWith ( STRING ) ) { resultURL = STRING + simpleURL... | 131 |
java-test-5376 | java | What do primitive ( not boolean ) convert ? | to boolean or byte | private static void primitive 2 b ( Method Visitor mv , Class Node type ) { Label true Label = new Label ( ) ; Label false Label = new Label ( ) ; if ( type == Class Helper . double TYPE ) { mv . visit Insn ( DCONST 0 ) ; mv . visit Insn ( DCMPL ) ; } else if ( type == Class Helper . long TYPE ) { mv . visit Insn ( LCO... | private static void primitive2b ( MethodVisitor mv , ClassNode type ) { Label trueLabel = new Label ( ) ; Label falseLabel = new Label ( ) ; if ( type == ClassHelper . double_TYPE ) { mv . visitInsn ( DCONST_0 ) ; mv . visitInsn ( DCMPL ) ; } else if ( type == ClassHelper . long_TYPE ) { mv . visitInsn ( LCONST_0 ) ; m... | 197 |
java-test-5377 | java | What converts to boolean or byte ? | primitive ( not boolean ) | private static void primitive 2 b ( Method Visitor mv , Class Node type ) { Label true Label = new Label ( ) ; Label false Label = new Label ( ) ; if ( type == Class Helper . double TYPE ) { mv . visit Insn ( DCONST 0 ) ; mv . visit Insn ( DCMPL ) ; } else if ( type == Class Helper . long TYPE ) { mv . visit Insn ( LCO... | private static void primitive2b ( MethodVisitor mv , ClassNode type ) { Label trueLabel = new Label ( ) ; Label falseLabel = new Label ( ) ; if ( type == ClassHelper . double_TYPE ) { mv . visitInsn ( DCONST_0 ) ; mv . visitInsn ( DCMPL ) ; } else if ( type == ClassHelper . long_TYPE ) { mv . visitInsn ( LCONST_0 ) ; m... | 197 |
java-test-5381 | java | What does the code create ? | properly formatted message to send over udp that acts like a syslog message syslog format : " & lt ; priority & gt ; timestamp orange_link blue_link : message " details : http : / / en . wikipedia . org / wiki / syslog # priority | protected void send Log Event ( String component , String message , Callback < Object > callback ) { String syslog Message = String . format ( Locale . US , STRING , get Sys Log Formatted Date ( ) , utils . get Application Name ( context ) , component , message ) ; send Data Over UDP ( syslog Message , callback ) ; } | protected void sendLogEvent ( String component , String message , Callback < Object > callback ) { String syslogMessage = String . format ( Locale . US , STRING , getSysLogFormattedDate ( ) , utils . getApplicationName ( context ) , component , message ) ; sendDataOverUDP ( syslogMessage , callback ) ; } | 67 |
java-test-5382 | java | What does the code serialize ? | the given exceptions stacktrace elements as well as it ' s suppressed exceptions to the given output stream | public static < T extends Throwable > T write Stack Traces ( T throwable , Stream Output out ) throws IO Exception { Stack Trace Element [ ] stack Trace = throwable . get Stack Trace ( ) ; out . write V Int ( stack Trace . length ) ; for ( Stack Trace Element element : stack Trace ) { out . write String ( element . get... | public static < T extends Throwable > T writeStackTraces ( T throwable , StreamOutput out ) throws IOException { StackTraceElement [ ] stackTrace = throwable . getStackTrace ( ) ; out . writeVInt ( stackTrace . length ) ; for ( StackTraceElement element : stackTrace ) { out . writeString ( element . getClassName ( ) ) ... | 165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.