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-50
java
Does the code create the gradle wrapper in the project in the project ?
Yes
@ Visible For Testing public static boolean create Gradle Wrapper ( @ Not Null File project Dir Path , @ Not Null String gradle Version ) throws IO Exception { File project Wrapper Dir Path = new File ( project Dir Path , FD GRADLE WRAPPER ) ; if ( ! project Wrapper Dir Path . is Directory ( ) ) { File wrapper Src Dir ...
@ VisibleForTesting public static boolean createGradleWrapper ( @ NotNull File projectDirPath , @ NotNull String gradleVersion ) throws IOException { File projectWrapperDirPath = new File ( projectDirPath , FD_GRADLE_WRAPPER ) ; if ( ! projectWrapperDirPath . isDirectory ( ) ) { File wrapperSrcDirPath = new File ( Temp...
221
java-test-51
java
Does the code create the gradle wrapper in the project ?
Yes
@ Visible For Testing public static boolean create Gradle Wrapper ( @ Not Null File project Dir Path , @ Not Null String gradle Version ) throws IO Exception { File project Wrapper Dir Path = new File ( project Dir Path , FD GRADLE WRAPPER ) ; if ( ! project Wrapper Dir Path . is Directory ( ) ) { File wrapper Src Dir ...
@ VisibleForTesting public static boolean createGradleWrapper ( @ NotNull File projectDirPath , @ NotNull String gradleVersion ) throws IOException { File projectWrapperDirPath = new File ( projectDirPath , FD_GRADLE_WRAPPER ) ; if ( ! projectWrapperDirPath . isDirectory ( ) ) { File wrapperSrcDirPath = new File ( Temp...
221
java-test-52
java
What does the code create in the project in the project ?
the gradle wrapper
@ Visible For Testing public static boolean create Gradle Wrapper ( @ Not Null File project Dir Path , @ Not Null String gradle Version ) throws IO Exception { File project Wrapper Dir Path = new File ( project Dir Path , FD GRADLE WRAPPER ) ; if ( ! project Wrapper Dir Path . is Directory ( ) ) { File wrapper Src Dir ...
@ VisibleForTesting public static boolean createGradleWrapper ( @ NotNull File projectDirPath , @ NotNull String gradleVersion ) throws IOException { File projectWrapperDirPath = new File ( projectDirPath , FD_GRADLE_WRAPPER ) ; if ( ! projectWrapperDirPath . isDirectory ( ) ) { File wrapperSrcDirPath = new File ( Temp...
221
java-test-56
java
How will the file be encoded ?
in the us_ascii character set
public static void write Pem String To File ( File file , String pem Data To Write ) { try { File Utils . write ( file , pem Data To Write ) ; } catch ( IO Exception e ) { throw new Export Exception ( STRING + file . get Name ( ) , e ) ; } }
public static void writePemStringToFile ( File file , String pemDataToWrite ) { try { FileUtils . write ( file , pemDataToWrite ) ; } catch ( IOException e ) { throw new ExportException ( STRING + file . getName ( ) , e ) ; } }
61
java-test-57
java
Does the code instantiate a new env var model ?
Yes
public Env Var Model ( Environment Manager Interface env Mgr ) { this . env Mgr = env Mgr ; if ( columns . is Empty ( ) ) { columns . add ( Localisation . get String ( Env Var Dlg . class , STRING ) ) ; columns . add ( Localisation . get String ( Env Var Dlg . class , STRING ) ) ; columns . add ( Localisation . get Str...
public EnvVarModel ( EnvironmentManagerInterface envMgr ) { this . envMgr = envMgr ; if ( columns . isEmpty ( ) ) { columns . add ( Localisation . getString ( EnvVarDlg . class , STRING ) ) ; columns . add ( Localisation . getString ( EnvVarDlg . class , STRING ) ) ; columns . add ( Localisation . getString ( EnvVarDlg...
89
java-test-58
java
What does the code instantiate ?
a new env var model
public Env Var Model ( Environment Manager Interface env Mgr ) { this . env Mgr = env Mgr ; if ( columns . is Empty ( ) ) { columns . add ( Localisation . get String ( Env Var Dlg . class , STRING ) ) ; columns . add ( Localisation . get String ( Env Var Dlg . class , STRING ) ) ; columns . add ( Localisation . get Str...
public EnvVarModel ( EnvironmentManagerInterface envMgr ) { this . envMgr = envMgr ; if ( columns . isEmpty ( ) ) { columns . add ( Localisation . getString ( EnvVarDlg . class , STRING ) ) ; columns . add ( Localisation . getString ( EnvVarDlg . class , STRING ) ) ; columns . add ( Localisation . getString ( EnvVarDlg...
89
java-test-59
java
What does the code create ?
a copy of a bit string
public Bit Vector ( Bit Vector s ) { bits = new int [ s . bits . length ] ; this . nbits = s . nbits ; System . arraycopy ( s . bits , NUM , this . bits , NUM , s . bits . length ) ; }
public BitVector ( BitVector s ) { bits = new int [ s . bits . length ] ; this . nbits = s . nbits ; System . arraycopy ( s . bits , _NUM , this . bits , _NUM , s . bits . length ) ; }
53
java-test-60
java
Does the code create a copy of a bit string ?
Yes
public Bit Vector ( Bit Vector s ) { bits = new int [ s . bits . length ] ; this . nbits = s . nbits ; System . arraycopy ( s . bits , NUM , this . bits , NUM , s . bits . length ) ; }
public BitVector ( BitVector s ) { bits = new int [ s . bits . length ] ; this . nbits = s . nbits ; System . arraycopy ( s . bits , _NUM , this . bits , _NUM , s . bits . length ) ; }
53
java-test-64
java
Does the specified implement the proper interface so that we don ' t have to do that for every request ?
Yes
@ Suppress Warnings ( STRING ) private Class validate Class ( Client Config cfg ) { Class clazz = null ; try { clazz = Class . for Name ( cfg . get Access Request Handler Classname ( ) ) ; } catch ( final Class Not Found Exception e ) { LOG . error ( STRING + cfg . get Access Request Handler Classname ( ) + STRING + cf...
@ SuppressWarnings ( STRING ) private Class validateClass ( ClientConfig cfg ) { Class clazz = null ; try { clazz = Class . forName ( cfg . getAccessRequestHandlerClassname ( ) ) ; } catch ( final ClassNotFoundException e ) { LOG . error ( STRING + cfg . getAccessRequestHandlerClassname ( ) + STRING + cfg . getName ( )...
215
java-test-65
java
What implements the proper interface so that we don ' t have to do that for every request ?
the specified
@ Suppress Warnings ( STRING ) private Class validate Class ( Client Config cfg ) { Class clazz = null ; try { clazz = Class . for Name ( cfg . get Access Request Handler Classname ( ) ) ; } catch ( final Class Not Found Exception e ) { LOG . error ( STRING + cfg . get Access Request Handler Classname ( ) + STRING + cf...
@ SuppressWarnings ( STRING ) private Class validateClass ( ClientConfig cfg ) { Class clazz = null ; try { clazz = Class . forName ( cfg . getAccessRequestHandlerClassname ( ) ) ; } catch ( final ClassNotFoundException e ) { LOG . error ( STRING + cfg . getAccessRequestHandlerClassname ( ) + STRING + cfg . getName ( )...
215
java-test-66
java
What does the specified implement so that we don ' t have to do that for every request ?
the proper interface
@ Suppress Warnings ( STRING ) private Class validate Class ( Client Config cfg ) { Class clazz = null ; try { clazz = Class . for Name ( cfg . get Access Request Handler Classname ( ) ) ; } catch ( final Class Not Found Exception e ) { LOG . error ( STRING + cfg . get Access Request Handler Classname ( ) + STRING + cf...
@ SuppressWarnings ( STRING ) private Class validateClass ( ClientConfig cfg ) { Class clazz = null ; try { clazz = Class . forName ( cfg . getAccessRequestHandlerClassname ( ) ) ; } catch ( final ClassNotFoundException e ) { LOG . error ( STRING + cfg . getAccessRequestHandlerClassname ( ) + STRING + cfg . getName ( )...
215
java-test-67
java
Do we do that for every request ?
Yes
@ Suppress Warnings ( STRING ) private Class validate Class ( Client Config cfg ) { Class clazz = null ; try { clazz = Class . for Name ( cfg . get Access Request Handler Classname ( ) ) ; } catch ( final Class Not Found Exception e ) { LOG . error ( STRING + cfg . get Access Request Handler Classname ( ) + STRING + cf...
@ SuppressWarnings ( STRING ) private Class validateClass ( ClientConfig cfg ) { Class clazz = null ; try { clazz = Class . forName ( cfg . getAccessRequestHandlerClassname ( ) ) ; } catch ( final ClassNotFoundException e ) { LOG . error ( STRING + cfg . getAccessRequestHandlerClassname ( ) + STRING + cfg . getName ( )...
215
java-test-68
java
Do we pass in the alt - tab state ?
Yes
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-69
java
What does the code compute ?
the minimum and maximum scroll progress values
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-70
java
Where do we pass ?
in the alt - tab state
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-71
java
Does the code compute the minimum and maximum scroll progress values ?
Yes
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-72
java
Does we need to pass in the alt - tab state ?
Yes
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-73
java
What does we need ?
to pass in the alt - tab state
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-74
java
When may this method be called ?
before the recentsconfiguration is set
void compute Min Max Scroll ( Array List < T > data , boolean launched With Alt Tab , boolean launched From Home ) { m Task Progress Map . clear ( ) ; if ( data . is Empty ( ) ) { m Min Scroll P = m Max Scroll P = NUM ; return ; } int task Height = m Task Rect . height ( ) ; float p At Bottom Of Stack Rect = screen Y T...
void computeMinMaxScroll ( ArrayList < T > data , boolean launchedWithAltTab , boolean launchedFromHome ) { mTaskProgressMap . clear ( ) ; if ( data . isEmpty ( ) ) { mMinScrollP = mMaxScrollP = _NUM ; return ; } int taskHeight = mTaskRect . height ( ) ; float pAtBottomOfStackRect = screenYToCurveProgress ( mStackVisib...
534
java-test-75
java
In which direction is that list ordered in terms of the message i d ' s ?
from lowest to highest
private void insert In Order ( Vector list , Mqtt Wire Message new Msg ) { int new Msg Id = new Msg . get Message Id ( ) ; for ( int i = NUM ; i < list . size ( ) ; i ++ ) { Mqtt Wire Message other Msg = ( Mqtt Wire Message ) list . element At ( i ) ; int other Msg Id = other Msg . get Message Id ( ) ; if ( other Msg I...
private void insertInOrder ( Vector list , MqttWireMessage newMsg ) { int newMsgId = newMsg . getMessageId ( ) ; for ( int i = _NUM ; i < list . size ( ) ; i ++ ) { MqttWireMessage otherMsg = ( MqttWireMessage ) list . elementAt ( i ) ; int otherMsgId = otherMsg . getMessageId ( ) ; if ( otherMsgId > newMsgId ) { list ...
119
java-test-76
java
How is that list ordered from lowest to highest ?
in terms of the message i d ' s
private void insert In Order ( Vector list , Mqtt Wire Message new Msg ) { int new Msg Id = new Msg . get Message Id ( ) ; for ( int i = NUM ; i < list . size ( ) ; i ++ ) { Mqtt Wire Message other Msg = ( Mqtt Wire Message ) list . element At ( i ) ; int other Msg Id = other Msg . get Message Id ( ) ; if ( other Msg I...
private void insertInOrder ( Vector list , MqttWireMessage newMsg ) { int newMsgId = newMsg . getMessageId ( ) ; for ( int i = _NUM ; i < list . size ( ) ; i ++ ) { MqttWireMessage otherMsg = ( MqttWireMessage ) list . elementAt ( i ) ; int otherMsgId = otherMsg . getMessageId ( ) ; if ( otherMsgId > newMsgId ) { list ...
119
java-test-77
java
Does the code compute the final values for edge functions ?
Yes
private void compute Values ( ) { logger . debug ( STRING ) ; Map < N , Set < D > > all Seeds = new Hash Map < N , Set < D > > ( initial Seeds ) ; for ( N unbalanced Ret Site : unbalanced Ret Sites ) { Set < D > seeds = all Seeds . get ( unbalanced Ret Site ) ; if ( seeds == null ) { seeds = new Hash Set < D > ( ) ; al...
private void computeValues ( ) { logger . debug ( STRING ) ; Map < N , Set < D > > allSeeds = new HashMap < N , Set < D > > ( initialSeeds ) ; for ( N unbalancedRetSite : unbalancedRetSites ) { Set < D > seeds = allSeeds . get ( unbalancedRetSite ) ; if ( seeds == null ) { seeds = new HashSet < D > ( ) ; allSeeds . put...
404
java-test-78
java
What does the code compute ?
the final values for edge functions
private void compute Values ( ) { logger . debug ( STRING ) ; Map < N , Set < D > > all Seeds = new Hash Map < N , Set < D > > ( initial Seeds ) ; for ( N unbalanced Ret Site : unbalanced Ret Sites ) { Set < D > seeds = all Seeds . get ( unbalanced Ret Site ) ; if ( seeds == null ) { seeds = new Hash Set < D > ( ) ; al...
private void computeValues ( ) { logger . debug ( STRING ) ; Map < N , Set < D > > allSeeds = new HashMap < N , Set < D > > ( initialSeeds ) ; for ( N unbalancedRetSite : unbalancedRetSites ) { Set < D > seeds = allSeeds . get ( unbalancedRetSite ) ; if ( seeds == null ) { seeds = new HashSet < D > ( ) ; allSeeds . put...
404
java-test-79
java
When should these be edited ?
before each new version / installation of openmap
protected final static void init Hard Coded Properties ( Properties p ) { String Tokenizer tokenizer ; tokenizer = new String Tokenizer ( title , STRING ) ; tokenizer . next Token ( ) ; p . put ( Title , tokenizer . next Token ( ) ) ; tokenizer = new String Tokenizer ( version , STRING ) ; tokenizer . next Token ( ) ; ...
protected final static void initHardCodedProperties ( Properties p ) { StringTokenizer tokenizer ; tokenizer = new StringTokenizer ( title , STRING ) ; tokenizer . nextToken ( ) ; p . put ( Title , tokenizer . nextToken ( ) ) ; tokenizer = new StringTokenizer ( version , STRING ) ; tokenizer . nextToken ( ) ; p . put (...
128
java-test-80
java
How are they declared ?
in such a way that they can be easily edited from a build script
protected final static void init Hard Coded Properties ( Properties p ) { String Tokenizer tokenizer ; tokenizer = new String Tokenizer ( title , STRING ) ; tokenizer . next Token ( ) ; p . put ( Title , tokenizer . next Token ( ) ) ; tokenizer = new String Tokenizer ( version , STRING ) ; tokenizer . next Token ( ) ; ...
protected final static void initHardCodedProperties ( Properties p ) { StringTokenizer tokenizer ; tokenizer = new StringTokenizer ( title , STRING ) ; tokenizer . nextToken ( ) ; p . put ( Title , tokenizer . nextToken ( ) ) ; tokenizer = new StringTokenizer ( version , STRING ) ; tokenizer . nextToken ( ) ; p . put (...
128
java-test-81
java
What did the code hardcod ?
default properties
protected final static void init Hard Coded Properties ( Properties p ) { String Tokenizer tokenizer ; tokenizer = new String Tokenizer ( title , STRING ) ; tokenizer . next Token ( ) ; p . put ( Title , tokenizer . next Token ( ) ) ; tokenizer = new String Tokenizer ( version , STRING ) ; tokenizer . next Token ( ) ; ...
protected final static void initHardCodedProperties ( Properties p ) { StringTokenizer tokenizer ; tokenizer = new StringTokenizer ( title , STRING ) ; tokenizer . nextToken ( ) ; p . put ( Title , tokenizer . nextToken ( ) ) ; tokenizer = new StringTokenizer ( version , STRING ) ; tokenizer . nextToken ( ) ; p . put (...
128
java-test-82
java
Did the code hardcod default properties ?
Yes
protected final static void init Hard Coded Properties ( Properties p ) { String Tokenizer tokenizer ; tokenizer = new String Tokenizer ( title , STRING ) ; tokenizer . next Token ( ) ; p . put ( Title , tokenizer . next Token ( ) ) ; tokenizer = new String Tokenizer ( version , STRING ) ; tokenizer . next Token ( ) ; ...
protected final static void initHardCodedProperties ( Properties p ) { StringTokenizer tokenizer ; tokenizer = new StringTokenizer ( title , STRING ) ; tokenizer . nextToken ( ) ; p . put ( Title , tokenizer . nextToken ( ) ) ; tokenizer = new StringTokenizer ( version , STRING ) ; tokenizer . nextToken ( ) ; p . put (...
128
java-test-89
java
What replaces in a specified string ?
all entities and character references
public static String replace All ( String source ) { int region Start = NUM ; for ( String entity = get Next Entity ( source , region Start ) ; entity != null ; entity = get Next Entity ( source , region Start ) ) { String replacement = Entity Map . get ( entity ) ; if ( replacement == null ) { region Start += entity ....
public static String replaceAll ( String source ) { int regionStart = _NUM ; for ( String entity = getNextEntity ( source , regionStart ) ; entity != null ; entity = getNextEntity ( source , regionStart ) ) { String replacement = EntityMap . get ( entity ) ; if ( replacement == null ) { regionStart += entity . length (...
103
java-test-90
java
Does all entities and character references replace in a specified string ?
Yes
public static String replace All ( String source ) { int region Start = NUM ; for ( String entity = get Next Entity ( source , region Start ) ; entity != null ; entity = get Next Entity ( source , region Start ) ) { String replacement = Entity Map . get ( entity ) ; if ( replacement == null ) { region Start += entity ....
public static String replaceAll ( String source ) { int regionStart = _NUM ; for ( String entity = getNextEntity ( source , regionStart ) ; entity != null ; entity = getNextEntity ( source , regionStart ) ) { String replacement = EntityMap . get ( entity ) ; if ( replacement == null ) { regionStart += entity . length (...
103
java-test-91
java
Where does all entities and character references replace ?
in a specified string
public static String replace All ( String source ) { int region Start = NUM ; for ( String entity = get Next Entity ( source , region Start ) ; entity != null ; entity = get Next Entity ( source , region Start ) ) { String replacement = Entity Map . get ( entity ) ; if ( replacement == null ) { region Start += entity ....
public static String replaceAll ( String source ) { int regionStart = _NUM ; for ( String entity = getNextEntity ( source , regionStart ) ; entity != null ; entity = getNextEntity ( source , regionStart ) ) { String replacement = EntityMap . get ( entity ) ; if ( replacement == null ) { regionStart += entity . length (...
103
java-test-92
java
What returns an action <br> ?
function hybrid - wumpus - agent
@ Override public Action execute ( Percept percept ) { kb . make Percept Sentence ( ( Agent Percept ) percept , t ) ; kb . tell Temporal Physics Sentences ( t ) ; Agent Position current = kb . ask Current Position ( t ) ; Set < Room > safe = kb . ask Safe Rooms ( t ) ; if ( kb . ask Glitter ( t ) ) { Set < Room > goals...
@ Override public Action execute ( Percept percept ) { kb . makePerceptSentence ( ( AgentPercept ) percept , t ) ; kb . tellTemporalPhysicsSentences ( t ) ; AgentPosition current = kb . askCurrentPosition ( t ) ; Set < Room > safe = kb . askSafeRooms ( t ) ; if ( kb . askGlitter ( t ) ) { Set < Room > goals = new Linke...
393
java-test-93
java
Does function hybrid - wumpus - agent return an action <br> ?
Yes
@ Override public Action execute ( Percept percept ) { kb . make Percept Sentence ( ( Agent Percept ) percept , t ) ; kb . tell Temporal Physics Sentences ( t ) ; Agent Position current = kb . ask Current Position ( t ) ; Set < Room > safe = kb . ask Safe Rooms ( t ) ; if ( kb . ask Glitter ( t ) ) { Set < Room > goals...
@ Override public Action execute ( Percept percept ) { kb . makePerceptSentence ( ( AgentPercept ) percept , t ) ; kb . tellTemporalPhysicsSentences ( t ) ; AgentPosition current = kb . askCurrentPosition ( t ) ; Set < Room > safe = kb . askSafeRooms ( t ) ; if ( kb . askGlitter ( t ) ) { Set < Room > goals = new Linke...
393
java-test-116
java
For what purpose does the code update the value graph ?
to account for a given instruction
private void process Instruction ( Instruction s ) { if ( s . is Dynamic Linking Point ( ) ) { process Call ( s ) ; } else if ( Move . conforms ( s ) ) { process Move ( s ) ; } else if ( s . operator ( ) == PI ) { process Pi ( s ) ; } else if ( New . conforms ( s ) ) { process New ( s ) ; } else if ( New Array . confor...
private void processInstruction ( Instruction s ) { if ( s . isDynamicLinkingPoint ( ) ) { processCall ( s ) ; } else if ( Move . conforms ( s ) ) { processMove ( s ) ; } else if ( s . operator ( ) == PI ) { processPi ( s ) ; } else if ( New . conforms ( s ) ) { processNew ( s ) ; } else if ( NewArray . conforms ( s ) ...
470
java-test-117
java
Does the code update the value graph to account for a given instruction ?
Yes
private void process Instruction ( Instruction s ) { if ( s . is Dynamic Linking Point ( ) ) { process Call ( s ) ; } else if ( Move . conforms ( s ) ) { process Move ( s ) ; } else if ( s . operator ( ) == PI ) { process Pi ( s ) ; } else if ( New . conforms ( s ) ) { process New ( s ) ; } else if ( New Array . confor...
private void processInstruction ( Instruction s ) { if ( s . isDynamicLinkingPoint ( ) ) { processCall ( s ) ; } else if ( Move . conforms ( s ) ) { processMove ( s ) ; } else if ( s . operator ( ) == PI ) { processPi ( s ) ; } else if ( New . conforms ( s ) ) { processNew ( s ) ; } else if ( NewArray . conforms ( s ) ...
470
java-test-118
java
What does the code update to account for a given instruction ?
the value graph
private void process Instruction ( Instruction s ) { if ( s . is Dynamic Linking Point ( ) ) { process Call ( s ) ; } else if ( Move . conforms ( s ) ) { process Move ( s ) ; } else if ( s . operator ( ) == PI ) { process Pi ( s ) ; } else if ( New . conforms ( s ) ) { process New ( s ) ; } else if ( New Array . confor...
private void processInstruction ( Instruction s ) { if ( s . isDynamicLinkingPoint ( ) ) { processCall ( s ) ; } else if ( Move . conforms ( s ) ) { processMove ( s ) ; } else if ( s . operator ( ) == PI ) { processPi ( s ) ; } else if ( New . conforms ( s ) ) { processNew ( s ) ; } else if ( NewArray . conforms ( s ) ...
470
java-test-119
java
What did it perform when either the subscribe or unsubscribe buttons are pressed ?
the mqtt subscribe or unsubscribe
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-120
java
What did it write if the history window is open when either the subscribe or unsubscribe buttons are pressed ?
an entry in the history log
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-121
java
When is this method called ?
when either the subscribe or unsubscribe buttons are pressed . it performs the mqtt subscribe or unsubscribe and writes an entry in the history log if the history window is open
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-122
java
Did it perform the mqtt subscribe or unsubscribe when either the subscribe or unsubscribe buttons are pressed ?
Yes
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-123
java
Are any exceptions caught in a dialog box ?
Yes
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-124
java
Did it write an entry in the history log if the history window is open when either the subscribe or unsubscribe buttons are pressed ?
Yes
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-125
java
Where are any exceptions caught ?
in a dialog box
public void subscription ( String topic , int qos , boolean sub ) { set Title Text ( STRING ) ; if ( connected ) { try { String [ ] these Topics = new String [ NUM ] ; int [ ] these Qo S = new int [ NUM ] ; these Topics [ NUM ] = topic ; these Qo S [ NUM ] = qos ; synchronized ( this ) { if ( sub ) { write Logln ( STRI...
public void subscription ( String topic , int qos , boolean sub ) { setTitleText ( STRING ) ; if ( connected ) { try { String [ ] theseTopics = new String [ _NUM ] ; int [ ] theseQoS = new int [ _NUM ] ; theseTopics [ _NUM ] = topic ; theseQoS [ _NUM ] = qos ; synchronized ( this ) { if ( sub ) { writeLogln ( STRING + ...
188
java-test-126
java
What must it have ?
an even multiple of 4 data characters ( not counting \ n ) , padded out with = as needed
public byte [ ] decode ( String s ) { byte [ ] b = new byte [ ( s . length ( ) / NUM ) * NUM ] ; int cycle = NUM ; int combined = NUM ; int j = NUM ; int len = s . length ( ) ; int dummies = NUM ; for ( int i = NUM ; i < len ; i ++ ) { int c = s . char At ( i ) ; int value = ( c <= NUM ) ? char To Value [ c ] : IGNORE ...
public byte [ ] decode ( String s ) { byte [ ] b = new byte [ ( s . length ( ) / _NUM ) * _NUM ] ; int cycle = _NUM ; int combined = _NUM ; int j = _NUM ; int len = s . length ( ) ; int dummies = _NUM ; for ( int i = _NUM ; i < len ; i ++ ) { int c = s . charAt ( i ) ; int value = ( c <= _NUM ) ? charToValue [ c ] : IG...
314
java-test-127
java
Must it have an even multiple of 4 data characters ( not counting \ n ) , padded out with = as needed ?
Yes
public byte [ ] decode ( String s ) { byte [ ] b = new byte [ ( s . length ( ) / NUM ) * NUM ] ; int cycle = NUM ; int combined = NUM ; int j = NUM ; int len = s . length ( ) ; int dummies = NUM ; for ( int i = NUM ; i < len ; i ++ ) { int c = s . char At ( i ) ; int value = ( c <= NUM ) ? char To Value [ c ] : IGNORE ...
public byte [ ] decode ( String s ) { byte [ ] b = new byte [ ( s . length ( ) / _NUM ) * _NUM ] ; int cycle = _NUM ; int combined = _NUM ; int j = _NUM ; int len = s . length ( ) ; int dummies = _NUM ; for ( int i = _NUM ; i < len ; i ++ ) { int c = s . charAt ( i ) ; int value = ( c <= _NUM ) ? charToValue [ c ] : IG...
314
java-test-128
java
How do this method mark parameter ?
with the specified index as output
public void register Out Param ( int index , int type ) throws SQL Exception { FB Procedure Param param = get Input Param ( index ) ; if ( param == null || param == Null Param . NULL PARAM ) { param = get Output Param ( index ) ; } else { add Output Param ( param ) ; if ( ! param . is Value Set ( ) ) { input Params . s...
public void registerOutParam ( int index , int type ) throws SQLException { FBProcedureParam param = getInputParam ( index ) ; if ( param == null || param == NullParam . NULL_PARAM ) { param = getOutputParam ( index ) ; } else { addOutputParam ( param ) ; if ( ! param . isValueSet ( ) ) { inputParams . set ( param . ge...
133
java-test-129
java
Do this method mark parameter with the specified index as output ?
Yes
public void register Out Param ( int index , int type ) throws SQL Exception { FB Procedure Param param = get Input Param ( index ) ; if ( param == null || param == Null Param . NULL PARAM ) { param = get Output Param ( index ) ; } else { add Output Param ( param ) ; if ( ! param . is Value Set ( ) ) { input Params . s...
public void registerOutParam ( int index , int type ) throws SQLException { FBProcedureParam param = getInputParam ( index ) ; if ( param == null || param == NullParam . NULL_PARAM ) { param = getOutputParam ( index ) ; } else { addOutputParam ( param ) ; if ( ! param . isValueSet ( ) ) { inputParams . set ( param . ge...
133
java-test-130
java
What do this method mark with the specified index as output ?
parameter
public void register Out Param ( int index , int type ) throws SQL Exception { FB Procedure Param param = get Input Param ( index ) ; if ( param == null || param == Null Param . NULL PARAM ) { param = get Output Param ( index ) ; } else { add Output Param ( param ) ; if ( ! param . is Value Set ( ) ) { input Params . s...
public void registerOutParam ( int index , int type ) throws SQLException { FBProcedureParam param = getInputParam ( index ) ; if ( param == null || param == NullParam . NULL_PARAM ) { param = getOutputParam ( index ) ; } else { addOutputParam ( param ) ; if ( ! param . isValueSet ( ) ) { inputParams . set ( param . ge...
133
java-test-131
java
What is this used as such ?
to output them
void write Maps ( Enumeration maps ) throws IO Exception { if ( maps != null ) { while ( maps . has More Elements ( ) ) { Map map = ( Map ) maps . next Element ( ) ; String name = map . get Name ( ) ; incr Indent ( ) ; indent Smart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write...
void writeMaps ( Enumeration maps ) throws IOException { if ( maps != null ) { while ( maps . hasMoreElements ( ) ) { Map map = ( Map ) maps . nextElement ( ) ; String name = map . getName ( ) ; incrIndent ( ) ; indentSmart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write ( STRIN...
213
java-test-132
java
How are maps not stored ?
as elements in the document
void write Maps ( Enumeration maps ) throws IO Exception { if ( maps != null ) { while ( maps . has More Elements ( ) ) { Map map = ( Map ) maps . next Element ( ) ; String name = map . get Name ( ) ; incr Indent ( ) ; indent Smart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write...
void writeMaps ( Enumeration maps ) throws IOException { if ( maps != null ) { while ( maps . hasMoreElements ( ) ) { Map map = ( Map ) maps . nextElement ( ) ; String name = map . getName ( ) ; incrIndent ( ) ; indentSmart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write ( STRIN...
213
java-test-133
java
Is this used to output them as such ?
Yes
void write Maps ( Enumeration maps ) throws IO Exception { if ( maps != null ) { while ( maps . has More Elements ( ) ) { Map map = ( Map ) maps . next Element ( ) ; String name = map . get Name ( ) ; incr Indent ( ) ; indent Smart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write...
void writeMaps ( Enumeration maps ) throws IOException { if ( maps != null ) { while ( maps . hasMoreElements ( ) ) { Map map = ( Map ) maps . nextElement ( ) ; String name = map . getName ( ) ; incrIndent ( ) ; indentSmart ( ) ; write ( STRING ) ; if ( name != null ) { write ( STRING ) ; write ( name ) ; write ( STRIN...
213
java-test-134
java
When did the code use to convert raw characters to their escaped version ?
when these raw version can not be used as part of an ascii string literal
protected String add escapes ( String str ) { String Buffer retval = new String Buffer ( ) ; char ch ; for ( int i = NUM ; i < str . length ( ) ; i ++ ) { switch ( str . char At ( i ) ) { case NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; ca...
protected String add_escapes ( String str ) { StringBuffer retval = new StringBuffer ( ) ; char ch ; for ( int i = _NUM ; i < str . length ( ) ; i ++ ) { switch ( str . charAt ( i ) ) { case _NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; cas...
241
java-test-135
java
What did the code use when these raw version can not be used as part of an ascii string literal ?
to convert raw characters to their escaped version
protected String add escapes ( String str ) { String Buffer retval = new String Buffer ( ) ; char ch ; for ( int i = NUM ; i < str . length ( ) ; i ++ ) { switch ( str . char At ( i ) ) { case NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; ca...
protected String add_escapes ( String str ) { StringBuffer retval = new StringBuffer ( ) ; char ch ; for ( int i = _NUM ; i < str . length ( ) ; i ++ ) { switch ( str . charAt ( i ) ) { case _NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; cas...
241
java-test-136
java
Did the code use to convert raw characters to their escaped version when these raw version can not be used as part of an ascii string literal ?
Yes
protected String add escapes ( String str ) { String Buffer retval = new String Buffer ( ) ; char ch ; for ( int i = NUM ; i < str . length ( ) ; i ++ ) { switch ( str . char At ( i ) ) { case NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; ca...
protected String add_escapes ( String str ) { StringBuffer retval = new StringBuffer ( ) ; char ch ; for ( int i = _NUM ; i < str . length ( ) ; i ++ ) { switch ( str . charAt ( i ) ) { case _NUM : continue ; case STRING : retval . append ( STRING ) ; continue ; case STRING : retval . append ( STRING ) ; continue ; cas...
241
java-test-139
java
Is a pathiterator used to figure out the points to use to add to the toshape ?
Yes
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-140
java
What do you close ?
the path yourself
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-141
java
Do the points use to add to the toshape ?
Yes
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-142
java
Do you want it to be a polygon ?
Yes
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-143
java
Do you close the path yourself ?
Yes
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-144
java
What do you want ?
it to be a polygon
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-145
java
What is a pathiterator used ?
to figure out the points to use to add to the toshape
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-146
java
What do the points use ?
to add to the toshape
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-147
java
What is used to figure out the points to use to add to the toshape ?
a pathiterator
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-148
java
What do you need ?
to close the path yourself if you want it to be a polygon
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-149
java
Do you need to close the path yourself if you want it to be a polygon ?
Yes
public static General Path append Shape Edge ( General Path to Shape , General Path add Shape , boolean line To ) { boolean DEBUG = Debug . debugging ( STRING ) ; int point Count = NUM ; if ( add Shape == null ) { return to Shape ; } if ( to Shape == null ) { return add Shape ; } to Shape . append ( add Shape , line To...
public static GeneralPath appendShapeEdge ( GeneralPath toShape , GeneralPath addShape , boolean lineTo ) { boolean DEBUG = Debug . debugging ( STRING ) ; int pointCount = _NUM ; if ( addShape == null ) { return toShape ; } if ( toShape == null ) { return addShape ; } toShape . append ( addShape , lineTo ) ; return toS...
82
java-test-150
java
Does the code delete a specified authentication module instance ?
Yes
public void delete Authentication Instance ( String name ) throws AM Configuration Exception { AM Authentication Instance instance = get Authentication Instance ( name ) ; if ( instance == null ) { throw new AM Configuration Exception ( BUNDLE NAME , STRING , new Object [ ] { name } ) ; } if ( is Module Instance In Use...
public void deleteAuthenticationInstance ( String name ) throws AMConfigurationException { AMAuthenticationInstance instance = getAuthenticationInstance ( name ) ; if ( instance == null ) { throw new AMConfigurationException ( BUNDLE_NAME , STRING , new Object [ ] { name } ) ; } if ( isModuleInstanceInUse ( name ) ) { ...
352
java-test-151
java
What does the code delete ?
a specified authentication module instance
public void delete Authentication Instance ( String name ) throws AM Configuration Exception { AM Authentication Instance instance = get Authentication Instance ( name ) ; if ( instance == null ) { throw new AM Configuration Exception ( BUNDLE NAME , STRING , new Object [ ] { name } ) ; } if ( is Module Instance In Use...
public void deleteAuthenticationInstance ( String name ) throws AMConfigurationException { AMAuthenticationInstance instance = getAuthenticationInstance ( name ) ; if ( instance == null ) { throw new AMConfigurationException ( BUNDLE_NAME , STRING , new Object [ ] { name } ) ; } if ( isModuleInstanceInUse ( name ) ) { ...
352
java-test-152
java
What should we continue ?
making additional http requests in the current produce ( ) call or whether to return the current batch
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-153
java
Where do we make additional http requests ?
in the current produce ( ) call
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-154
java
What do we return ?
the current batch
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-155
java
Do we make additional http requests in the current produce ( ) call ?
Yes
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-156
java
Do we return the current batch ?
Yes
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-157
java
Should we continue making additional http requests in the current produce ( ) call or whether to return the current batch ?
Yes
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-158
java
What do we make in the current produce ( ) call ?
additional http requests
private boolean should Make Request ( ) { boolean should Make Request = last Request Completed Time == - NUM ; should Make Request |= next != null ; should Make Request |= ( have More Pages && conf . pagination . mode != Pagination Mode . LINK HEADER ) ; should Make Request |= System . current Time Millis ( ) > last Re...
private boolean shouldMakeRequest ( ) { boolean shouldMakeRequest = lastRequestCompletedTime == - _NUM ; shouldMakeRequest |= next != null ; shouldMakeRequest |= ( haveMorePages && conf . pagination . mode != PaginationMode . LINK_HEADER ) ; shouldMakeRequest |= System . currentTimeMillis ( ) > lastRequestCompletedTime...
90
java-test-166
java
Did the code cretae a bufferedimage from an imageproducer ?
Yes
public static Buffered Image create Image ( Image Producer producer ) { Pixel Grabber pg = new Pixel Grabber ( producer , NUM , NUM , - NUM , - NUM , null , NUM , NUM ) ; try { pg . grab Pixels ( ) ; } catch ( Interrupted Exception e ) { throw new Runtime Exception ( STRING ) ; } if ( ( pg . status ( ) & Image Observer...
public static BufferedImage createImage ( ImageProducer producer ) { PixelGrabber pg = new PixelGrabber ( producer , _NUM , _NUM , - _NUM , - _NUM , null , _NUM , _NUM ) ; try { pg . grabPixels ( ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( STRING ) ; } if ( ( pg . status ( ) & ImageObserver . ...
194
java-test-167
java
What did the code cretae ?
a bufferedimage from an imageproducer
public static Buffered Image create Image ( Image Producer producer ) { Pixel Grabber pg = new Pixel Grabber ( producer , NUM , NUM , - NUM , - NUM , null , NUM , NUM ) ; try { pg . grab Pixels ( ) ; } catch ( Interrupted Exception e ) { throw new Runtime Exception ( STRING ) ; } if ( ( pg . status ( ) & Image Observer...
public static BufferedImage createImage ( ImageProducer producer ) { PixelGrabber pg = new PixelGrabber ( producer , _NUM , _NUM , - _NUM , - _NUM , null , _NUM , _NUM ) ; try { pg . grabPixels ( ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( STRING ) ; } if ( ( pg . status ( ) & ImageObserver . ...
194
java-test-168
java
What do them exceed ?
the max length of a tag entry
private static Map . Entry < String , String > maybe Truncate Tag Entry ( Map . Entry < String , String > tag entry ) { String k = tag entry . get Key ( ) ; String v = tag entry . get Value ( ) ; if ( k . length ( ) + v . length ( ) <= MAX TAG KEY VAL CHARS - NUM ) return tag entry ; if ( k . length ( ) > TRUNCATE TAG ...
private static Map . Entry < String , String > maybeTruncateTagEntry ( Map . Entry < String , String > tag_entry ) { String k = tag_entry . getKey ( ) ; String v = tag_entry . getValue ( ) ; if ( k . length ( ) + v . length ( ) <= MAX_TAG_KEY_VAL_CHARS - _NUM ) return tag_entry ; if ( k . length ( ) > TRUNCATE_TAG_NAME...
158
java-test-169
java
Do them exceed the max length of a tag entry ?
Yes
private static Map . Entry < String , String > maybe Truncate Tag Entry ( Map . Entry < String , String > tag entry ) { String k = tag entry . get Key ( ) ; String v = tag entry . get Value ( ) ; if ( k . length ( ) + v . length ( ) <= MAX TAG KEY VAL CHARS - NUM ) return tag entry ; if ( k . length ( ) > TRUNCATE TAG ...
private static Map . Entry < String , String > maybeTruncateTagEntry ( Map . Entry < String , String > tag_entry ) { String k = tag_entry . getKey ( ) ; String v = tag_entry . getValue ( ) ; if ( k . length ( ) + v . length ( ) <= MAX_TAG_KEY_VAL_CHARS - _NUM ) return tag_entry ; if ( k . length ( ) > TRUNCATE_TAG_NAME...
158
java-test-187
java
Can rmiregistry accept incoming calls now ?
Yes
public synchronized void start ( ) throws Remote Exception { if ( ! is Running ( ) ) { if ( ssf != null ) { registry = Locate Registry . create Registry ( port , null , ssf ) ; } else { registry = Locate Registry . create Registry ( port ) ; } is Running = BOOL ; } }
public synchronized void start ( ) throws RemoteException { if ( ! isRunning ( ) ) { if ( ssf != null ) { registry = LocateRegistry . createRegistry ( port , null , ssf ) ; } else { registry = LocateRegistry . createRegistry ( port ) ; } isRunning = _BOOL ; } }
63
java-test-188
java
What can rmiregistry accept now ?
incoming calls
public synchronized void start ( ) throws Remote Exception { if ( ! is Running ( ) ) { if ( ssf != null ) { registry = Locate Registry . create Registry ( port , null , ssf ) ; } else { registry = Locate Registry . create Registry ( port ) ; } is Running = BOOL ; } }
public synchronized void start ( ) throws RemoteException { if ( ! isRunning ( ) ) { if ( ssf != null ) { registry = LocateRegistry . createRegistry ( port , null , ssf ) ; } else { registry = LocateRegistry . createRegistry ( port ) ; } isRunning = _BOOL ; } }
63
java-test-189
java
Is this method used to delete the workflow matrix details ?
Yes
@ Transactional public void delete Work Flowfor Object ( final Map workflowsearchparams ) { final Criteria work Flow Crit = get Criteria For Deleteor Modify ( workflowsearchparams ) ; for ( final Work Flow Matrix matrix : ( List < Work Flow Matrix > ) work Flow Crit . list ( ) ) { workflow Matrix Repository . delete ( ...
@ Transactional public void deleteWorkFlowforObject ( final Map workflowsearchparams ) { final Criteria workFlowCrit = getCriteriaForDeleteorModify ( workflowsearchparams ) ; for ( final WorkFlowMatrix matrix : ( List < WorkFlowMatrix > ) workFlowCrit . list ( ) ) { workflowMatrixRepository . delete ( matrix ) ; } }
65
java-test-190
java
What is this method used ?
to delete the workflow matrix details
@ Transactional public void delete Work Flowfor Object ( final Map workflowsearchparams ) { final Criteria work Flow Crit = get Criteria For Deleteor Modify ( workflowsearchparams ) ; for ( final Work Flow Matrix matrix : ( List < Work Flow Matrix > ) work Flow Crit . list ( ) ) { workflow Matrix Repository . delete ( ...
@ Transactional public void deleteWorkFlowforObject ( final Map workflowsearchparams ) { final Criteria workFlowCrit = getCriteriaForDeleteorModify ( workflowsearchparams ) ; for ( final WorkFlowMatrix matrix : ( List < WorkFlowMatrix > ) workFlowCrit . list ( ) ) { workflowMatrixRepository . delete ( matrix ) ; } }
65
java-test-191
java
What is this method called ?
to clear any actions that have not been completed
protected synchronized void clear Remaining Actions ( ) { for ( int i = active Action List . size ( ) - NUM ; i >= NUM ; i -- ) { Transit Section Action tsa = active Action List . get ( i ) ; Thread t = tsa . get Waiting Thread ( ) ; if ( t != null ) { t . interrupt ( ) ; } if ( tsa . get Waiting For Sensor ( ) ) { tsa...
protected synchronized void clearRemainingActions ( ) { for ( int i = _activeActionList . size ( ) - _NUM ; i >= _NUM ; i -- ) { TransitSectionAction tsa = _activeActionList . get ( i ) ; Thread t = tsa . getWaitingThread ( ) ; if ( t != null ) { t . interrupt ( ) ; } if ( tsa . getWaitingForSensor ( ) ) { tsa . dispos...
109
java-test-192
java
Is this method called to clear any actions that have not been completed ?
Yes
protected synchronized void clear Remaining Actions ( ) { for ( int i = active Action List . size ( ) - NUM ; i >= NUM ; i -- ) { Transit Section Action tsa = active Action List . get ( i ) ; Thread t = tsa . get Waiting Thread ( ) ; if ( t != null ) { t . interrupt ( ) ; } if ( tsa . get Waiting For Sensor ( ) ) { tsa...
protected synchronized void clearRemainingActions ( ) { for ( int i = _activeActionList . size ( ) - _NUM ; i >= _NUM ; i -- ) { TransitSectionAction tsa = _activeActionList . get ( i ) ; Thread t = tsa . getWaitingThread ( ) ; if ( t != null ) { t . interrupt ( ) ; } if ( tsa . getWaitingForSensor ( ) ) { tsa . dispos...
109
java-test-193
java
Where do a sequence number add ?
at the rear of the given fileext
private static String gen Class ID ( String file Ext , int reg Level ) { boolean is Cls ID Exist = BOOL ; String appendix , tem Cls ID , tem Cls ID Key , tem File Ext ; tem File Ext = file Ext . trim ( ) ; if ( tem File Ext . char At ( NUM ) == STRING ) { tem File Ext = tem File Ext . substring ( NUM ) ; } int i = NUM ...
private static String genClassID ( String fileExt , int regLevel ) { boolean isClsIDExist = _BOOL ; String appendix , temClsID , temClsIDKey , temFileExt ; temFileExt = fileExt . trim ( ) ; if ( temFileExt . charAt ( _NUM ) == STRING ) { temFileExt = temFileExt . substring ( _NUM ) ; } int i = _NUM ; while ( ( isClsIDE...
206
java-test-194
java
Do a sequence number add at the rear of the given fileext ?
Yes
private static String gen Class ID ( String file Ext , int reg Level ) { boolean is Cls ID Exist = BOOL ; String appendix , tem Cls ID , tem Cls ID Key , tem File Ext ; tem File Ext = file Ext . trim ( ) ; if ( tem File Ext . char At ( NUM ) == STRING ) { tem File Ext = tem File Ext . substring ( NUM ) ; } int i = NUM ...
private static String genClassID ( String fileExt , int regLevel ) { boolean isClsIDExist = _BOOL ; String appendix , temClsID , temClsIDKey , temFileExt ; temFileExt = fileExt . trim ( ) ; if ( temFileExt . charAt ( _NUM ) == STRING ) { temFileExt = temFileExt . substring ( _NUM ) ; } int i = _NUM ; while ( ( isClsIDE...
206
java-test-195
java
How does a new class i d name based on the given fileext name construct ?
by adding a sequence number at the rear of the given fileext
private static String gen Class ID ( String file Ext , int reg Level ) { boolean is Cls ID Exist = BOOL ; String appendix , tem Cls ID , tem Cls ID Key , tem File Ext ; tem File Ext = file Ext . trim ( ) ; if ( tem File Ext . char At ( NUM ) == STRING ) { tem File Ext = tem File Ext . substring ( NUM ) ; } int i = NUM ...
private static String genClassID ( String fileExt , int regLevel ) { boolean isClsIDExist = _BOOL ; String appendix , temClsID , temClsIDKey , temFileExt ; temFileExt = fileExt . trim ( ) ; if ( temFileExt . charAt ( _NUM ) == STRING ) { temFileExt = temFileExt . substring ( _NUM ) ; } int i = _NUM ; while ( ( isClsIDE...
206
java-test-196
java
What is adding at the rear of the given fileext ?
a sequence number
private static String gen Class ID ( String file Ext , int reg Level ) { boolean is Cls ID Exist = BOOL ; String appendix , tem Cls ID , tem Cls ID Key , tem File Ext ; tem File Ext = file Ext . trim ( ) ; if ( tem File Ext . char At ( NUM ) == STRING ) { tem File Ext = tem File Ext . substring ( NUM ) ; } int i = NUM ...
private static String genClassID ( String fileExt , int regLevel ) { boolean isClsIDExist = _BOOL ; String appendix , temClsID , temClsIDKey , temFileExt ; temFileExt = fileExt . trim ( ) ; if ( temFileExt . charAt ( _NUM ) == STRING ) { temFileExt = temFileExt . substring ( _NUM ) ; } int i = _NUM ; while ( ( isClsIDE...
206
java-test-197
java
For what purpose do the incoming message process ?
to look for the needed echo
public void message ( Loco Net Message m ) { log . debug ( STRING ) ; if ( ! m Run Button . is Selected ( ) ) { return ; } if ( ! ( m Next Echo . equals ( m ) ) ) { return ; } start Sequence Delay ( ) ; }
public void message ( LocoNetMessage m ) { log . debug ( STRING ) ; if ( ! mRunButton . isSelected ( ) ) { return ; } if ( ! ( mNextEcho . equals ( m ) ) ) { return ; } startSequenceDelay ( ) ; }
58
java-test-198
java
Till when do the signalbarrier and block claim ?
until signaled
public void await ( ) throws Interrupted Exception { Thread t = Thread . current Thread ( ) ; if ( ! owner Access . compare And Set ( this , null , t ) ) { throw new Illegal State Exception ( STRING ) ; } Lock Support . park ( this ) ; owner Access . compare And Set ( this , t , null ) ; if ( t . is Interrupted ( ) ) t...
public void await ( ) throws InterruptedException { Thread t = Thread . currentThread ( ) ; if ( ! ownerAccess . compareAndSet ( this , null , t ) ) { throw new IllegalStateException ( STRING ) ; } LockSupport . park ( this ) ; ownerAccess . compareAndSet ( this , t , null ) ; if ( t . isInterrupted ( ) ) throw new Int...
86
java-test-199
java
What does the code treat as an unsigned series of bytes , most significant bits first ?
the byte [ ]
public static byte [ ] unsigned Copy And Increment ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = copy . length - NUM ; i >= NUM ; -- i ) { if ( copy [ i ] == - NUM ) { copy [ i ] = NUM ; } else { ++ copy [ i ] ; return...
public static byte [ ] unsignedCopyAndIncrement ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = copy . length - _NUM ; i >= _NUM ; -- i ) { if ( copy [ i ] == - _NUM ) { copy [ i ] = _NUM ; } else { ++ copy [ i ] ; return ...
138
java-test-200
java
Does the code carry all overflows to the more significant bits / bytes over ?
Yes
public static byte [ ] unsigned Copy And Increment ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = copy . length - NUM ; i >= NUM ; -- i ) { if ( copy [ i ] == - NUM ) { copy [ i ] = NUM ; } else { ++ copy [ i ] ; return...
public static byte [ ] unsignedCopyAndIncrement ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = copy . length - _NUM ; i >= _NUM ; -- i ) { if ( copy [ i ] == - _NUM ) { copy [ i ] = _NUM ; } else { ++ copy [ i ] ; return ...
138
java-test-201
java
What does the code carry to the more significant bits / bytes over ?
all overflows
public static byte [ ] unsigned Copy And Increment ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = copy . length - NUM ; i >= NUM ; -- i ) { if ( copy [ i ] == - NUM ) { copy [ i ] = NUM ; } else { ++ copy [ i ] ; return...
public static byte [ ] unsignedCopyAndIncrement ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = copy . length - _NUM ; i >= _NUM ; -- i ) { if ( copy [ i ] == - _NUM ) { copy [ i ] = _NUM ; } else { ++ copy [ i ] ; return ...
138
java-test-202
java
Does the code treat the byte [ ] as an unsigned series of bytes , most significant bits first ?
Yes
public static byte [ ] unsigned Copy And Increment ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new Illegal Argument Exception ( STRING ) ; } for ( int i = copy . length - NUM ; i >= NUM ; -- i ) { if ( copy [ i ] == - NUM ) { copy [ i ] = NUM ; } else { ++ copy [ i ] ; return...
public static byte [ ] unsignedCopyAndIncrement ( final byte [ ] input ) { byte [ ] copy = copy ( input ) ; if ( copy == null ) { throw new IllegalArgumentException ( STRING ) ; } for ( int i = copy . length - _NUM ; i >= _NUM ; -- i ) { if ( copy [ i ] == - _NUM ) { copy [ i ] = _NUM ; } else { ++ copy [ i ] ; return ...
138
java-test-205
java
What are ignored in computing the error ?
any nan values in either a or b
public static double sum Squared Error ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new Illegal Argument Exception ( STRING ) ; } double sum = NUM ; for ( int i = NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . is Na N ( delta ) ) { sum += delta * delta ; ...
public static double sumSquaredError ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new IllegalArgumentException ( STRING ) ; } double sum = _NUM ; for ( int i = _NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . isNaN ( delta ) ) { sum += delta * delta ; } } ...
99
java-test-206
java
Are any nan values in either a or b ignored in computing the error ?
Yes
public static double sum Squared Error ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new Illegal Argument Exception ( STRING ) ; } double sum = NUM ; for ( int i = NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . is Na N ( delta ) ) { sum += delta * delta ; ...
public static double sumSquaredError ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new IllegalArgumentException ( STRING ) ; } double sum = _NUM ; for ( int i = _NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . isNaN ( delta ) ) { sum += delta * delta ; } } ...
99
java-test-207
java
Does the code build the sum of the squared difference of all elements with the same index numbers in the arrays ?
Yes
public static double sum Squared Error ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new Illegal Argument Exception ( STRING ) ; } double sum = NUM ; for ( int i = NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . is Na N ( delta ) ) { sum += delta * delta ; ...
public static double sumSquaredError ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new IllegalArgumentException ( STRING ) ; } double sum = _NUM ; for ( int i = _NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . isNaN ( delta ) ) { sum += delta * delta ; } } ...
99
java-test-208
java
Where are any nan values in either a or b ignored ?
in computing the error
public static double sum Squared Error ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new Illegal Argument Exception ( STRING ) ; } double sum = NUM ; for ( int i = NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . is Na N ( delta ) ) { sum += delta * delta ; ...
public static double sumSquaredError ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new IllegalArgumentException ( STRING ) ; } double sum = _NUM ; for ( int i = _NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . isNaN ( delta ) ) { sum += delta * delta ; } } ...
99
java-test-209
java
What does the code build ?
the sum of the squared difference of all elements with the same index numbers in the arrays
public static double sum Squared Error ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new Illegal Argument Exception ( STRING ) ; } double sum = NUM ; for ( int i = NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . is Na N ( delta ) ) { sum += delta * delta ; ...
public static double sumSquaredError ( double [ ] a , double [ ] b ) { if ( a . length != b . length ) { throw new IllegalArgumentException ( STRING ) ; } double sum = _NUM ; for ( int i = _NUM ; i < a . length ; i ++ ) { double delta = a [ i ] - b [ i ] ; if ( ! Double . isNaN ( delta ) ) { sum += delta * delta ; } } ...
99
java-test-210
java
Does the code find the last assignment to the given string local by searching upwards from the given statement ?
Yes
private String find Last String Assignment ( Stmt stmt , Local local , Bi Di Interprocedural CFG < Unit , Soot Method > cfg ) { if ( stmt instanceof Assign Stmt ) { Assign Stmt assign = ( Assign Stmt ) stmt ; if ( assign . get Left Op ( ) == local ) { if ( assign . get Right Op ( ) instanceof String Constant ) return (...
private String findLastStringAssignment ( Stmt stmt , Local local , BiDiInterproceduralCFG < Unit , SootMethod > cfg ) { if ( stmt instanceof AssignStmt ) { AssignStmt assign = ( AssignStmt ) stmt ; if ( assign . getLeftOp ( ) == local ) { if ( assign . getRightOp ( ) instanceof StringConstant ) return ( ( StringConsta...
150
java-test-211
java
What does the code find by searching upwards from the given statement ?
the last assignment to the given string local
private String find Last String Assignment ( Stmt stmt , Local local , Bi Di Interprocedural CFG < Unit , Soot Method > cfg ) { if ( stmt instanceof Assign Stmt ) { Assign Stmt assign = ( Assign Stmt ) stmt ; if ( assign . get Left Op ( ) == local ) { if ( assign . get Right Op ( ) instanceof String Constant ) return (...
private String findLastStringAssignment ( Stmt stmt , Local local , BiDiInterproceduralCFG < Unit , SootMethod > cfg ) { if ( stmt instanceof AssignStmt ) { AssignStmt assign = ( AssignStmt ) stmt ; if ( assign . getLeftOp ( ) == local ) { if ( assign . getRightOp ( ) instanceof StringConstant ) return ( ( StringConsta...
150