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-11751 | java | What does this method initialize ? | the distributed sigature calculation | public void init Sign ( byte [ ] seed 0 , byte [ ] message ) { this . hash = new byte [ mdsize ] ; mess Digest OTS . update ( message , NUM , message . length ) ; this . hash = new byte [ mess Digest OTS . get Digest Size ( ) ] ; mess Digest OTS . do Final ( this . hash , NUM ) ; byte [ ] mess Part = new byte [ mdsize ... | public void initSign ( byte [ ] seed0 , byte [ ] message ) { this . hash = new byte [ mdsize ] ; messDigestOTS . update ( message , _NUM , message . length ) ; this . hash = new byte [ messDigestOTS . getDigestSize ( ) ] ; messDigestOTS . doFinal ( this . hash , _NUM ) ; byte [ ] messPart = new byte [ mdsize ] ; System... | 922 |
java-test-11752 | java | What does the code add from an iterator ? | the shape3d objects | protected void add ( Iterator shape Iterator ) { while ( shape Iterator . has Next ( ) ) { try { Shape 3 D shape = ( Shape 3 D ) shape Iterator . next ( ) ; if ( shape != null ) { add ( shape ) ; } } catch ( Class Cast Exception cce ) { continue ; } } } | protected void add ( Iterator shapeIterator ) { while ( shapeIterator . hasNext ( ) ) { try { Shape3D shape = ( Shape3D ) shapeIterator . next ( ) ; if ( shape != null ) { add ( shape ) ; } } catch ( ClassCastException cce ) { continue ; } } } | 66 |
java-test-11753 | java | What are managed a panel ? | lanuages | public Window Beanshell ( Board Frame p board frame ) { super ( p board frame ) ; stat = board frame . stat ; work Frame = new J Frame ( STRING ) ; work Panel = ( J Panel ) work Frame . get Content Pane ( ) ; bsh Console = new J Console ( ) ; work Panel . add ( bsh Console , Border Layout . CENTER ) ; work Panel . add ... | public WindowBeanshell ( BoardFrame p_board_frame ) { super ( p_board_frame ) ; stat = board_frame . stat ; workFrame = new JFrame ( STRING ) ; workPanel = ( JPanel ) workFrame . getContentPane ( ) ; bshConsole = new JConsole ( ) ; workPanel . add ( bshConsole , BorderLayout . CENTER ) ; workPanel . add ( newButtons ( ... | 112 |
java-test-11754 | java | What does the code delete if it exists ? | the last entered character | public boolean backspace Query Text ( ) { int length = m Query Text . length ( ) ; if ( length > NUM ) { m Query Text . delete Char At ( length - NUM ) ; m Search Overlay . refresh Overlay ( ) ; return BOOL ; } return BOOL ; } | public boolean backspaceQueryText ( ) { int length = mQueryText . length ( ) ; if ( length > _NUM ) { mQueryText . deleteCharAt ( length - _NUM ) ; mSearchOverlay . refreshOverlay ( ) ; return _BOOL ; } return _BOOL ; } | 56 |
java-test-11755 | java | What does the code update ? | the current statistics for the new set of analysis nodes | public void incr Stats ( Collection < Graph Node > nodes ) { total Count += nodes . size ( ) ; for ( Graph Node node : nodes ) { Element Kind Descriptor descr = find Descriptor ( node ) ; if ( null == descr ) { other Count ++ ; } else { int count = kind Counts . get ( descr ) ; kind Counts . put ( descr , count + NUM )... | public void incrStats ( Collection < GraphNode > nodes ) { totalCount += nodes . size ( ) ; for ( GraphNode node : nodes ) { ElementKindDescriptor descr = findDescriptor ( node ) ; if ( null == descr ) { otherCount ++ ; } else { int count = kindCounts . get ( descr ) ; kindCounts . put ( descr , count + _NUM ) ; } } } | 82 |
java-test-11757 | java | In which direction does the code walk if the child is already in the collection ? | down the hierarchy | protected void add Resource Delta ( I Resource Delta child ) { switch ( this . kind ) { case ADDED : case REMOVED : return ; case CHANGED : this . change Flags |= F CONTENT ; break ; default : this . kind = CHANGED ; this . change Flags |= F CONTENT ; } if ( this . resource Deltas == null ) { this . resource Deltas = n... | protected void addResourceDelta ( IResourceDelta child ) { switch ( this . kind ) { case ADDED : case REMOVED : return ; case CHANGED : this . changeFlags |= F_CONTENT ; break ; default : this . kind = CHANGED ; this . changeFlags |= F_CONTENT ; } if ( this . resourceDeltas == null ) { this . resourceDeltas = new IReso... | 172 |
java-test-11758 | java | What is the code adds to the collection of affected children ? | the child delta | protected void add Resource Delta ( I Resource Delta child ) { switch ( this . kind ) { case ADDED : case REMOVED : return ; case CHANGED : this . change Flags |= F CONTENT ; break ; default : this . kind = CHANGED ; this . change Flags |= F CONTENT ; } if ( this . resource Deltas == null ) { this . resource Deltas = n... | protected void addResourceDelta ( IResourceDelta child ) { switch ( this . kind ) { case ADDED : case REMOVED : return ; case CHANGED : this . changeFlags |= F_CONTENT ; break ; default : this . kind = CHANGED ; this . changeFlags |= F_CONTENT ; } if ( this . resourceDeltas == null ) { this . resourceDeltas = new IReso... | 172 |
java-test-11759 | java | For what purpose does the code add any url query parameters ? | for a get request ) | static public void add Query Params ( final String Builder url String , final Map < String , String [ ] > request Params ) throws Unsupported Encoding Exception { if ( request Params == null ) return ; boolean first = BOOL ; for ( Map . Entry < String , String [ ] > e : request Params . entry Set ( ) ) { final String n... | static public void addQueryParams ( final StringBuilder urlString , final Map < String , String [ ] > requestParams ) throws UnsupportedEncodingException { if ( requestParams == null ) return ; boolean first = _BOOL ; for ( Map . Entry < String , String [ ] > e : requestParams . entrySet ( ) ) { final String name = e .... | 219 |
java-test-11760 | java | What does the code add for a get request ) ? | any url query parameters | static public void add Query Params ( final String Builder url String , final Map < String , String [ ] > request Params ) throws Unsupported Encoding Exception { if ( request Params == null ) return ; boolean first = BOOL ; for ( Map . Entry < String , String [ ] > e : request Params . entry Set ( ) ) { final String n... | static public void addQueryParams ( final StringBuilder urlString , final Map < String , String [ ] > requestParams ) throws UnsupportedEncodingException { if ( requestParams == null ) return ; boolean first = _BOOL ; for ( Map . Entry < String , String [ ] > e : requestParams . entrySet ( ) ) { final String name = e .... | 219 |
java-test-11761 | java | How do one or more new dynamic fields register ? | with the schema | public void register Dynamic Fields ( Schema Field ... fields ) { List < Dynamic Field > dyn Fields = new Array List < > ( Arrays . as List ( dynamic Fields ) ) ; for ( Schema Field field : fields ) { if ( is Duplicate Dyn Field ( dyn Fields , field ) ) { log . debug ( STRING + field . get Name ( ) + STRING ) ; } else ... | public void registerDynamicFields ( SchemaField ... fields ) { List < DynamicField > dynFields = new ArrayList < > ( Arrays . asList ( dynamicFields ) ) ; for ( SchemaField field : fields ) { if ( isDuplicateDynField ( dynFields , field ) ) { log . debug ( STRING + field . getName ( ) + STRING ) ; } else { log . debug ... | 138 |
java-test-11762 | java | What does the code create ? | a new docume1nt with the node toclone | public static Document create New Dom From Node ( Node to Clone ) { Document new Doc = create Dom Document ( ) ; Node imported Node = new Doc . import Node ( to Clone , BOOL ) ; new Doc . append Child ( imported Node ) ; return new Doc ; } | public static Document createNewDomFromNode ( Node toClone ) { Document newDoc = createDomDocument ( ) ; Node importedNode = newDoc . importNode ( toClone , _BOOL ) ; newDoc . appendChild ( importedNode ) ; return newDoc ; } | 55 |
java-test-11763 | java | What can be used to clone a document with createnewdomfromnode ( roottoclone ) ? | a new docume1nt with the node toclone as root element | public static Document create New Dom From Node ( Node to Clone ) { Document new Doc = create Dom Document ( ) ; Node imported Node = new Doc . import Node ( to Clone , BOOL ) ; new Doc . append Child ( imported Node ) ; return new Doc ; } | public static Document createNewDomFromNode ( Node toClone ) { Document newDoc = createDomDocument ( ) ; Node importedNode = newDoc . importNode ( toClone , _BOOL ) ; newDoc . appendChild ( importedNode ) ; return newDoc ; } | 55 |
java-test-11764 | java | What can a new docume1nt with the node toclone as root element be used ? | to clone a document with createnewdomfromnode ( roottoclone ) | public static Document create New Dom From Node ( Node to Clone ) { Document new Doc = create Dom Document ( ) ; Node imported Node = new Doc . import Node ( to Clone , BOOL ) ; new Doc . append Child ( imported Node ) ; return new Doc ; } | public static Document createNewDomFromNode ( Node toClone ) { Document newDoc = createDomDocument ( ) ; Node importedNode = newDoc . importNode ( toClone , _BOOL ) ; newDoc . appendChild ( importedNode ) ; return newDoc ; } | 55 |
java-test-11771 | java | What did the code require ? | to check command line options | public static int option Length ( String option ) { if ( option . equals ( OUTPUT OPTION ) ) { return NUM ; } if ( option . equals ( CONTENT OPTION ) ) { return NUM ; } if ( option . equals ( BUILD OPTION ) ) { return NUM ; } if ( option . equals ( PORTAL SRC OPTION ) ) { return NUM ; } if ( option . equals ( ROOT DIRE... | public static int optionLength ( String option ) { if ( option . equals ( OUTPUT_OPTION ) ) { return _NUM ; } if ( option . equals ( CONTENT_OPTION ) ) { return _NUM ; } if ( option . equals ( BUILD_OPTION ) ) { return _NUM ; } if ( option . equals ( PORTAL_SRC_OPTION ) ) { return _NUM ; } if ( option . equals ( ROOT_D... | 90 |
java-test-11772 | java | What does the code indicate ? | whether this timer has expired | public boolean is Expired ( Draw Context dc ) { if ( this . expired ) return BOOL ; long now = dc != null ? dc . get Frame Time Stamp ( ) : System . current Time Millis ( ) ; if ( now >= this . expiry Time ) return BOOL ; return BOOL ; } | public boolean isExpired ( DrawContext dc ) { if ( this . expired ) return _BOOL ; long now = dc != null ? dc . getFrameTimeStamp ( ) : System . currentTimeMillis ( ) ; if ( now >= this . expiryTime ) return _BOOL ; return _BOOL ; } | 59 |
java-test-11773 | java | What contain the entrant with the given stream ? | races | public static final Collection < Race > find Races ( String stream , Collection < Race > races ) { Collection < Race > result = new Array List < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . get Entrants ( ) ) { if ( stream . equals Ignore Case ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | public static final Collection < Race > findRaces ( String stream , Collection < Race > races ) { Collection < Race > result = new ArrayList < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . getEntrants ( ) ) { if ( stream . equalsIgnoreCase ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | 83 |
java-test-11774 | java | How do races contain the entrant ? | with the given stream | public static final Collection < Race > find Races ( String stream , Collection < Race > races ) { Collection < Race > result = new Array List < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . get Entrants ( ) ) { if ( stream . equals Ignore Case ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | public static final Collection < Race > findRaces ( String stream , Collection < Race > races ) { Collection < Race > result = new ArrayList < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . getEntrants ( ) ) { if ( stream . equalsIgnoreCase ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | 83 |
java-test-11775 | java | What do races contain with the given stream ? | the entrant | public static final Collection < Race > find Races ( String stream , Collection < Race > races ) { Collection < Race > result = new Array List < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . get Entrants ( ) ) { if ( stream . equals Ignore Case ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | public static final Collection < Race > findRaces ( String stream , Collection < Race > races ) { Collection < Race > result = new ArrayList < > ( ) ; for ( Race r : races ) { for ( Entrant e : r . getEntrants ( ) ) { if ( stream . equalsIgnoreCase ( e . twitch ) ) { result . add ( r ) ; } } } return result ; } | 83 |
java-test-11776 | java | Why did the comment need to be removed from the data structures in the comment manager therefore therefore ? | as it has already been removed from the database | private synchronized void delete Comment Internal ( final Commenting Strategy strategy , final I Comment comment ) { Preconditions . check Not Null ( comment , STRING ) ; final List < I Comment > current Comments = strategy . get Comments ( ) ; if ( ! current Comments . remove ( comment ) ) { return ; } strategy . save... | private synchronized void deleteCommentInternal ( final CommentingStrategy strategy , final IComment comment ) { Preconditions . checkNotNull ( comment , STRING ) ; final List < IComment > currentComments = strategy . getComments ( ) ; if ( ! currentComments . remove ( comment ) ) { return ; } strategy . saveComments (... | 129 |
java-test-11777 | java | What did the comment need therefore therefore as it has already been removed from the database ? | to be removed from the data structures in the comment manager | private synchronized void delete Comment Internal ( final Commenting Strategy strategy , final I Comment comment ) { Preconditions . check Not Null ( comment , STRING ) ; final List < I Comment > current Comments = strategy . get Comments ( ) ; if ( ! current Comments . remove ( comment ) ) { return ; } strategy . save... | private synchronized void deleteCommentInternal ( final CommentingStrategy strategy , final IComment comment ) { Preconditions . checkNotNull ( comment , STRING ) ; final List < IComment > currentComments = strategy . getComments ( ) ; if ( ! currentComments . remove ( comment ) ) { return ; } strategy . saveComments (... | 129 |
java-test-11778 | java | When is this function used ? | when notification from the database are received that a comment has been deleted | private synchronized void delete Comment Internal ( final Commenting Strategy strategy , final I Comment comment ) { Preconditions . check Not Null ( comment , STRING ) ; final List < I Comment > current Comments = strategy . get Comments ( ) ; if ( ! current Comments . remove ( comment ) ) { return ; } strategy . save... | private synchronized void deleteCommentInternal ( final CommentingStrategy strategy , final IComment comment ) { Preconditions . checkNotNull ( comment , STRING ) ; final List < IComment > currentComments = strategy . getComments ( ) ; if ( ! currentComments . remove ( comment ) ) { return ; } strategy . saveComments (... | 129 |
java-test-11779 | java | What did group give into hash ? | files ( urls ) | public static Map < String , Collection < String > > group Files By Mime Type ( Collection < String > attachments ) { Map < String , Collection < String > > attachments By Mime Type = new Hash Map < > ( ) ; for ( String url : attachments ) { String mime Type = get Mime Type ( url ) ; if ( mime Type . length ( ) > NUM )... | public static Map < String , Collection < String > > groupFilesByMimeType ( Collection < String > attachments ) { Map < String , Collection < String > > attachmentsByMimeType = new HashMap < > ( ) ; for ( String url : attachments ) { String mimeType = getMimeType ( url ) ; if ( mimeType . length ( ) > _NUM ) { Collecti... | 151 |
java-test-11782 | java | What does the code return ? | the saved file paths | private Immutable List < String > save Files On Disk ( Immutable Map < String , String > swagger File Path To Content Map ) { List < String > savedfile Paths = new Array List < > ( ) ; File temp Dir = Files . create Temp Dir ( ) ; String tmp Dir Location = temp Dir . get Absolute Path ( ) ; for ( Entry < String , Strin... | private ImmutableList < String > saveFilesOnDisk ( ImmutableMap < String , String > swaggerFilePathToContentMap ) { List < String > savedfilePaths = new ArrayList < > ( ) ; File tempDir = Files . createTempDir ( ) ; String tmpDirLocation = tempDir . getAbsolutePath ( ) ; for ( Entry < String , String > entry : swaggerF... | 253 |
java-test-11783 | java | What does the code save ? | the file contents on the disk | private Immutable List < String > save Files On Disk ( Immutable Map < String , String > swagger File Path To Content Map ) { List < String > savedfile Paths = new Array List < > ( ) ; File temp Dir = Files . create Temp Dir ( ) ; String tmp Dir Location = temp Dir . get Absolute Path ( ) ; for ( Entry < String , Strin... | private ImmutableList < String > saveFilesOnDisk ( ImmutableMap < String , String > swaggerFilePathToContentMap ) { List < String > savedfilePaths = new ArrayList < > ( ) ; File tempDir = Files . createTempDir ( ) ; String tmpDirLocation = tempDir . getAbsolutePath ( ) ; for ( Entry < String , String > entry : swaggerF... | 253 |
java-test-11784 | java | What does the code decode ? | the matrix component of a uri path segment | public static Multivalued Map < String , String > decode Matrix ( String path Segment , boolean decode ) { Multivalued Map < String , String > matrix Map = Emo Multivalued Map . create ( ) ; int s = path Segment . index Of ( STRING ) + NUM ; if ( s == NUM || s == path Segment . length ( ) ) { return matrix Map ; } do {... | public static MultivaluedMap < String , String > decodeMatrix ( String pathSegment , boolean decode ) { MultivaluedMap < String , String > matrixMap = EmoMultivaluedMap . create ( ) ; int s = pathSegment . indexOf ( STRING ) + _NUM ; if ( s == _NUM || s == pathSegment . length ( ) ) { return matrixMap ; } do { int e = ... | 173 |
java-test-11786 | java | How does the code generate a donut shape from the given location and radii ? | by subtracting an inner circular area from an outer one | private static Shape generate Donut ( double x , double y , double inner Radius , double outer Radius ) { Area a1 = new Area ( new Ellipse 2 D . Double ( x , y , outer Radius , outer Radius ) ) ; double inner Offset = ( outer Radius - inner Radius ) / NUM ; Area a2 = new Area ( new Ellipse 2 D . Double ( x + inner Offs... | private static Shape generateDonut ( double x , double y , double innerRadius , double outerRadius ) { Area a1 = new Area ( new Ellipse2D . Double ( x , y , outerRadius , outerRadius ) ) ; double innerOffset = ( outerRadius - innerRadius ) / _NUM ; Area a2 = new Area ( new Ellipse2D . Double ( x + innerOffset , y + inn... | 102 |
java-test-11787 | java | What does the code generate by subtracting an inner circular area from an outer one ? | a donut shape from the given location and radii | private static Shape generate Donut ( double x , double y , double inner Radius , double outer Radius ) { Area a1 = new Area ( new Ellipse 2 D . Double ( x , y , outer Radius , outer Radius ) ) ; double inner Offset = ( outer Radius - inner Radius ) / NUM ; Area a2 = new Area ( new Ellipse 2 D . Double ( x + inner Offs... | private static Shape generateDonut ( double x , double y , double innerRadius , double outerRadius ) { Area a1 = new Area ( new Ellipse2D . Double ( x , y , outerRadius , outerRadius ) ) ; double innerOffset = ( outerRadius - innerRadius ) / _NUM ; Area a2 = new Area ( new Ellipse2D . Double ( x + innerOffset , y + inn... | 102 |
java-test-11788 | java | What does the purpose of walkgraph be ? | to find all reachable nodes in the semantic graph and insert them in a hashtable for use by the explorer tool | public void walk Graph ( Hashtable sem Nodes Table ) { Integer uid = new Integer ( my UID ) ; if ( sem Nodes Table . get ( uid ) != null ) return ; sem Nodes Table . put ( new Integer ( my UID ) , this ) ; } | public void walkGraph ( Hashtable semNodesTable ) { Integer uid = new Integer ( myUID ) ; if ( semNodesTable . get ( uid ) != null ) return ; semNodesTable . put ( new Integer ( myUID ) , this ) ; } | 53 |
java-test-11789 | java | What is to find all reachable nodes in the semantic graph and insert them in a hashtable for use by the explorer tool ? | the purpose of walkgraph | public void walk Graph ( Hashtable sem Nodes Table ) { Integer uid = new Integer ( my UID ) ; if ( sem Nodes Table . get ( uid ) != null ) return ; sem Nodes Table . put ( new Integer ( my UID ) , this ) ; } | public void walkGraph ( Hashtable semNodesTable ) { Integer uid = new Integer ( myUID ) ; if ( semNodesTable . get ( uid ) != null ) return ; semNodesTable . put ( new Integer ( myUID ) , this ) ; } | 53 |
java-test-11790 | java | What did 1 dt ? | level 0 | public static String lat To File String ( float lat , int level ) { String direction ; if ( lat >= NUM ) { direction = STRING ; lat = ( float ) Math . floor ( lat ) ; } else { direction = STRING ; lat = ( float ) Math . ceil ( lat * - NUM ) ; } java . text . Decimal Format fd = new java . text . Decimal Format ( STRING... | public static String latToFileString ( float lat , int level ) { String direction ; if ( lat >= _NUM ) { direction = STRING ; lat = ( float ) Math . floor ( lat ) ; } else { direction = STRING ; lat = ( float ) Math . ceil ( lat * - _NUM ) ; } java . text . DecimalFormat fd = new java . text . DecimalFormat ( STRING ) ... | 103 |
java-test-11791 | java | What does the code create ? | the gui elements of the component | private void create Gui ( ) { final J Panel top Panel = new J Panel ( new Border Layout ( ) ) ; final J Panel inner Top Panel = new J Panel ( new Border Layout ( ) ) ; top Panel . add ( inner Top Panel ) ; inner Top Panel . add ( m std Edit Panel ) ; inner Top Panel . add ( m debugger Panel , Border Layout . SOUTH ) ; ... | private void createGui ( ) { final JPanel topPanel = new JPanel ( new BorderLayout ( ) ) ; final JPanel innerTopPanel = new JPanel ( new BorderLayout ( ) ) ; topPanel . add ( innerTopPanel ) ; innerTopPanel . add ( m_stdEditPanel ) ; innerTopPanel . add ( m_debuggerPanel , BorderLayout . SOUTH ) ; final JPanel buttonPa... | 330 |
java-test-11798 | java | How does the code assume the class specified points to a file in the classpath that contains the name of a class that implements or is a subclass of the specfied class < p / > any class that can not be loaded or assigned to the specified interface will be cause an exception to be thrown ? | java . io . inputstream # contains the classname org . widget . neatoinputstream meta - inf / java . io . inputstream # contains the classname com . foo . barinputstream < p / > resourcefinder finder | public List < Class < ? > > find All Implementations ( Class < ? > interfase ) throws IO Exception , Class Not Found Exception { List < Class < ? > > implementations = new Array List < > ( ) ; List < String > strings = find All Strings ( interfase . get Name ( ) ) ; for ( String class Name : strings ) { Class < ? > imp... | public List < Class < ? > > findAllImplementations ( Class < ? > interfase ) throws IOException , ClassNotFoundException { List < Class < ? > > implementations = new ArrayList < > ( ) ; List < String > strings = findAllStrings ( interfase . getName ( ) ) ; for ( String className : strings ) { Class < ? > impl = _classL... | 129 |
java-test-11803 | java | What does the code create ? | new dabout dialog | public D About ( J Frame parent , String title , String license Notice , Image about Img , Object [ ] ticker Items ) { super ( parent , title , Modality Type . DOCUMENT MODAL ) ; init Components ( about Img , license Notice , ticker Items ) ; } | public DAbout ( JFrame parent , String title , String licenseNotice , Image aboutImg , Object [ ] tickerItems ) { super ( parent , title , ModalityType . DOCUMENT_MODAL ) ; initComponents ( aboutImg , licenseNotice , tickerItems ) ; } | 53 |
java-test-11808 | java | How can filter lines not touch the update_box to improve the performance of the draw function ? | by avoiding unnessesary calls of draw ( line ) | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11809 | java | What can not touch the update_box by avoiding unnessesary calls of draw ( line ) to improve the performance of the draw function ? | filter lines | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11810 | java | What do which avoid ? | unnessesary calls of draw ( line ) | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11811 | java | What do which improve ? | the performance of the draw function | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11812 | java | What can filter lines not touch by avoiding unnessesary calls of draw ( line ) to improve the performance of the draw function ? | the update_box | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11813 | java | For what purpose can filter lines not touch the update_box by avoiding unnessesary calls of draw ( line ) ? | to improve the performance of the draw function | private boolean line outside update box ( Pla Point Float p 1 , Pla Point Float p 2 , double p update offset , Shape Tile Box p update box ) { if ( p 1 == null || p 2 == null ) { return BOOL ; } if ( Math . max ( p 1 . v x , p 2 . v x ) < p update box . box ll . v x - p update offset ) { return BOOL ; } if ( Math . max... | private boolean line_outside_update_box ( PlaPointFloat p_1 , PlaPointFloat p_2 , double p_update_offset , ShapeTileBox p_update_box ) { if ( p_1 == null || p_2 == null ) { return _BOOL ; } if ( Math . max ( p_1 . v_x , p_2 . v_x ) < p_update_box . box_ll . v_x - p_update_offset ) { return _BOOL ; } if ( Math . max ( p... | 205 |
java-test-11815 | java | What does the code draw ? | a poligon given a pointer to cgpoint coordiantes and the number of vertices | public static void cc Draw Poly ( GL 10 gl , CG Point poli [ ] , int number Of Points , boolean close Polygon ) { Float Buffer vertices = get Vertices ( NUM * number Of Points ) ; for ( int i = NUM ; i < number Of Points ; i ++ ) { vertices . put ( poli [ i ] . x ) ; vertices . put ( poli [ i ] . y ) ; } vertices . pos... | public static void ccDrawPoly ( GL10 gl , CGPoint poli [ ] , int numberOfPoints , boolean closePolygon ) { FloatBuffer vertices = getVertices ( _NUM * numberOfPoints ) ; for ( int i = _NUM ; i < numberOfPoints ; i ++ ) { vertices . put ( poli [ i ] . x ) ; vertices . put ( poli [ i ] . y ) ; } vertices . position ( _NU... | 217 |
java-test-11818 | java | How does the code initialize the crop window ? | by setting the proper values | private void init Circle Crop Window ( @ Non Null Rect F bitmap Rect ) { m Offset = NUM * Math . min ( bitmap Rect . width ( ) , bitmap Rect . height ( ) ) ; m Drawable Width = bitmap Rect . width ( ) ; m Drawable Height = bitmap Rect . height ( ) ; m Center Point X = m Drawable Width / NUM ; m Center Point Y = m Drawa... | private void initCircleCropWindow ( @ NonNull RectF bitmapRect ) { mOffset = _NUM * Math . min ( bitmapRect . width ( ) , bitmapRect . height ( ) ) ; mDrawableWidth = bitmapRect . width ( ) ; mDrawableHeight = bitmapRect . height ( ) ; mCenterPointX = mDrawableWidth / _NUM ; mCenterPointY = mDrawableHeight / _NUM ; mRa... | 108 |
java-test-11819 | java | How will the initial crop window be set to the displayed image if fixed aspect ratio is turned off ? | with 10 % margin | private void init Circle Crop Window ( @ Non Null Rect F bitmap Rect ) { m Offset = NUM * Math . min ( bitmap Rect . width ( ) , bitmap Rect . height ( ) ) ; m Drawable Width = bitmap Rect . width ( ) ; m Drawable Height = bitmap Rect . height ( ) ; m Center Point X = m Drawable Width / NUM ; m Center Point Y = m Drawa... | private void initCircleCropWindow ( @ NonNull RectF bitmapRect ) { mOffset = _NUM * Math . min ( bitmapRect . width ( ) , bitmapRect . height ( ) ) ; mDrawableWidth = bitmapRect . width ( ) ; mDrawableHeight = bitmapRect . height ( ) ; mCenterPointX = mDrawableWidth / _NUM ; mCenterPointY = mDrawableHeight / _NUM ; mRa... | 108 |
java-test-11820 | java | What does the code initialize by setting the proper values ? | the crop window | private void init Circle Crop Window ( @ Non Null Rect F bitmap Rect ) { m Offset = NUM * Math . min ( bitmap Rect . width ( ) , bitmap Rect . height ( ) ) ; m Drawable Width = bitmap Rect . width ( ) ; m Drawable Height = bitmap Rect . height ( ) ; m Center Point X = m Drawable Width / NUM ; m Center Point Y = m Drawa... | private void initCircleCropWindow ( @ NonNull RectF bitmapRect ) { mOffset = _NUM * Math . min ( bitmapRect . width ( ) , bitmapRect . height ( ) ) ; mDrawableWidth = bitmapRect . width ( ) ; mDrawableHeight = bitmapRect . height ( ) ; mCenterPointX = mDrawableWidth / _NUM ; mCenterPointY = mDrawableHeight / _NUM ; mRa... | 108 |
java-test-11821 | java | What does the code generate ? | the createwidget method | protected Set < String > generate Widget Creation For Cell By Template ( Source Printer out , C context , JSON Object child , J Class Type data Object , String binding Context Variable ) { Has Data Provider Data Binding Processor binding Processor = create Data Binding Processor ( context , data Object , binding Contex... | protected Set < String > generateWidgetCreationForCellByTemplate ( SourcePrinter out , C context , JSONObject child , JClassType dataObject , String bindingContextVariable ) { HasDataProviderDataBindingProcessor bindingProcessor = createDataBindingProcessor ( context , dataObject , bindingContextVariable ) ; return gen... | 87 |
java-test-11822 | java | What does the code return ? | the set of converter declarations used by the generated method | protected Set < String > generate Widget Creation For Cell By Template ( Source Printer out , C context , JSON Object child , J Class Type data Object , String binding Context Variable ) { Has Data Provider Data Binding Processor binding Processor = create Data Binding Processor ( context , data Object , binding Contex... | protected Set < String > generateWidgetCreationForCellByTemplate ( SourcePrinter out , C context , JSONObject child , JClassType dataObject , String bindingContextVariable ) { HasDataProviderDataBindingProcessor bindingProcessor = createDataBindingProcessor ( context , dataObject , bindingContextVariable ) ; return gen... | 87 |
java-test-11823 | java | What does this method call ? | proc updateworkflowtype | @ Request Mapping ( value = { STRING , STRING } , method = Request Method . POST ) @ Response Body public Rest Wrapper update ( @ Model Attribute ( STRING ) @ Valid Workflow Type workflow Type , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors (... | @ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . POST ) @ ResponseBody public RestWrapper update ( @ ModelAttribute ( STRING ) @ Valid WorkflowType workflowType , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { Bindin... | 269 |
java-test-11824 | java | What does this method update ? | the values of the instance of workflowtype passed | @ Request Mapping ( value = { STRING , STRING } , method = Request Method . POST ) @ Response Body public Rest Wrapper update ( @ Model Attribute ( STRING ) @ Valid Workflow Type workflow Type , Binding Result binding Result , Principal principal ) { Rest Wrapper rest Wrapper = null ; if ( binding Result . has Errors (... | @ RequestMapping ( value = { STRING , STRING } , method = RequestMethod . POST ) @ ResponseBody public RestWrapper update ( @ ModelAttribute ( STRING ) @ Valid WorkflowType workflowType , BindingResult bindingResult , Principal principal ) { RestWrapper restWrapper = null ; if ( bindingResult . hasErrors ( ) ) { Bindin... | 269 |
java-test-11825 | java | What is not closed on the server ? | the secure channel | public boolean is Open ( ) { if ( secure Channel Id == - NUM ) return BOOL ; long expire Time = ( ( long ) ( token Lifetime * NUM ) ) + token Issue Time ; long current Time = System . current Time Millis ( ) ; return expire Time > current Time ; } | public boolean isOpen ( ) { if ( secureChannelId == - _NUM ) return _BOOL ; long expireTime = ( ( long ) ( tokenLifetime * _NUM ) ) + tokenIssueTime ; long currentTime = System . currentTimeMillis ( ) ; return expireTime > currentTime ; } | 59 |
java-test-11826 | java | What does the code create ? | a name for the given class | public Member Name ( Class < ? > type ) { init ( type . get Declaring Class ( ) , type . get Simple Name ( ) , type , flags Mods ( IS TYPE , type . get Modifiers ( ) , REF NONE ) ) ; init Resolved ( BOOL ) ; } | public MemberName ( Class < ? > type ) { init ( type . getDeclaringClass ( ) , type . getSimpleName ( ) , type , flagsMods ( IS_TYPE , type . getModifiers ( ) , REF_NONE ) ) ; initResolved ( _BOOL ) ; } | 56 |
java-test-11827 | java | What does the code take ? | a copy of the styledlayerdescriptor | private String preprocess SLD ( Styled Layer Descriptor sld ) { if ( sld == null ) { return null ; } SLD Writer Interface sld Writer = SLD Writer Factory . create Writer ( null ) ; Duplicating Style Visitor duplicator = new Duplicating Style Visitor ( ) ; sld . accept ( duplicator ) ; Styled Layer Descriptor sld Copy =... | private String preprocessSLD ( StyledLayerDescriptor sld ) { if ( sld == null ) { return null ; } SLDWriterInterface sldWriter = SLDWriterFactory . createWriter ( null ) ; DuplicatingStyleVisitor duplicator = new DuplicatingStyleVisitor ( ) ; sld . accept ( duplicator ) ; StyledLayerDescriptor sldCopy = ( StyledLayerDe... | 158 |
java-test-11828 | java | What does the code null ? | the inline features | private String preprocess SLD ( Styled Layer Descriptor sld ) { if ( sld == null ) { return null ; } SLD Writer Interface sld Writer = SLD Writer Factory . create Writer ( null ) ; Duplicating Style Visitor duplicator = new Duplicating Style Visitor ( ) ; sld . accept ( duplicator ) ; Styled Layer Descriptor sld Copy =... | private String preprocessSLD ( StyledLayerDescriptor sld ) { if ( sld == null ) { return null ; } SLDWriterInterface sldWriter = SLDWriterFactory . createWriter ( null ) ; DuplicatingStyleVisitor duplicator = new DuplicatingStyleVisitor ( ) ; sld . accept ( duplicator ) ; StyledLayerDescriptor sldCopy = ( StyledLayerDe... | 158 |
java-test-11829 | java | When did this call ? | when the map is long - pressed in easy - edit mode | public boolean handle Long Click ( View v , float x , float y ) { synchronized ( action Mode Callback Lock ) { if ( ( current Action Mode Callback instanceof Path Creation Action Mode Callback ) ) { Log . d ( STRING , STRING ) ; return BOOL ; } } v . perform Haptic Feedback ( Haptic Feedback Constants . LONG PRESS ) ; ... | public boolean handleLongClick ( View v , float x , float y ) { synchronized ( actionModeCallbackLock ) { if ( ( currentActionModeCallback instanceof PathCreationActionModeCallback ) ) { Log . d ( STRING , STRING ) ; return _BOOL ; } } v . performHapticFeedback ( HapticFeedbackConstants . LONG_PRESS ) ; if ( main . sta... | 118 |
java-test-11830 | java | How is the map pressed long ? | in easy - edit mode | public boolean handle Long Click ( View v , float x , float y ) { synchronized ( action Mode Callback Lock ) { if ( ( current Action Mode Callback instanceof Path Creation Action Mode Callback ) ) { Log . d ( STRING , STRING ) ; return BOOL ; } } v . perform Haptic Feedback ( Haptic Feedback Constants . LONG PRESS ) ; ... | public boolean handleLongClick ( View v , float x , float y ) { synchronized ( actionModeCallbackLock ) { if ( ( currentActionModeCallback instanceof PathCreationActionModeCallback ) ) { Log . d ( STRING , STRING ) ; return _BOOL ; } } v . performHapticFeedback ( HapticFeedbackConstants . LONG_PRESS ) ; if ( main . sta... | 118 |
java-test-11831 | java | How does configuration updates handle ? | without interrupting the service | @ Modified void modified ( Component Context comp Context ) throws Exception { logger . debug ( STRING , comp Context . get Properties ( ) ) ; try { Json Value new Config = enhanced Config . get Configuration As Json ( comp Context ) ; if ( has Config Changed ( config , new Config ) ) { Data Source Service old Data Sou... | @ Modified void modified ( ComponentContext compContext ) throws Exception { logger . debug ( STRING , compContext . getProperties ( ) ) ; try { JsonValue newConfig = enhancedConfig . getConfigurationAsJson ( compContext ) ; if ( hasConfigChanged ( config , newConfig ) ) { DataSourceService oldDataSourceService = confi... | 142 |
java-test-11834 | java | What does the code compute ? | a householder qr decomposition of a zmat | public Zhqrd ( Zmat A ) throws Jampack Exception { A . get Properties ( ) ; nrow = A . nr ; ncol = A . nc ; ntran = Math . min ( A . nr , A . nc ) ; U = new Z1 [ ntran ] ; R = new Zutmat ( A ) ; for ( int k = A . bx ; k < A . bx + ntran ; k ++ ) { U [ k - A . bx ] = House . genc ( R , k , A . rx , k ) ; House . ua ( U ... | public Zhqrd ( Zmat A ) throws JampackException { A . getProperties ( ) ; nrow = A . nr ; ncol = A . nc ; ntran = Math . min ( A . nr , A . nc ) ; U = new Z1 [ ntran ] ; R = new Zutmat ( A ) ; for ( int k = A . bx ; k < A . bx + ntran ; k ++ ) { U [ k - A . bx ] = House . genc ( R , k , A . rx , k ) ; House . ua ( U [ ... | 172 |
java-test-11836 | java | What does the code check ? | whether a pendingintent is register in alarmmanager | public static boolean check Alarm Service ( Context context , Pending Intent service Pending Intent ) { final Intent i = new Intent ( context , Github Widget Service . class ) ; return Pending Intent . get Service ( context , NUM , i , Pending Intent . FLAG NO CREATE ) != null ; } | public static boolean checkAlarmService ( Context context , PendingIntent servicePendingIntent ) { final Intent i = new Intent ( context , GithubWidgetService . class ) ; return PendingIntent . getService ( context , _NUM , i , PendingIntent . FLAG_NO_CREATE ) != null ; } | 57 |
java-test-11837 | java | What does p update also in the alivetimer and commfaulttag caches ? | the associated cache object | @ Override @ Transactional ( value = STRING ) public List < Process Change > do Create Equipment ( Configuration Element element ) throws Illegal Access Exception { Equipment equipment = super . create Abstract Equipment ( element ) ; equipment Facade . add Equipment To Process ( equipment . get Id ( ) , equipment . ge... | @ Override @ Transactional ( value = STRING ) public List < ProcessChange > doCreateEquipment ( ConfigurationElement element ) throws IllegalAccessException { Equipment equipment = super . createAbstractEquipment ( element ) ; equipmentFacade . addEquipmentToProcess ( equipment . getId ( ) , equipment . getProcessId ( ... | 162 |
java-test-11838 | java | For what purpose is the process in the cache updated ? | to refer to the new equipment | @ Override @ Transactional ( value = STRING ) public List < Process Change > do Create Equipment ( Configuration Element element ) throws Illegal Access Exception { Equipment equipment = super . create Abstract Equipment ( element ) ; equipment Facade . add Equipment To Process ( equipment . get Id ( ) , equipment . ge... | @ Override @ Transactional ( value = STRING ) public List < ProcessChange > doCreateEquipment ( ConfigurationElement element ) throws IllegalAccessException { Equipment equipment = super . createAbstractEquipment ( element ) ; equipmentFacade . addEquipmentToProcess ( equipment . getId ( ) , equipment . getProcessId ( ... | 162 |
java-test-11839 | java | Where does p update the associated cache object also ? | in the alivetimer and commfaulttag caches | @ Override @ Transactional ( value = STRING ) public List < Process Change > do Create Equipment ( Configuration Element element ) throws Illegal Access Exception { Equipment equipment = super . create Abstract Equipment ( element ) ; equipment Facade . add Equipment To Process ( equipment . get Id ( ) , equipment . ge... | @ Override @ Transactional ( value = STRING ) public List < ProcessChange > doCreateEquipment ( ConfigurationElement element ) throws IllegalAccessException { Equipment equipment = super . createAbstractEquipment ( element ) ; equipmentFacade . addEquipmentToProcess ( equipment . getId ( ) , equipment . getProcessId ( ... | 162 |
java-test-11840 | java | How does the code find the next graph node ? | in finishing time order | @ Override public Graph Node next Element ( ) { if ( empty ( ) ) { Graph Node v = the Next Element ; current Root = the Next Element ; info . set ( v . get Index ( ) , get Connected ( v ) ) ; push ( v ) ; } recurse : while ( ! empty ( ) ) { Graph Node v = peek ( ) ; Enumeration < Graph Node > pending Children = info . ... | @ Override public GraphNode nextElement ( ) { if ( empty ( ) ) { GraphNode v = theNextElement ; currentRoot = theNextElement ; info . set ( v . getIndex ( ) , getConnected ( v ) ) ; push ( v ) ; } recurse : while ( ! empty ( ) ) { GraphNode v = peek ( ) ; Enumeration < GraphNode > pendingChildren = info . get ( v . get... | 232 |
java-test-11841 | java | What does the code find in finishing time order ? | the next graph node | @ Override public Graph Node next Element ( ) { if ( empty ( ) ) { Graph Node v = the Next Element ; current Root = the Next Element ; info . set ( v . get Index ( ) , get Connected ( v ) ) ; push ( v ) ; } recurse : while ( ! empty ( ) ) { Graph Node v = peek ( ) ; Enumeration < Graph Node > pending Children = info . ... | @ Override public GraphNode nextElement ( ) { if ( empty ( ) ) { GraphNode v = theNextElement ; currentRoot = theNextElement ; info . set ( v . getIndex ( ) , getConnected ( v ) ) ; push ( v ) ; } recurse : while ( ! empty ( ) ) { GraphNode v = peek ( ) ; Enumeration < GraphNode > pendingChildren = info . get ( v . get... | 232 |
java-test-11842 | java | What do a utility find ? | the path to a dted file , given a lat , lon and a dted level | public String find File Name ( double lat , double lon , int level ) { if ( directories != null ) { for ( Iterator it = directories . iterator ( ) ; it . has Next ( ) ; ) { DTED Directory Handler ddh = ( DTED Directory Handler ) it . next ( ) ; DTED Name Translator dnt = ddh . get Translator ( ) ; dnt . set ( lat , lon... | public String findFileName ( double lat , double lon , int level ) { if ( directories != null ) { for ( Iterator it = directories . iterator ( ) ; it . hasNext ( ) ; ) { DTEDDirectoryHandler ddh = ( DTEDDirectoryHandler ) it . next ( ) ; DTEDNameTranslator dnt = ddh . getTranslator ( ) ; dnt . set ( lat , lon , level )... | 153 |
java-test-11843 | java | What does a utility assume ? | that paths have been given to the cache . lat / lons in decimal degrees | public String find File Name ( double lat , double lon , int level ) { if ( directories != null ) { for ( Iterator it = directories . iterator ( ) ; it . has Next ( ) ; ) { DTED Directory Handler ddh = ( DTED Directory Handler ) it . next ( ) ; DTED Name Translator dnt = ddh . get Translator ( ) ; dnt . set ( lat , lon... | public String findFileName ( double lat , double lon , int level ) { if ( directories != null ) { for ( Iterator it = directories . iterator ( ) ; it . hasNext ( ) ; ) { DTEDDirectoryHandler ddh = ( DTEDDirectoryHandler ) it . next ( ) ; DTEDNameTranslator dnt = ddh . getTranslator ( ) ; dnt . set ( lat , lon , level )... | 153 |
java-test-11844 | java | What does it execute if using postgres and constaintname doesn ' t exist to create it ? | constraintstatement | private static boolean create Constraint On Postgres ( Connection Source connection Source , String constraint Name , String constraint Statement ) throws SQL Exception { Preconditions . check Argument ( is Unquoted Sql Identifier ( constraint Name ) , STRING , constraint Name ) ; if ( ! ( connection Source . get Datab... | private static boolean createConstraintOnPostgres ( ConnectionSource connectionSource , String constraintName , String constraintStatement ) throws SQLException { Preconditions . checkArgument ( isUnquotedSqlIdentifier ( constraintName ) , STRING , constraintName ) ; if ( ! ( connectionSource . getDatabaseType ( ) inst... | 188 |
java-test-11847 | java | What does the code initialize for all interval size ? | the overallstats | private void init Overall Stats For All Intervals ( ) { m overall Stats For All Intervals = new Overall Stats [ m sub Interval Size List . length ] ; for ( int i = NUM ; i < m sub Interval Size List . length ; i ++ ) { final short sub Interval Size = m sub Interval Size List [ i ] ; m overall Stats For All Intervals [ ... | private void initOverallStatsForAllIntervals ( ) { m_overallStatsForAllIntervals = new OverallStats [ m_subIntervalSizeList . length ] ; for ( int i = _NUM ; i < m_subIntervalSizeList . length ; i ++ ) { final short subIntervalSize = m_subIntervalSizeList [ i ] ; m_overallStatsForAllIntervals [ i ] = new OverallStats (... | 88 |
java-test-11849 | java | Where does the code draw a border ? | around the graphic | private void draw Border ( Graphics 2 D g , int width , int height , Color color , float size ) { int max = ( int ) ( Math . min ( ( height - NUM ) * size , height / NUM ) + NUM ) ; int alpha Delta = color . get Alpha ( ) / max ; for ( int i = NUM ; i < max ; i ++ ) { Shape s = shape Generator . create Round Rectangle ... | private void drawBorder ( Graphics2D g , int width , int height , Color color , float size ) { int max = ( int ) ( Math . min ( ( height - _NUM ) * size , height / _NUM ) + _NUM ) ; int alphaDelta = color . getAlpha ( ) / max ; for ( int i = _NUM ; i < max ; i ++ ) { Shape s = shapeGenerator . createRoundRectangle ( i ... | 174 |
java-test-11855 | java | What does the code allocate till the system purges them ? | new files | public void test Purge ( ) throws Exception { List < Memory File > files = new Array List < Memory File > ( ) ; try { while ( BOOL ) { Memory File new File = new Memory File ( STRING , NUM ) ; new File . allow Purging ( BOOL ) ; new File . write Bytes ( test String , NUM , NUM , test String . length ) ; files . add ( n... | public void testPurge ( ) throws Exception { List < MemoryFile > files = new ArrayList < MemoryFile > ( ) ; try { while ( _BOOL ) { MemoryFile newFile = new MemoryFile ( STRING , _NUM ) ; newFile . allowPurging ( _BOOL ) ; newFile . writeBytes ( testString , _NUM , _NUM , testString . length ) ; files . add ( newFile )... | 150 |
java-test-11856 | java | What does the code keep ? | allocating new files till the system purges them | public void test Purge ( ) throws Exception { List < Memory File > files = new Array List < Memory File > ( ) ; try { while ( BOOL ) { Memory File new File = new Memory File ( STRING , NUM ) ; new File . allow Purging ( BOOL ) ; new File . write Bytes ( test String , NUM , NUM , test String . length ) ; files . add ( n... | public void testPurge ( ) throws Exception { List < MemoryFile > files = new ArrayList < MemoryFile > ( ) ; try { while ( _BOOL ) { MemoryFile newFile = new MemoryFile ( STRING , _NUM ) ; newFile . allowPurging ( _BOOL ) ; newFile . writeBytes ( testString , _NUM , _NUM , testString . length ) ; files . add ( newFile )... | 150 |
java-test-11857 | java | For what purpose does this method perform an asynchronous thrift call ? | to create a disk | @ Rpc Method public void create Disks ( String reservation , Async Method Callback < Host . Async Client . create disks call > handler ) throws Rpc Exception { ensure Client ( ) ; Create Disks Request create Disks Request = new Create Disks Request ( reservation ) ; client Proxy . set Timeout ( CREATE DISKS TIMEOUT MS ... | @ RpcMethod public void createDisks ( String reservation , AsyncMethodCallback < Host . AsyncClient . create_disks_call > handler ) throws RpcException { ensureClient ( ) ; CreateDisksRequest createDisksRequest = new CreateDisksRequest ( reservation ) ; clientProxy . setTimeout ( CREATE_DISKS_TIMEOUT_MS ) ; logger . in... | 119 |
java-test-11858 | java | For what purpose will this return the bernoulli trial ? | for the given event | public static double bernoullis ( double n , double k , double success Prob ) { double combo = Math Utils . combination ( n , k ) ; double q = NUM - success Prob ; return combo * Math . pow ( success Prob , k ) * Math . pow ( q , n - k ) ; } | public static double bernoullis ( double n , double k , double successProb ) { double combo = MathUtils . combination ( n , k ) ; double q = _NUM - successProb ; return combo * Math . pow ( successProb , k ) * Math . pow ( q , n - k ) ; } | 62 |
java-test-11859 | java | Where do a given event occur ? | in n independent trials | public static double bernoullis ( double n , double k , double success Prob ) { double combo = Math Utils . combination ( n , k ) ; double q = NUM - success Prob ; return combo * Math . pow ( success Prob , k ) * Math . pow ( q , n - k ) ; } | public static double bernoullis ( double n , double k , double successProb ) { double combo = MathUtils . combination ( n , k ) ; double q = _NUM - successProb ; return combo * Math . pow ( successProb , k ) * Math . pow ( q , n - k ) ; } | 62 |
java-test-11860 | java | What will this return for the given event ? | the bernoulli trial | public static double bernoullis ( double n , double k , double success Prob ) { double combo = Math Utils . combination ( n , k ) ; double q = NUM - success Prob ; return combo * Math . pow ( success Prob , k ) * Math . pow ( q , n - k ) ; } | public static double bernoullis ( double n , double k , double successProb ) { double combo = MathUtils . combination ( n , k ) ; double q = _NUM - successProb ; return combo * Math . pow ( successProb , k ) * Math . pow ( q , n - k ) ; } | 62 |
java-test-11861 | java | What does the code add to the list ? | project environments | public void add Project Runners ( @ Not Null List < Environment > project Environments ) { Default Action Group runners List = ( Default Action Group ) action Manager . get Action ( RUNNER LIST ) ; project Runners . clear ( ) ; clear Runner Actions ( runners List ) ; project Actions . remove All ( ) ; system Actions . ... | public void addProjectRunners ( @ NotNull List < Environment > projectEnvironments ) { DefaultActionGroup runnersList = ( DefaultActionGroup ) actionManager . getAction ( RUNNER_LIST ) ; projectRunners . clear ( ) ; clearRunnerActions ( runnersList ) ; projectActions . removeAll ( ) ; systemActions . removeAll ( ) ; fo... | 208 |
java-test-11864 | java | What does the code handle ? | the details of responding to a propertychangeevent from a throttle | protected void throttle Property Change ( Property Change Event event ) { String event Name = event . get Property Name ( ) ; Object old Value = event . get Old Value ( ) ; Object new Value = event . get New Value ( ) ; if ( ! enabled ) { log . debug ( STRING ) ; return ; } log . warn ( STRING + event Name ) ; if ( old... | protected void throttlePropertyChange ( PropertyChangeEvent event ) { String eventName = event . getPropertyName ( ) ; Object oldValue = event . getOldValue ( ) ; Object newValue = event . getNewValue ( ) ; if ( ! enabled ) { log . debug ( STRING ) ; return ; } log . warn ( STRING + eventName ) ; if ( oldValue != null ... | 168 |
java-test-11865 | java | Where does the code run the given method under test ? | in all possible states of a mediaplayer object | public void run Test On Method ( Media Player Method Under Test test Method ) { m Method Under Test = test Method ; if ( m Method Under Test != null ) { initialize Message Looper ( ) ; synchronized ( lock ) { try { lock . wait ( WAIT FOR COMMAND TO COMPLETE ) ; } catch ( Exception e ) { Log . v ( TAG , STRING ) ; } } a... | public void runTestOnMethod ( MediaPlayerMethodUnderTest testMethod ) { mMethodUnderTest = testMethod ; if ( mMethodUnderTest != null ) { initializeMessageLooper ( ) ; synchronized ( lock ) { try { lock . wait ( WAIT_FOR_COMMAND_TO_COMPLETE ) ; } catch ( Exception e ) { Log . v ( TAG , STRING ) ; } } assertTrue ( mInit... | 132 |
java-test-11866 | java | How are type parameters identified ? | by providing the class in which the type parameter is defined , and the declared name of the type parameter | public static < T , U > void check Type Parameter Is Assignable ( Class < T > param Defining Class 1 , String param Name 1 , T object 1 , Class < U > param Defining Class 2 , String param Name 2 , U object 2 ) throws Resource Initialization Exception { java . lang . reflect . Type type 1 = Reflection Util . get Type Ar... | public static < T , U > void checkTypeParameterIsAssignable ( Class < T > paramDefiningClass1 , String paramName1 , T object1 , Class < U > paramDefiningClass2 , String paramName2 , U object2 ) throws ResourceInitializationException { java . lang . reflect . Type type1 = ReflectionUtil . getTypeArgument ( paramDefining... | 191 |
java-test-11867 | java | What is defined the class ? | the type parameter | public static < T , U > void check Type Parameter Is Assignable ( Class < T > param Defining Class 1 , String param Name 1 , T object 1 , Class < U > param Defining Class 2 , String param Name 2 , U object 2 ) throws Resource Initialization Exception { java . lang . reflect . Type type 1 = Reflection Util . get Type Ar... | public static < T , U > void checkTypeParameterIsAssignable ( Class < T > paramDefiningClass1 , String paramName1 , T object1 , Class < U > paramDefiningClass2 , String paramName2 , U object2 ) throws ResourceInitializationException { java . lang . reflect . Type type1 = ReflectionUtil . getTypeArgument ( paramDefining... | 191 |
java-test-11869 | java | When is this method called ? | before a call to background painting is made | public void paint ( Graphics g , Component c ) { int x = c . get X ( ) ; int y = c . get Y ( ) ; int width = c . get Width ( ) ; int height = c . get Height ( ) ; if ( outer Border != null ) { if ( paint Outer Border First ) { outer Border . paint ( g , x , y , width , height , c ) ; paint ( g , x + thickness , y + thi... | public void paint ( Graphics g , Component c ) { int x = c . getX ( ) ; int y = c . getY ( ) ; int width = c . getWidth ( ) ; int height = c . getHeight ( ) ; if ( outerBorder != null ) { if ( paintOuterBorderFirst ) { outerBorder . paint ( g , x , y , width , height , c ) ; paint ( g , x + thickness , y + thickness , ... | 181 |
java-test-11870 | java | For what purpose does the code draw the border ? | for the given component | public void paint ( Graphics g , Component c ) { int x = c . get X ( ) ; int y = c . get Y ( ) ; int width = c . get Width ( ) ; int height = c . get Height ( ) ; if ( outer Border != null ) { if ( paint Outer Border First ) { outer Border . paint ( g , x , y , width , height , c ) ; paint ( g , x + thickness , y + thi... | public void paint ( Graphics g , Component c ) { int x = c . getX ( ) ; int y = c . getY ( ) ; int width = c . getWidth ( ) ; int height = c . getHeight ( ) ; if ( outerBorder != null ) { if ( paintOuterBorderFirst ) { outerBorder . paint ( g , x , y , width , height , c ) ; paint ( g , x + thickness , y + thickness , ... | 181 |
java-test-11873 | java | What do an in filter convert ? | to a join with an inline access path | @ Suppress Warnings ( STRING ) private static final Pipeline Op add Known In Conditional ( Pipeline Op left , final Filter Node filter , final AST 2 B Op Context ctx ) { final In B Op bop = ( In B Op ) filter . get Value Expression ( ) ; final I Constant < IV > [ ] set = bop . get Set ( ) ; final Linked Hash Set < IV >... | @ SuppressWarnings ( STRING ) private static final PipelineOp addKnownInConditional ( PipelineOp left , final FilterNode filter , final AST2BOpContext ctx ) { final InBOp bop = ( InBOp ) filter . getValueExpression ( ) ; final IConstant < IV > [ ] set = bop . getSet ( ) ; final LinkedHashSet < IV > ivs = new LinkedHash... | 209 |
java-test-11874 | java | What converts to a join with an inline access path ? | an in filter | @ Suppress Warnings ( STRING ) private static final Pipeline Op add Known In Conditional ( Pipeline Op left , final Filter Node filter , final AST 2 B Op Context ctx ) { final In B Op bop = ( In B Op ) filter . get Value Expression ( ) ; final I Constant < IV > [ ] set = bop . get Set ( ) ; final Linked Hash Set < IV >... | @ SuppressWarnings ( STRING ) private static final PipelineOp addKnownInConditional ( PipelineOp left , final FilterNode filter , final AST2BOpContext ctx ) { final InBOp bop = ( InBOp ) filter . getValueExpression ( ) ; final IConstant < IV > [ ] set = bop . getSet ( ) ; final LinkedHashSet < IV > ivs = new LinkedHash... | 209 |
java-test-11875 | java | What do it call closeclosable if it ' s found , but there are too many files open to try to get an open file pointer from the system ? | binaryfile | protected Random Access File init ( File f ) throws IO Exception { Random Access File input File = null ; try { input File = new Random Access File ( f , STRING ) ; } catch ( IO Exception i ) { if ( i instanceof File Not Found Exception ) { throw i ; } if ( f . can Read ( ) ) { Binary File . close Closable ( ) ; input ... | protected RandomAccessFile init ( File f ) throws IOException { RandomAccessFile inputFile = null ; try { inputFile = new RandomAccessFile ( f , STRING ) ; } catch ( IOException i ) { if ( i instanceof FileNotFoundException ) { throw i ; } if ( f . canRead ( ) ) { BinaryFile . closeClosable ( ) ; inputFile = new Random... | 102 |
java-test-11876 | java | What do it get from the system ? | an open file pointer | protected Random Access File init ( File f ) throws IO Exception { Random Access File input File = null ; try { input File = new Random Access File ( f , STRING ) ; } catch ( IO Exception i ) { if ( i instanceof File Not Found Exception ) { throw i ; } if ( f . can Read ( ) ) { Binary File . close Closable ( ) ; input ... | protected RandomAccessFile init ( File f ) throws IOException { RandomAccessFile inputFile = null ; try { inputFile = new RandomAccessFile ( f , STRING ) ; } catch ( IOException i ) { if ( i instanceof FileNotFoundException ) { throw i ; } if ( f . canRead ( ) ) { BinaryFile . closeClosable ( ) ; inputFile = new Random... | 102 |
java-test-11877 | java | What are the code initialize if it ' s found , but there are too many files open ? | the underlying randomaccessfile | protected Random Access File init ( File f ) throws IO Exception { Random Access File input File = null ; try { input File = new Random Access File ( f , STRING ) ; } catch ( IO Exception i ) { if ( i instanceof File Not Found Exception ) { throw i ; } if ( f . can Read ( ) ) { Binary File . close Closable ( ) ; input ... | protected RandomAccessFile init ( File f ) throws IOException { RandomAccessFile inputFile = null ; try { inputFile = new RandomAccessFile ( f , STRING ) ; } catch ( IOException i ) { if ( i instanceof FileNotFoundException ) { throw i ; } if ( f . canRead ( ) ) { BinaryFile . closeClosable ( ) ; inputFile = new Random... | 102 |
java-test-11878 | java | For what purpose do it call binaryfile closeclosable if it ' s found , but there are too many files open ? | to try to get an open file pointer from the system | protected Random Access File init ( File f ) throws IO Exception { Random Access File input File = null ; try { input File = new Random Access File ( f , STRING ) ; } catch ( IO Exception i ) { if ( i instanceof File Not Found Exception ) { throw i ; } if ( f . can Read ( ) ) { Binary File . close Closable ( ) ; input ... | protected RandomAccessFile init ( File f ) throws IOException { RandomAccessFile inputFile = null ; try { inputFile = new RandomAccessFile ( f , STRING ) ; } catch ( IOException i ) { if ( i instanceof FileNotFoundException ) { throw i ; } if ( f . canRead ( ) ) { BinaryFile . closeClosable ( ) ; inputFile = new Random... | 102 |
java-test-11879 | java | For what purpose are words separated with eight words ( 32 bytes ) per line ? | for readability | public static String to Hex String ( Big Integer b ) { String hex Value = b . to String ( NUM ) ; String Buffer buf = new String Buffer ( hex Value . length ( ) * NUM ) ; if ( hex Value . starts With ( STRING ) ) { buf . append ( STRING ) ; hex Value = hex Value . substring ( NUM ) ; } else { buf . append ( STRING ) ; ... | public static String toHexString ( BigInteger b ) { String hexValue = b . toString ( _NUM ) ; StringBuffer buf = new StringBuffer ( hexValue . length ( ) * _NUM ) ; if ( hexValue . startsWith ( STRING ) ) { buf . append ( STRING ) ; hexValue = hexValue . substring ( _NUM ) ; } else { buf . append ( STRING ) ; } if ( ( ... | 206 |
java-test-11880 | java | Where did the value fit ? | on lines of at least 75 characters | public static String to Hex String ( Big Integer b ) { String hex Value = b . to String ( NUM ) ; String Buffer buf = new String Buffer ( hex Value . length ( ) * NUM ) ; if ( hex Value . starts With ( STRING ) ) { buf . append ( STRING ) ; hex Value = hex Value . substring ( NUM ) ; } else { buf . append ( STRING ) ; ... | public static String toHexString ( BigInteger b ) { String hexValue = b . toString ( _NUM ) ; StringBuffer buf = new StringBuffer ( hexValue . length ( ) * _NUM ) ; if ( hexValue . startsWith ( STRING ) ) { buf . append ( STRING ) ; hexValue = hexValue . substring ( _NUM ) ; } else { buf . append ( STRING ) ; } if ( ( ... | 206 |
java-test-11881 | java | How are words separated for readability ? | with eight words ( 32 bytes ) per line | public static String to Hex String ( Big Integer b ) { String hex Value = b . to String ( NUM ) ; String Buffer buf = new String Buffer ( hex Value . length ( ) * NUM ) ; if ( hex Value . starts With ( STRING ) ) { buf . append ( STRING ) ; hex Value = hex Value . substring ( NUM ) ; } else { buf . append ( STRING ) ; ... | public static String toHexString ( BigInteger b ) { String hexValue = b . toString ( _NUM ) ; StringBuffer buf = new StringBuffer ( hexValue . length ( ) * _NUM ) ; if ( hexValue . startsWith ( STRING ) ) { buf . append ( STRING ) ; hexValue = hexValue . substring ( _NUM ) ; } else { buf . append ( STRING ) ; } if ( ( ... | 206 |
java-test-11882 | java | What is the value formatted ? | to fit on lines of at least 75 characters , with embedded newlines | public static String to Hex String ( Big Integer b ) { String hex Value = b . to String ( NUM ) ; String Buffer buf = new String Buffer ( hex Value . length ( ) * NUM ) ; if ( hex Value . starts With ( STRING ) ) { buf . append ( STRING ) ; hex Value = hex Value . substring ( NUM ) ; } else { buf . append ( STRING ) ; ... | public static String toHexString ( BigInteger b ) { String hexValue = b . toString ( _NUM ) ; StringBuffer buf = new StringBuffer ( hexValue . length ( ) * _NUM ) ; if ( hexValue . startsWith ( STRING ) ) { buf . append ( STRING ) ; hexValue = hexValue . substring ( _NUM ) ; } else { buf . append ( STRING ) ; } if ( ( ... | 206 |
java-test-11883 | java | How do the appropriate context menu open ? | on right - click on an emote | private void open Context Menu ( Mouse Event e ) { if ( e . is Popup Trigger ( ) ) { Emoticon Image emote = ( ( Emote ) e . get Source ( ) ) . emote ; J Popup Menu m = new Emote Context Menu ( emote , context Menu Listener ) ; m . show ( e . get Component ( ) , e . get X ( ) , e . get Y ( ) ) ; } } | private void openContextMenu ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { EmoticonImage emote = ( ( Emote ) e . getSource ( ) ) . emote ; JPopupMenu m = new EmoteContextMenu ( emote , contextMenuListener ) ; m . show ( e . getComponent ( ) , e . getX ( ) , e . getY ( ) ) ; } } | 85 |
java-test-11884 | java | What does the code create ? | a storage policy create request | public Storage Policy Create Request create Storage Policy Create Request ( Storage Policy Key storage Policy Key , String storage Policy Rule Type , Integer storage Policy Rule Value , String business Object Definition Namespace , String business Object Definition Name , String business Object Format Usage , String bu... | public StoragePolicyCreateRequest createStoragePolicyCreateRequest ( StoragePolicyKey storagePolicyKey , String storagePolicyRuleType , Integer storagePolicyRuleValue , String businessObjectDefinitionNamespace , String businessObjectDefinitionName , String businessObjectFormatUsage , String businessObjectFormatFileType... | 305 |
java-test-11885 | java | What does the code add to this fragment ? | all parent comments | private void add Parent Comments ( List < ? extends I Endless Adaptable > loaded Items , Comment comment In Context , List < I Endless Adaptable > displayed Comments ) { int depth = comment In Context . get Depth ( ) ; if ( depth == NUM ) return ; -- depth ; int comment Position = loaded Items . index Of ( comment In C... | private void addParentComments ( List < ? extends IEndlessAdaptable > loadedItems , Comment commentInContext , List < IEndlessAdaptable > displayedComments ) { int depth = commentInContext . getDepth ( ) ; if ( depth == _NUM ) return ; -- depth ; int commentPosition = loadedItems . indexOf ( commentInContext ) ; for ( ... | 151 |
java-test-11890 | java | When should the twitlonger callback be done ? | after successfully using the ' post ' method | public void callback ( final long status id , final String twitlonger message id ) throws Exception { final Array List < Name Value Pair > args = new Array List < > ( NUM ) ; args . add ( new Basic Name Value Pair ( STRING , app name ) ) ; args . add ( new Basic Name Value Pair ( STRING , api key ) ) ; args . add ( new... | public void callback ( final long status_id , final String twitlonger_message_id ) throws Exception { final ArrayList < NameValuePair > args = new ArrayList < > ( _NUM ) ; args . add ( new BasicNameValuePair ( STRING , app_name ) ) ; args . add ( new BasicNameValuePair ( STRING , api_key ) ) ; args . add ( new BasicNam... | 611 |
java-test-11895 | java | What is produced this same format in the crowdflower . com task1 ? | by the js | private String build Task 1 Gold Elem ( String Builder text Builder , List < String > gold Elems ) { String str Gold ; text Builder . set Length ( NUM ) ; text Builder . append ( STRING ) ; text Builder . append ( concat With Separator ( gold Elems , STRING ) ) ; text Builder . append ( STRING ) ; str Gold = new String... | private String buildTask1GoldElem ( StringBuilder textBuilder , List < String > goldElems ) { String strGold ; textBuilder . setLength ( _NUM ) ; textBuilder . append ( STRING ) ; textBuilder . append ( concatWithSeparator ( goldElems , STRING ) ) ; textBuilder . append ( STRING ) ; strGold = new String ( textBuilder )... | 81 |
java-test-11896 | java | Where is by the js produced this same format ? | in the crowdflower . com task1 | private String build Task 1 Gold Elem ( String Builder text Builder , List < String > gold Elems ) { String str Gold ; text Builder . set Length ( NUM ) ; text Builder . append ( STRING ) ; text Builder . append ( concat With Separator ( gold Elems , STRING ) ) ; text Builder . append ( STRING ) ; str Gold = new String... | private String buildTask1GoldElem ( StringBuilder textBuilder , List < String > goldElems ) { String strGold ; textBuilder . setLength ( _NUM ) ; textBuilder . append ( STRING ) ; textBuilder . append ( concatWithSeparator ( goldElems , STRING ) ) ; textBuilder . append ( STRING ) ; strGold = new String ( textBuilder )... | 81 |
java-test-11897 | java | What does helper method for generatetask1data concatenate ? | all json formatted tokens ( sorted by position ) which is then the gold solution | private String build Task 1 Gold Elem ( String Builder text Builder , List < String > gold Elems ) { String str Gold ; text Builder . set Length ( NUM ) ; text Builder . append ( STRING ) ; text Builder . append ( concat With Separator ( gold Elems , STRING ) ) ; text Builder . append ( STRING ) ; str Gold = new String... | private String buildTask1GoldElem ( StringBuilder textBuilder , List < String > goldElems ) { String strGold ; textBuilder . setLength ( _NUM ) ; textBuilder . append ( STRING ) ; textBuilder . append ( concatWithSeparator ( goldElems , STRING ) ) ; textBuilder . append ( STRING ) ; strGold = new String ( textBuilder )... | 81 |
java-test-11898 | java | What does the code create with no initial experiment ? | the run panel | public Run Panel ( ) { m Start But . add Action Listener ( this ) ; m Stop But . add Action Listener ( this ) ; m Start But . set Enabled ( BOOL ) ; m Stop But . set Enabled ( BOOL ) ; m Start But . set Mnemonic ( STRING ) ; m Stop But . set Mnemonic ( STRING ) ; m Log . status Message ( NOT RUNNING ) ; J Panel control... | public RunPanel ( ) { m_StartBut . addActionListener ( this ) ; m_StopBut . addActionListener ( this ) ; m_StartBut . setEnabled ( _BOOL ) ; m_StopBut . setEnabled ( _BOOL ) ; m_StartBut . setMnemonic ( STRING ) ; m_StopBut . setMnemonic ( STRING ) ; m_Log . statusMessage ( NOT_RUNNING ) ; JPanel controls = new JPanel ... | 282 |
java-test-11899 | java | How does the code create the run panel ? | with no initial experiment | public Run Panel ( ) { m Start But . add Action Listener ( this ) ; m Stop But . add Action Listener ( this ) ; m Start But . set Enabled ( BOOL ) ; m Stop But . set Enabled ( BOOL ) ; m Start But . set Mnemonic ( STRING ) ; m Stop But . set Mnemonic ( STRING ) ; m Log . status Message ( NOT RUNNING ) ; J Panel control... | public RunPanel ( ) { m_StartBut . addActionListener ( this ) ; m_StopBut . addActionListener ( this ) ; m_StartBut . setEnabled ( _BOOL ) ; m_StopBut . setEnabled ( _BOOL ) ; m_StartBut . setMnemonic ( STRING ) ; m_StopBut . setMnemonic ( STRING ) ; m_Log . statusMessage ( NOT_RUNNING ) ; JPanel controls = new JPanel ... | 282 |
java-test-11902 | java | What does the code find ? | the index of the start of the argument name | private int extract Arg Name ( int index , String working ) { for ( int i = index ; i < working . length ( ) ; i ++ ) { char c = working . char At ( i ) ; if ( c == STRING ) return i ; if ( c == STRING ) return i ; } return - NUM ; } | private int extractArgName ( int index , String working ) { for ( int i = index ; i < working . length ( ) ; i ++ ) { char c = working . charAt ( i ) ; if ( c == STRING ) return i ; if ( c == STRING ) return i ; } return - _NUM ; } | 67 |
java-test-11903 | java | For what purpose was no compression method specified ? | for the entry | public void put Next Entry ( Zip Entry e ) throws IO Exception { ensure Open ( ) ; if ( current != null ) { close Entry ( ) ; } if ( e . xdostime == - NUM ) { e . set Time ( System . current Time Millis ( ) ) ; } if ( e . method == - NUM ) { e . method = method ; } e . flag = NUM ; switch ( e . method ) { case DEFLATED... | public void putNextEntry ( ZipEntry e ) throws IOException { ensureOpen ( ) ; if ( current != null ) { closeEntry ( ) ; } if ( e . xdostime == - _NUM ) { e . setTime ( System . currentTimeMillis ( ) ) ; } if ( e . method == - _NUM ) { e . method = method ; } e . flag = _NUM ; switch ( e . method ) { case DEFLATED : if ... | 290 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.