input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public mark get mark token tokens list mark marks tokens 0 get enclosing marks for mark mark marks int i 0 for token token mark get tokens i if token tokens i 1 break else if i tokens length return mark return null | returns the mark that encloses the specified tokens or null if no such |
public mark get accordant mark mark mark md get mark tokens if mark null return md create mark this else return mark | returns the mark belonging to this word composition |
public void add token token token this tokens add token token add enclosing mark this | adds a token to this mark |
public void remove all tokens for token token tokens token remove enclosing mark this tokens clear | removes all tokens from this mark |
public void add enclosing mark mark m if this enclosing marks contains m this enclosing marks add m | adds a mark in which this token is contained |
public void remove token token token if tokens contains token token remove enclosing mark this tokens remove token | removes the specified token from this mark |
public string get mark id return mark id | returns the mark id of this mark |
public void set mark id string mark id this mark id mark id | sets the mark id for this mark |
public string get token string string token string for token token tokens token string token get token string return token string | returns the text that this mark is assigned to |
public void set is active boolean state this active state | specifies whether this mark will be shown in the output html string |
public double get mark score return mark score | returns this marks score |
public void set mark score double mark score this mark score mark score | sets the score i |
public double get radius point2 d centerpoint get center return default ellipsoid wgs84 orthodromic distance min x min y centerpoint get x centerpoint get y | the distance from the center of the bbox to one of its corners |
public void extend point2 d p if p get x max x max x p get x if p get y max y max y p get y if p get x min x min x p get x if p get y min y min y p get y | extends the bounding box so that it contains the specified point |
public boolean remove mark placemark relations string mark id list mark placemark relation mprs new array list mark placemark relation for mark placemark relation mpr this get message mark placemark relations false if mpr get mark id equals mark id mprs add mpr for mark placemark relation mpr mprs this get message mark placemark relations false remove mpr return mprs size 0 | removes all mprs with the specified mark id |
public placemark add placemark placemark p for placemark pm this placemarks table if pm get geonameid p get geonameid return pm this placemarks table add p return p | adds the specified placemark to the placemarks table |
public void clean up placemarks table array list placemark preserved placemarks new array list placemark placemarks table size for placemark p placemarks table for mark placemark relation mpr mark placemark relations if mpr get placemark id equals p get placemark id preserved placemarks add p break placemarks table preserved placemarks | remove placemarks that are not referenced by any mpr |
public string get last channel return last channel | returns last channel found |
public int get last channel return last channel | returns last channel found |
private void open connection throws ioexception string host name context get property vlc admin host int port integer parse int context get property vlc admin port t client new telnet client t client connect host name port | sets up the connection |
private void close connection throws ioexception if t client null t client is connected t client disconnect | disconnects the telnet connection |
protected string read until string look for throws ioexception string string while true int value t client get input stream read string char value if string ends with look for break return string | reads from the stream until look for string is found |
protected void write line string string throws ioexception for int i 0 i string length i t client get output stream write char string char at i t client get output stream write n t client get output stream flush | writes a line on the output stream |
protected string get parameter string param name return context get property param name | returns the given parameter value from the context |
protected void login throws ioexception if logger is debug enabled logger debug read until write line get parameter vlc admin pass if logger is debug enabled logger debug read until | executes the login sequence using the vlc |
public void update status int event object payload switch event case telnet notifier start event swing utilities invoke later new runnable public void run set busy true break case telnet notifier error event throwable t throwable payload logger error connection failure t fallback to end event just to disable the progress bar case telnet notifier end event swing utilities invoke later new runnable public void run set busy false break | updates status of gui |
private void set look and feel if current skin null logger warn gui skin parameter not found in conf file return else string laf org jvnet substance skin current skin try uimanager set look and feel laf swing utilities update component tree ui this catch throwable e logger error skin laf exception e | sets the look and feel based on the gui |
public void set locale locale locale context set locale locale to string | a convienence method to set the locale |
public void set authentication string authentication context set authentication authentication | a convenience method to set the authentication string |
public void set port and queue int tcp port int rpc num try util arset server port context new name id context get server tcp port rpc num catch arexception e i ve never seen an exception being thrown here so for now we wrap it in a runtime exception throw new runtime exception e | set the tcp port number and the rpc program number for this server |
public void set port int tcp port set port and queue tcp port 0 | set the tcp port number for this server |
public void reset num matches 1 entry keys null entries null entry index 0 key index 0 absolute index 0 last chunk false | reset the iterator this will perform a new query |
public void set sorting sort info sorting this sorting sorting | set the sorting |
public void set fast fail boolean fast fail this fast fail fast fail | set the fast failing behaviour of the iterator default is false |
public int get num matches throws arexception prepare entries return num matches | get the number of entries that match the query |
public void remove try remove entry catch arexception ex throw new runtime exception ex | removes the current entry by invoking |
public void remove entry throws arexception illegal state exception if current entry null throw new illegal state exception current entry set context context current entry remove current entry null absolute index num matches | removes the current entry |
public void set entry list field info long field ids entry list field info field info new entry list field info field ids length for int i 0 i field ids length i field info i new entry list field info new field id field ids i set entry list field info field info | set the fields that should be returned for each entry |
public result process add opus request request throws exception gps output handler gps output handler gps output handler get repository get output handler gps output handler output gps torinex return gps output handler process add opus request | handle the request |
public string get id return ldm | used to uniquely identify this admin handler |
public string get opendap url entry entry return get opendap prefix entry get opendap suffix entry | makes the opendap url for the entry |
private grid dataset create grid string path try get storage manager dir touched nj22 dir null grid open counter incr grid dataset gds grid dataset open path if gds get grids iterator has next return gds else grid close counter incr gds close return null catch exception exc throw new runtime exception exc | create the grid dataset from the file |
private boolean get ingest entry entry return misc equals entry get value index ingest true | get whether we should ingest files |
public string get type name return ramadda repository | what is the name of this publisher |
public boolean do init new if repository client null repository client new interactive repository client return repository client show config dialog | do the configuration |
public output handler get data output handler throws exception return get repository get output handler data output handler output opendap to string | this is from the |
public void clear cache super clear cache nc file pool clear nc dataset pool clear grid pool clear point pool clear trajectory pool clear cdm entries clear grid entries clear point entries clear trajectory entries clear | clear the cache |
private integrated data viewer get idv throws exception return idv server get idv | gets an idv instance from the idv server |
public void set repository client interactive repository client value repository client value | set the repository client property |
public interactive repository client get repository client return repository client | get the repository client property |
public boolean is aggregation entry entry return entry get type equals grid aggregation type handler type gridaggregation | check to see if an entry is an aggregation |
public void set north double value north value | set the north property |
public boolean ok if type type label return true return required get value trim length 0 | is this entry ok |
public void set west double value west value | set the west property |
public void set south double value south value | set the south property |
public void set east double value east value | set the east property |
public void browse jtext field fld string f fld get text jfile chooser chooser new file manager my file chooser f if chooser show open dialog fld jfile chooser approve option fld set text chooser get selected file to string | open a file browser associated with the text field |
public double get east return east | get the east property |
public string get value if type type hidden return value if type type label return null if component null return jtext component component get text return value | get the value the user entered |
public void set value string new value if type type hidden this value new value if type type label else if component null jtext component component set text new value | set the text value to the given new value |
public string get opendap url entry entry return get opendap handler get opendap url entry | get the ope ndap url |
private file part get file part if file part source null final string file get value return new file part get name new part source public input stream create input stream try return ioutil get input stream file catch exception exc throw new wrapper exception reading file file exc public string get file name return new file file get name public long get length return new file file length return new file part get name file part source | get the file part |
public string get absolute opendap url request request entry entry return get opendap handler get absolute opendap url request entry | get the absolute ope ndap url |
public void put value value cache put value | store a new object |
public value get return cache get | get the object or null if its expired |
private boolean can load entry entry entry string url entry get resource get path if url null return false if url ends with return false if url ends with return false if entry is group return false if entry get resource is remote file return true if entry get resource is file type return entry get file exists if entry get resource is url return false if url index of dods 0 return true return true | check if we can load the entry |
public boolean ok to post if type type label return false if type type file if file part source null return new file get value exists return true | post the file |
public void set key object value key value | set the key property |
public void set children list value children value | set the children property |
public void set keys list value keys value | set the keys property |
public void set map hashtable value map value | set the map property |
public hashtable get map return map | get the map property |
public void set make headings boolean value this make headings value | set the make headings property |
public void clear synchronized get mutex for enumeration key type keys cache keys keys has more elements key type key keys next element for value type value cache get key remove value key value size 0 cache new hashtable keys new array list | clear the cache |
public value get object key cache entry cache entry cache get key if cache entry null return null date now new date long time diff now get time cache entry time if time diff time threshold cache remove key return null if update time on get cache entry reset time return value cache entry object | get the value |
public void reset time this time new date get time | reset time in cache |
public boolean get make headings return this make headings | get the make headings property |
public void set replace newline with p boolean value this replace newline with p value | set the replace newline with p property |
public boolean get replace newline with p return this replace newline with p | get the replace newline with p property |
private boolean is grads entry e return e get type equals type grads | is this a gr ads entry |
public void close jar try for jar file jar file jar files jar file close jar files new array list jar file catch ioexception exc | close the jar file |
private urlconnection open urlconnection final url u throws ioexception return new urlconnection u public void connect throws ioexception public input stream get input stream throws ioexception return get resource as stream u get file | create our own urlconnection for handling get resource |
public boolean can load as point entry entry if excluded by pattern entry type point return false if included by pattern entry type point return true if can load as cdm entry return false boolean b boolean point entries get entry get id if b null boolean ok false if can load entry entry ok false else try ok point pool contains or create get path entry catch exception ignore point entries put entry get id b new boolean ok return b boolean value | can the entry be loaded a point data |
public boolean can load as trajectory entry entry if excluded by pattern entry type trajectory return false if included by pattern entry type trajectory return true if can load as cdm entry return false boolean b boolean trajectory entries get entry get id if b null boolean ok false if can load entry entry try ok trajectory pool contains or create get path entry catch exception ignore this trajectory entries put entry get id b new boolean ok return b boolean value | can the entry be loaded as a trajectory |
public void set max files int value this max files value | set the max files property |
public int get max files return this max files | get the max files property |
public void set max size long value this max size value | set the max bytes property |
public class load class string name throws class not found exception check if we have this class as a jar entry class c class loaded classes get name if c null return c string file name string util replace name file name class my jar entry jar entry find jar entry file name if jar entry null return load class from jar jar entry jar entry get name else return super load class name | overwrite base class method to load in a class by name |
public class get class from plugin string name return class loaded classes get name | check if this class is one we loaded from a plugin |
public void set max age long value this max age value | set the max age property |
public long get max age return this max age | get the max age property |
protected string define resource string jar file path jar entry jar entry string entry name jar entry get name string name jar entry get name canonical names put name entry name canonical names put jar file path name entry name name name canonical names put jar file path name entry name string path canonical names put path plugin protocol jar file path name entry name canonical names put plugin protocol name entry name return path | associate the resource name with the jar entry |
public void set touched boolean value touched value | set the touched property |
public boolean get touched return touched | get the touched property |
private string get canonical name string resource return string canonical names get resource | get the actual name that is used in the jar file |
public url get resource string resource string name get canonical name resource if name null return super get resource resource try return new url plugin protocol 1 resource url stream handler catch exception exc return null | open the resource as a url |
public input stream get resource as stream string resource string jar entry name get canonical name resource if jar entry name null my jar entry jar entry find jar entry jar entry name try return jar entry jar file get input stream jar entry jar file get jar entry jar entry name catch exception exc return null | open the resource as a istream if we have it |
private boolean excluded by pattern entry entry string type return has suffix for type entry type true | see if an entry is excluded by pattern for a type |
private class load class byte bytes permission collection pc new permissions pc add new all permission code source code source new code source url null java security cert certificate null protection domain pd new protection domain code source pc return define class string null bytes 0 bytes length pd | load class bytes |
private boolean included by pattern entry entry string type return has suffix for type entry type false | see if an entry is included by pattern for a type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.