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-4680 | java | Where do a number of items with the same feature have ? | in a recommendation list of a given size | public double patience ( int k , F f , int N ) { double pf = p ( f ) ; Binomial Distribution dist = new Binomial Distribution ( null , N , pf ) ; double p0 = Math . pow ( NUM - pf , N ) ; return NUM - ( dist . cumulative Probability ( k - NUM ) - p0 ) / ( NUM - p0 ) ; } | public double patience ( int k , F f , int N ) { double pf = p ( f ) ; BinomialDistribution dist = new BinomialDistribution ( null , N , pf ) ; double p0 = Math . pow ( _NUM - pf , N ) ; return _NUM - ( dist . cumulativeProbability ( k - _NUM ) - p0 ) / ( _NUM - p0 ) ; } | 75 |
java-test-4682 | java | What returns in a string ? | all the options | protected static String make Option String ( Data Generator generator ) { String Buffer result ; Enumeration < Option > enm ; Option option ; result = new String Buffer ( ) ; result . append ( STRING ) ; enm = generator . list Options ( ) ; while ( enm . has More Elements ( ) ) { option = enm . next Element ( ) ; if ( ... | protected static String makeOptionString ( DataGenerator generator ) { StringBuffer result ; Enumeration < Option > enm ; Option option ; result = new StringBuffer ( ) ; result . append ( STRING ) ; enm = generator . listOptions ( ) ; while ( enm . hasMoreElements ( ) ) { option = enm . nextElement ( ) ; if ( isOnBlack... | 117 |
java-test-4683 | java | When did the code invoke ? | when component has been shown | public void component Shown ( Component Event e ) { if ( logger . is Loggable ( Level . FINE ) ) { logger . fine ( STRING + layer . get Name ( ) + STRING ) ; } Component comp = e . get Component ( ) ; if ( comp == null ) { } else if ( comp == layer ) { if ( is Layer On ( ) != BOOL ) { set Layer On ( BOOL ) ; if ( logge... | public void componentShown ( ComponentEvent e ) { if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( STRING + layer . getName ( ) + STRING ) ; } Component comp = e . getComponent ( ) ; if ( comp == null ) { } else if ( comp == layer ) { if ( isLayerOn ( ) != _BOOL ) { setLayerOn ( _BOOL ) ; if ( logger . isL... | 138 |
java-test-4684 | java | What does the code create ? | a content object | public static Mm Content create Mm Content ( Uri uri , String mime , long size , String file Name ) { if ( mime != null ) { if ( Mime Manager . is Image Type ( mime ) ) { return new Photo Content ( uri , mime , size , file Name ) ; } if ( Mime Manager . is Video Type ( mime ) ) { return new Video Content ( uri , mime ,... | public static MmContent createMmContent ( Uri uri , String mime , long size , String fileName ) { if ( mime != null ) { if ( MimeManager . isImageType ( mime ) ) { return new PhotoContent ( uri , mime , size , fileName ) ; } if ( MimeManager . isVideoType ( mime ) ) { return new VideoContent ( uri , mime , size , fileN... | 189 |
java-test-4685 | java | When do us complete a high level read on the channel ? | when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads ) | private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset... | private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut... | 90 |
java-test-4686 | java | What do us complete when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads ) ? | a high level read on the channel | private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset... | private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut... | 90 |
java-test-4687 | java | When did by query termination drive ? | during reads | private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset... | private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut... | 90 |
java-test-4688 | java | Why may by an interrupt in another thread have been closed the backing channel when ? | due to java io channel semantics ( e . g . , driven by query termination during reads ) | private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset... | private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut... | 90 |
java-test-4689 | java | For what purpose is this done ? | in order to allow us to complete a high level read on the channel when the backing channel may have been closed by an interrupt in another thread due to java io channel semantics ( e . g . , driven by query termination during reads ) | private void read ( final Asynchronous File Channel channel ) throws Illegal Argument Exception , Non Readable Channel Exception , Cancellation Exception , Interrupted Exception { if ( is Done ( ) ) { try { m fut . get ( ) ; } catch ( Execution Exception ex ) { m fut = null ; } } if ( ! is Done ( ) ) { m buffer . reset... | private void read ( final AsynchronousFileChannel channel ) throws IllegalArgumentException , NonReadableChannelException , CancellationException , InterruptedException { if ( isDone ( ) ) { try { m_fut . get ( ) ; } catch ( ExecutionException ex ) { m_fut = null ; } } if ( ! isDone ( ) ) { m_buffer . reset ( ) ; m_fut... | 90 |
java-test-4690 | java | What performs across two raml models ? | a specific check | public Pair < Set < Issue > , Set < Issue > > check ( Raml Root published , Raml Root implemented ) { check Children ( published . get Resources ( ) , published , Issue Location . CONTRACT ) ; if ( ! ignore Code Style && implemented != null ) { check Children ( implemented . get Resources ( ) , implemented , Issue Loca... | public Pair < Set < Issue > , Set < Issue > > check ( RamlRoot published , RamlRoot implemented ) { checkChildren ( published . getResources ( ) , published , IssueLocation . CONTRACT ) ; if ( ! ignoreCodeStyle && implemented != null ) { checkChildren ( implemented . getResources ( ) , implemented , IssueLocation . SOU... | 90 |
java-test-4691 | java | Where does a specific check perform ? | across two raml models | public Pair < Set < Issue > , Set < Issue > > check ( Raml Root published , Raml Root implemented ) { check Children ( published . get Resources ( ) , published , Issue Location . CONTRACT ) ; if ( ! ignore Code Style && implemented != null ) { check Children ( implemented . get Resources ( ) , implemented , Issue Loca... | public Pair < Set < Issue > , Set < Issue > > check ( RamlRoot published , RamlRoot implemented ) { checkChildren ( published . getResources ( ) , published , IssueLocation . CONTRACT ) ; if ( ! ignoreCodeStyle && implemented != null ) { checkChildren ( implemented . getResources ( ) , implemented , IssueLocation . SOU... | 90 |
java-test-4692 | java | When do database prepare ? | before transfer migration | public void prepare Database ( ) { s logger . log ( Level . FINE , STRING , get Direction ( ) ) ; String vendor = get Vendor ( ) ; String catalog = get Catalog ( ) ; String schema = get Schema ( ) ; int step = NUM ; int errors = NUM ; String sql = STRING ; Statement stmt = set Statement ( ) ; sql = s db Engine . sql Ad... | public void prepareDatabase ( ) { s_logger . log ( Level . FINE , STRING , getDirection ( ) ) ; String vendor = getVendor ( ) ; String catalog = getCatalog ( ) ; String schema = getSchema ( ) ; int step = _NUM ; int errors = _NUM ; String sql = STRING ; Statement stmt = setStatement ( ) ; sql = s_dbEngine . sqlAdmin_pr... | 195 |
java-test-4695 | java | What uses the android or android - library plugin ? | the build file | public boolean has Android Plugin ( ) { List < String > plugins = get Plugins ( ) ; return plugins . contains ( Gradle Detector . APP PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD APP PLUGIN ID ) || plugins . contains ( Gradle Detector . LIB PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD LIB PLUG... | public boolean hasAndroidPlugin ( ) { List < String > plugins = getPlugins ( ) ; return plugins . contains ( GradleDetector . APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . LIB_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_LIB_PLUGIN_ID )... | 71 |
java-test-4696 | java | What does the build file use ? | the android or android - library plugin | public boolean has Android Plugin ( ) { List < String > plugins = get Plugins ( ) ; return plugins . contains ( Gradle Detector . APP PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD APP PLUGIN ID ) || plugins . contains ( Gradle Detector . LIB PLUGIN ID ) || plugins . contains ( Gradle Detector . OLD LIB PLUG... | public boolean hasAndroidPlugin ( ) { List < String > plugins = getPlugins ( ) ; return plugins . contains ( GradleDetector . APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_APP_PLUGIN_ID ) || plugins . contains ( GradleDetector . LIB_PLUGIN_ID ) || plugins . contains ( GradleDetector . OLD_LIB_PLUGIN_ID )... | 71 |
java-test-4697 | java | What is describing the last dataset backed up ? | the state blob | @ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A... | @ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo... | 309 |
java-test-4698 | java | What do it store as the state blob describing the last dataset backed up simply ? | a copy of the backed - up data | @ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A... | @ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo... | 309 |
java-test-4699 | java | What do the state blob describe ? | the last dataset backed up | @ Override public void on Backup ( Parcel File Descriptor old State , Backup Data Output data , Parcel File Descriptor new State ) throws IO Exception { synchronized ( Huge Backup Activity . s Data Lock ) { Random Access File file = new Random Access File ( m Data File , STRING ) ; m Filling = file . read Int ( ) ; m A... | @ Override public void onBackup ( ParcelFileDescriptor oldState , BackupDataOutput data , ParcelFileDescriptor newState ) throws IOException { synchronized ( HugeBackupActivity . sDataLock ) { RandomAccessFile file = new RandomAccessFile ( mDataFile , STRING ) ; mFilling = file . readInt ( ) ; mAddMayo = file . readBoo... | 309 |
java-test-4700 | java | What does the code convert to a corresponding array ? | a map of named parameter values | public static Object [ ] build Value Array ( Parsed Sql parsed Sql , Map < String , ? > param Source ) { List < Object > param Array = new Array List < Object > ( ) ; if ( parsed Sql . get Named Parameter Count ( ) > NUM && parsed Sql . get Unnamed Parameter Count ( ) > NUM ) { throw new Illegal State Exception ( STRIN... | public static Object [ ] buildValueArray ( ParsedSql parsedSql , Map < String , ? > paramSource ) { List < Object > paramArray = new ArrayList < Object > ( ) ; if ( parsedSql . getNamedParameterCount ( ) > _NUM && parsedSql . getUnnamedParameterCount ( ) > _NUM ) { throw new IllegalStateException ( STRING + parsedSql .... | 246 |
java-test-4702 | java | What does the code append to the buffer ? | the length of the payload | private static void append Length ( Byte Buffer buffer , int length , boolean masked ) { if ( length < NUM ) { throw new Illegal Argument Exception ( STRING ) ; } byte b = ( masked ? ( byte ) NUM : NUM ) ; if ( length > NUM ) { buffer . put ( ( byte ) ( b | NUM ) ) ; buffer . put ( ( byte ) NUM ) ; buffer . put ( ( byt... | private static void appendLength ( ByteBuffer buffer , int length , boolean masked ) { if ( length < _NUM ) { throw new IllegalArgumentException ( STRING ) ; } byte b = ( masked ? ( byte ) _NUM : _NUM ) ; if ( length > _NUM ) { buffer . put ( ( byte ) ( b | _NUM ) ) ; buffer . put ( ( byte ) _NUM ) ; buffer . put ( ( b... | 251 |
java-test-4703 | java | How do creature stats adjust ? | using results from the previous run | public void step ( final int left HP , final int rounds ) { float step Size = left HP / ( float ) player . get Base HP ( ) ; step Size = Math . signum ( step Size ) * Math . min ( Math . abs ( step Size ) , NUM ) ; final int old Atk = creature . get Atk ( ) ; int new Atk = Math . max ( NUM , Math . round ( creature . g... | public void step ( final int leftHP , final int rounds ) { float stepSize = leftHP / ( float ) player . getBaseHP ( ) ; stepSize = Math . signum ( stepSize ) * Math . min ( Math . abs ( stepSize ) , _NUM ) ; final int oldAtk = creature . getAtk ( ) ; int newAtk = Math . max ( _NUM , Math . round ( creature . getAtk ( )... | 362 |
java-test-4704 | java | For what purpose does it process the textunitdtos by batch by batch ? | to reduce the number of queries needed | public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L... | public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId... | 282 |
java-test-4705 | java | What does it process by batch by batch to reduce the number of queries needed ? | the textunitdtos | public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L... | public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId... | 282 |
java-test-4706 | java | What does the code add ? | variant comments associated to the given textunitdtos | public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L... | public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId... | 282 |
java-test-4707 | java | How does it process the textunitdtos to reduce the number of queries needed ? | by batch | public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L... | public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId... | 282 |
java-test-4708 | java | What does it reduce ? | the number of queries needed | public List < Text Unit DTO With Comments > enrich Text Unit DT Os With Comments ( List < Text Unit DTO > text Unit DT Os ) { int BATCH SIZE = NUM ; List < Text Unit DTO With Comments > text Unit DT Os With Comments = new Array List < > ( ) ; List < Text Unit DTO > text Unit DT Os For Batch = new Array List < > ( ) ; L... | public List < TextUnitDTOWithComments > enrichTextUnitDTOsWithComments ( List < TextUnitDTO > textUnitDTOs ) { int BATCH_SIZE = _NUM ; List < TextUnitDTOWithComments > textUnitDTOsWithComments = new ArrayList < > ( ) ; List < TextUnitDTO > textUnitDTOsForBatch = new ArrayList < > ( ) ; List < Long > tmTextUnitVariantId... | 282 |
java-test-4709 | java | For what purpose did method call ? | to calculate utf code point | private int convert Surrogate ( int first Part , int second Part ) { if ( second Part < SURR 2 FIRST || second Part > SURR 2 LAST ) { throw new Illegal Argument Exception ( STRING + Integer . to Hex String ( first Part ) + STRING + Integer . to Hex String ( second Part ) + STRING ) ; } return NUM + ( ( first Part - SUR... | private int _convertSurrogate ( int firstPart , int secondPart ) { if ( secondPart < SURR2_FIRST || secondPart > SURR2_LAST ) { throw new IllegalArgumentException ( STRING + Integer . toHexString ( firstPart ) + STRING + Integer . toHexString ( secondPart ) + STRING ) ; } return _NUM + ( ( firstPart - SURR1_FIRST ) << ... | 91 |
java-test-4711 | java | What does the code create ? | an error for the given nameentry | private Column Error make Duplicate Name Error ( Entry < String , List < Integer > > name Entry ) { String duplicaten Name Message = I18 N . get GUI Label ( STRING , name Entry . get Key ( ) , list To String ( name Entry . get Value ( ) ) ) ; return new Column Error ( name Entry . get Value ( ) , name Entry . get Key (... | private ColumnError makeDuplicateNameError ( Entry < String , List < Integer > > nameEntry ) { String duplicatenNameMessage = I18N . getGUILabel ( STRING , nameEntry . getKey ( ) , listToString ( nameEntry . getValue ( ) ) ) ; return new ColumnError ( nameEntry . getValue ( ) , nameEntry . getKey ( ) , duplicatenNameMe... | 84 |
java-test-4714 | java | For what purpose are object values traversed recursively ? | to replace sub - properties | private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre... | private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN... | 194 |
java-test-4715 | java | What replaces non - object values with the corresponding value from overridetree if present ? | the merge process | private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre... | private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN... | 194 |
java-test-4716 | java | What does the code overwrite ? | the fields of tree that intersect with those of overridetree | private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre... | private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN... | 194 |
java-test-4717 | java | What did the merge process replace with the corresponding value from overridetree if present ? | non - object values | private static void merge ( Object Node tree , Object Node override Tree ) { Iterator < String > field Names = override Tree . field Names ( ) ; while ( field Names . has Next ( ) ) { String field Name = field Names . next ( ) ; Json Node primary Value = tree . get ( field Name ) ; Json Node backup Value = override Tre... | private static void merge ( ObjectNode tree , ObjectNode overrideTree ) { Iterator < String > fieldNames = overrideTree . fieldNames ( ) ; while ( fieldNames . hasNext ( ) ) { String fieldName = fieldNames . next ( ) ; JsonNode primaryValue = tree . get ( fieldName ) ; JsonNode backupValue = overrideTree . get ( fieldN... | 194 |
java-test-4719 | java | What does the code add ? | a line break | public void line Starts At ( int char In File ) { if ( immutable ) { throw new Unsupported Operation Exception ( ) ; } if ( n Lines == line Nums . length ) { int [ ] new Line Nums = new int [ n Lines * NUM ] ; System . arraycopy ( line Nums , NUM , new Line Nums , NUM , n Lines ) ; line Nums = new Line Nums ; } line Nu... | public void lineStartsAt ( int charInFile ) { if ( immutable ) { throw new UnsupportedOperationException ( ) ; } if ( nLines == lineNums . length ) { int [ ] newLineNums = new int [ nLines * _NUM ] ; System . arraycopy ( lineNums , _NUM , newLineNums , _NUM , nLines ) ; lineNums = newLineNums ; } lineNums [ nLines ++ ]... | 101 |
java-test-4720 | java | What does the code create ? | a view from the given structural element of a document | public View create ( Element elem ) { Document doc = elem . get Document ( ) ; Object i18 n Flag = doc . get Property ( STRING ) ; if ( ( i18 n Flag != null ) && i18 n Flag . equals ( Boolean . TRUE ) ) { return create I 18 N ( elem ) ; } else { return new Wrapped Plain View ( elem ) ; } } | public View create ( Element elem ) { Document doc = elem . getDocument ( ) ; Object i18nFlag = doc . getProperty ( STRING ) ; if ( ( i18nFlag != null ) && i18nFlag . equals ( Boolean . TRUE ) ) { return createI18N ( elem ) ; } else { return new WrappedPlainView ( elem ) ; } } | 76 |
java-test-4721 | java | Where do connection release ? | on event stream | @ Override public void release Connection ( ) { Header header = get Response Header ( STRING ) ; if ( header != null ) { String content Type Header = header . get Value ( ) ; if ( content Type Header != null && content Type Header . equals ( STRING ) ) { return ; } } super . release Connection ( ) ; } | @ Override public void releaseConnection ( ) { Header header = getResponseHeader ( STRING ) ; if ( header != null ) { String contentTypeHeader = header . getValue ( ) ; if ( contentTypeHeader != null && contentTypeHeader . equals ( STRING ) ) { return ; } } super . releaseConnection ( ) ; } | 68 |
java-test-4723 | java | What does the code create ? | a new typescript translator | public Java 2 Type Script Translator ( Transpilation Handler log Handler , J Sweet Context context , JC Compilation Unit compilation Unit , boolean preserve Source Line Numbers ) { super ( log Handler , context , compilation Unit , new Java 2 Type Script Adapter ( context ) , preserve Source Line Numbers ) ; } | public Java2TypeScriptTranslator ( TranspilationHandler logHandler , JSweetContext context , JCCompilationUnit compilationUnit , boolean preserveSourceLineNumbers ) { super ( logHandler , context , compilationUnit , new Java2TypeScriptAdapter ( context ) , preserveSourceLineNumbers ) ; } | 57 |
java-test-4724 | java | What does the code draw using the five different scaling approaches described in the book five times ? | the picture | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4725 | java | How does the code draw the picture five times ? | using the five different scaling approaches described in the book | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4726 | java | What are all using during the scale operation ? | default ( nearest neighbor ) filtering | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4727 | java | When are all using default ( nearest neighbor ) filtering ? | during the scale operation | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4728 | java | When does the code draw the picture using the five different scaling approaches described in the book ? | five times | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4729 | java | Where did the five different scaling approaches describe ? | in the book | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4730 | java | What described in the book ? | the five different scaling approaches | public void paint Component ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . draw Image ( picture , x , y , scale W , scale H , null ) ; x += scale W + PADDING ; g . draw Image ( picture , x , y , x + scale W , y + scale H , NUM , NUM , picture . get Width ( ) , picture . get Height ( ) , null ) ; x += scale W ... | public void paintComponent ( Graphics g ) { int x = PADDING ; int y = PADDING ; g . drawImage ( picture , x , y , scaleW , scaleH , null ) ; x += scaleW + PADDING ; g . drawImage ( picture , x , y , x + scaleW , y + scaleH , _NUM , _NUM , picture . getWidth ( ) , picture . getHeight ( ) , null ) ; x += scaleW + PADDING... | 272 |
java-test-4731 | java | For what purpose does the code get the database specific sql command ? | to find custom entity types | public String sql AD get Custom Entity Types ( String vendor Name , String catalog Name , String schema Name ) { String table Name = STRING ; Array List < String > column Names = new Array List < String > ( ) ; column Names . add ( STRING ) ; Array List < String > alias Names = new Array List < String > ( ) ; alias Nam... | public String sqlAD_getCustomEntityTypes ( String vendorName , String catalogName , String schemaName ) { String tableName = STRING ; ArrayList < String > columnNames = new ArrayList < String > ( ) ; columnNames . add ( STRING ) ; ArrayList < String > aliasNames = new ArrayList < String > ( ) ; aliasNames . add ( STRIN... | 159 |
java-test-4732 | java | What does the code build ? | a delivery report | public static String build Imdn Delivery Report ( String msg Id , Imdn Document . Delivery Status status , long timestamp ) { String method ; switch ( status ) { case DISPLAYED : method = STRING ; break ; case DELIVERED : method = STRING ; break ; default : method = STRING ; break ; } return STRING + UTF 8 STR + STRING... | public static String buildImdnDeliveryReport ( String msgId , ImdnDocument . DeliveryStatus status , long timestamp ) { String method ; switch ( status ) { case DISPLAYED : method = STRING ; break ; case DELIVERED : method = STRING ; break ; default : method = STRING ; break ; } return STRING + UTF8_STR + STRING + CRLF... | 116 |
java-test-4736 | java | What does the code send to all developers ? | a specified email | public void notify Developers ( String subject , String message ) throws J Plag Exception { Node List user List = root Element . get Elements By Tag Name ( STRING ) ; for ( int i = NUM ; i < user List . get Length ( ) ; i ++ ) { Element elem = ( Element ) user List . item ( i ) ; if ( ( parse Int ( elem , STRING ) & MA... | public void notifyDevelopers ( String subject , String message ) throws JPlagException { NodeList userList = rootElement . getElementsByTagName ( STRING ) ; for ( int i = _NUM ; i < userList . getLength ( ) ; i ++ ) { Element elem = ( Element ) userList . item ( i ) ; if ( ( parseInt ( elem , STRING ) & MASK_DEVELOPER ... | 103 |
java-test-4738 | java | What does the code create ? | a decisionsupport object for a set of membership estimations , an originally suggested category and a final category | public Decision Support ( Map h Category Estimations , String s Suggested Category , String s Correct Category ) { Category Estimations = new Tree Map ( ) ; Category Estimations . put All ( h Category Estimations ) ; Suggested Category = new String ( s Suggested Category ) ; Correct Category = new String ( s Correct Ca... | public DecisionSupport ( Map hCategoryEstimations , String sSuggestedCategory , String sCorrectCategory ) { CategoryEstimations = new TreeMap ( ) ; CategoryEstimations . putAll ( hCategoryEstimations ) ; SuggestedCategory = new String ( sSuggestedCategory ) ; CorrectCategory = new String ( sCorrectCategory ) ; } | 63 |
java-test-4739 | java | Where does the code add a new item to the combo box ? | at a specific index | public synchronized Combo Box < V > add Item ( int index , V item ) { if ( item == null ) { throw new Illegal Argument Exception ( STRING ) ; } items . add ( index , item ) ; if ( index <= selected Index ) { set Selected Index ( selected Index + NUM ) ; } invalidate ( ) ; return this ; } | public synchronized ComboBox < V > addItem ( int index , V item ) { if ( item == null ) { throw new IllegalArgumentException ( STRING ) ; } items . add ( index , item ) ; if ( index <= selectedIndex ) { setSelectedIndex ( selectedIndex + _NUM ) ; } invalidate ( ) ; return this ; } | 70 |
java-test-4740 | java | What does the code get ? | the distance between this vector and another vector | public double distance ( Vector other ) { return Math . sqrt ( Math . pow ( other . x - x , NUM ) + Math . pow ( other . y - y , NUM ) + Math . pow ( other . z - z , NUM ) ) ; } | public double distance ( Vector other ) { return Math . sqrt ( Math . pow ( other . x - x , _NUM ) + Math . pow ( other . y - y , _NUM ) + Math . pow ( other . z - z , _NUM ) ) ; } | 54 |
java-test-4741 | java | What does this method back the iterator back up ? | to a " safe position " in the text | protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=... | protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR... | 143 |
java-test-4742 | java | How be a position be a break position ? | without any context | protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=... | protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR... | 143 |
java-test-4743 | java | In which direction does this method back the iterator to a " safe position " in the text ? | back up | protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=... | protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR... | 143 |
java-test-4744 | java | In which direction do the various calling methods iterate to the appropriate position to return then ? | from this safe position | protected int handle Previous ( ) { Character Iterator text = get Text ( ) ; int state = START STATE ; int category = NUM ; int last Category = NUM ; int c = get Current ( ) ; while ( c != Character Iterator . DONE && state != STOP STATE ) { last Category = category ; category = lookup Category ( c ) ; if ( category !=... | protected int handlePrevious ( ) { CharacterIterator text = getText ( ) ; int state = START_STATE ; int category = _NUM ; int lastCategory = _NUM ; int c = getCurrent ( ) ; while ( c != CharacterIterator . DONE && state != STOP_STATE ) { lastCategory = category ; category = lookupCategory ( c ) ; if ( category != IGNOR... | 143 |
java-test-4745 | java | What receives all the events ? | the listener attached | @ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ... | @ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI... | 214 |
java-test-4746 | java | For what purpose do this test comment it ? | so that test suit will not hang | @ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ... | @ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI... | 214 |
java-test-4747 | java | What does this test need ? | to work with darrel | @ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ... | @ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI... | 214 |
java-test-4748 | java | When does this test hang ? | after the darrel ' s checkin 36685 | @ Ignore @ Test public void test Gateway Sender Event Listener Invocation Without Locator ( ) { int m Port = Available Port Helper . get Random Available Port For D Unit Site ( ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ( null ) ; vm 6 . invoke ( null ) ; vm 7 . invoke ( null ) ; vm 4 . invoke ( null ) ; vm 5 . invoke ... | @ Ignore @ Test public void testGatewaySenderEventListenerInvocationWithoutLocator ( ) { int mPort = AvailablePortHelper . getRandomAvailablePortForDUnitSite ( ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; vm6 . invoke ( null ) ; vm7 . invoke ( null ) ; vm4 . invoke ( null ) ; vm5 . invoke ( null ) ; startSenderI... | 214 |
java-test-4749 | java | In which direction does the application user build ? | from the header map | protected Application User build User ( Map < String , String > header Map , boolean include Roles ) { LOGGER . debug ( STRING ) ; Map < String , String > header Names = get Header Names ( ) ; Application User application User = create New Application User ( ) ; build User Id ( application User , header Map , header Na... | protected ApplicationUser buildUser ( Map < String , String > headerMap , boolean includeRoles ) { LOGGER . debug ( STRING ) ; Map < String , String > headerNames = getHeaderNames ( ) ; ApplicationUser applicationUser = createNewApplicationUser ( ) ; buildUserId ( applicationUser , headerMap , headerNames . get ( HTTP_... | 235 |
java-test-4750 | java | What does the code validate ? | the uncompressed settings | private void validate SQL Fields ( ) { boolean flag = controller . is Enable SQL Database Output ( ) ; enable SQL Database Connection . set Selected ( flag ) ; sql Host Label . set Enabled ( flag ) ; sql Host Field . set Enabled ( flag ) ; sql Database Label . set Enabled ( flag ) ; sql Database Field . set Enabled ( f... | private void validateSQLFields ( ) { boolean flag = controller . isEnableSQLDatabaseOutput ( ) ; enableSQLDatabaseConnection . setSelected ( flag ) ; sqlHostLabel . setEnabled ( flag ) ; sqlHostField . setEnabled ( flag ) ; sqlDatabaseLabel . setEnabled ( flag ) ; sqlDatabaseField . setEnabled ( flag ) ; sqlUserLabel .... | 125 |
java-test-4759 | java | What does the code regenerate ? | the global output properties | public static void regenerate Global Output Properties ( ) { if ( GLOBAL CREATOR != null ) { try { GLOBAL CREATOR . execute ( BOOL , BOOL ) ; GLOBAL INPUT PROPERTIES = GLOBAL CREATOR . get Input Properties ( ) ; GLOBAL OUTPUT PROPERTIES = GLOBAL CREATOR . get Output Properties ( ) ; } catch ( Exception e ) { e . print ... | public static void regenerateGlobalOutputProperties ( ) { if ( GLOBAL_CREATOR != null ) { try { GLOBAL_CREATOR . execute ( _BOOL , _BOOL ) ; GLOBAL_INPUT_PROPERTIES = GLOBAL_CREATOR . getInputProperties ( ) ; GLOBAL_OUTPUT_PROPERTIES = GLOBAL_CREATOR . getOutputProperties ( ) ; } catch ( Exception e ) { e . printStackT... | 74 |
java-test-4760 | java | What does the code use ? | the global_input_properties | public static void regenerate Global Output Properties ( ) { if ( GLOBAL CREATOR != null ) { try { GLOBAL CREATOR . execute ( BOOL , BOOL ) ; GLOBAL INPUT PROPERTIES = GLOBAL CREATOR . get Input Properties ( ) ; GLOBAL OUTPUT PROPERTIES = GLOBAL CREATOR . get Output Properties ( ) ; } catch ( Exception e ) { e . print ... | public static void regenerateGlobalOutputProperties ( ) { if ( GLOBAL_CREATOR != null ) { try { GLOBAL_CREATOR . execute ( _BOOL , _BOOL ) ; GLOBAL_INPUT_PROPERTIES = GLOBAL_CREATOR . getInputProperties ( ) ; GLOBAL_OUTPUT_PROPERTIES = GLOBAL_CREATOR . getOutputProperties ( ) ; } catch ( Exception e ) { e . printStackT... | 74 |
java-test-4761 | java | What does this clear ? | the tagview map | private void clear Tag View Map ( ) { Text View view ; for ( final Tag tag : m Tag View Map . key Set ( ) ) { view = m Tag View Map . get ( tag ) ; view . set Tag ( null ) ; view . set On Click Listener ( null ) ; view . set Selected ( BOOL ) ; m Text View Pool . add ( view ) ; } m Tag View Map . clear ( ) ; } | private void clearTagViewMap ( ) { TextView view ; for ( final Tag tag : mTagViewMap . keySet ( ) ) { view = mTagViewMap . get ( tag ) ; view . setTag ( null ) ; view . setOnClickListener ( null ) ; view . setSelected ( _BOOL ) ; mTextViewPool . add ( view ) ; } mTagViewMap . clear ( ) ; } | 89 |
java-test-4762 | java | What does this restore to the pool ? | the textviews | private void clear Tag View Map ( ) { Text View view ; for ( final Tag tag : m Tag View Map . key Set ( ) ) { view = m Tag View Map . get ( tag ) ; view . set Tag ( null ) ; view . set On Click Listener ( null ) ; view . set Selected ( BOOL ) ; m Text View Pool . add ( view ) ; } m Tag View Map . clear ( ) ; } | private void clearTagViewMap ( ) { TextView view ; for ( final Tag tag : mTagViewMap . keySet ( ) ) { view = mTagViewMap . get ( tag ) ; view . setTag ( null ) ; view . setOnClickListener ( null ) ; view . setSelected ( _BOOL ) ; mTextViewPool . add ( view ) ; } mTagViewMap . clear ( ) ; } | 89 |
java-test-4763 | java | What does the code create ? | new account and charge | private void create New ( ) { log . config ( STRING ) ; String value = value Field . get Text ( ) ; if ( value . length ( ) == NUM ) { value Field . set Background ( Adempiere PLAF . get Field Background Error ( ) ) ; return ; } String name = name Field . get Text ( ) ; if ( name . length ( ) == NUM ) { name Field . se... | private void createNew ( ) { log . config ( STRING ) ; String value = valueField . getText ( ) ; if ( value . length ( ) == _NUM ) { valueField . setBackground ( AdempierePLAF . getFieldBackground_Error ( ) ) ; return ; } String name = nameField . getText ( ) ; if ( name . length ( ) == _NUM ) { nameField . setBackgrou... | 211 |
java-test-4765 | java | What can we configure the relativedateformat ? | to show hh : mm : ss | public void test 2033092 ( ) { Relative Date Format rdf = new Relative Date Format ( ) ; rdf . set Show Zero Days ( BOOL ) ; rdf . set Show Zero Hours ( BOOL ) ; rdf . set Minute Suffix ( STRING ) ; rdf . set Hour Suffix ( STRING ) ; rdf . set Second Suffix ( STRING ) ; Decimal Format hours Formatter = new Decimal Form... | public void test2033092 ( ) { RelativeDateFormat rdf = new RelativeDateFormat ( ) ; rdf . setShowZeroDays ( _BOOL ) ; rdf . setShowZeroHours ( _BOOL ) ; rdf . setMinuteSuffix ( STRING ) ; rdf . setHourSuffix ( STRING ) ; rdf . setSecondSuffix ( STRING ) ; DecimalFormat hoursFormatter = new DecimalFormat ( ) ; hoursForm... | 259 |
java-test-4766 | java | What can we configure to show hh : mm : ss ? | the relativedateformat | public void test 2033092 ( ) { Relative Date Format rdf = new Relative Date Format ( ) ; rdf . set Show Zero Days ( BOOL ) ; rdf . set Show Zero Hours ( BOOL ) ; rdf . set Minute Suffix ( STRING ) ; rdf . set Hour Suffix ( STRING ) ; rdf . set Second Suffix ( STRING ) ; Decimal Format hours Formatter = new Decimal Form... | public void test2033092 ( ) { RelativeDateFormat rdf = new RelativeDateFormat ( ) ; rdf . setShowZeroDays ( _BOOL ) ; rdf . setShowZeroHours ( _BOOL ) ; rdf . setMinuteSuffix ( STRING ) ; rdf . setHourSuffix ( STRING ) ; rdf . setSecondSuffix ( STRING ) ; DecimalFormat hoursFormatter = new DecimalFormat ( ) ; hoursForm... | 259 |
java-test-4770 | java | What does a proxylookup add to the global selection returned by utilities ? | the current project instance | @ Override public Lookup create Global Context ( ) { if ( proxy Lookup == null ) { logger . config ( STRING ) ; project Lookup = new Abstract Lookup ( content ) ; proxy Lookup = new Proxy Lookup ( global Context Lookup , project Lookup ) ; } return proxy Lookup ; } | @ Override public Lookup createGlobalContext ( ) { if ( proxyLookup == null ) { logger . config ( STRING ) ; projectLookup = new AbstractLookup ( content ) ; proxyLookup = new ProxyLookup ( globalContextLookup , projectLookup ) ; } return proxyLookup ; } | 56 |
java-test-4771 | java | What adds the current project instance to the global selection returned by utilities ? | a proxylookup | @ Override public Lookup create Global Context ( ) { if ( proxy Lookup == null ) { logger . config ( STRING ) ; project Lookup = new Abstract Lookup ( content ) ; proxy Lookup = new Proxy Lookup ( global Context Lookup , project Lookup ) ; } return proxy Lookup ; } | @ Override public Lookup createGlobalContext ( ) { if ( proxyLookup == null ) { logger . config ( STRING ) ; projectLookup = new AbstractLookup ( content ) ; proxyLookup = new ProxyLookup ( globalContextLookup , projectLookup ) ; } return proxyLookup ; } | 56 |
java-test-4772 | java | What will not use disabled hosts for allocating resources to tasks ? | the scheduler | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4773 | java | How do the virtual machine disable ? | with the specified hostname | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4774 | java | What will the scheduler not use for allocating resources to tasks ? | disabled hosts | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4775 | java | What do it create if the scheduler is not yet aware of the host with that hostname ? | a new object for it | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4776 | java | Will the scheduler use disabled hosts for allocating resources to tasks ? | No | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4777 | java | When will your disabling of it be remembered ? | when offers that concern that host come in later . the scheduler will not use disabled hosts for allocating resources to tasks | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4778 | java | In which direction do that host come later ? | in | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4779 | java | When is the scheduler not is aware of the host with that hostname ? | yet | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4780 | java | When do that host come in ? | later | public void disable VM ( String hostname , long duration Millis ) throws Illegal State Exception { logger . info ( STRING + hostname + STRING + duration Millis + STRING ) ; assignable V Ms . disable Until ( hostname , System . current Time Millis ( ) + duration Millis ) ; } | public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( STRING + hostname + STRING + durationMillis + STRING ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; } | 55 |
java-test-4782 | java | What does the code draw in current pen color ? | an oval outline | @ Override public void draw Oval ( int x , int y , int width , int height ) { set State To Local ( ) ; m printstream . println ( x Transform ( x Scale ( x ) ) + STRING + y Transform ( y Scale ( y ) ) + STRING + x Scale ( width ) + STRING + y Scale ( height ) + STRING ) ; } | @ Override public void drawOval ( int x , int y , int width , int height ) { setStateToLocal ( ) ; m_printstream . println ( xTransform ( xScale ( x ) ) + STRING + yTransform ( yScale ( y ) ) + STRING + xScale ( width ) + STRING + yScale ( height ) + STRING ) ; } | 74 |
java-test-4783 | java | What does the code apply ? | dependent channel coupling ( applied before imdct ) | private void apply Dependent Coupling ( Single Channel Element target , Channel Element cce , int index ) { Individual Channel Stream ics = cce . ch [ NUM ] . ics ; int offsets [ ] = ics . swb Offset ; float dest [ ] = target . coeffs ; float src [ ] = cce . ch [ NUM ] . coeffs ; int idx = NUM ; if ( ac . oc [ NUM ] . ... | private void applyDependentCoupling ( SingleChannelElement target , ChannelElement cce , int index ) { IndividualChannelStream ics = cce . ch [ _NUM ] . ics ; int offsets [ ] = ics . swbOffset ; float dest [ ] = target . coeffs ; float src [ ] = cce . ch [ _NUM ] . coeffs ; int idx = _NUM ; if ( ac . oc [ _NUM ] . m4ac... | 295 |
java-test-4785 | java | When should a particular element be skipped ? | while scanning for tokens in an fxg document | protected void skip Element ( double version , String uri , String local Name ) { if ( local Name == null ) return ; FXG Version Handler version Handler = FXG Version Handler Registry . get Version Handler ( version ) ; if ( version Handler != null ) { Hash Set < String > skipped Elements = new Hash Set < String > ( NU... | protected void skipElement ( double version , String uri , String localName ) { if ( localName == null ) return ; FXGVersionHandler versionHandler = FXGVersionHandlerRegistry . getVersionHandler ( version ) ; if ( versionHandler != null ) { HashSet < String > skippedElements = new HashSet < String > ( _NUM ) ; skippedE... | 106 |
java-test-4786 | java | What does the code detect ? | the error code based on the error message | private int detect Error Code ( String error Message ) { final String error = error Message != null ? error Message : null ; if ( error == null ) { return NUM ; } if ( error . equals ( DAILY TRANSACTION LIMIT EXCEEDED ) ) { return NUM ; } else if ( error . equals ( INVALID API KEY ) ) { return NUM ; } else { return NUM... | private int detectErrorCode ( String errorMessage ) { final String error = errorMessage != null ? errorMessage : null ; if ( error == null ) { return _NUM ; } if ( error . equals ( DAILY_TRANSACTION_LIMIT_EXCEEDED ) ) { return _NUM ; } else if ( error . equals ( INVALID_API_KEY ) ) { return _NUM ; } else { return _NUM ... | 77 |
java-test-4787 | java | What does the code write ? | a list of coordinates in kml format | public static boolean write KML Coordinates ( Writer writer , Array List < Geo Point > coordinates ) { try { writer . write ( STRING ) ; for ( Geo Point coord : coordinates ) { writer . write ( coord . to Inverted Double String ( ) ) ; writer . write ( STRING ) ; } writer . write ( STRING ) ; return BOOL ; } catch ( IO... | public static boolean writeKMLCoordinates ( Writer writer , ArrayList < GeoPoint > coordinates ) { try { writer . write ( STRING ) ; for ( GeoPoint coord : coordinates ) { writer . write ( coord . toInvertedDoubleString ( ) ) ; writer . write ( STRING ) ; } writer . write ( STRING ) ; return _BOOL ; } catch ( IOExcepti... | 90 |
java-test-4789 | java | How do model populate ? | with method | protected void analyze Dto With Method ( Method method , Method Model method Model ) { method Model . set With ( BOOL ) ; Type field Type = method . get Generic Parameter Types ( ) [ NUM ] ; String field Name = get With Field Name ( method ) ; field Attributes . put ( field Name , field Type ) ; method Model . set Fiel... | protected void analyzeDtoWithMethod ( Method method , MethodModel methodModel ) { methodModel . setWith ( _BOOL ) ; Type fieldType = method . getGenericParameterTypes ( ) [ _NUM ] ; String fieldName = getWithFieldName ( method ) ; fieldAttributes . put ( fieldName , fieldType ) ; methodModel . setFieldName ( fieldName ... | 92 |
java-test-4791 | java | Does we do this ? | No | private void check Class And Sync ( Class < ? extends I Packet > clazz ) { if ( ! registered Classes . contains ( clazz ) ) { throw new Runtime Exception ( STRING + clazz + STRING ) ; } while ( is Currently Sending Semaphor ) { Thread . yield ( ) ; } is Currently Sending Semaphor = BOOL ; } | private void checkClassAndSync ( Class < ? extends IPacket > clazz ) { if ( ! registeredClasses . contains ( clazz ) ) { throw new RuntimeException ( STRING + clazz + STRING ) ; } while ( isCurrentlySendingSemaphor ) { Thread . yield ( ) ; } isCurrentlySendingSemaphor = _BOOL ; } | 65 |
java-test-4792 | java | What does we nt do ? | this | private void check Class And Sync ( Class < ? extends I Packet > clazz ) { if ( ! registered Classes . contains ( clazz ) ) { throw new Runtime Exception ( STRING + clazz + STRING ) ; } while ( is Currently Sending Semaphor ) { Thread . yield ( ) ; } is Currently Sending Semaphor = BOOL ; } | private void checkClassAndSync ( Class < ? extends IPacket > clazz ) { if ( ! registeredClasses . contains ( clazz ) ) { throw new RuntimeException ( STRING + clazz + STRING ) ; } while ( isCurrentlySendingSemaphor ) { Thread . yield ( ) ; } isCurrentlySendingSemaphor = _BOOL ; } | 65 |
java-test-4793 | java | What does the code write ? | a subsection of a string to the output | @ Override public void write ( String s , int off , int len ) throws IO Exception { char [ ] buffer = temp Char Buffer ; int buffer Length = buffer . length ; while ( len > NUM ) { int sublen = Math . min ( len , buffer Length ) ; s . get Chars ( off , off + sublen , buffer , NUM ) ; write ( buffer , NUM , sublen ) ; o... | @ Override public void write ( String s , int off , int len ) throws IOException { char [ ] buffer = _tempCharBuffer ; int bufferLength = buffer . length ; while ( len > _NUM ) { int sublen = Math . min ( len , bufferLength ) ; s . getChars ( off , off + sublen , buffer , _NUM ) ; write ( buffer , _NUM , sublen ) ; off... | 91 |
java-test-4794 | java | How does the code evaluate the xpath expression ? | to a single element | public static Element select Element ( X Path Expression expr , Node context ) { try { Object result = expr . evaluate ( context , X Path Constants . NODE ) ; if ( result == null ) { return null ; } else if ( result instanceof Element ) { return ( Element ) result ; } else { throw new Xml Exception ( STRING + result ) ... | public static Element selectElement ( XPathExpression expr , Node context ) { try { Object result = expr . evaluate ( context , XPathConstants . NODE ) ; if ( result == null ) { return null ; } else if ( result instanceof Element ) { return ( Element ) result ; } else { throw new XmlException ( STRING + result ) ; } } ... | 92 |
java-test-4795 | java | For what purpose do the state of functions f0 , f1 , f2 , f3 , f4 set ? | to send function group | protected void send Function Group 1 ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( address . get Number ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? ... | protected void sendFunctionGroup1 ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( address . getNumber ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? STRING... | 204 |
java-test-4796 | java | What do we send also ? | speed , direction etc | protected void send Function Group 1 ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( address . get Number ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? ... | protected void sendFunctionGroup1 ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( address . getNumber ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? STRING... | 204 |
java-test-4797 | java | What does the code send ? | the message to set the state of functions f0 , f1 , f2 , f3 , f4 . to send function group 1 | protected void send Function Group 1 ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( address . get Number ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? ... | protected void sendFunctionGroup1 ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( address . getNumber ( ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f0 ? STRING : STRING ) ) ; sb . append ( STRING ) ; sb . append ( STRING ) ; sb . append ( ( f1 ? STRING... | 204 |
java-test-4798 | java | For what purpose did the channel order map if it exists ? | to match the internal ffmpeg channel layout | private int che Configure ( int che Pos , int type , int id , int [ ] channels ) { if ( channels [ NUM ] >= MAX CHANNELS ) { return AAC ERROR ; } if ( che Pos != NUM ) { if ( ac . che [ type ] [ id ] == null ) { ac . che [ type ] [ id ] = new Channel Element ( ) ; Aac Sbr . ctx Init ( ac . che [ type ] [ id ] . sbr ) ;... | private int cheConfigure ( int chePos , int type , int id , int [ ] channels ) { if ( channels [ _NUM ] >= MAX_CHANNELS ) { return AAC_ERROR ; } if ( chePos != _NUM ) { if ( ac . che [ type ] [ id ] == null ) { ac . che [ type ] [ id ] = new ChannelElement ( ) ; AacSbr . ctxInit ( ac . che [ type ] [ id ] . sbr ) ; } i... | 306 |
java-test-4800 | java | What does the code take ? | a rule and its tail pointers | public static Tree build Tree ( Rule rule , List < HG Node > tail Nodes , int max Depth ) { Tree tree = get Fragment From Yield ( rule . get English Words ( ) ) ; if ( tree == null ) { tree = new Tree ( String . format ( STRING , Vocabulary . word ( rule . get LHS ( ) ) , rule . get English Words ( ) ) ) ; } else { tre... | public static Tree buildTree ( Rule rule , List < HGNode > tailNodes , int maxDepth ) { Tree tree = getFragmentFromYield ( rule . getEnglishWords ( ) ) ; if ( tree == null ) { tree = new Tree ( String . format ( STRING , Vocabulary . word ( rule . getLHS ( ) ) , rule . getEnglishWords ( ) ) ) ; } else { tree = tree . s... | 405 |
java-test-4801 | java | How could this be implemented ? | by using the other buildtree ( ) function and using the 1 - best derivationstate | public static Tree build Tree ( Rule rule , List < HG Node > tail Nodes , int max Depth ) { Tree tree = get Fragment From Yield ( rule . get English Words ( ) ) ; if ( tree == null ) { tree = new Tree ( String . format ( STRING , Vocabulary . word ( rule . get LHS ( ) ) , rule . get English Words ( ) ) ) ; } else { tre... | public static Tree buildTree ( Rule rule , List < HGNode > tailNodes , int maxDepth ) { Tree tree = getFragmentFromYield ( rule . getEnglishWords ( ) ) ; if ( tree == null ) { tree = new Tree ( String . format ( STRING , Vocabulary . word ( rule . getLHS ( ) ) , rule . getEnglishWords ( ) ) ) ; } else { tree = tree . s... | 405 |
java-test-4802 | java | What does the code draw ? | the specified segment of a line | protected void draw Segment ( int x0 , int y0 , int x1 , int y1 , String stroke Color , int stroke Width ) { int tmp X = Math . min ( x0 , x1 ) ; int tmp Y = Math . min ( y0 , y1 ) ; int width = Math . max ( x0 , x1 ) - tmp X ; int height = Math . max ( y0 , y1 ) - tmp Y ; x0 = tmp X ; y0 = tmp Y ; if ( width == NUM ||... | protected void drawSegment ( int x0 , int y0 , int x1 , int y1 , String strokeColor , int strokeWidth ) { int tmpX = Math . min ( x0 , x1 ) ; int tmpY = Math . min ( y0 , y1 ) ; int width = Math . max ( x0 , x1 ) - tmpX ; int height = Math . max ( y0 , y1 ) - tmpY ; x0 = tmpX ; y0 = tmpY ; if ( width == _NUM || height ... | 267 |
java-test-4803 | java | Does the project have the builder already ? | No | public static void add Builder To Project ( I Project project , String builder Id ) throws Core Exception { if ( has Builder ( project , builder Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < I Command > builders = new Array List < I Command > ( Arrays . as List ( descrip... | public static void addBuilderToProject ( IProject project , String builderId ) throws CoreException { if ( hasBuilder ( project , builderId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < ICommand > builders = new ArrayList < ICommand > ( Arrays . asList ( description . getBuild... | 143 |
java-test-4804 | java | What d the code adds if the project does not already have the builder ? | a builder with the specified i d to the project | public static void add Builder To Project ( I Project project , String builder Id ) throws Core Exception { if ( has Builder ( project , builder Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < I Command > builders = new Array List < I Command > ( Arrays . as List ( descrip... | public static void addBuilderToProject ( IProject project , String builderId ) throws CoreException { if ( hasBuilder ( project , builderId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < ICommand > builders = new ArrayList < ICommand > ( Arrays . asList ( description . getBuild... | 143 |
java-test-4805 | java | When does the project not have the builder ? | already | public static void add Builder To Project ( I Project project , String builder Id ) throws Core Exception { if ( has Builder ( project , builder Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < I Command > builders = new Array List < I Command > ( Arrays . as List ( descrip... | public static void addBuilderToProject ( IProject project , String builderId ) throws CoreException { if ( hasBuilder ( project , builderId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < ICommand > builders = new ArrayList < ICommand > ( Arrays . asList ( description . getBuild... | 143 |
java-test-4806 | java | What does not have the builder already ? | the project | public static void add Builder To Project ( I Project project , String builder Id ) throws Core Exception { if ( has Builder ( project , builder Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < I Command > builders = new Array List < I Command > ( Arrays . as List ( descrip... | public static void addBuilderToProject ( IProject project , String builderId ) throws CoreException { if ( hasBuilder ( project , builderId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < ICommand > builders = new ArrayList < ICommand > ( Arrays . asList ( description . getBuild... | 143 |
java-test-4807 | java | What does the project not have already ? | the builder | public static void add Builder To Project ( I Project project , String builder Id ) throws Core Exception { if ( has Builder ( project , builder Id ) ) { return ; } I Project Description description = project . get Description ( ) ; List < I Command > builders = new Array List < I Command > ( Arrays . as List ( descrip... | public static void addBuilderToProject ( IProject project , String builderId ) throws CoreException { if ( hasBuilder ( project , builderId ) ) { return ; } IProjectDescription description = project . getDescription ( ) ; List < ICommand > builders = new ArrayList < ICommand > ( Arrays . asList ( description . getBuild... | 143 |
java-test-4808 | java | What does the code selected labels have ? | a white color | @ Override protected void paint Text ( Graphics temp G , int tab Placement , Font font , Font Metrics metrics , int tab Index , String title , Rectangle text Rect , boolean is Selected ) { Graphics 2 D g = ( Graphics 2 D ) temp G ; g . set Rendering Hint ( Rendering Hints . KEY ANTIALIASING , Rendering Hints . VALUE AN... | @ Override protected void paintText ( Graphics tempG , int tabPlacement , Font font , FontMetrics metrics , int tabIndex , String title , Rectangle textRect , boolean isSelected ) { Graphics2D g = ( Graphics2D ) tempG ; g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; i... | 132 |
java-test-4809 | java | What have a white color ? | the code selected labels | @ Override protected void paint Text ( Graphics temp G , int tab Placement , Font font , Font Metrics metrics , int tab Index , String title , Rectangle text Rect , boolean is Selected ) { Graphics 2 D g = ( Graphics 2 D ) temp G ; g . set Rendering Hint ( Rendering Hints . KEY ANTIALIASING , Rendering Hints . VALUE AN... | @ Override protected void paintText ( Graphics tempG , int tabPlacement , Font font , FontMetrics metrics , int tabIndex , String title , Rectangle textRect , boolean isSelected ) { Graphics2D g = ( Graphics2D ) tempG ; g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; i... | 132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.