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-790 | java | What do we have ? | some reference to the volume | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-791 | java | Do we delete it ? | No | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-792 | java | What do we need ? | to immediately persist it , so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-793 | java | When be we be able to have some reference to the volume ? | when further post - processing of the volume encounters some error | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-794 | java | What does this method save ? | the native i d info and creation time for the volume object | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-795 | java | What encounters some error when ? | further post - processing of the volume | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-796 | java | What could we attempt ? | to delete it | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-797 | java | When do we persist it so that if when further post - processing of the volume encounters some error , we would be able to have some reference to the volume and we could attempt to delete it ? | immediately | private void persist Volume Native ID ( Db Client db Client , URI volume Id , String native ID , Calendar creation Time ) throws IO Exception { Volume volume = db Client . query Object ( Volume . class , volume Id ) ; volume . set Creation Time ( creation Time ) ; volume . set Native Id ( native ID ) ; volume . set Nat... | private void persistVolumeNativeID ( DbClient dbClient , URI volumeId , String nativeID , Calendar creationTime ) throws IOException { Volume volume = dbClient . queryObject ( Volume . class , volumeId ) ; volume . setCreationTime ( creationTime ) ; volume . setNativeId ( nativeID ) ; volume . setNativeGuid ( NativeGUI... | 96 |
java-test-798 | java | What does the code add ? | a else statement | public Pair add Else If ( Expr Boolean condition , Statement body , Position start , Position end ) { Pair pair ; ifs . add ( pair = new Pair ( condition , body , start , end ) ) ; body . set Parent ( this ) ; return pair ; } | public Pair addElseIf ( ExprBoolean condition , Statement body , Position start , Position end ) { Pair pair ; ifs . add ( pair = new Pair ( condition , body , start , end ) ) ; body . setParent ( this ) ; return pair ; } | 54 |
java-test-799 | java | What is to determine if the binary data contains a serialised session object ? | the objective | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-800 | java | What do the binary data contain ? | a serialised session object | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-801 | java | What does the objective be ? | to determine if the binary data contains a serialised session object | @ Suppress Warnings ( STRING ) private boolean is Token Valid For Compression ( byte [ ] blob ) { if ( blob == null ) { return BOOL ; } String contents ; try { contents = blob Utils . to UTF 8 ( blob ) ; } catch ( Unsupported Encoding Exception e ) { return BOOL ; } if ( ! contents . starts With ( STRING ) ) { return B... | @ SuppressWarnings ( STRING ) private boolean isTokenValidForCompression ( byte [ ] blob ) { if ( blob == null ) { return _BOOL ; } String contents ; try { contents = blobUtils . toUTF8 ( blob ) ; } catch ( UnsupportedEncodingException e ) { return _BOOL ; } if ( ! contents . startsWith ( STRING ) ) { return _BOOL ; } ... | 160 |
java-test-802 | java | What does the code convert to the type of the whole expression ? | an operand of a conditional expression | protected Node conditional Expr Promotion ( Node node , Type Mirror dest Type ) { Type Mirror node Type = node . get Type ( ) ; if ( types . is Same Type ( node Type , dest Type ) ) { return node ; } if ( Types Utils . is Primitive ( node Type ) && Types Utils . is Boxed Primitive ( dest Type ) ) { return box ( node ) ... | protected Node conditionalExprPromotion ( Node node , TypeMirror destType ) { TypeMirror nodeType = node . getType ( ) ; if ( types . isSameType ( nodeType , destType ) ) { return node ; } if ( TypesUtils . isPrimitive ( nodeType ) && TypesUtils . isBoxedPrimitive ( destType ) ) { return box ( node ) ; } boolean isBoxe... | 384 |
java-test-803 | java | When should caret be placed marker ? | when file is loaded in editor | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-804 | java | What does that need ? | to be tested | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-805 | java | Where is file loaded when ? | in editor | protected void configure By File ( @ Test Data File @ Non Nls @ Not Null String file Path ) { try { final File io File = new File ( get Test Data Path ( ) + file Path ) ; String file Text = File Util Rt . load File ( io File , Charset Toolkit . UTF 8 , BOOL ) ; configure From File Text ( io File . get Name ( ) , file T... | protected void configureByFile ( @ TestDataFile @ NonNls @ NotNull String filePath ) { try { final File ioFile = new File ( getTestDataPath ( ) + filePath ) ; String fileText = FileUtilRt . loadFile ( ioFile , CharsetToolkit . UTF8 , _BOOL ) ; configureFromFileText ( ioFile . getName ( ) , fileText ) ; } catch ( IOExce... | 100 |
java-test-806 | java | What does the code compute ? | the children of this package fragment | private I Java Element [ ] compute Children ( Array List names Without Extension ) { int size = names Without Extension . size ( ) ; if ( size == NUM ) return NO ELEMENTS ; I Java Element [ ] children = new I Java Element [ size ] ; for ( int i = NUM ; i < size ; i ++ ) { String name Without Extension = ( String ) name... | private IJavaElement [ ] computeChildren ( ArrayList namesWithoutExtension ) { int size = namesWithoutExtension . size ( ) ; if ( size == _NUM ) return NO_ELEMENTS ; IJavaElement [ ] children = new IJavaElement [ size ] ; for ( int i = _NUM ; i < size ; i ++ ) { String nameWithoutExtension = ( String ) namesWithoutExte... | 107 |
java-test-807 | java | What does the code make ? | the subpath unclosed | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-808 | java | What does the line connect ? | the last and the first points of the subpaths | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-809 | java | What does the code add to each closed subpath ? | additional line | public List < Integer > replace Close With Line ( ) { List < Integer > modified Subpaths Indices = new Array List < > ( ) ; int i = NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . is Closed ( ) ) { subpath . set Closed ( BOOL ) ; subpath . add Segment ( new Line ( subpath . get Last Point ( ) , subpath . get ... | public List < Integer > replaceCloseWithLine ( ) { List < Integer > modifiedSubpathsIndices = new ArrayList < > ( ) ; int i = _NUM ; for ( Subpath subpath : subpaths ) { if ( subpath . isClosed ( ) ) { subpath . setClosed ( _BOOL ) ; subpath . addSegment ( new Line ( subpath . getLastPoint ( ) , subpath . getStartPoint... | 105 |
java-test-810 | java | What does this method return ? | all pending connectiorequest connections | public Enumeration enumurate Queue ( ) { Vector elements = new Vector ( ) ; synchronized ( LOCK ) { Enumeration e = pending . elements ( ) ; while ( e . has More Elements ( ) ) { elements . add Element ( e . next Element ( ) ) ; } } return elements . elements ( ) ; } | public Enumeration enumurateQueue ( ) { Vector elements = new Vector ( ) ; synchronized ( LOCK ) { Enumeration e = pending . elements ( ) ; while ( e . hasMoreElements ( ) ) { elements . addElement ( e . nextElement ( ) ) ; } } return elements . elements ( ) ; } | 63 |
java-test-811 | java | What did the code create ? | a single pipeline from them | private Collection Processing Engine build CPE ( ) throws Baleen Exception { if ( collection Reader == null ) { throw new Baleen Exception ( STRING ) ; } Map < String , Analysis Engine Description > analysis Engines = new Linked Hash Map < > ( ) ; analysis Engines . put All ( annotators ) ; analysis Engines . put All (... | private CollectionProcessingEngine buildCPE ( ) throws BaleenException { if ( collectionReader == null ) { throw new BaleenException ( STRING ) ; } Map < String , AnalysisEngineDescription > analysisEngines = new LinkedHashMap < > ( ) ; analysisEngines . putAll ( annotators ) ; analysisEngines . putAll ( consumers ) ; ... | 298 |
java-test-812 | java | What does the code take ? | the components previously created | private Collection Processing Engine build CPE ( ) throws Baleen Exception { if ( collection Reader == null ) { throw new Baleen Exception ( STRING ) ; } Map < String , Analysis Engine Description > analysis Engines = new Linked Hash Map < > ( ) ; analysis Engines . put All ( annotators ) ; analysis Engines . put All (... | private CollectionProcessingEngine buildCPE ( ) throws BaleenException { if ( collectionReader == null ) { throw new BaleenException ( STRING ) ; } Map < String , AnalysisEngineDescription > analysisEngines = new LinkedHashMap < > ( ) ; analysisEngines . putAll ( annotators ) ; analysisEngines . putAll ( consumers ) ; ... | 298 |
java-test-818 | java | What does the code find ? | rowindexmax for greaterthan operator | private static int uarimax Gt ( double value , double [ ] bv , int bvi [ ] , Binary Operator b Op ) throws DML Runtime Exception { int ix Max = bv . length ; if ( value <= bv [ NUM ] || value > bv [ bv . length - NUM ] ) return ix Max ; int ix = Arrays . binary Search ( bv , value ) ; ix = Math . abs ( ix ) - NUM ; ix ... | private static int uarimaxGt ( double value , double [ ] bv , int bvi [ ] , BinaryOperator bOp ) throws DMLRuntimeException { int ixMax = bv . length ; if ( value <= bv [ _NUM ] || value > bv [ bv . length - _NUM ] ) return ixMax ; int ix = Arrays . binarySearch ( bv , value ) ; ix = Math . abs ( ix ) - _NUM ; ixMax = ... | 102 |
java-test-819 | java | What does the iterator return for use by the application ? | amidentity objects | public Id Search Results search Identities ( Id Type type , String pattern , Map av Pairs , boolean recursive , int max Results , int max Time , Set return Attributes , boolean return All Attributes ) throws Id Repo Exception , SSO Exception { Id Search Control crtl = new Id Search Control ( ) ; crtl . set Search Modif... | public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpMo... | 150 |
java-test-820 | java | For what purpose does the iterator return amidentity objects ? | for use by the application | public Id Search Results search Identities ( Id Type type , String pattern , Map av Pairs , boolean recursive , int max Results , int max Time , Set return Attributes , boolean return All Attributes ) throws Id Repo Exception , SSO Exception { Id Search Control crtl = new Id Search Control ( ) ; crtl . set Search Modif... | public IdSearchResults searchIdentities ( IdType type , String pattern , Map avPairs , boolean recursive , int maxResults , int maxTime , Set returnAttributes , boolean returnAllAttributes ) throws IdRepoException , SSOException { IdSearchControl crtl = new IdSearchControl ( ) ; crtl . setSearchModifiers ( IdSearchOpMo... | 150 |
java-test-821 | java | What does the code compute ? | the utility of all children with respect to this node | protected double category Utility ( ) throws Exception { if ( m children == null ) { throw new Exception ( STRING ) ; } double total CU = NUM ; for ( int i = NUM ; i < m children . size ( ) ; i ++ ) { C Node child = m children . get ( i ) ; total CU += category Utility Child ( child ) ; } total CU /= m children . size ... | protected double categoryUtility ( ) throws Exception { if ( m_children == null ) { throw new Exception ( STRING ) ; } double totalCU = _NUM ; for ( int i = _NUM ; i < m_children . size ( ) ; i ++ ) { CNode child = m_children . get ( i ) ; totalCU += categoryUtilityChild ( child ) ; } totalCU /= m_children . size ( ) ;... | 89 |
java-test-822 | java | What defined in plugins ? | filter conditions | public static void register Condition ( String condition Name , Class < ? extends Attribute Filter Condition > condition Class ) { String [ ] new Condition Names = new String [ CONDITION NAMES . length + NUM ] ; System . arraycopy ( CONDITION NAMES , NUM , new Condition Names , NUM , CONDITION NAMES . length ) ; new Co... | public static void registerCondition ( String conditionName , Class < ? extends AttributeFilterCondition > conditionClass ) { String [ ] newConditionNames = new String [ CONDITION_NAMES . length + _NUM ] ; System . arraycopy ( CONDITION_NAMES , _NUM , newConditionNames , _NUM , CONDITION_NAMES . length ) ; newCondition... | 150 |
java-test-823 | java | What does this method allow ? | registering filter conditions defined in plugins | public static void register Condition ( String condition Name , Class < ? extends Attribute Filter Condition > condition Class ) { String [ ] new Condition Names = new String [ CONDITION NAMES . length + NUM ] ; System . arraycopy ( CONDITION NAMES , NUM , new Condition Names , NUM , CONDITION NAMES . length ) ; new Co... | public static void registerCondition ( String conditionName , Class < ? extends AttributeFilterCondition > conditionClass ) { String [ ] newConditionNames = new String [ CONDITION_NAMES . length + _NUM ] ; System . arraycopy ( CONDITION_NAMES , _NUM , newConditionNames , _NUM , CONDITION_NAMES . length ) ; newCondition... | 150 |
java-test-826 | java | What does the code update ? | the form title | protected void update Form Title ( ) { if ( null != displayed Cmr Repository Definition ) { main Form . set Image ( Image Formatter . get Cmr Repository Image ( displayed Cmr Repository Definition , BOOL ) ) ; main Form . set Text ( displayed Cmr Repository Definition . get Name ( ) ) ; main Form . set Tool Tip Text ( ... | protected void updateFormTitle ( ) { if ( null != displayedCmrRepositoryDefinition ) { mainForm . setImage ( ImageFormatter . getCmrRepositoryImage ( displayedCmrRepositoryDefinition , _BOOL ) ) ; mainForm . setText ( displayedCmrRepositoryDefinition . getName ( ) ) ; mainForm . setToolTipText ( TextFormatter . getCmrR... | 139 |
java-test-827 | java | For what purpose do they present to the user ? | for toggling | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-828 | java | What does the code find ? | all pre - installed input methods that are marked as default | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-829 | java | Why do non - default ones add ? | as they may include other stuff that we don ' t need to auto - include | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-830 | java | What installed pre ? | input methods | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-831 | java | For what purpose did the code add them to an exclusion list ? | so that they aren ' t presented to the user for toggling | private void add System Imes ( Set < String > exclude Packages ) { final Context context = get Activity ( ) ; if ( context == null ) return ; Input Method Manager imm = ( Input Method Manager ) context . get System Service ( Context . INPUT METHOD SERVICE ) ; List < Input Method Info > imis = imm . get Input Method Lis... | private void addSystemImes ( Set < String > excludePackages ) { final Context context = getActivity ( ) ; if ( context == null ) return ; InputMethodManager imm = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; List < InputMethodInfo > imis = imm . getInputMethodList ( ) ; for ( I... | 136 |
java-test-832 | java | For what purpose does an internetaddress object or null return if the parsing fails ? | to be be used in multiple places | public static Internet Address parse Email ( Object value ) { String str = Caster . to String ( value , STRING ) ; if ( str . index Of ( STRING ) > - NUM ) { try { Internet Address addr = new Internet Address ( str ) ; fix IDN ( addr ) ; return addr ; } catch ( Address Exception ex ) { } } return null ; } | public static InternetAddress parseEmail ( Object value ) { String str = Caster . toString ( value , STRING ) ; if ( str . indexOf ( STRING ) > - _NUM ) { try { InternetAddress addr = new InternetAddress ( str ) ; fixIDN ( addr ) ; return addr ; } catch ( AddressException ex ) { } } return null ; } | 74 |
java-test-834 | java | What does this return for the caller to extract the output variables ? | the executioncontext | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-835 | java | What does the caller extract ? | the output variables | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-836 | java | How did the caller ( which is compileandexecutescript ) set inputsymboltable ? | with appropriate matrix representation ( rdd , matrixobject ) | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-837 | java | For what purpose does this return the executioncontext ? | for the caller to extract the output variables | private Execution Context execute Using Simplified Compilation Chain ( String dml Script File Path , boolean is File , Map < String , String > arg Vals , boolean parse Py DML , String [ ] inputs , String [ ] outputs , Local Variable Map input Symbol Table , String config File Path ) throws IO Exception , DML Exception ... | private ExecutionContext executeUsingSimplifiedCompilationChain ( String dmlScriptFilePath , boolean isFile , Map < String , String > argVals , boolean parsePyDML , String [ ] inputs , String [ ] outputs , LocalVariableMap inputSymbolTable , String configFilePath ) throws IOException , DMLException { DMLConfig config =... | 597 |
java-test-843 | java | What does both say ? | in their comments that they ' re not really sure what the right approach is . we go with chrome ' s behavior ( which also experimentally seems to match what ie does ) | static String Builder append Quoted String ( String Builder target , String key ) { target . append ( STRING ) ; for ( int i = NUM , len = key . length ( ) ; i < len ; i ++ ) { char ch = key . char At ( i ) ; switch ( ch ) { case STRING : target . append ( STRING ) ; break ; case STRING : target . append ( STRING ) ; b... | static StringBuilder appendQuotedString ( StringBuilder target , String key ) { target . append ( STRING ) ; for ( int i = _NUM , len = key . length ( ) ; i < len ; i ++ ) { char ch = key . charAt ( i ) ; switch ( ch ) { case STRING : target . append ( STRING ) ; break ; case STRING : target . append ( STRING ) ; break... | 121 |
java-test-844 | java | Till when will this reveal start from the start view ' s boundaries ? | until it fills the target view | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-845 | java | What does the code create from a given start view to it ' s target view ? | a simple circular reveal | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-846 | java | In which direction does the code create a simple circular reveal ? | from a given start view to it ' s target view | @ Non Null public static Animator create Circular Reveal ( @ Non Null Point center , int width , @ Non Null View target View , @ Non Null Interpolator interpolator ) { final Animator circular Reveal = View Animation Utils . create Circular Reveal ( target View , center . x , center . y , width , ( float ) Math . hypot ... | @ NonNull public static Animator createCircularReveal ( @ NonNull Point center , int width , @ NonNull View targetView , @ NonNull Interpolator interpolator ) { final Animator circularReveal = ViewAnimationUtils . createCircularReveal ( targetView , center . x , center . y , width , ( float ) Math . hypot ( center . x ... | 90 |
java-test-847 | java | What does the code create ? | a new abstract managed object definition | protected Abstract Managed Object Definition ( String name , Abstract Managed Object Definition < ? super C , ? super S > parent ) { this . name = name ; this . parent = parent ; if ( parent != null ) { register In Parent ( ) ; for ( Property Definition < ? > pd : parent . get All Property Definitions ( ) ) { all Prope... | protected AbstractManagedObjectDefinition ( String name , AbstractManagedObjectDefinition < ? super C , ? super S > parent ) { this . name = name ; this . parent = parent ; if ( parent != null ) { registerInParent ( ) ; for ( PropertyDefinition < ? > pd : parent . getAllPropertyDefinitions ( ) ) { allPropertyDefinition... | 167 |
java-test-851 | java | What does the code capitalize ? | the first character of the titles of names : mr mrs ms miss dr prof | public static String capitalize Name Title Abbrvs ( String line ) { String result = line ; for ( String title : new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING } ) { result = result . replace All ( STRING + title + STRING , Character . to Upper Case ( title . char At ( NUM ) ) + title . substring (... | public static String capitalizeNameTitleAbbrvs ( String line ) { String result = line ; for ( String title : new String [ ] { STRING , STRING , STRING , STRING , STRING , STRING } ) { result = result . replaceAll ( STRING + title + STRING , Character . toUpperCase ( title . charAt ( _NUM ) ) + title . substring ( _NUM ... | 114 |
java-test-852 | java | How do the osgi entry log ? | using the slf4j logger | private void log Entry ( Log Entry entry ) { String Builder log Message = new String Builder ( STRING ) ; log Message . append ( entry . get Bundle ( ) ) ; if ( entry . get Service Reference ( ) != null ) { log Message . append ( STRING ) ; log Message . append ( entry . get Service Reference ( ) ) ; } log Message . ap... | private void logEntry ( LogEntry entry ) { StringBuilder logMessage = new StringBuilder ( STRING ) ; logMessage . append ( entry . getBundle ( ) ) ; if ( entry . getServiceReference ( ) != null ) { logMessage . append ( STRING ) ; logMessage . append ( entry . getServiceReference ( ) ) ; } logMessage . append ( STRING ... | 258 |
java-test-855 | java | What does the code add to the colour map ? | more colours | private void extend Colour Map ( int highest ) { for ( int i = m color List . size ( ) ; i < highest ; i ++ ) { Color pc = m Default Colors [ i % NUM ] ; int ija = i / NUM ; ija *= NUM ; for ( int j = NUM ; j < ija ; j ++ ) { pc = pc . brighter ( ) ; } m color List . add ( pc ) ; } } | private void extendColourMap ( int highest ) { for ( int i = m_colorList . size ( ) ; i < highest ; i ++ ) { Color pc = m_DefaultColors [ i % _NUM ] ; int ija = i / _NUM ; ija *= _NUM ; for ( int j = _NUM ; j < ija ; j ++ ) { pc = pc . brighter ( ) ; } m_colorList . add ( pc ) ; } } | 89 |
java-test-856 | java | How does column numbers look starting from 0 ? | by giving the header line . i . e | public static Map < String , Integer > create Idx From Key ( String line , String seperator ) { String [ ] keys = line . split ( seperator ) ; Map < String , Integer > idx From Key = new Concurrent Hash Map < String , Integer > ( ) ; for ( int i = NUM ; i < keys . length ; i ++ ) { idx From Key . put ( keys [ i ] , i )... | public static Map < String , Integer > createIdxFromKey ( String line , String seperator ) { String [ ] keys = line . split ( seperator ) ; Map < String , Integer > idxFromKey = new ConcurrentHashMap < String , Integer > ( ) ; for ( int i = _NUM ; i < keys . length ; i ++ ) { idxFromKey . put ( keys [ i ] , i ) ; } ret... | 92 |
java-test-857 | java | What can be applied on the result got ? | multiple processors | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-858 | java | Where can multiple processors be applied ? | on the result got | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-859 | java | What can be applied on the processed result ? | multiple decorators | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-860 | java | Where can multiple decorators be applied ? | on the processed result | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-861 | java | What apply different types of decorators above the processed result ? | directormetrics | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-862 | java | Where do directormetrics apply different types of decorators ? | above the processed result | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-863 | java | What do directormetrics apply above the processed result ? | different types of decorators | protected void process Result ( final Operation operation , final Object result , final Command command Obj ) throws Base Collection Exception { Processor processor = null ; processor = operation . get Processor ( ) ; if ( null != processor ) { List < Object > args List = new Array List < Object > ( ) ; args List . add... | protected void processResult ( final Operation operation , final Object result , final Command commandObj ) throws BaseCollectionException { Processor _processor = null ; _processor = operation . getProcessor ( ) ; if ( null != _processor ) { List < Object > argsList = new ArrayList < Object > ( ) ; argsList . add ( Ut... | 134 |
java-test-866 | java | For what purpose do some super basic byte array use ? | . can be overridden if you like | private static String byte Array To Hex String ( byte [ ] bytes ) { String Builder sb = new String Builder ( bytes . length * NUM ) ; for ( byte element : bytes ) { int v = element & NUM ; if ( v < NUM ) { sb . append ( STRING ) ; } sb . append ( Integer . to Hex String ( v ) ) ; } return sb . to String ( ) ; } | private static String byteArrayToHexString ( byte [ ] bytes ) { StringBuilder sb = new StringBuilder ( bytes . length * _NUM ) ; for ( byte element : bytes ) { int v = element & _NUM ; if ( v < _NUM ) { sb . append ( STRING ) ; } sb . append ( Integer . toHexString ( v ) ) ; } return sb . toString ( ) ; } | 84 |
java-test-867 | java | What does the code create ? | a new updatepropertieswriter | @ Suppress Warnings ( { STRING , STRING } ) public Update Properties Writer ( final Properties prop , final Print Stream ps ) { this . prop = prop ; this . ps = ps ; this . keys = new Tree Set < String > ( ( Set ) prop . key Set ( ) ) ; } | @ SuppressWarnings ( { STRING , STRING } ) public UpdatePropertiesWriter ( final Properties prop , final PrintStream ps ) { this . prop = prop ; this . ps = ps ; this . keys = new TreeSet < String > ( ( Set ) prop . keySet ( ) ) ; } | 60 |
java-test-868 | java | What is it called from vm ? | to add certain system threads to the system thread group | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-869 | java | What did it add to the system thread group ? | certain system threads | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-870 | java | In which direction is it called to add certain system threads to the system thread group ? | from vm | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new Illegal Thread State Exception ( ) ; } if ( threads == null ) { threads = new Thread [ NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copy Of ( threads , nthreads * NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; n ... | void add ( Thread t ) { synchronized ( this ) { if ( destroyed ) { throw new IllegalThreadStateException ( ) ; } if ( threads == null ) { threads = new Thread [ _NUM ] ; } else if ( nthreads == threads . length ) { threads = Arrays . copyOf ( threads , nthreads * _NUM ) ; } threads [ nthreads ] = t ; nthreads ++ ; nUns... | 85 |
java-test-871 | java | For what purpose do them stuff in a normal array ? | for faster access | protected static Dynamic Field [ ] dynamic Field List To Sorted Array ( List < Dynamic Field > dynamic Field List ) { Dynamic Field [ ] d Fields = dynamic Field List . to Array ( new Dynamic Field [ dynamic Field List . size ( ) ] ) ; Arrays . sort ( d Fields ) ; log . trace ( STRING + Arrays . to String ( d Fields ) )... | protected static DynamicField [ ] dynamicFieldListToSortedArray ( List < DynamicField > dynamicFieldList ) { DynamicField [ ] dFields = dynamicFieldList . toArray ( new DynamicField [ dynamicFieldList . size ( ) ] ) ; Arrays . sort ( dFields ) ; log . trace ( STRING + Arrays . toString ( dFields ) ) ; return dFields ; ... | 80 |
java-test-876 | java | What does the code write ? | an array of bytes to the buffer expanding if necessary | public void write Bytes ( final byte [ ] bytes , final int off , final int len ) { if ( len > remaining ( ) ) { write Bytes Slow ( bytes , off , len ) ; return ; } final Block block = current ; System . arraycopy ( bytes , off , block . data , block . limit , len ) ; block . limit += len ; } | public void writeBytes ( final byte [ ] bytes , final int off , final int len ) { if ( len > remaining ( ) ) { writeBytesSlow ( bytes , off , len ) ; return ; } final Block block = current ; System . arraycopy ( bytes , off , block . data , block . limit , len ) ; block . limit += len ; } | 75 |
java-test-877 | java | What could we use ? | a rasterization algorithm | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-878 | java | What does this function keep from winding up in many unnecessary cells by inserting each segment individually and splitting long segments into pieces ? | long and angular line strings | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-879 | java | What uses real - world float coordinates , not fixed coordinates ? | the line string | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-880 | java | How does this function keep long and angular line strings from winding up in many unnecessary cells ? | by inserting each segment individually and splitting long segments into pieces | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-881 | java | How is just splitting the line segments up into manageable pieces easier to follow ? | at the expense of slower insert performance ( which so far doesn ' t seem to be a problem ) | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-882 | java | What do the line string use ? | real - world float coordinates , not fixed coordinates | public final void insert ( Line String geom , final int item ) { Coordinate [ ] coord = geom . get Coordinates ( ) ; final T Long Set keys = new T Long Hash Set ( coord . length * NUM ) ; for ( int i = NUM ; i < coord . length - NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + NUM ] . x ; double dY = coord [ i ... | public final void insert ( LineString geom , final int item ) { Coordinate [ ] coord = geom . getCoordinates ( ) ; final TLongSet keys = new TLongHashSet ( coord . length * _NUM ) ; for ( int i = _NUM ; i < coord . length - _NUM ; i ++ ) { double dX = coord [ i ] . x - coord [ i + _NUM ] . x ; double dY = coord [ i ] .... | 337 |
java-test-885 | java | What does the code end ? | all subreports | public void end ( ) { while ( ! subreports . is Empty ( ) ) { String subreport = subreports . pop ( ) ; add Log Entry ( new Subreport End Entry ( subreport ) ) ; } this . end Date = new Date ( ) ; } | public void end ( ) { while ( ! subreports . isEmpty ( ) ) { String subreport = subreports . pop ( ) ; addLogEntry ( new SubreportEndEntry ( subreport ) ) ; } this . endDate = new Date ( ) ; } | 51 |
java-test-886 | java | When should this be done of course ? | during load time | public static void register ( String model Name , I Wind Model model , int awesomeness ) { models . put ( model Name , model ) ; if ( model Name . equals Ignore Case ( user Model Choice ) ) { awesomeness = Integer . MAX VALUE ; } if ( awesomeness > best ) { best = awesomeness ; active Model = model ; } } | public static void register ( String modelName , IWindModel model , int awesomeness ) { models . put ( modelName , model ) ; if ( modelName . equalsIgnoreCase ( userModelChoice ) ) { awesomeness = Integer . MAX_VALUE ; } if ( awesomeness > best ) { best = awesomeness ; activeModel = model ; } } | 69 |
java-test-891 | java | What does anything other than a 4 character length group password use ? | only valid group i d characters | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-892 | java | What uses only valid group i d characters ? | anything other than a 4 character length group password | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-893 | java | For what purpose does the code create a loconet packet ? | to set the duplex group password | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-894 | java | What does s provide ? | anything other than a 4 character length group password which uses only valid group i d characters ( 0 - 9 , a - c , a - c ) | public static final Loco Net Message create Set Ur 92 Group Password Packet ( String s Group Password ) throws jmri . jmrix . loconet . Loco Net Exception { int gr p1 = s Group Password . char At ( NUM ) ; int gr p2 = s Group Password . char At ( NUM ) ; int gr p3 = s Group Password . char At ( NUM ) ; int gr p4 = s Gr... | public static final LocoNetMessage createSetUr92GroupPasswordPacket ( String sGroupPassword ) throws jmri . jmrix . loconet . LocoNetException { int gr_p1 = sGroupPassword . charAt ( _NUM ) ; int gr_p2 = sGroupPassword . charAt ( _NUM ) ; int gr_p3 = sGroupPassword . charAt ( _NUM ) ; int gr_p4 = sGroupPassword . charA... | 419 |
java-test-895 | java | What does the code create ? | the cache to be used by this migration server | private void create Cache ( ) throws Exception { if ( this . distributed System == null ) { this . distributed System = Internal Distributed System . get Connected Instance ( ) ; } this . cache = Cache Factory . create ( this . distributed System ) ; } | private void createCache ( ) throws Exception { if ( this . distributedSystem == null ) { this . distributedSystem = InternalDistributedSystem . getConnectedInstance ( ) ; } this . cache = CacheFactory . create ( this . distributedSystem ) ; } | 51 |
java-test-896 | java | What is starting at the given index ? | a type argument signature | private static int append Type Argument Signature ( char [ ] string , int start , boolean fully Qualify Type Names , String Buffer buffer ) { if ( start >= string . length ) { throw new Illegal Argument Exception ( ) ; } char c = string [ start ] ; switch ( c ) { case C STAR : buffer . append ( STRING ) ; return start ... | private static int appendTypeArgumentSignature ( char [ ] string , int start , boolean fullyQualifyTypeNames , StringBuffer buffer ) { if ( start >= string . length ) { throw new IllegalArgumentException ( ) ; } char c = string [ start ] ; switch ( c ) { case C_STAR : buffer . append ( STRING ) ; return start ; case C_... | 153 |
java-test-898 | java | What loads the actual initiators first first ? | from the stringset | public static boolean check If Initiators For RP ( Db Client db Client , String Set initiator List ) { if ( db Client == null || initiator List == null ) { return BOOL ; } List < Initiator > initiators = new Array List < Initiator > ( ) ; for ( String initiator Id : initiator List ) { Initiator initiator = db Client . ... | public static boolean checkIfInitiatorsForRP ( DbClient dbClient , StringSet initiatorList ) { if ( dbClient == null || initiatorList == null ) { return _BOOL ; } List < Initiator > initiators = new ArrayList < Initiator > ( ) ; for ( String initiatorId : initiatorList ) { Initiator initiator = dbClient . queryObject (... | 111 |
java-test-899 | java | What do from the stringset load first first ? | the actual initiators | public static boolean check If Initiators For RP ( Db Client db Client , String Set initiator List ) { if ( db Client == null || initiator List == null ) { return BOOL ; } List < Initiator > initiators = new Array List < Initiator > ( ) ; for ( String initiator Id : initiator List ) { Initiator initiator = db Client . ... | public static boolean checkIfInitiatorsForRP ( DbClient dbClient , StringSet initiatorList ) { if ( dbClient == null || initiatorList == null ) { return _BOOL ; } List < Initiator > initiators = new ArrayList < Initiator > ( ) ; for ( String initiatorId : initiatorList ) { Initiator initiator = dbClient . queryObject (... | 111 |
java-test-900 | java | What does the code send to the websocket server ? | an opening handshake request | private void write Handshake ( Web Socket Output Stream output , String key ) throws Web Socket Exception { m Handshake Builder . set Key ( key ) ; String request Line = m Handshake Builder . build Request Line ( ) ; List < String [ ] > headers = m Handshake Builder . build Headers ( ) ; String handshake = Handshake Bu... | private void writeHandshake ( WebSocketOutputStream output , String key ) throws WebSocketException { mHandshakeBuilder . setKey ( key ) ; String requestLine = mHandshakeBuilder . buildRequestLine ( ) ; List < String [ ] > headers = mHandshakeBuilder . buildHeaders ( ) ; String handshake = HandshakeBuilder . build ( re... | 141 |
java-test-901 | java | What does the code create ? | a blog object | public static Blob to Blob ( Connection conn , Object value ) throws Page Exception , SQL Exception { if ( value instanceof Blob ) return ( Blob ) value ; if ( System Util . JAVA VERSION >= System Util . JAVA VERSION 1 6 ) { try { Blob blob = conn . create Blob ( ) ; blob . set Bytes ( NUM , Caster . to Binary ( value ... | public static Blob toBlob ( Connection conn , Object value ) throws PageException , SQLException { if ( value instanceof Blob ) return ( Blob ) value ; if ( SystemUtil . JAVA_VERSION >= SystemUtil . JAVA_VERSION_1_6 ) { try { Blob blob = conn . createBlob ( ) ; blob . setBytes ( _NUM , Caster . toBinary ( value ) ) ; r... | 150 |
java-test-902 | java | What does the code add to the target ? | a light indicator | protected Light Icon add Light ( ) { Light Icon l = new Light Icon ( this ) ; Icon Adder editor = get Icon Editor ( STRING ) ; l . set Off Icon ( editor . get Icon ( STRING ) ) ; l . set On Icon ( editor . get Icon ( STRING ) ) ; l . set Inconsistent Icon ( editor . get Icon ( STRING ) ) ; l . set Unknown Icon ( editor... | protected LightIcon addLight ( ) { LightIcon l = new LightIcon ( this ) ; IconAdder editor = getIconEditor ( STRING ) ; l . setOffIcon ( editor . getIcon ( STRING ) ) ; l . setOnIcon ( editor . getIcon ( STRING ) ) ; l . setInconsistentIcon ( editor . getIcon ( STRING ) ) ; l . setUnknownIcon ( editor . getIcon ( STRIN... | 133 |
java-test-903 | java | What does this remove ? | obsolete message and signal subscriptions and timers | public void update Timers And Events ( Process Definition Entity process Definition , Process Definition Entity previous Process Definition , Parsed Deployment parsed Deployment ) { Process process = parsed Deployment . get Process Model For Process Definition ( process Definition ) ; Bpmn Model bpmn Model = parsed Dep... | public void updateTimersAndEvents ( ProcessDefinitionEntity processDefinition , ProcessDefinitionEntity previousProcessDefinition , ParsedDeployment parsedDeployment ) { Process process = parsedDeployment . getProcessModelForProcessDefinition ( processDefinition ) ; BpmnModel bpmnModel = parsedDeployment . getBpmnModel... | 161 |
java-test-904 | java | What does this add ? | new ones | public void update Timers And Events ( Process Definition Entity process Definition , Process Definition Entity previous Process Definition , Parsed Deployment parsed Deployment ) { Process process = parsed Deployment . get Process Model For Process Definition ( process Definition ) ; Bpmn Model bpmn Model = parsed Dep... | public void updateTimersAndEvents ( ProcessDefinitionEntity processDefinition , ProcessDefinitionEntity previousProcessDefinition , ParsedDeployment parsedDeployment ) { Process process = parsedDeployment . getProcessModelForProcessDefinition ( processDefinition ) ; BpmnModel bpmnModel = parsedDeployment . getBpmnModel... | 161 |
java-test-906 | java | What does the code start ? | the transmit thread | public void start Transmit Thread ( ) { if ( xmt Thread == null ) { Thread xmt Thread = new Thread ( xmt Handler , STRING ) ; xmt Thread . set Priority ( Thread . MAX PRIORITY - NUM ) ; xmt Thread . start ( ) ; } } | public void startTransmitThread ( ) { if ( xmtThread == null ) { Thread xmtThread = new Thread ( xmtHandler , STRING ) ; xmtThread . setPriority ( Thread . MAX_PRIORITY - _NUM ) ; xmtThread . start ( ) ; } } | 52 |
java-test-907 | java | What could you write ? | a matcher to delete all occurrences where the character ' a ' is followed by a number | private Str Builder replace Impl ( final Str Matcher matcher , final String replace Str , final int from , int to , int replace Count ) { if ( matcher == null || size == NUM ) { return this ; } final int replace Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; final char [ ] buf = buffer ; for ( int i =... | private StrBuilder replaceImpl ( final StrMatcher matcher , final String replaceStr , final int from , int to , int replaceCount ) { if ( matcher == null || size == _NUM ) { return this ; } final int replaceLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; final char [ ] buf = buffer ; for ( int i = from ... | 177 |
java-test-908 | java | What do a matcher delete ? | all occurrences where the character ' a ' is followed by a number | private Str Builder replace Impl ( final Str Matcher matcher , final String replace Str , final int from , int to , int replace Count ) { if ( matcher == null || size == NUM ) { return this ; } final int replace Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; final char [ ] buf = buffer ; for ( int i =... | private StrBuilder replaceImpl ( final StrMatcher matcher , final String replaceStr , final int from , int to , int replaceCount ) { if ( matcher == null || size == _NUM ) { return this ; } final int replaceLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; final char [ ] buf = buffer ; for ( int i = from ... | 177 |
java-test-909 | java | What does the code create ? | a writer to write comments to a given review | public static < T > Git Note Writer < T > create Note Writer ( String review Commit Hash , final Repository db , Person Ident author , String ref ) { return new Git Note Writer < T > ( review Commit Hash , db , ref , author ) ; } | public static < T > GitNoteWriter < T > createNoteWriter ( String reviewCommitHash , final Repository db , PersonIdent author , String ref ) { return new GitNoteWriter < T > ( reviewCommitHash , db , ref , author ) ; } | 53 |
java-test-910 | java | How does a vector construct ? | with the specified list of values | public Vector ( List < Double > lst ) { super ( lst . size ( ) , NUM ) ; for ( int i = NUM ; i < lst . size ( ) ; i ++ ) { set Value ( i , lst . get ( i ) ) ; } } | public Vector ( List < Double > lst ) { super ( lst . size ( ) , _NUM ) ; for ( int i = _NUM ; i < lst . size ( ) ; i ++ ) { setValue ( i , lst . get ( i ) ) ; } } | 55 |
java-test-911 | java | What does the code update depending on the selection in the measurement box ? | the selection options for the key drop - down box | public void update Tag Key Options ( ) { String current Text = key Box . get Text ( ) ; List < String > tag Keys = influx Service . get Tags ( measurement Box . get Text ( ) ) ; if ( null != tag Keys ) { key Box . set Items ( tag Keys . to Array ( new String [ tag Keys . size ( ) ] ) ) ; } key Box . set Text ( current ... | public void updateTagKeyOptions ( ) { String currentText = keyBox . getText ( ) ; List < String > tagKeys = influxService . getTags ( measurementBox . getText ( ) ) ; if ( null != tagKeys ) { keyBox . setItems ( tagKeys . toArray ( new String [ tagKeys . size ( ) ] ) ) ; } keyBox . setText ( currentText ) ; } | 88 |
java-test-913 | java | Where be the token - name be the key in the map ? | the values from | public String replace Tokens With Values ( String query String , Map < String , Object > params ) throws Bad Request Exception { java . util . regex . Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buffer = new String Buffer ( ) ; while ( matcher . find ( ) ) { String token Key = matcher . g... | public String replaceTokensWithValues ( String queryString , Map < String , Object > params ) throws BadRequestException { java . util . regex . Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buffer = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String tokenKey = matcher . group ( _NUM... | 242 |
java-test-914 | java | What be the key in the map the values from ? | the token - name | public String replace Tokens With Values ( String query String , Map < String , Object > params ) throws Bad Request Exception { java . util . regex . Matcher matcher = token Pattern . matcher ( query String ) ; String Buffer buffer = new String Buffer ( ) ; while ( matcher . find ( ) ) { String token Key = matcher . g... | public String replaceTokensWithValues ( String queryString , Map < String , Object > params ) throws BadRequestException { java . util . regex . Matcher matcher = tokenPattern . matcher ( queryString ) ; StringBuffer buffer = new StringBuffer ( ) ; while ( matcher . find ( ) ) { String tokenKey = matcher . group ( _NUM... | 242 |
java-test-916 | java | What do we expect ? | four integers 0 - 255 separated by some non - numeric character | public static int int Hash ( String ip String ) { int val = NUM ; String [ ] strs = ip String . split ( STRING ) ; int len = strs . length ; if ( len >= NUM ) { val = int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val ( strs [ NUM ] ) ; val <<= NUM ; val |= int Val (... | public static int intHash ( String ipString ) { int val = _NUM ; String [ ] strs = ipString . split ( STRING ) ; int len = strs . length ; if ( len >= _NUM ) { val = intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ( strs [ _NUM ] ) ; val <<= _NUM ; val |= intVal ... | 104 |
java-test-924 | java | What does the code initialize ? | the base colors | private void define Base Colors ( UI Defaults d ) { d . put ( STRING , new Color UI Resource ( NUM ) ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; add Color ( d , STRING , STRING , NUM , - NUM , NUM , NUM ) ; add Color ( d , STRING , NUM , NUM , NUM , NUM ) ; ... | private void defineBaseColors ( UIDefaults d ) { d . put ( STRING , new ColorUIResource ( _NUM ) ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _NUM ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _NUM ) ; addColor ( d , STRING , STRING , _NUM , - _NUM , _NUM , _NUM ) ; addColor ( d , STRING , _NUM , _NUM , _NUM , _... | 1,247 |
java-test-925 | java | What did the code read ? | all the sgml file in the given directory | public static List < Reuters Document > extract ( Path reuters Dir ) throws IO Exception , Parse Exception { List < Reuters Document > docs = new Array List < > ( ) ; Directory Stream < Path > stream = Files . new Directory Stream ( reuters Dir , STRING ) ; for ( Path sgm File : stream ) { Input Stream input Stream = F... | public static List < ReutersDocument > extract ( Path reutersDir ) throws IOException , ParseException { List < ReutersDocument > docs = new ArrayList < > ( ) ; DirectoryStream < Path > stream = Files . newDirectoryStream ( reutersDir , STRING ) ; for ( Path sgmFile : stream ) { InputStream inputStream = Files . newInp... | 104 |
java-test-926 | java | What do we enforce with that of the current state if update checking is required ? | version and signature equality in the incoming request body | private boolean validate Update ( Operation request ) { if ( has Option ( Service Option . CONCURRENT UPDATE HANDLING ) ) { return BOOL ; } if ( request . is From Replication ( ) ) { return BOOL ; } if ( request . get Request Header ( Operation . TRANSACTION HEADER ) != null ) { return BOOL ; } if ( ! has Option ( Serv... | private boolean validateUpdate ( Operation request ) { if ( hasOption ( ServiceOption . CONCURRENT_UPDATE_HANDLING ) ) { return _BOOL ; } if ( request . isFromReplication ( ) ) { return _BOOL ; } if ( request . getRequestHeader ( Operation . TRANSACTION_HEADER ) != null ) { return _BOOL ; } if ( ! hasOption ( ServiceOp... | 258 |
java-test-927 | java | Where does the code add a text bubble ? | at a give position | public void add Text Box ( Sprite sprite , double x , double y , int text Length ) { int sx = convert World X To Scaled Screen ( x ) ; int sy = convert World Y To Scaled Screen ( y ) ; sy -= sprite . get Height ( ) ; sx = keep Sprite On Map X ( sprite , sx ) ; sy = keep Sprite On Map Y ( sprite , sy ) ; boolean found =... | public void addTextBox ( Sprite sprite , double x , double y , int textLength ) { int sx = convertWorldXToScaledScreen ( x ) ; int sy = convertWorldYToScaledScreen ( y ) ; sy -= sprite . getHeight ( ) ; sx = keepSpriteOnMapX ( sprite , sx ) ; sy = keepSpriteOnMapY ( sprite , sy ) ; boolean found = _BOOL ; int tries = _... | 225 |
java-test-928 | java | What does the code add at a give position ? | a text bubble | public void add Text Box ( Sprite sprite , double x , double y , int text Length ) { int sx = convert World X To Scaled Screen ( x ) ; int sy = convert World Y To Scaled Screen ( y ) ; sy -= sprite . get Height ( ) ; sx = keep Sprite On Map X ( sprite , sx ) ; sy = keep Sprite On Map Y ( sprite , sy ) ; boolean found =... | public void addTextBox ( Sprite sprite , double x , double y , int textLength ) { int sx = convertWorldXToScaledScreen ( x ) ; int sy = convertWorldYToScaledScreen ( y ) ; sy -= sprite . getHeight ( ) ; sx = keepSpriteOnMapX ( sprite , sx ) ; sy = keepSpriteOnMapY ( sprite , sy ) ; boolean found = _BOOL ; int tries = _... | 225 |
java-test-929 | java | What do it keep ? | a total account of the number resolved , errored , and the amount of time | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
java-test-930 | java | What does the code create ? | a thread pool for resolving urls . reads in the url file on the local filesystem | public void resolve Urls ( ) { try { pool = Executors . new Fixed Thread Pool ( num Threads ) ; Buffered Reader buff Read = new Buffered Reader ( new File Reader ( new File ( urls File ) ) ) ; String url Str = null ; while ( ( url Str = buff Read . read Line ( ) ) != null ) { LOG . info ( STRING + url Str ) ; pool . ex... | public void resolveUrls ( ) { try { pool = Executors . newFixedThreadPool ( numThreads ) ; BufferedReader buffRead = new BufferedReader ( new FileReader ( new File ( urlsFile ) ) ) ; String urlStr = null ; while ( ( urlStr = buffRead . readLine ( ) ) != null ) { LOG . info ( STRING + urlStr ) ; pool . execute ( new Res... | 196 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.