input
stringlengths
10
828
output
stringlengths
5
107
public adapter create event or select group adapter return null
creates a new adapter for an object of class
public adapter create event or menu group adapter return null
creates a new adapter for an object of class
public adapter create event or composition group adapter return null
creates a new adapter for an object of class
public adapter create application group adapter return null
creates a new adapter for an object of class
public adapter create extended group adapter return null
creates a new adapter for an object of class
public adapter create basic group adapter return null
creates a new adapter for an object of class
public adapter create macro group adapter return null
creates a new adapter for an object of class
public adapter create composition group adapter return null
creates a new adapter for an object of class
public adapter create iteraction group adapter return null
creates a new adapter for an object of class
public adapter create form group adapter return null
creates a new adapter for an object of class
public adapter create show group adapter return null
creates a new adapter for an object of class
public adapter create menu group adapter return null
creates a new adapter for an object of class
public adapter create submit or reset iface adapter return null
creates a new adapter for an object of class
public adapter create basic attributes adapter return null
creates a new adapter for an object of class
public adapter create text attributes adapter return null
creates a new adapter for an object of class
public adapter create image attributes adapter return null
creates a new adapter for an object of class
public adapter create event attributes adapter return null
creates a new adapter for an object of class
public adapter create interaction attributes adapter return null
creates a new adapter for an object of class
public adapter create text type adapter return null
creates a new adapter for an object of class
public adapter create button type adapter return null
creates a new adapter for an object of class
public adapter create chars tag adapter return null
creates a new adapter for an object of class
public adapter create text iface adapter return null
creates a new adapter for an object of class
public adapter create textbox iface adapter return null
creates a new adapter for an object of class
public adapter create select group iface adapter return null
creates a new adapter for an object of class
public adapter create select item iface adapter return null
creates a new adapter for an object of class
public adapter create tool info or button adapter return null
creates a new adapter for an object of class
public adapter create link iface adapter return null
creates a new adapter for an object of class
public adapter create vocal group adapter return null
creates a new adapter for an object of class
public adapter create label or textbox iface adapter return null
creates a new adapter for an object of class
public adapter create question group adapter return null
creates a new adapter for an object of class
public adapter create question iface adapter return null
creates a new adapter for an object of class
public adapter create multimedia adapter return null
creates a new adapter for an object of class
public adapter create multimedia parameter adapter return null
creates a new adapter for an object of class
public adapter create mapitem adapter return null
creates a new adapter for an object of class
public adapter create textbox adapter return null
creates a new adapter for an object of class
public adapter create selectbox adapter return null
creates a new adapter for an object of class
public adapter create selectgroup adapter return null
creates a new adapter for an object of class
public adapter create selectitem adapter return null
creates a new adapter for an object of class
public adapter create checkbox adapter return null
creates a new adapter for an object of class
public adapter create radio adapter return null
creates a new adapter for an object of class
public adapter create grid adapter return null
creates a new adapter for an object of class
public adapter create columns adapter return null
creates a new adapter for an object of class
public adapter create rows adapter return null
creates a new adapter for an object of class
public adapter create listbox adapter return null
creates a new adapter for an object of class
public adapter create listitem adapter return null
creates a new adapter for an object of class
public adapter create tabbox adapter return null
creates a new adapter for an object of class
public adapter create tabpanels adapter return null
creates a new adapter for an object of class
public adapter create tabpanel adapter return null
creates a new adapter for an object of class
public adapter create groupbox adapter return null
creates a new adapter for an object of class
public adapter create toolbar adapter return null
creates a new adapter for an object of class
public adapter create toolitem adapter return null
creates a new adapter for an object of class
public adapter create toolbutton adapter return null
creates a new adapter for an object of class
public adapter create logo adapter return null
creates a new adapter for an object of class
public adapter create menuitem adapter return null
creates a new adapter for an object of class
public adapter create help adapter return null
creates a new adapter for an object of class
public adapter create breadcrumbs adapter return null
creates a new adapter for an object of class
public adapter create metanavigation adapter return null
creates a new adapter for an object of class
public adapter create crumb adapter return null
creates a new adapter for an object of class
public adapter create password adapter return null
creates a new adapter for an object of class
public adapter create fieldset adapter return null
creates a new adapter for an object of class
public adapter create submit adapter return null
creates a new adapter for an object of class
public adapter create inform adapter return null
creates a new adapter for an object of class
public adapter create referred to adapter return null
creates a new adapter for an object of class
public void flush base64 throws java io ioexception if position 0 if encode out write encode3to4 b4 buffer position options position 0 end if encoding else throw new java io ioexception base64 input not properly padded end if buffer partially full end flush
method added by phil
public factory instance create factory instance string id config map properties spring factory instance instance new spring factory instance this id properties instance set source properties get property as string source instance get id if log is debug log get logger configuration debug spring factory creating factory instance for destination id with spring id instance get source with properties properties return instance end method create factory instance
this method is called when we initialize the definition of an instance
public thread start thread t thread var get if t null t start return t
start the worker thread
public void write dims system out print dimensions n for int i 0 i dim sets length i iterator iter dim sets i iterator while iter has next if iter has next system out print iter next else system out print iter next system out println
writes all distinct classes for each of the dimensions in the input file
private void build classifier instances train set throws exception this classifier this options model get classifier try this classifier build classifier train set catch exception e throw e
a private method not to be publicly accessed
public void add file option model map string path options model options model this file path to option model map put path options model
this method is called from the file selector
public void remove file option model map string path this file path to option model map remove path
this method is called from the file selector
public void add token string index token string surface token tokens add new token index token surface token
adds a new token to the token list
public void add token token token node tokens add token node
adds token node to the token list
public boolean is stopword string input if stopword map contains key input return true else return false
checks if the input word is a stopword
public void put all tokens tokens iterator iter tokens get iterator while iter has next token t node token iter next this add token t node
adds all tokens to the token list
public void add token string surface token string index token int mag for int i 0 i mag i tokens add new token surface token index token
adds the token to the token list mag number of times
public iterator get iterator return tokens iterator
returns an iterator for accessing tokens
public tokens lemmatize exc stopword string line return lemmatize exc stopword line null
extracts set of unigrams while stemming and removing stopwords
public void add fixed num generic node sorter gs int index generic node g nodes gs get top generic nodes this fixed num for int i 0 i g nodes length i data point d point data point g nodes i get o system out println adding prediction d point get value at dim index d point get score for dim index d point set is reference at dim index
add a fixed number of predictions to the test set
public tokens lemmatize inc stopword string line return lemmatize inc stopword line null
extracts set of unigrams while stemming
public tokens tokenize inc stopword string line return tokenize inc stopword line null
extracts set of unigrams
public void add thresh generic node sorter gs int index generic node g nodes gs get all generic nodes for int i 0 i g nodes length i data point d point data point g nodes i get o double conf d point get score for dim index if conf this conf thresh d point set is reference at dim index system out println adding prediction d point get value at dim index d point get score for dim index
add all predictions with confidence above a certain threshold
public tokens tokenize exc stopword string line return tokenize exc stopword line null
extracts set of unigrams
public tokens tokenize bigrams inc stopwords string line return tokenize bigrams inc stopwords line null
extracts bigrams from the text
public tokens lemmatize bigrams inc stopwords string line return lemmatize bigrams inc stopwords line null
extracts bigrams from the text
public tokens tokenize bigrams exc stopwords string line return tokenize bigrams exc stopwords line null
extracts bigrams from the text
public tokens lemmatize bigrams exc stopwords string line return lemmatize bigrams exc stopwords line null
extracts bigrams from the text
public string trim non letter chars string term this code is english specific so i m removing it jaime int start 0 int end term length 1 char chars term to char array for int i 0 i chars length i if english tokenizer is letter or digit chars i start else break for int i term length 1 i 0 i if english tokenizer is letter or digit chars i end else break string new term for int i start i end i new term chars i return new term
removes non letter characters from the input text
public tokens get posbigrams string line return get posbigrams line null
extracts pos bigrams from input text using the stanford pos tagger
public void remove rare features iterator feature iter this feature map key set iterator get the threshold that was set from the user iterface int thresh this options model get frequency threshold while feature iter has next string feature feature iter next to string object tmp feature map get feature int count if tmp get class integer class count integer tmp int value else count feature global property tmp get count if count thresh feature iter remove
feature counts are collected because the user can optionally remove rare
public thash map get test point feature set string text return this get test point feature set text
this method is used in a hidden functionality mode
public thash map get feature set string text return this get feature set text
this method is used when no advanced features are specified
public string get preamble path return gate yam translate preamble xhtml
get the path to the preamble resource
public void process urls simple node node throws gate exception intentionally empty process urls simple node
process urls and anchors
public boolean delete list string file urls int core id file to delete this is the command that needs to be sent string builder query new string builder if file urls is empty query append else for int i 0 i file urls size i if i 0 query append or query append url file urls get i return delete by query query to string core id delete list string int
removes the file from solr index
public void set parse tree yam parse tree parse tree this parse tree parse tree
set the tree holding the results of a yam parse
public boolean update list string file urls int core id delete it first if delete file urls core id return false add it then index file urls core id return true update list string int
removes the file from solr index and then adds it using nutch
public string get constant start string name return string constants map get name constantstart get constant start string
get the markup start element of a constant from the constants map
private void add to class path file file throws ioexception urlclass loader sysloader urlclass loader class loader get system class loader class sysclass urlclass loader class try method method sysclass get declared method add url new class url class method set accessible true method invoke sysloader new object file to url catch throwable t t print stack trace throw new ioexception error could not add url to system classloader end try catch
method to modify classpath at runtime
public string get constant end string name return string constants map get name constantend get constant end string
get the markup end element of a constant from the constants map
public boolean accept file dir string name return name ends with txt
accept a file if it is a