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-6330 | java | Where do we show alpha beta ? | in symbol font | public String node Label ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append... | public String nodeLabel ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append ( ... | 96 |
java-test-6331 | java | What do we show in symbol font ? | alpha beta | public String node Label ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append... | public String nodeLabel ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append ( ... | 96 |
java-test-6332 | java | For what purpose do label for dotty output compute ? | to try to maximize utility | public String node Label ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append... | public String nodeLabel ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append ( ... | 96 |
java-test-6333 | java | What do we want ? | to show alpha beta in symbol font | public String node Label ( ) { String Builder sb = new String Builder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append... | public String nodeLabel ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( alpha ) ) ; sb . append ( STRING ) ; sb . append ( Formatter . convert ( beta ) ) ; if ( set ) { sb . append ( STRING ) ; sb . append ( Formatter . convert ( value ) ) ; } sb . append ( ... | 96 |
java-test-6334 | java | What is being animated elsewhere ? | the current color | public void paint Component ( Graphics g ) { g . set Color ( get Background ( ) ) ; g . fill Rect ( NUM , NUM , get Width ( ) , get Height ( ) ) ; g . set Color ( current Color ) ; g . fill Oval ( NUM , NUM , get Width ( ) , get Height ( ) ) ; } | public void paintComponent ( Graphics g ) { g . setColor ( getBackground ( ) ) ; g . fillRect ( _NUM , _NUM , getWidth ( ) , getHeight ( ) ) ; g . setColor ( currentColor ) ; g . fillOval ( _NUM , _NUM , getWidth ( ) , getHeight ( ) ) ; } | 70 |
java-test-6335 | java | What does the code update ? | the datatag in the cache | public final Event < Boolean > update From Source ( final Long data Tag Id , final Source Data Tag Value source Data Tag Value ) { tag Cache . acquire Write Lock On Key ( data Tag Id ) ; try { T data Tag = tag Cache . get ( data Tag Id ) ; if ( source Data Tag Value != null && source Data Tag Value . get Value ( ) != n... | public final Event < Boolean > updateFromSource ( final Long dataTagId , final SourceDataTagValue sourceDataTagValue ) { tagCache . acquireWriteLockOnKey ( dataTagId ) ; try { T dataTag = tagCache . get ( dataTagId ) ; if ( sourceDataTagValue != null && sourceDataTagValue . getValue ( ) != null && isKnownClass ( dataTa... | 204 |
java-test-6336 | java | What does the method notify if an update is made ? | any cache listeners | public final Event < Boolean > update From Source ( final Long data Tag Id , final Source Data Tag Value source Data Tag Value ) { tag Cache . acquire Write Lock On Key ( data Tag Id ) ; try { T data Tag = tag Cache . get ( data Tag Id ) ; if ( source Data Tag Value != null && source Data Tag Value . get Value ( ) != n... | public final Event < Boolean > updateFromSource ( final Long dataTagId , final SourceDataTagValue sourceDataTagValue ) { tagCache . acquireWriteLockOnKey ( dataTagId ) ; try { T dataTag = tagCache . get ( dataTagId ) ; if ( sourceDataTagValue != null && sourceDataTagValue . getValue ( ) != null && isKnownClass ( dataTa... | 204 |
java-test-6337 | java | How do all files from each segmentinfos e ? | decref | private void delete Commits ( ) { int size = commits To Delete . size ( ) ; if ( size > NUM ) { Throwable first Throwable = null ; for ( int i = NUM ; i < size ; i ++ ) { Commit Point commit = commits To Delete . get ( i ) ; if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING + commit .... | private void deleteCommits ( ) { int size = commitsToDelete . size ( ) ; if ( size > _NUM ) { Throwable firstThrowable = null ; for ( int i = _NUM ; i < size ; i ++ ) { CommitPoint commit = commitsToDelete . get ( i ) ; if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING + commit . getSegm... | 252 |
java-test-6338 | java | How does the code remove the commitpoints in the commitstodelete list ? | by decref ' ing all files from each segmentinfos | private void delete Commits ( ) { int size = commits To Delete . size ( ) ; if ( size > NUM ) { Throwable first Throwable = null ; for ( int i = NUM ; i < size ; i ++ ) { Commit Point commit = commits To Delete . get ( i ) ; if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING + commit .... | private void deleteCommits ( ) { int size = commitsToDelete . size ( ) ; if ( size > _NUM ) { Throwable firstThrowable = null ; for ( int i = _NUM ; i < size ; i ++ ) { CommitPoint commit = commitsToDelete . get ( i ) ; if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING + commit . getSegm... | 252 |
java-test-6339 | java | What does the code remove by decref ' ing all files from each segmentinfos ? | the commitpoints in the commitstodelete list | private void delete Commits ( ) { int size = commits To Delete . size ( ) ; if ( size > NUM ) { Throwable first Throwable = null ; for ( int i = NUM ; i < size ; i ++ ) { Commit Point commit = commits To Delete . get ( i ) ; if ( info Stream . is Enabled ( STRING ) ) { info Stream . message ( STRING , STRING + commit .... | private void deleteCommits ( ) { int size = commitsToDelete . size ( ) ; if ( size > _NUM ) { Throwable firstThrowable = null ; for ( int i = _NUM ; i < size ; i ++ ) { CommitPoint commit = commitsToDelete . get ( i ) ; if ( infoStream . isEnabled ( STRING ) ) { infoStream . message ( STRING , STRING + commit . getSegm... | 252 |
java-test-6341 | java | What does the code add ? | a line from vertex p1 | void add ( int p1 , int p2 ) { int i = ncon ; if ( p1 >= nvert || p2 >= nvert ) { return ; } if ( i >= maxcon ) { if ( con == null ) { maxcon = NUM ; con = new int [ maxcon ] ; } else { maxcon *= NUM ; int nv [ ] = new int [ maxcon ] ; System . arraycopy ( con , NUM , nv , NUM , con . length ) ; con = nv ; } } if ( p1 ... | void add ( int p1 , int p2 ) { int i = ncon ; if ( p1 >= nvert || p2 >= nvert ) { return ; } if ( i >= maxcon ) { if ( con == null ) { maxcon = _NUM ; con = new int [ maxcon ] ; } else { maxcon *= _NUM ; int nv [ ] = new int [ maxcon ] ; System . arraycopy ( con , _NUM , nv , _NUM , con . length ) ; con = nv ; } } if (... | 137 |
java-test-6342 | java | What does the code prepare ? | a printable string of each output line | private String line Printer ( List < Text Read > text Reads , boolean bs , boolean no Format , boolean with Read Name ) throws IO Exception { String Builder sb = new String Builder ( ) ; int cur Pos = NUM ; for ( Text Read tr : text Reads ) { sb . append ( String Utils . repeat ( STRING , ( tr . get Text Start ( ) - NU... | private String linePrinter ( List < TextRead > textReads , boolean bs , boolean noFormat , boolean withReadName ) throws IOException { StringBuilder sb = new StringBuilder ( ) ; int curPos = _NUM ; for ( TextRead tr : textReads ) { sb . append ( StringUtils . repeat ( STRING , ( tr . getTextStart ( ) - _NUM ) - curPos ... | 133 |
java-test-6343 | java | What does the code provide ? | some necessary initialization after object has been deserialized | private void read Object ( Object Input Stream ois ) throws IO Exception , Class Not Found Exception { try { ois . default Read Object ( ) ; init Plot ( ) ; } catch ( Exception ex ) { ex . print Stack Trace ( ) ; } } | private void readObject ( ObjectInputStream ois ) throws IOException , ClassNotFoundException { try { ois . defaultReadObject ( ) ; initPlot ( ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } | 51 |
java-test-6344 | java | What does the code write ? | an unsigned 16 bit big - endian number | public static byte [ ] write Unsigned Short ( int s ) { Byte Buffer bb = Byte Buffer . allocate ( NUM ) ; bb . put ( ( byte ) ( ( s > > NUM ) & NUM ) ) ; bb . put ( ( byte ) ( s & NUM ) ) ; return bb . array ( ) ; } | public static byte [ ] writeUnsignedShort ( int s ) { ByteBuffer bb = ByteBuffer . allocate ( _NUM ) ; bb . put ( ( byte ) ( ( s > > _NUM ) & _NUM ) ) ; bb . put ( ( byte ) ( s & _NUM ) ) ; return bb . array ( ) ; } | 66 |
java-test-6345 | java | What does the code create ? | a new class loader | public Dynamic Class Loader ( Class Loader parent , boolean enable Dependency Check , boolean is Root ) { super ( NULL URL ARRAY , get Init Parent ( parent , is Root ) ) ; parent = get Parent ( ) ; is Enable Dependency Check = enable Dependency Check ; dependencies . set Check Interval ( global Dependency Check Interva... | public DynamicClassLoader ( ClassLoader parent , boolean enableDependencyCheck , boolean isRoot ) { super ( NULL_URL_ARRAY , getInitParent ( parent , isRoot ) ) ; parent = getParent ( ) ; _isEnableDependencyCheck = enableDependencyCheck ; _dependencies . setCheckInterval ( _globalDependencyCheckInterval ) ; if ( ! Curr... | 223 |
java-test-6346 | java | What does the code normalize ? | the supplied application name | protected String normalize App Name ( String app ) { String app 2 = app . replace All ( STRING , STRING ) ; if ( app . length ( ) == NUM ) { throw new Illegal Argument Exception ( STRING + app ) ; } return app 2 ; } | protected String normalizeAppName ( String app ) { String app2 = app . replaceAll ( STRING , STRING ) ; if ( app . length ( ) == _NUM ) { throw new IllegalArgumentException ( STRING + app ) ; } return app2 ; } | 52 |
java-test-6347 | java | What do a rectangular box contain ? | the text " click to edit " | public void paint Value ( Graphics g , Rectangle box ) { Color old Color = g . get Color ( ) ; Font old Font = g . get Font ( ) ; g . set Color ( Color . blue ) ; g . set Font ( new Font ( old Font . get Font Name ( ) , Font . BOLD , old Font . get Size ( ) ) ) ; g . draw Rect ( box . x - NUM , box . y + NUM , box . wi... | public void paintValue ( Graphics g , Rectangle box ) { Color oldColor = g . getColor ( ) ; Font oldFont = g . getFont ( ) ; g . setColor ( Color . blue ) ; g . setFont ( new Font ( oldFont . getFontName ( ) , Font . BOLD , oldFont . getSize ( ) ) ) ; g . drawRect ( box . x - _NUM , box . y + _NUM , box . width - _NUM ... | 160 |
java-test-6348 | java | What does the code represent as a rectangular box containing the text " click to edit " ? | the face of the custom property editor | public void paint Value ( Graphics g , Rectangle box ) { Color old Color = g . get Color ( ) ; Font old Font = g . get Font ( ) ; g . set Color ( Color . blue ) ; g . set Font ( new Font ( old Font . get Font Name ( ) , Font . BOLD , old Font . get Size ( ) ) ) ; g . draw Rect ( box . x - NUM , box . y + NUM , box . wi... | public void paintValue ( Graphics g , Rectangle box ) { Color oldColor = g . getColor ( ) ; Font oldFont = g . getFont ( ) ; g . setColor ( Color . blue ) ; g . setFont ( new Font ( oldFont . getFontName ( ) , Font . BOLD , oldFont . getSize ( ) ) ) ; g . drawRect ( box . x - _NUM , box . y + _NUM , box . width - _NUM ... | 160 |
java-test-6349 | java | What is containing the text " click to edit " ? | a rectangular box | public void paint Value ( Graphics g , Rectangle box ) { Color old Color = g . get Color ( ) ; Font old Font = g . get Font ( ) ; g . set Color ( Color . blue ) ; g . set Font ( new Font ( old Font . get Font Name ( ) , Font . BOLD , old Font . get Size ( ) ) ) ; g . draw Rect ( box . x - NUM , box . y + NUM , box . wi... | public void paintValue ( Graphics g , Rectangle box ) { Color oldColor = g . getColor ( ) ; Font oldFont = g . getFont ( ) ; g . setColor ( Color . blue ) ; g . setFont ( new Font ( oldFont . getFontName ( ) , Font . BOLD , oldFont . getSize ( ) ) ) ; g . drawRect ( box . x - _NUM , box . y + _NUM , box . width - _NUM ... | 160 |
java-test-6350 | java | When do a charsequence repeat ? | a certain number of times | public static String multiply ( Char Sequence self , Number factor ) { int size = factor . int Value ( ) ; if ( size == NUM ) return STRING ; else if ( size < NUM ) { throw new Illegal Argument Exception ( STRING + size ) ; } String Builder answer = new String Builder ( self ) ; for ( int i = NUM ; i < size ; i ++ ) { ... | public static String multiply ( CharSequence self , Number factor ) { int size = factor . intValue ( ) ; if ( size == _NUM ) return STRING ; else if ( size < _NUM ) { throw new IllegalArgumentException ( STRING + size ) ; } StringBuilder answer = new StringBuilder ( self ) ; for ( int i = _NUM ; i < size ; i ++ ) { ans... | 95 |
java-test-6351 | java | What does the code create ? | a new folder with the default name " new folder " | public File create New Folder ( File containing Dir ) throws IO Exception { File result = new File ( containing Dir , STRING ) ; if ( result . exists ( ) ) { throw new IO Exception ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IO Exception ( STRING ) ; } return result ; } | public File createNewFolder ( File containingDir ) throws IOException { File result = new File ( containingDir , STRING ) ; if ( result . exists ( ) ) { throw new IOException ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IOException ( STRING ) ; } return result ; } | 67 |
java-test-6352 | java | What did the user press when ? | the " new folder " button | public File create New Folder ( File containing Dir ) throws IO Exception { File result = new File ( containing Dir , STRING ) ; if ( result . exists ( ) ) { throw new IO Exception ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IO Exception ( STRING ) ; } return result ; } | public File createNewFolder ( File containingDir ) throws IOException { File result = new File ( containingDir , STRING ) ; if ( result . exists ( ) ) { throw new IOException ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IOException ( STRING ) ; } return result ; } | 67 |
java-test-6353 | java | When is this method invoked ? | when the user presses the " new folder " button | public File create New Folder ( File containing Dir ) throws IO Exception { File result = new File ( containing Dir , STRING ) ; if ( result . exists ( ) ) { throw new IO Exception ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IO Exception ( STRING ) ; } return result ; } | public File createNewFolder ( File containingDir ) throws IOException { File result = new File ( containingDir , STRING ) ; if ( result . exists ( ) ) { throw new IOException ( STRING ) ; } if ( ! result . mkdir ( ) ) { throw new IOException ( STRING ) ; } return result ; } | 67 |
java-test-6354 | java | What does the code create ? | a period from the given millisecond duration , which is only really suitable for durations less than one day | protected Base Period ( long duration , Period Type type , Chronology chrono ) { super ( ) ; type = check Period Type ( type ) ; chrono = Date Time Utils . get Chronology ( chrono ) ; i Type = type ; i Values = chrono . get ( this , duration ) ; } | protected BasePeriod ( long duration , PeriodType type , Chronology chrono ) { super ( ) ; type = checkPeriodType ( type ) ; chrono = DateTimeUtils . getChronology ( chrono ) ; iType = type ; iValues = chrono . get ( this , duration ) ; } | 58 |
java-test-6355 | java | What may have a large value thus ? | the largest precise field | protected Base Period ( long duration , Period Type type , Chronology chrono ) { super ( ) ; type = check Period Type ( type ) ; chrono = Date Time Utils . get Chronology ( chrono ) ; i Type = type ; i Values = chrono . get ( this , duration ) ; } | protected BasePeriod ( long duration , PeriodType type , Chronology chrono ) { super ( ) ; type = checkPeriodType ( type ) ; chrono = DateTimeUtils . getChronology ( chrono ) ; iType = type ; iValues = chrono . get ( this , duration ) ; } | 58 |
java-test-6356 | java | What may the largest precise field have thus ? | a large value | protected Base Period ( long duration , Period Type type , Chronology chrono ) { super ( ) ; type = check Period Type ( type ) ; chrono = Date Time Utils . get Chronology ( chrono ) ; i Type = type ; i Values = chrono . get ( this , duration ) ; } | protected BasePeriod ( long duration , PeriodType type , Chronology chrono ) { super ( ) ; type = checkPeriodType ( type ) ; chrono = DateTimeUtils . getChronology ( chrono ) ; iType = type ; iValues = chrono . get ( this , duration ) ; } | 58 |
java-test-6357 | java | What does the code make ? | the phone ring | private boolean ring ( float volume ) { boolean res = BOOL ; if ( volume > NUM ) { clear Media Player ( ) ; init Media Player ( ) ; final Audio Manager audio Manager = ( Audio Manager ) s Context . get System Service ( Context . AUDIO SERVICE ) ; if ( m Can Ring && audio Manager . get Stream Volume ( Audio Manager . ST... | private boolean ring ( float volume ) { boolean res = _BOOL ; if ( volume > _NUM ) { clearMediaPlayer ( ) ; initMediaPlayer ( ) ; final AudioManager audioManager = ( AudioManager ) sContext . getSystemService ( Context . AUDIO_SERVICE ) ; if ( mCanRing && audioManager . getStreamVolume ( AudioManager . STREAM_ALARM ) !... | 184 |
java-test-6358 | java | What does this method generate ? | a string representation of a date / time in the format you specify on input | public static Date convert String To Date ( String a Mask , String str Date ) throws Parse Exception { Simple Date Format df ; Date date ; df = new Simple Date Format ( a Mask ) ; if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + str Date + STRING + a Mask + STRING ) ; } try { date = df . parse ( str Date ) ; ... | public static Date convertStringToDate ( String aMask , String strDate ) throws ParseException { SimpleDateFormat df ; Date date ; df = new SimpleDateFormat ( aMask ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + strDate + STRING + aMask + STRING ) ; } try { date = df . parse ( strDate ) ; } catch ( ParseE... | 116 |
java-test-6359 | java | Where do you specify the format ? | on input | public static Date convert String To Date ( String a Mask , String str Date ) throws Parse Exception { Simple Date Format df ; Date date ; df = new Simple Date Format ( a Mask ) ; if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + str Date + STRING + a Mask + STRING ) ; } try { date = df . parse ( str Date ) ; ... | public static Date convertStringToDate ( String aMask , String strDate ) throws ParseException { SimpleDateFormat df ; Date date ; df = new SimpleDateFormat ( aMask ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + strDate + STRING + aMask + STRING ) ; } try { date = df . parse ( strDate ) ; } catch ( ParseE... | 116 |
java-test-6365 | java | What does the code find ? | the intersection points between two planes , given a set of bounds | protected Geo Point [ ] find Intersections ( final Planet Model planet Model , final Plane q , final Membership [ ] bounds , final Membership [ ] more Bounds ) { final double line Vector X = y * q . z - z * q . y ; final double line Vector Y = z * q . x - x * q . z ; final double line Vector Z = x * q . y - y * q . x ;... | protected GeoPoint [ ] findIntersections ( final PlanetModel planetModel , final Plane q , final Membership [ ] bounds , final Membership [ ] moreBounds ) { final double lineVectorX = y * q . z - z * q . y ; final double lineVectorY = z * q . x - x * q . z ; final double lineVectorZ = x * q . y - y * q . x ; if ( Math ... | 1,320 |
java-test-6368 | java | What does the code validate ? | the mactag received from the partner participant | public static void validate Mac Tag ( String participant Id , String partner Participant Id , Big Integer gx 1 , Big Integer gx 2 , Big Integer gx 3 , Big Integer gx 4 , Big Integer keying Material , Digest digest , Big Integer partner Mac Tag ) throws Crypto Exception { Big Integer expected Mac Tag = calculate Mac Tag... | public static void validateMacTag ( String participantId , String partnerParticipantId , BigInteger gx1 , BigInteger gx2 , BigInteger gx3 , BigInteger gx4 , BigInteger keyingMaterial , Digest digest , BigInteger partnerMacTag ) throws CryptoException { BigInteger expectedMacTag = calculateMacTag ( partnerParticipantId ... | 116 |
java-test-6372 | java | What rings the bell ? | the preceding text | private void delete Previous Character ( ) { if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { cancel Composition ( ) ; } else { beep ( ) ; } } else if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { if ( format == SURROGATE PAIR ) { buffer . delete Char At ( -- insertion Point ) ; } ... | private void deletePreviousCharacter ( ) { if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { cancelComposition ( ) ; } else { beep ( ) ; } } else if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { if ( format == SURROGATE_PAIR ) { buffer . deleteCharAt ( -- insertionPoint ) ; } buff... | 149 |
java-test-6373 | java | What do the character precede ? | the insertion point in the composed text | private void delete Previous Character ( ) { if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { cancel Composition ( ) ; } else { beep ( ) ; } } else if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { if ( format == SURROGATE PAIR ) { buffer . delete Char At ( -- insertion Point ) ; } ... | private void deletePreviousCharacter ( ) { if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { cancelComposition ( ) ; } else { beep ( ) ; } } else if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { if ( format == SURROGATE_PAIR ) { buffer . deleteCharAt ( -- insertionPoint ) ; } buff... | 149 |
java-test-6374 | java | What is the code delete if the insertion point is not at the end of the composed text and the preceding text is " \ \ u " or " \ ? | the character preceding the insertion point in the composed text | private void delete Previous Character ( ) { if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { cancel Composition ( ) ; } else { beep ( ) ; } } else if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { if ( format == SURROGATE PAIR ) { buffer . delete Char At ( -- insertion Point ) ; } ... | private void deletePreviousCharacter ( ) { if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { cancelComposition ( ) ; } else { beep ( ) ; } } else if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { if ( format == SURROGATE_PAIR ) { buffer . deleteCharAt ( -- insertionPoint ) ; } buff... | 149 |
java-test-6375 | java | What do the preceding text ring ? | the bell | private void delete Previous Character ( ) { if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { cancel Composition ( ) ; } else { beep ( ) ; } } else if ( insertion Point == NUM ) { if ( buffer . length ( ) == NUM ) { if ( format == SURROGATE PAIR ) { buffer . delete Char At ( -- insertion Point ) ; } ... | private void deletePreviousCharacter ( ) { if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { cancelComposition ( ) ; } else { beep ( ) ; } } else if ( insertionPoint == _NUM ) { if ( buffer . length ( ) == _NUM ) { if ( format == SURROGATE_PAIR ) { buffer . deleteCharAt ( -- insertionPoint ) ; } buff... | 149 |
java-test-6376 | java | When does the code clean the session ? | at the end of the slo process | private void clean Session ( final Session session ) { logger . debug ( STRING ) ; session . remove ( subject Mapping ) ; session . remove ( session Index Mapping ) ; session . remove ( authn Context ) ; if ( attribute Mapping != null ) { for ( final String key : attribute Mapping . key Set ( ) ) { session . remove ( k... | private void cleanSession ( final Session session ) { logger . debug ( STRING ) ; session . remove ( subjectMapping ) ; session . remove ( sessionIndexMapping ) ; session . remove ( authnContext ) ; if ( attributeMapping != null ) { for ( final String key : attributeMapping . keySet ( ) ) { session . remove ( key ) ; }... | 75 |
java-test-6377 | java | What does it prune based on bucketpruninginteration ^ 2 * 32 once a pruning start position is established ? | chunks of the bucket list | private List < Long > prune Bucket ( List < Long > bucket List , double prune Factor ) { int prune Start Index = NUM ; int start Size = bucket List . size ( ) ; int i = NUM ; while ( prune Start Index < bucket List . size ( ) ) { if ( i == NUM ) { prune Start Index = ( int ) ( start Size * prune Factor ) + prune Start ... | private List < Long > pruneBucket ( List < Long > bucketList , double pruneFactor ) { int pruneStartIndex = _NUM ; int startSize = bucketList . size ( ) ; int i = _NUM ; while ( pruneStartIndex < bucketList . size ( ) ) { if ( i == _NUM ) { pruneStartIndex = ( int ) ( startSize * pruneFactor ) + pruneStartIndex ; } i +... | 314 |
java-test-6378 | java | What ^ 2 * 32 ? | bucketpruninginteration | private List < Long > prune Bucket ( List < Long > bucket List , double prune Factor ) { int prune Start Index = NUM ; int start Size = bucket List . size ( ) ; int i = NUM ; while ( prune Start Index < bucket List . size ( ) ) { if ( i == NUM ) { prune Start Index = ( int ) ( start Size * prune Factor ) + prune Start ... | private List < Long > pruneBucket ( List < Long > bucketList , double pruneFactor ) { int pruneStartIndex = _NUM ; int startSize = bucketList . size ( ) ; int i = _NUM ; while ( pruneStartIndex < bucketList . size ( ) ) { if ( i == _NUM ) { pruneStartIndex = ( int ) ( startSize * pruneFactor ) + pruneStartIndex ; } i +... | 314 |
java-test-6379 | java | How does it prune chunks of the bucket list once a pruning start position is established ? | based on bucketpruninginteration ^ 2 * 32 | private List < Long > prune Bucket ( List < Long > bucket List , double prune Factor ) { int prune Start Index = NUM ; int start Size = bucket List . size ( ) ; int i = NUM ; while ( prune Start Index < bucket List . size ( ) ) { if ( i == NUM ) { prune Start Index = ( int ) ( start Size * prune Factor ) + prune Start ... | private List < Long > pruneBucket ( List < Long > bucketList , double pruneFactor ) { int pruneStartIndex = _NUM ; int startSize = bucketList . size ( ) ; int i = _NUM ; while ( pruneStartIndex < bucketList . size ( ) ) { if ( i == _NUM ) { pruneStartIndex = ( int ) ( startSize * pruneFactor ) + pruneStartIndex ; } i +... | 314 |
java-test-6380 | java | When does it prune chunks of the bucket list based on bucketpruninginteration ^ 2 * 32 ? | once a pruning start position is established | private List < Long > prune Bucket ( List < Long > bucket List , double prune Factor ) { int prune Start Index = NUM ; int start Size = bucket List . size ( ) ; int i = NUM ; while ( prune Start Index < bucket List . size ( ) ) { if ( i == NUM ) { prune Start Index = ( int ) ( start Size * prune Factor ) + prune Start ... | private List < Long > pruneBucket ( List < Long > bucketList , double pruneFactor ) { int pruneStartIndex = _NUM ; int startSize = bucketList . size ( ) ; int i = _NUM ; while ( pruneStartIndex < bucketList . size ( ) ) { if ( i == _NUM ) { pruneStartIndex = ( int ) ( startSize * pruneFactor ) + pruneStartIndex ; } i +... | 314 |
java-test-6381 | java | What do bucketpruninginteration ^ ? | 2 * 32 | private List < Long > prune Bucket ( List < Long > bucket List , double prune Factor ) { int prune Start Index = NUM ; int start Size = bucket List . size ( ) ; int i = NUM ; while ( prune Start Index < bucket List . size ( ) ) { if ( i == NUM ) { prune Start Index = ( int ) ( start Size * prune Factor ) + prune Start ... | private List < Long > pruneBucket ( List < Long > bucketList , double pruneFactor ) { int pruneStartIndex = _NUM ; int startSize = bucketList . size ( ) ; int i = _NUM ; while ( pruneStartIndex < bucketList . size ( ) ) { if ( i == _NUM ) { pruneStartIndex = ( int ) ( startSize * pruneFactor ) + pruneStartIndex ; } i +... | 314 |
java-test-6382 | java | Where does the index return searching forward searching forward ? | within this character sequence of the first occurrence of the specified characters sequence | public final int index Of ( java . lang . Char Sequence csq , int from Index ) { if ( ( offset + from Index + csq . length ( ) - NUM ) >= ( offset + length ) ) throw new Index Out Of Bounds Exception ( String . format ( STRING , from Index ) ) ; final char c = csq . char At ( NUM ) ; final int csq Length = csq . length... | public final int indexOf ( java . lang . CharSequence csq , int fromIndex ) { if ( ( _offset + fromIndex + csq . length ( ) - _NUM ) >= ( _offset + _length ) ) throw new IndexOutOfBoundsException ( String . format ( STRING , fromIndex ) ) ; final char c = csq . charAt ( _NUM ) ; final int csqLength = csq . length ( ) ;... | 188 |
java-test-6383 | java | In which direction is a normalized plane construct ? | through an x - z point and parallel to the y axis | public static Plane construct Normalized Y Plane ( final double x , final double z , final double D Value ) { if ( Math . abs ( x ) < MINIMUM RESOLUTION && Math . abs ( z ) < MINIMUM RESOLUTION ) return null ; final double denom = NUM / Math . sqrt ( x * x + z * z ) ; return new Plane ( z * denom , NUM , - x * denom , ... | public static Plane constructNormalizedYPlane ( final double x , final double z , final double DValue ) { if ( Math . abs ( x ) < MINIMUM_RESOLUTION && Math . abs ( z ) < MINIMUM_RESOLUTION ) return null ; final double denom = _NUM / Math . sqrt ( x * x + z * z ) ; return new Plane ( z * denom , _NUM , - x * denom , DV... | 86 |
java-test-6384 | java | What does the code add ? | the needed stats | private void qb Interception ( Team offense ) { if ( game Poss ) { Home QB Stats [ NUM ] ++ ; Home QB Stats [ NUM ] ++ ; home T Os ++ ; } else { Away QB Stats [ NUM ] ++ ; Away QB Stats [ NUM ] ++ ; away T Os ++ ; } game Event Log += get Event Prefix ( ) + STRING + offense . abbr + STRING + offense . get QB ( NUM ) . n... | private void qbInterception ( Team offense ) { if ( gamePoss ) { HomeQBStats [ _NUM ] ++ ; HomeQBStats [ _NUM ] ++ ; homeTOs ++ ; } else { AwayQBStats [ _NUM ] ++ ; AwayQBStats [ _NUM ] ++ ; awayTOs ++ ; } gameEventLog += getEventPrefix ( ) + STRING + offense . abbr + STRING + offense . getQB ( _NUM ) . name + STRING ;... | 158 |
java-test-6385 | java | What does the code perform ? | an interception on the offense ' s | private void qb Interception ( Team offense ) { if ( game Poss ) { Home QB Stats [ NUM ] ++ ; Home QB Stats [ NUM ] ++ ; home T Os ++ ; } else { Away QB Stats [ NUM ] ++ ; Away QB Stats [ NUM ] ++ ; away T Os ++ ; } game Event Log += get Event Prefix ( ) + STRING + offense . abbr + STRING + offense . get QB ( NUM ) . n... | private void qbInterception ( Team offense ) { if ( gamePoss ) { HomeQBStats [ _NUM ] ++ ; HomeQBStats [ _NUM ] ++ ; homeTOs ++ ; } else { AwayQBStats [ _NUM ] ++ ; AwayQBStats [ _NUM ] ++ ; awayTOs ++ ; } gameEventLog += getEventPrefix ( ) + STRING + offense . abbr + STRING + offense . getQB ( _NUM ) . name + STRING ;... | 158 |
java-test-6386 | java | What does the code parse ? | the 4 - character time representation | private static double parse Time ( String s ) throws Number Format Exception { if ( s . length ( ) > NUM ) throw new Number Format Exception ( STRING + s + STRING ) ; double result = NUM ; char [ ] c = s . to Char Array ( ) ; char [ ] x = new char [ ] { STRING , STRING , STRING , STRING } ; for ( int i = NUM ; i < c . ... | private static double parseTime ( String s ) throws NumberFormatException { if ( s . length ( ) > _NUM ) throw new NumberFormatException ( STRING + s + STRING ) ; double result = _NUM ; char [ ] c = s . toCharArray ( ) ; char [ ] x = new char [ ] { STRING , STRING , STRING , STRING } ; for ( int i = _NUM ; i < c . leng... | 205 |
java-test-6387 | java | What does the code create from a title so that leading " the " s and " a " s can be removed ? | a sortable string | @ Non Null protected static String sortable Title ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . to Lower Case ( ) ; if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else... | @ NonNull protected static String sortableTitle ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . toLowerCase ( ) ; if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else { r... | 84 |
java-test-6388 | java | For what purpose does the code create a sortable string from a title ? | so that leading " the " s and " a " s can be removed | @ Non Null protected static String sortable Title ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . to Lower Case ( ) ; if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else... | @ NonNull protected static String sortableTitle ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . toLowerCase ( ) ; if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else { r... | 84 |
java-test-6389 | java | What will this method strip also ? | the title ' s original case | @ Non Null protected static String sortable Title ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . to Lower Case ( ) ; if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else if ( title . starts With ( STRING ) ) { return title . substring ( NUM ) ; } else... | @ NonNull protected static String sortableTitle ( @ Nullable String title ) { if ( title == null ) { return STRING ; } title = title . toLowerCase ( ) ; if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else if ( title . startsWith ( STRING ) ) { return title . substring ( _NUM ) ; } else { r... | 84 |
java-test-6390 | java | When will the copied data be freed ? | when the that is finalized | void copy Private Data Into ( AWT Event that ) { that . bdata = this . bdata ; if ( this instanceof Input Event && that instanceof Input Event ) { Field field = get Input Event Can Access System Clipboard ( ) ; if ( field != null ) { try { boolean b = field . get Boolean ( this ) ; field . set Boolean ( that , b ) ; } ... | void copyPrivateDataInto ( AWTEvent that ) { that . bdata = this . bdata ; if ( this instanceof InputEvent && that instanceof InputEvent ) { Field field = get_InputEvent_CanAccessSystemClipboard ( ) ; if ( field != null ) { try { boolean b = field . getBoolean ( this ) ; field . setBoolean ( that , b ) ; } catch ( Ille... | 126 |
java-test-6391 | java | What applies the compression algorithm to the data ? | test helper | protected int do Compression Test ( final I Record Compressor c , final byte [ ] expected , final int off , final int len ) { final Byte Array Output Stream baos = new Byte Array Output Stream ( expected . length ) ; { final Byte Buffer wrapper = Byte Buffer . wrap ( expected , off , len ) ; assert Equals ( off + len ,... | protected int doCompressionTest ( final IRecordCompressor c , final byte [ ] expected , final int off , final int len ) { final ByteArrayOutputStream baos = new ByteArrayOutputStream ( expected . length ) ; { final ByteBuffer wrapper = ByteBuffer . wrap ( expected , off , len ) ; assertEquals ( off + len , wrapper . li... | 280 |
java-test-6392 | java | How can the expected data be recovered ? | by applying the decompression algorithm | protected int do Compression Test ( final I Record Compressor c , final byte [ ] expected , final int off , final int len ) { final Byte Array Output Stream baos = new Byte Array Output Stream ( expected . length ) ; { final Byte Buffer wrapper = Byte Buffer . wrap ( expected , off , len ) ; assert Equals ( off + len ,... | protected int doCompressionTest ( final IRecordCompressor c , final byte [ ] expected , final int off , final int len ) { final ByteArrayOutputStream baos = new ByteArrayOutputStream ( expected . length ) ; { final ByteBuffer wrapper = ByteBuffer . wrap ( expected , off , len ) ; assertEquals ( off + len , wrapper . li... | 280 |
java-test-6393 | java | What does test helper apply to the data ? | the compression algorithm | protected int do Compression Test ( final I Record Compressor c , final byte [ ] expected , final int off , final int len ) { final Byte Array Output Stream baos = new Byte Array Output Stream ( expected . length ) ; { final Byte Buffer wrapper = Byte Buffer . wrap ( expected , off , len ) ; assert Equals ( off + len ,... | protected int doCompressionTest ( final IRecordCompressor c , final byte [ ] expected , final int off , final int len ) { final ByteArrayOutputStream baos = new ByteArrayOutputStream ( expected . length ) ; { final ByteBuffer wrapper = ByteBuffer . wrap ( expected , off , len ) ; assertEquals ( off + len , wrapper . li... | 280 |
java-test-6394 | java | What did a bound have ? | another type parameter | private List < Reference Type > select Candidates ( Type Variable argument ) { Parameter Bound lower Bound = select Lower Bound ( argument ) ; Parameter Bound upper Bound = select Upper Bound ( argument ) ; List < Type Variable > type Variable List = new Array List < > ( ) ; type Variable List . add ( argument ) ; List... | private List < ReferenceType > selectCandidates ( TypeVariable argument ) { ParameterBound lowerBound = selectLowerBound ( argument ) ; ParameterBound upperBound = selectUpperBound ( argument ) ; List < TypeVariable > typeVariableList = new ArrayList < > ( ) ; typeVariableList . add ( argument ) ; List < ReferenceType ... | 185 |
java-test-6395 | java | What does all input types satisfy potentially ? | the bounds on the argument | private List < Reference Type > select Candidates ( Type Variable argument ) { Parameter Bound lower Bound = select Lower Bound ( argument ) ; Parameter Bound upper Bound = select Upper Bound ( argument ) ; List < Type Variable > type Variable List = new Array List < > ( ) ; type Variable List . add ( argument ) ; List... | private List < ReferenceType > selectCandidates ( TypeVariable argument ) { ParameterBound lowerBound = selectLowerBound ( argument ) ; ParameterBound upperBound = selectUpperBound ( argument ) ; List < TypeVariable > typeVariableList = new ArrayList < > ( ) ; typeVariableList . add ( argument ) ; List < ReferenceType ... | 185 |
java-test-6396 | java | What satisfies the bounds on the argument potentially ? | all input types | private List < Reference Type > select Candidates ( Type Variable argument ) { Parameter Bound lower Bound = select Lower Bound ( argument ) ; Parameter Bound upper Bound = select Upper Bound ( argument ) ; List < Type Variable > type Variable List = new Array List < > ( ) ; type Variable List . add ( argument ) ; List... | private List < ReferenceType > selectCandidates ( TypeVariable argument ) { ParameterBound lowerBound = selectLowerBound ( argument ) ; ParameterBound upperBound = selectUpperBound ( argument ) ; List < TypeVariable > typeVariableList = new ArrayList < > ( ) ; typeVariableList . add ( argument ) ; List < ReferenceType ... | 185 |
java-test-6397 | java | What has another type parameter ? | a bound | private List < Reference Type > select Candidates ( Type Variable argument ) { Parameter Bound lower Bound = select Lower Bound ( argument ) ; Parameter Bound upper Bound = select Upper Bound ( argument ) ; List < Type Variable > type Variable List = new Array List < > ( ) ; type Variable List . add ( argument ) ; List... | private List < ReferenceType > selectCandidates ( TypeVariable argument ) { ParameterBound lowerBound = selectLowerBound ( argument ) ; ParameterBound upperBound = selectUpperBound ( argument ) ; List < TypeVariable > typeVariableList = new ArrayList < > ( ) ; typeVariableList . add ( argument ) ; List < ReferenceType ... | 185 |
java-test-6398 | java | Where do it store ? | in the data layer | public void calculate Danger Level ( ) { int max Level = NUM ; int level Sum = NUM ; for ( Creature Respawn Point spawner : respawn Points ) { Creature creature = spawner . get Prototype Creature ( ) ; if ( creature . is Rare ( ) ) { continue ; } int level = creature . get Level ( ) + NUM ; if ( level > NUM ) { continu... | public void calculateDangerLevel ( ) { int maxLevel = _NUM ; int levelSum = _NUM ; for ( CreatureRespawnPoint spawner : respawnPoints ) { Creature creature = spawner . getPrototypeCreature ( ) ; if ( creature . isRare ( ) ) { continue ; } int level = creature . getLevel ( ) + _NUM ; if ( level > _NUM ) { continue ; } m... | 186 |
java-test-6400 | java | How does this method build an xslt " schema " ? | according to http : / / www . w3 . org / tr | void build ( ) { XSLT Attribute Def href Attr = new XSLT Attribute Def ( null , STRING , XSLT Attribute Def . T URL , BOOL , BOOL , XSLT Attribute Def . ERROR ) ; XSLT Attribute Def elements Attr = new XSLT Attribute Def ( null , STRING , XSLT Attribute Def . T SIMPLEPATTERNLIST , BOOL , BOOL , XSLT Attribute Def . ERR... | void build ( ) { XSLTAttributeDef hrefAttr = new XSLTAttributeDef ( null , STRING , XSLTAttributeDef . T_URL , _BOOL , _BOOL , XSLTAttributeDef . ERROR ) ; XSLTAttributeDef elementsAttr = new XSLTAttributeDef ( null , STRING , XSLTAttributeDef . T_SIMPLEPATTERNLIST , _BOOL , _BOOL , XSLTAttributeDef . ERROR ) ; XSLTAtt... | 5,956 |
java-test-6403 | java | What does the code calculate for a linear - out - faster - in path interpolator depending on the velocity ? | the y2 control point | private float calculate Linear Out Faster In Y 2 ( float velocity ) { float t = ( velocity - m Min Velocity Px Per Second ) / ( m High Velocity Px Per Second - m Min Velocity Px Per Second ) ; t = Math . max ( NUM , Math . min ( NUM , t ) ) ; return ( NUM - t ) * LINEAR OUT FASTER IN Y2 MIN + t * LINEAR OUT FASTER IN Y... | private float calculateLinearOutFasterInY2 ( float velocity ) { float t = ( velocity - mMinVelocityPxPerSecond ) / ( mHighVelocityPxPerSecond - mMinVelocityPxPerSecond ) ; t = Math . max ( _NUM , Math . min ( _NUM , t ) ) ; return ( _NUM - t ) * LINEAR_OUT_FASTER_IN_Y2_MIN + t * LINEAR_OUT_FASTER_IN_Y2_MAX ; } | 86 |
java-test-6404 | java | What does the method update with the correct layer status representation ? | the statuslight display | public void reset ( ) { remove All ( ) ; if ( container != null ) { container . remove All ( ) ; } if ( light Triggers ) { if ( container == null ) { container = new J Panel ( ) ; container . set Layout ( new Flow Layout ( Flow Layout . LEFT , NUM , NUM ) ) ; } add ( container ) ; } else { container = null ; } if ( lay... | public void reset ( ) { removeAll ( ) ; if ( container != null ) { container . removeAll ( ) ; } if ( lightTriggers ) { if ( container == null ) { container = new JPanel ( ) ; container . setLayout ( new FlowLayout ( FlowLayout . LEFT , _NUM , _NUM ) ) ; } add ( container ) ; } else { container = null ; } if ( layers !... | 158 |
java-test-6405 | java | How does the method update the statuslight display ? | with the correct layer status representation | public void reset ( ) { remove All ( ) ; if ( container != null ) { container . remove All ( ) ; } if ( light Triggers ) { if ( container == null ) { container = new J Panel ( ) ; container . set Layout ( new Flow Layout ( Flow Layout . LEFT , NUM , NUM ) ) ; } add ( container ) ; } else { container = null ; } if ( lay... | public void reset ( ) { removeAll ( ) ; if ( container != null ) { container . removeAll ( ) ; } if ( lightTriggers ) { if ( container == null ) { container = new JPanel ( ) ; container . setLayout ( new FlowLayout ( FlowLayout . LEFT , _NUM , _NUM ) ) ; } add ( container ) ; } else { container = null ; } if ( layers !... | 158 |
java-test-6407 | java | What does this method create returning the number of stepinstances created ? | the required step instances for the specified job and set of parameters | protected int create Step Instances For Job ( String job Id , Map < String , String > parameters ) { int step Instances Created Count = NUM ; Job job = jobs . get Job By Id ( job Id ) ; final Map < Step , List < Step Instance > > step To Step Instances = new Hash Map < > ( ) ; for ( Step step : job . get Steps ( ) ) { ... | protected int createStepInstancesForJob ( String jobId , Map < String , String > parameters ) { int stepInstancesCreatedCount = _NUM ; Job job = jobs . getJobById ( jobId ) ; final Map < Step , List < StepInstance > > stepToStepInstances = new HashMap < > ( ) ; for ( Step step : job . getSteps ( ) ) { stepInstancesCrea... | 191 |
java-test-6413 | java | What is this method used ? | to create document object to upload the files | private Document create Document ( final Input Stream input Stream , final Form Data Content Disposition form Data Content Disposition ) { final Document document = new Document ( ) ; final List < File > files = new Array List < File > ( NUM ) ; final List < String > content Types = new Array List < String > ( NUM ) ; ... | private Document createDocument ( final InputStream inputStream , final FormDataContentDisposition formDataContentDisposition ) { final Document document = new Document ( ) ; final List < File > files = new ArrayList < File > ( _NUM ) ; final List < String > contentTypes = new ArrayList < String > ( _NUM ) ; final List... | 215 |
java-test-6418 | java | For what purpose do obj ref appended need ? | so we can decrypt string later | private static void extract Ref From End ( byte [ ] raw , final Pdf Object pdf Object , Pdf File Reader object Reader ) { String object Ref ; int ptr = NUM ; final int len = raw . length ; for ( int jj = NUM ; jj < len ; jj ++ ) { if ( raw [ jj ] >= STRING && raw [ jj ] <= STRING ) { ptr = jj ; jj = len ; } } int end =... | private static void extractRefFromEnd ( byte [ ] raw , final PdfObject pdfObject , PdfFileReader objectReader ) { String objectRef ; int ptr = _NUM ; final int len = raw . length ; for ( int jj = _NUM ; jj < len ; jj ++ ) { if ( raw [ jj ] >= STRING && raw [ jj ] <= STRING ) { ptr = jj ; jj = len ; } } int end = ptr ; ... | 274 |
java-test-6419 | java | What does the code create ? | a delete operation | private void delete ( final Diff Block cur A ) { Diff Part action = new Diff Part ( Diff Action . DELETE ) ; action . set Start ( version . length ( ) ) ; codec Data . check Blocksize S ( version . length ( ) ) ; action . set Length ( cur A . get Rev A End ( ) - cur A . get Rev A Start ( ) ) ; codec Data . check Blocks... | private void delete ( final DiffBlock curA ) { DiffPart action = new DiffPart ( DiffAction . DELETE ) ; action . setStart ( version . length ( ) ) ; codecData . checkBlocksizeS ( version . length ( ) ) ; action . setLength ( curA . getRevAEnd ( ) - curA . getRevAStart ( ) ) ; codecData . checkBlocksizeE ( action . getL... | 100 |
java-test-6420 | java | What does the code determine ? | the column definitions for the supplied result set | public static void columns For ( Result Set result Set , Consumer < Column > consumer ) throws SQL Exception { Result Set Meta Data metadata = result Set . get Meta Data ( ) ; Column Editor column = Column . editor ( ) ; for ( int position = NUM ; position <= metadata . get Column Count ( ) ; ++ position ) { String col... | public static void columnsFor ( ResultSet resultSet , Consumer < Column > consumer ) throws SQLException { ResultSetMetaData metadata = resultSet . getMetaData ( ) ; ColumnEditor column = Column . editor ( ) ; for ( int position = _NUM ; position <= metadata . getColumnCount ( ) ; ++ position ) { String columnLabel = m... | 210 |
java-test-6421 | java | How does the code start the apisvc ? | by simulating a call to com . emc . storageos . volumecontroller . impl . main main ( ) just as if the apisvc script had done so | protected void start Apisvc ( ) { if ( ! started ) { started = BOOL ; Properties sys Props = System . get Properties ( ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Pro... | protected void startApisvc ( ) { if ( ! started ) { started = _BOOL ; Properties sysProps = System . getProperties ( ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put... | 191 |
java-test-6422 | java | How do a call simulate to com . emc . storageos ? | just as if the apisvc script had done so | protected void start Apisvc ( ) { if ( ! started ) { started = BOOL ; Properties sys Props = System . get Properties ( ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Props . put ( STRING , STRING ) ; sys Pro... | protected void startApisvc ( ) { if ( ! started ) { started = _BOOL ; Properties sysProps = System . getProperties ( ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put ( STRING , STRING ) ; sysProps . put... | 191 |
java-test-6423 | java | When does large files in reasonably sized chunks send to the backup ? | during replication synchronization | private void send Large File ( Abstract Journal Storage Manager . Journal Content content , Simple String page Store , final long id , Sequential File file , long max Bytes To Send ) throws Exception { if ( ! enabled ) return ; if ( ! file . is Open ( ) ) { file . open ( ) ; } try { try ( final File Input Stream fis = ... | private void sendLargeFile ( AbstractJournalStorageManager . JournalContent content , SimpleString pageStore , final long id , SequentialFile file , long maxBytesToSend ) throws Exception { if ( ! enabled ) return ; if ( ! file . isOpen ( ) ) { file . open ( ) ; } try { try ( final FileInputStream fis = new FileInputSt... | 281 |
java-test-6424 | java | How does the code add the activity parent chain ? | as specified by manifest & lt | public Task Stack Builder add Parent Stack ( Component Name source Activity Name ) { final int insert At = m Intents . size ( ) ; try { Intent parent = Nav Utils . get Parent Activity Intent ( m Source Context , source Activity Name ) ; while ( parent != null ) { m Intents . add ( insert At , parent ) ; parent = Nav Ut... | public TaskStackBuilder addParentStack ( ComponentName sourceActivityName ) { final int insertAt = mIntents . size ( ) ; try { Intent parent = NavUtils . getParentActivityIntent ( mSourceContext , sourceActivityName ) ; while ( parent != null ) { mIntents . add ( insertAt , parent ) ; parent = NavUtils . getParentActiv... | 123 |
java-test-6425 | java | What does the code add as specified by manifest & lt ? | the activity parent chain | public Task Stack Builder add Parent Stack ( Component Name source Activity Name ) { final int insert At = m Intents . size ( ) ; try { Intent parent = Nav Utils . get Parent Activity Intent ( m Source Context , source Activity Name ) ; while ( parent != null ) { m Intents . add ( insert At , parent ) ; parent = Nav Ut... | public TaskStackBuilder addParentStack ( ComponentName sourceActivityName ) { final int insertAt = mIntents . size ( ) ; try { Intent parent = NavUtils . getParentActivityIntent ( mSourceContext , sourceActivityName ) ; while ( parent != null ) { mIntents . add ( insertAt , parent ) ; parent = NavUtils . getParentActiv... | 123 |
java-test-6426 | java | How does the code serialize an object ? | using a typeserializer | public static < IN > byte [ ] serialize ( IN object , Type Serializer < IN > serializer ) throws IO Exception { Byte Array Output Stream baos = new Byte Array Output Stream ( ) ; Data Output View Stream Wrapper wrapper = new Data Output View Stream Wrapper ( new Data Output Stream ( baos ) ) ; serializer . serialize ( ... | public static < IN > byte [ ] serialize ( IN object , TypeSerializer < IN > serializer ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; DataOutputViewStreamWrapper wrapper = new DataOutputViewStreamWrapper ( new DataOutputStream ( baos ) ) ; serializer . serialize ( object , wrapper )... | 80 |
java-test-6427 | java | How does the code deserializ a workspace component ? | using the information from the provided component and input stream | @ Suppress Warnings ( STRING ) Workspace Component deserialize Workspace Component ( final Archive Contents . Archived Component archived Component , final Input Stream input ) { try { Class < Workspace Component > clazz = ( Class < Workspace Component > ) Class . for Name ( archived Component . get Class Name ( ) ) ; ... | @ SuppressWarnings ( STRING ) WorkspaceComponent deserializeWorkspaceComponent ( final ArchiveContents . ArchivedComponent archivedComponent , final InputStream input ) { try { Class < WorkspaceComponent > clazz = ( Class < WorkspaceComponent > ) Class . forName ( archivedComponent . getClassName ( ) ) ; WorkspaceCompo... | 131 |
java-test-6428 | java | What do a workspace component use ? | the information from the provided component and input stream | @ Suppress Warnings ( STRING ) Workspace Component deserialize Workspace Component ( final Archive Contents . Archived Component archived Component , final Input Stream input ) { try { Class < Workspace Component > clazz = ( Class < Workspace Component > ) Class . for Name ( archived Component . get Class Name ( ) ) ; ... | @ SuppressWarnings ( STRING ) WorkspaceComponent deserializeWorkspaceComponent ( final ArchiveContents . ArchivedComponent archivedComponent , final InputStream input ) { try { Class < WorkspaceComponent > clazz = ( Class < WorkspaceComponent > ) Class . forName ( archivedComponent . getClassName ( ) ) ; WorkspaceCompo... | 131 |
java-test-6430 | java | What should we push the next time ? | widget updates | private long calculate Update Time ( Calendar App Widget Model model , long now , String time Zone ) { long min Update Time = get Next Midnight Time Millis ( time Zone ) ; for ( Event Info event : model . m Event Infos ) { final long start ; final long end ; start = event . start ; end = event . end ; if ( now < start ... | private long calculateUpdateTime ( CalendarAppWidgetModel model , long now , String timeZone ) { long minUpdateTime = getNextMidnightTimeMillis ( timeZone ) ; for ( EventInfo event : model . mEventInfos ) { final long start ; final long end ; start = event . start ; end = event . end ; if ( now < start ) { minUpdateTim... | 122 |
java-test-6431 | java | How do javacommand kill ? | by kill - 9 | static void force Kill ( String command UID ) { if ( ! Executor Utils . is Unix OS ( ) ) return ; Async Command Result kill Res = null ; try { File bin Dir = new File ( STRING ) ; if ( ! bin Dir . exists ( ) ) return ; final String pkill Script = bin Dir . get Path ( ) + File . separator + Executor Contstants . KILL TE... | static void forceKill ( String commandUID ) { if ( ! ExecutorUtils . isUnixOS ( ) ) return ; AsyncCommandResult killRes = null ; try { File binDir = new File ( STRING ) ; if ( ! binDir . exists ( ) ) return ; final String pkillScript = binDir . getPath ( ) + File . separator + ExecutorContstants . KILL_TEST_SCRIPT ; Si... | 151 |
java-test-6432 | java | What does convenience parsing method handle ? | the unassigned condition | protected Integer parse Number ( String number , Integer empty Value , Integer invalid Value ) { if ( String Utils . is Empty ( number ) ) { return empty Value ; } try { return Integer . parse Int ( number ) ; } catch ( Number Format Exception e ) { return invalid Value ; } } | protected Integer parseNumber ( String number , Integer emptyValue , Integer invalidValue ) { if ( StringUtils . isEmpty ( number ) ) { return emptyValue ; } try { return Integer . parseInt ( number ) ; } catch ( NumberFormatException e ) { return invalidValue ; } } | 60 |
java-test-6433 | java | What handles the unassigned condition ? | convenience parsing method | protected Integer parse Number ( String number , Integer empty Value , Integer invalid Value ) { if ( String Utils . is Empty ( number ) ) { return empty Value ; } try { return Integer . parse Int ( number ) ; } catch ( Number Format Exception e ) { return invalid Value ; } } | protected Integer parseNumber ( String number , Integer emptyValue , Integer invalidValue ) { if ( StringUtils . isEmpty ( number ) ) { return emptyValue ; } try { return Integer . parseInt ( number ) ; } catch ( NumberFormatException e ) { return invalidValue ; } } | 60 |
java-test-6434 | java | What needs to be populated separately for update ? | the final objectid | int populate Prep Statement Columns ( Prepared Statement prep Statement , Json Value obj Val , List < Json Pointer > token Pointers ) throws IO Exception , SQL Exception { int col Pos = NUM ; for ( Json Pointer prop Pointer : token Pointers ) { Json Value raw Value = obj Val . get ( prop Pointer ) ; String prop Value =... | int populatePrepStatementColumns ( PreparedStatement prepStatement , JsonValue objVal , List < JsonPointer > tokenPointers ) throws IOException , SQLException { int colPos = _NUM ; for ( JsonPointer propPointer : tokenPointers ) { JsonValue rawValue = objVal . get ( propPointer ) ; String propValue = null ; if ( null =... | 195 |
java-test-6435 | java | What does the code populate for update ? | the create or update statement with the token replacement values in the appropriate order | int populate Prep Statement Columns ( Prepared Statement prep Statement , Json Value obj Val , List < Json Pointer > token Pointers ) throws IO Exception , SQL Exception { int col Pos = NUM ; for ( Json Pointer prop Pointer : token Pointers ) { Json Value raw Value = obj Val . get ( prop Pointer ) ; String prop Value =... | int populatePrepStatementColumns ( PreparedStatement prepStatement , JsonValue objVal , List < JsonPointer > tokenPointers ) throws IOException , SQLException { int colPos = _NUM ; for ( JsonPointer propPointer : tokenPointers ) { JsonValue rawValue = objVal . get ( propPointer ) ; String propValue = null ; if ( null =... | 195 |
java-test-6436 | java | What does the final objectid need for update ? | to be populated separately | int populate Prep Statement Columns ( Prepared Statement prep Statement , Json Value obj Val , List < Json Pointer > token Pointers ) throws IO Exception , SQL Exception { int col Pos = NUM ; for ( Json Pointer prop Pointer : token Pointers ) { Json Value raw Value = obj Val . get ( prop Pointer ) ; String prop Value =... | int populatePrepStatementColumns ( PreparedStatement prepStatement , JsonValue objVal , List < JsonPointer > tokenPointers ) throws IOException , SQLException { int colPos = _NUM ; for ( JsonPointer propPointer : tokenPointers ) { JsonValue rawValue = objVal . get ( propPointer ) ; String propValue = null ; if ( null =... | 195 |
java-test-6438 | java | What does the code calculate recursively ? | the size of the file or directory | private long size ( File file ) { if ( file . is Directory ( ) ) { long bytes = NUM ; for ( File child File : file . list Files ( ) ) { bytes += size ( child File ) ; } return bytes ; } else { return file . length ( ) ; } } | private long size ( File file ) { if ( file . isDirectory ( ) ) { long bytes = _NUM ; for ( File childFile : file . listFiles ( ) ) { bytes += size ( childFile ) ; } return bytes ; } else { return file . length ( ) ; } } | 61 |
java-test-6440 | java | What swap in the heap ? | two items | private void swap ( Item item 1 , Item item 2 ) { int idx 1 = item 1 . idx ; int idx 2 = item 2 . idx ; heap . set ( idx 2 , item 1 ) ; heap . set ( idx 1 , item 2 ) ; item 1 . idx = idx 2 ; item 2 . idx = idx 1 ; } | private void swap ( Item item1 , Item item2 ) { int idx1 = item1 . idx ; int idx2 = item2 . idx ; heap . set ( idx2 , item1 ) ; heap . set ( idx1 , item2 ) ; item1 . idx = idx2 ; item2 . idx = idx1 ; } | 70 |
java-test-6441 | java | What does the code initialize ? | the idm service | private static void initialize ( ) throws Exception { try ( I Diagnostics Context Scope diag Ctxt = Diagnostics Context Factory . create Context ( STRING , STRING ) ) { logger . info ( STRING ) ; logger . debug ( STRING , Tenant . RMI PORT ) ; boolean allow Remote Connections = Boolean . parse Boolean ( System . get Pr... | private static void initialize ( ) throws Exception { try ( IDiagnosticsContextScope diagCtxt = DiagnosticsContextFactory . createContext ( STRING , STRING ) ) { logger . info ( STRING ) ; logger . debug ( STRING , Tenant . RMI_PORT ) ; boolean allowRemoteConnections = Boolean . parseBoolean ( System . getProperty ( AL... | 422 |
java-test-6444 | java | What can release the lock ? | any node which calls the method | public boolean release Persistent Lock ( String lock Id ) throws Exception { Distributed Persistent Lock lock = coordinator . get Site Local Persistent Lock ( lock Id ) ; if ( lock != null ) { String lock Owner = lock . get Lock Owner ( ) ; if ( lock Owner == null ) { log . info ( STRING ) ; return BOOL ; } boolean res... | public boolean releasePersistentLock ( String lockId ) throws Exception { DistributedPersistentLock lock = _coordinator . getSiteLocalPersistentLock ( lockId ) ; if ( lock != null ) { String lockOwner = lock . getLockOwner ( ) ; if ( lockOwner == null ) { _log . info ( STRING ) ; return _BOOL ; } boolean result = lock ... | 117 |
java-test-6445 | java | What does the code add ? | a complete line of tla " code " that does not correspond to any pluscal code | private void add One Line Of TLA ( String line ) { if ( tlacode . size ( ) != mapping Vector . size ( ) ) { Pcal Debug . Report Bug ( STRING ) ; } end Current Line Of TLA ( ) ; if ( line . length ( ) == NUM ) { mapping Vector . add Element ( new Vector ( NUM ) ) ; tlacode . add Element ( STRING ) ; return ; } add One T... | private void addOneLineOfTLA ( String line ) { if ( tlacode . size ( ) != mappingVector . size ( ) ) { PcalDebug . ReportBug ( STRING ) ; } endCurrentLineOfTLA ( ) ; if ( line . length ( ) == _NUM ) { mappingVector . addElement ( new Vector ( _NUM ) ) ; tlacode . addElement ( STRING ) ; return ; } addOneTokenToTLA ( li... | 99 |
java-test-6446 | java | What does the code resize recursively so that they contain the complete area of the resized child cell ? | the parents | public void extend Parent ( Object cell ) { if ( cell != null ) { Object parent = model . get Parent ( cell ) ; mx Geometry p = model . get Geometry ( parent ) ; if ( parent != null && p != null && ! is Cell Collapsed ( parent ) ) { mx Geometry geo = model . get Geometry ( cell ) ; if ( geo != null && ( p . get Width (... | public void extendParent ( Object cell ) { if ( cell != null ) { Object parent = model . getParent ( cell ) ; mxGeometry p = model . getGeometry ( parent ) ; if ( parent != null && p != null && ! isCellCollapsed ( parent ) ) { mxGeometry geo = model . getGeometry ( cell ) ; if ( geo != null && ( p . getWidth ( ) < geo ... | 222 |
java-test-6447 | java | What does they contain ? | the complete area of the resized child cell | public void extend Parent ( Object cell ) { if ( cell != null ) { Object parent = model . get Parent ( cell ) ; mx Geometry p = model . get Geometry ( parent ) ; if ( parent != null && p != null && ! is Cell Collapsed ( parent ) ) { mx Geometry geo = model . get Geometry ( cell ) ; if ( geo != null && ( p . get Width (... | public void extendParent ( Object cell ) { if ( cell != null ) { Object parent = model . getParent ( cell ) ; mxGeometry p = model . getGeometry ( parent ) ; if ( parent != null && p != null && ! isCellCollapsed ( parent ) ) { mxGeometry geo = model . getGeometry ( cell ) ; if ( geo != null && ( p . getWidth ( ) < geo ... | 222 |
java-test-6448 | java | For what purpose does the code resize the parents recursively ? | so that they contain the complete area of the resized child cell | public void extend Parent ( Object cell ) { if ( cell != null ) { Object parent = model . get Parent ( cell ) ; mx Geometry p = model . get Geometry ( parent ) ; if ( parent != null && p != null && ! is Cell Collapsed ( parent ) ) { mx Geometry geo = model . get Geometry ( cell ) ; if ( geo != null && ( p . get Width (... | public void extendParent ( Object cell ) { if ( cell != null ) { Object parent = model . getParent ( cell ) ; mxGeometry p = model . getGeometry ( parent ) ; if ( parent != null && p != null && ! isCellCollapsed ( parent ) ) { mxGeometry geo = model . getGeometry ( cell ) ; if ( geo != null && ( p . getWidth ( ) < geo ... | 222 |
java-test-6449 | java | What does the code make ? | a rect | public static Rect make Rect For Cross Hairs ( int x , int y , int cross Hair Length ) { return new Rect ( x - cross Hair Length , y - cross Hair Length , x + cross Hair Length + NUM , y + cross Hair Length + NUM ) ; } | public static Rect makeRectForCrossHairs ( int x , int y , int crossHairLength ) { return new Rect ( x - crossHairLength , y - crossHairLength , x + crossHairLength + _NUM , y + crossHairLength + _NUM ) ; } | 55 |
java-test-6452 | java | What does the code serialize as json output ? | any java value | public String object To Json ( Object object ) throws Illegal State Exception { Object Mapper mapper = new Object Mapper ( ) ; String Writer string Writer = new String Writer ( ) ; try { mapper . write Value ( string Writer , object ) ; } catch ( IO Exception e ) { throw new Illegal State Exception ( e ) ; } return str... | public String objectToJson ( Object object ) throws IllegalStateException { ObjectMapper mapper = new ObjectMapper ( ) ; StringWriter stringWriter = new StringWriter ( ) ; try { mapper . writeValue ( stringWriter , object ) ; } catch ( IOException e ) { throw new IllegalStateException ( e ) ; } return stringWriter . to... | 76 |
java-test-6453 | java | What is performed inside a separate thread of execution ? | cross validation | private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m fold Thread != null && m fold Thread . is Alive ( ) ) { wait ( ) ; } } catch ( Interrupted Exception ex ) { } } else { notify All ( ) ; } } | private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m_foldThread != null && m_foldThread . isAlive ( ) ) { wait ( ) ; } } catch ( InterruptedException ex ) { } } else { notifyAll ( ) ; } } | 58 |
java-test-6454 | java | What did function use ? | to stop code that calls acceptdataset | private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m fold Thread != null && m fold Thread . is Alive ( ) ) { wait ( ) ; } } catch ( Interrupted Exception ex ) { } } else { notify All ( ) ; } } | private synchronized void block ( boolean tf ) { if ( tf ) { try { if ( m_foldThread != null && m_foldThread . isAlive ( ) ) { wait ( ) ; } } catch ( InterruptedException ex ) { } } else { notifyAll ( ) ; } } | 58 |
java-test-6455 | java | What does the code add to the overall entitlement decision ? | a set of entitlements | public void add ( List < Entitlement > entitlements ) { if ( ! is Recursive ) { for ( Entitlement e : entitlements ) { merge Action Values ( root E , e ) ; merge Advices ( root E , e ) ; merge Attributes ( root E , e ) ; merge Time To Live Value ( root E , e ) ; } } else { boolean is Reg Ex Comparator = ( resource Comp... | public void add ( List < Entitlement > entitlements ) { if ( ! isRecursive ) { for ( Entitlement e : entitlements ) { mergeActionValues ( rootE , e ) ; mergeAdvices ( rootE , e ) ; mergeAttributes ( rootE , e ) ; mergeTimeToLiveValue ( rootE , e ) ; } } else { boolean isRegExComparator = ( resourceComparator instanceof... | 444 |
java-test-6456 | java | What does the code add ? | additional lines to row / col | private void add Print Lines ( int row , int col , Object data ) { while ( m print Rows . size ( ) <= row ) m print Rows . add ( null ) ; Array List < Array List < Object > > columns = m print Rows . get ( row ) ; if ( columns == null ) columns = new Array List < Array List < Object > > ( m column Header . length ) ; w... | private void addPrintLines ( int row , int col , Object data ) { while ( m_printRows . size ( ) <= row ) m_printRows . add ( null ) ; ArrayList < ArrayList < Object > > columns = m_printRows . get ( row ) ; if ( columns == null ) columns = new ArrayList < ArrayList < Object > > ( m_columnHeader . length ) ; while ( col... | 194 |
java-test-6457 | java | What does the code create ? | a new alert | @ POST @ Produces ( Media Type . APPLICATION JSON ) @ Consumes ( Media Type . APPLICATION JSON ) @ Description ( STRING ) public Alert Dto create Alert ( @ Context Http Servlet Request req , Alert Dto alert Dto ) { if ( alert Dto == null ) { throw new Web Application Exception ( STRING , Status . BAD REQUEST ) ; } Prin... | @ POST @ Produces ( MediaType . APPLICATION_JSON ) @ Consumes ( MediaType . APPLICATION_JSON ) @ Description ( STRING ) public AlertDto createAlert ( @ Context HttpServletRequest req , AlertDto alertDto ) { if ( alertDto == null ) { throw new WebApplicationException ( STRING , Status . BAD_REQUEST ) ; } PrincipalUser o... | 157 |
java-test-6458 | java | For what purpose should by the implementations be called this ? | to register a package update | @ Override public synchronized void record Package Update ( String package Name , int state , int progress ) { Shared Preferences . Editor editor = m Prefs . edit ( ) ; Package Install Info install Info = new Package Install Info ( package Name ) ; install Info . progress = progress ; install Info . state = state ; if ... | @ Override public synchronized void recordPackageUpdate ( String packageName , int state , int progress ) { SharedPreferences . Editor editor = mPrefs . edit ( ) ; PackageInstallInfo installInfo = new PackageInstallInfo ( packageName ) ; installInfo . progress = progress ; installInfo . state = state ; if ( state == ST... | 232 |
java-test-6459 | java | What does the code calculate into the 45 degree direction p_dir ? | the border point of this octagon | private Pla Point Int border point ( Pla Point Int p point , Pla Direction p dir ) { int result x ; int result y ; if ( p dir == Pla Direction . RIGHT ) { result x = Math . min ( oct rx , oct urx - p point . v y ) ; result x = Math . min ( result x , oct lrx + p point . v y ) ; result y = p point . v y ; } else if ( p ... | private PlaPointInt border_point ( PlaPointInt p_point , PlaDirection p_dir ) { int result_x ; int result_y ; if ( p_dir == PlaDirection . RIGHT ) { result_x = Math . min ( oct_rx , oct_urx - p_point . v_y ) ; result_x = Math . min ( result_x , oct_lrx + p_point . v_y ) ; result_y = p_point . v_y ; } else if ( p_dir ==... | 716 |
java-test-6464 | java | Where did instances ship ? | across the network | @ Override public void write External ( Object Output out ) throws IO Exception { String tid = get Thread Mapping ( ) ; out . write Object ( tid ) ; out . write Object ( this . user Transaction Server Lookup Name ) ; out . write Object ( this . initial Context Factory ) ; out . write Object ( this . provider Url ) ; ou... | @ Override public void writeExternal ( ObjectOutput out ) throws IOException { String tid = getThreadMapping ( ) ; out . writeObject ( tid ) ; out . writeObject ( this . userTransactionServerLookupName ) ; out . writeObject ( this . initialContextFactory ) ; out . writeObject ( this . providerUrl ) ; out . writeInt ( t... | 80 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.