input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
private boolean is command displayable int i if i aatoken length i pc end aatoken i null return false return line indices i 1 line indices i 0 | provides support for the script editor |
public void set mesh creator object mesh creator load shape jmol constants shape isosurface set shape property jmol constants shape isosurface mesh creator mesh creator | an external applet or app with class that extends org |
public void set transform manager transform manager transform manager stop animation threads set transform man this transform manager transform manager transform manager set viewer this dim screen width dim screen height set transform manager defaults transform manager home position true | for an external application |
public void add command string command if auto exit have display get preserve state return system out println add command command command history add command text format replace all characters command r n t | adds one or more commands to the command history |
public string remove command system out println remove command return command history remove command | removes one command from the command history |
public boolean get preserve state return global preserve state | this flag if set false |
public string get label string udi string label command hal get property key volume label udi udi return execute command label command | get the label of the device |
private void read from files read file constants agent jar constants agent jar cp read file constants swt jar constants swt jar cp read file constants dbus jar constants dbus jar cp read file constants unix jar constants unix jar cp | reads the info already stored in files |
private void read file string file id string class path data file file new file class path data if file exists return read the file buffered reader bf null try bf new buffered reader new file reader file string contents bf read line text fields get file id set text contents catch exception e e print stack trace finally if bf null try bf close catch exception e e print stack trace | reads one of the cp files |
public boolean is mounted string udi throws dbus exception dbus properties props bus get remote object org freedesktop udisks udi dbus properties class return props get org freedesktop udisks device device is mounted | check if certain device is mounted or not |
public string get label string udi throws dbus exception dbus properties props bus get remote object org freedesktop udisks udi dbus properties class return props get org freedesktop udisks device id label | get the label of the device |
public void dump lib output stream os throws java io ioexception string s library to string os write libray key dump get bytes set keys library key set set sorted new tree set keys iterator it sorted iterator while it has next string key string it next os write key get bytes os write n | debug dump of the library |
public string get mem wrapper type string instance name return string mem wrap instance names get instance name | check if a given instance name is really a memory wrapper |
public mem wrapper pin data get wrapper pin data string wrapper name string pin name map pin map map mem wrap params table get wrapper name if pin map null system out println error mem wrapper name wrapper name not found return null mem wrapper pin data pin data mem wrapper pin data pin map get pin name if pin data null system out println error mem wrapper name wrapper name does not have pin name pin name return null return pin data | gets the pin data for a memory wrapper |
public object visit compilation unit n object argu object ret null n f0 accept this argu n f1 accept this argu return ret | f0 source text |
public int parse int string an int int result 0 try result integer parse int an int catch exception ex return result | utility method to parse an integer string returns 0 if it doesnt parse |
public string strip spaces string s byte x s get bytes byte b new byte x length int k 0 for int i 0 i x length i if x i continue b k x i k 1 string packed new string b 0 k system out println packed string packed return packed | a utility to remove all spaces from a string |
public int get condition code string cell type string condition str map conds map conditions get cell type if conds null system out println warning no conditions map was created in the cell library for cell type return 1 if condition str null return 1 string packed strip spaces condition str if packed null return 1 integer code integer conds get packed if code null system out println warning no match for condtion string condition str for cell type cell type return 1 system out println found conditions code for cell type packed return code int value | provides the bit code integer for a given fanout delay condtion string |
public object visit module item n object argu object ret null n f0 accept this argu return ret | f0 module item decl |
public boolean is in cell library string name return library contains key name | convenience method for determining if a cell name is in the library |
public object visit list of specparam assignments n object argu object ret null n f0 accept this argu n f1 accept this argu return ret | f0 specparam assignment |
public boolean is memory cell string name return mem table contains key name | convenience method returns true is this is a memory cell in the library |
public object visit path declaration n object argu object ret null n f0 accept this argu return ret | f0 simple path declaration semicolon |
public object visit edge sensitive path declaration n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu return ret | f0 parallel edge sensitive path description |
public void visit compilation unit n n f0 accept this n f1 accept this | f0 source text |
public object visit simple path declaration n object argu object ret null n f0 accept this argu return ret | f0 parallel path description assign path delay value |
public object visit path delay value n object argu object ret null n f0 accept this argu return ret | f0 list of path delay expressions |
public object visit list of path delay expressions n object argu object ret null n f0 accept this argu n f1 accept this argu return ret | f0 path delay expression |
public int get mem cell group number string cell name string pin name mem cell data d mem cell data mem table get cell name if d null return 1 hash map pin data d pin data if pin data null return 1 pin data pd pin data pin data get pin name if pd null return 1 int group pd group return group | a utility method to find which group a memory cell pin is in |
public void visit module item n n f0 accept this | f0 module item decl |
public int get mem cell port number string cell name string pin name mem cell data d mem cell data mem table get cell name if d null return 1 hash map pin data d pin data if pin data null return 1 pin data pd pin data pin data get pin name if pd null return 1 int port pd port return port | a utility method to find which port a memory cell pin is in |
public void visit list of specparam assignments n n f0 accept this n f1 accept this | f0 specparam assignment |
public object visit list of path outputs n object argu object ret null n f0 accept this argu n f1 accept this argu return ret | f0 specify output terminal descriptor |
public void visit path declaration n n f0 accept this | f0 simple path declaration semicolon |
public void visit edge sensitive path declaration n n f0 accept this n f1 accept this n f2 accept this | f0 parallel edge sensitive path description |
public void visit simple path declaration n n f0 accept this | f0 parallel path description assign path delay value |
private int string to bits string str char b str to char array int bits 0 for int i 0 i b length i bits bits 1 b i 1 1 0 if b i 1 b i 0 system out println error converting to bits not 0 or 1 str return bits | a helper to convert a string of 1 and 0 chars to bits |
public void visit path delay value n n f0 accept this | f0 list of path delay expressions |
public void visit list of path delay expressions n n f0 accept this n f1 accept this | f0 path delay expression |
public int get output count string vertex name int out count 0 string outputs get cell out names vertex name if outputs length 1 if outputs 0 null out count 0 else out count 1 else out count outputs length return out count | get the count of the number of output pins |
public object visit state dependent path declaration n object argu object ret null n f0 accept this argu return ret | f0 if lparen conditional expression rparen simple or edge decl |
public object visit udp instance n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu n f3 accept this argu n f4 accept this argu n f5 accept this argu n f6 accept this argu return ret | f0 name of udp instance |
public object visit input port connection n object argu object ret null n f0 accept this argu return ret | f0 list of module connections |
public object visit output port connection n object argu object ret null n f0 accept this argu return ret | f0 ordered port connection |
public object visit simple or edge decl n object argu object ret null n f0 accept this argu return ret | f0 simple path declaration |
public object visit drive strength n object argu object ret null n f0 accept this argu return ret | f0 lparen strength0 comma strength1 rparen |
public int get output and inout count string cell name int out count 0 string outputs get cell out names cell name if outputs length 1 if outputs 0 null out count 0 else out count 1 else out count outputs length string inouts get cell inout names cell name if inouts length 1 inouts 0 null do nothing else out count inouts length return out count | get the count of the number of output pins |
public void visit list of path outputs n n f0 accept this n f1 accept this | f0 specify output terminal descriptor |
public object visit delay value n object argu object ret null n f0 accept this argu return ret | f0 unsigned number |
public object visit constant expression n object argu object ret null n f0 accept this argu return ret | f0 real number |
public int get num output hazard status words string cell name if cell name equals podrv3 v15 l int break here 7 int out count get output and inout count cell name int num haz status wds out count 2 3 if num haz status wds 2 system out println error number of hazard status words is 2 for cell name if get tag cell name 5 num haz status wds 0 special case none for pi cells return num haz status wds | computes the number of output hazard status lines to emit for the cell |
public object visit udp body n object argu object ret null n f0 accept this argu return ret | f0 combinational body |
public int get tag string cell type int result 1 string str string library get cell type if str null str str trim be sure no trailing spaces int index str last index of string tag string str substring index 1 try result integer parse int tag string 2 catch exception ex system out println error failed to convert library tag bits to an int tag string tag string for cell cell type return result | returns the tag bits as an int or 1 if not found |
public void visit state dependent path declaration n n f0 accept this | f0 if lparen conditional expression rparen simple or edge decl |
public object visit sequential body n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu n f3 accept this argu return ret | f0 udp initial statement |
public void visit simple or edge decl n n f0 accept this | f0 simple path declaration |
public int get hazard grp number string cell type int result 1 string str string library get cell type if str null str str trim be sure no trailing spaces int index str last index of string s str substring 0 index trim index s last index of string hz string s substring index 1 try result integer parse int hz string catch exception ex system out println error failed to convert library hz grp to an int hz string hz string for cell cell type return result | returns the hazard group number as an int 1 on error |
public object visit edge input list n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu return ret | f0 output symbol level symbol |
public object visit sequential entry n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu n f3 accept this argu n f4 accept this argu n f5 accept this argu return ret | f0 seq input list |
public object visit seq input list n object argu object ret null n f0 accept this argu return ret | f0 edge input list |
public void visit udp instance n n f0 accept this n f1 accept this n f2 accept this n f3 accept this n f4 accept this n f5 accept this n f6 accept this | f0 name of udp instance |
public object visit next state n object argu object ret null n f0 accept this argu return ret | f0 output symbol |
public int get num input haz words int hz grp num string s string hazard data get hz grp num string tokenizer st new string tokenizer s int k st count tokens int n k 1 5 10 return n | returns number of input hazard lines needed |
public object visit combinational entry n object argu object ret null n f0 accept this argu n f1 accept this argu n f2 accept this argu n f3 accept this argu return ret | f0 level input list |
public void visit output port connection n n f0 accept this | f0 ordered port connection |
public string get input haz data string int hz grp num string s string hazard data get hz grp num s s substring s index of trim return s | returns input hazard data string with index removed |
public void visit drive strength n n f0 accept this | f0 lparen strength0 comma strength1 rparen |
public object visit list of module connections n object argu object ret null n f0 accept this argu return ret | f0 ordered port connection comma ordered port connection |
public void visit delay value n n f0 accept this | f0 unsigned number |
public int get output number string cell name string pin name byte b convert pin name to fork out code cell name pin name obsolete there must be a better way switch b case 1 return 0 case 2 return 1 case 4 return 2 case 8 return 3 default if main debug system out println error in lib get output number converting output pin name pin name on cell cell name to number return 1 | provides output number 0 to 3 for an output pin name |
public object visit udp port declaration n object argu object ret null n f0 accept this argu return ret | f0 output declaration |
public string strip leading backslash string s if s char at 0 return s substring 1 else return s | strips off leading backslash for escaped identifiers if present |
public int get input count string cell name int ret val 0 string str string library get cell name if str null system out println error mapper library method get input count was passed an invalid cell name cell name else string tokenizer st new string tokenizer str st next token skip past cell name string ins st next token st new string tokenizer ins while st has more elements st next token ret val return ret val | gets the count of the number of input pins |
public void visit compilation unit n if main verbose system out println in visit compilation unit n n f0 accept this n f1 accept this | f0 source text |
public void visit udp body n n f0 accept this | f0 combinational body |
public object visit charge strength n object argu object ret null n f0 accept this argu return ret | f0 lparen small rparen |
public void visit sequential body n n f0 accept this n f1 accept this n f2 accept this n f3 accept this | f0 udp initial statement |
public void visit edge input list n n f0 accept this n f1 accept this n f2 accept this | f0 output symbol level symbol |
public void visit sequential entry n n f0 accept this n f1 accept this n f2 accept this n f3 accept this n f4 accept this n f5 accept this | f0 seq input list |
public object visit primary n object argu object ret null n f0 accept this argu return ret | f0 unsigned number |
public void visit seq input list n n f0 accept this | f0 edge input list |
public void visit combinational entry n n f0 accept this n f1 accept this n f2 accept this n f3 accept this | f0 level input list |
private void print string list list list iterator it list iterator system out print string list while it has next string s string it next system out print s system out print n | a debug printout helper displays string list |
public void visit list of module connections n n f0 accept this | f0 ordered port connection comma ordered port connection |
public void visit net declaration n n f0 accept this | f0 net type list of identifiers semicolon |
public void visit charge strength n n f0 accept this | f0 lparen small rparen |
public object visit net declaration n object argu object ret null n f0 accept this argu return ret | f0 net type list of identifiers semicolon |
public void visit input port connection n n f0 accept this | f0 list of module connections |
public void visit primary n n f0 accept this | f0 identifier lbracket expression rbracket |
public void visit number n n f0 accept this | f0 unsigned number |
public object visit number n object argu object ret null n f0 accept this argu return ret | f0 unsigned number |
public void visit constant expression n n f0 accept this | f0 real number |
public void visit next state n n f0 accept this | f0 output symbol |
public void visit list of module connections n if main verbose system out println in visit list of module connections n current conn list clear system out println choice n f0 which n f0 accept this | f0 ordered port connection comma ordered port connection |
public void visit number n n f0 accept this switch n f0 which case 0 current number image node token n f0 choice token image break case 1 current number image node token n f0 choice token image break case 2 if main debug system out println error init val kludge for number not really implemented node token n f0 choice token image current number image 0 break | f0 unsigned number |
public boolean is primary return true | always returns code true code regardless of the realm is enabled or not |
private void assert user source string source assert equals this user locator get source source | asserts that the user source matches the one of ldap user locator |
private string get username authentication info auth info collection tmp auth info get principals from realm this realm get name return tmp iterator next to string | retrieves the username out of a code authentication info code |
public void test successful authentication uid throws exception username password token token new username password token andham secret authentication info auth info realm get authentication info token assert not null authentication info returned from get authentication info is null auth info assert equals token get username get username auth info | tests authentication with prefix uid |
public void test successful authentication cn throws exception username password token token new username password token joel bibrant secret2 authentication info auth info realm get authentication info token assert not null authentication info returned from get authentication info is null auth info assert equals wrong username in returned authentication info token get username get username auth info | tests authentication with prefix cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.