input
stringlengths
10
828
output
stringlengths
5
107
public void set search time double search time this search time search time
sets the search time value for this google search result
public void clear m root node remove all children m tree model reload
remove all nodes except the root node
public void remove current node tree path current selection m tree get selection path if current selection null default mutable tree node current node default mutable tree node current selection get last path component mutable tree node parent mutable tree node current node get parent if parent null m tree model remove node from parent current node return either there was no selection or the root was selected m toolkit beep
remove the currently selected node
public default mutable tree node add object object child default mutable tree node parent node null tree path parent path m tree get selection path if parent path null parent node m root node else parent node default mutable tree node parent path get last path component return add object parent node child m b show
add child to the currently selected node
protected array list get domain relations pomtaxonomic relation relation array list al domain relations new array list pomconcept domain pomconcept relation get domain concept fingerprint fingerprint pattern store get local evidence store pattern store class get fingerprint domain list pomconcept super concepts array list fingerprint get super concepts for pomconcept super concept super concepts pomsubclass of relation subclass of relation m pom new subclass of relation domain super concept al domain relations add subclass of relation return al domain relations
returns subclass of relations with same domain as relation
protected array list get domain relations pomtaxonomic relation relation array list al domain relations new array list pominstance domain pominstance relation get domain instance fingerprint fingerprint pattern store get local evidence store pattern store class get fingerprint domain list pomconcept concepts array list fingerprint get concepts for pomconcept concept concepts pominstance of relation instance of relation m pom new instance of relation domain concept al domain relations add instance of relation return al domain relations
returns subclass of relations with same domain as relation
public void add algorithm abstract algorithm algorithm algorithm set corpus m corpus algorithm set pom m pom wrapper get changeable algorithm set linguistic analyser m analyser algorithm set evidence manager m evidence manager algorithm set reference manager m reference manager algorithm set algorithm controller this algorithm set normalizer m normalizer m algorithms add algorithm update class2 algorithms algorithm
adds an algorithm to this controller
protected void set pom pom pom m pom pom m pom add change observer this
sets the pom for this algorithm
protected void set corpus corpus corpus m corpus corpus m corpus add change observer this
sets the corpus for this algorithm
protected void set linguistic analyser linguistic analyser analyser m analyser analyser
sets the linguistic analyser for this algorithm
protected void add algorithm abstract algorithm algorithm m algorithms add algorithm algorithm set parent this
adds a sub algorithm
public void sync serial data store corpus corpus throws exception list string l names corpus get document names for string s name l names add document s name m data store sync m persist corpus m persist corpus sync
saves corpus to datastore and updates persist corpus
public void register connection socket connection boolean receiving if receiving get receiving connections add connection else get sending connections add connection release sending connection connection
register a new code connection code that is normally received by
public void unregister connection socket connection get sending connections remove connection get receiving connections remove connection
unregister the given code connection code from the station
public void set event listener relay connection event listener event listener event listener event listener
event listener that listens on events of this factory and all created connections
public void set addresses collection socket address addresses addresses addresses
all local addresses to listen on for new incoming connection of nodes
public void set sending connection count int sending connection count sending connection count sending connection count
count of connections to the relay station for sending operations
public void set receiving connection count int receiving connection count receiving connection count receiving connection count
count of connections for receiving messages from the relay station
public void set check interval long check interval check interval check interval
interval in milli seconds to check for dead or corrupt connections
public void set transcoder transcoder transcoder transcoder transcoder
transcoder to encode and decode the raw data send received in a
public decoder result decode bit matrix bits throws format exception construct a parser to read the data codewords and error correction level bit matrix parser parser new bit matrix parser bits int codewords parser read codewords if codewords length 0 throw format exception get format instance int ec level parser get eclevel int num eccodewords 1 ec level 1 int erasures parser get erasures correct errors codewords erasures num eccodewords verify codeword count codewords num eccodewords decode the codewords return decoded bit stream parser decode codewords
p decodes a pdf417 code represented as a
public result decode with state binary bitmap image throws not found exception make sure to set up the default state so we don t crash if readers is empty set hints null return decode internal image
decode an image using the state set up by calling set hints previously
public void start preview camera the camera camera if the camera null previewing the camera start preview previewing true
asks the camera hardware to begin drawing preview frames to the screen
public void request preview frame handler handler int message camera the camera camera if the camera null previewing preview callback set handler handler message if use one shot preview callback the camera set one shot preview callback preview callback else the camera set preview callback preview callback
a single preview frame will be returned to the handler supplied
public void set manual framing rect int width int height if initialized point screen resolution config manager get screen resolution if width screen resolution x width screen resolution x if height screen resolution y height screen resolution y int left offset screen resolution x width 2 int top offset screen resolution y height 2 framing rect new rect left offset top offset left offset width top offset height log d tag calculated manual framing rect framing rect framing rect in preview null else requested framing rect width width requested framing rect height height
allows third party apps to specify the scanning rectangle dimensions rather than determine
public void start if is init ok if first start first start false string user home system get property user home string install dir name user home file separator jogl ext file separator install directory should manage jogl versions here final file install dir new file install dir name thread refresher new thread public void run refresh jogl install dir refresher set priority thread norm priority 1 refresher start else if jogl started we have to start again the applet start can be called multiple times e g once per tabbed browsing sub applet start
start asynchroneous loading of libraries if needed
private boolean check native certificates certificate native certs locate the jogl certificates certificate jogl certs gldrawable factory class get protection domain get code source get certificates if native certs null native certs length 0 return false int checked 0 for int i 0 i jogl certs length i for int j 0 j native certs length j if native certs j equals jogl certs i checked break return checked jogl certs length
checking the native certificates with the jogl ones all must match
private void start sub applet try sub applet applet class for name sub applet class name new instance sub applet set stub new applet stub proxy catch class not found exception cnfe cnfe print stack trace display error class not found sub applet class name return catch exception ex ex print stack trace display error unable to start sub applet display name return add sub applet border layout center try sub applet init remove loader panel validate sub applet start jogl started true catch exception ex ex print stack trace
the true start of the sub applet invoked in the edt
public long get no entry value return no entry value
returns the value that is used to represent null
public void ensure capacity int desired capacity if desired capacity max size size rehash prime finder next prime hash functions fast ceil desired capacity size load factor 1 compute max size capacity
ensure that this hashtable has sufficient capacity to hold
protected void remove at int index set index no entry value super remove at index
releases the element currently stored at tt index tt
public void compact need at least one free spot for open addressing rehash prime finder next prime hash functions fast ceil size load factor 1 compute max size capacity if auto compaction is enabled re determine the compaction interval if auto compaction factor 0 compute next auto compaction amount size
compresses the hashtable to the minimum prime size as defined
protected int index long val int hash probe index length final byte states states final long set set length states length hash hash functions hash val 0x7fffffff index hash length if states index free states index removed set index val see knuth p 529 probe 1 hash length 2 do index probe if index 0 index length while states index free states index removed set index val return states index free 1 index
locates the index of tt val tt
protected int index object obj final object set set final int length set length final int hash hash functions hash obj 0x7fffffff int index hash length object cur set index if cur obj return index if cur free return 1 note here it has to be removed or full some user given value if cur removed cur equals obj see knuth p 529 final int probe 1 hash length 2 do index probe if index 0 index length cur set index while cur free cur removed cur equals obj return cur free 1 index
locates the index of tt obj tt
public int get no entry value return no entry value
returns the value that is used to represent null
public int get no entry key return no entry key
returns the value that is used to represent null as a key
public byte get no entry value return no entry value
returns the value that is used to represent null
public float get no entry value return no entry value
returns the value that is used to represent null
protected int index int val int hash probe index length final byte states states final int set set length states length hash hash functions hash val 0x7fffffff index hash length if states index free states index removed set index val see knuth p 529 probe 1 hash length 2 do index probe if index 0 index length while states index free states index removed set index val return states index free 1 index
locates the index of tt val tt
protected void remove at int index set index no entry key super remove at index
releases the element currently stored at tt index tt
protected int index int key int hash probe index length final byte states states final int set set length states length hash hash functions hash key 0x7fffffff index hash length if states index free states index removed set index key see knuth p 529 probe 1 hash length 2 do index probe if index 0 index length while states index free states index removed set index key return states index free 1 index
locates the index of tt val tt
protected int index float val int hash probe index length final byte states states final float set set length states length hash hash functions hash val 0x7fffffff index hash length if states index free states index removed set index val see knuth p 529 probe 1 hash length 2 do index probe if index 0 index length while states index free states index removed set index val return states index free 1 index
locates the index of tt val tt
public tlong array list tlong collection collection this collection size add all collection
creates a new code tlong array list code instance that contains
public tint array list tint collection collection this collection size add all collection
creates a new code tint array list code instance that contains
public void trim to size if data length size int tmp new int size to array tmp 0 tmp length data tmp
sheds any excess capacity above and beyond the current size of the list
public void trim to size if data length size long tmp new long size to array tmp 0 tmp length data tmp
sheds any excess capacity above and beyond the current size of the list
private void swap int i int j long tmp data i data i data j data j tmp
swap the values at offsets tt i tt and tt j tt
private void swap int i int j int tmp data i data i data j data j tmp
swap the values at offsets tt i tt and tt j tt
public boolean add int entry throw new unsupported operation exception
unsupported when operating upon a key set view of a tint byte map
public boolean add all collection extends integer collection throw new unsupported operation exception
unsupported when operating upon a key set view of a tint byte map
public boolean add all tint collection collection throw new unsupported operation exception
unsupported when operating upon a key set view of a tint byte map
public boolean add all int array throw new unsupported operation exception
unsupported when operating upon a key set view of a tint byte map
public double define obstacle binary map data object road int point if road get types 0 3 map rendering types point type possibly not only first type needed tag value pair pair road get tag value 0 if pair null if pair tag equals highway pair value equals traffic signals return 20 else if pair tag equals railway pair value equals crossing return 25 else if pair tag equals railway pair value equals level crossing return 25 return 0
return delay in seconds
public double define speed binary map data object road tag value pair pair road get tag value 0 double speed map rendering types get max speed if defined road get highway attributes 3 6d boolean highway highway equals pair tag double priority highway auto priority values contains key pair value auto priority values get pair value 1d if speed 0 highway speed auto not defined values get pair value 3 6d return speed priority
return speed in m s
public double get min default speed return 9
used for a routing to calculate g x
private url create upload url throws malformed urlexception if project name null throw new null pointer exception project name must be set non nls 1 return new url https project name googlecode com files non nls 1 non nls 2 non nls 3
creates the correct url for uploading to the named google code project
public void write raw little endian64 final long value throws ioexception write raw byte int value 0x ff write raw byte int value 8 0x ff write raw byte int value 16 0x ff write raw byte int value 24 0x ff write raw byte int value 32 0x ff write raw byte int value 40 0x ff write raw byte int value 48 0x ff write raw byte int value 56 0x ff
write a little endian 64 bit integer
public builder add length delimited final byte string value if result length delimited null result length delimited new array list byte string result length delimited add value return this
add a length delimited value
public byte string serialize throw new error todo
todo convert this reference into a serialized representation that can be
public void write file block block throws ioexception this write block compression
write a block with the streams default compression flag
protected string get string by id int id return strings id
get a string based on the index used
public void config granularity int granularity this granularity granularity
set the granularity precision of lat lon measured in unites of nanodegrees
public void config omit boolean omit metadata this omit metadata omit metadata
set whether metadata is to be omitted
public void config batch limit int batch limit this batch limit batch limit
configure the maximum number of entities in a batch
public int map degrees double degrees return int degrees 0000001 granularity 100
convert from a degrees represented as a double into the serialized offset
public imap location listener set map location listener return location listener
adds listener to control when map is dragging
public int get map xfor point double longitude double tile x map utils get tile number x get zoom longitude return int tile x get xtile get tile size get center point x
these methods do not consider rotating
static public string get user name http session session final string user id string session get attribute session constants login username if null user id user id length 0 return null return user id
retrieves and returns user login name from their session
public boolean is one way trip return get trip type etrip type oneway trip
observation method of trip type
public boolean is round trip return get trip type etrip type round trip
observation method of trip type
public boolean is null depart flight no return null get depart flight no
observation method of departure flight number
public boolean is null return flight no return null get return flight no
observation method for return flight number
public boolean is valid depart flight no if null get depart flight no return true final integer no get depart flight no return null no no 0 no 999
observation method for departure flight number
public boolean is valid return flight no if null get return flight no return true final integer no get return flight no return null no no 0 no 999
observation method for return flight number
public void set depart month integer depart month this depart month depart month
sets departing month
public integer get depart month return depart month
returns departing month
public void set depart day integer depart day this depart day depart day
sets departing day
public integer get depart day return depart day
returns departing day
public void set depart year integer depart year this depart year depart year
sets departing year
public integer get depart year return depart year
returns departing year
public void set depart hour integer depart hour this depart hour depart hour
sets departing hour
public integer get depart hour return depart hour
returns departing hour
public void set return month integer return month this return month return month
sets returning month
public integer get return month return return month
returns returning month
public void set return day integer return day this return day return day
sets returning day
public integer get return day return return day
returns returning day
public void set return year integer return year this return year return year
sets returning year
public integer get return year return return year
returns returning year
public void set return hour integer return hour this return hour return hour
sets returning hour
public integer get return hour return return hour
returns returning hour
public void set num passengers integer num passengers this num passengers num passengers
sets number of passengers
public integer get num passengers return num passengers
returns number of passengers
public void set trip type etrip type trip type this trip type trip type
sets trip type
public etrip type get trip type return trip type
returns trip type
public void set depart hour range integer depart hour range this depart hour range depart hour range
sets the searching hour range
public integer get depart hour range return depart hour range
returns searching hour range
public void set depart flight no integer depart flight no this depart flight no depart flight no
sets departing flight number
public integer get depart flight no return depart flight no
returns departing flight number
public void set return flight no integer return flight no this return flight no return flight no
sets return flight number
public integer get return flight no return return flight no
returns return flight number