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-8400 | java | What does the code add to the pool ? | a new or previously existing value | public final void add ( T Key key , T Value value ) { Preconditions . check Not Null ( key ) ; Preconditions . check Not Null ( value ) ; synchronized ( m Lock ) { final Queue < T Value > pool ; m Lru Key List . push ( key ) ; if ( ! m Value Pool . contains Key ( key ) ) { pool = new Linked List < > ( ) ; m Value Pool ... | public final void add ( TKey key , TValue value ) { Preconditions . checkNotNull ( key ) ; Preconditions . checkNotNull ( value ) ; synchronized ( mLock ) { final Queue < TValue > pool ; mLruKeyList . push ( key ) ; if ( ! mValuePool . containsKey ( key ) ) { pool = new LinkedList < > ( ) ; mValuePool . put ( key , poo... | 137 |
java-test-8401 | java | What does the code create ? | a file object to which we can safely zip a file | private File create Zip File Handle ( ) throws IO Exception { File zip File = File . create Temp File ( STRING , STRING , tmp Output Folder . get Root ( ) ) ; assert True ( zip File . delete ( ) ) ; return zip File ; } | private File createZipFileHandle ( ) throws IOException { File zipFile = File . createTempFile ( STRING , STRING , tmpOutputFolder . getRoot ( ) ) ; assertTrue ( zipFile . delete ( ) ) ; return zipFile ; } | 52 |
java-test-8403 | java | Where does the code push a new scope ? | on top of the scope stack | private void push Stack ( int new Top ) { if ( stack Size == stack . length ) { int [ ] new Stack = new int [ stack Size * NUM ] ; int [ ] new Path Indices = new int [ stack Size * NUM ] ; String [ ] new Path Names = new String [ stack Size * NUM ] ; System . arraycopy ( stack , NUM , new Stack , NUM , stack Size ) ; S... | private void pushStack ( int newTop ) { if ( stackSize == stack . length ) { int [ ] newStack = new int [ stackSize * _NUM ] ; int [ ] newPathIndices = new int [ stackSize * _NUM ] ; String [ ] newPathNames = new String [ stackSize * _NUM ] ; System . arraycopy ( stack , _NUM , newStack , _NUM , stackSize ) ; System . ... | 153 |
java-test-8407 | java | What does the code allow ? | the remote end of the specified connection to access objects registered in this objectspace | public void add Connection ( Connection connection ) { if ( connection == null ) throw new Illegal Argument Exception ( STRING ) ; synchronized ( connections Lock ) { Connection [ ] new Connections = new Connection [ connections . length + NUM ] ; new Connections [ NUM ] = connection ; System . arraycopy ( connections ... | public void addConnection ( Connection connection ) { if ( connection == null ) throw new IllegalArgumentException ( STRING ) ; synchronized ( connectionsLock ) { Connection [ ] newConnections = new Connection [ connections . length + _NUM ] ; newConnections [ _NUM ] = connection ; System . arraycopy ( connections , _N... | 101 |
java-test-8408 | java | What is containing the connectionpanel ? | joptionpane | void activate Connection Dialog ( ) { if ( J Option Pane . show Option Dialog ( table Aggregate , connection Panel , Connect Title , J Option Pane . DEFAULT OPTION , J Option Pane . INFORMATION MESSAGE , null , Connect Option Names , Connect Option Names [ NUM ] ) == NUM ) { connect ( ) ; frame . set Visible ( BOOL ) ;... | void activateConnectionDialog ( ) { if ( JOptionPane . showOptionDialog ( tableAggregate , connectionPanel , ConnectTitle , JOptionPane . DEFAULT_OPTION , JOptionPane . INFORMATION_MESSAGE , null , ConnectOptionNames , ConnectOptionNames [ _NUM ] ) == _NUM ) { connect ( ) ; frame . setVisible ( _BOOL ) ; } else if ( ! ... | 91 |
java-test-8410 | java | What does a method create ? | the workflow method for adding vplex volumes to a consistency group | protected Workflow . Method create Add Volumes To CG Method ( URI vplex URI , URI cg URI , List < URI > vplex Volume UR Is ) { return new Workflow . Method ( ADD VOLUMES TO CG METHOD NAME , vplex URI , cg URI , vplex Volume UR Is ) ; } | protected Workflow . Method createAddVolumesToCGMethod ( URI vplexURI , URI cgURI , List < URI > vplexVolumeURIs ) { return new Workflow . Method ( ADD_VOLUMES_TO_CG_METHOD_NAME , vplexURI , cgURI , vplexVolumeURIs ) ; } | 55 |
java-test-8414 | java | Where are all indices are valid ? | in both the original array and the copy | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8415 | java | What are valid in both the original array and the copy ? | all indices | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8416 | java | Where are any indices are valid ? | in the copy | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8417 | java | What did the copy have ? | the specified length | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8418 | java | What will the two arrays contain ? | identical values | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8419 | java | What are valid in the copy ? | any indices | @ Target Api ( Build . VERSION CODES . GINGERBREAD ) public static byte [ ] copy Of ( byte [ ] original , int new Length ) { byte [ ] copy ; if ( Utils . has Gingerbread ( ) ) { copy = Arrays . copy Of ( original , new Length ) ; } else { copy = new byte [ new Length ] ; System . arraycopy ( original , NUM , copy , NUM... | @ TargetApi ( Build . VERSION_CODES . GINGERBREAD ) public static byte [ ] copyOf ( byte [ ] original , int newLength ) { byte [ ] copy ; if ( Utils . hasGingerbread ( ) ) { copy = Arrays . copyOf ( original , newLength ) ; } else { copy = new byte [ newLength ] ; System . arraycopy ( original , _NUM , copy , _NUM , Ma... | 99 |
java-test-8420 | java | What does the code remove ? | any blank entries from the table | public synchronized void remove Blanks ( ) { if ( DEBUG != null ) DEBUG . println ( STRING ) ; Reference ref ; while ( ( ref = ref Queue . poll ( ) ) != null ) { if ( ref instanceof Weak Key Reference ) { final Weak Reference valref = ( Weak Reference ) table . remove ( ref ) ; if ( valref != null && handler != null &&... | public synchronized void removeBlanks ( ) { if ( DEBUG != null ) DEBUG . println ( STRING ) ; Reference ref ; while ( ( ref = refQueue . poll ( ) ) != null ) { if ( ref instanceof WeakKeyReference ) { final WeakReference valref = ( WeakReference ) table . remove ( ref ) ; if ( valref != null && handler != null && valre... | 180 |
java-test-8421 | java | What does the code add to default_values ? | the default values that we know about | private static void populate Default Values ( ) { Object button Map = new UI Defaults . Lazy Input Map ( new Object [ ] { STRING , STRING , STRING , STRING } ) ; DEFAULT VALUES . put ( STRING , button Map ) ; DEFAULT VALUES . put ( STRING , button Map ) ; DEFAULT VALUES . put ( STRING , button Map ) ; DEFAULT VALUES . ... | private static void populateDefaultValues ( ) { Object buttonMap = new UIDefaults . LazyInputMap ( new Object [ ] { STRING , STRING , STRING , STRING } ) ; DEFAULT_VALUES . put ( STRING , buttonMap ) ; DEFAULT_VALUES . put ( STRING , buttonMap ) ; DEFAULT_VALUES . put ( STRING , buttonMap ) ; DEFAULT_VALUES . put ( STR... | 3,632 |
java-test-8422 | java | What does the code compute ? | the full distance along this path segment | public double full Path Distance ( final Distance Style distance Style ) { synchronized ( full Distance Cache ) { Double dist = full Distance Cache . get ( distance Style ) ; if ( dist == null ) { dist = new Double ( distance Style . compute Distance ( start , end . x , end . y , end . z ) ) ; full Distance Cache . put... | public double fullPathDistance ( final DistanceStyle distanceStyle ) { synchronized ( fullDistanceCache ) { Double dist = fullDistanceCache . get ( distanceStyle ) ; if ( dist == null ) { dist = new Double ( distanceStyle . computeDistance ( start , end . x , end . y , end . z ) ) ; fullDistanceCache . put ( distanceSt... | 90 |
java-test-8423 | java | Where did alpha and beta define ? | in hmmdata | public static void postfilter mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > NUM && m > NUM ) { double [ ] postfilter buff = new double [ m + NUM ] ; mc 2 b ( mgc , postfilter buff , m , alpha ) ; double e1 = b2 en ( postfilter buff , m , alpha ) ; postfilter buff [ NUM ] -= beta * alpha * mg... | public static void postfilter_mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > _NUM && m > _NUM ) { double [ ] postfilter_buff = new double [ m + _NUM ] ; mc2b ( mgc , postfilter_buff , m , alpha ) ; double e1 = b2en ( postfilter_buff , m , alpha ) ; postfilter_buff [ _NUM ] -= beta * alpha * m... | 161 |
java-test-8424 | java | What does it use ? | alpha and beta defined in hmmdata | public static void postfilter mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > NUM && m > NUM ) { double [ ] postfilter buff = new double [ m + NUM ] ; mc 2 b ( mgc , postfilter buff , m , alpha ) ; double e1 = b2 en ( postfilter buff , m , alpha ) ; postfilter buff [ NUM ] -= beta * alpha * mg... | public static void postfilter_mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > _NUM && m > _NUM ) { double [ ] postfilter_buff = new double [ m + _NUM ] ; mc2b ( mgc , postfilter_buff , m , alpha ) ; double e1 = b2en ( postfilter_buff , m , alpha ) ; postfilter_buff [ _NUM ] -= beta * alpha * m... | 161 |
java-test-8425 | java | What defined in hmmdata ? | alpha and beta | public static void postfilter mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > NUM && m > NUM ) { double [ ] postfilter buff = new double [ m + NUM ] ; mc 2 b ( mgc , postfilter buff , m , alpha ) ; double e1 = b2 en ( postfilter buff , m , alpha ) ; postfilter buff [ NUM ] -= beta * alpha * mg... | public static void postfilter_mgc ( double mgc [ ] , int m , double alpha , double beta ) { if ( beta > _NUM && m > _NUM ) { double [ ] postfilter_buff = new double [ m + _NUM ] ; mc2b ( mgc , postfilter_buff , m , alpha ) ; double e1 = b2en ( postfilter_buff , m , alpha ) ; postfilter_buff [ _NUM ] -= beta * alpha * m... | 161 |
java-test-8429 | java | How do duration specifications set ? | according to ' rate ' requirements | private void modify Speech Rate ( Node List nl , double percentage , boolean increase Speech Rate ) { assert nl != null ; for ( int i = NUM ; i < nl . get Length ( ) ; i ++ ) { Element e = ( Element ) nl . item ( i ) ; assert STRING . equals ( e . get Node Name ( ) ) : STRING ; if ( ! e . has Attribute ( STRING ) ) { c... | private void modifySpeechRate ( NodeList nl , double percentage , boolean increaseSpeechRate ) { assert nl != null ; for ( int i = _NUM ; i < nl . getLength ( ) ; i ++ ) { Element e = ( Element ) nl . item ( i ) ; assert STRING . equals ( e . getNodeName ( ) ) : STRING ; if ( ! e . hasAttribute ( STRING ) ) { continue ... | 393 |
java-test-8431 | java | What do a large percentage of all symbols have ? | a zero frequency code , which models the expected patterns of b + tree keys | public void test huffman Recoder Stress ( ) throws IO Exception { final int ntrials = NUM ; final int percent Zero = NUM ; final Random r = new Random ( ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ NUM ] ; for ( int i = NUM ; i < frequency . length ; i ++ ) { if ( r . n... | public void test_huffmanRecoderStress ( ) throws IOException { final int ntrials = _NUM ; final int percentZero = _NUM ; final Random r = new Random ( ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ _NUM ] ; for ( int i = _NUM ; i < frequency . length ; i ++ ) { if ( r . ... | 127 |
java-test-8432 | java | What models the expected patterns of b + tree keys ? | a zero frequency code | public void test huffman Recoder Stress ( ) throws IO Exception { final int ntrials = NUM ; final int percent Zero = NUM ; final Random r = new Random ( ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ NUM ] ; for ( int i = NUM ; i < frequency . length ; i ++ ) { if ( r . n... | public void test_huffmanRecoderStress ( ) throws IOException { final int ntrials = _NUM ; final int percentZero = _NUM ; final Random r = new Random ( ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ _NUM ] ; for ( int i = _NUM ; i < frequency . length ; i ++ ) { if ( r . ... | 127 |
java-test-8433 | java | What does a zero frequency code model ? | the expected patterns of b + tree keys | public void test huffman Recoder Stress ( ) throws IO Exception { final int ntrials = NUM ; final int percent Zero = NUM ; final Random r = new Random ( ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ NUM ] ; for ( int i = NUM ; i < frequency . length ; i ++ ) { if ( r . n... | public void test_huffmanRecoderStress ( ) throws IOException { final int ntrials = _NUM ; final int percentZero = _NUM ; final Random r = new Random ( ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ _NUM ] ; for ( int i = _NUM ; i < frequency . length ; i ++ ) { if ( r . ... | 127 |
java-test-8434 | java | What have a zero frequency code , which models the expected patterns of b + tree keys ? | a large percentage of all symbols | public void test huffman Recoder Stress ( ) throws IO Exception { final int ntrials = NUM ; final int percent Zero = NUM ; final Random r = new Random ( ) ; for ( int trial = NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ NUM ] ; for ( int i = NUM ; i < frequency . length ; i ++ ) { if ( r . n... | public void test_huffmanRecoderStress ( ) throws IOException { final int ntrials = _NUM ; final int percentZero = _NUM ; final Random r = new Random ( ) ; for ( int trial = _NUM ; trial < ntrials ; trial ++ ) { final int [ ] frequency = new int [ _NUM ] ; for ( int i = _NUM ; i < frequency . length ; i ++ ) { if ( r . ... | 127 |
java-test-8435 | java | How does an icon scale ? | using specified scale factor | private static Buffered Image scale Icon ( Icon icon , double scale Factor ) { if ( icon == null ) { return null ; } int w = icon . get Icon Width ( ) ; int h = icon . get Icon Height ( ) ; Graphics Environment ge = Graphics Environment . get Local Graphics Environment ( ) ; Graphics Device gd = ge . get Default Screen... | private static BufferedImage scaleIcon ( Icon icon , double scaleFactor ) { if ( icon == null ) { return null ; } int w = icon . getIconWidth ( ) ; int h = icon . getIconHeight ( ) ; GraphicsEnvironment ge = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; GraphicsDevice gd = ge . getDefaultScreenDevice ( ) ; Gr... | 252 |
java-test-8436 | java | What indented at the given level ? | the given json array | private static String to String Pretty ( Json Array json Array , int level ) { String Buffer buf = new String Buffer ( ) ; buf . append ( STRING ) ; String indent = STRING + VA Utils . indent ( level ) ; boolean first Elt = BOOL ; for ( int i = NUM ; i < json Array . size ( ) ; i ++ ) { Json Element elt = json Array . ... | private static String toStringPretty ( JsonArray jsonArray , int level ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( STRING ) ; String indent = STRING + VAUtils . indent ( level ) ; boolean firstElt = _BOOL ; for ( int i = _NUM ; i < jsonArray . size ( ) ; i ++ ) { JsonElement elt = jsonArray . get ( i )... | 142 |
java-test-8441 | java | What does the code parse ? | the string value of an attribute value or text content | private static void parse Attribute Or Text Content ( String string Value , Field field , Type value Type , List < Type > context , Object destination , Generic Xml generic Xml , Map < String , Object > destination Map , String name ) { if ( field != null || generic Xml != null || destination Map != null ) { value Type... | private static void parseAttributeOrTextContent ( String stringValue , Field field , Type valueType , List < Type > context , Object destination , GenericXml genericXml , Map < String , Object > destinationMap , String name ) { if ( field != null || genericXml != null || destinationMap != null ) { valueType = field == ... | 117 |
java-test-8444 | java | What does the code save ? | any changes the user has made | public void save ( @ Not Null Progress Indicator progress ) { if ( is Sources Modified ( ) ) { Repository Source Provider user Source Provider = get User Source Provider ( ) ; assert user Source Provider != null ; user Source Provider . save ( new Repo Progress Indicator Adapter ( progress ) ) ; reset ( ) ; } } | public void save ( @ NotNull ProgressIndicator progress ) { if ( isSourcesModified ( ) ) { RepositorySourceProvider userSourceProvider = getUserSourceProvider ( ) ; assert userSourceProvider != null ; userSourceProvider . save ( new RepoProgressIndicatorAdapter ( progress ) ) ; reset ( ) ; } } | 64 |
java-test-8445 | java | What does the code remove from the specified file extension ? | the leading ' . ' character | public static String remove Dot From File Extension ( String file Ext ) { String tem File Ext = file Ext ; if ( file Ext . char At ( NUM ) == STRING ) { tem File Ext = file Ext . substring ( NUM , file Ext . length ( ) ) ; } return tem File Ext ; } | public static String removeDotFromFileExtension ( String fileExt ) { String temFileExt = fileExt ; if ( fileExt . charAt ( _NUM ) == STRING ) { temFileExt = fileExt . substring ( _NUM , fileExt . length ( ) ) ; } return temFileExt ; } | 62 |
java-test-8448 | java | When does a routelocation move ? | later in the route | public void move Location Down ( Route Location rl ) { int sequence Id = rl . get Sequence Id ( ) ; if ( sequence Id + NUM > sequence Num ) { rl . set Sequence Id ( NUM ) ; resequence Ids ( ) ; } else { Route Location replace Rl = get Item By Sequence Id ( sequence Id + NUM ) ; if ( replace Rl != null ) { replace Rl . ... | public void moveLocationDown ( RouteLocation rl ) { int sequenceId = rl . getSequenceId ( ) ; if ( sequenceId + _NUM > _sequenceNum ) { rl . setSequenceId ( _NUM ) ; resequenceIds ( ) ; } else { RouteLocation replaceRl = getItemBySequenceId ( sequenceId + _NUM ) ; if ( replaceRl != null ) { replaceRl . setSequenceId ( ... | 133 |
java-test-8449 | java | For what purpose do hashcode test ? | for new instances | public void test Hash Code ( ) { Set < Model > set = new Hash Set < Model > ( ) ; Model m1 = new Mock Model ( ) ; Model m2 = new Mock Model ( ) ; Model m3 = new Another Mock Model ( ) ; assert False ( m1 . hash Code ( ) == m2 . hash Code ( ) ) ; set . add ( m1 ) ; set . add ( m2 ) ; assert Equals ( NUM , set . size ( )... | public void testHashCode ( ) { Set < Model > set = new HashSet < Model > ( ) ; Model m1 = new MockModel ( ) ; Model m2 = new MockModel ( ) ; Model m3 = new AnotherMockModel ( ) ; assertFalse ( m1 . hashCode ( ) == m2 . hashCode ( ) ) ; set . add ( m1 ) ; set . add ( m2 ) ; assertEquals ( _NUM , set . size ( ) ) ; asser... | 133 |
java-test-8450 | java | When do the operation perform ? | when this action is triggered | public void action Performed ( Action Event e ) { J Text Component target = get Text Component ( e ) ; if ( target != null ) { int selected Index ; Rectangle visible = new Rectangle ( ) ; target . compute Visible Rect ( visible ) ; if ( left ) { visible . x = Math . max ( NUM , visible . x - visible . width ) ; } else ... | public void actionPerformed ( ActionEvent e ) { JTextComponent target = getTextComponent ( e ) ; if ( target != null ) { int selectedIndex ; Rectangle visible = new Rectangle ( ) ; target . computeVisibleRect ( visible ) ; if ( left ) { visible . x = Math . max ( _NUM , visible . x - visible . width ) ; } else { visibl... | 263 |
java-test-8452 | java | For what purpose do o a logger instance get ? | for setup | @ Parameters ( { STRING } ) @ Before Suite ( groups = { STRING , STRING } ) public void suite Setup ( String realm ) throws Exception { Object [ ] params = { realm } ; entering ( STRING , params ) ; try { lmgr = Log Manager Util . get Log Manager ( ) ; } catch ( Exception e ) { log ( Level . SEVERE , STRING , e . get M... | @ Parameters ( { STRING } ) @ BeforeSuite ( groups = { STRING , STRING } ) public void suiteSetup ( String realm ) throws Exception { Object [ ] params = { realm } ; entering ( STRING , params ) ; try { lmgr = LogManagerUtil . getLogManager ( ) ; } catch ( Exception e ) { log ( Level . SEVERE , STRING , e . getMessage ... | 108 |
java-test-8453 | java | What do helper parse from parsing state ? | fuzziness | private int parse Fuzziness ( State state ) { char slop Text [ ] = new char [ state . length ] ; int slop Length = NUM ; if ( state . data [ state . index ] == STRING ) { while ( state . index < state . length ) { state . index ++ ; if ( state . index < state . length ) { if ( token Finished ( state ) ) { break ; } slo... | private int parseFuzziness ( State state ) { char slopText [ ] = new char [ state . length ] ; int slopLength = _NUM ; if ( state . data [ state . index ] == STRING ) { while ( state . index < state . length ) { state . index ++ ; if ( state . index < state . length ) { if ( tokenFinished ( state ) ) { break ; } slopTe... | 161 |
java-test-8454 | java | What does the code draw at the given location and size with the given background color ? | a top tab | private static void draw Top Tab ( int x , int y , int w , int h , Graphics 2 D g2 , Color UI Resource color ) { double r Top = Rapid Look And Feel . CORNER TAB RADIUS * NUM ; g2 . set Color ( color ) ; g2 . fill ( create Top Tab Shape ( x + NUM , y + NUM , w - NUM , h , r Top , BOOL ) ) ; g2 . set Color ( Colors . TAB... | private static void drawTopTab ( int x , int y , int w , int h , Graphics2D g2 , ColorUIResource color ) { double rTop = RapidLookAndFeel . CORNER_TAB_RADIUS * _NUM ; g2 . setColor ( color ) ; g2 . fill ( createTopTabShape ( x + _NUM , y + _NUM , w - _NUM , h , rTop , _BOOL ) ) ; g2 . setColor ( Colors . TAB_BORDER ) ;... | 121 |
java-test-8456 | java | What did the code deprecate instead ? | insertdata | @ Deprecated public void insert Data ( Object [ ] values , boolean isnew ) { Vector < Object > v = new Vector < Object > ( ) ; for ( int i = NUM ; i < values . length ; i ++ ) { v . add ( values [ i ] ) ; } insert Data ( v , isnew ) ; } | @ Deprecated public void insertData ( Object [ ] values , boolean isnew ) { Vector < Object > v = new Vector < Object > ( ) ; for ( int i = _NUM ; i < values . length ; i ++ ) { v . add ( values [ i ] ) ; } insertData ( v , isnew ) ; } | 67 |
java-test-8460 | java | How does usage logging set ? | using a specific configuration path | Usage Logging ( Properties license Properties , String modulename , UUID run Id , File config File Override , boolean suppress ) throws IO Exception { final String usage Value = license Properties . get Property ( REQUIRE USAGE ) ; m Require Usage = usage Value != null && Boolean . value Of ( usage Value ) ; final Stri... | UsageLogging ( Properties licenseProperties , String modulename , UUID runId , File configFileOverride , boolean suppress ) throws IOException { final String usageValue = licenseProperties . getProperty ( REQUIRE_USAGE ) ; mRequireUsage = usageValue != null && Boolean . valueOf ( usageValue ) ; final String destination... | 322 |
java-test-8462 | java | What did the code let ? | the user choose a color and return that color | public Color choose Color ( int type , Color preset Color , Color secondary Color , String name , String text ) { set Location Relative To ( get Parent ( ) ) ; return New Color = BOOL ; set Title ( STRING + name ) ; this . type = type ; this . secondary Color = secondary Color ; preview . set Text ( text ) ; chooser . ... | public Color chooseColor ( int type , Color presetColor , Color secondaryColor , String name , String text ) { setLocationRelativeTo ( getParent ( ) ) ; returnNewColor = _BOOL ; setTitle ( STRING + name ) ; this . type = type ; this . secondaryColor = secondaryColor ; preview . setText ( text ) ; chooser . setColor ( p... | 106 |
java-test-8463 | java | What do the user return ? | that color | public Color choose Color ( int type , Color preset Color , Color secondary Color , String name , String text ) { set Location Relative To ( get Parent ( ) ) ; return New Color = BOOL ; set Title ( STRING + name ) ; this . type = type ; this . secondary Color = secondary Color ; preview . set Text ( text ) ; chooser . ... | public Color chooseColor ( int type , Color presetColor , Color secondaryColor , String name , String text ) { setLocationRelativeTo ( getParent ( ) ) ; returnNewColor = _BOOL ; setTitle ( STRING + name ) ; this . type = type ; this . secondaryColor = secondaryColor ; preview . setText ( text ) ; chooser . setColor ( p... | 106 |
java-test-8473 | java | When do anything interested in notify ? | when an entity entered | public void notify Entered ( final Active Entity entity , final int new X , final int new Y ) { Rectangle 2 D e Area ; e Area = entity . get Area ( new X , new Y ) ; for ( final Movement Listener l : movement Listeners ) { Rectangle 2 D area = l . get Area ( ) ; if ( area . intersects ( e Area ) ) { l . on Entered ( en... | public void notifyEntered ( final ActiveEntity entity , final int newX , final int newY ) { Rectangle2D eArea ; eArea = entity . getArea ( newX , newY ) ; for ( final MovementListener l : movementListeners ) { Rectangle2D area = l . getArea ( ) ; if ( area . intersects ( eArea ) ) { l . onEntered ( entity , this , newX... | 95 |
java-test-8474 | java | What does the code require ? | that the specified arguments are present | protected void require Arguments ( String ... names ) { String Builder missing = new String Builder ( ) ; for ( String name : names ) { if ( ! has Argument ( name ) ) { if ( missing . length ( ) > NUM ) { missing . append ( STRING ) ; } missing . append ( name ) ; } } if ( missing . length ( ) > NUM ) { throw new Comma... | protected void requireArguments ( String ... names ) { StringBuilder missing = new StringBuilder ( ) ; for ( String name : names ) { if ( ! hasArgument ( name ) ) { if ( missing . length ( ) > _NUM ) { missing . append ( STRING ) ; } missing . append ( name ) ; } } if ( missing . length ( ) > _NUM ) { throw new Command... | 89 |
java-test-8475 | java | What does the code convert into an 32 bits interger value ? | a decimal - dotted notation representation of an ip address | final int parse IP Address ( String ip Address Str ) { int result = NUM ; if ( ip Address Str == null ) { throw new Illegal Argument Exception ( ) ; } try { String tmp = ip Address Str ; int offset = NUM ; for ( int i = NUM ; i < NUM ; i ++ ) { int index = tmp . index Of ( STRING ) ; if ( index != - NUM ) { String numb... | final int parseIPAddress ( String ipAddressStr ) { int result = _NUM ; if ( ipAddressStr == null ) { throw new IllegalArgumentException ( ) ; } try { String tmp = ipAddressStr ; int offset = _NUM ; for ( int i = _NUM ; i < _NUM ; i ++ ) { int index = tmp . indexOf ( STRING ) ; if ( index != - _NUM ) { String numberStr ... | 321 |
java-test-8476 | java | When does the code show the view ? | for the specified duration | @ Target Api ( Build . VERSION CODES . KITKAT ) public void show ( ) { if ( is Show ) return ; init TN ( ) ; try { show . invoke ( mTN ) ; } catch ( Invocation Target Exception | Illegal Access Exception e ) { e . print Stack Trace ( ) ; } is Show = BOOL ; if ( m Duration > LENGTH ALWAYS ) { handler . post Delayed ( hi... | @ TargetApi ( Build . VERSION_CODES . KITKAT ) public void show ( ) { if ( isShow ) return ; initTN ( ) ; try { show . invoke ( mTN ) ; } catch ( InvocationTargetException | IllegalAccessException e ) { e . printStackTrace ( ) ; } isShow = _BOOL ; if ( mDuration > LENGTH_ALWAYS ) { handler . postDelayed ( hideRunnable ... | 90 |
java-test-8477 | java | What does the code add to the final list ? | the filtered subitems | private int add Filtered Sub Items ( List < T > values , T item ) { if ( is Expandable ( item ) ) { I Expandable expandable = ( I Expandable ) item ; if ( has Sub Items ( expandable ) ) { List < T > filtered Sub Items = new Array List < > ( ) ; List < T > sub Items = expandable . get Sub Items ( ) ; for ( T sub Item : ... | private int addFilteredSubItems ( List < T > values , T item ) { if ( isExpandable ( item ) ) { IExpandable expandable = ( IExpandable ) item ; if ( hasSubItems ( expandable ) ) { List < T > filteredSubItems = new ArrayList < > ( ) ; List < T > subItems = expandable . getSubItems ( ) ; for ( T subItem : subItems ) { if... | 134 |
java-test-8478 | java | What does the given target storage entity have ? | valid attributes | private void assert Target Storage Entity Valid ( Storage Entity target Storage Entity ) { try { storage Helper . get Storage Bucket Name ( target Storage Entity ) ; } catch ( Illegal State Exception e ) { throw new Illegal Argument Exception ( e . get Message ( ) , e ) ; } try { storage Helper . get Storage Kms Key Id... | private void assertTargetStorageEntityValid ( StorageEntity targetStorageEntity ) { try { storageHelper . getStorageBucketName ( targetStorageEntity ) ; } catch ( IllegalStateException e ) { throw new IllegalArgumentException ( e . getMessage ( ) , e ) ; } try { storageHelper . getStorageKmsKeyId ( targetStorageEntity ... | 99 |
java-test-8479 | java | What has valid attributes ? | the given target storage entity | private void assert Target Storage Entity Valid ( Storage Entity target Storage Entity ) { try { storage Helper . get Storage Bucket Name ( target Storage Entity ) ; } catch ( Illegal State Exception e ) { throw new Illegal Argument Exception ( e . get Message ( ) , e ) ; } try { storage Helper . get Storage Kms Key Id... | private void assertTargetStorageEntityValid ( StorageEntity targetStorageEntity ) { try { storageHelper . getStorageBucketName ( targetStorageEntity ) ; } catch ( IllegalStateException e ) { throw new IllegalArgumentException ( e . getMessage ( ) , e ) ; } try { storageHelper . getStorageKmsKeyId ( targetStorageEntity ... | 99 |
java-test-8481 | java | For what purpose does the code handle the processed notification ? | to update the statistics appropriately | public void processed ( String source Id , String target Id , boolean link Existed , String link Id , boolean link Created , Situation situation , Recon Action action ) { String id ; if ( phase == Phase . SOURCE ) { id = source Id ; } else { id = target Id ; } parent Stat . processed ( source Id , target Id , link Exis... | public void processed ( String sourceId , String targetId , boolean linkExisted , String linkId , boolean linkCreated , Situation situation , ReconAction action ) { String id ; if ( phase == Phase . SOURCE ) { id = sourceId ; } else { id = targetId ; } parentStat . processed ( sourceId , targetId , linkExisted , linkId... | 140 |
java-test-8482 | java | What does the code handle to update the statistics appropriately ? | the processed notification | public void processed ( String source Id , String target Id , boolean link Existed , String link Id , boolean link Created , Situation situation , Recon Action action ) { String id ; if ( phase == Phase . SOURCE ) { id = source Id ; } else { id = target Id ; } parent Stat . processed ( source Id , target Id , link Exis... | public void processed ( String sourceId , String targetId , boolean linkExisted , String linkId , boolean linkCreated , Situation situation , ReconAction action ) { String id ; if ( phase == Phase . SOURCE ) { id = sourceId ; } else { id = targetId ; } parentStat . processed ( sourceId , targetId , linkExisted , linkId... | 140 |
java-test-8483 | java | What contains the duration types of the array ? | a period type | public static synchronized Period Type for Fields ( Duration Field Type [ ] types ) { if ( types == null || types . length == NUM ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new Illegal Argument Exception ( STRING ) ; } } M... | public static synchronized PeriodType forFields ( DurationFieldType [ ] types ) { if ( types == null || types . length == _NUM ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = _NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new IllegalArgumentException ( STRING ) ; } } Map < P... | 791 |
java-test-8484 | java | What does a period type contain ? | the duration types of the array | public static synchronized Period Type for Fields ( Duration Field Type [ ] types ) { if ( types == null || types . length == NUM ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new Illegal Argument Exception ( STRING ) ; } } M... | public static synchronized PeriodType forFields ( DurationFieldType [ ] types ) { if ( types == null || types . length == _NUM ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = _NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new IllegalArgumentException ( STRING ) ; } } Map < P... | 791 |
java-test-8485 | java | What does the code get ? | a period type that contains the duration types of the array | public static synchronized Period Type for Fields ( Duration Field Type [ ] types ) { if ( types == null || types . length == NUM ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new Illegal Argument Exception ( STRING ) ; } } M... | public static synchronized PeriodType forFields ( DurationFieldType [ ] types ) { if ( types == null || types . length == _NUM ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = _NUM ; i < types . length ; i ++ ) { if ( types [ i ] == null ) { throw new IllegalArgumentException ( STRING ) ; } } Map < P... | 791 |
java-test-8486 | java | What does it handle here ? | internal jmxbuilder events | public void handle Notification ( Notification notification , Object handback ) { Map event = ( Map ) handback ; if ( event != null ) { Object del = event . get ( STRING ) ; Object callback = event . get ( STRING ) ; if ( callback != null && callback instanceof Closure ) { Closure closure = ( Closure ) callback ; closu... | public void handleNotification ( Notification notification , Object handback ) { Map event = ( Map ) handback ; if ( event != null ) { Object del = event . get ( STRING ) ; Object callback = event . get ( STRING ) ; if ( callback != null && callback instanceof Closure ) { Closure closure = ( Closure ) callback ; closur... | 111 |
java-test-8487 | java | What is the case ? | no java debug info | private void handle Unassociated Parameters ( ) { int sz Ssa Regs = ssa Meth . get Reg Count ( ) ; for ( int ssa Reg = NUM ; ssa Reg < sz Ssa Regs ; ssa Reg ++ ) { if ( ssa Regs Mapped . get ( ssa Reg ) ) { continue ; } int param Index = get Parameter Index For Reg ( ssa Reg ) ; Register Spec ssa Spec = get Definition ... | private void handleUnassociatedParameters ( ) { int szSsaRegs = ssaMeth . getRegCount ( ) ; for ( int ssaReg = _NUM ; ssaReg < szSsaRegs ; ssaReg ++ ) { if ( ssaRegsMapped . get ( ssaReg ) ) { continue ; } int paramIndex = getParameterIndexForReg ( ssaReg ) ; RegisterSpec ssaSpec = getDefinitionSpecForSsaReg ( ssaReg )... | 109 |
java-test-8488 | java | Where can any parameter that isn ' t local - associated happen ? | in the case where there is no java debug info | private void handle Unassociated Parameters ( ) { int sz Ssa Regs = ssa Meth . get Reg Count ( ) ; for ( int ssa Reg = NUM ; ssa Reg < sz Ssa Regs ; ssa Reg ++ ) { if ( ssa Regs Mapped . get ( ssa Reg ) ) { continue ; } int param Index = get Parameter Index For Reg ( ssa Reg ) ; Register Spec ssa Spec = get Definition ... | private void handleUnassociatedParameters ( ) { int szSsaRegs = ssaMeth . getRegCount ( ) ; for ( int ssaReg = _NUM ; ssaReg < szSsaRegs ; ssaReg ++ ) { if ( ssaRegsMapped . get ( ssaReg ) ) { continue ; } int paramIndex = getParameterIndexForReg ( ssaReg ) ; RegisterSpec ssaSpec = getDefinitionSpecForSsaReg ( ssaReg )... | 109 |
java-test-8489 | java | What can happen in the case where there is no java debug info ? | any parameter that isn ' t local - associated | private void handle Unassociated Parameters ( ) { int sz Ssa Regs = ssa Meth . get Reg Count ( ) ; for ( int ssa Reg = NUM ; ssa Reg < sz Ssa Regs ; ssa Reg ++ ) { if ( ssa Regs Mapped . get ( ssa Reg ) ) { continue ; } int param Index = get Parameter Index For Reg ( ssa Reg ) ; Register Spec ssa Spec = get Definition ... | private void handleUnassociatedParameters ( ) { int szSsaRegs = ssaMeth . getRegCount ( ) ; for ( int ssaReg = _NUM ; ssaReg < szSsaRegs ; ssaReg ++ ) { if ( ssaRegsMapped . get ( ssaReg ) ) { continue ; } int paramIndex = getParameterIndexForReg ( ssaReg ) ; RegisterSpec ssaSpec = getDefinitionSpecForSsaReg ( ssaReg )... | 109 |
java-test-8490 | java | What sends request ? | the chat | private void save Message And Callback ( ) { try { final String sender Id = m Message Model . sender id ; final String receiver Id = m Message Model . receiver id ; final String sent At Time = m Message Model . sent at ; final String message Text = m Message Model . message ; final String server Reply Id = m Message Mo... | private void saveMessageAndCallback ( ) { try { final String senderId = mMessageModel . sender_id ; final String receiverId = mMessageModel . receiver_id ; final String sentAtTime = mMessageModel . sent_at ; final String messageText = mMessageModel . message ; final String serverReplyId = mMessageModel . reply_id ; fin... | 634 |
java-test-8491 | java | When do the chat send request make ? | once it is saved | private void save Message And Callback ( ) { try { final String sender Id = m Message Model . sender id ; final String receiver Id = m Message Model . receiver id ; final String sent At Time = m Message Model . sent at ; final String message Text = m Message Model . message ; final String server Reply Id = m Message Mo... | private void saveMessageAndCallback ( ) { try { final String senderId = mMessageModel . sender_id ; final String receiverId = mMessageModel . receiver_id ; final String sentAtTime = mMessageModel . sent_at ; final String messageText = mMessageModel . message ; final String serverReplyId = mMessageModel . reply_id ; fin... | 634 |
java-test-8492 | java | What does the code save in the database ? | a local message | private void save Message And Callback ( ) { try { final String sender Id = m Message Model . sender id ; final String receiver Id = m Message Model . receiver id ; final String sent At Time = m Message Model . sent at ; final String message Text = m Message Model . message ; final String server Reply Id = m Message Mo... | private void saveMessageAndCallback ( ) { try { final String senderId = mMessageModel . sender_id ; final String receiverId = mMessageModel . receiver_id ; final String sentAtTime = mMessageModel . sent_at ; final String messageText = mMessageModel . message ; final String serverReplyId = mMessageModel . reply_id ; fin... | 634 |
java-test-8493 | java | Where did the next type give ? | at init | protected String next Type ( ) throws IO Exception { String type = null ; while ( ! done && type == null ) { type = read Word ( reader ) ; if ( type . length ( ) < NUM ) { type = null ; continue ; } } return type ; } | protected String nextType ( ) throws IOException { String type = null ; while ( ! done && type == null ) { type = readWord ( reader ) ; if ( type . length ( ) < _NUM ) { type = null ; continue ; } } return type ; } | 56 |
java-test-8494 | java | What given at init ? | the next type | protected String next Type ( ) throws IO Exception { String type = null ; while ( ! done && type == null ) { type = read Word ( reader ) ; if ( type . length ( ) < NUM ) { type = null ; continue ; } } return type ; } | protected String nextType ( ) throws IOException { String type = null ; while ( ! done && type == null ) { type = readWord ( reader ) ; if ( type . length ( ) < _NUM ) { type = null ; continue ; } } return type ; } | 56 |
java-test-8495 | java | What does the code generate ? | a subarray of a given byte array | public static byte [ ] sub Array ( byte [ ] input , int start , int end ) { byte [ ] result = new byte [ end - start ] ; System . arraycopy ( input , start , result , NUM , end - start ) ; return result ; } | public static byte [ ] subArray ( byte [ ] input , int start , int end ) { byte [ ] result = new byte [ end - start ] ; System . arraycopy ( input , start , result , _NUM , end - start ) ; return result ; } | 54 |
java-test-8498 | java | What is top - level filter determines ? | whether there is any sentence in the test set that can match it | public boolean in Test Set ( String source Side ) { if ( ! source Side . equals ( last Source Side ) ) { last Source Side = source Side ; accepted Last Source Side = filter . permits ( source Side ) ; } else { cached ++ ; } return accepted Last Source Side ; } | public boolean inTestSet ( String sourceSide ) { if ( ! sourceSide . equals ( lastSourceSide ) ) { lastSourceSide = sourceSide ; acceptedLastSourceSide = filter . permits ( sourceSide ) ; } else { cached ++ ; } return acceptedLastSourceSide ; } | 59 |
java-test-8499 | java | What can match it ? | any sentence in the test set | public boolean in Test Set ( String source Side ) { if ( ! source Side . equals ( last Source Side ) ) { last Source Side = source Side ; accepted Last Source Side = filter . permits ( source Side ) ; } else { cached ++ ; } return accepted Last Source Side ; } | public boolean inTestSet ( String sourceSide ) { if ( ! sourceSide . equals ( lastSourceSide ) ) { lastSourceSide = sourceSide ; acceptedLastSourceSide = filter . permits ( sourceSide ) ; } else { cached ++ ; } return acceptedLastSourceSide ; } | 59 |
java-test-8500 | java | What does top - level filter take ? | the source side of a rule | public boolean in Test Set ( String source Side ) { if ( ! source Side . equals ( last Source Side ) ) { last Source Side = source Side ; accepted Last Source Side = filter . permits ( source Side ) ; } else { cached ++ ; } return accepted Last Source Side ; } | public boolean inTestSet ( String sourceSide ) { if ( ! sourceSide . equals ( lastSourceSide ) ) { lastSourceSide = sourceSide ; acceptedLastSourceSide = filter . permits ( sourceSide ) ; } else { cached ++ ; } return acceptedLastSourceSide ; } | 59 |
java-test-8501 | java | What does this method create ? | a apropriate optimizer | protected ES Optimization create Optimizer ( Random Generator random ) throws Undefined Parameter Error { return new ES Parameter Optimization ( this , operators . length , ES Optimization . INIT TYPE RANDOM , get Parameter As Int ( PARAMETER MAX GENERATIONS ) , get Parameter As Int ( PARAMETER GENERATIONS WITHOUT IMPR... | protected ESOptimization createOptimizer ( RandomGenerator random ) throws UndefinedParameterError { return new ESParameterOptimization ( this , operators . length , ESOptimization . INIT_TYPE_RANDOM , getParameterAsInt ( PARAMETER_MAX_GENERATIONS ) , getParameterAsInt ( PARAMETER_GENERATIONS_WITHOUT_IMPROVAL ) , getPa... | 132 |
java-test-8502 | java | What understands the number if the double is in scientific notation if the double is in scientific notation ? | mysql | private String safe Double To String ( Double number ) { if ( number . is Na N ( ) ) { return STRING ; } String orig = number . to String ( ) ; int pos = orig . index Of ( STRING ) ; if ( ( pos == - NUM ) || ( orig . char At ( pos + NUM ) == STRING ) ) { return orig ; } else { String Buffer buff = new String Buffer ( o... | private String safeDoubleToString ( Double number ) { if ( number . isNaN ( ) ) { return STRING ; } String orig = number . toString ( ) ; int pos = orig . indexOf ( STRING ) ; if ( ( pos == - _NUM ) || ( orig . charAt ( pos + _NUM ) == STRING ) ) { return orig ; } else { StringBuffer buff = new StringBuffer ( orig ) ; ... | 108 |
java-test-8503 | java | When did the code read a string ? | in utf16 | protected String read String UTF 16 Z ( int addr ) { if ( addr == NUM ) { return null ; } I Memory Reader memory Reader = Memory Reader . get Memory Reader ( addr , NUM ) ; String Builder s = new String Builder ( ) ; while ( BOOL ) { int char 16 = memory Reader . read Next ( ) ; if ( char 16 == NUM ) { break ; } byte [... | protected String readStringUTF16Z ( int addr ) { if ( addr == _NUM ) { return null ; } IMemoryReader memoryReader = MemoryReader . getMemoryReader ( addr , _NUM ) ; StringBuilder s = new StringBuilder ( ) ; while ( _BOOL ) { int char16 = memoryReader . readNext ( ) ; if ( char16 == _NUM ) { break ; } byte [ ] bytes = n... | 141 |
java-test-8504 | java | What is returned a task object in back - end representation ? | by back - end | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8505 | java | How is a task created ? | in back - end | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8506 | java | Where is by back - end returned a task object ? | in back - end representation | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8507 | java | How is this function called usually ? | by taskbackend | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8508 | java | What did we poll when ? | task status | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8509 | java | For what purpose is the task object is converted to middle - end representation then ? | so that the legacy command execution scheduler can schedule commands | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8510 | java | What can schedule commands ? | the legacy command execution scheduler | @ Deprecated public static Task Entity convert Back End To Middle End ( Task Service . State task State ) { Task Entity task Entity = new Task Entity ( ) ; task Entity . set Id ( Service Utils . get ID From Document Self Link ( task State . document Self Link ) ) ; task Entity . set Entity Id ( task State . entity Id )... | @ Deprecated public static TaskEntity convertBackEndToMiddleEnd ( TaskService . State taskState ) { TaskEntity taskEntity = new TaskEntity ( ) ; taskEntity . setId ( ServiceUtils . getIDFromDocumentSelfLink ( taskState . documentSelfLink ) ) ; taskEntity . setEntityId ( taskState . entityId ) ; taskEntity . setEntityKi... | 372 |
java-test-8514 | java | What is found in context ? | one node | private boolean has Nodes In Context ( Site Node node ) { @ Suppress Warnings ( STRING ) Enumeration < Site Node > en = node . children ( ) ; while ( en . has More Elements ( ) ) { Site Node sn = en . next Element ( ) ; if ( is In Context ( sn ) ) { return BOOL ; } if ( has Nodes In Context ( sn ) ) { return BOOL ; } }... | private boolean hasNodesInContext ( SiteNode node ) { @ SuppressWarnings ( STRING ) Enumeration < SiteNode > en = node . children ( ) ; while ( en . hasMoreElements ( ) ) { SiteNode sn = en . nextElement ( ) ; if ( isInContext ( sn ) ) { return _BOOL ; } if ( hasNodesInContext ( sn ) ) { return _BOOL ; } } return _BOOL... | 87 |
java-test-8516 | java | What does the code update ? | a vplexstorageviewinfo object with the initiators pwwn based on the initiators | void update Storage View Initiator PWWN ( V Plex Storage View Info storage View Info ) { List < String > initiators = storage View Info . get Initiators ( ) ; List < V Plex Initiator Info > initiators Info List = new Array List < V Plex Initiator Info > ( ) ; for ( String initiator : initiators ) { V Plex Initiator Inf... | void updateStorageViewInitiatorPWWN ( VPlexStorageViewInfo storageViewInfo ) { List < String > initiators = storageViewInfo . getInitiators ( ) ; List < VPlexInitiatorInfo > initiatorsInfoList = new ArrayList < VPlexInitiatorInfo > ( ) ; for ( String initiator : initiators ) { VPlexInitiatorInfo initiatorInfo = new VPl... | 237 |
java-test-8517 | java | What does the code write ? | a source or sink domain pair | private void write Source Sink Dom Pair ( Source Sink Dom Pair pair , Document document , Element root Element ) { final Element pair Element ; final Element source Sink Element ; switch ( pair . get Type ( ) ) { case Source Dom Pair : pair Element = document . create Element ( STRING ) ; source Sink Element = document... | private void writeSourceSinkDomPair ( SourceSinkDomPair pair , Document document , Element rootElement ) { final Element pairElement ; final Element sourceSinkElement ; switch ( pair . getType ( ) ) { case SourceDomPair : pairElement = document . createElement ( STRING ) ; sourceSinkElement = document . createElement (... | 174 |
java-test-8518 | java | What does this overridden return then ? | a subset of omgraphics that are actually on the map | public synchronized OM Graphic List prepare ( ) { OM Graphic List list = get List ( ) ; if ( list != null ) { list . clear ( ) ; } else { list = new OM Graphic List ( ) ; } if ( spatial Index == null ) return list ; try { if ( buffered List == null ) { buffered List = get Whole Planet ( ) ; } } catch ( Format Exception... | public synchronized OMGraphicList prepare ( ) { OMGraphicList list = getList ( ) ; if ( list != null ) { list . clear ( ) ; } else { list = new OMGraphicList ( ) ; } if ( spatialIndex == null ) return list ; try { if ( bufferedList == null ) { bufferedList = getWholePlanet ( ) ; } } catch ( FormatException fe ) { if ( ... | 498 |
java-test-8519 | java | What returns a subset of omgraphics that are actually on the map then ? | this overridden | public synchronized OM Graphic List prepare ( ) { OM Graphic List list = get List ( ) ; if ( list != null ) { list . clear ( ) ; } else { list = new OM Graphic List ( ) ; } if ( spatial Index == null ) return list ; try { if ( buffered List == null ) { buffered List = get Whole Planet ( ) ; } } catch ( Format Exception... | public synchronized OMGraphicList prepare ( ) { OMGraphicList list = getList ( ) ; if ( list != null ) { list . clear ( ) ; } else { list = new OMGraphicList ( ) ; } if ( spatialIndex == null ) return list ; try { if ( bufferedList == null ) { bufferedList = getWholePlanet ( ) ; } } catch ( FormatException fe ) { if ( ... | 498 |
java-test-8520 | java | What do the hex data in the data area need ? | to be converted to character data | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8521 | java | What needs to be converted to character data ? | the hex data in the data area | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8522 | java | What do the button say ? | ' text ' | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8523 | java | When is it used ? | when the button saying ' text ' is pressed indicating that the hex data in the data area needs to be converted to character data | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8524 | java | What represents one char ? | every two characters read | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8525 | java | What did every two characters read represent ? | one char | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8526 | java | What does this method convert it ? | into a text string ( i . e . every two characters read are treated as hex and represent one char ) | private void to Char String ( ) { String hex Text = pub Data . get Text ( ) ; if ( hex Text . length ( ) % NUM != NUM ) { mqtt Mgr . set Title Text ( STRING ) ; } else { try { byte [ ] char Array = new byte [ hex Text . length ( ) / NUM ] ; for ( int i = NUM ; i < char Array . length ; i ++ ) { char Array [ i ] = ( byt... | private void toCharString ( ) { String hexText = pubData . getText ( ) ; if ( hexText . length ( ) % _NUM != _NUM ) { mqttMgr . setTitleText ( STRING ) ; } else { try { byte [ ] charArray = new byte [ hexText . length ( ) / _NUM ] ; for ( int i = _NUM ; i < charArray . length ; i ++ ) { charArray [ i ] = ( byte ) Integ... | 194 |
java-test-8527 | java | When is this disconnected arraylist added to the _ contents ? | when ( if ) a paste is made . the disconnected _ selectiongroup can be dragged to a new location | @ Override protected void copy Item ( Positionable p ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING , selection Group != null ? STRING + selection Group . size ( ) : STRING ) ; } if ( paste Pending ) { paste Items ( ) ; } if ( selection Group != null && ! selection Group . contains ( p ) ) { deselect Sele... | @ Override protected void copyItem ( Positionable p ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING , _selectionGroup != null ? STRING + _selectionGroup . size ( ) : STRING ) ; } if ( _pastePending ) { pasteItems ( ) ; } if ( _selectionGroup != null && ! _selectionGroup . contains ( p ) ) { deselectSelection... | 168 |
java-test-8528 | java | What does the code create ? | a single mongodb morphia datastore | private synchronized static Datastore create Datastore ( ) { if ( data Store == null ) { Morphia m = new Morphia ( ) ; String mongo Name = Kraken Config . get Property ( STRING ) ; data Store = m . create Datastore ( get Mongo ( mongo Name ) , mongo Name ) ; m . map ( Customer . class ) ; m . map ( Project . class ) ; ... | private synchronized static Datastore createDatastore ( ) { if ( dataStore == null ) { Morphia m = new Morphia ( ) ; String mongoName = KrakenConfig . getProperty ( STRING ) ; dataStore = m . createDatastore ( getMongo ( mongoName ) , mongoName ) ; m . map ( Customer . class ) ; m . map ( Project . class ) ; m . map ( ... | 256 |
java-test-8529 | java | What does the code load into the bufferedpanel ? | a preview image of the unit | public Image load Preview Image ( Entity entity , Image camo , int tint , Component bp ) { Image base = mech Tileset . image For ( entity , boardview , - NUM ) ; Entity Image entity Image = new Entity Image ( base , tint , camo , bp ) ; entity Image . load Facings ( ) ; Image preview = entity Image . get Facing ( entit... | public Image loadPreviewImage ( Entity entity , Image camo , int tint , Component bp ) { Image base = mechTileset . imageFor ( entity , boardview , - _NUM ) ; EntityImage entityImage = new EntityImage ( base , tint , camo , bp ) ; entityImage . loadFacings ( ) ; Image preview = entityImage . getFacing ( entity . getFac... | 127 |
java-test-8530 | java | When did the code call from sungraphicsenv ? | when there has been a display mode change | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8531 | java | What do we is not attempt ? | to recreate or re - render them | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8532 | java | How did the code call when there has been a display mode change ? | from sungraphicsenv | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8533 | java | What did we nullify just ? | the old surface data object | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8534 | java | What do we invalidate simply here ? | hardware surfaces | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8535 | java | What do we wait just ? | for a future method in the rendering process to recreate the surface | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8536 | java | What recreates the surface ? | a future method | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8537 | java | What do this be ? | to avoid threading conflicts with the native toolkit and associated threads | public void display Changed ( ) { if ( ! is Acceleration Enabled ( ) ) { return ; } lost Surface = BOOL ; if ( sd Accel != null ) { sd Backup = null ; Surface Data old Data = sd Accel ; sd Accel = null ; old Data . invalidate ( ) ; sd Current = get Backup Surface ( ) ; } v Img . update Graphics Config ( ) ; } | public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = _BOOL ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; } | 78 |
java-test-8538 | java | What does the code create ? | a new message with the given number of parts | public Message ( int number Of Parts , Version dest Version ) { this . version = dest Version ; Assert . assert True ( dest Version != null , STRING ) ; parts List = new Part [ number Of Parts ] ; this . number Of Parts = number Of Parts ; for ( int i = NUM ; i < parts List . length ; i ++ ) { parts List [ i ] = new Pa... | public Message ( int numberOfParts , Version destVersion ) { this . version = destVersion ; Assert . assertTrue ( destVersion != null , STRING ) ; partsList = new Part [ numberOfParts ] ; this . numberOfParts = numberOfParts ; for ( int i = _NUM ; i < partsList . length ; i ++ ) { partsList [ i ] = new Part ( ) ; } } | 85 |
java-test-8540 | java | What does the code create ? | a new positionableshape | protected J Panel make Params Panel ( ) { J Panel panel = super . make Params Panel ( ) ; J Panel p = new J Panel ( ) ; p . set Layout ( new Box Layout ( p , Box Layout . Y AXIS ) ) ; p . add ( new J Label ( Bundle . get Message ( STRING ) ) ) ; J Panel pp = new J Panel ( ) ; radius Text = new J Text Field ( NUM ) ; ra... | protected JPanel makeParamsPanel ( ) { JPanel panel = super . makeParamsPanel ( ) ; JPanel p = new JPanel ( ) ; p . setLayout ( new BoxLayout ( p , BoxLayout . Y_AXIS ) ) ; p . add ( new JLabel ( Bundle . getMessage ( STRING ) ) ) ; JPanel pp = new JPanel ( ) ; _radiusText = new JTextField ( _NUM ) ; _radiusText . setT... | 177 |
java-test-8541 | java | What does the code get ? | the path segment of the full path to a file ( i . e . one which originally included the file name ) | private final String extract Path ( String file ) { int last Sep Pos = file . last Index Of ( File . separator ) ; return ( last Sep Pos == - NUM ? STRING : File . separator + file . substring ( NUM , last Sep Pos ) ) ; } | private final String extractPath ( String file ) { int lastSepPos = file . lastIndexOf ( File . separator ) ; return ( lastSepPos == - _NUM ? STRING : File . separator + file . substring ( _NUM , lastSepPos ) ) ; } | 54 |
java-test-8542 | java | What does the code remove ? | a connection matching the client i d specified | public RTMP Connection remove Connection ( int client Id ) { RTMP Connection conn Return = null ; for ( RTMP Connection conn : rtmp Connections ) { if ( conn . get Id ( ) == client Id ) { conn Return = conn ; break ; } } if ( conn Return != null ) { rtmp Connections . remove ( conn Return ) ; } return conn Return ; } | public RTMPConnection removeConnection ( int clientId ) { RTMPConnection connReturn = null ; for ( RTMPConnection conn : rtmpConnections ) { if ( conn . getId ( ) == clientId ) { connReturn = conn ; break ; } } if ( connReturn != null ) { rtmpConnections . remove ( connReturn ) ; } return connReturn ; } | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.