input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void substring in place int offset substring in place offset length | converts this binary string to the specified substring in place to save memory |
public binary string substring int begin index int end index if begin index 0 end index begin index end index length throw out of bounds exception throw new index out of bounds exception byte buffer ret allocate bb end index begin index byte buffer c synchronized b c b duplicate ret put byte buffer c limit c position end index position c position begin index ret flip return new binary string ret | returns the substring of this binary string from begin index to end index |
public binary string substring int offset return substring offset length | returns the substring of this binary string starting at offset |
public void trim in place invalidate caches newstart while b position b limit byte c b get if is whitespace c continue newstart b position b position 1 break newstart newend while b limit b position byte c b get b limit 1 if is whitespace c b limit b limit 1 continue newend break newend | removes surrounding whitespace from this binary string in place |
public binary string trim byte buffer ret synchronized b ret b duplicate newstart while ret position ret limit byte c ret get if is whitespace c continue newstart ret position ret position 1 break newstart newend while ret limit ret position byte c ret get ret limit 1 if is whitespace c ret limit ret limit 1 continue newend break newend return new binary string byte buffer allocate bb ret remaining put ret flip | returns a copy of this binary string with surrounding whitespace removed |
public string inspect string buffer sb new string buffer byte buffer dup synchronized b dup b duplicate while dup has remaining byte c dup get if c 33 c 126 sb append string format 02 x unsigned byte c else sb append charset decode byte buffer wrap new byte c to string return sb to string | returns a string representing this binary string substituting |
private void invalidate caches b remaining 1 hash code null | resets the cached length and hash code |
private void run new main window this playback history this tracks queue this found tracks | this is the real main method |
public void data changed this track table model fire table data changed | the tracks list has been updated |
private int xor int a int b int c a b return c | hilfsmethoden f r den cipher algorithmus |
public void window closing window event e in close try out flush out close catch ioexception e1 e1 print stack trace to change body of catch statement use file settings file templates set visible false dispose | invoked when the user attempts to close the window |
public void receive error server info java lang exception e | auto generated axis2 error handler |
public void receive error dictionary list java lang exception e | auto generated axis2 error handler |
public void receive error dictionary list extended java lang exception e | auto generated axis2 error handler |
public void receive error define in dict java lang exception e | auto generated axis2 error handler |
public void receive error match java lang exception e | auto generated axis2 error handler |
public void receive error match in dict java lang exception e | auto generated axis2 error handler |
public array of dictionary get dictionary list extended result return local dictionary list extended result | auto generated getter method |
public void set dictionary list extended result array of dictionary param if param null update the setting tracker local dictionary list extended result tracker true else local dictionary list extended result tracker false this local dictionary list extended result param | auto generated setter method |
public void set dict id java lang string param if param null update the setting tracker local dict id tracker true else local dict id tracker false this local dict id param | auto generated setter method |
public void set word java lang string param if param null update the setting tracker local word tracker true else local word tracker false this local word param | auto generated setter method |
protected void validate definition definition param | validate the array for definition |
public void add definition definition param if local definition null local definition new definition update the setting tracker local definition tracker true java util list list org apache axis2 databinding utils converter util to list local definition list add param this local definition definition list to array new definition list size | auto generated add method for the array for convenience |
public word definition get word definition return local word definition | auto generated getter method |
public array of definition get definitions return local definitions | auto generated getter method |
public void set definitions array of definition param if param null update the setting tracker local definitions tracker true else local definitions tracker false this local definitions param | auto generated setter method |
protected void validate dictionary dictionary param | validate the array for dictionary |
public void set dictionary dictionary param validate dictionary param if param null update the setting tracker local dictionary tracker true else local dictionary tracker true this local dictionary param | auto generated setter method |
public void add dictionary dictionary param if local dictionary null local dictionary new dictionary update the setting tracker local dictionary tracker true java util list list org apache axis2 databinding utils converter util to list local dictionary list add param this local dictionary dictionary list to array new dictionary list size | auto generated add method for the array for convenience |
protected void validate dictionary word dictionary word param | validate the array for dictionary word |
public void set dictionary word dictionary word param validate dictionary word param if param null update the setting tracker local dictionary word tracker true else local dictionary word tracker true this local dictionary word param | auto generated setter method |
public void add dictionary word dictionary word param if local dictionary word null local dictionary word new dictionary word update the setting tracker local dictionary word tracker true java util list list org apache axis2 databinding utils converter util to list local dictionary word list add param this local dictionary word dictionary word list to array new dictionary word list size | auto generated add method for the array for convenience |
public array of dictionary word get match in dict result return local match in dict result | auto generated getter method |
public void set match in dict result array of dictionary word param if param null update the setting tracker local match in dict result tracker true else local match in dict result tracker false this local match in dict result param | auto generated setter method |
public array of dictionary word get array of dictionary word return local array of dictionary word | auto generated getter method |
public void set array of dictionary word array of dictionary word param this local array of dictionary word param | auto generated setter method |
public word definition get define in dict result return local define in dict result | auto generated getter method |
public void set define in dict result word definition param if param null update the setting tracker local define in dict result tracker true else local define in dict result tracker false this local define in dict result param | auto generated setter method |
public word definition get define result return local define result | auto generated getter method |
public void set define result word definition param if param null update the setting tracker local define result tracker true else local define result tracker false this local define result param | auto generated setter method |
public array of dictionary word get match result return local match result | auto generated getter method |
public void set match result array of dictionary word param if param null update the setting tracker local match result tracker true else local match result tracker false this local match result param | auto generated setter method |
public array of dictionary get array of dictionary return local array of dictionary | auto generated getter method |
public void set array of dictionary array of dictionary param this local array of dictionary param | auto generated setter method |
protected void validate strategy strategy param | validate the array for strategy |
public void set strategy strategy param validate strategy param if param null update the setting tracker local strategy tracker true else local strategy tracker true this local strategy param | auto generated setter method |
public void add strategy strategy param if local strategy null local strategy new strategy update the setting tracker local strategy tracker true java util list list org apache axis2 databinding utils converter util to list local strategy list add param this local strategy strategy list to array new strategy list size | auto generated add method for the array for convenience |
public void set server info result java lang string param if param null update the setting tracker local server info result tracker true else local server info result tracker false this local server info result param | auto generated setter method |
public dictionary get dictionary return local dictionary | auto generated getter method |
public void set dictionary dictionary param if param null update the setting tracker local dictionary tracker true else local dictionary tracker false this local dictionary param | auto generated setter method |
public void set word definition java lang string param if param null update the setting tracker local word definition tracker true else local word definition tracker false this local word definition param | auto generated setter method |
public void set dictionary info result java lang string param if param null update the setting tracker local dictionary info result tracker true else local dictionary info result tracker false this local dictionary info result param | auto generated setter method |
public array of strategy get strategy list result return local strategy list result | auto generated getter method |
public void set strategy list result array of strategy param if param null update the setting tracker local strategy list result tracker true else local strategy list result tracker false this local strategy list result param | auto generated setter method |
public void set strategy java lang string param if param null update the setting tracker local strategy tracker true else local strategy tracker false this local strategy param | auto generated setter method |
public array of strategy get array of strategy return local array of strategy | auto generated getter method |
public void set array of strategy array of strategy param this local array of strategy param | auto generated setter method |
public array of dictionary get dictionary list result return local dictionary list result | auto generated getter method |
public void set dictionary list result array of dictionary param if param null update the setting tracker local dictionary list result tracker true else local dictionary list result tracker false this local dictionary list result param | auto generated setter method |
public void load throws ioexception class not found exception input stream input this get class get resource as stream coredict mem load from object input stream input | jar word dictionary coredict |
public boolean is exist char char array return find in table char array 1 | char array word dictionary |
public boolean is equal char char array int item index short hash index get word item table index char array 0 return utility compare array char array 1 word item char array table word index table hash index item index 0 0 | char array char array 0 word index char array |
public void set content vector object content this content content | provide the log content |
public void clear log string page id throws exception this log new tree set patch this store log page id | to remove all entries in log |
public int log size string page id throws exception this load log page id return this log size | to get the number of entries in log |
private void unload page woot page woot page throws exception this store page woot page system run finalization system gc | to serialize a woot page object and run finalization |
private void store page woot page woot page throws exception xstream xstream new xstream new dom driver output stream writer osw new output stream writer new file output stream this get working dir file separator pages file separator woot page get file name charset for name system get property file encoding print writer output new print writer osw output print xstream to xml woot page output flush osw flush output close osw close | to serialize a woot page object |
public void clear log throws exception this log new hashtable object object this store log | to remove all entries in log |
public int log size throws exception this load log return this log size | to get the number of entries in log |
public object get message object message id throws exception this load log return this log get message id | to get an entry in log with his key |
public void log message object id object message throws exception this log add message id message | to add a message in log |
public boolean exist in log object message id throws exception this load log return this log contains key message id | to test if a key exist in log |
public int get value return this clock | to get current clock value |
public void set value int i this clock i | to set current clock value |
public void test add throws exception string message toto this log add message message1 message assert equals this log log size 1 | test the add message |
public void test get message throws exception string message toto this log add message message message string message2 string this log get message message assert equals message2 toto | test getting a log object |
public void test get messages id throws exception for int i 0 i 100 i string message toto i this log add message message i message assert equals this log get messages id length 100 | the the function which return all add messages keys |
public void test exist throws exception string message toto this log add message message message assert true this log exist in log message | the the function exist in log |
public void test diff throws exception string message0 toto object id0 message0 this log add message id0 message0 string message1 titi object id1 message1 this log add message id1 message1 string message2 tata this log add message message2 message2 string message3 tutu this log add message message3 message3 object list new object id0 id1 object diff this log get diff key list assert equals diff length 2 | test the diff function |
public void log patch patch patch throws exception this page log add patch patch | to add a patch in log |
public static class default cell factory vv ee implements cell factory vv ee serializable private static final long serial version uid 3690194343461861173 l | a simple default cell factory |
private void get method in class file file class file throws ioexception file input stream class file input stream new file input stream class file transform class stream class file input stream class file input stream close | transform a class file |
public boolean contain string key return data get key null | check if the key is contained |
private string add string value string original value string to add int count string ret if original value null ret original value for int i 0 i count i ret to add return ret | add string with n times |
public void set result out throws ioexception file weka result out null if use smo weka result out new file testing data file name smo result else weka result out new file testing data file name naive result result out new buffered writer new file writer weka result out system out println result goes to weka result out get absolute path println experiments on new date | set result output |
public void save tb tag entity log util log saving tb tag instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb tag entity |
public void delete tb tag entity log util log deleting tb tag instance level info null try entity entity manager get reference tb tag class entity get tag entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb tag entity |
public void save tb customer entity log util log saving tb customer instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb customer entity |
public void delete tb customer entity log util log deleting tb customer instance level info null try entity entity manager get reference tb customer class entity get customerid entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb customer entity |
public void save tb title entity log util log saving tb title instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb title entity |
public void delete tb title entity log util log deleting tb title instance level info null try entity entity manager get reference tb title class entity get isbn entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb title entity |
public void save tb promotion entity log util log saving tb promotion instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb promotion entity |
public void delete tb promotion entity log util log deleting tb promotion instance level info null try entity entity manager get reference tb promotion class entity get promotionid entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb promotion entity |
public void save tb orderitem entity log util log saving tb orderitem instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb orderitem entity |
public void delete tb orderitem entity log util log deleting tb orderitem instance level info null try entity entity manager get reference tb orderitem class entity get itemid entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb orderitem entity |
public void save tb publisher entity log util log saving tb publisher instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb publisher entity |
public void delete tb publisher entity log util log deleting tb publisher instance level info null try entity entity manager get reference tb publisher class entity get publisherid entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb publisher entity |
public void save tb categories entity log util log saving tb categories instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb categories entity |
public void delete tb categories entity log util log deleting tb categories instance level info null try entity entity manager get reference tb categories class entity get categoryid entity manager remove entity log util log delete successful level info null catch runtime exception re log util log delete failed level severe re throw re | delete a persistent tb categories entity |
public void save tb order entity log util log saving tb order instance level info null try entity manager persist entity log util log save successful level info null catch runtime exception re log util log save failed level severe re throw re | perform an initial save of a previously unsaved tb order entity |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.