id stringlengths 11 15 | language stringclasses 1
value | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-11716 | java | What does the code generate ? | the mainactivity java code for exemple and its associated layout | private void generate Java File ( ) throws IO Exception { Custom Logger . log ( STRING + java File Name ) ; File main Activity File = new File ( java Folder , java File Name ) ; Buffered Writer main Activity BW = create It ( main Activity File ) ; Custom Logger . log ( STRING + main Activity File . get Absolute Path ( ... | private void generateJavaFile ( ) throws IOException { CustomLogger . log ( STRING + javaFileName ) ; File mainActivityFile = new File ( javaFolder , javaFileName ) ; BufferedWriter mainActivityBW = createIt ( mainActivityFile ) ; CustomLogger . log ( STRING + mainActivityFile . getAbsolutePath ( ) ) ; mainActivityBW .... | 184 |
java-test-11717 | java | What can you not filter ? | the last token | public static Properties filter Properties ( Properties properties , String prefix ) { Properties ret = new Properties ( ) ; if ( properties != null && prefix != null ) { prefix = prefix . ends With ( STRING ) ? prefix : prefix + STRING ; for ( String name : properties . string Property Names ( ) ) { String new Name = ... | public static Properties filterProperties ( Properties properties , String prefix ) { Properties ret = new Properties ( ) ; if ( properties != null && prefix != null ) { prefix = prefix . endsWith ( STRING ) ? prefix : prefix + STRING ; for ( String name : properties . stringPropertyNames ( ) ) { String newName = remov... | 163 |
java-test-11718 | java | What does the code produce ? | a shallow copy of this attribute with a new name | public final Attribute copy ( String new Name ) { Attribute copy = new Attribute ( new Name ) ; copy . m Index = m Index ; copy . m Type = m Type ; copy . m Attribute Info = m Attribute Info ; copy . m Attribute Meta Info = m Attribute Meta Info ; return copy ; } | public final Attribute copy ( String newName ) { Attribute copy = new Attribute ( newName ) ; copy . m_Index = m_Index ; copy . m_Type = m_Type ; copy . m_AttributeInfo = m_AttributeInfo ; copy . m_AttributeMetaInfo = m_AttributeMetaInfo ; return copy ; } | 62 |
java-test-11720 | java | What does the code serialize into a json string ? | the tungstenproperties | public String to JSON ( boolean pretty Print ) throws Json Generation Exception , Json Mapping Exception , IO Exception { String json = null ; Object Mapper mapper = new Object Mapper ( ) ; mapper . configure ( Feature . INDENT OUTPUT , BOOL ) ; mapper . configure ( Feature . SORT PROPERTIES ALPHABETICALLY , BOOL ) ; O... | public String toJSON ( boolean prettyPrint ) throws JsonGenerationException , JsonMappingException , IOException { String json = null ; ObjectMapper mapper = new ObjectMapper ( ) ; mapper . configure ( Feature . INDENT_OUTPUT , _BOOL ) ; mapper . configure ( Feature . SORT_PROPERTIES_ALPHABETICALLY , _BOOL ) ; ObjectWr... | 103 |
java-test-11721 | java | Where does true return ? | for a case where the edt has nothing at all to do | boolean should EDT Sleep ( ) { Form current = impl . get Current Form ( ) ; return ( ( current == null || ( ! current . has Animations ( ) ) ) && ( animation Queue == null || animation Queue . size ( ) == NUM ) && input Event Stack Pointer == NUM && ( ! impl . has Pending Paints ( ) ) && has No Serial Calls Pending ( )... | boolean shouldEDTSleep ( ) { Form current = impl . getCurrentForm ( ) ; return ( ( current == null || ( ! current . hasAnimations ( ) ) ) && ( animationQueue == null || animationQueue . size ( ) == _NUM ) && inputEventStackPointer == _NUM && ( ! impl . hasPendingPaints ( ) ) && hasNoSerialCallsPending ( ) && ! keyRepea... | 105 |
java-test-11722 | java | What does the edt have a case ? | nothing at all to do | boolean should EDT Sleep ( ) { Form current = impl . get Current Form ( ) ; return ( ( current == null || ( ! current . has Animations ( ) ) ) && ( animation Queue == null || animation Queue . size ( ) == NUM ) && input Event Stack Pointer == NUM && ( ! impl . has Pending Paints ( ) ) && has No Serial Calls Pending ( )... | boolean shouldEDTSleep ( ) { Form current = impl . getCurrentForm ( ) ; return ( ( current == null || ( ! current . hasAnimations ( ) ) ) && ( animationQueue == null || animationQueue . size ( ) == _NUM ) && inputEventStackPointer == _NUM && ( ! impl . hasPendingPaints ( ) ) && hasNoSerialCallsPending ( ) && ! keyRepea... | 105 |
java-test-11729 | java | How can the volume be be placed into the exportmask , given by its uri potentially ? | with given uri | public void add As Alternative Export For Volume ( URI volume URI , URI export Mask URI ) { Set < URI > alternates For Volume = volume To Alternative Masks . get ( volume URI ) ; if ( alternates For Volume == null ) { alternates For Volume = new Hash Set < > ( ) ; volume To Alternative Masks . put ( volume URI , altern... | public void addAsAlternativeExportForVolume ( URI volumeURI , URI exportMaskURI ) { Set < URI > alternatesForVolume = volumeToAlternativeMasks . get ( volumeURI ) ; if ( alternatesForVolume == null ) { alternatesForVolume = new HashSet < > ( ) ; volumeToAlternativeMasks . put ( volumeURI , alternatesForVolume ) ; } alt... | 87 |
java-test-11731 | java | What does this remove ? | characters between maching charlimit chars | public static String crop Between ( String in , String limit ) { String Builder out = new String Builder ( ) ; int last Pos = NUM ; int len Limit = limit . length ( ) ; boolean mode Add = BOOL ; int pos = - NUM ; while ( ( pos = in . index Of ( limit , last Pos ) ) >= NUM ) { if ( mode Add ) { out . append ( in . subst... | public static String cropBetween ( String in , String limit ) { StringBuilder out = new StringBuilder ( ) ; int lastPos = _NUM ; int lenLimit = limit . length ( ) ; boolean modeAdd = _BOOL ; int pos = - _NUM ; while ( ( pos = in . indexOf ( limit , lastPos ) ) >= _NUM ) { if ( modeAdd ) { out . append ( in . substring ... | 138 |
java-test-11732 | java | What will it consider in the output ? | squences of 2 charlimit as one charlimit | public static String crop Between ( String in , String limit ) { String Builder out = new String Builder ( ) ; int last Pos = NUM ; int len Limit = limit . length ( ) ; boolean mode Add = BOOL ; int pos = - NUM ; while ( ( pos = in . index Of ( limit , last Pos ) ) >= NUM ) { if ( mode Add ) { out . append ( in . subst... | public static String cropBetween ( String in , String limit ) { StringBuilder out = new StringBuilder ( ) ; int lastPos = _NUM ; int lenLimit = limit . length ( ) ; boolean modeAdd = _BOOL ; int pos = - _NUM ; while ( ( pos = in . indexOf ( limit , lastPos ) ) >= _NUM ) { if ( modeAdd ) { out . append ( in . substring ... | 138 |
java-test-11733 | java | What has that back - up procedure produces whereas the url has the db name as databases / db1 ? | a db named db1 | private String parse DB Name ( ) { String dbname ; final int dbname Start Position = db URL . last Index Of ( File . separator ) ; final int dburl Length = db URL . length ( ) ; dbname = db URL . substring ( dbname Start Position + NUM , dburl Length ) ; return dbname ; } | private String parseDBName ( ) { String dbname ; final int dbnameStartPosition = dbURL . lastIndexOf ( File . separator ) ; final int dburlLength = dbURL . length ( ) ; dbname = dbURL . substring ( dbnameStartPosition + _NUM , dburlLength ) ; return dbname ; } | 62 |
java-test-11734 | java | What would this method return simply the reason ? | db1 rather than databases / db1 | private String parse DB Name ( ) { String dbname ; final int dbname Start Position = db URL . last Index Of ( File . separator ) ; final int dburl Length = db URL . length ( ) ; dbname = db URL . substring ( dbname Start Position + NUM , dburl Length ) ; return dbname ; } | private String parseDBName ( ) { String dbname ; final int dbnameStartPosition = dbURL . lastIndexOf ( File . separator ) ; final int dburlLength = dbURL . length ( ) ; dbname = dbURL . substring ( dbnameStartPosition + _NUM , dburlLength ) ; return dbname ; } | 62 |
java-test-11735 | java | What has produces a db named db1 whereas the url has the db name as databases / db1 ? | that back - up procedure | private String parse DB Name ( ) { String dbname ; final int dbname Start Position = db URL . last Index Of ( File . separator ) ; final int dburl Length = db URL . length ( ) ; dbname = db URL . substring ( dbname Start Position + NUM , dburl Length ) ; return dbname ; } | private String parseDBName ( ) { String dbname ; final int dbnameStartPosition = dbURL . lastIndexOf ( File . separator ) ; final int dburlLength = dbURL . length ( ) ; dbname = dbURL . substring ( dbnameStartPosition + _NUM , dburlLength ) ; return dbname ; } | 62 |
java-test-11737 | java | What does the code remove to either a turnout , a positionable point , or a level crossing wherever it is assigned ? | the assignment of the specified sensor | public void remove Sensor Assignment ( Sensor sensor ) { if ( sensor == null ) { return ; } for ( Positionable Point po : layout Editor . point List ) { if ( ( po . get East Bound Sensor ( ) != null ) && po . get East Bound Sensor ( ) == sensor ) { po . set East Bound Sensor ( null ) ; } if ( ( po . get West Bound Sens... | public void removeSensorAssignment ( Sensor sensor ) { if ( sensor == null ) { return ; } for ( PositionablePoint po : layoutEditor . pointList ) { if ( ( po . getEastBoundSensor ( ) != null ) && po . getEastBoundSensor ( ) == sensor ) { po . setEastBoundSensor ( null ) ; } if ( ( po . getWestBoundSensor ( ) != null ) ... | 577 |
java-test-11743 | java | When did the code call ? | when tts is ready | private void on Tts Ready ( ) { Locale locale = Locale . get Default ( ) ; int language Availability = tts . is Language Available ( locale ) ; if ( language Availability == Text To Speech . LANG MISSING DATA || language Availability == Text To Speech . LANG NOT SUPPORTED ) { Log . w ( TAG , STRING ) ; locale = Locale ... | private void onTtsReady ( ) { Locale locale = Locale . getDefault ( ) ; int languageAvailability = tts . isLanguageAvailable ( locale ) ; if ( languageAvailability == TextToSpeech . LANG_MISSING_DATA || languageAvailability == TextToSpeech . LANG_NOT_SUPPORTED ) { Log . w ( TAG , STRING ) ; locale = Locale . ENGLISH ; ... | 104 |
java-test-11744 | java | What does the code prepare if the server connection changed by running the verification and the purge ? | the deployment | protected boolean prepare Deployment ( @ Nullable Project project , @ Nullable final Data Context data Context , final Progress Handler progress Handler ) { boolean is Verified = BOOL ; if ( project != null ) { is Verified = do Verify ( project , data Context , progress Handler ) ; if ( is Verified ) { final Sling Serv... | protected boolean prepareDeployment ( @ Nullable Project project , @ Nullable final DataContext dataContext , final ProgressHandler progressHandler ) { boolean isVerified = _BOOL ; if ( project != null ) { isVerified = doVerify ( project , dataContext , progressHandler ) ; if ( isVerified ) { final SlingServerTreeSelec... | 275 |
java-test-11745 | java | How does the code prepare the deployment if the server connection changed ? | by running the verification and the purge | protected boolean prepare Deployment ( @ Nullable Project project , @ Nullable final Data Context data Context , final Progress Handler progress Handler ) { boolean is Verified = BOOL ; if ( project != null ) { is Verified = do Verify ( project , data Context , progress Handler ) ; if ( is Verified ) { final Sling Serv... | protected boolean prepareDeployment ( @ Nullable Project project , @ Nullable final DataContext dataContext , final ProgressHandler progressHandler ) { boolean isVerified = _BOOL ; if ( project != null ) { isVerified = doVerify ( project , dataContext , progressHandler ) ; if ( isVerified ) { final SlingServerTreeSelec... | 275 |
java-test-11746 | java | What does the code run ? | the verification and the purge | protected boolean prepare Deployment ( @ Nullable Project project , @ Nullable final Data Context data Context , final Progress Handler progress Handler ) { boolean is Verified = BOOL ; if ( project != null ) { is Verified = do Verify ( project , data Context , progress Handler ) ; if ( is Verified ) { final Sling Serv... | protected boolean prepareDeployment ( @ Nullable Project project , @ Nullable final DataContext dataContext , final ProgressHandler progressHandler ) { boolean isVerified = _BOOL ; if ( project != null ) { isVerified = doVerify ( project , dataContext , progressHandler ) ; if ( isVerified ) { final SlingServerTreeSelec... | 275 |
java-test-11748 | java | What does the code execute in sequence ? | all configuration proxy instances | private static void execute ( final String [ ] args ) throws Exception { List < String > instances ; if ( args . length > NUM ) { instances = Arrays . as List ( args ) ; } else { instances = Conf Proxy Helper . available Instances ( ) ; } for ( String instance : instances ) { try { Conf Proxy proxy = new Conf Proxy ( i... | private static void execute ( final String [ ] args ) throws Exception { List < String > instances ; if ( args . length > _NUM ) { instances = Arrays . asList ( args ) ; } else { instances = ConfProxyHelper . availableInstances ( ) ; } for ( String instance : instances ) { try { ConfProxy proxy = new ConfProxy ( instan... | 102 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.