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-9965 | java | How are two jsonobjects are equals ? | without enforcing field order | public static void json Objects Equals ( JSON Object o1 , JSON Object o2 ) throws JSON Exception { if ( o1 != o2 ) { if ( o1 . length ( ) != o2 . length ( ) ) { fail ( STRING + o1 . length ( ) + STRING + o2 . length ( ) ) ; } @ Suppress Warnings ( STRING ) Iterator < String > o1 Keys = o1 . keys ( ) ; while ( o1 Keys .... | public static void jsonObjectsEquals ( JSONObject o1 , JSONObject o2 ) throws JSONException { if ( o1 != o2 ) { if ( o1 . length ( ) != o2 . length ( ) ) { fail ( STRING + o1 . length ( ) + STRING + o2 . length ( ) ) ; } @ SuppressWarnings ( STRING ) Iterator < String > o1Keys = o1 . keys ( ) ; while ( o1Keys . hasNext... | 159 |
java-test-9968 | java | What does the code add to service sub - configuration ? | defaults values | public static void add Sub Config Attribute Default Values ( String service Name , Set sun Service ID , String realm , String sub Config Name , String attribute Name , Set default Values ) { String class Method = STRING ; try { Set old Val = new Hash Set ( ) ; Service Config Manager scm = get Service Config Manager ( s... | public static void addSubConfigAttributeDefaultValues ( String serviceName , Set sunServiceID , String realm , String subConfigName , String attributeName , Set defaultValues ) { String classMethod = STRING ; try { Set oldVal = new HashSet ( ) ; ServiceConfigManager scm = getServiceConfigManager ( serviceName ) ; Servi... | 213 |
java-test-9970 | java | What does not contain the match trail fully ? | the best trail match | public static List < String > find Best Trail Match ( List < List < String > > trails , List < String > match Trail , boolean contain Full Trail , boolean exact ) { List < String > best = null ; int part Matches = NUM ; for ( List < String > candidate Trail : trails ) { int candidate Part Matches = NUM ; Iterator < Str... | public static List < String > findBestTrailMatch ( List < List < String > > trails , List < String > matchTrail , boolean containFullTrail , boolean exact ) { List < String > best = null ; int partMatches = _NUM ; for ( List < String > candidateTrail : trails ) { int candidatePartMatches = _NUM ; Iterator < String > ca... | 272 |
java-test-9971 | java | What will this has return if false if false ? | the longest - path match found | public static List < String > find Best Trail Match ( List < List < String > > trails , List < String > match Trail , boolean contain Full Trail , boolean exact ) { List < String > best = null ; int part Matches = NUM ; for ( List < String > candidate Trail : trails ) { int candidate Part Matches = NUM ; Iterator < Str... | public static List < String > findBestTrailMatch ( List < List < String > > trails , List < String > matchTrail , boolean containFullTrail , boolean exact ) { List < String > best = null ; int partMatches = _NUM ; for ( List < String > candidateTrail : trails ) { int candidatePartMatches = _NUM ; Iterator < String > ca... | 272 |
java-test-9972 | java | What does the best trail match not contain fully ? | the match trail | public static List < String > find Best Trail Match ( List < List < String > > trails , List < String > match Trail , boolean contain Full Trail , boolean exact ) { List < String > best = null ; int part Matches = NUM ; for ( List < String > candidate Trail : trails ) { int candidate Part Matches = NUM ; Iterator < Str... | public static List < String > findBestTrailMatch ( List < List < String > > trails , List < String > matchTrail , boolean containFullTrail , boolean exact ) { List < String > best = null ; int partMatches = _NUM ; for ( List < String > candidateTrail : trails ) { int candidatePartMatches = _NUM ; Iterator < String > ca... | 272 |
java-test-9973 | java | When does exceptions handle ? | during program invocation | void unexpected Error Handling ( String message , final Throwable t ) { Throwable e = t ; while ( e . get Cause ( ) != null ) { e = e . get Cause ( ) ; } e . print Stack Trace ( ) ; if ( e instanceof Out Of Memory Error ) { Lone Option Dialog . show Message Dialog ( STRING + Client Game Configuration . get ( STRING ) +... | void unexpectedErrorHandling ( String message , final Throwable t ) { Throwable e = t ; while ( e . getCause ( ) != null ) { e = e . getCause ( ) ; } e . printStackTrace ( ) ; if ( e instanceof OutOfMemoryError ) { LoneOptionDialog . showMessageDialog ( STRING + ClientGameConfiguration . get ( STRING ) + STRING ) ; } e... | 211 |
java-test-9975 | java | How does the code draw the background of the highlighted register ? | in a different color than the standard background | private void draw Highlighted Register ( final Graphics g ) { if ( ! is Enabled ( ) ) { return ; } if ( m edited Register != - NUM ) { g . set Color ( m bg Color Edit ) ; final Rectangle r = get Register Bounds ( m edited Register ) ; g . fill Rect ( r . x , r . y , r . width , r . height ) ; } else if ( m highlighted ... | private void drawHighlightedRegister ( final Graphics g ) { if ( ! isEnabled ( ) ) { return ; } if ( m_editedRegister != - _NUM ) { g . setColor ( m_bgColorEdit ) ; final Rectangle r = getRegisterBounds ( m_editedRegister ) ; g . fillRect ( r . x , r . y , r . width , r . height ) ; } else if ( m_highlightedRegister !=... | 139 |
java-test-9976 | java | What does the code draw in a different color than the standard background ? | the background of the highlighted register | private void draw Highlighted Register ( final Graphics g ) { if ( ! is Enabled ( ) ) { return ; } if ( m edited Register != - NUM ) { g . set Color ( m bg Color Edit ) ; final Rectangle r = get Register Bounds ( m edited Register ) ; g . fill Rect ( r . x , r . y , r . width , r . height ) ; } else if ( m highlighted ... | private void drawHighlightedRegister ( final Graphics g ) { if ( ! isEnabled ( ) ) { return ; } if ( m_editedRegister != - _NUM ) { g . setColor ( m_bgColorEdit ) ; final Rectangle r = getRegisterBounds ( m_editedRegister ) ; g . fillRect ( r . x , r . y , r . width , r . height ) ; } else if ( m_highlightedRegister !=... | 139 |
java-test-9977 | java | What does the code drain into a new list normally using drainto ? | the task queue | private List < Runnable > drain Queue ( ) { Blocking Queue < Runnable > q = work Queue ; List < Runnable > task List = new Array List < Runnable > ( ) ; q . drain To ( task List ) ; if ( ! q . is Empty ( ) ) { for ( Runnable r : q . to Array ( new Runnable [ NUM ] ) ) { if ( q . remove ( r ) ) task List . add ( r ) ; }... | private List < Runnable > drainQueue ( ) { BlockingQueue < Runnable > q = workQueue ; List < Runnable > taskList = new ArrayList < Runnable > ( ) ; q . drainTo ( taskList ) ; if ( ! q . isEmpty ( ) ) { for ( Runnable r : q . toArray ( new Runnable [ _NUM ] ) ) { if ( q . remove ( r ) ) taskList . add ( r ) ; } } return... | 98 |
java-test-9978 | java | What may fail to remove some elements which ? | poll or drainto | private List < Runnable > drain Queue ( ) { Blocking Queue < Runnable > q = work Queue ; List < Runnable > task List = new Array List < Runnable > ( ) ; q . drain To ( task List ) ; if ( ! q . is Empty ( ) ) { for ( Runnable r : q . to Array ( new Runnable [ NUM ] ) ) { if ( q . remove ( r ) ) task List . add ( r ) ; }... | private List < Runnable > drainQueue ( ) { BlockingQueue < Runnable > q = workQueue ; List < Runnable > taskList = new ArrayList < Runnable > ( ) ; q . drainTo ( taskList ) ; if ( ! q . isEmpty ( ) ) { for ( Runnable r : q . toArray ( new Runnable [ _NUM ] ) ) { if ( q . remove ( r ) ) taskList . add ( r ) ; } } return... | 98 |
java-test-9979 | java | What may poll or drainto fail which ? | to remove some elements | private List < Runnable > drain Queue ( ) { Blocking Queue < Runnable > q = work Queue ; List < Runnable > task List = new Array List < Runnable > ( ) ; q . drain To ( task List ) ; if ( ! q . is Empty ( ) ) { for ( Runnable r : q . to Array ( new Runnable [ NUM ] ) ) { if ( q . remove ( r ) ) task List . add ( r ) ; }... | private List < Runnable > drainQueue ( ) { BlockingQueue < Runnable > q = workQueue ; List < Runnable > taskList = new ArrayList < Runnable > ( ) ; q . drainTo ( taskList ) ; if ( ! q . isEmpty ( ) ) { for ( Runnable r : q . toArray ( new Runnable [ _NUM ] ) ) { if ( q . remove ( r ) ) taskList . add ( r ) ; } } return... | 98 |
java-test-9980 | java | How does the code drain the task queue into a new list ? | normally using drainto | private List < Runnable > drain Queue ( ) { Blocking Queue < Runnable > q = work Queue ; List < Runnable > task List = new Array List < Runnable > ( ) ; q . drain To ( task List ) ; if ( ! q . is Empty ( ) ) { for ( Runnable r : q . to Array ( new Runnable [ NUM ] ) ) { if ( q . remove ( r ) ) task List . add ( r ) ; }... | private List < Runnable > drainQueue ( ) { BlockingQueue < Runnable > q = workQueue ; List < Runnable > taskList = new ArrayList < Runnable > ( ) ; q . drainTo ( taskList ) ; if ( ! q . isEmpty ( ) ) { for ( Runnable r : q . toArray ( new Runnable [ _NUM ] ) ) { if ( q . remove ( r ) ) taskList . add ( r ) ; } } return... | 98 |
java-test-9981 | java | What does the code use normally ? | drainto | private List < Runnable > drain Queue ( ) { Blocking Queue < Runnable > q = work Queue ; List < Runnable > task List = new Array List < Runnable > ( ) ; q . drain To ( task List ) ; if ( ! q . is Empty ( ) ) { for ( Runnable r : q . to Array ( new Runnable [ NUM ] ) ) { if ( q . remove ( r ) ) task List . add ( r ) ; }... | private List < Runnable > drainQueue ( ) { BlockingQueue < Runnable > q = workQueue ; List < Runnable > taskList = new ArrayList < Runnable > ( ) ; q . drainTo ( taskList ) ; if ( ! q . isEmpty ( ) ) { for ( Runnable r : q . toArray ( new Runnable [ _NUM ] ) ) { if ( q . remove ( r ) ) taskList . add ( r ) ; } } return... | 98 |
java-test-9982 | java | For what purpose have we stripped how much newline and margin whitespace ? | so we know how to offset anchors | Map < Integer , Integer > stripped Whitespace Up To Column ( String intro ) { Map < Integer , Integer > stripped = new Tree Map < > ( ) ; boolean counting Whitespace = BOOL ; int col = NUM ; int count = NUM ; for ( char c : intro . to Char Array ( ) ) { if ( c == STRING && ! counting Whitespace ) { counting Whitespace ... | Map < Integer , Integer > strippedWhitespaceUpToColumn ( String intro ) { Map < Integer , Integer > stripped = new TreeMap < > ( ) ; boolean countingWhitespace = _BOOL ; int col = _NUM ; int count = _NUM ; for ( char c : intro . toCharArray ( ) ) { if ( c == STRING && ! countingWhitespace ) { countingWhitespace = _BOOL... | 123 |
java-test-9983 | java | What do we offset how ? | anchors | Map < Integer , Integer > stripped Whitespace Up To Column ( String intro ) { Map < Integer , Integer > stripped = new Tree Map < > ( ) ; boolean counting Whitespace = BOOL ; int col = NUM ; int count = NUM ; for ( char c : intro . to Char Array ( ) ) { if ( c == STRING && ! counting Whitespace ) { counting Whitespace ... | Map < Integer , Integer > strippedWhitespaceUpToColumn ( String intro ) { Map < Integer , Integer > stripped = new TreeMap < > ( ) ; boolean countingWhitespace = _BOOL ; int col = _NUM ; int count = _NUM ; for ( char c : intro . toCharArray ( ) ) { if ( c == STRING && ! countingWhitespace ) { countingWhitespace = _BOOL... | 123 |
java-test-9984 | java | What did we know ? | how to offset anchors | Map < Integer , Integer > stripped Whitespace Up To Column ( String intro ) { Map < Integer , Integer > stripped = new Tree Map < > ( ) ; boolean counting Whitespace = BOOL ; int col = NUM ; int count = NUM ; for ( char c : intro . to Char Array ( ) ) { if ( c == STRING && ! counting Whitespace ) { counting Whitespace ... | Map < Integer , Integer > strippedWhitespaceUpToColumn ( String intro ) { Map < Integer , Integer > stripped = new TreeMap < > ( ) ; boolean countingWhitespace = _BOOL ; int col = _NUM ; int count = _NUM ; for ( char c : intro . toCharArray ( ) ) { if ( c == STRING && ! countingWhitespace ) { countingWhitespace = _BOOL... | 123 |
java-test-9985 | java | What have we stripped so we know how to offset anchors ? | how much newline and margin whitespace | Map < Integer , Integer > stripped Whitespace Up To Column ( String intro ) { Map < Integer , Integer > stripped = new Tree Map < > ( ) ; boolean counting Whitespace = BOOL ; int col = NUM ; int count = NUM ; for ( char c : intro . to Char Array ( ) ) { if ( c == STRING && ! counting Whitespace ) { counting Whitespace ... | Map < Integer , Integer > strippedWhitespaceUpToColumn ( String intro ) { Map < Integer , Integer > stripped = new TreeMap < > ( ) ; boolean countingWhitespace = _BOOL ; int col = _NUM ; int count = _NUM ; for ( char c : intro . toCharArray ( ) ) { if ( c == STRING && ! countingWhitespace ) { countingWhitespace = _BOOL... | 123 |
java-test-9986 | java | What does the code stitch to initialize type ( usually a call to inittypeproto ) ? | a snippet of code | boolean stitch Initializer ( Type Declaration d ) { final Virtual File f = compiler . get Stitched File ( d , STRING ) ; if ( f != null && f . exists ( ) ) { jsout . output File ( f ) ; return BOOL ; } return BOOL ; } | boolean stitchInitializer ( TypeDeclaration d ) { final VirtualFile f = compiler . getStitchedFile ( d , STRING ) ; if ( f != null && f . exists ( ) ) { jsout . outputFile ( f ) ; return _BOOL ; } return _BOOL ; } | 54 |
java-test-9987 | java | What does the code stitch a snippet of code ? | to initialize type ( usually a call to inittypeproto ) | boolean stitch Initializer ( Type Declaration d ) { final Virtual File f = compiler . get Stitched File ( d , STRING ) ; if ( f != null && f . exists ( ) ) { jsout . output File ( f ) ; return BOOL ; } return BOOL ; } | boolean stitchInitializer ( TypeDeclaration d ) { final VirtualFile f = compiler . getStitchedFile ( d , STRING ) ; if ( f != null && f . exists ( ) ) { jsout . outputFile ( f ) ; return _BOOL ; } return _BOOL ; } | 54 |
java-test-9988 | java | In which direction do pending output write ? | into file | public void flush ( ) throws Exception { if ( writing Channel != null ) { sequential File . position ( NUM ) ; writing Channel . writer Index ( writing Channel . capacity ( ) ) ; sequential File . write Direct ( writing Channel . to Byte Buffer ( ) , BOOL ) ; sequential File . close ( ) ; new Data Files . add ( current... | public void flush ( ) throws Exception { if ( writingChannel != null ) { sequentialFile . position ( _NUM ) ; writingChannel . writerIndex ( writingChannel . capacity ( ) ) ; sequentialFile . writeDirect ( writingChannel . toByteBuffer ( ) , _BOOL ) ; sequentialFile . close ( ) ; newDataFiles . add ( currentFile ) ; } ... | 80 |
java-test-9993 | java | What does the code append ? | a new column heading to the header row | public void append Heading ( Localizable Message value ) { header . add ( value ) ; if ( header . size ( ) > width ) { width = header . size ( ) ; column Widths . add ( value . length ( ) ) ; } else if ( column Widths . get ( header . size ( ) - NUM ) < value . length ( ) ) { column Widths . set ( header . size ( ) - N... | public void appendHeading ( LocalizableMessage value ) { header . add ( value ) ; if ( header . size ( ) > width ) { width = header . size ( ) ; columnWidths . add ( value . length ( ) ) ; } else if ( columnWidths . get ( header . size ( ) - _NUM ) < value . length ( ) ) { columnWidths . set ( header . size ( ) - _NUM ... | 95 |
java-test-9999 | java | What does the code make ? | the specified path relative to the specified base path | public static String make Relative ( final String path , final String base ) { if ( path . starts With ( STRING ) ) { return path ; } else { final int last Slash = base . last Index Of ( STRING ) ; if ( last Slash >= NUM ) { return base . substring ( NUM , last Slash + NUM ) + path ; } else { return path ; } } } | public static String makeRelative ( final String path , final String base ) { if ( path . startsWith ( STRING ) ) { return path ; } else { final int lastSlash = base . lastIndexOf ( STRING ) ; if ( lastSlash >= _NUM ) { return base . substring ( _NUM , lastSlash + _NUM ) + path ; } else { return path ; } } } | 78 |
java-test-10003 | java | What does the code compute ? | the distance matrix of a vector column | protected double [ ] [ ] compute Distance Matrix ( final List < I > col ) { final int size = col . size ( ) ; double [ ] [ ] imat = new double [ size ] [ size ] ; boolean squared = dist instanceof Squared Euclidean Distance Function ; Finite Progress dprog = LOG . is Verbose ( ) ? new Finite Progress ( STRING , ( size ... | protected double [ ] [ ] computeDistanceMatrix ( final List < I > col ) { final int size = col . size ( ) ; double [ ] [ ] imat = new double [ size ] [ size ] ; boolean squared = dist instanceof SquaredEuclideanDistanceFunction ; FiniteProgress dprog = LOG . isVerbose ( ) ? new FiniteProgress ( STRING , ( size * ( size... | 235 |
java-test-10004 | java | What is assuming a fixed width and no bounds on the height ? | the content for this title | @ Override protected Size 2 D arrange FN ( Graphics 2 D g2 , double w ) { g2 . set Font ( get Font ( ) ) ; Font Metrics fm = g2 . get Font Metrics ( get Font ( ) ) ; Rectangle 2 D bounds = Text Utilities . get Text Bounds ( get Text ( ) , g2 , fm ) ; if ( bounds . get Width ( ) <= w ) { return new Size 2 D ( w , bounds... | @ Override protected Size2D arrangeFN ( Graphics2D g2 , double w ) { g2 . setFont ( getFont ( ) ) ; FontMetrics fm = g2 . getFontMetrics ( getFont ( ) ) ; Rectangle2D bounds = TextUtilities . getTextBounds ( getText ( ) , g2 , fm ) ; if ( bounds . getWidth ( ) <= w ) { return new Size2D ( w , bounds . getHeight ( ) ) ;... | 111 |
java-test-10005 | java | What do the content for this title assume ? | a fixed width and no bounds on the height | @ Override protected Size 2 D arrange FN ( Graphics 2 D g2 , double w ) { g2 . set Font ( get Font ( ) ) ; Font Metrics fm = g2 . get Font Metrics ( get Font ( ) ) ; Rectangle 2 D bounds = Text Utilities . get Text Bounds ( get Text ( ) , g2 , fm ) ; if ( bounds . get Width ( ) <= w ) { return new Size 2 D ( w , bounds... | @ Override protected Size2D arrangeFN ( Graphics2D g2 , double w ) { g2 . setFont ( getFont ( ) ) ; FontMetrics fm = g2 . getFontMetrics ( getFont ( ) ) ; Rectangle2D bounds = TextUtilities . getTextBounds ( getText ( ) , g2 , fm ) ; if ( bounds . getWidth ( ) <= w ) { return new Size2D ( w , bounds . getHeight ( ) ) ;... | 111 |
java-test-10006 | java | What does the code arrange ? | the content for this title assuming a fixed width and no bounds on the height | @ Override protected Size 2 D arrange FN ( Graphics 2 D g2 , double w ) { g2 . set Font ( get Font ( ) ) ; Font Metrics fm = g2 . get Font Metrics ( get Font ( ) ) ; Rectangle 2 D bounds = Text Utilities . get Text Bounds ( get Text ( ) , g2 , fm ) ; if ( bounds . get Width ( ) <= w ) { return new Size 2 D ( w , bounds... | @ Override protected Size2D arrangeFN ( Graphics2D g2 , double w ) { g2 . setFont ( getFont ( ) ) ; FontMetrics fm = g2 . getFontMetrics ( getFont ( ) ) ; Rectangle2D bounds = TextUtilities . getTextBounds ( getText ( ) , g2 , fm ) ; if ( bounds . getWidth ( ) <= w ) { return new Size2D ( w , bounds . getHeight ( ) ) ;... | 111 |
java-test-10007 | java | What will main orchestration method compare together ? | two raml models | private void validate ( ) { if ( checkers != null ) { for ( Raml Checker checker : checkers ) { Pair < Set < Issue > , Set < Issue > > check = checker . check ( published , implemented ) ; warnings . add All ( check . get First ( ) ) ; errors . add All ( check . get Second ( ) ) ; } } } | private void validate ( ) { if ( checkers != null ) { for ( RamlChecker checker : checkers ) { Pair < Set < Issue > , Set < Issue > > check = checker . check ( published , implemented ) ; warnings . addAll ( check . getFirst ( ) ) ; errors . addAll ( check . getSecond ( ) ) ; } } } | 74 |
java-test-10008 | java | What do main orchestration method identify ? | discrepancies between the implementation and contract | private void validate ( ) { if ( checkers != null ) { for ( Raml Checker checker : checkers ) { Pair < Set < Issue > , Set < Issue > > check = checker . check ( published , implemented ) ; warnings . add All ( check . get First ( ) ) ; errors . add All ( check . get Second ( ) ) ; } } } | private void validate ( ) { if ( checkers != null ) { for ( RamlChecker checker : checkers ) { Pair < Set < Issue > , Set < Issue > > check = checker . check ( published , implemented ) ; warnings . addAll ( check . getFirst ( ) ) ; errors . addAll ( check . getSecond ( ) ) ; } } } | 74 |
java-test-10010 | java | What do you invoke explicitly ? | the lookahead procedure | public void maybe Look Ahead ( ) { lock . lock ( ) ; try { List < Deterministic Key > keys = maybe Look Ahead ( external Parent Key , issued External Keys ) ; keys . add All ( maybe Look Ahead ( internal Parent Key , issued Internal Keys ) ) ; if ( keys . is Empty ( ) ) return ; key Lookahead Epoch ++ ; basic Key Chain... | public void maybeLookAhead ( ) { lock . lock ( ) ; try { List < DeterministicKey > keys = maybeLookAhead ( externalParentKey , issuedExternalKeys ) ; keys . addAll ( maybeLookAhead ( internalParentKey , issuedInternalKeys ) ) ; if ( keys . isEmpty ( ) ) return ; keyLookaheadEpoch ++ ; basicKeyChain . importKeys ( keys ... | 92 |
java-test-10011 | java | Why s it s normally unnecessary ? | as it will be done automatically when needed | public void maybe Look Ahead ( ) { lock . lock ( ) ; try { List < Deterministic Key > keys = maybe Look Ahead ( external Parent Key , issued External Keys ) ; keys . add All ( maybe Look Ahead ( internal Parent Key , issued Internal Keys ) ) ; if ( keys . is Empty ( ) ) return ; key Lookahead Epoch ++ ; basic Key Chain... | public void maybeLookAhead ( ) { lock . lock ( ) ; try { List < DeterministicKey > keys = maybeLookAhead ( externalParentKey , issuedExternalKeys ) ; keys . addAll ( maybeLookAhead ( internalParentKey , issuedInternalKeys ) ) ; if ( keys . isEmpty ( ) ) return ; keyLookaheadEpoch ++ ; basicKeyChain . importKeys ( keys ... | 92 |
java-test-10012 | java | What do you need ? | to explicitly invoke the lookahead procedure | public void maybe Look Ahead ( ) { lock . lock ( ) ; try { List < Deterministic Key > keys = maybe Look Ahead ( external Parent Key , issued External Keys ) ; keys . add All ( maybe Look Ahead ( internal Parent Key , issued Internal Keys ) ) ; if ( keys . is Empty ( ) ) return ; key Lookahead Epoch ++ ; basic Key Chain... | public void maybeLookAhead ( ) { lock . lock ( ) ; try { List < DeterministicKey > keys = maybeLookAhead ( externalParentKey , issuedExternalKeys ) ; keys . addAll ( maybeLookAhead ( internalParentKey , issuedInternalKeys ) ) ; if ( keys . isEmpty ( ) ) return ; keyLookaheadEpoch ++ ; basicKeyChain . importKeys ( keys ... | 92 |
java-test-10014 | java | What does the code find ? | the length of header inside bs | @ Suppress Warnings ( STRING ) private int find Header End ( byte [ ] bs ) { boolean newline = BOOL ; int len = bs . length ; for ( int i = NUM ; i < len ; i ++ ) { switch ( bs [ i ] ) { case STRING : if ( i < len - NUM && bs [ i + NUM ] == STRING ) i ++ ; case STRING : if ( newline ) return i + NUM ; newline = BOOL ; ... | @ SuppressWarnings ( STRING ) private int findHeaderEnd ( byte [ ] bs ) { boolean newline = _BOOL ; int len = bs . length ; for ( int i = _NUM ; i < len ; i ++ ) { switch ( bs [ i ] ) { case STRING : if ( i < len - _NUM && bs [ i + _NUM ] == STRING ) i ++ ; case STRING : if ( newline ) return i + _NUM ; newline = _BOOL... | 106 |
java-test-10015 | java | What does it load the appropriate streaminfo object then ? | the other extracted data like status , game , viewercount | private Stream Info parse Stream ( JSON Object stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewers Temp ; String status ; String game ; String name ; String display name ; long time Started = - NUM ; long user Id = - NUM ; boolean no Channel Object = BOOL ; ... | private StreamInfo parseStream ( JSONObject stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewersTemp ; String status ; String game ; String name ; String display_name ; long timeStarted = - _NUM ; long userId = - _NUM ; boolean noChannelObject = _BOOL ; try {... | 492 |
java-test-10016 | java | What does this get ? | the appropriate streaminfo object , in which it then loads the other extracted data like status , game , viewercount . | private Stream Info parse Stream ( JSON Object stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewers Temp ; String status ; String game ; String name ; String display name ; long time Started = - NUM ; long user Id = - NUM ; boolean no Channel Object = BOOL ; ... | private StreamInfo parseStream ( JSONObject stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewersTemp ; String status ; String game ; String name ; String display_name ; long timeStarted = - _NUM ; long userId = - _NUM ; boolean noChannelObject = _BOOL ; try {... | 492 |
java-test-10017 | java | Where does it load the other extracted data like status , game , viewercount then ? | the appropriate streaminfo object | private Stream Info parse Stream ( JSON Object stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewers Temp ; String status ; String game ; String name ; String display name ; long time Started = - NUM ; long user Id = - NUM ; boolean no Channel Object = BOOL ; ... | private StreamInfo parseStream ( JSONObject stream , boolean follows ) { if ( stream == null ) { LOGGER . warning ( STRING ) ; return null ; } Number viewersTemp ; String status ; String game ; String name ; String display_name ; long timeStarted = - _NUM ; long userId = - _NUM ; boolean noChannelObject = _BOOL ; try {... | 492 |
java-test-10018 | java | In which direction do forwards collection carry to ? | from the old property | private Set < Eg Demand Details > carry Forward Collection ( final Property new Property , final Installment inst , final Set < Eg Demand Details > new Eg Demand Details Set , final Ptdemand pt Dmnd Old , final Property Type Master old Prop Type Master , final Property Type Master new Prop Type Master ) { LOGGER . debu... | private Set < EgDemandDetails > carryForwardCollection ( final Property newProperty , final Installment inst , final Set < EgDemandDetails > newEgDemandDetailsSet , final Ptdemand ptDmndOld , final PropertyTypeMaster oldPropTypeMaster , final PropertyTypeMaster newPropTypeMaster ) { LOGGER . debug ( STRING ) ; LOGGER .... | 475 |
java-test-10022 | java | What did convenience method use ? | to capitalize a one - off attribute value before it is returned | String capitalize ( String value ) { char [ ] chars ; int i ; chars = value . to Char Array ( ) ; if ( chars . length > NUM ) { chars [ NUM ] = Character . to Upper Case ( chars [ NUM ] ) ; for ( i = NUM ; i < chars . length ; ++ i ) { chars [ i ] = Character . to Lower Case ( chars [ i ] ) ; } return String . value Of... | String capitalize ( String value ) { char [ ] chars ; int i ; chars = value . toCharArray ( ) ; if ( chars . length > _NUM ) { chars [ _NUM ] = Character . toUpperCase ( chars [ _NUM ] ) ; for ( i = _NUM ; i < chars . length ; ++ i ) { chars [ i ] = Character . toLowerCase ( chars [ i ] ) ; } return String . valueOf ( ... | 99 |
java-test-10023 | java | When did a one - off attribute value capitalize ? | before it is returned | String capitalize ( String value ) { char [ ] chars ; int i ; chars = value . to Char Array ( ) ; if ( chars . length > NUM ) { chars [ NUM ] = Character . to Upper Case ( chars [ NUM ] ) ; for ( i = NUM ; i < chars . length ; ++ i ) { chars [ i ] = Character . to Lower Case ( chars [ i ] ) ; } return String . value Of... | String capitalize ( String value ) { char [ ] chars ; int i ; chars = value . toCharArray ( ) ; if ( chars . length > _NUM ) { chars [ _NUM ] = Character . toUpperCase ( chars [ _NUM ] ) ; for ( i = _NUM ; i < chars . length ; ++ i ) { chars [ i ] = Character . toLowerCase ( chars [ i ] ) ; } return String . valueOf ( ... | 99 |
java-test-10024 | java | When could that 2 recorded events have the same time . in that case it is not possible to recognize order have happen ? | sometime | public static void increase Time ( Clock clock ) { Calendar c = Calendar . get Instance ( ) ; c . set Time ( clock . get Current Time ( ) ) ; c . add ( Calendar . SECOND , NUM ) ; clock . set Current Time ( c . get Time ( ) ) ; } | public static void increaseTime ( Clock clock ) { Calendar c = Calendar . getInstance ( ) ; c . setTime ( clock . getCurrentTime ( ) ) ; c . add ( Calendar . SECOND , _NUM ) ; clock . setCurrentTime ( c . getTime ( ) ) ; } | 60 |
java-test-10025 | java | What have the same time ? | 2 recorded events | public static void increase Time ( Clock clock ) { Calendar c = Calendar . get Instance ( ) ; c . set Time ( clock . get Current Time ( ) ) ; c . add ( Calendar . SECOND , NUM ) ; clock . set Current Time ( c . get Time ( ) ) ; } | public static void increaseTime ( Clock clock ) { Calendar c = Calendar . getInstance ( ) ; c . setTime ( clock . getCurrentTime ( ) ) ; c . add ( Calendar . SECOND , _NUM ) ; clock . setCurrentTime ( c . getTime ( ) ) ; } | 60 |
java-test-10026 | java | What connects to server ' s application via given port ? | rtmp client | public void connect ( String server , int port , Map < String , Object > connection Params , I Pending Service Callback connect Callback , Object [ ] connect Call Arguments ) { log . debug ( STRING , new Object [ ] { server , port , connection Params , connect Callback , Arrays . to String ( connect Call Arguments ) } ... | public void connect ( String server , int port , Map < String , Object > connectionParams , IPendingServiceCallback connectCallback , Object [ ] connectCallArguments ) { log . debug ( STRING , new Object [ ] { server , port , connectionParams , connectCallback , Arrays . toString ( connectCallArguments ) } ) ; log . in... | 152 |
java-test-10027 | java | How do rtmp client connect to server ' s application ? | via given port | public void connect ( String server , int port , Map < String , Object > connection Params , I Pending Service Callback connect Callback , Object [ ] connect Call Arguments ) { log . debug ( STRING , new Object [ ] { server , port , connection Params , connect Callback , Arrays . to String ( connect Call Arguments ) } ... | public void connect ( String server , int port , Map < String , Object > connectionParams , IPendingServiceCallback connectCallback , Object [ ] connectCallArguments ) { log . debug ( STRING , new Object [ ] { server , port , connectionParams , connectCallback , Arrays . toString ( connectCallArguments ) } ) ; log . in... | 152 |
java-test-10028 | java | What do rtmp client connect via given port ? | to server ' s application | public void connect ( String server , int port , Map < String , Object > connection Params , I Pending Service Callback connect Callback , Object [ ] connect Call Arguments ) { log . debug ( STRING , new Object [ ] { server , port , connection Params , connect Callback , Arrays . to String ( connect Call Arguments ) } ... | public void connect ( String server , int port , Map < String , Object > connectionParams , IPendingServiceCallback connectCallback , Object [ ] connectCallArguments ) { log . debug ( STRING , new Object [ ] { server , port , connectionParams , connectCallback , Arrays . toString ( connectCallArguments ) } ) ; log . in... | 152 |
java-test-10032 | java | What does the code validate ? | the syntax port | public static void validate Open Port ( String port , Application application ) throws Check Exception { try { Integer . parse Int ( port ) ; } catch ( Number Format Exception e ) { String message Translated = message Source . get Message ( STRING , null , Locale . ENGLISH ) ; throw new Check Exception ( message Transl... | public static void validateOpenPort ( String port , Application application ) throws CheckException { try { Integer . parseInt ( port ) ; } catch ( NumberFormatException e ) { String messageTranslated = messageSource . getMessage ( STRING , null , Locale . ENGLISH ) ; throw new CheckException ( messageTranslated + STRI... | 116 |
java-test-10033 | java | What converts to a java class name ? | a file name | public static String convert To Java Class Name ( String name ) { int dot Index = name . index Of ( STRING ) ; if ( dot Index >= NUM ) { name = name . substring ( NUM , dot Index ) ; } String [ ] split = name . split ( STRING ) ; String Builder out = new String Builder ( ) ; for ( String section : split ) { out . appen... | public static String convertToJavaClassName ( String name ) { int dotIndex = name . indexOf ( STRING ) ; if ( dotIndex >= _NUM ) { name = name . substring ( _NUM , dotIndex ) ; } String [ ] split = name . split ( STRING ) ; StringBuilder out = new StringBuilder ( ) ; for ( String section : split ) { out . append ( Stri... | 99 |
java-test-10034 | java | What does utility method implement to convert a file name to a java class name ? | data binding ' s logic | public static String convert To Java Class Name ( String name ) { int dot Index = name . index Of ( STRING ) ; if ( dot Index >= NUM ) { name = name . substring ( NUM , dot Index ) ; } String [ ] split = name . split ( STRING ) ; String Builder out = new String Builder ( ) ; for ( String section : split ) { out . appen... | public static String convertToJavaClassName ( String name ) { int dotIndex = name . indexOf ( STRING ) ; if ( dotIndex >= _NUM ) { name = name . substring ( _NUM , dotIndex ) ; } String [ ] split = name . split ( STRING ) ; StringBuilder out = new StringBuilder ( ) ; for ( String section : split ) { out . append ( Stri... | 99 |
java-test-10035 | java | For what purpose does utility method implement data binding ' s logic ? | to convert a file name to a java class name | public static String convert To Java Class Name ( String name ) { int dot Index = name . index Of ( STRING ) ; if ( dot Index >= NUM ) { name = name . substring ( NUM , dot Index ) ; } String [ ] split = name . split ( STRING ) ; String Builder out = new String Builder ( ) ; for ( String section : split ) { out . appen... | public static String convertToJavaClassName ( String name ) { int dotIndex = name . indexOf ( STRING ) ; if ( dotIndex >= _NUM ) { name = name . substring ( _NUM , dotIndex ) ; } String [ ] split = name . split ( STRING ) ; StringBuilder out = new StringBuilder ( ) ; for ( String section : split ) { out . append ( Stri... | 99 |
java-test-10036 | java | What do a file name convert ? | to a java class name | public static String convert To Java Class Name ( String name ) { int dot Index = name . index Of ( STRING ) ; if ( dot Index >= NUM ) { name = name . substring ( NUM , dot Index ) ; } String [ ] split = name . split ( STRING ) ; String Builder out = new String Builder ( ) ; for ( String section : split ) { out . appen... | public static String convertToJavaClassName ( String name ) { int dotIndex = name . indexOf ( STRING ) ; if ( dotIndex >= _NUM ) { name = name . substring ( _NUM , dotIndex ) ; } String [ ] split = name . split ( STRING ) ; StringBuilder out = new StringBuilder ( ) ; for ( String section : split ) { out . append ( Stri... | 99 |
java-test-10037 | java | What does this method use same as uuid ? | securerandom | public static String url Safe String ( final int num Bits ) { Secure Random ng = Holder . number Generator ; String Builder sb = new String Builder ( NUM + ( num Bits / NUM ) ) ; for ( int i = num Bits ; i > NUM ; i -= NUM ) { sb . append ( base 64 URL [ ng . next Int ( i > NUM ? NUM : ( NUM << i ) ) ] ) ; } return sb ... | public static String urlSafeString ( final int numBits ) { SecureRandom ng = Holder . numberGenerator ; StringBuilder sb = new StringBuilder ( _NUM + ( numBits / _NUM ) ) ; for ( int i = numBits ; i > _NUM ; i -= _NUM ) { sb . append ( base64URL [ ng . nextInt ( i > _NUM ? _NUM : ( _NUM << i ) ) ] ) ; } return sb . toS... | 95 |
java-test-10038 | java | How does the code generate a string ? | using base64 url safe characters with numbits bits | public static String url Safe String ( final int num Bits ) { Secure Random ng = Holder . number Generator ; String Builder sb = new String Builder ( NUM + ( num Bits / NUM ) ) ; for ( int i = num Bits ; i > NUM ; i -= NUM ) { sb . append ( base 64 URL [ ng . next Int ( i > NUM ? NUM : ( NUM << i ) ) ] ) ; } return sb ... | public static String urlSafeString ( final int numBits ) { SecureRandom ng = Holder . numberGenerator ; StringBuilder sb = new StringBuilder ( _NUM + ( numBits / _NUM ) ) ; for ( int i = numBits ; i > _NUM ; i -= _NUM ) { sb . append ( base64URL [ ng . nextInt ( i > _NUM ? _NUM : ( _NUM << i ) ) ] ) ; } return sb . toS... | 95 |
java-test-10039 | java | How does this method use securerandom ? | same as uuid | public static String url Safe String ( final int num Bits ) { Secure Random ng = Holder . number Generator ; String Builder sb = new String Builder ( NUM + ( num Bits / NUM ) ) ; for ( int i = num Bits ; i > NUM ; i -= NUM ) { sb . append ( base 64 URL [ ng . next Int ( i > NUM ? NUM : ( NUM << i ) ) ] ) ; } return sb ... | public static String urlSafeString ( final int numBits ) { SecureRandom ng = Holder . numberGenerator ; StringBuilder sb = new StringBuilder ( _NUM + ( numBits / _NUM ) ) ; for ( int i = numBits ; i > _NUM ; i -= _NUM ) { sb . append ( base64URL [ ng . nextInt ( i > _NUM ? _NUM : ( _NUM << i ) ) ] ) ; } return sb . toS... | 95 |
java-test-10040 | java | What does the code reinitialize ? | the datasets | public void import Data ( final File the File ) { try { CSV Parser the Parser = new CSV Parser ( new File Input Stream ( the File ) , STRING , STRING , STRING ) ; String [ ] [ ] values = the Parser . get All Values ( ) ; String [ ] line ; double [ ] vector ; int dimension = values [ NUM ] . length ; init ( dimension ) ... | public void importData ( final File theFile ) { try { CSVParser theParser = new CSVParser ( new FileInputStream ( theFile ) , STRING , STRING , STRING ) ; String [ ] [ ] values = theParser . getAllValues ( ) ; String [ ] line ; double [ ] vector ; int dimension = values [ _NUM ] . length ; init ( dimension ) ; for ( in... | 202 |
java-test-10041 | java | What does the code add ? | new high - d datapoints | public void import Data ( final File the File ) { try { CSV Parser the Parser = new CSV Parser ( new File Input Stream ( the File ) , STRING , STRING , STRING ) ; String [ ] [ ] values = the Parser . get All Values ( ) ; String [ ] line ; double [ ] vector ; int dimension = values [ NUM ] . length ; init ( dimension ) ... | public void importData ( final File theFile ) { try { CSVParser theParser = new CSVParser ( new FileInputStream ( theFile ) , STRING , STRING , STRING ) ; String [ ] [ ] values = theParser . getAllValues ( ) ; String [ ] line ; double [ ] vector ; int dimension = values [ _NUM ] . length ; init ( dimension ) ; for ( in... | 202 |
java-test-10042 | java | How does the code run all these tests ? | in both marshaling and non - marshaling mode | public void init Combos ( ) { add Combination Values ( STRING , new Object [ ] { STRING , STRING } ) ; add Combination Values ( STRING , new Object [ ] { Integer . value Of ( Delivery Mode . NON PERSISTENT ) , Integer . value Of ( Delivery Mode . PERSISTENT ) } ) ; add Combination Values ( STRING , new Object [ ] { Byt... | public void initCombos ( ) { addCombinationValues ( STRING , new Object [ ] { STRING , STRING } ) ; addCombinationValues ( STRING , new Object [ ] { Integer . valueOf ( DeliveryMode . NON_PERSISTENT ) , Integer . valueOf ( DeliveryMode . PERSISTENT ) } ) ; addCombinationValues ( STRING , new Object [ ] { Byte . valueOf... | 87 |
java-test-10043 | java | What does the code run in both marshaling and non - marshaling mode ? | all these tests | public void init Combos ( ) { add Combination Values ( STRING , new Object [ ] { STRING , STRING } ) ; add Combination Values ( STRING , new Object [ ] { Integer . value Of ( Delivery Mode . NON PERSISTENT ) , Integer . value Of ( Delivery Mode . PERSISTENT ) } ) ; add Combination Values ( STRING , new Object [ ] { Byt... | public void initCombos ( ) { addCombinationValues ( STRING , new Object [ ] { STRING , STRING } ) ; addCombinationValues ( STRING , new Object [ ] { Integer . valueOf ( DeliveryMode . NON_PERSISTENT ) , Integer . valueOf ( DeliveryMode . PERSISTENT ) } ) ; addCombinationValues ( STRING , new Object [ ] { Byte . valueOf... | 87 |
java-test-10045 | java | For what purpose is that the dm has been shut down before calling this step essential ? | to ensure that no new listeners are registering | private void do Shutdown Listeners ( Hash Set shutdown Listeners ) { if ( shutdown Listeners == null ) { return ; } Iterator it = shutdown Listeners . iterator ( ) ; while ( it . has Next ( ) ) { Shutdown Listener s = ( Shutdown Listener ) it . next ( ) ; try { s . on Shutdown ( this ) ; } catch ( Virtual Machine Error... | private void doShutdownListeners ( HashSet shutdownListeners ) { if ( shutdownListeners == null ) { return ; } Iterator it = shutdownListeners . iterator ( ) ; while ( it . hasNext ( ) ) { ShutdownListener s = ( ShutdownListener ) it . next ( ) ; try { s . onShutdown ( this ) ; } catch ( VirtualMachineError err ) { Sys... | 313 |
java-test-10046 | java | When has the dm been shut ? | before calling this step | private void do Shutdown Listeners ( Hash Set shutdown Listeners ) { if ( shutdown Listeners == null ) { return ; } Iterator it = shutdown Listeners . iterator ( ) ; while ( it . has Next ( ) ) { Shutdown Listener s = ( Shutdown Listener ) it . next ( ) ; try { s . on Shutdown ( this ) ; } catch ( Virtual Machine Error... | private void doShutdownListeners ( HashSet shutdownListeners ) { if ( shutdownListeners == null ) { return ; } Iterator it = shutdownListeners . iterator ( ) ; while ( it . hasNext ( ) ) { ShutdownListener s = ( ShutdownListener ) it . next ( ) ; try { s . onShutdown ( this ) ; } catch ( VirtualMachineError err ) { Sys... | 313 |
java-test-10047 | java | What does the code add into the sum for the current prediction ? | this predictor | public void add ( double [ ] preds , double [ ] input ) { if ( m target Category == - NUM ) { preds [ NUM ] += m coefficient * Math . pow ( input [ m mining Schema Att Index ] , m exponent ) ; } else { preds [ m target Category ] += m coefficient * Math . pow ( input [ m mining Schema Att Index ] , m exponent ) ; } } | public void add ( double [ ] preds , double [ ] input ) { if ( m_targetCategory == - _NUM ) { preds [ _NUM ] += m_coefficient * Math . pow ( input [ m_miningSchemaAttIndex ] , m_exponent ) ; } else { preds [ m_targetCategory ] += m_coefficient * Math . pow ( input [ m_miningSchemaAttIndex ] , m_exponent ) ; } } | 82 |
java-test-10052 | java | How does the code arrange the container ? | with no constraint on the width or height | protected Size 2 D arrange NN ( Block Container container , Graphics 2 D g2 ) { double max W = NUM ; double max H = NUM ; List blocks = container . get Blocks ( ) ; Iterator iterator = blocks . iterator ( ) ; while ( iterator . has Next ( ) ) { Block b = ( Block ) iterator . next ( ) ; if ( b != null ) { Size 2 D s = b... | protected Size2D arrangeNN ( BlockContainer container , Graphics2D g2 ) { double maxW = _NUM ; double maxH = _NUM ; List blocks = container . getBlocks ( ) ; Iterator iterator = blocks . iterator ( ) ; while ( iterator . hasNext ( ) ) { Block b = ( Block ) iterator . next ( ) ; if ( b != null ) { Size2D s = b . arrange... | 171 |
java-test-10053 | java | What do a certain time have ? | passes | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10054 | java | What has passes ? | a certain time | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10055 | java | What does the method try if the target socket address actually accepts connections multiple times ? | various strategies | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10056 | java | What does this method establish ? | a proper network connection to the given target | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10057 | java | What does the code find ? | the local network address from which this machine can connect to the target address | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10058 | java | What accepts connections actually ? | the target socket address | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10059 | java | When will logging has start ? | after a certain time has passes | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10060 | java | What does the method use if the target socket address actually accepts connections between tries ? | an exponential backoff timer | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10061 | java | What does this method try ? | to establish a proper network connection to the given target | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10062 | java | What will the method choose if no connection attempt was successful after the given maximum time ? | some address based on heuristics ( excluding link - local and loopback addresses | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10063 | java | Till when do the log not flood ? | while the backoff time is still very low | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10064 | java | When was no connection attempt was successful ? | after the given maximum time | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10065 | java | Where does the method use an exponential backoff timer if the target socket address actually accepts connections ? | between tries | public static Inet Address find Connecting Address ( Inet Socket Address target Address , long max Wait Millis , long start Logging After ) throws IO Exception { if ( target Address == null ) { throw new Null Pointer Exception ( STRING ) ; } if ( max Wait Millis <= NUM ) { throw new Illegal Argument Exception ( STRING ... | public static InetAddress findConnectingAddress ( InetSocketAddress targetAddress , long maxWaitMillis , long startLoggingAfter ) throws IOException { if ( targetAddress == null ) { throw new NullPointerException ( STRING ) ; } if ( maxWaitMillis <= _NUM ) { throw new IllegalArgumentException ( STRING ) ; } final long ... | 432 |
java-test-10066 | java | What does the purpose of this method be ? | to prevent timing attack | public static boolean slow String Comparison ( String given Signature , String computed Signature ) { if ( null == given Signature || null == computed Signature || given Signature . length ( ) != computed Signature . length ( ) ) return BOOL ; int n = computed Signature . length ( ) ; boolean signatures Match = BOOL ; ... | public static boolean slowStringComparison ( String givenSignature , String computedSignature ) { if ( null == givenSignature || null == computedSignature || givenSignature . length ( ) != computedSignature . length ( ) ) return _BOOL ; int n = computedSignature . length ( ) ; boolean signaturesMatch = _BOOL ; for ( in... | 105 |
java-test-10067 | java | How does the code add format ? | by retrieving the globalization service attributes to get the list of formats and add them accordingly | private Map add Formats ( String realm ) { Set values = null ; Map map = null ; try { AM Identity Repository repo = new AM Identity Repository ( admin SSO Token , realm ) ; AM Identity realm Identity = repo . get Realm Identity ( ) ; Set services From Id Repo = realm Identity . get Assigned Services ( ) ; if ( services... | private Map addFormats ( String realm ) { Set values = null ; Map map = null ; try { AMIdentityRepository repo = new AMIdentityRepository ( adminSSOToken , realm ) ; AMIdentity realmIdentity = repo . getRealmIdentity ( ) ; Set servicesFromIdRepo = realmIdentity . getAssignedServices ( ) ; if ( servicesFromIdRepo . cont... | 349 |
java-test-10068 | java | For what purpose do the globalization service attributes retrieve ? | to get the list of formats | private Map add Formats ( String realm ) { Set values = null ; Map map = null ; try { AM Identity Repository repo = new AM Identity Repository ( admin SSO Token , realm ) ; AM Identity realm Identity = repo . get Realm Identity ( ) ; Set services From Id Repo = realm Identity . get Assigned Services ( ) ; if ( services... | private Map addFormats ( String realm ) { Set values = null ; Map map = null ; try { AMIdentityRepository repo = new AMIdentityRepository ( adminSSOToken , realm ) ; AMIdentity realmIdentity = repo . getRealmIdentity ( ) ; Set servicesFromIdRepo = realmIdentity . getAssignedServices ( ) ; if ( servicesFromIdRepo . cont... | 349 |
java-test-10069 | java | What did method use ? | to correctly reject variables in an insert data or delete data operation | private void assert Not Variable ( final Term Node t ) throws Visitor Exception { if ( t == null ) return ; if ( ! t . is Variable ( ) ) return ; final Var Node v = ( Var Node ) t ; if ( v . is Anonymous ( ) ) { return ; } throw new Visitor Exception ( STRING + t ) ; } | private void assertNotVariable ( final TermNode t ) throws VisitorException { if ( t == null ) return ; if ( ! t . isVariable ( ) ) return ; final VarNode v = ( VarNode ) t ; if ( v . isAnonymous ( ) ) { return ; } throw new VisitorException ( STRING + t ) ; } | 70 |
java-test-10070 | java | Where did variables reject correctly ? | in an insert data | private void assert Not Variable ( final Term Node t ) throws Visitor Exception { if ( t == null ) return ; if ( ! t . is Variable ( ) ) return ; final Var Node v = ( Var Node ) t ; if ( v . is Anonymous ( ) ) { return ; } throw new Visitor Exception ( STRING + t ) ; } | private void assertNotVariable ( final TermNode t ) throws VisitorException { if ( t == null ) return ; if ( ! t . isVariable ( ) ) return ; final VarNode v = ( VarNode ) t ; if ( v . isAnonymous ( ) ) { return ; } throw new VisitorException ( STRING + t ) ; } | 70 |
java-test-10073 | java | What does not make much sense it probably ? | to add support for other distance functions | @ Override public double [ ] [ ] process Ids ( DBI Ds ids , Relation < ? extends Number Vector > relation ) { final int dim = Relation Util . dimensionality ( relation ) ; final Covariance Matrix cmat = new Covariance Matrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = NUM ;... | @ Override public double [ ] [ ] processIds ( DBIDs ids , Relation < ? extends NumberVector > relation ) { final int dim = RelationUtil . dimensionality ( relation ) ; final CovarianceMatrix cmat = new CovarianceMatrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = _NUM ; doub... | 254 |
java-test-10074 | java | What ll we need ll ? | to compute it ourselves | @ Override public double [ ] [ ] process Ids ( DBI Ds ids , Relation < ? extends Number Vector > relation ) { final int dim = Relation Util . dimensionality ( relation ) ; final Covariance Matrix cmat = new Covariance Matrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = NUM ;... | @ Override public double [ ] [ ] processIds ( DBIDs ids , Relation < ? extends NumberVector > relation ) { final int dim = RelationUtil . dimensionality ( relation ) ; final CovarianceMatrix cmat = new CovarianceMatrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = _NUM ; doub... | 254 |
java-test-10075 | java | What does to add support for other distance functions not make it probably ? | much sense | @ Override public double [ ] [ ] process Ids ( DBI Ds ids , Relation < ? extends Number Vector > relation ) { final int dim = Relation Util . dimensionality ( relation ) ; final Covariance Matrix cmat = new Covariance Matrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = NUM ;... | @ Override public double [ ] [ ] processIds ( DBIDs ids , Relation < ? extends NumberVector > relation ) { final int dim = RelationUtil . dimensionality ( relation ) ; final CovarianceMatrix cmat = new CovarianceMatrix ( dim ) ; final Centroid centroid = Centroid . make ( relation , ids ) ; double maxdist = _NUM ; doub... | 254 |
java-test-10076 | java | What are in the given pattern ? | no sql wildcard characters ( ' % ' or ' _ ' ) | public static boolean has No Wildcards ( String pattern ) { if ( pattern == null ) return BOOL ; for ( int pos = NUM ; pos < pattern . length ( ) ; pos ++ ) { char ch = pattern . char At ( pos ) ; if ( ch == STRING || ch == STRING ) { return BOOL ; } else if ( ch == STRING && pos < pattern . length ( ) - NUM ) { char n... | public static boolean hasNoWildcards ( String pattern ) { if ( pattern == null ) return _BOOL ; for ( int pos = _NUM ; pos < pattern . length ( ) ; pos ++ ) { char ch = pattern . charAt ( pos ) ; if ( ch == STRING || ch == STRING ) { return _BOOL ; } else if ( ch == STRING && pos < pattern . length ( ) - _NUM ) { char ... | 126 |
java-test-10077 | java | Where do no sql wildcard characters ( ' % ' or ' _ ' ) be ? | in the given pattern | public static boolean has No Wildcards ( String pattern ) { if ( pattern == null ) return BOOL ; for ( int pos = NUM ; pos < pattern . length ( ) ; pos ++ ) { char ch = pattern . char At ( pos ) ; if ( ch == STRING || ch == STRING ) { return BOOL ; } else if ( ch == STRING && pos < pattern . length ( ) - NUM ) { char n... | public static boolean hasNoWildcards ( String pattern ) { if ( pattern == null ) return _BOOL ; for ( int pos = _NUM ; pos < pattern . length ( ) ; pos ++ ) { char ch = pattern . charAt ( pos ) ; if ( ch == STRING || ch == STRING ) { return _BOOL ; } else if ( ch == STRING && pos < pattern . length ( ) - _NUM ) { char ... | 126 |
java-test-10084 | java | What does the code obtain ? | the catalog class name setting from the properties | public String query Catalog Class Name ( ) { String class Name = System . get Property ( p Classname ) ; if ( class Name == null ) { if ( resources == null ) read Properties ( ) ; if ( resources == null ) return null ; try { return resources . get String ( STRING ) ; } catch ( Missing Resource Exception e ) { return nu... | public String queryCatalogClassName ( ) { String className = System . getProperty ( pClassname ) ; if ( className == null ) { if ( resources == null ) readProperties ( ) ; if ( resources == null ) return null ; try { return resources . getString ( STRING ) ; } catch ( MissingResourceException e ) { return null ; } } re... | 80 |
java-test-10086 | java | Where does the code execute the i d generation lua script returning the results ? | on the given redis instance | private Optional < Icicle Redis Response > execute Lua Script ( final Redis redis , final long batch Size ) { List < String > args = Arrays . as List ( String . value Of ( MAX SEQUENCE ) , String . value Of ( MIN LOGICAL SHARD ID ) , String . value Of ( MAX LOGICAL SHARD ID ) , String . value Of ( batch Size ) ) ; retu... | private Optional < IcicleRedisResponse > executeLuaScript ( final Redis redis , final long batchSize ) { List < String > args = Arrays . asList ( String . valueOf ( MAX_SEQUENCE ) , String . valueOf ( MIN_LOGICAL_SHARD_ID ) , String . valueOf ( MAX_LOGICAL_SHARD_ID ) , String . valueOf ( batchSize ) ) ; return redis . ... | 88 |
java-test-10087 | java | What does the code execute returning the results on the given redis instance ? | the i d generation lua script | private Optional < Icicle Redis Response > execute Lua Script ( final Redis redis , final long batch Size ) { List < String > args = Arrays . as List ( String . value Of ( MAX SEQUENCE ) , String . value Of ( MIN LOGICAL SHARD ID ) , String . value Of ( MAX LOGICAL SHARD ID ) , String . value Of ( batch Size ) ) ; retu... | private Optional < IcicleRedisResponse > executeLuaScript ( final Redis redis , final long batchSize ) { List < String > args = Arrays . asList ( String . valueOf ( MAX_SEQUENCE ) , String . valueOf ( MIN_LOGICAL_SHARD_ID ) , String . valueOf ( MAX_LOGICAL_SHARD_ID ) , String . valueOf ( batchSize ) ) ; return redis . ... | 88 |
java-test-10088 | java | What does the code compute ? | the exact maximum and minimum | private Double Min Max exact Min Max ( Relation < O > relation , Distance Query < O > dist Func ) { final Finite Progress progress = LOG . is Verbose ( ) ? new Finite Progress ( STRING , relation . size ( ) , LOG ) : null ; Double Min Max minmax = new Double Min Max ( ) ; for ( DBID Iter iditer = relation . iter DBI Ds... | private DoubleMinMax exactMinMax ( Relation < O > relation , DistanceQuery < O > distFunc ) { final FiniteProgress progress = LOG . isVerbose ( ) ? new FiniteProgress ( STRING , relation . size ( ) , LOG ) : null ; DoubleMinMax minmax = new DoubleMinMax ( ) ; for ( DBIDIter iditer = relation . iterDBIDs ( ) ; iditer . ... | 181 |
java-test-10091 | java | What should we apply ? | the workaround where we take focus for the default button or if that should be determined by the dialog | protected boolean custom Should Take Focus ( ) { if ( custom Area instanceof Label ) { return BOOL ; } if ( custom Area instanceof C Label ) { return ( custom Area . get Style ( ) & SWT . NO FOCUS ) > NUM ; } return BOOL ; } | protected boolean customShouldTakeFocus ( ) { if ( customArea instanceof Label ) { return _BOOL ; } if ( customArea instanceof CLabel ) { return ( customArea . getStyle ( ) & SWT . NO_FOCUS ) > _NUM ; } return _BOOL ; } | 53 |
java-test-10092 | java | What can not take focus ? | a label or clabel | protected boolean custom Should Take Focus ( ) { if ( custom Area instanceof Label ) { return BOOL ; } if ( custom Area instanceof C Label ) { return ( custom Area . get Style ( ) & SWT . NO FOCUS ) > NUM ; } return BOOL ; } | protected boolean customShouldTakeFocus ( ) { if ( customArea instanceof Label ) { return _BOOL ; } if ( customArea instanceof CLabel ) { return ( customArea . getStyle ( ) & SWT . NO_FOCUS ) > _NUM ; } return _BOOL ; } | 53 |
java-test-10095 | java | What searchs a ? | for jars | public Checker Main ( final File checker Jar , final List < String > args ) { this . checker Jar = checker Jar ; final File search Path = checker Jar . get Parent File ( ) ; this . checker Qual Jar = new File ( search Path , STRING ) ; replace Shorthand Processor ( args ) ; arg List Files = collect Arg Files ( args ) ;... | public CheckerMain ( final File checkerJar , final List < String > args ) { this . checkerJar = checkerJar ; final File searchPath = checkerJar . getParentFile ( ) ; this . checkerQualJar = new File ( searchPath , STRING ) ; replaceShorthandProcessor ( args ) ; argListFiles = collectArgFiles ( args ) ; this . javacJar ... | 221 |
java-test-10096 | java | How is signature valid ? | using the signing key | public boolean verify Token ( String data , String signature ) { if ( signature . length ( ) == NUM ) { return BOOL ; } try { return signing Key . verify ( data , signature ) ; } catch ( Keyczar Exception e ) { return BOOL ; } } | public boolean verifyToken ( String data , String signature ) { if ( signature . length ( ) == _NUM ) { return _BOOL ; } try { return signingKey . verify ( data , signature ) ; } catch ( KeyczarException e ) { return _BOOL ; } } | 53 |
java-test-10097 | java | Who throws exceptions for many cases of malformed signatures ? | keyczar | public boolean verify Token ( String data , String signature ) { if ( signature . length ( ) == NUM ) { return BOOL ; } try { return signing Key . verify ( data , signature ) ; } catch ( Keyczar Exception e ) { return BOOL ; } } | public boolean verifyToken ( String data , String signature ) { if ( signature . length ( ) == _NUM ) { return _BOOL ; } try { return signingKey . verify ( data , signature ) ; } catch ( KeyczarException e ) { return _BOOL ; } } | 53 |
java-test-10098 | java | For what purpose does keyczar throw exceptions ? | for many cases of malformed signatures | public boolean verify Token ( String data , String signature ) { if ( signature . length ( ) == NUM ) { return BOOL ; } try { return signing Key . verify ( data , signature ) ; } catch ( Keyczar Exception e ) { return BOOL ; } } | public boolean verifyToken ( String data , String signature ) { if ( signature . length ( ) == _NUM ) { return _BOOL ; } try { return signingKey . verify ( data , signature ) ; } catch ( KeyczarException e ) { return _BOOL ; } } | 53 |
java-test-10099 | java | What does the code create ? | a new instance of the qoshandler | public Qo S Handler ( final Vertx vertx , final Resource Storage storage , final String qos Settings Path , final Map < String , Object > properties , String prefix ) { this . vertx = vertx ; this . storage = storage ; this . qos Settings Uri = qos Settings Path ; this . properties = properties ; this . prefix = prefix... | public QoSHandler ( final Vertx vertx , final ResourceStorage storage , final String qosSettingsPath , final Map < String , Object > properties , String prefix ) { this . vertx = vertx ; this . storage = storage ; this . qosSettingsUri = qosSettingsPath ; this . properties = properties ; this . prefix = prefix ; qosRul... | 109 |
java-test-10100 | java | What does the code extract from the xml specification ? | a dialogue domain | private static Domain extract Domain ( String top Domain File , boolean full Extract ) { Domain domain = new Domain ( ) ; File f = new File ( top Domain File ) ; domain . set Source File ( f ) ; try { Document doc = XML Utils . get XML Document ( top Domain File ) ; Node main Node = XML Utils . get Main Node ( doc ) ; ... | private static Domain extractDomain ( String topDomainFile , boolean fullExtract ) { Domain domain = new Domain ( ) ; File f = new File ( topDomainFile ) ; domain . setSourceFile ( f ) ; try { Document doc = XMLUtils . getXMLDocument ( topDomainFile ) ; Node mainNode = XMLUtils . getMainNode ( doc ) ; String rootpath =... | 171 |
java-test-10101 | java | What does the code create ? | a new template based on the string value | public static Template create ( String value ) { if ( Settings . is Function ( value ) ) { return new Functional Template ( value ) ; } if ( Graph . is Relational ( value ) ) { try { return new Relational Template ( value ) ; } catch ( Exception e ) { log . warning ( STRING + value + STRING ) ; return new String Templa... | public static Template create ( String value ) { if ( Settings . isFunction ( value ) ) { return new FunctionalTemplate ( value ) ; } if ( Graph . isRelational ( value ) ) { try { return new RelationalTemplate ( value ) ; } catch ( Exception e ) { log . warning ( STRING + value + STRING ) ; return new StringTemplate ( ... | 166 |
java-test-10102 | java | What does this method find ? | the best template representation for the string | public static Template create ( String value ) { if ( Settings . is Function ( value ) ) { return new Functional Template ( value ) ; } if ( Graph . is Relational ( value ) ) { try { return new Relational Template ( value ) ; } catch ( Exception e ) { log . warning ( STRING + value + STRING ) ; return new String Templa... | public static Template create ( String value ) { if ( Settings . isFunction ( value ) ) { return new FunctionalTemplate ( value ) ; } if ( Graph . isRelational ( value ) ) { try { return new RelationalTemplate ( value ) ; } catch ( Exception e ) { log . warning ( STRING + value + STRING ) ; return new StringTemplate ( ... | 166 |
java-test-10103 | java | What must caller hold ? | rwlock | @ Override protected Object [ ] available I Ds Array ( ) { Linked List ret Val = new Linked List ( ) ; ret Val . add All ( this . durable I Ds List ) ; ret Val . add All ( ids Available ) ; return ret Val . to Array ( ) ; } | @ Override protected Object [ ] availableIDsArray ( ) { LinkedList retVal = new LinkedList ( ) ; retVal . addAll ( this . durableIDsList ) ; retVal . addAll ( idsAvailable ) ; return retVal . toArray ( ) ; } | 58 |
java-test-10104 | java | What does the distinct operation use ? | the first occurrence of a point | @ Override public void execute ( Metric Time Series time Series , Function Value Map function Value Map ) { if ( time Series . is Empty ( ) ) { return ; } time Series . sort ( ) ; Long List time List = new Long List ( time Series . size ( ) ) ; Double List value List = new Double List ( time Series . size ( ) ) ; Set <... | @ Override public void execute ( MetricTimeSeries timeSeries , FunctionValueMap functionValueMap ) { if ( timeSeries . isEmpty ( ) ) { return ; } timeSeries . sort ( ) ; LongList timeList = new LongList ( timeSeries . size ( ) ) ; DoubleList valueList = new DoubleList ( timeSeries . size ( ) ) ; Set < Double > distinct... | 194 |
java-test-10105 | java | What uses the first occurrence of a point ? | the distinct operation | @ Override public void execute ( Metric Time Series time Series , Function Value Map function Value Map ) { if ( time Series . is Empty ( ) ) { return ; } time Series . sort ( ) ; Long List time List = new Long List ( time Series . size ( ) ) ; Double List value List = new Double List ( time Series . size ( ) ) ; Set <... | @ Override public void execute ( MetricTimeSeries timeSeries , FunctionValueMap functionValueMap ) { if ( timeSeries . isEmpty ( ) ) { return ; } timeSeries . sort ( ) ; LongList timeList = new LongList ( timeSeries . size ( ) ) ; DoubleList valueList = new DoubleList ( timeSeries . size ( ) ) ; Set < Double > distinct... | 194 |
java-test-10106 | java | Where do all databases show ? | in hive | @ Request Mapping ( value = STRING , method = { Request Method . GET } ) @ Response Body private static List < String > show Hive Databases ( ) throws IO Exception { I Hive Client hive Client = Hive Client Factory . get Hive Client ( ) ; List < String > results = null ; try { results = hive Client . get Hive Db Names (... | @ RequestMapping ( value = STRING , method = { RequestMethod . GET } ) @ ResponseBody private static List < String > showHiveDatabases ( ) throws IOException { IHiveClient hiveClient = HiveClientFactory . getHiveClient ( ) ; List < String > results = null ; try { results = hiveClient . getHiveDbNames ( ) ; } catch ( Ex... | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.