id stringlengths 11 16 | language stringclasses 2
values | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-7884 | java | What do you want ? | to write out the file name into that parent directory | public static File remove Parent ( File parent , File file ) { String absolute Path = file . get Absolute Path ( ) ; String parent Absolute Path = parent . get Absolute Path ( ) ; String new Path = absolute Path . replace ( parent Absolute Path + STRING , STRING ) ; return new File ( new Path ) ; } | public static File removeParent ( File parent , File file ) { String absolutePath = file . getAbsolutePath ( ) ; String parentAbsolutePath = parent . getAbsolutePath ( ) ; String newPath = absolutePath . replace ( parentAbsolutePath + STRING , STRING ) ; return new File ( newPath ) ; } | 65 |
java-test-7885 | java | In which direction does the code convert a file into a relative path ? | from a given parent | public static File remove Parent ( File parent , File file ) { String absolute Path = file . get Absolute Path ( ) ; String parent Absolute Path = parent . get Absolute Path ( ) ; String new Path = absolute Path . replace ( parent Absolute Path + STRING , STRING ) ; return new File ( new Path ) ; } | public static File removeParent ( File parent , File file ) { String absolutePath = file . getAbsolutePath ( ) ; String parentAbsolutePath = parent . getAbsolutePath ( ) ; String newPath = absolutePath . replace ( parentAbsolutePath + STRING , STRING ) ; return new File ( newPath ) ; } | 65 |
java-test-7886 | java | How does the gps timestamp fix ? | in exif | private static void fix GPS Time Stamp ( XMP Node exif Schema ) throws XMP Exception { XMP Node gps Date Time = XMP Node Utils . find Child Node ( exif Schema , STRING , BOOL ) ; if ( gps Date Time == null ) { return ; } try { XMP Date Time bin GPS Stamp ; XMP Date Time bin Other Date ; bin GPS Stamp = XMP Utils . conv... | private static void fixGPSTimeStamp ( XMPNode exifSchema ) throws XMPException { XMPNode gpsDateTime = XMPNodeUtils . findChildNode ( exifSchema , STRING , _BOOL ) ; if ( gpsDateTime == null ) { return ; } try { XMPDateTime binGPSStamp ; XMPDateTime binOtherDate ; binGPSStamp = XMPUtils . convertToDate ( gpsDateTime . ... | 309 |
java-test-7888 | java | How does a file with the native desktop printing facility print ? | using the associated application ' s print command | public void print ( File file ) throws IO Exception { check Exec ( ) ; Security Manager sm = System . get Security Manager ( ) ; if ( sm != null ) { sm . check Print Job Access ( ) ; } check Action Support ( Action . PRINT ) ; check File Validation ( file ) ; peer . print ( file ) ; } | public void print ( File file ) throws IOException { checkExec ( ) ; SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPrintJobAccess ( ) ; } checkActionSupport ( Action . PRINT ) ; checkFileValidation ( file ) ; peer . print ( file ) ; } | 69 |
java-test-7890 | java | What does the code add ? | a message waiting | public void add Msg Waiting ( Mwi Type type , int count , Mwi Profile profile , boolean store Message ) { if ( count > NUM ) { count = NUM ; } messages . add ( new Msg Waiting ( type , count , profile , store Message ) ) ; } | public void addMsgWaiting ( MwiType type , int count , MwiProfile profile , boolean storeMessage ) { if ( count > _NUM ) { count = _NUM ; } messages_ . add ( new MsgWaiting ( type , count , profile , storeMessage ) ) ; } | 54 |
java-test-7893 | java | What will tags use the specified imagegetter in the html ? | to request a representation of the image ( use null if you don ' t want this ) and the specified taghandler to handle unknown tags ( | private static Spannable String Builder from Html ( String subject , String source , Theme Colors colors , Image Getter image Getter , boolean open Spoilers ) { Parser parser = new Parser ( ) ; try { parser . set Property ( Parser . schema Property , Html Parser Holder . schema ) ; } catch ( org . xml . sax . SAX Not R... | private static SpannableStringBuilder fromHtml ( String subject , String source , ThemeColors colors , ImageGetter imageGetter , boolean openSpoilers ) { Parser parser = new Parser ( ) ; try { parser . setProperty ( Parser . schemaProperty , HtmlParserHolder . schema ) ; } catch ( org . xml . sax . SAXNotRecognizedExce... | 139 |
java-test-7894 | java | What will tags use to request a representation of the image ( use null if you don ' t want this ) and the specified taghandler to handle unknown tags ( in the html ? | the specified imagegetter | private static Spannable String Builder from Html ( String subject , String source , Theme Colors colors , Image Getter image Getter , boolean open Spoilers ) { Parser parser = new Parser ( ) ; try { parser . set Property ( Parser . schema Property , Html Parser Holder . schema ) ; } catch ( org . xml . sax . SAX Not R... | private static SpannableStringBuilder fromHtml ( String subject , String source , ThemeColors colors , ImageGetter imageGetter , boolean openSpoilers ) { Parser parser = new Parser ( ) ; try { parser . setProperty ( Parser . schemaProperty , HtmlParserHolder . schema ) ; } catch ( org . xml . sax . SAXNotRecognizedExce... | 139 |
java-test-7895 | java | What does the helplabel show ? | a help icon | public static J Label initialize Help Label ( J Panel label Panel ) { J Panel help Panel = new J Panel ( ) ; help Panel . set Layout ( new Grid Bag Layout ( ) ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . anchor = Grid Bag Constraints . NORTH ; gbc . weightx = NUM ; gbc . fill = Grid Bag Constrain... | public static JLabel initializeHelpLabel ( JPanel labelPanel ) { JPanel helpPanel = new JPanel ( ) ; helpPanel . setLayout ( new GridBagLayout ( ) ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . NORTH ; gbc . weightx = _NUM ; gbc . fill = GridBagConstraints . HORIZONTAL ; g... | 221 |
java-test-7896 | java | What does the code create ? | a helplabel | public static J Label initialize Help Label ( J Panel label Panel ) { J Panel help Panel = new J Panel ( ) ; help Panel . set Layout ( new Grid Bag Layout ( ) ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . anchor = Grid Bag Constraints . NORTH ; gbc . weightx = NUM ; gbc . fill = Grid Bag Constrain... | public static JLabel initializeHelpLabel ( JPanel labelPanel ) { JPanel helpPanel = new JPanel ( ) ; helpPanel . setLayout ( new GridBagLayout ( ) ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . NORTH ; gbc . weightx = _NUM ; gbc . fill = GridBagConstraints . HORIZONTAL ; g... | 221 |
java-test-7897 | java | What shows a help icon ? | the helplabel | public static J Label initialize Help Label ( J Panel label Panel ) { J Panel help Panel = new J Panel ( ) ; help Panel . set Layout ( new Grid Bag Layout ( ) ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . anchor = Grid Bag Constraints . NORTH ; gbc . weightx = NUM ; gbc . fill = Grid Bag Constrain... | public static JLabel initializeHelpLabel ( JPanel labelPanel ) { JPanel helpPanel = new JPanel ( ) ; helpPanel . setLayout ( new GridBagLayout ( ) ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . NORTH ; gbc . weightx = _NUM ; gbc . fill = GridBagConstraints . HORIZONTAL ; g... | 221 |
java-test-7898 | java | What do symbols represent ? | primary and secondary stress | public Allophone [ ] split Into Allophones ( String allophone String ) { List < String > phones = split Into Allophone List ( allophone String , BOOL ) ; Allophone [ ] allos = new Allophone [ phones . size ( ) ] ; for ( int i = NUM ; i < phones . size ( ) ; i ++ ) { allos [ i ] = get Allophone ( phones . get ( i ) ) ; ... | public Allophone [ ] splitIntoAllophones ( String allophoneString ) { List < String > phones = splitIntoAllophoneList ( allophoneString , _BOOL ) ; Allophone [ ] allos = new Allophone [ phones . size ( ) ] ; for ( int i = _NUM ; i < phones . size ( ) ; i ++ ) { allos [ i ] = getAllophone ( phones . get ( i ) ) ; assert... | 104 |
java-test-7899 | java | How do we update the list of variables and terminals ? | with any new grammar symbols | public void update Vars And Terminals ( ) { if ( rules == null ) { vars = new Array List < String > ( ) ; terminals = new Array List < String > ( ) ; return ; } for ( int i = NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; update Vars And Terminals ( r ) ; } } | public void updateVarsAndTerminals ( ) { if ( rules == null ) { vars = new ArrayList < String > ( ) ; terminals = new ArrayList < String > ( ) ; return ; } for ( int i = _NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; updateVarsAndTerminals ( r ) ; } } | 80 |
java-test-7900 | java | What do we update with any new grammar symbols ? | the list of variables and terminals | public void update Vars And Terminals ( ) { if ( rules == null ) { vars = new Array List < String > ( ) ; terminals = new Array List < String > ( ) ; return ; } for ( int i = NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; update Vars And Terminals ( r ) ; } } | public void updateVarsAndTerminals ( ) { if ( rules == null ) { vars = new ArrayList < String > ( ) ; terminals = new ArrayList < String > ( ) ; return ; } for ( int i = _NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; updateVarsAndTerminals ( r ) ; } } | 80 |
java-test-7901 | java | What do we want whenever a new rule is added to the grammar ? | to update the list of variables and terminals with any new grammar symbols | public void update Vars And Terminals ( ) { if ( rules == null ) { vars = new Array List < String > ( ) ; terminals = new Array List < String > ( ) ; return ; } for ( int i = NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; update Vars And Terminals ( r ) ; } } | public void updateVarsAndTerminals ( ) { if ( rules == null ) { vars = new ArrayList < String > ( ) ; terminals = new ArrayList < String > ( ) ; return ; } for ( int i = _NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; updateVarsAndTerminals ( r ) ; } } | 80 |
java-test-7902 | java | When do we want to update the list of variables and terminals with any new grammar symbols ? | whenever a new rule is added to the grammar | public void update Vars And Terminals ( ) { if ( rules == null ) { vars = new Array List < String > ( ) ; terminals = new Array List < String > ( ) ; return ; } for ( int i = NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; update Vars And Terminals ( r ) ; } } | public void updateVarsAndTerminals ( ) { if ( rules == null ) { vars = new ArrayList < String > ( ) ; terminals = new ArrayList < String > ( ) ; return ; } for ( int i = _NUM ; i < rules . size ( ) ; i ++ ) { Rule r = rules . get ( i ) ; updateVarsAndTerminals ( r ) ; } } | 80 |
java-test-7903 | java | What trains the suggester ? | with a new instance , given the estimation values for each category , the original category decided and the actual category | public void train ( Map Category Values , String s Suggested Category , String s Final Category ) { if ( Category Values == null ) Category Values = new Hash Map ( ) ; if ( Category Values . size ( ) > NUM ) v Previous Decisions . add ( new Decision Support ( Category Values , s Suggested Category , s Final Category ) ... | public void train ( Map CategoryValues , String sSuggestedCategory , String sFinalCategory ) { if ( CategoryValues == null ) CategoryValues = new HashMap ( ) ; if ( CategoryValues . size ( ) > _NUM ) vPreviousDecisions . add ( new DecisionSupport ( CategoryValues , sSuggestedCategory , sFinalCategory ) ) ; } | 70 |
java-test-7904 | java | What does with a new instance , given the estimation values for each category , the original category decided and the actual category train ? | the suggester | public void train ( Map Category Values , String s Suggested Category , String s Final Category ) { if ( Category Values == null ) Category Values = new Hash Map ( ) ; if ( Category Values . size ( ) > NUM ) v Previous Decisions . add ( new Decision Support ( Category Values , s Suggested Category , s Final Category ) ... | public void train ( Map CategoryValues , String sSuggestedCategory , String sFinalCategory ) { if ( CategoryValues == null ) CategoryValues = new HashMap ( ) ; if ( CategoryValues . size ( ) > _NUM ) vPreviousDecisions . add ( new DecisionSupport ( CategoryValues , sSuggestedCategory , sFinalCategory ) ) ; } | 70 |
java-test-7909 | java | What does the code interrupt ? | all currently executing tasks | public void halt All Tasks ( ) { Linked List < Thread > ending Threads = new Linked List < > ( ) ; ending Threads . add All ( executions . values ( ) ) ; for ( Thread thread : ending Threads ) { while ( thread . is Alive ( ) && thread != Thread . current Thread ( ) ) { LOGGER . info ( STRING + thread ) ; thread . inter... | public void haltAllTasks ( ) { LinkedList < Thread > endingThreads = new LinkedList < > ( ) ; endingThreads . addAll ( executions . values ( ) ) ; for ( Thread thread : endingThreads ) { while ( thread . isAlive ( ) && thread != Thread . currentThread ( ) ) { LOGGER . info ( STRING + thread ) ; thread . interrupt ( ) ;... | 89 |
java-test-7910 | java | What does the code clear ? | the record of all executing tasks | public void halt All Tasks ( ) { Linked List < Thread > ending Threads = new Linked List < > ( ) ; ending Threads . add All ( executions . values ( ) ) ; for ( Thread thread : ending Threads ) { while ( thread . is Alive ( ) && thread != Thread . current Thread ( ) ) { LOGGER . info ( STRING + thread ) ; thread . inter... | public void haltAllTasks ( ) { LinkedList < Thread > endingThreads = new LinkedList < > ( ) ; endingThreads . addAll ( executions . values ( ) ) ; for ( Thread thread : endingThreads ) { while ( thread . isAlive ( ) && thread != Thread . currentThread ( ) ) { LOGGER . info ( STRING + thread ) ; thread . interrupt ( ) ;... | 89 |
java-test-7911 | java | What does the code create ? | the gui layout of the dialog | private void create Panels ( ) { set Layout ( new Border Layout ( NUM , NUM ) ) ; final J Panel p 1 = new J Panel ( ) ; p 1 . set Layout ( new Border Layout ( NUM , NUM ) ) ; p 1 . set Border ( new Titled Border ( STRING ) ) ; final J Panel p 1 1 = new J Panel ( ) ; p 1 1 . set Layout ( new Border Layout ( NUM , NUM ) ... | private void createPanels ( ) { setLayout ( new BorderLayout ( _NUM , _NUM ) ) ; final JPanel p_1 = new JPanel ( ) ; p_1 . setLayout ( new BorderLayout ( _NUM , _NUM ) ) ; p_1 . setBorder ( new TitledBorder ( STRING ) ) ; final JPanel p_1_1 = new JPanel ( ) ; p_1_1 . setLayout ( new BorderLayout ( _NUM , _NUM ) ) ; p_1... | 405 |
java-test-7912 | java | What do a new larger image contain ? | the shadow | public static Image dropshadow ( Image source , int blur Radius , float opacity , int x Distance , int y Distance ) { Image s = dropshadow ( source , blur Radius , opacity ) ; Image n = Image . create Image ( source . get Width ( ) + Math . abs ( x Distance ) , source . get Height ( ) + Math . abs ( y Distance ) , NUM ... | public static Image dropshadow ( Image source , int blurRadius , float opacity , int xDistance , int yDistance ) { Image s = dropshadow ( source , blurRadius , opacity ) ; Image n = Image . createImage ( source . getWidth ( ) + Math . abs ( xDistance ) , source . getHeight ( ) + Math . abs ( yDistance ) , _NUM ) ; Grap... | 195 |
java-test-7913 | java | What is containing the shadow ? | a new larger image | public static Image dropshadow ( Image source , int blur Radius , float opacity , int x Distance , int y Distance ) { Image s = dropshadow ( source , blur Radius , opacity ) ; Image n = Image . create Image ( source . get Width ( ) + Math . abs ( x Distance ) , source . get Height ( ) + Math . abs ( y Distance ) , NUM ... | public static Image dropshadow ( Image source , int blurRadius , float opacity , int xDistance , int yDistance ) { Image s = dropshadow ( source , blurRadius , opacity ) ; Image n = Image . createImage ( source . getWidth ( ) + Math . abs ( xDistance ) , source . getHeight ( ) + Math . abs ( yDistance ) , _NUM ) ; Grap... | 195 |
java-test-7914 | java | What does the code return ? | a new larger image containing the shadow | public static Image dropshadow ( Image source , int blur Radius , float opacity , int x Distance , int y Distance ) { Image s = dropshadow ( source , blur Radius , opacity ) ; Image n = Image . create Image ( source . get Width ( ) + Math . abs ( x Distance ) , source . get Height ( ) + Math . abs ( y Distance ) , NUM ... | public static Image dropshadow ( Image source , int blurRadius , float opacity , int xDistance , int yDistance ) { Image s = dropshadow ( source , blurRadius , opacity ) ; Image n = Image . createImage ( source . getWidth ( ) + Math . abs ( xDistance ) , source . getHeight ( ) + Math . abs ( yDistance ) , _NUM ) ; Grap... | 195 |
java-test-7915 | java | What maximizes the objective function ? | the next element of the permutation | protected int select Item ( Int Sorted Set remaining I , List < Tuple 2 od < I > > list ) { double [ ] max = new double [ ] { Double . NEGATIVE INFINITY } ; int [ ] best I = new int [ ] { remaining I . first Int ( ) } ; remaining I . for Each ( null ) ; return best I [ NUM ] ; } | protected int selectItem ( IntSortedSet remainingI , List < Tuple2od < I > > list ) { double [ ] max = new double [ ] { Double . NEGATIVE_INFINITY } ; int [ ] bestI = new int [ ] { remainingI . firstInt ( ) } ; remainingI . forEach ( null ) ; return bestI [ _NUM ] ; } | 76 |
java-test-7916 | java | What does the next element of the permutation maximize ? | the objective function | protected int select Item ( Int Sorted Set remaining I , List < Tuple 2 od < I > > list ) { double [ ] max = new double [ ] { Double . NEGATIVE INFINITY } ; int [ ] best I = new int [ ] { remaining I . first Int ( ) } ; remaining I . for Each ( null ) ; return best I [ NUM ] ; } | protected int selectItem ( IntSortedSet remainingI , List < Tuple2od < I > > list ) { double [ ] max = new double [ ] { Double . NEGATIVE_INFINITY } ; int [ ] bestI = new int [ ] { remainingI . firstInt ( ) } ; remainingI . forEach ( null ) ; return bestI [ _NUM ] ; } | 76 |
java-test-7917 | java | What does the code add editor depending on m_newrow ? | to parameterpanel alernative | private void add Line ( Grid Field field , W Editor editor , boolean mandatory ) { log . fine ( STRING + field ) ; Label label = editor . get Label ( ) ; editor . set Read Write ( BOOL ) ; editor . set Mandatory ( mandatory ) ; field . add Property Change Listener ( editor ) ; if ( m new Row ) { m row = new Row ( ) ; m... | private void addLine ( GridField field , WEditor editor , boolean mandatory ) { log . fine ( STRING + field ) ; Label label = editor . getLabel ( ) ; editor . setReadWrite ( _BOOL ) ; editor . setMandatory ( mandatory ) ; field . addPropertyChangeListener ( editor ) ; if ( m_newRow ) { m_row = new Row ( ) ; m_row . set... | 162 |
java-test-7918 | java | For what purpose does the code locate all challenge handlers ? | to serve the given location | public List < Challenge Handler > lookup ( String location ) { List < Challenge Handler > result = Collections . empty List ( ) ; if ( location != null ) { Node < Challenge Handler , Uri Element > result Node = find Best Matching Node ( location ) ; if ( result Node != null ) { return result Node . get Values ( ) ; } }... | public List < ChallengeHandler > lookup ( String location ) { List < ChallengeHandler > result = Collections . emptyList ( ) ; if ( location != null ) { Node < ChallengeHandler , UriElement > resultNode = findBestMatchingNode ( location ) ; if ( resultNode != null ) { return resultNode . getValues ( ) ; } } return resu... | 75 |
java-test-7919 | java | What stores in settings ? | current package - order | public void store New Package Order ( ) { List < String > package List = new Array List < String > ( ) ; for ( App Info act App : m Installed Apps ) { package List . add ( act App . package Name ) ; } m Settings . set Package Order ( package List ) ; } | public void storeNewPackageOrder ( ) { List < String > packageList = new ArrayList < String > ( ) ; for ( AppInfo actApp : mInstalledApps ) { packageList . add ( actApp . packageName ) ; } mSettings . setPackageOrder ( packageList ) ; } | 62 |
java-test-7920 | java | Where do current package - order store ? | in settings | public void store New Package Order ( ) { List < String > package List = new Array List < String > ( ) ; for ( App Info act App : m Installed Apps ) { package List . add ( act App . package Name ) ; } m Settings . set Package Order ( package List ) ; } | public void storeNewPackageOrder ( ) { List < String > packageList = new ArrayList < String > ( ) ; for ( AppInfo actApp : mInstalledApps ) { packageList . add ( actApp . packageName ) ; } mSettings . setPackageOrder ( packageList ) ; } | 62 |
java-test-7922 | java | What does the code remove ? | an exceptions that are older than the current gc version for each member in the rvv | public void prune Old Exceptions ( ) { Set < T > members ; members = new Hash Set < T > ( member To GC Version . key Set ( ) ) ; for ( T member : members ) { Long gc Version = member To GC Version . get ( member ) ; Region Version Holder < T > holder ; holder = member To Version . get ( member ) ; if ( holder != null &... | public void pruneOldExceptions ( ) { Set < T > members ; members = new HashSet < T > ( memberToGCVersion . keySet ( ) ) ; for ( T member : members ) { Long gcVersion = memberToGCVersion . get ( member ) ; RegionVersionHolder < T > holder ; holder = memberToVersion . get ( member ) ; if ( holder != null && gcVersion != ... | 124 |
java-test-7923 | java | What does the code serve ? | a clash session | public static Server Session new Session ( Clash Services services , Connection client Connection , Main . Server Command command ) throws IO Exception { Server Session session = new Server Session ( services , client Connection , command ) ; local Session . set ( session ) ; try { Thread t = new Thread ( null , client... | public static ServerSession newSession ( ClashServices services , Connection clientConnection , Main . ServerCommand command ) throws IOException { ServerSession session = new ServerSession ( services , clientConnection , command ) ; localSession . set ( session ) ; try { Thread t = new Thread ( null , clientConnection... | 112 |
java-test-7924 | java | What does the code generate ? | a subarray of a given biginteger array | public static Big Integer [ ] sub Array ( Big Integer [ ] input , int start , int end ) { Big Integer [ ] result = new Big Integer [ end - start ] ; System . arraycopy ( input , start , result , NUM , end - start ) ; return result ; } | public static BigInteger [ ] subArray ( BigInteger [ ] input , int start , int end ) { BigInteger [ ] result = new BigInteger [ end - start ] ; System . arraycopy ( input , start , result , _NUM , end - start ) ; return result ; } | 58 |
java-test-7925 | java | Why are special characters not allowed if the name is valid ? | as it will conflict with file naming system | public static boolean is Name Valid ( String a Name ) { if ( a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a Name . contains ( STRING ) || a N... | public static boolean isNameValid ( String aName ) { if ( aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contains ( STRING ) || aName . contai... | 114 |
java-test-7927 | java | How does a set of points transform ? | using the provided transform | public void transform Points ( Object native Transform , int point Size , float [ ] in , int src Pos , float [ ] out , int dest Pos , int num Points ) { float [ ] buf In = new float [ point Size ] ; float [ ] buf Out = new float [ point Size ] ; int len = num Points * point Size ; for ( int i = NUM ; i < len ; i += poi... | public void transformPoints ( Object nativeTransform , int pointSize , float [ ] in , int srcPos , float [ ] out , int destPos , int numPoints ) { float [ ] bufIn = new float [ pointSize ] ; float [ ] bufOut = new float [ pointSize ] ; int len = numPoints * pointSize ; for ( int i = _NUM ; i < len ; i += pointSize ) { ... | 143 |
java-test-7928 | java | What does the code create ? | a mapping of the service name to the display name for the service | private Map map Name To Display Name ( Set names ) { Map map = new Hash Map ( names . size ( ) * NUM ) ; AM View Config v Config = AM View Config . get Instance ( ) ; for ( Iterator iter = names . iterator ( ) ; iter . has Next ( ) ; ) { String name = ( String ) iter . next ( ) ; if ( v Config . is Service Visible ( na... | private Map mapNameToDisplayName ( Set names ) { Map map = new HashMap ( names . size ( ) * _NUM ) ; AMViewConfig vConfig = AMViewConfig . getInstance ( ) ; for ( Iterator iter = names . iterator ( ) ; iter . hasNext ( ) ; ) { String name = ( String ) iter . next ( ) ; if ( vConfig . isServiceVisible ( name ) ) { Strin... | 129 |
java-test-7929 | java | What does the code use ? | the pagination parameters from the request | @ Suppress Warnings ( STRING ) public Data Response paginate List ( Map < String , String > request Params , Query query , String default Sort , Map < String , Query Property > properties ) { return paginate List ( request Params , null , query , default Sort , properties ) ; } | @ SuppressWarnings ( STRING ) public DataResponse paginateList ( Map < String , String > requestParams , Query query , String defaultSort , Map < String , QueryProperty > properties ) { return paginateList ( requestParams , null , query , defaultSort , properties ) ; } | 56 |
java-test-7930 | java | What valued real ? | buffer sizes | public Polyphase FIR Decimating Filter RB ( float [ ] coefficients , int decimation Ratio , float gain ) { m Decimation Ratio = decimation Ratio ; m Gain = gain ; create Filter Stages ( coefficients , m Decimation Ratio ) ; m Filter Stage Pointer = m Filter Stages . size ( ) - NUM ; } | public PolyphaseFIRDecimatingFilter_RB ( float [ ] coefficients , int decimationRatio , float gain ) { mDecimationRatio = decimationRatio ; mGain = gain ; createFilterStages ( coefficients , mDecimationRatio ) ; mFilterStagePointer = mFilterStages . size ( ) - _NUM ; } | 59 |
java-test-7931 | java | What is equal to the floor of the input buffer size divided by the decimation ratio the filter ? | the output buffer size | public Polyphase FIR Decimating Filter RB ( float [ ] coefficients , int decimation Ratio , float gain ) { m Decimation Ratio = decimation Ratio ; m Gain = gain ; create Filter Stages ( coefficients , m Decimation Ratio ) ; m Filter Stage Pointer = m Filter Stages . size ( ) - NUM ; } | public PolyphaseFIRDecimatingFilter_RB ( float [ ] coefficients , int decimationRatio , float gain ) { mDecimationRatio = decimationRatio ; mGain = gain ; createFilterStages ( coefficients , mDecimationRatio ) ; mFilterStagePointer = mFilterStages . size ( ) - _NUM ; } | 59 |
java-test-7932 | java | How did a symmetric key generate ? | using shared secret | public static String decrypt With Symmetric Key ( String data , String enc Algorithm , String secret ) throws Exception { try { String algorithm = enc Algorithm ; if ( ! algorithm . starts With ( STRING ) ) { algorithm = STRING + enc Algorithm ; } Secret Key Factory sk Factory = Secret Key Factory . get Instance ( algo... | public static String decryptWithSymmetricKey ( String data , String encAlgorithm , String secret ) throws Exception { try { String algorithm = encAlgorithm ; if ( ! algorithm . startsWith ( STRING ) ) { algorithm = STRING + encAlgorithm ; } SecretKeyFactory skFactory = SecretKeyFactory . getInstance ( algorithm ) ; PBE... | 204 |
java-test-7933 | java | How does the code decrypt the given data ? | with a symmetric key generated using shared secret | public static String decrypt With Symmetric Key ( String data , String enc Algorithm , String secret ) throws Exception { try { String algorithm = enc Algorithm ; if ( ! algorithm . starts With ( STRING ) ) { algorithm = STRING + enc Algorithm ; } Secret Key Factory sk Factory = Secret Key Factory . get Instance ( algo... | public static String decryptWithSymmetricKey ( String data , String encAlgorithm , String secret ) throws Exception { try { String algorithm = encAlgorithm ; if ( ! algorithm . startsWith ( STRING ) ) { algorithm = STRING + encAlgorithm ; } SecretKeyFactory skFactory = SecretKeyFactory . getInstance ( algorithm ) ; PBE... | 204 |
java-test-7934 | java | What does the code compute to call this handler using a server - side invocation ? | the servlet context relative url | public static String create Handler Request Path ( final Cache Key cache Key , final Http Servlet Request request ) { final String handler Query Path = get Request Handler Path ( cache Key . get Group Name ( ) , cache Key . get Type ( ) ) ; return request . get Servlet Path ( ) + handler Query Path ; } | public static String createHandlerRequestPath ( final CacheKey cacheKey , final HttpServletRequest request ) { final String handlerQueryPath = getRequestHandlerPath ( cacheKey . getGroupName ( ) , cacheKey . getType ( ) ) ; return request . getServletPath ( ) + handlerQueryPath ; } | 64 |
java-test-7935 | java | What does the code hide ? | the details about creating a valid url and providing the authorization key required to invoke this handler | public static String create Handler Request Path ( final Cache Key cache Key , final Http Servlet Request request ) { final String handler Query Path = get Request Handler Path ( cache Key . get Group Name ( ) , cache Key . get Type ( ) ) ; return request . get Servlet Path ( ) + handler Query Path ; } | public static String createHandlerRequestPath ( final CacheKey cacheKey , final HttpServletRequest request ) { final String handlerQueryPath = getRequestHandlerPath ( cacheKey . getGroupName ( ) , cacheKey . getType ( ) ) ; return request . getServletPath ( ) + handlerQueryPath ; } | 64 |
java-test-7936 | java | How do this handler call ? | using a server - side invocation | public static String create Handler Request Path ( final Cache Key cache Key , final Http Servlet Request request ) { final String handler Query Path = get Request Handler Path ( cache Key . get Group Name ( ) , cache Key . get Type ( ) ) ; return request . get Servlet Path ( ) + handler Query Path ; } | public static String createHandlerRequestPath ( final CacheKey cacheKey , final HttpServletRequest request ) { final String handlerQueryPath = getRequestHandlerPath ( cacheKey . getGroupName ( ) , cacheKey . getType ( ) ) ; return request . getServletPath ( ) + handlerQueryPath ; } | 64 |
java-test-7938 | java | What does the code remove ? | all temporary maps | public void remove Temporary Maps ( Bit Field object Ids ) { for ( String map Name : store . get Map Names ( ) ) { if ( map Name . starts With ( STRING ) ) { MV Map < ? , ? > map = store . open Map ( map Name ) ; store . remove Map ( map ) ; } else if ( map Name . starts With ( STRING ) || map Name . starts With ( STRI... | public void removeTemporaryMaps ( BitField objectIds ) { for ( String mapName : store . getMapNames ( ) ) { if ( mapName . startsWith ( STRING ) ) { MVMap < ? , ? > map = store . openMap ( mapName ) ; store . removeMap ( map ) ; } else if ( mapName . startsWith ( STRING ) || mapName . startsWith ( STRING ) ) { int id =... | 215 |
java-test-7941 | java | What does the status code indicate ? | that more data is available | public static byte [ ] transceive And Get Response ( byte [ ] command , Iso Card iso Card , String get Response Apdu ) throws IO Exception { byte [ ] resp = iso Card . transceive ( command ) ; byte [ ] buf = new byte [ NUM ] ; int offset = NUM ; while ( resp [ resp . length - NUM ] == NUM ) { System . arraycopy ( resp ... | public static byte [ ] transceiveAndGetResponse ( byte [ ] command , IsoCard isoCard , String getResponseApdu ) throws IOException { byte [ ] resp = isoCard . transceive ( command ) ; byte [ ] buf = new byte [ _NUM ] ; int offset = _NUM ; while ( resp [ resp . length - _NUM ] == _NUM ) { System . arraycopy ( resp , _NU... | 173 |
java-test-7942 | java | What does the code transceiv to the isocard if the status code indicates that more data is available ? | the byte [ ] command | public static byte [ ] transceive And Get Response ( byte [ ] command , Iso Card iso Card , String get Response Apdu ) throws IO Exception { byte [ ] resp = iso Card . transceive ( command ) ; byte [ ] buf = new byte [ NUM ] ; int offset = NUM ; while ( resp [ resp . length - NUM ] == NUM ) { System . arraycopy ( resp ... | public static byte [ ] transceiveAndGetResponse ( byte [ ] command , IsoCard isoCard , String getResponseApdu ) throws IOException { byte [ ] resp = isoCard . transceive ( command ) ; byte [ ] buf = new byte [ _NUM ] ; int offset = _NUM ; while ( resp [ resp . length - _NUM ] == _NUM ) { System . arraycopy ( resp , _NU... | 173 |
java-test-7943 | java | What indicates that more data is available ? | the status code | public static byte [ ] transceive And Get Response ( byte [ ] command , Iso Card iso Card , String get Response Apdu ) throws IO Exception { byte [ ] resp = iso Card . transceive ( command ) ; byte [ ] buf = new byte [ NUM ] ; int offset = NUM ; while ( resp [ resp . length - NUM ] == NUM ) { System . arraycopy ( resp ... | public static byte [ ] transceiveAndGetResponse ( byte [ ] command , IsoCard isoCard , String getResponseApdu ) throws IOException { byte [ ] resp = isoCard . transceive ( command ) ; byte [ ] buf = new byte [ _NUM ] ; int offset = _NUM ; while ( resp [ resp . length - _NUM ] == _NUM ) { System . arraycopy ( resp , _NU... | 173 |
java-test-7944 | java | What does the code authenticate ? | the received client evidence message m1 | public boolean verify Client Evidence Message ( Big Integer client M 1 ) throws Crypto Exception { if ( ( this . A == null ) || ( this . B == null ) || ( this . S == null ) ) { throw new Crypto Exception ( STRING + STRING ) ; } Big Integer computed M 1 = SRP 6 Util . calculate M 1 ( digest , N , A , B , S ) ; if ( comp... | public boolean verifyClientEvidenceMessage ( BigInteger clientM1 ) throws CryptoException { if ( ( this . A == null ) || ( this . B == null ) || ( this . S == null ) ) { throw new CryptoException ( STRING + STRING ) ; } BigInteger computedM1 = SRP6Util . calculateM1 ( digest , N , A , B , S ) ; if ( computedM1 . equals... | 110 |
java-test-7945 | java | How is resolution of the class to used is done ? | by inspecting the xml element provided | public Value read ( Type type , Node Map node , Map map ) throws Exception { Class actual = read Value ( type , node ) ; Class expect = type . get Type ( ) ; if ( expect . is Array ( ) ) { return read Array ( actual , node ) ; } if ( expect != actual ) { return new Object Value ( actual ) ; } return null ; } | public Value read ( Type type , NodeMap node , Map map ) throws Exception { Class actual = readValue ( type , node ) ; Class expect = type . getType ( ) ; if ( expect . isArray ( ) ) { return readArray ( actual , node ) ; } if ( expect != actual ) { return new ObjectValue ( actual ) ; } return null ; } | 78 |
java-test-7946 | java | What exists on the element ? | no such attribute | public Value read ( Type type , Node Map node , Map map ) throws Exception { Class actual = read Value ( type , node ) ; Class expect = type . get Type ( ) ; if ( expect . is Array ( ) ) { return read Array ( actual , node ) ; } if ( expect != actual ) { return new Object Value ( actual ) ; } return null ; } | public Value read ( Type type , NodeMap node , Map map ) throws Exception { Class actual = readValue ( type , node ) ; Class expect = type . getType ( ) ; if ( expect . isArray ( ) ) { return readArray ( actual , node ) ; } if ( expect != actual ) { return new ObjectValue ( actual ) ; } return null ; } | 78 |
java-test-7947 | java | Where did no such attribute exist ? | on the element | public Value read ( Type type , Node Map node , Map map ) throws Exception { Class actual = read Value ( type , node ) ; Class expect = type . get Type ( ) ; if ( expect . is Array ( ) ) { return read Array ( actual , node ) ; } if ( expect != actual ) { return new Object Value ( actual ) ; } return null ; } | public Value read ( Type type , NodeMap node , Map map ) throws Exception { Class actual = readValue ( type , node ) ; Class expect = type . getType ( ) ; if ( expect . isArray ( ) ) { return readArray ( actual , node ) ; } if ( expect != actual ) { return new ObjectValue ( actual ) ; } return null ; } | 78 |
java-test-7948 | java | What do store backtrack in a map ? | successful decomposition | public List < String > word Break ( String s , Set < String > dict ) { List < String > words = new Array List < String > ( ) ; int len = s . length ( ) ; for ( int i = NUM ; i <= len ; i ++ ) { String pref = s . substring ( NUM , i ) ; if ( dict . contains ( pref ) ) { if ( i == len ) { words . add ( pref ) ; } else { ... | public List < String > wordBreak ( String s , Set < String > dict ) { List < String > words = new ArrayList < String > ( ) ; int len = s . length ( ) ; for ( int i = _NUM ; i <= len ; i ++ ) { String pref = s . substring ( _NUM , i ) ; if ( dict . contains ( pref ) ) { if ( i == len ) { words . add ( pref ) ; } else { ... | 185 |
java-test-7949 | java | When do the following do ? | if within | public List < String > word Break ( String s , Set < String > dict ) { List < String > words = new Array List < String > ( ) ; int len = s . length ( ) ; for ( int i = NUM ; i <= len ; i ++ ) { String pref = s . substring ( NUM , i ) ; if ( dict . contains ( pref ) ) { if ( i == len ) { words . add ( pref ) ; } else { ... | public List < String > wordBreak ( String s , Set < String > dict ) { List < String > words = new ArrayList < String > ( ) ; int len = s . length ( ) ; for ( int i = _NUM ; i <= len ; i ++ ) { String pref = s . substring ( _NUM , i ) ; if ( dict . contains ( pref ) ) { if ( i == len ) { words . add ( pref ) ; } else { ... | 185 |
java-test-7950 | java | For what purpose are the children removed from the row layouts cleanly ? | so that they can be re - attached elsewhere | public void unwrap ( Linear Layout wrapped Layout ) { int count = wrapped Layout . get Child Count ( ) ; for ( int i = NUM ; i < count ; i ++ ) { Linear Layout row = ( Linear Layout ) wrapped Layout . get Child At ( i ) ; row . remove All Views ( ) ; } wrapped Layout . remove All Views ( ) ; } | public void unwrap ( LinearLayout wrappedLayout ) { int count = wrappedLayout . getChildCount ( ) ; for ( int i = _NUM ; i < count ; i ++ ) { LinearLayout row = ( LinearLayout ) wrappedLayout . getChildAt ( i ) ; row . removeAllViews ( ) ; } wrappedLayout . removeAllViews ( ) ; } | 74 |
java-test-7951 | java | What does the code update ? | an existing combobox with the current kernel names | public void update Kernel Combo Box ( J Combo Box < String > box ) { box . remove All Items ( ) ; box . add Item ( NONE ) ; for ( String kernel Name : get Kernel Name List ( ) ) { box . add Item ( kernel Name ) ; } } | public void updateKernelComboBox ( JComboBox < String > box ) { box . removeAllItems ( ) ; box . addItem ( NONE ) ; for ( String kernelName : getKernelNameList ( ) ) { box . addItem ( kernelName ) ; } } | 57 |
java-test-7954 | java | What may are contained in the map ? | the datasource properties | public static void map Datasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndi Name = STRING ; Log Writer I 18 n writer = Transaction Utils . get Log Writer I 18 n ( ) ; Object ds = null ; try { jndi Name = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { d... | public static void mapDatasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndiName = STRING ; LogWriterI18n writer = TransactionUtils . getLogWriterI18n ( ) ; Object ds = null ; try { jndiName = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { ds = DataSourc... | 493 |
java-test-7955 | java | What bes the datasource properties are contained in the map ? | the jndi tree | public static void map Datasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndi Name = STRING ; Log Writer I 18 n writer = Transaction Utils . get Log Writer I 18 n ( ) ; Object ds = null ; try { jndi Name = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { d... | public static void mapDatasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndiName = STRING ; LogWriterI18n writer = TransactionUtils . getLogWriterI18n ( ) ; Object ds = null ; try { jndiName = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { ds = DataSourc... | 493 |
java-test-7956 | java | What be the code binds to the existing jndi tree ? | a single datasource | public static void map Datasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndi Name = STRING ; Log Writer I 18 n writer = Transaction Utils . get Log Writer I 18 n ( ) ; Object ds = null ; try { jndi Name = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { d... | public static void mapDatasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndiName = STRING ; LogWriterI18n writer = TransactionUtils . getLogWriterI18n ( ) ; Object ds = null ; try { jndiName = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { ds = DataSourc... | 493 |
java-test-7957 | java | What does the jndi tree be ? | the datasource properties are contained in the map | public static void map Datasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndi Name = STRING ; Log Writer I 18 n writer = Transaction Utils . get Log Writer I 18 n ( ) ; Object ds = null ; try { jndi Name = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { d... | public static void mapDatasource ( Map map , List props ) { String value = ( String ) map . get ( STRING ) ; String jndiName = STRING ; LogWriterI18n writer = TransactionUtils . getLogWriterI18n ( ) ; Object ds = null ; try { jndiName = ( String ) map . get ( STRING ) ; if ( value . equals ( STRING ) ) { ds = DataSourc... | 493 |
java-test-7958 | java | What does the code create ? | a new windowdragger object | public Window Dragger ( Window window , Component component ) { f Window = window ; f Component = component ; mouse Listener = create Mouse Listener ( ) ; mouse Motion Listener = create Mouse Motion Listener ( ) ; f Component . add Mouse Listener ( mouse Listener ) ; f Component . add Mouse Motion Listener ( mouse Moti... | public WindowDragger ( Window window , Component component ) { fWindow = window ; fComponent = component ; mouseListener = createMouseListener ( ) ; mouseMotionListener = createMouseMotionListener ( ) ; fComponent . addMouseListener ( mouseListener ) ; fComponent . addMouseMotionListener ( mouseMotionListener ) ; } | 66 |
java-test-7959 | java | What does the code start ? | the task thread | public synchronized void start ( ) { if ( this . task Thread == null ) { task Thread = new Thread ( this ) ; task Thread . set Name ( STRING + thl . get Name ( ) + STRING + task Id ) ; task Thread . start ( ) ; } } | public synchronized void start ( ) { if ( this . taskThread == null ) { taskThread = new Thread ( this ) ; taskThread . setName ( STRING + thl . getName ( ) + STRING + taskId ) ; taskThread . start ( ) ; } } | 56 |
java-test-7960 | java | How does the data sign ? | with the given key and the provided algorithm | private static byte [ ] sign ( Private Key key , String data , Signature Algorithm algorithm ) throws General Security Exception { Signature signature = Signature . get Instance ( algorithm . get JCA Name ( ) ) ; signature . init Sign ( key ) ; signature . update ( data . get Bytes ( ) ) ; return signature . sign ( ) ;... | private static byte [ ] sign ( PrivateKey key , String data , SignatureAlgorithm algorithm ) throws GeneralSecurityException { Signature signature = Signature . getInstance ( algorithm . getJCAName ( ) ) ; signature . initSign ( key ) ; signature . update ( data . getBytes ( ) ) ; return signature . sign ( ) ; } | 68 |
java-test-7961 | java | How does the code encrypt a given string ? | with a contentencryptionkey and initializationvector | byte [ ] encrypt Payload ( String payload , byte [ ] content Encryption Key , byte [ ] initialization Vector ) throws Encrypt Data Exception { try { Secret Key Spec secret Key = new Secret Key Spec ( content Encryption Key , AES ALGORITHM TYPE ) ; Iv Parameter Spec iv Parameter = new Iv Parameter Spec ( initialization ... | byte [ ] encryptPayload ( String payload , byte [ ] contentEncryptionKey , byte [ ] initializationVector ) throws EncryptDataException { try { SecretKeySpec secretKey = new SecretKeySpec ( contentEncryptionKey , AES_ALGORITHM_TYPE ) ; IvParameterSpec ivParameter = new IvParameterSpec ( initializationVector ) ; Cipher a... | 139 |
java-test-7962 | java | What does the tlafrontend . frontendmain method process ? | an entire tla + spec that starts in the file named in " filename " , including all files it refers to directly or indirectly in extends or instance constructs | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7963 | java | Where does an unexpected runtime error occur ? | in the frontend | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7964 | java | What did the caller use the these errors objects ? | to provide feedback to the human spec - writer in some other way | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7965 | java | What does the caller prefer ? | to pass syserr = null | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7966 | java | What do the caller provide to the human spec - writer in some other way ? | feedback | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7967 | java | When do what level of problems occur ? | during the three phases | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7968 | java | What did this method return if it does not , then " . tla " is appended before processing it ? | a specification object , which is the root of the semantic graph of the specification | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7969 | java | What occurs in the frontend ? | an unexpected runtime error | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7970 | java | Where are those reported ? | in the returned specification object , which must be checked as described above | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7971 | java | What processes an entire tla + spec that starts in the file named in " filename " , including all files it refers to directly or indirectly in extends or instance constructs ? | the tlafrontend . frontendmain method | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7972 | java | What must be queried the specification object returned using geterrorlevel ( ) to see what level of problems , if any , occurred during the three phases . any value from geterrorlevel ( ) other than 0 is fatal , and the caller should not use the specification object any more ? | by the caller | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7973 | java | For what purpose is this exception not thrown ? | for ordinary warning , error , or abort conditions detected during processing | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7974 | java | How do the caller provide feedback to the human spec - writer ? | in some other way | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7975 | java | What should the caller not use any more ? | the specification object | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7976 | java | How must by the caller be queried the specification object returned to see what level of problems , if any , occurred during the three phases . any value from geterrorlevel ( ) other than 0 is fatal , and the caller should not use the specification object any more ? | using geterrorlevel ( ) | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7977 | java | What do this method throw if an unexpected runtime error occurs in the frontend . this exception is not thrown for ordinary warning , error , or abort conditions detected during processing - - ? | a frontendexception | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7978 | java | For what purpose must by the caller be queried the specification object returned using geterrorlevel ( ) ? | to see what level of problems , if any , occurred during the three phases . any value from geterrorlevel ( ) other than 0 is fatal , and the caller should not use the specification object any more | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7979 | java | What must by the caller be queried using geterrorlevel ( ) to see what level of problems , if any , occurred during the three phases . any value from geterrorlevel ( ) other than 0 is fatal , and the caller should not use the specification object any more ? | the specification object returned | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7980 | java | What is saved the error stream in errors ? | objects that are components of the specification object returned | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7981 | java | Where did the file name ? | in " filename " | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7982 | java | Where is objects that are components of the specification object returned saved the error stream also ? | in errors | public static final void front End Main ( Spec Obj spec , String file Name , Print Stream syserr ) throws Front End Exception { try { front End Initialize ( spec , syserr ) ; if ( do Parsing ) front End Parse ( spec , syserr ) ; if ( do Semantic Analysis ) { front End Semantic Analysis ( spec , syserr , do Level Checki... | public static final void frontEndMain ( SpecObj spec , String fileName , PrintStream syserr ) throws FrontEndException { try { frontEndInitialize ( spec , syserr ) ; if ( doParsing ) frontEndParse ( spec , syserr ) ; if ( doSemanticAnalysis ) { frontEndSemanticAnalysis ( spec , syserr , doLevelChecking ) ; } ; } catch ... | 135 |
java-test-7983 | java | What does the code determine ? | the rgb value of a named color | public static int parse Color ( String color String ) { if ( Text Utils . is Empty ( color String ) ) { return TRANSPARENT ; } if ( color String . char At ( NUM ) == STRING ) { if ( color String . length ( ) == NUM || color String . length ( ) == NUM ) { long color = Long . parse Long ( color String . substring ( NUM )... | public static int parseColor ( String colorString ) { if ( TextUtils . isEmpty ( colorString ) ) { return TRANSPARENT ; } if ( colorString . charAt ( _NUM ) == STRING ) { if ( colorString . length ( ) == _NUM || colorString . length ( ) == _NUM ) { long color = Long . parseLong ( colorString . substring ( _NUM ) , _NUM... | 148 |
java-test-7984 | java | What does the code get ? | the decoded stream value | private Byte Buffer decode Stream ( ) throws IO Exception { Byte Buffer out Stream = null ; if ( decoded Stream != null ) { out Stream = ( Byte Buffer ) decoded Stream . get ( ) ; } if ( out Stream == null ) { stream . rewind ( ) ; out Stream = PDF Decoder . decode Stream ( this , stream ) ; decoded Stream = new Soft R... | private ByteBuffer decodeStream ( ) throws IOException { ByteBuffer outStream = null ; if ( decodedStream != null ) { outStream = ( ByteBuffer ) decodedStream . get ( ) ; } if ( outStream == null ) { stream . rewind ( ) ; outStream = PDFDecoder . decodeStream ( this , stream ) ; decodedStream = new SoftReference ( outS... | 86 |
java-test-7987 | java | When do an event notification arrive ? | when this is called by the plugin | public int add Client External ( SSO Token token , Map props ) throws AM Client Cap Exception { synchronized ( external Client Data ) { ext Cap Instance . add Client ( token , props ) ; String ct = get Client Type ( props ) ; Map e Map = merge With Parent ( props ) ; external Client Data . put ( ct , e Map ) ; add To I... | public int addClientExternal ( SSOToken token , Map props ) throws AMClientCapException { synchronized ( externalClientData ) { extCapInstance . addClient ( token , props ) ; String ct = getClientType ( props ) ; Map eMap = mergeWithParent ( props ) ; externalClientData . put ( ct , eMap ) ; addToIndexes ( ct , eMap ) ... | 86 |
java-test-7988 | java | What do we wait ? | for an event notification to arrive when this is called by the plugin | public int add Client External ( SSO Token token , Map props ) throws AM Client Cap Exception { synchronized ( external Client Data ) { ext Cap Instance . add Client ( token , props ) ; String ct = get Client Type ( props ) ; Map e Map = merge With Parent ( props ) ; external Client Data . put ( ct , e Map ) ; add To I... | public int addClientExternal ( SSOToken token , Map props ) throws AMClientCapException { synchronized ( externalClientData ) { extCapInstance . addClient ( token , props ) ; String ct = getClientType ( props ) ; Map eMap = mergeWithParent ( props ) ; externalClientData . put ( ct , eMap ) ; addToIndexes ( ct , eMap ) ... | 86 |
java-test-7989 | java | What does the code set ? | a null property | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7990 | java | What does the cargo plugin replace ? | the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7991 | java | What do we need ? | to verify that the cargo plugin intercepts that and replaces the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7992 | java | What replaces the null with an empty string ? | the cargo plugin | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7993 | java | When does maven2 operate the way ? | when the user specifies an empty property | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7994 | java | What do we verify ? | that the cargo plugin intercepts that and replaces the null with an empty string | public void test Setting A Null Deployable Property ( ) { Deployable deployable Element = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new Hash Map < String , String > ( ) ; properties . put ( STRING , null ) ; deployable Element . set Properties ( properties ) ; deployable E... | public void testSettingANullDeployableProperty ( ) { Deployable deployableElement = new Deployable ( ) ; WAR war = new WAR ( STRING ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( STRING , null ) ; deployableElement . setProperties ( properties ) ; deployableElement . s... | 100 |
java-test-7995 | java | What does the code convert into a inet6address ? | a 32 char hex string | public static Inet Address hex To Inet 6 Address ( String addr Hex String ) throws Illegal Argument Exception { try { return numeric To Inet Address ( String . format ( STRING , addr Hex String . substring ( NUM , NUM ) , addr Hex String . substring ( NUM , NUM ) , addr Hex String . substring ( NUM , NUM ) , addr Hex S... | public static InetAddress hexToInet6Address ( String addrHexString ) throws IllegalArgumentException { try { return numericToInetAddress ( String . format ( STRING , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substring ( _NUM , _NUM ) , addrHexString . substr... | 159 |
java-test-7996 | java | How do a combined hash code compute from the supplied objects ? | using the supplied seed | private static int compute Hash Code ( int seed , Object ... objects ) { if ( objects == null || objects . length == NUM ) { return seed * Hash Code . PRIME ; } int hc = seed ; for ( Object object : objects ) { hc = Hash Code . PRIME * hc ; if ( object instanceof byte [ ] ) { hc += Arrays . hash Code ( ( byte [ ] ) obj... | private static int computeHashCode ( int seed , Object ... objects ) { if ( objects == null || objects . length == _NUM ) { return seed * HashCode . PRIME ; } int hc = seed ; for ( Object object : objects ) { hc = HashCode . PRIME * hc ; if ( object instanceof byte [ ] ) { hc += Arrays . hashCode ( ( byte [ ] ) object ... | 315 |
java-test-7997 | java | What do a properties file describe ? | a maptileset | protected void parse And Add Map Tile Set ( URL tile Set Properties ) throws IO Exception , Malformed URL Exception { Properties desc Props = new Properties ( ) ; Logger logger = get Logger ( ) ; logger . info ( STRING ) ; Input Stream desc URL Stream = tile Set Properties . open Stream ( ) ; desc Props . load ( desc U... | protected void parseAndAddMapTileSet ( URL tileSetProperties ) throws IOException , MalformedURLException { Properties descProps = new Properties ( ) ; Logger logger = getLogger ( ) ; logger . info ( STRING ) ; InputStream descURLStream = tileSetProperties . openStream ( ) ; descProps . load ( descURLStream ) ; logger ... | 176 |
java-test-7999 | java | What get requests routed to the servlet by the web container ? | all of the http | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8000 | java | In which direction does this method loop ? | through the lists of videos that have been sent to it | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
java-test-8001 | java | What does all of the http get ? | requests routed to the servlet by the web container | @ Override protected void do Get ( Http Servlet Request req , Http Servlet Response resp ) throws Servlet Exception , IO Exception { resp . set Content Type ( STRING ) ; Print Writer send To Client = resp . get Writer ( ) ; for ( Video v : this . videos ) { send To Client . write ( v . get Name ( ) + STRING + v . get U... | @ Override protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { resp . setContentType ( STRING ) ; PrintWriter sendToClient = resp . getWriter ( ) ; for ( Video v : this . videos ) { sendToClient . write ( v . getName ( ) + STRING + v . getUrl ( ) + STRING )... | 83 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.