input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public yahoo identity get primary identity return primary id | return the primary yahoo identity of this session |
public yahoo identity get login identity return login id | returns the yahoo identity that was used to login to the network |
public void chat login yahoo chat lobby lobby throws illegal state exception ioexception login refused exception chat login lobby login id | logs the current default identity of this session into the provided lobby |
protected void transmit verify throws ioexception if session status session state connecting throw new illegal state exception cannot transmit an verify packet if you re not completely unconnected to the yahoo network current state session status final packet body buffer body new packet body buffer send packet body ser... | transmit an verify packet as a way of introduction to the server |
protected void transmit chat connect string yid throws ioexception chat session status session state connecting set status packet body buffer body new packet body buffer body add element 109 primary id get id body add element 1 yid body add element 6 abcde fix what is this send packet body service type chatconnect 0x96 | transmit a chatconnect packet |
protected void transmit chat create long cat id string rname string topic boolean pub throws ioexception packet body buffer body new packet body buffer body add element 1 chat id get id body add element 104 rname room name body add element 105 topic body add element 126 0 fix what is this body add element 128 cat id bo... | sends a packet requesting chat room creation |
protected void transmit chat disconnect string room throws ioexception chat session status session state unstarted current lobby null packet body buffer body new packet body buffer body add element 104 room body add element 109 chat id get id send packet body service type chatdisconnect 0xa0 | transmit a chatdisconnect packet |
protected void transmit chat invite string netname long id string to string msg throws ioexception packet body buffer body new packet body buffer body add element 1 chat id get id body add element 104 netname room name body add element 117 msg invite text body add element 118 to target body add element 129 id room id s... | transmit a chataddinvite packet |
protected void transmit chat msg string netname string msg boolean emote throws ioexception packet body buffer body new packet body buffer body add element 1 chat id get id body add element 104 netname body add element 117 msg if emote body add element 124 2 1 regular 2 emote else body add element 124 1 if util is utf8... | transmit a chatmsg packet |
protected void transmit chat pm string to string msg throws ioexception packet body buffer body new packet body buffer body add element 5 to body add element 14 msg send packet body service type chatpm 0x020 | transmit a chatpm packet |
protected void transmit chat ping throws ioexception packet body buffer body new packet body buffer send packet body service type chatping 0xa1 | transmit a chatping packet |
protected void transmit conf logoff string room string yid throws ioexception no such conference exception flag this conference as now dead yahoo conference yc get conference room yc close conference final set yahoo user users yc get users send decline packet to yahoo packet body buffer body new packet body buffer body... | transmit an conflogoff packet |
protected void transmit conf logon string room string yid throws ioexception no such conference exception get a list of users for this conference final set yahoo user users get conference room get users send accept packet to yahoo packet body buffer body new packet body buffer body add element 1 yid for yahoo user user... | transmit an conflogon packet |
protected void transmit conf msg string room string yid string msg throws ioexception no such conference exception get a list of users for this conference final set yahoo user users get conference room get users send message packet to yahoo packet body buffer body new packet body buffer body add element 1 yid for yahoo... | transmit an confmsg packet |
protected void transmit contact ignore string friend boolean ignore throws ioexception packet body buffer body new packet body buffer body add element 1 primary id get id fix effective id body add element 7 friend if ignore body add element 13 1 bug 1 2 not 0 1 else body add element 13 2 send packet body service type c... | transmit an contactignore packet |
protected void transmit contact reject string friend string yid string msg throws ioexception packet body buffer body new packet body buffer body add element 1 yid body add element 7 friend body add element 14 msg send packet body service type contactreject 0x86 | transmit a contactreject packet |
protected void transmit id deactivate string id throws ioexception packet body buffer body new packet body buffer body add element 3 id send packet body service type iddeact 0x08 | transmit a iddeact packet |
protected void transmit new status throws ioexception final packet body buffer body new packet body buffer body add element 10 string value of status get value body add element 19 send packet body service type y6 status update | transmit the current status to the yahoo network |
protected void transmit list throws ioexception packet body buffer body new packet body buffer body add element 1 primary id get id send packet body service type list 0x55 | transmit a list packet |
protected void transmit stealth session int stat int flag string yid string target throws ioexception packet body buffer body new packet body buffer body add element 1 yid my id body add element 31 stat status to change to body add element 13 flag what is this for body add element 7 target friend who is target send pac... | transmit a stealthsession packet |
private boolean past long time return system current time millis time | convenience method have we passed a given time more readable |
private void reset data primary id null login id null password null cookie y null cookie t null cookie c null imvironment null custom status message null custom status busy false conferences clear remove session listener roster roster null identities clear login exception null | preform a clean up of all data fields to reset instance |
public void request picture final string friend throws ioexception final packet body buffer body new packet body buffer body add element 4 login id get id body add element 5 friend body add element 13 1 send packet body service type picture | sends out a request to receive a picture avatar from a contact |
public void set session picture handler session picture handler picture handler this picture handler picture handler | sets the session picture handler for this session |
public roster get roster return roster | returns the roster that contains the list of friends |
public string get description return get description null | get a description of the difference |
public boolean contains type dbentity type t return containing types contains t | check the presence of an object type in the hierarchy of contained objects |
public boolean matching entity dbentity o return o null get type o get type name equals o name | p test if this object matches another |
public boolean functionally equivalent dbentity o return matching entity o | p test if the object is functionally equivalent to other object |
public jmenu item get new menu item boolean check final jmenu item menu item check new jcheck box menu item this new jmenu item this menu item set model model menu item set enabled is enabled return menu item | build a new menu item linked to the action |
public jmenu item get new menu item boolean check int key int modifier final jmenu item menu item get new menu item check menu item set accelerator key stroke get key stroke key modifier return menu item | build a new menu item linked to the action with a key modifier |
public jmenu item get new menu item boolean check int key return get new menu item check key event ctrl mask | convenience variant of get new menu item with modifier ctrl mask |
public action forward cerrar sesion action mapping mapping action form form http servlet request request http servlet response response try http session sesion request get session sesion remove attribute usuario vo sesion remove attribute msg sesion remove attribute menu sesion remove attribute menu c sesion remove att... | cierra la sesion eliminando los atributos |
public double similiarity ngrams other double total 0 0d set char sequence other trigrams key set other get ngrams for char sequence key this grams key set if other trigrams key set contains key total this grams get key other get key return total this length other length | calculates the similarity of this ngrams with the other ngrams as the |
private double compute individual probability for string category string word double p x trained results get probability of word given category category word double p y trained results get category probability category double p z trained results get word probability word if p z 0 0d return p y double probability p x p ... | apply bayes theorem here |
protected void train classifier classifier classifier classifier train to classify as spammy free insurance quotes classifier train to classify as spammy teen bis bis bis classifier train to classify as spiffy wired top stories classifier train to classify as spiffy slashdot classifier train to classify as spiffy welco... | warning if you change the training data then the classified |
public void update cache string name byte bytecode string additional dependencies string requestor bundle name cache entry entry new cache entry entry bundle name requestor bundle name entry class name name entry bytecode bytecode entry additional dependencies additional dependencies cache put name requestor bundle nam... | put the bytecode into the cache |
public void set remains unchanged string name string bundle name this unchanged classes add name bundle name | tell the cache that the given class remains unchanged during |
public void ignore imessage kind kind if null kind ignoring contains kind ignoring add kind | set a message kind to be ignored from now on |
public string get message string print message super get message if e null print message e get message return print message | return message included in constructor if present plus the nested |
public void print stack trace super print stack trace if e null e print stack trace | output default stack trace plus nested exceptions stack trace |
public void print stack trace print stream s super print stack trace s if e null e print stack trace s | output default stack trace plus nested exceptions stack trace |
public void print stack trace print writer s super print stack trace s if e null e print stack trace s | output default stack trace plus nested exceptions stack trace |
public object save object object obj return get hibernate template save obj | generic method to save an object handles insert operation |
public void handle object relation bean relation bean show relation method show new show relation method show set object bean relation bean get object bean show set object relation bean relation bean show set name show relation bean get object bean get name bean utils capitalize relation bean get attribute name remove ... | add rellational methods |
private void value object bean null try bean object bean property get value catch bean exception e logger warn e001 e int index 0 index list index of bean set selected index index | work only when the value for the property changed |
private void value object bean bean null try bean object bean bean property get value catch bean exception e logger warn e001 e int index 0 if bean object list cell renderer nullobject index 0 else index list index of bean 1 set selected index index | work only when the value for the property changed |
private void value object bean null try bean object bean property get value logger debug value bean catch bean exception e logger warn e001 e int index 0 index list index of bean logger debug value index index curret index get selected index set selected index index | work only when the value for the property changed |
private void value object bean null try bean object bean property get value catch bean exception e logger warn e001 e int index 0 if bean null index 0 else index list index of bean 1 set selected index index | work only when the value for the property changed |
protected void configure logger try input stream stream get class get class loader get resource as stream log4j properties properties properties new properties properties load stream property configurator configure properties catch throwable e e print stack trace basic configurator configure | configure logger log4j with lo4j |
private map get pluign maps string strings artemis ext file file plugin artemis ext navigator navigator plugin artemis ext preview preview plugin artemis ext crud crudplugin artemis ext simplefile file plugin artemis ext graph graph plugin artemis ext hibernate data plugin map map new hash map for int i 0 i strings len... | read the configuration form file and add pluign list |
public jdialog create dialog string title boolean modal jdialog dialog new jdialog frame frame title modal return dialog | use this method to create dialogs |
public void echo null object o | prevents to echo any return value |
public cell view renderer get renderer if method return method renderer else return property renderer | returns a property renderer for the class |
public cell view create view jgraph graph cell mapper map object cell system out println cell cell if cell instanceof default graph cell default graph cell edge default graph cell cell object object edge get user object if object instanceof object bean object null cell view view new object bean view edge graph map meth... | constructs a view for the specified cell and associates it |
public void update auto size jgraph graph cell view view if view null graph is editing graph constants is auto size view get all attributes | sets the preferred size for code view code |
public void paint graphics g try if preview is double buffered set opaque false paint selection border g super paint g catch illegal argument exception e jdk bug zero length string passed to text layout constructor | paint the property renderer |
public method get overriden method class a class string method name class param class throws no such method exception method methods a class get methods for int i 0 i methods length i method method methods i if method name equals method get name accept method param class return method throw new no such method exception... | method given by the method name parameter on class a class |
public map packages if pkg map null pkg map jlib classes new dialog get jlib class map return pkg map | retrieves a map containing packages as keys and |
public map classes if cls map null cls map new tree map for iterator it packages key set iterator it has next string pkg string it next put package pkg return cls map | constructs a map keys as class names and values as classes |
public void set package list package list list package list new package list list for iterator iter list iterator iter has next package bean bean package bean iter next bean set application bean this package list set application bean this | do not use directly |
public void set name string string name string try if this description null description length 0 bean utils set property by name this description name catch bean exception e logger warn e64 e | set of the model name |
public string get default package return default package | default application model package for generated classes |
public void set has inverse boolean has inverse this has inverse has inverse if has inverse enable inverse name else disable inverse name | many enable or disable inversename |
public string get reverse initial value object relation bean bean if bean instanceof one to one relation return null if bean instanceof one to many relation return null if bean instanceof many to many relation many to many relation oor many to many relation bean switch oor get relation type case many to many relation l... | relation type reverse initial value |
public boolean is load method method if method instanceof basic method basic method basic method basic method method return basic method get service type service type load return false | check if method is instance of basic method load |
public void add property change listener property change listener p changes add property change listener p | add the listener for any change |
public string to string return acceptor does not accept element | returns a short description of this throwable |
public void property change property change event evt string property name evt get property name object value evt get new value reflection utils ru reflection utils inst ru set property this property name value if tree nodes accepts this fire model changed this | this method gets called when a bound property is changed |
private void put tool tip string name put value action short description name | adds tooltip text to the action |
public void key pressed key event e class diagram singleton | invoked when a key has been pressed |
public dtdhandler get dtdhandler return dtdhandler | return the current dtd handler |
public boolean get feature string name throws saxnot recognized exception saxnot supported exception return boolean features get name boolean value | look up the value of a feature |
public object get property string name throws saxnot recognized exception saxnot supported exception return properties get name | look up the value of a property |
public void parse string system id throws ioexception saxexception to change body of implemented methods use file settings file templates | parse an xml document from a system identifier uri |
public void set dtdhandler dtdhandler handler this dtdhandler handler | allow an application to register a dtd event handler |
public void set feature string name boolean value throws saxnot recognized exception saxnot supported exception features put name new boolean value | set the state of a feature |
public void set property string name object value throws saxnot recognized exception saxnot supported exception properties put name value | set the value of a property |
public void init servlet config config throws servlet exception must be called per spec super init config load configuration information try load configuration catch exception e logger error error loading configuration options in init e throw new runtime exception error loading configuration options in intit kernel jml... | called by the servlet container |
private void load configuration throws exception configure debug string tdebug get init parameter debug if tdebug null tdebug equals tdebug equals ignore case true tdebug equals ignore case false debug boolean get boolean default debug else debug new boolean tdebug boolean value config file get init parameter jmlnitrat... | this method loads all the configuration information needed for the |
public void put parameter object key object value parameters put key value | adds a parameter to the response |
public void put parameter string key string value array list list array list parameters get key if list null list new array list list add value parameters put key list | adds a parameter to the request |
public object get parameter object key return parameters get key | retrieves a parameter from the response |
public url locate properties file string file return locate file file properties | locates a properties file in the classes classpath and returns the url |
public void remove parameter object key parameters remove key | removes a parameter from the response |
public void put parameter string key string value int sz value length for int i 0 i sz i put parameter key value i | adds a parameter to the request |
public url locate xmlfile string file return locate file file xml | locates an xml file in the classes classpath and returns the url |
public string get parameter string key array list list array list parameters get key string result null if list null list size 0 result string list get 0 if result null result get request get parameter key return result | retrieves a parameter from the request |
public url locate file string file string extension return get class loader get resource get file name file extension | locates a file in the classes classpath and returns the url |
public void remove parameter string key parameters remove key | removes a parameter from the request |
public url locate file string file return locate file file null | locates a file in the classes classpath and returns the url |
public input stream locate properties file as stream string file return locate file as stream file properties | locates a properties file in the classes classpath and returns the |
public input stream locate xmlfile as stream string file return locate file as stream file xml | locates an xml file in the classes classpath and returns the input stream |
public void add param object key object value synchronized this params put key value | mutator to a parameter |
public object get param object key object val null synchronized this val params get key return val | accessor to get a parameter |
public input stream locate file as stream string file return locate file as stream file null | locates a file in the classes classpath and returns the |
public void remove param object key synchronized this params remove key | mutator to remove a parameter |
private string get file name string file string extension string file name file if extension null extension starts with file extension delimeter file name file extension delimeter extension return file name | return the formated name of the file to find |
public iterator get param keys return collections unmodifiable set params key set iterator | accessor to get a iterator of all the parameter keys |
private class loader get class loader class loader cl get class get class loader if cl null cl class loader get system class loader return cl | retrieves the class loader to use when trying to locate the resource |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.