input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public dnie signed document comment create dnie signed document comment return new dnie signed document comment | create an instance of |
public string get empty image file spec return empty image file spec | the empty file specification is the filename of the |
public string get image directory location file spec return image directory location file spec | this method returns the location on the hosting computer of the directory |
public column override get column override string column name return column override column overrides get column name to upper case | may return null if the column has not been overridden |
protected generated xml file get sql map introspected table introspected table document document new document xml constants sql map public id xml constants sql map system id document set root element get sql map element introspected table fully qualified table table introspected table get table generated xml file answer new generated xml file document get sql map file name table get sql map package table target project return answer | creates the default implementation of the sql map |
public boolean generate sqlexample where clause boolean rc table configuration is select by example statement enabled table configuration is delete by example statement enabled return rc | implements the rule for generating the sql example where clause element |
public boolean generate example class boolean rc table configuration is select by example statement enabled table configuration is delete by example statement enabled return rc | implements the rule for generating an example class with no super class |
protected string get sql map file name fully qualified table table string key get sql map file name non nls 1 string s map map get table string map table s string map get key if s null string buffer sb new string buffer sb append table get fully qualified table name with underscores sb append xml non nls 1 s sb to string map put key s return s | calculates a file name for the current table |
public void add comment add element new text element non nls 1 add element new text element warning this element is automatically generated by abator for i batis do not modify non nls 1 string buffer sb new string buffer sb append this element was generated on non nls 1 sb append new date sb append add element new text element sb to string add element new text element non nls 1 | adds a suitable comment to warn users that the element was generated and |
public void unsafe replace int beg int len byte list nbytes unsafe replace beg len nbytes bytes 0 nbytes real size | unsafe version of replace int int byte list |
public int hash code int key 0 int g for int i 0 i real size i key key 4 int bytes i 0x ff if g key 0x f0000000 0 key g 24 key g return key | implements the same hashcode as mri elfhash in rb str hash |
private string get url int index string builder sb new string builder http www 1775 cn query page sb append index sb append s 17 c 180 uid b t p wd return sb to string | url todo bjw |
public void set resource string resource throws parser exception int length boolean html char ch if null resource throw new illegal argument exception resource cannot be null length resource length html false int i 0 if com jungle util ttutil is utf8 gui resource char at 0 i 1 for i length i ch resource char at i if character is whitespace ch if ch html true break if html set lexer new lexer new page resource else set lexer new lexer get connection manager open connection resource | set the html a url or a file |
public void set encoding string encoding throws parser exception get lexer get page set encoding encoding | set the encoding for the page this parser is reading from |
public string get encoding return get lexer get page get encoding | get the encoding for the page this parser is reading from |
public void set lexer lexer lexer node factory factory string type if null lexer throw new illegal argument exception lexer cannot be null move a node factory that s been set to the new lexer factory null if null get lexer factory get lexer get node factory if null factory lexer set node factory factory m lexer lexer warn about content that s not likely text type m lexer get page get content type if type null type starts with text get feedback warning url m lexer get page get url does not contain text | set the lexer for this parser |
public lexer get lexer return m lexer | returns the lexer associated with the parser |
public node factory get node factory return get lexer get node factory | get the current node factory |
public void set node factory node factory factory if null factory throw new illegal argument exception node factory cannot be null get lexer set node factory factory | set the current node factory |
public void set feedback parser feedback fb if null fb m feedback devnull else m feedback fb | sets the feedback object used in scanning |
public parser feedback get feedback return m feedback | returns the current feedback object |
public void reset get lexer reset | reset the parser to start from the beginning again |
public node iterator elements throws parser exception return new iterator impl get lexer get feedback | returns an iterator enumeration over the html nodes |
public node list parse node filter filter throws parser exception node iterator e node node node list node list node list new node list for e elements e has more nodes node e next node if null filter node collect into node list filter else node list add node return node list | parse the given resource using the filter provided |
public void visit all nodes with node visitor visitor throws parser exception node node visitor begin parsing for node iterator e elements e has more nodes node e next node node accept visitor visitor finished parsing | apply the given visitor to the current page |
public void set input html string input html throws parser exception if null input html throw new illegal argument exception html cannot be null if equals input html set lexer new lexer new page input html | initializes the parser with the given input html string |
public dyna property get dyna property string name if name null throw new illegal argument exception no property name specified dyna property dyna property dyna property properties map get name if dyna property null dyna property new dyna property name return dyna property | p return a property descriptor for the specified property if it |
public void store writer writer string comments throws ioexception store0 writer instanceof buffered writer buffered writer writer new buffered writer writer comments false | writes this property list key and element pairs in this |
public void store output stream out string comments string charset throws ioexception store0 new buffered writer new output stream writer out charset comments false | writes this property list key and element pairs in this |
public void append int tab index javax microedition lcdui item item throw new runtime exception unable to use standard items in a tabbed form please append only j2 me polish items | adds the item to this form |
public void set int tab index int item index javax microedition lcdui item item throw new runtime exception unable to use standard items in a tabbed form please append only j2 me polish items | changes the item of a tab |
public void delete int tab index javax microedition lcdui item item throw new runtime exception unable to use standard items in a tabbed form please append only j2 me polish items | deletes the item from this form |
public int append int tab index item item style item style if polish container allow cycling false if item instanceof container container item allow cycling false endif if item style null item set style item style container tab container this tab containers tab index tab container add item return tab container size 1 | adds the item to this form |
public void set int tab index int item index item item if polish container allow cycling false if item instanceof container container item allow cycling false endif container tab container this tab containers tab index tab container set item index item | changes the item of a tab |
public void delete int tab index item item container tab container this tab containers tab index tab container remove item if this is shown repaint | deletes the item from this form |
public void delete int tab index int item index container tab container this tab containers tab index tab container remove item index if this is shown repaint | deletes the item from this form |
public void delete all int tab index container tab container this tab containers tab index tab container clear | deletes the all items from the specified tab |
public void skip sub tree throws ioexception require start tag null int level 1 while level 0 int event type next if event type end tag level else if event type start tag level | skip sub tree that the parser is currently positioned on |
public int get tab count return this tab containers length | retrieves the number of tabs in this code tabbed form code |
public int compare to object u return name compare to unit u name | compare the current unit to an object which must also be a |
public boolean equals object o return o null false name unit o name | determine whether the current and the passed object are the |
public string to string return line type get line column type get column | custom format the value of this symbol |
public string to string boolean first true string result new string for iterator i iterator i has next unit v unit i next if this is the first element in the output just put the string value for this unit in the result otherwise we need to separate the previous result from the current unit object with a comma if first result v to string first false else result result v to string return result | converts the current units object into a printable string |
public string to string string result if pow 1 result name else result name pow return result | convert the current object into a printable string |
public regsam or regsam value return new regsam get value value get value | performs a logical or between two regsam objects |
public pointer get lp security descriptor return lp security descriptor | returns lp security descriptor |
public void set binherit handle boolean b inherit handle throws native exception this b inherit handle b inherit handle lp security descriptor set int at 8 b inherit handle 1 0 | sets binherit handle |
public boolean is binherit handle throws native exception b inherit handle lp security descriptor get as int 8 0 return b inherit handle | returns binherit handle |
public memory status ex get value from pointer throws native exception offset 0 dw length get next int dw memory load get next int ull total phys get next long ull avail phys get next long ull total page file get next long ull avail page file get next long ull total virtual get next long ull avail virtual get next long ull avail extended virtual get next long return this | method get value from pointer |
public int get size of return size of | method get size of |
public pointer create pointer throws native exception pointer new pointer memory block factory create memory block size of pointer set int at 0 m value return pointer | method create pointer |
public integer get value from pointer throws native exception m value pointer get as int 0 return m value | method get value from pointer |
public pointer create pointer throws native exception pointer new pointer memory block factory create memory block size of pointer set float at 0 m value return pointer | method create pointer |
public float get value from pointer throws native exception m value pointer get as float 0 return m value | method get value from pointer |
public pointer create pointer throws native exception pointer new pointer memory block factory create memory block size of pointer set double at 0 m value return pointer | method create pointer |
public double get value from pointer throws native exception m value pointer get as double 0 return m value | method get value from pointer |
public dword get dbcv unitmask return dbcv unitmask | the logical unit mask identifying one or more logical units |
public uint get dbcv flags return dbcv flags | this parameter can be one of the following values |
public boolean accept file f return f is directory f get name ends with params 0 | whether the given file is accepted by this filter |
public string get description return params 1 | the description of this filter |
protected void do message pump if clsid null iid null return boolean do loop false synchronized loop mutex if message pumping started message pumping started true do loop true if do loop try before message pump catch throwable t get logger error error in before message pump exiting idispatch thread t return try comactuator do message pump this ne sort pas catch throwable t get logger error error in message pumping native loop t finally try after message pump catch throwable t get logger warn error in after message pump t | this method does not return |
public void send join request group g user u control message msg control message message get message message type control msg set sub type control message subtype group joinrequest msg set address u get address byte array output stream bout new byte array output stream object output stream oout null try oout new object output stream bout oout write object g catch ioexception ex logger get logger group manager class get name log level severe null ex msg set content bout to byte array get sent requests add g get multicast address services get message sender send msg | send the request to join the group g to the user u |
protected string builder create state builder return new string builder state builder initial content | creates and returns a state builder which is |
protected void create state snapshot final float completion state final string builder state builder recalculate executin time state builder append execution time nanos append execution time nanos algorithm state snapshot new algorithm state execution time nanos completion state state builder to string requesting status false synchronized this notify all | creates a snapshot of the current state of the algorithm |
private void recalculate executin time final long current nano time system nano time execution time nanos current nano time execution time last updated execution time last updated current nano time | recalculates the current execution time |
public void add algorithm completion listener final algorithm completion listener listener completion listeners add listener | adds a new |
public algorithm state get algorithm state return algorithm get state | returns the state of the algorithm |
private void disable container final container container for int i container get component count 1 i 0 i component component container get component i if component instanceof jscroll pane component jscroll pane component get viewport get view if component instanceof box component instanceof jpanel disable container container component else if component instanceof jradio button component instanceof jspinner component instanceof jcombo box component set enabled false else if component instanceof jtext area jtext area component set editable false component set background inactive text area background | recursively disables components in a container |
private void suspend algorithm state refresher timer cancel state refresher timer purge algorithm runner suspend algorithm result text area set text suspended | suspends the algorithm |
private void drop and start new algorithm if algorithm runner null state refresher timer cancel state refresher timer purge algorithm runner stop algorithm algorithm runner null result text area set text stopped else result text area set text | drops the current algorithm and enables the inteface to start a new one |
private void refresh displayed algorithm state if algorithm runner null final algorithm state algorithm state algorithm runner get algorithm state algorithm state text area set text algorithm state internal state execution time label set text format execution time algorithm state execution time nanos completion progress bar set value int algorithm state completion rate completion progress bar max completion progress bar set string string format 1 4f algorithm state completion rate 100 0f | refreshes the displayed state of the algorithm |
protected void double bet complex hand hand complex hand find next hand status active if balance hand get bet 0 throw new illegal state exception you aint got enough money mate this balance hand get bet hand double bet | doubles the current bet in the next active |
protected void split complex hand hand complex hand find next hand status active if balance hand get bet 0 throw new illegal state exception you aint got enough money mate this balance hand get bet hand split | splits the next active |
protected double win double bet return balance bet | adds some money to the pocket of this |
public int get highest value return v1 v2 v1 v2 | gets the highest value between the value s of the card |
public boolean is ace return get highest value 11 true false | is this card an ace |
public void to excel throws ioexception write exception excel excel new excel persos nom | creates a excel document with all the personnage of the partie |
private void exit message object options oui non int option joption pane show option dialog null voulez vous vriament quitter le programme quitter joption pane yes no option joption pane warning message null options options 0 if option 0 system exit 0 | leaves the programm |
private void save file output stream st1 null object output stream st2 null try st1 new file output stream fen nom rcg st2 new object output stream st1 st2 write object fen p catch file not found exception e todo auto generated catch block e print stack trace catch ioexception e todo auto generated catch block e print stack trace finally try if st2 null st2 close if st1 null st1 close catch ioexception e e print stack trace | serialize the partie |
private void open throws ioexception class not found exception jfile chooser chooser new jfile chooser file name extension filter filter new file name extension filter rcg files rcg chooser set file filter filter int return val chooser show open dialog get parent partie p2 open rcg chooser get selected file fen fen2 new fen p2 fen2 set visible true | initialize a file browser for rcg files |
public class get sort class return sort class | this method returns the class of the data contained by this property |
public string get title return col title | returns the column title for use in a card list panel |
public int get width return col width | returns the column width for use in a card list panel |
public vector get values return string values | this method returns all values of this property in their original vector |
public string to string string result int strings string values size for int i 0 i strings i if i 0 result result string string values get i return result | this method is used to convert the property to a single string |
protected hashtable get props return prop list | this method returns the hashtable of properties for this card |
public void set property property new prop prop list put new prop get key new prop | this method is used to set or reset a property of this card |
public card get card int index if 1 index index card names size if list changed set changed state true return card card data get index return null | this method returns the card at a specific position in the list |
public void clear if card names size 0 card names clear card data clear set changed state true | this method clears the contents of the card list |
public vector get set names return set name vector | this method returns a vector containing the string names of all card sets |
public int get card count if save order return card names size else int distinct card names size int count 0 for int i 0 i distinct i count get card i get count return count | this method returns the number of distinct cards in the list |
public vector get data if list changed set changed state true return card data | this method returns the hashtable key string card name data card containing |
public vector get card list return master name vector | this method returns a vector of string card names representing all cards that |
public card get card string card name return card master data hash get card name | this method retrieves data for a specific card name |
public vector get set files return set files | this method returns a vector of string file names that contain sets |
public int get num sets return set files size | this method returns the number of set files that were located |
public void preference changed preference change event evt if is initialized re initialize else initialize | this method is invoked when the preference is changed |
protected file output stream get stream return o stream | this method retrieves the stream to write data to |
public void set file name string file path file name file path doc null | this method is used to set the file to be parsed |
public void set file name string file path main deck null sideboard null super set file name file path | this method is used to set the file to be parsed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.