input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public double f measure double beta rtcdiff rtc diff if rtc diff null return 1 double numerator math pow beta 2 1 precision rtc diff recall rtc diff double denominator math pow beta 2 precision rtc diff recall rtc diff if denominator 0 return 0 else return numerator denominator | returns the f measure for a rated test case and a specified beta |
public double f measure double beta stcdiff stc diff precision recall calculator strategy double numerator 0 for rated test case rtc stc diff get case get cases numerator strategy f measure beta stc diff get diff rtc double denominator stc diff get case get cases size return numerator denominator | returns the f measure of a |
public void add rtcdiff rtc diff this rtc diffs put rtc diff get case rtc diff | adds a new difference wrt a |
public void add expected but not derived question question value expected value derived this differences put question new value diff expected derived | adds the deviation to the rtcdiff instance |
public void add expected but not derived solution solution rating expected rating derived this differences put solution new value diff expected derived | adds the deviation to the rtcdiff instance |
public test case analysis report run and analyze test case suite notify testcase start suite test case analysis report result new analysis report for sequential test case stc suite get repository diff diff run and analyze stc suite get kb result add diff notify testcase finished suite result return result | performs a test case analysis on the specified collection of |
public void add derived but not expected solution solution rating derived this differences put solution new value diff new rating state unclear derived | adds a deviation to the rtcdiff instance which says that there exists a |
public rated test case get case return this rtc | returns the rated test case that is compared in this instance |
public boolean has differences return differences key set is empty | evaluates whether differences are stored in this instance |
public double precision rated test case rtc if rtc get expected solutions size 0 return prec rtc else return 1 | returns the precision of a rated test case |
public double recall rated test case rtc if rtc get expected solutions size 0 return rec rtc else return 1 | returns the recall of a rated test case |
public double f measure double beta rated test case rtc double numerator math pow beta 2 1 precision rtc recall rtc double denominator math pow beta 2 precision rtc recall rtc return numerator denominator | returns the f measure for a rated test case and a specified beta |
public void set rating object o if o instanceof rating s de d3web core knowledge terminology rating o | sets diagnosis state of this rating to o |
private void notify testcase start test case suite for test listener listener listeners listener testcase starting suite | notifies registered listeners about the start of a |
public boolean is problem solving relevant return s is relevant | checks whether the rating is not unclear |
public question value get value return value | returns value of this finding |
public void set value question value v this value v | sets value of this finding to v |
public test case analysis report run and analyze test case suite string stc names throws illegal argument exception test case analysis report result new analysis report for string stc name stc names sequential test case stc find by name stc name suite diff diff run and analyze stc suite get kb result add diff return result | performs a test case analysis on |
private string transform state rated solution rs boolean symbolicstates string builder result new string builder if symbolicstates result append transform symbolic states rs get rating else result append transform scores rs get rating return result to string | transforms the state of a rated solution to a nice formatted string in |
private void notify rtcfinished rated test case rtc rtcdiff rtc diff for test listener listener this listeners listener rated testcase finished rtc rtc diff | notifies listeners that a |
private void notify rtcstart rated test case rtc for test listener listener this listeners listener rated testcase starting rtc | notifies registered listeners that a |
private void notify stcfinished sequential test case stc session session diff diff for test listener listener this listeners listener sequential testcase finished stc session diff | notifies registered listeners that a |
private void notify stcstart sequential test case stc session session for test listener listener this listeners listener sequential testcase starting stc session | notifies registered listeners that a |
public void insert statement statement s string identity s get dumped ast num of statement get and increment synchronized statements if statements contains key identity statements get identity add s else array list statement list new array list statement list add s statements put identity list | thread safe insertion |
public void close if progress dialog null progress dialog set visible false if timer null timer stop timer null | p hides the dialog and stops any measurements |
public boolean is canceled the value is predefined to false and changes only when the user clicks the cancel button in the progress dialog return canceled | returns whether the user canceled the operation |
public void add extension string extension if filters null filters new hash map string java file filter 5 filters put extension to lower case this | adds a filetype dot extension to filter against |
public string get description string full description if description null is extension list in description full description description null description build the description from the extension list iterator string extensions filters key set iterator if extensions null full description extensions next while extensions has next full description extensions next full description else full description description return full description | returns the human readable description of this filter |
public void set note string note if note text area null note text area set text note else this note note | p set the message shown in the progess dialog |
public void insert statement final statement grouping group final statement s statement groups get group insert statement s | this is a call back from the ast parser to insert statements |
public string get display tag sort name final http servlet request request final string table id string param sort new processing util get display tag parameter table id table tag parameters parameter sort return request get parameter param sort | method to dermine by which field name we need to do sorting |
public string get display tag parameter final string table id final string param name return new param encoder table id encode parameter name param name | returns the name of encoded display tags parameter specified as param name |
public string get display tag sort order final http servlet request request final string table id string param order new processing util get display tag parameter table id table tag parameters parameter order return request get parameter param order | method to dermine which sorting we need to do ascending or descending |
public string get display tag current criteria final http servlet request request final string table id string param crit new processing util get display tag parameter table id constants parameter filter criteria return request get parameter param crit | crap method to fetch current if any value of selected criteria |
public string get display tag current search field final http servlet request request final string table id string param search field new processing util get display tag parameter table id constants parameter search field return request get parameter param search field | crap method to fetch current if any value of selected field |
public string get display tag current search from final http servlet request request final string table id string param search from new processing util get display tag parameter table id constants parameter search from return request get parameter param search from | crap method to fetch current if any value of selected from |
public string create sort subquery final string sort name final string sort order final string given alias final string defaultsort name string subquery null if sort name null sort order null subquery given alias sort name sort order equals ignore case 1 constants ql asc constants ql desc if subquery null subquery given alias defaultsort name return subquery | creates subquery order by which is the same for hql and for sql |
public string get display tag current search to final http servlet request request final string table id string param search to new processing util get display tag parameter table id constants parameter search to return request get parameter param search to | crap method to fetch current if any value of selected to |
public string get request uri final http servlet request request final string request uri string real urito use if request uri null nothing specified use default real urito use else if request uri equals ignore case empty one but specified use current from request real urito use request get request uri else you specified something for real real urito use request uri return real urito use | works with this |
public string create criteria where sql final string alias final string field final string value string parsed value value replace constants ql singlechar replace constants wildcard singlechar constants ql singlechar replace constants wildcard manychars constants ql manychars return alias field like parsed value | creates substring for criteria fetching |
public string create criteria where hql final string alias final string field final string value string parsed value value replace constants ql singlechar replace constants wildcard singlechar constants ql singlechar replace constants wildcard manychars constants ql manychars return alias field like parsed value | creates substring for criteria fetching |
public string to string string builder sb new string builder if is public sb append public if is private sb append private if is protected sb append protected if is static sb append static if is final sb append final if is volatile sb append volatile if is transient sb append transient return sb to string | produce a handy textual representation of the set flags |
public string to string if get array dimensions 0 string builder sb new string builder get type for int i 0 i get array dimensions i sb append return sb to string else return get type | a handy textual representation of a type descriptor |
public string to string string builder sb new string builder if is public sb append public if is private sb append private if is protected sb append protected if is static sb append static if is final sb append final if is synchronized sb append synchronized if is abstract sb append abstract return sb to string | produce a handy textual representation of the set flags |
public string to string string builder sb new string builder rtype to string sb append for int i 0 i params length i sb append params i to string if i params length 1 sb append sb append return sb to string | a handy textual representation of the method signature |
public string get utf8 int i if entries get i instanceof constant pool entry utf8 throw new illegal argument exception not an index to utf8 return constant pool entry utf8 entries get i get string | retrieve a utf8 string from the constant pool |
public string get string int i if entries get i instanceof constant pool entry ref throw new illegal argument exception not an index to a string return get utf8 constant pool entry ref entries get i get idx | retrieve the contents of a string object from the constant pool |
public string to string string builder sb new string builder if is public sb append public if is final sb append final if is super sb append super if is interface sb append interface if is abstract sb append abstract return sb to string | produce a handy textual representation of the set flags |
public string get name int i if entries get i instanceof constant pool entry name and type throw new illegal argument exception not an index to a name and type return get utf8 constant pool entry name and type entries get i get name idx | retrieve the name of a name and type entry from the constant pool |
public string get type int i if entries get i instanceof constant pool entry name and type throw new illegal argument exception not an index to a name and type return get utf8 constant pool entry name and type entries get i get type idx | retrieve the type of a name and type entry from the constant pool |
public string get field name int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return get name constant pool entry class and nt entries get i get ntidx | retrieve the name of a field from the constant pool |
public int get field name idx int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return constant pool entry class and nt entries get i get ntidx | retrieve the index of the name of a field from the constant pool |
public string get field type int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return get type constant pool entry class and nt entries get i get ntidx | retrieve the type of a field from the constant pool |
public int get field type idx int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return constant pool entry class and nt entries get i get ntidx | retrieve the index of the type of a field from the constant pool |
public string get field class int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return get string constant pool entry class and nt entries get i get class idx | retrieve the class to which a field belongs |
public int get field class idx int i if entries get i instanceof constant pool entry class and nt throw new illegal argument exception not an index to a field method ref return constant pool entry class and nt entries get i get class idx | retrieve the index to the class to which a field belongs |
public void set header flit flit header flit if this constructed this header flit header flit | set header flit sets the header flit of this packet |
public void add payload flit flit payload flit if this constructed this payload flit vector add payload flit | add payload flit adds a payload flit to this packet |
public boolean dec address field int field id if this address get field field id get offset arg 0 system err println error header flit field field id is already 0 return true if this address get field field id dec offset arg 0 return true return false | dec address field decrements an address field based on its id |
public int get bind arg return this bind arg | get bind arg returns the bind argument of this field |
public int get offset arg return this offset arg | get offset arg returns the offset argument of this field |
public boolean dec address field string alias if this address get field alias dec offset arg 0 return true system err println error header flit field is already 0 return false | dec address field decrements an address field based on its string alias |
public string get alias return this field alias | get alias returns the string alias of this field |
public int dec offset arg if this offset arg 0 this offset arg this offset arg 1 return this offset arg | dec offset arg for minimal routing we need to only decrement offsets |
public boolean inc address field int field id if get address field field id inc offset arg 0 system err println error header flit address field field id has wrapped on increment return false return true | inc address field increments an address field based on its id |
public int inc offset arg this offset arg this offset arg 1 return this offset arg | inc offset arg for non minimal routing we need to increment offsets |
public flit get next flit if this constructed this constructed true this flit cursor return this view flit cursor 1 | the get next flit method is special |
public boolean inc address field string alias if get address field alias inc offset arg 0 system err println error header flit address field alias has wrapped on increment return false return true | inc address field inccrements an address field based on its string alias |
public void set offset arg int offset arg this offset arg offset arg | set offset arg allows the offset arg to be changed |
public address get address return this address | get address returns the address object encapsulated in this header flit |
public void set field alias string field alias this field alias field alias | set field alias allows the alias to be changed |
public flit get current flit if this constructed this constructed true return this view flit cursor | the get current flit method is special |
public field copy return new field bind arg offset arg field alias | copy creates a copy of the fields instance variables in a new object |
public header flit get header flit return header flit this view 0 | get header flit returns the header flit of this packet object |
public field get address field int field id return this address get field field id | get address field by field alias |
public int get graph id return this destination get graph id | get graph id returns the graph id where both destination and source reside |
public int get destination task id return this destination get task id | get destination task id returns the logical task id of the destination |
public field get address field string alias return this address get field alias | get address field by field alias |
public int get source task id return this source get task id | get source task id returns the logical task id of the source |
public event vec get event vec return this ev | get status vec returns the status vec of this packet object |
public int get source packet id return this source get packet id | get source packet id returns the logical packet id of the source |
public flit view int index if index 0 system out println packet id this id returning header flit id header flit get id return this header flit else if index 1 payload flit vector size system out println packet id this id returning payload flit id payload flit vector element at index 1 get id return payload flit vector element at index 1 else return null invalid flit index | views the ith flit of the packet |
public address meta copy return new address meta destination copy source copy | copy returns a new address meta object copying the instance variables |
public int flit count return 1 payload flit vector size | returns the raw flit count header flit payload flits |
public flit element at int index return flit flit vec element at index | element at returns the element at the index in the flit vec |
public void set fields field fields this fields fields | set fields allows the post instantiation change of the field array in entirity |
public int size return flit vec size | size returns the number of flits currently housed in the flit vec |
public void set field int field id field field if field id fields length this fields field id field else system err println error address field id field id out of bounds | set field allows the post instantiation change of one field in the fields |
public field get field int index if index this fields length index 1 if this fields index null system err println address field index not set return this fields index system err println error address field index is out of bounds return null | get field by int id |
public field get field string alias for int i 0 i this fields length i if this get field i get alias equals ignore case alias return this get field i system err println error address field alias does not exist return null | get field by string alias |
public void destroy flit vec remove all elements trim to size | destroy removes all elements from the vector and calls trim to size |
public int get field count return this fields length | get field count returns the number of fields in this address object |
public address meta get meta return this meta | get meta returns the address meta of this address object |
public address copy address ret val new address get field count ret val set meta meta copy for int i 0 i get field count i ret val set field i get field i copy return ret val | copy returns a new copy of this address object |
public int get packet id return this packet id | get packet id returns the packet id from this unique packet id object |
public int get task id return this task id | get task id returns the task id from this unique packet id object |
public boolean equals unique packet id comparable if this get packet id comparable get packet id this get task id comparable get task id return true else return false | equals compares the argument and returns true if the two objects |
public unique packet id copy return new unique packet id task id packet id | copy returns a new unique packet id that is equal to this one |
public int get graph id return this graph id | get graph id returns the graph id from this unique task id object |
public boolean equals unique task id comparable if this get graph id comparable get graph id this get task id comparable get task id return true else return false | equals compares the argument and returns true if the two objects |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.