id stringlengths 11 15 | language stringclasses 1
value | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-1862 | java | Do the target for export create it ? | No | private boolean ensure Target Directory Is Valid ( File target Directory ) { if ( target Directory . exists ( ) && ! target Directory . is Directory ( ) ) { display Error Dialog ( Data Transfer Messages . File Export directory Exists ) ; give Focus To Destination ( ) ; return BOOL ; } return ensure Directory Exists ( t... | private boolean ensureTargetDirectoryIsValid ( File targetDirectory ) { if ( targetDirectory . exists ( ) && ! targetDirectory . isDirectory ( ) ) { displayErrorDialog ( DataTransferMessages . FileExport_directoryExists ) ; giveFocusToDestination ( ) ; return _BOOL ; } return ensureDirectoryExists ( targetDirectory ) ;... | 67 |
java-test-1863 | java | What do a boolean indicate ? | whether the target exists ( ie . - if it either pre - existed or this method was able to create it | private boolean ensure Target Directory Is Valid ( File target Directory ) { if ( target Directory . exists ( ) && ! target Directory . is Directory ( ) ) { display Error Dialog ( Data Transfer Messages . File Export directory Exists ) ; give Focus To Destination ( ) ; return BOOL ; } return ensure Directory Exists ( t... | private boolean ensureTargetDirectoryIsValid ( File targetDirectory ) { if ( targetDirectory . exists ( ) && ! targetDirectory . isDirectory ( ) ) { displayErrorDialog ( DataTransferMessages . FileExport_directoryExists ) ; giveFocusToDestination ( ) ; return _BOOL ; } return ensureDirectoryExists ( targetDirectory ) ;... | 67 |
java-test-1865 | java | What is the code begin ? | a standard fling with an initial velocity along each axis in pixels per second | public boolean fling ( int velocity X , int velocity Y ) { if ( Math . abs ( velocity X ) < m Min Fling Velocity ) { velocity X = NUM ; } if ( Math . abs ( velocity Y ) < m Min Fling Velocity ) { velocity Y = NUM ; } velocity X = Math . max ( - m Max Fling Velocity , Math . min ( velocity X , m Max Fling Velocity ) ) ;... | public boolean fling ( int velocityX , int velocityY ) { if ( Math . abs ( velocityX ) < mMinFlingVelocity ) { velocityX = _NUM ; } if ( Math . abs ( velocityY ) < mMinFlingVelocity ) { velocityY = _NUM ; } velocityX = Math . max ( - mMaxFlingVelocity , Math . min ( velocityX , mMaxFlingVelocity ) ) ; velocityY = Math ... | 145 |
java-test-1867 | java | What does the code update ? | the paging buttons state as well as the label displaying the currently visible number of attributes | private void update Paging Display ( ) { button First Page . set Enabled ( model . get Current Page Index ( ) != NUM ) ; button Previous Page . set Enabled ( model . get Current Page Index ( ) != NUM ) ; button Next Page . set Enabled ( model . get Current Page Index ( ) < model . get Number Of Pages ( ) - NUM ) ; butt... | private void updatePagingDisplay ( ) { buttonFirstPage . setEnabled ( model . getCurrentPageIndex ( ) != _NUM ) ; buttonPreviousPage . setEnabled ( model . getCurrentPageIndex ( ) != _NUM ) ; buttonNextPage . setEnabled ( model . getCurrentPageIndex ( ) < model . getNumberOfPages ( ) - _NUM ) ; buttonLastPage . setEnab... | 268 |
java-test-1868 | java | What do the label display ? | the currently visible number of attributes | private void update Paging Display ( ) { button First Page . set Enabled ( model . get Current Page Index ( ) != NUM ) ; button Previous Page . set Enabled ( model . get Current Page Index ( ) != NUM ) ; button Next Page . set Enabled ( model . get Current Page Index ( ) < model . get Number Of Pages ( ) - NUM ) ; butt... | private void updatePagingDisplay ( ) { buttonFirstPage . setEnabled ( model . getCurrentPageIndex ( ) != _NUM ) ; buttonPreviousPage . setEnabled ( model . getCurrentPageIndex ( ) != _NUM ) ; buttonNextPage . setEnabled ( model . getCurrentPageIndex ( ) < model . getNumberOfPages ( ) - _NUM ) ; buttonLastPage . setEnab... | 268 |
java-test-1869 | java | What does the code update ? | the visibility of tick labels | private void update Tick Visibility ( ) { tick Visibilities . clear ( ) ; for ( int i = NUM ; i < tick Label Positions . size ( ) ; i ++ ) { tick Visibilities . add ( Boolean . TRUE ) ; } if ( tick Label Positions . size ( ) == NUM ) { return ; } int previous Position = NUM ; String previous Label = null ; for ( int i ... | private void updateTickVisibility ( ) { tickVisibilities . clear ( ) ; for ( int i = _NUM ; i < tickLabelPositions . size ( ) ; i ++ ) { tickVisibilities . add ( Boolean . TRUE ) ; } if ( tickLabelPositions . size ( ) == _NUM ) { return ; } int previousPosition = _NUM ; String previousLabel = null ; for ( int i = _NUM ... | 312 |
java-test-1870 | java | What are that is ? | that their bottom edges are on the same y location , with respect to the specified margin | static public void assert Bottom Aligned ( View first , View second , int margin ) { int [ ] xy = new int [ NUM ] ; first . get Location On Screen ( xy ) ; int first Bottom = xy [ NUM ] + first . get Measured Height ( ) ; second . get Location On Screen ( xy ) ; int second Bottom = xy [ NUM ] + second . get Measured He... | static public void assertBottomAligned ( View first , View second , int margin ) { int [ ] xy = new int [ _NUM ] ; first . getLocationOnScreen ( xy ) ; int firstBottom = xy [ _NUM ] + first . getMeasuredHeight ( ) ; second . getLocationOnScreen ( xy ) ; int secondBottom = xy [ _NUM ] + second . getMeasuredHeight ( ) ; ... | 102 |
java-test-1871 | java | What did the code extract ? | the required keys and values | private byte [ ] extract Relevant Values ( Cursor cursor , String [ ] settings ) { final int settings Count = settings . length ; byte [ ] [ ] values = new byte [ settings Count * NUM ] [ ] ; if ( ! cursor . move To First ( ) ) { Log . e ( TAG , STRING ) ; return new byte [ NUM ] ; } int total Size = NUM ; int backed U... | private byte [ ] extractRelevantValues ( Cursor cursor , String [ ] settings ) { final int settingsCount = settings . length ; byte [ ] [ ] values = new byte [ settingsCount * _NUM ] [ ] ; if ( ! cursor . moveToFirst ( ) ) { Log . e ( TAG , STRING ) ; return new byte [ _NUM ] ; } int totalSize = _NUM ; int backedUpSett... | 430 |
java-test-1872 | java | What does the code instantiate ? | a new thread data | public Thread Data ( String thread Name , String thread State , long cpu Time In Nano Seconds ) { this . thread Name = thread Name ; this . thread State = thread State ; this . cpu Time In Nano Seconds = cpu Time In Nano Seconds ; } | public ThreadData ( String threadName , String threadState , long cpuTimeInNanoSeconds ) { this . threadName = threadName ; this . threadState = threadState ; this . cpuTimeInNanoSeconds = cpuTimeInNanoSeconds ; } | 51 |
java-test-1873 | java | What does the code write a formatted string using the specified locale , format string , and arguments ? | to this object ' s destination | public Formatter format ( Locale l , String format , Object ... args ) { ensure Open ( ) ; int last = - NUM ; int lasto = - NUM ; Format String [ ] fsa = parse ( format ) ; for ( int i = NUM ; i < fsa . length ; i ++ ) { Format String fs = fsa [ i ] ; int index = fs . index ( ) ; try { switch ( index ) { case - NUM : f... | public Formatter format ( Locale l , String format , Object ... args ) { ensureOpen ( ) ; int last = - _NUM ; int lasto = - _NUM ; FormatString [ ] fsa = parse ( format ) ; for ( int i = _NUM ; i < fsa . length ; i ++ ) { FormatString fs = fsa [ i ] ; int index = fs . index ( ) ; try { switch ( index ) { case - _NUM : ... | 301 |
java-test-1875 | java | Is str . tolowercase ( ) . endswith ( end . tolowercase ( ) ) implementation creating extra strings iff ? | No | public final static boolean ends With Ignore Case ( String str , String end ) { int str Length = str == null ? NUM : str . length ( ) ; int end Length = end == null ? NUM : end . length ( ) ; if ( end Length > str Length ) return BOOL ; for ( int i = NUM ; i <= end Length ; i ++ ) { if ( Scanner Helper . to Lower Case ... | public final static boolean endsWithIgnoreCase ( String str , String end ) { int strLength = str == null ? _NUM : str . length ( ) ; int endLength = end == null ? _NUM : end . length ( ) ; if ( endLength > strLength ) return _BOOL ; for ( int i = _NUM ; i <= endLength ; i ++ ) { if ( ScannerHelper . toLowerCase ( end .... | 123 |
java-test-1876 | java | What is str . tolowercase ( ) . endswith ( end . tolowercase ( ) ) implementation not creating iff ? | extra strings | public final static boolean ends With Ignore Case ( String str , String end ) { int str Length = str == null ? NUM : str . length ( ) ; int end Length = end == null ? NUM : end . length ( ) ; if ( end Length > str Length ) return BOOL ; for ( int i = NUM ; i <= end Length ; i ++ ) { if ( Scanner Helper . to Lower Case ... | public final static boolean endsWithIgnoreCase ( String str , String end ) { int strLength = str == null ? _NUM : str . length ( ) ; int endLength = end == null ? _NUM : end . length ( ) ; if ( endLength > strLength ) return _BOOL ; for ( int i = _NUM ; i <= endLength ; i ++ ) { if ( ScannerHelper . toLowerCase ( end .... | 123 |
java-test-1877 | java | How is str . tolowercase ( ) . endswith ( end . tolowercase ( ) ) implementation not creating extra strings ? | iff | public final static boolean ends With Ignore Case ( String str , String end ) { int str Length = str == null ? NUM : str . length ( ) ; int end Length = end == null ? NUM : end . length ( ) ; if ( end Length > str Length ) return BOOL ; for ( int i = NUM ; i <= end Length ; i ++ ) { if ( Scanner Helper . to Lower Case ... | public final static boolean endsWithIgnoreCase ( String str , String end ) { int strLength = str == null ? _NUM : str . length ( ) ; int endLength = end == null ? _NUM : end . length ( ) ; if ( endLength > strLength ) return _BOOL ; for ( int i = _NUM ; i <= endLength ; i ++ ) { if ( ScannerHelper . toLowerCase ( end .... | 123 |
java-test-1878 | java | What is not creating extra strings iff ? | str . tolowercase ( ) . endswith ( end . tolowercase ( ) ) implementation | public final static boolean ends With Ignore Case ( String str , String end ) { int str Length = str == null ? NUM : str . length ( ) ; int end Length = end == null ? NUM : end . length ( ) ; if ( end Length > str Length ) return BOOL ; for ( int i = NUM ; i <= end Length ; i ++ ) { if ( Scanner Helper . to Lower Case ... | public final static boolean endsWithIgnoreCase ( String str , String end ) { int strLength = str == null ? _NUM : str . length ( ) ; int endLength = end == null ? _NUM : end . length ( ) ; if ( endLength > strLength ) return _BOOL ; for ( int i = _NUM ; i <= endLength ; i ++ ) { if ( ScannerHelper . toLowerCase ( end .... | 123 |
java-test-1879 | java | What must we keep in induced tree ? | all nodes in tree | private boolean label To Keep Rec ( Node v , Set < Integer > ids , Node Set keep ) { boolean has Below = BOOL ; int id = ( Integer ) v . get Info ( ) ; if ( ids . size ( ) == NUM || ids . contains ( id ) ) has Below = BOOL ; for ( Edge e = v . get First Out Edge ( ) ; e != null ; e = v . get Next Out Edge ( e ) ) { Nod... | private boolean labelToKeepRec ( Node v , Set < Integer > ids , NodeSet keep ) { boolean hasBelow = _BOOL ; int id = ( Integer ) v . getInfo ( ) ; if ( ids . size ( ) == _NUM || ids . contains ( id ) ) hasBelow = _BOOL ; for ( Edge e = v . getFirstOutEdge ( ) ; e != null ; e = v . getNextOutEdge ( e ) ) { Node w = e . ... | 140 |
java-test-1880 | java | Where must we keep all nodes in tree ? | in induced tree | private boolean label To Keep Rec ( Node v , Set < Integer > ids , Node Set keep ) { boolean has Below = BOOL ; int id = ( Integer ) v . get Info ( ) ; if ( ids . size ( ) == NUM || ids . contains ( id ) ) has Below = BOOL ; for ( Edge e = v . get First Out Edge ( ) ; e != null ; e = v . get Next Out Edge ( e ) ) { Nod... | private boolean labelToKeepRec ( Node v , Set < Integer > ids , NodeSet keep ) { boolean hasBelow = _BOOL ; int id = ( Integer ) v . getInfo ( ) ; if ( ids . size ( ) == _NUM || ids . contains ( id ) ) hasBelow = _BOOL ; for ( Edge e = v . getFirstOutEdge ( ) ; e != null ; e = v . getNextOutEdge ( e ) ) { Node w = e . ... | 140 |
java-test-1883 | java | Where does the code consume the pre nested scroll if need ? | before all behaviors | private void consume Pre Nested Scroll ( int dx , int dy , int [ ] consumed ) { if ( m Over Scroll Effect == Over Scroll Effect . BOUNCE && m Unconsumed Over Scroll Offset != NUM ) { int dest Offset = m Unconsumed Over Scroll Offset - dy ; if ( ! Math Utils . same Sign ( dest Offset , m Unconsumed Over Scroll Offset ) ... | private void consumePreNestedScroll ( int dx , int dy , int [ ] consumed ) { if ( mOverScrollEffect == OverScrollEffect . BOUNCE && mUnconsumedOverScrollOffset != _NUM ) { int destOffset = mUnconsumedOverScrollOffset - dy ; if ( ! MathUtils . sameSign ( destOffset , mUnconsumedOverScrollOffset ) ) { destOffset = _NUM ;... | 156 |
java-test-1884 | java | What does the code consume if need before all behaviors ? | the pre nested scroll | private void consume Pre Nested Scroll ( int dx , int dy , int [ ] consumed ) { if ( m Over Scroll Effect == Over Scroll Effect . BOUNCE && m Unconsumed Over Scroll Offset != NUM ) { int dest Offset = m Unconsumed Over Scroll Offset - dy ; if ( ! Math Utils . same Sign ( dest Offset , m Unconsumed Over Scroll Offset ) ... | private void consumePreNestedScroll ( int dx , int dy , int [ ] consumed ) { if ( mOverScrollEffect == OverScrollEffect . BOUNCE && mUnconsumedOverScrollOffset != _NUM ) { int destOffset = mUnconsumedOverScrollOffset - dy ; if ( ! MathUtils . sameSign ( destOffset , mUnconsumedOverScrollOffset ) ) { destOffset = _NUM ;... | 156 |
java-test-1895 | java | For what purpose do headers of the request analyze ? | for " accept - encoding " header and its mangled variations and gzip header value and its mangled variations | @ Suppress Warnings ( STRING ) public static boolean is Gzip Supported ( final Http Servlet Request request ) { if ( request != null ) { final Enumeration < String > header Names = request . get Header Names ( ) ; if ( header Names != null ) { while ( header Names . has More Elements ( ) ) { final String header Name = ... | @ SuppressWarnings ( STRING ) public static boolean isGzipSupported ( final HttpServletRequest request ) { if ( request != null ) { final Enumeration < String > headerNames = request . getHeaderNames ( ) ; if ( headerNames != null ) { while ( headerNames . hasMoreElements ( ) ) { final String headerName = headerNames .... | 143 |
java-test-1896 | java | For what purpose will a radial gradient result in a circular shape ? | to create a square use fillrect or draw a larger shape and clip to the appropriate size | public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size... | public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )... | 435 |
java-test-1897 | java | What does the code draw ? | a radial gradient in the given coordinates with the given colors | public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size... | public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )... | 435 |
java-test-1898 | java | When does alpha take into consideration ? | when drawing the gradient | public void fill Rect Radial Gradient ( Object graphics , int start Color , int end Color , int x , int y , int width , int height , float relative X , float relative Y , float relative Size ) { int center X = ( int ) ( width * ( NUM - relative X ) ) ; int center Y = ( int ) ( height * ( NUM - relative Y ) ) ; int size... | public void fillRectRadialGradient ( Object graphics , int startColor , int endColor , int x , int y , int width , int height , float relativeX , float relativeY , float relativeSize ) { int centerX = ( int ) ( width * ( _NUM - relativeX ) ) ; int centerY = ( int ) ( height * ( _NUM - relativeY ) ) ; int size = ( int )... | 435 |
java-test-1899 | java | When is the value converted to the opposed endian system ? | while reading | private static int read Swapped Integer ( final Data Input Stream input ) throws IO Exception { final int value 1 = input . read Byte ( ) ; final int value 2 = input . read Byte ( ) ; final int value 3 = input . read Byte ( ) ; final int value 4 = input . read Byte ( ) ; return ( ( value 1 & NUM ) << NUM ) + ( ( value ... | private static int readSwappedInteger ( final DataInputStream input ) throws IOException { final int value1 = input . readByte ( ) ; final int value2 = input . readByte ( ) ; final int value3 = input . readByte ( ) ; final int value4 = input . readByte ( ) ; return ( ( value1 & _NUM ) << _NUM ) + ( ( value2 & _NUM ) <<... | 111 |
java-test-1900 | java | What does the code create ? | a sliding window from text | public static Window window For Word In Position ( int window Size , int word Pos , List < String > sentence ) { List < String > window = new Array List < > ( ) ; List < String > only Tokens = new Array List < > ( ) ; int context Size = ( int ) Math . floor ( ( window Size - NUM ) / NUM ) ; for ( int i = word Pos - con... | public static Window windowForWordInPosition ( int windowSize , int wordPos , List < String > sentence ) { List < String > window = new ArrayList < > ( ) ; List < String > onlyTokens = new ArrayList < > ( ) ; int contextSize = ( int ) Math . floor ( ( windowSize - _NUM ) / _NUM ) ; for ( int i = wordPos - contextSize ;... | 219 |
java-test-1903 | java | How do the ward list populate the code ? | by zone | public List < Boundary > populate Ward ( final Long zone Id ) { List < Boundary > ward List = new Linked List < Boundary > ( ) ; try { ward List = boundary Service . get Child Boundaries By Boundary Id ( zone Id ) ; } catch ( final Exception e ) { LOGGER . error ( STRING + e . get Message ( ) ) ; throw new Application ... | public List < Boundary > populateWard ( final Long zoneId ) { List < Boundary > wardList = new LinkedList < Boundary > ( ) ; try { wardList = boundaryService . getChildBoundariesByBoundaryId ( zoneId ) ; } catch ( final Exception e ) { LOGGER . error ( STRING + e . getMessage ( ) ) ; throw new ApplicationRuntimeExcepti... | 88 |
java-test-1904 | java | What does the code handle ? | the request of migration | public void handle Request ( List arguments ) { try { Install Logger migrate Log = new Install Logger ( STR MIGRATE ) ; Multiple Migrate Driver driver = new Multiple Migrate Driver ( ) ; if ( arguments . is Empty ( ) ) { Debug . log ( STRING ) ; driver . migrate ( migrate Log ) ; } else if ( arguments . size ( ) == NUM... | public void handleRequest ( List arguments ) { try { InstallLogger migrateLog = new InstallLogger ( STR_MIGRATE ) ; MultipleMigrateDriver driver = new MultipleMigrateDriver ( ) ; if ( arguments . isEmpty ( ) ) { Debug . log ( STRING ) ; driver . migrate ( migrateLog ) ; } else if ( arguments . size ( ) == _NUM ) { Debu... | 164 |
java-test-1905 | java | What did the code given an iterable of files and a " current working directory " return ? | an iterable where the files that were relative are now absolute after having the " cwd " applied to them as their parent directory . files in the list that were already absolute are returned unmodified | public static Iterable < File > apply Cwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new Array List < File > ( ) ; for ( File f : files ) { result . add ( apply Cwd ( cwd , f ) ) ; } return result ; } else { return null ; } } | public static Iterable < File > applyCwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new ArrayList < File > ( ) ; for ( File f : files ) { result . add ( applyCwd ( cwd , f ) ) ; } return result ; } else { return null ; } } | 74 |
java-test-1906 | java | What returns an iterable where the files that were relative are now absolute after having the " cwd " applied to them as their parent directory . files in the list that were already absolute are returned unmodified ? | the code given an iterable of files and a " current working directory " | public static Iterable < File > apply Cwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new Array List < File > ( ) ; for ( File f : files ) { result . add ( apply Cwd ( cwd , f ) ) ; } return result ; } else { return null ; } } | public static Iterable < File > applyCwd ( File cwd , Iterable < File > files ) { if ( files != null ) { List < File > result = new ArrayList < File > ( ) ; for ( File f : files ) { result . add ( applyCwd ( cwd , f ) ) ; } return result ; } else { return null ; } } | 74 |
java-test-1909 | java | What does the code place in the provided mutablebiginteger objects ? | the quotient | Mutable Big Integer divide Knuth ( Mutable Big Integer b , Mutable Big Integer quotient , boolean need Remainder ) { if ( b . int Len == NUM ) throw new Arithmetic Exception ( STRING ) ; if ( int Len == NUM ) { quotient . int Len = quotient . offset = NUM ; return need Remainder ? new Mutable Big Integer ( ) : null ; }... | MutableBigInteger divideKnuth ( MutableBigInteger b , MutableBigInteger quotient , boolean needRemainder ) { if ( b . intLen == _NUM ) throw new ArithmeticException ( STRING ) ; if ( intLen == _NUM ) { quotient . intLen = quotient . offset = _NUM ; return needRemainder ? new MutableBigInteger ( ) : null ; } int cmp = c... | 364 |
java-test-1910 | java | What does the code calculate ? | the quotient of this div b | Mutable Big Integer divide Knuth ( Mutable Big Integer b , Mutable Big Integer quotient , boolean need Remainder ) { if ( b . int Len == NUM ) throw new Arithmetic Exception ( STRING ) ; if ( int Len == NUM ) { quotient . int Len = quotient . offset = NUM ; return need Remainder ? new Mutable Big Integer ( ) : null ; }... | MutableBigInteger divideKnuth ( MutableBigInteger b , MutableBigInteger quotient , boolean needRemainder ) { if ( b . intLen == _NUM ) throw new ArithmeticException ( STRING ) ; if ( intLen == _NUM ) { quotient . intLen = quotient . offset = _NUM ; return needRemainder ? new MutableBigInteger ( ) : null ; } int cmp = c... | 364 |
java-test-1911 | java | How does the code add a new usre ? | through the frontend | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1912 | java | What does the code add through the frontend ? | a new usre | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1913 | java | What does the code do activates also to do sso see the methods to create a hash and use those ones ? | the account | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1914 | java | For what purpose does the code do activates the account also ? | to do sso see the methods to create a hash and use those ones | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1915 | java | What does the code see ? | the methods to create a hash and use those ones | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1916 | java | What does the code use ? | those ones | public Long add New User ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states id , String town , long language id , String base URL ) throws Axis Fault { try { Long users id = session Manageme... | public Long addNewUser ( String SID , String username , String userpass , String lastname , String firstname , String email , String additionalname , String street , String zip , String fax , long states_id , String town , long language_id , String baseURL ) throws AxisFault { try { Long users_id = sessionManagement . ... | 309 |
java-test-1919 | java | What does the code add ? | edge | void add Edge ( Method Parameter in , Method Parameter out ) { Set < Method Parameter > outs = graph . get ( in ) ; if ( outs == null ) { outs = new Hash Set < > ( ) ; graph . put ( in , outs ) ; } outs . add ( out ) ; } | void addEdge ( MethodParameter in , MethodParameter out ) { Set < MethodParameter > outs = graph . get ( in ) ; if ( outs == null ) { outs = new HashSet < > ( ) ; graph . put ( in , outs ) ; } outs . add ( out ) ; } | 62 |
java-test-1920 | java | Where are these drawn ? | on top of the main view sprite | public void attach Sprite ( Sprite sprite , Horizontal Alignment x Align , Vertical Alignment y Align , int x Offset , int y Offset ) { int x = x Offset ; switch ( x Align ) { case LEFT : break ; case RIGHT : x += get Width ( ) - sprite . get Width ( ) ; break ; case CENTER : x += ( get Width ( ) - sprite . get Width (... | public void attachSprite ( Sprite sprite , HorizontalAlignment xAlign , VerticalAlignment yAlign , int xOffset , int yOffset ) { int x = xOffset ; switch ( xAlign ) { case LEFT : break ; case RIGHT : x += getWidth ( ) - sprite . getWidth ( ) ; break ; case CENTER : x += ( getWidth ( ) - sprite . getWidth ( ) ) / _NUM ;... | 194 |
java-test-1923 | java | What must caller update only updates subscriptionsbyeventtype ? | typesbysubscriber | private void unubscribe By Event Type ( Object subscriber , Class < ? > event Type ) { List < Subscription > subscriptions = subscriptions By Event Type . get ( event Type ) ; if ( subscriptions != null ) { int size = subscriptions . size ( ) ; for ( int i = NUM ; i < size ; i ++ ) { if ( subscriptions . get ( i ) . su... | private void unubscribeByEventType ( Object subscriber , Class < ? > eventType ) { List < Subscription > subscriptions = subscriptionsByEventType . get ( eventType ) ; if ( subscriptions != null ) { int size = subscriptions . size ( ) ; for ( int i = _NUM ; i < size ; i ++ ) { if ( subscriptions . get ( i ) . subscribe... | 97 |
java-test-1927 | java | Do the removed length match the length of the inserted string ? | No | public Str Builder replace ( final int start Index , int end Index , final String replace Str ) { end Index = validate Range ( start Index , end Index ) ; final int insert Len = ( replace Str == null ? NUM : replace Str . length ( ) ) ; replace Impl ( start Index , end Index , end Index - start Index , replace Str , in... | public StrBuilder replace ( final int startIndex , int endIndex , final String replaceStr ) { endIndex = validateRange ( startIndex , endIndex ) ; final int insertLen = ( replaceStr == null ? _NUM : replaceStr . length ( ) ) ; replaceImpl ( startIndex , endIndex , endIndex - startIndex , replaceStr , insertLen ) ; retu... | 80 |
java-test-1928 | java | What is invocation delegated ? | to internalputproperty | public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ... | public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent... | 102 |
java-test-1929 | java | What does this method be ? | to be used in conjuction with sessionrequesthandler / sessionservice invocation path | public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ... | public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent... | 102 |
java-test-1930 | java | What should client have if it is protected ? | permission to set it | public void put External Property ( SSO Token client Token , String key , String value ) throws Session Exception { try { session Utils Wrapper . check Permission To Set Property ( client Token , key , value ) ; } catch ( Session Exception se ) { fire Session Event ( Session Event Type . PROTECTED PROPERTY ) ; session ... | public void putExternalProperty ( SSOToken clientToken , String key , String value ) throws SessionException { try { sessionUtilsWrapper . checkPermissionToSetProperty ( clientToken , key , value ) ; } catch ( SessionException se ) { fireSessionEvent ( SessionEventType . PROTECTED_PROPERTY ) ; sessionLogging . logEvent... | 102 |
java-test-1934 | java | What does this implementation use ? | zero step of newton ' s method | public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; } | public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; } | 58 |
java-test-1935 | java | What do you use ? | your own number : n = 0 : about 3 | public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; } | public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; } | 58 |
java-test-1936 | java | What does you want ? | to copy - paste this code and | public static double inv Sqrt Quick ( final double value ) { if ( USE JDK MATH ) { return NUM / Math . sqrt ( value ) ; } return Double . long Bits To Double ( NUM - ( Double . double To Raw Long Bits ( value ) > > NUM ) ) ; } | public static double invSqrtQuick ( final double value ) { if ( USE_JDK_MATH ) { return _NUM / Math . sqrt ( value ) ; } return Double . longBitsToDouble ( _NUM - ( Double . doubleToRawLongBits ( value ) > > _NUM ) ) ; } | 58 |
java-test-1937 | java | Should a wildcard in the host / port match any of the path urls ? | No | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1938 | java | How will they be compared ? | by the super class ' comparison function | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1939 | java | What should not match any of the path urls ? | a wildcard in the host / port | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1940 | java | When should specific comparison for urls , where a wildcard in the host / port should not match any of the path . strings be canonicalized ? | prior to entering this comparison | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1941 | java | What should a wildcard in the host / port not match urls ? | any of the path | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1942 | java | Where should a wildcard in the host / port not match any of the path ? | urls | @ Override public T compare ( String request Resource , String target Resource , boolean wildcard Compare ) { if ( ! wildcard Compare ) { return super . compare ( request Resource , target Resource , wildcard Compare ) ; } String schemeless Target = target Resource ; String schemeless Request = request Resource ; if ( ... | @ Override public T compare ( String requestResource , String targetResource , boolean wildcardCompare ) { if ( ! wildcardCompare ) { return super . compare ( requestResource , targetResource , wildcardCompare ) ; } String schemelessTarget = targetResource ; String schemelessRequest = requestResource ; if ( schemelessT... | 694 |
java-test-1944 | java | What does this method set ? | the working directory | private void initialize Context ( ) throws IO Exception { String working Dir = System . get Property ( STRING ) ; File dataset = File Utils . get File ( working Dir + STRING ) ; File log 4 j File = File Utils . get File ( working Dir + STRING ) ; File dataset Folder = new File ( destination Folder + STRING ) ; File log... | private void initializeContext ( ) throws IOException { String workingDir = System . getProperty ( STRING ) ; File dataset = FileUtils . getFile ( workingDir + STRING ) ; File log4jFile = FileUtils . getFile ( workingDir + STRING ) ; File datasetFolder = new File ( destinationFolder + STRING ) ; File log4jFolder = new ... | 132 |
java-test-1945 | java | What does this method copy to the appropriate path ? | the static context files such as log4j or xmldataset ( needed by hsqldb ) | private void initialize Context ( ) throws IO Exception { String working Dir = System . get Property ( STRING ) ; File dataset = File Utils . get File ( working Dir + STRING ) ; File log 4 j File = File Utils . get File ( working Dir + STRING ) ; File dataset Folder = new File ( destination Folder + STRING ) ; File log... | private void initializeContext ( ) throws IOException { String workingDir = System . getProperty ( STRING ) ; File dataset = FileUtils . getFile ( workingDir + STRING ) ; File log4jFile = FileUtils . getFile ( workingDir + STRING ) ; File datasetFolder = new File ( destinationFolder + STRING ) ; File log4jFolder = new ... | 132 |
java-test-1946 | java | Can nested layers have one parent only ? | No | public void add Child ( Pdf Layer child Layer ) { if ( child Layer . parent != null ) throw new Illegal Argument Exception ( STRING ) ; child Layer . parent = this ; if ( children == null ) children = new Array List < > ( ) ; children . add ( child Layer ) ; } | public void addChild ( PdfLayer childLayer ) { if ( childLayer . parent != null ) throw new IllegalArgumentException ( STRING ) ; childLayer . parent = this ; if ( children == null ) children = new ArrayList < > ( ) ; children . add ( childLayer ) ; } | 61 |
java-test-1947 | java | When did from auto - closing clips call the code ? | when one of their open ( ) method is called | void auto Closing Clip Opened ( Auto Closing Clip clip ) { if ( Printer . debug ) Printer . debug ( STRING ) ; int index = NUM ; synchronized ( auto Closing Clips ) { index = get Auto Closing Clip Index ( clip ) ; if ( index == - NUM ) { if ( Printer . debug ) Printer . debug ( STRING + clip ) ; auto Closing Clips . ad... | void autoClosingClipOpened ( AutoClosingClip clip ) { if ( Printer . debug ) Printer . debug ( STRING ) ; int index = _NUM ; synchronized ( autoClosingClips ) { index = getAutoClosingClipIndex ( clip ) ; if ( index == - _NUM ) { if ( Printer . debug ) Printer . debug ( STRING + clip ) ; autoClosingClips . add ( new Cli... | 131 |
java-test-1948 | java | Where does it exist ? | in the states list | public synchronized static int insert Lua State ( Lua State L ) { int i ; for ( i = NUM ; i < states . size ( ) ; i ++ ) { Lua State state = ( Lua State ) states . get ( i ) ; if ( state != null ) { if ( state . get C Ptr Peer ( ) == L . get C Ptr Peer ( ) ) return i ; } } i = get Next State Index ( ) ; states . set ( ... | public synchronized static int insertLuaState ( LuaState L ) { int i ; for ( i = _NUM ; i < states . size ( ) ; i ++ ) { LuaState state = ( LuaState ) states . get ( i ) ; if ( state != null ) { if ( state . getCPtrPeer ( ) == L . getCPtrPeer ( ) ) return i ; } } i = getNextStateIndex ( ) ; states . set ( i , L ) ; ret... | 103 |
java-test-1949 | java | What does the code receive if it exists in the states list ? | a existing luastate | public synchronized static int insert Lua State ( Lua State L ) { int i ; for ( i = NUM ; i < states . size ( ) ; i ++ ) { Lua State state = ( Lua State ) states . get ( i ) ; if ( state != null ) { if ( state . get C Ptr Peer ( ) == L . get C Ptr Peer ( ) ) return i ; } } i = get Next State Index ( ) ; states . set ( ... | public synchronized static int insertLuaState ( LuaState L ) { int i ; for ( i = _NUM ; i < states . size ( ) ; i ++ ) { LuaState state = ( LuaState ) states . get ( i ) ; if ( state != null ) { if ( state . getCPtrPeer ( ) == L . getCPtrPeer ( ) ) return i ; } } i = getNextStateIndex ( ) ; states . set ( i , L ) ; ret... | 103 |
java-test-1950 | java | What does the code normalize ? | the given local file name | private void normalize Local File Name ( String Builder local File Name ) { while ( BOOL ) { int dot Dot Index = local File Name . index Of ( STRING ) ; if ( dot Dot Index < NUM ) { break ; } int parent Index = local File Name . last Index Of ( STRING , dot Dot Index - NUM ) ; if ( parent Index < NUM ) { break ; } loca... | private void normalizeLocalFileName ( StringBuilder localFileName ) { while ( _BOOL ) { int dotDotIndex = localFileName . indexOf ( STRING ) ; if ( dotDotIndex < _NUM ) { break ; } int parentIndex = localFileName . lastIndexOf ( STRING , dotDotIndex - _NUM ) ; if ( parentIndex < _NUM ) { break ; } localFileName . delet... | 404 |
java-test-1951 | java | How do leading remove ? | special notation | private void normalize Local File Name ( String Builder local File Name ) { while ( BOOL ) { int dot Dot Index = local File Name . index Of ( STRING ) ; if ( dot Dot Index < NUM ) { break ; } int parent Index = local File Name . last Index Of ( STRING , dot Dot Index - NUM ) ; if ( parent Index < NUM ) { break ; } loca... | private void normalizeLocalFileName ( StringBuilder localFileName ) { while ( _BOOL ) { int dotDotIndex = localFileName . indexOf ( STRING ) ; if ( dotDotIndex < _NUM ) { break ; } int parentIndex = localFileName . lastIndexOf ( STRING , dotDotIndex - _NUM ) ; if ( parentIndex < _NUM ) { break ; } localFileName . delet... | 404 |
java-test-1952 | java | What does the code obtain from the given context ? | the bthelperclient | public static Bt Helper Client from ( Context context ) { if ( s Bt Helper Client == null ) { synchronized ( Bt Helper Client . class ) { if ( s Bt Helper Client == null ) s Bt Helper Client = new Bt Helper Client ( context ) ; } } return s Bt Helper Client ; } | public static BtHelperClient from ( Context context ) { if ( sBtHelperClient == null ) { synchronized ( BtHelperClient . class ) { if ( sBtHelperClient == null ) sBtHelperClient = new BtHelperClient ( context ) ; } } return sBtHelperClient ; } | 61 |
java-test-1953 | java | What does the code replace with their plain text equivalents ? | entity references in html cdata | public static String decode ( String html ) { if ( html . index Of ( STRING ) < NUM ) { return html ; } char [ ] chars = html . to Char Array ( ) ; int delta = NUM ; int n = chars . length ; for ( int i = NUM ; i < n ; ) { char ch = chars [ i ] ; if ( chars [ i ] == STRING ) { long packed End And Codepoint = Html Entit... | public static String decode ( String html ) { if ( html . indexOf ( STRING ) < _NUM ) { return html ; } char [ ] chars = html . toCharArray ( ) ; int delta = _NUM ; int n = chars . length ; for ( int i = _NUM ; i < n ; ) { char ch = chars [ i ] ; if ( chars [ i ] == STRING ) { long packedEndAndCodepoint = HtmlEntities ... | 229 |
java-test-1954 | java | What does the code create ? | a new capitalizationfilterfactory | public Capitalization Filter Factory ( Map < String , String > args ) { super ( args ) ; boolean ignore Case = get Boolean ( args , KEEP IGNORE CASE , BOOL ) ; Set < String > k = get Set ( args , KEEP ) ; if ( k != null ) { keep = new Char Array Set ( NUM , ignore Case ) ; keep . add All ( k ) ; } k = get Set ( args , ... | public CapitalizationFilterFactory ( Map < String , String > args ) { super ( args ) ; boolean ignoreCase = getBoolean ( args , KEEP_IGNORE_CASE , _BOOL ) ; Set < String > k = getSet ( args , KEEP ) ; if ( k != null ) { keep = new CharArraySet ( _NUM , ignoreCase ) ; keep . addAll ( k ) ; } k = getSet ( args , OK_PREFI... | 247 |
java-test-1955 | java | What did the code read from a file ? | an x . 509v3 certificate | public Burp Certificate import Certificate ( String filename ) { set Status ( STRING ) ; File Input Stream fis ; try { fis = new File Input Stream ( filename ) ; byte value [ ] = new byte [ fis . available ( ) ] ; fis . read ( value ) ; Byte Array Input Stream bais = new Byte Array Input Stream ( value ) ; fis . close ... | public BurpCertificate importCertificate ( String filename ) { setStatus ( STRING ) ; FileInputStream fis ; try { fis = new FileInputStream ( filename ) ; byte value [ ] = new byte [ fis . available ( ) ] ; fis . read ( value ) ; ByteArrayInputStream bais = new ByteArrayInputStream ( value ) ; fis . close ( ) ; Certifi... | 245 |
java-test-1956 | java | How is this done ? | in conjunction with calls to stop and skip | private Monitor remove Mon ( String label , String detail , String units ) { Mon Key key = get Mon Key ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; } | private Monitor removeMon ( String label , String detail , String units ) { MonKey key = getMonKey ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; } | 60 |
java-test-1957 | java | What does the code remove from map ? | monitor | private Monitor remove Mon ( String label , String detail , String units ) { Mon Key key = get Mon Key ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; } | private Monitor removeMon ( String label , String detail , String units ) { MonKey key = getMonKey ( label , detail , units ) ; Monitor mon = ( Monitor ) map . get ( key ) ; if ( mon != null ) map . remove ( mon ) ; return mon ; } | 60 |
java-test-1958 | java | What does the code delete ? | the existing environment | public void delete Environment ( Environment environment ) throws IO Exception { String id = environment . get Id ( ) ; Environment local = existing Environments . remove ( id ) ; if ( null != local ) { Files . delete If Exists ( path Resolver . get Environment File Path ( local ) ) ; Agent Mappings agent Mappings = ag... | public void deleteEnvironment ( Environment environment ) throws IOException { String id = environment . getId ( ) ; Environment local = existingEnvironments . remove ( id ) ; if ( null != local ) { Files . deleteIfExists ( pathResolver . getEnvironmentFilePath ( local ) ) ; AgentMappings agentMappings = agentMappingsR... | 113 |
java-test-1960 | java | What does the code consider to cluster assignments recursively ? | all possible class | public static void map Classes ( int num Clusters , int lev , int [ ] [ ] counts , int [ ] cluster Totals , double [ ] current , double [ ] best , int error ) { if ( lev == num Clusters ) { if ( error < best [ num Clusters ] ) { best [ num Clusters ] = error ; for ( int i = NUM ; i < num Clusters ; i ++ ) { best [ i ] ... | public static void mapClasses ( int numClusters , int lev , int [ ] [ ] counts , int [ ] clusterTotals , double [ ] current , double [ ] best , int error ) { if ( lev == numClusters ) { if ( error < best [ numClusters ] ) { best [ numClusters ] = error ; for ( int i = _NUM ; i < numClusters ; i ++ ) { best [ i ] = curr... | 310 |
java-test-1961 | java | When does a scheduleitem place ? | earlier in the schedule | public void move Item Up ( Schedule Item si ) { int sequence Id = si . get Sequence Id ( ) ; if ( sequence Id - NUM <= NUM ) { si . set Sequence Id ( sequence Num + NUM ) ; resequence Ids ( ) ; } else { Schedule Item replace Si = get Item By Sequence Id ( sequence Id - NUM ) ; if ( replace Si != null ) { replace Si . s... | public void moveItemUp ( ScheduleItem si ) { int sequenceId = si . getSequenceId ( ) ; if ( sequenceId - _NUM <= _NUM ) { si . setSequenceId ( _sequenceNum + _NUM ) ; resequenceIds ( ) ; } else { ScheduleItem replaceSi = getItemBySequenceId ( sequenceId - _NUM ) ; if ( replaceSi != null ) { replaceSi . setSequenceId ( ... | 135 |
java-test-1962 | java | What did the code set if needed ? | the document root | @ Override public void customize ( Configurable Embedded Servlet Container container ) { Mime Mappings mappings = new Mime Mappings ( Mime Mappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . set Mime Mappings ( mappings ) ; File root ; if ( env . accepts Profiles... | @ Override public void customize ( ConfigurableEmbeddedServletContainer container ) { MimeMappings mappings = new MimeMappings ( MimeMappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . setMimeMappings ( mappings ) ; File root ; if ( env . acceptsProfiles ( Consta... | 119 |
java-test-1963 | java | What did the code set ? | mime types | @ Override public void customize ( Configurable Embedded Servlet Container container ) { Mime Mappings mappings = new Mime Mappings ( Mime Mappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . set Mime Mappings ( mappings ) ; File root ; if ( env . accepts Profiles... | @ Override public void customize ( ConfigurableEmbeddedServletContainer container ) { MimeMappings mappings = new MimeMappings ( MimeMappings . DEFAULT ) ; mappings . add ( STRING , STRING ) ; mappings . add ( STRING , STRING ) ; container . setMimeMappings ( mappings ) ; File root ; if ( env . acceptsProfiles ( Consta... | 119 |
java-test-1964 | java | What does the code add ? | a receive load that the track will either service or exclude | public boolean add Load Name ( String load ) { if ( load List . contains ( load ) ) { return BOOL ; } load List . add ( load ) ; log . debug ( STRING , get Name ( ) , load ) ; set Dirty And Fire Property Change ( LOADS CHANGED PROPERTY , load List . size ( ) - NUM , load List . size ( ) ) ; return BOOL ; } | public boolean addLoadName ( String load ) { if ( _loadList . contains ( load ) ) { return _BOOL ; } _loadList . add ( load ) ; log . debug ( STRING , getName ( ) , load ) ; setDirtyAndFirePropertyChange ( LOADS_CHANGED_PROPERTY , _loadList . size ( ) - _NUM , _loadList . size ( ) ) ; return _BOOL ; } | 79 |
java-test-1966 | java | When did the code call ? | when a block start is encountered | private void start Block ( int start Token ) { if ( stack Count == unit Stack . length ) { int [ ] new US = new int [ stack Count * NUM ] ; System . arraycopy ( unit Stack , NUM , new US , NUM , stack Count ) ; unit Stack = new US ; } unit Stack [ stack Count ++ ] = start Token ; } | private void startBlock ( int startToken ) { if ( stackCount == unitStack . length ) { int [ ] newUS = new int [ stackCount * _NUM ] ; System . arraycopy ( unitStack , _NUM , newUS , _NUM , stackCount ) ; unitStack = newUS ; } unitStack [ stackCount ++ ] = startToken ; } | 73 |
java-test-1967 | java | What has the code find ? | the upper limit of the treeset map lookup | protected String find Upper Limit ( String prefix ) { if ( prefix . is Empty ( ) ) { return STRING ; } if ( prefix . length ( ) == NUM ) { char c = prefix . char At ( NUM ) ; return c < STRING ? Character . to String ( ( char ) ( c + NUM ) ) : STRING ; } char last Char = prefix . char At ( prefix . length ( ) - NUM ) ;... | protected String findUpperLimit ( String prefix ) { if ( prefix . isEmpty ( ) ) { return STRING ; } if ( prefix . length ( ) == _NUM ) { char c = prefix . charAt ( _NUM ) ; return c < STRING ? Character . toString ( ( char ) ( c + _NUM ) ) : STRING ; } char lastChar = prefix . charAt ( prefix . length ( ) - _NUM ) ; if... | 150 |
java-test-1974 | java | What does the code create ? | the path where all iteration - related data should be stored | public final void create Iteration Directory ( final int iteration ) { File dir = new File ( get Iteration Path ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwrite Files == Overwrite File Setting . overwrite Existing Files && dir . exists ( ) ) { log . info ( STRING + get Iteration Path ( iteration ) + S... | public final void createIterationDirectory ( final int iteration ) { File dir = new File ( getIterationPath ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwriteFiles == OverwriteFileSetting . overwriteExistingFiles && dir . exists ( ) ) { log . info ( STRING + getIterationPath ( iteration ) + STRING ) ; }... | 96 |
java-test-1975 | java | What should be stored the path ? | all iteration - related data | public final void create Iteration Directory ( final int iteration ) { File dir = new File ( get Iteration Path ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwrite Files == Overwrite File Setting . overwrite Existing Files && dir . exists ( ) ) { log . info ( STRING + get Iteration Path ( iteration ) + S... | public final void createIterationDirectory ( final int iteration ) { File dir = new File ( getIterationPath ( iteration ) ) ; if ( ! dir . mkdir ( ) ) { if ( this . overwriteFiles == OverwriteFileSetting . overwriteExistingFiles && dir . exists ( ) ) { log . info ( STRING + getIterationPath ( iteration ) + STRING ) ; }... | 96 |
java-test-1976 | java | When does it need to be un - escaped ? | when returning the raw sql for use as sql | @ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql... | @ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace... | 76 |
java-test-1977 | java | What does it need when returning the raw sql for use as sql ? | to be un - escaped | @ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql... | @ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace... | 76 |
java-test-1978 | java | For what purpose does the raw sql return when ? | for use as sql | @ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql... | @ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace... | 76 |
java-test-1979 | java | When have all the templates escaped because the sql is inserted into a view ? | when returning the raw sql for use as sql it needs to be un - escaped | @ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql... | @ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace... | 76 |
java-test-1980 | java | Why have all the templates escaped when returning the raw sql for use as sql it needs to be un - escaped ? | because the sql is inserted into a view | @ Override public String create Initial Load Sql For ( Node node , Trigger Router trigger , Table table , Trigger History trigger History , Channel channel , String override Select Sql ) { String sql = super . create Initial Load Sql For ( node , trigger , table , trigger History , channel , override Select Sql ) ; sql... | @ Override public String createInitialLoadSqlFor ( Node node , TriggerRouter trigger , Table table , TriggerHistory triggerHistory , Channel channel , String overrideSelectSql ) { String sql = super . createInitialLoadSqlFor ( node , trigger , table , triggerHistory , channel , overrideSelectSql ) ; sql = sql . replace... | 76 |
java-test-1982 | java | What do the classpath modify how how ? | to add a jar at runtime | protected synchronized boolean load Jar ( String jar File Name ) { boolean ret = loaded Jars . contains ( jar File Name ) ; if ( ! ret ) { try { logger . fine ( STRING + jar File Name + STRING ) ; Classpath Hacker . add File ( jar File Name ) ; } catch ( IO Exception ioe ) { logger . warning ( STRING + jar File Name ) ... | protected synchronized boolean loadJar ( String jarFileName ) { boolean ret = loadedJars . contains ( jarFileName ) ; if ( ! ret ) { try { logger . fine ( STRING + jarFileName + STRING ) ; ClasspathHacker . addFile ( jarFileName ) ; } catch ( IOException ioe ) { logger . warning ( STRING + jarFileName ) ; } loadedJars ... | 93 |
java-test-1983 | java | How do codeblock generate ? | with all the ginmodules | public static void generate List Of Modules ( String Builder builder ) { Iterator < String > entry Iterator = EXTENSIONS FQN . iterator ( ) ; while ( entry Iterator . has Next ( ) ) { String gin Module FQN = entry Iterator . next ( ) ; String has Comma = entry Iterator . has Next ( ) ? STRING : STRING ; builder . appen... | public static void generateListOfModules ( StringBuilder builder ) { Iterator < String > entryIterator = EXTENSIONS_FQN . iterator ( ) ; while ( entryIterator . hasNext ( ) ) { String ginModuleFQN = entryIterator . next ( ) ; String hasComma = entryIterator . hasNext ( ) ? STRING : STRING ; builder . append ( Generator... | 89 |
java-test-1984 | java | What does the code create ? | a new image file chooser | public J File Image Chooser ( final Shell parent , final int style , final File working Dir ) { file Dialog = new File Dialog ( parent , style ) ; if ( working Dir != null ) file Dialog . set Filter Path ( working Dir . get Absolute Path ( ) ) ; } | public JFileImageChooser ( final Shell parent , final int style , final File workingDir ) { fileDialog = new FileDialog ( parent , style ) ; if ( workingDir != null ) fileDialog . setFilterPath ( workingDir . getAbsolutePath ( ) ) ; } | 57 |
java-test-1985 | java | What does the code apply ? | the minimum function on given list of number | public static final Number MIN ( Number [ ] vals ) { try { Collection col = Arrays . as List ( vals ) ; Number min = ( Number ) Collections . max ( col ) ; return min ; } catch ( Virtual Machine Error err ) { System Failure . initiate Failure ( err ) ; throw err ; } catch ( Throwable t ) { System Failure . check Failur... | public static final Number MIN ( Number [ ] vals ) { try { Collection col = Arrays . asList ( vals ) ; Number min = ( Number ) Collections . max ( col ) ; return min ; } catch ( VirtualMachineError err ) { SystemFailure . initiateFailure ( err ) ; throw err ; } catch ( Throwable t ) { SystemFailure . checkFailure ( ) ;... | 82 |
java-test-1986 | java | How does the code write the given value into node depending on the type of the value ? | using writeprimitiveattribute or writecomplexattribute | protected void write Attribute ( mx Codec enc , Object obj , String attr , Object value , Node node ) { value = convert Value To Xml ( value ) ; if ( is Primitive Value ( value ) ) { write Primitive Attribute ( enc , obj , attr , value , node ) ; } else { write Complex Attribute ( enc , obj , attr , value , node ) ; } ... | protected void writeAttribute ( mxCodec enc , Object obj , String attr , Object value , Node node ) { value = convertValueToXml ( value ) ; if ( isPrimitiveValue ( value ) ) { writePrimitiveAttribute ( enc , obj , attr , value , node ) ; } else { writeComplexAttribute ( enc , obj , attr , value , node ) ; } } | 77 |
java-test-1988 | java | What will this method set in motion ? | all the steps needed to create and render the current omgraphiclist with the current projection | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1989 | java | For what purpose did all the steps need ? | to create and render the current omgraphiclist with the current projection | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1990 | java | What will a method launch ? | a layerworker thread to call the prepare method | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1991 | java | What will call repaint on this layer ? | workercomplete | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1992 | java | What can be picked in the getprojection ( ) method ? | the current projection | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1993 | java | What calls the prepare method ? | a layerworker thread | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1994 | java | What do a layerworker thread call ? | the prepare method | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1995 | java | Where can the current projection be picked ? | in the getprojection ( ) method | public void do Prepare ( ) { synchronized ( LAYERWORKER LOCK ) { if ( layer Worker Queue ) { return ; } I Swing Worker < OM Graphic List > current Layer Worker = layer Worker ; if ( current Layer Worker != null ) { layer Worker Queue = BOOL ; if ( interruptable ) { current Layer Worker . interrupt ( ) ; } return ; } se... | public void doPrepare ( ) { synchronized ( LAYERWORKER_LOCK ) { if ( layerWorkerQueue ) { return ; } ISwingWorker < OMGraphicList > currentLayerWorker = layerWorker ; if ( currentLayerWorker != null ) { layerWorkerQueue = _BOOL ; if ( interruptable ) { currentLayerWorker . interrupt ( ) ; } return ; } setLayerWorker ( ... | 83 |
java-test-1996 | java | How does the code save the pagemanager state ( an ordered stack of pagefactories ) to the provided bundle ? | using the provided tag | public void on Save Instance State ( Bundle out State ) { Log . d ( TAG , STRING + nesting ) ; check Not Null ( out State , STRING ) ; Page page = peek ( ) ; save Page State ( page ) ; out State . put Serializable ( STACK TAG , ( Stack ) m Factory Stack . clone ( ) ) ; out State . put Bundle ( STATE TAG , ( Bundle ) m ... | public void onSaveInstanceState ( Bundle outState ) { Log . d ( TAG , STRING + nesting ) ; checkNotNull ( outState , STRING ) ; Page page = peek ( ) ; savePageState ( page ) ; outState . putSerializable ( STACK_TAG , ( Stack ) mFactoryStack . clone ( ) ) ; outState . putBundle ( STATE_TAG , ( Bundle ) mPageStates . clo... | 90 |
java-test-1997 | java | What does the code save to the provided bundle using the provided tag ? | the pagemanager state ( an ordered stack of pagefactories ) | public void on Save Instance State ( Bundle out State ) { Log . d ( TAG , STRING + nesting ) ; check Not Null ( out State , STRING ) ; Page page = peek ( ) ; save Page State ( page ) ; out State . put Serializable ( STACK TAG , ( Stack ) m Factory Stack . clone ( ) ) ; out State . put Bundle ( STATE TAG , ( Bundle ) m ... | public void onSaveInstanceState ( Bundle outState ) { Log . d ( TAG , STRING + nesting ) ; checkNotNull ( outState , STRING ) ; Page page = peek ( ) ; savePageState ( page ) ; outState . putSerializable ( STACK_TAG , ( Stack ) mFactoryStack . clone ( ) ) ; outState . putBundle ( STATE_TAG , ( Bundle ) mPageStates . clo... | 90 |
java-test-1998 | java | What does unregisters unpublish ? | this reservation | private void unregister ( ) { Grid Dht Local Partition [ ] arr = parts . get ( ) ; if ( ! F . is Empty ( arr ) && parts . compare And Set ( arr , EMPTY ) ) { for ( int i = arr . length - NUM ; i >= NUM ; i -- ) { Grid Dht Local Partition part = arr [ i ] ; part . remove Reservation ( this ) ; try Evict ( part ) ; } } C... | private void unregister ( ) { GridDhtLocalPartition [ ] arr = parts . get ( ) ; if ( ! F . isEmpty ( arr ) && parts . compareAndSet ( arr , EMPTY ) ) { for ( int i = arr . length - _NUM ; i >= _NUM ; i -- ) { GridDhtLocalPartition part = arr [ i ] ; part . removeReservation ( this ) ; tryEvict ( part ) ; } } CI1 < Grid... | 136 |
java-test-2001 | java | What does a new disk space monitor use ? | a periodic polling mechanism | public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; } | public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; } | 52 |
java-test-2002 | java | What does the code create ? | a new disk space monitor that uses a periodic polling mechanism | public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; } | public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; } | 52 |
java-test-2003 | java | What uses a periodic polling mechanism ? | a new disk space monitor | public Polling Scan Disk Space Monitor ( Set < Path > watch Paths , long polling Interval Millis ) { this . watch Paths = Collections . unmodifiable Set ( new Hash Set < > ( watch Paths ) ) ; this . polling Interval Millis = polling Interval Millis ; } | public PollingScanDiskSpaceMonitor ( Set < Path > watchPaths , long pollingIntervalMillis ) { this . watchPaths = Collections . unmodifiableSet ( new HashSet < > ( watchPaths ) ) ; this . pollingIntervalMillis = pollingIntervalMillis ; } | 52 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.