input
stringlengths
10
828
output
stringlengths
5
107
public string get picture path return picture path
getter of the property tt picture path tt
public void set picture path string picture path this picture path picture path
setter of the property tt picture path tt
public string get macro name return macro name
getter of the property tt macro name tt
public file system get file system return file system
getter of the property tt file system tt
public void set file system file system file system this file system file system
setter of the property tt file system tt
public void open document throws ooo exception system out println documento da aprire doc url try x comp x comp loader load component from url doc url blank 0 open properties catch ioexception e e print stack trace throw new ooo exception impossibile aprire il documento doc url catch illegal argument exception e e print stack trace throw new ooo exception parametri di apertura errati
apre il documento
public void close document throws ooo exception try xmodel x model xmodel uno runtime query interface xmodel class x comp xcloseable x closeable xcloseable uno runtime query interface xcloseable class x model if x closeable null x comp dispose x closeable close true catch close veto exception e e print stack trace throw new ooo exception impossibile chiudere il documento
chiude il documento
public xbuild data get xbuild data return xbuild data
getter of the property tt xbuild data tt
public void set xbuild data xbuild data xbuild data this xbuild data xbuild data
setter of the property tt xbuild data tt
public array list read file string filename throws file not found exception ioexception array list string file xml new array list string string row null buffered reader file new buffered reader new file reader filename row file read line while row null file xml add row row file read line file close return file xml
legge un file dal file system e lo trasforma in un array
protected string get app path string tempstr this get class get name int index tempstr last index of tempstr tempstr substring 0 index string fileseparator system get properties get property file separator if fileseparator equals tempstr tempstr replace else if fileseparator equals tempstr tempstr replace return tempstr fileseparator
get config application path
private void print sys pros properties pro system get properties enumeration enu pro keys while enu has more elements string key string enu next element system out println key pro get property key
test method print all system properties
public string get url outgoing string url outgoing null try input stream is new file input stream file properties load is url outgoing properties get property url outgoing is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return url outgoing
get the value of url outgoing
public string get url incoming string url incoming null try input stream is new file input stream file properties load is url incoming properties get property url incoming is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return url incoming
get the value of url incoming
public string get supervisor channel string supervisor channel null try input stream is new file input stream file properties load is supervisor channel properties get property supervisor channel is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return supervisor channel
get the value of supervisor channel
public string get amipassword string a mipassword null try input stream is new file input stream file properties load is a mipassword properties get property amipassword is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return a mipassword
get the value of password
public string get amiuser name string a miuser name null try input stream is new file input stream file properties load is a miuser name properties get property amiuser name is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return a miuser name
get the value of amiuser name
public string get amiserver string a miserver null try input stream is new file input stream file properties load is a miserver properties get property amiserver is close catch exception ex logger get logger system properties class get name log level severe null ex joption pane show message dialog asterisk admin jframe ex get message warning joption pane ok option return a miserver
get the value of amiserver
public text box get id text box return id text box
to get the id field
public text box get short name text box return short name text box
to get the short name field
public text area get description text area return description text area
to get the descripton field
public form view get fields return fields
to get the fields of this view
public button get create button return create button
to get the create button of this view
private flash image data processor only static methods
creates a new instance of flash image data processor
public void reset object app super reset app this team name app properties get instance get property team name
resets the code team name code to the value of
public void reset object app super reset app osmap util get mappings os
initializes the os mapping hash map
public string get key name object key return util ip4to string int value key get value
get the human readable raw ip address
public string get key name object key if osmap contains key key return string osmap get key 0 return key to string
get the human readable name of the os id
public void add log entry le day collector days if name2history contains key team name days new day collector name2history put team name days else days day collector name2history get team name days add le
add the log entry to the keys day entry collection
public string get html sub dir return ip raw
get the html sub directory for this category
public void reset object app super reset app cpumap util get mappings cpu
initializes the cpu mapping hash map
public string get html sub dir return os
get the html sub directory for this category
public string get key html sub dir object key return key to string
get the html sub directory for a key in this category
public void reset object app this app application app this ranking null this keyrates null
overwrites the provider of the overall day collection
public string get key name object key if cpumap contains key key return string cpumap get key 0 return key to string
get the human readable name of the cpu id
public string get key name description return raw ip address
get a short description of the keys in this category
public string get html sub dir return cpu
get the html sub directory for this category
public string get key name object key return key to string
get the human readable name of the key
public string get key name description return operating system
get a short description of the keys in this category
public string get html title return summary rc5 stats by raw ip address
get the title for this category
public void remove int day remove new int value day
remove a day from all day entry collections
public string get key name description return team
get a short description of the keys in this category
public string get html title return summary rc5 stats by operating system
get the title for this category
public void reset object app super reset app
does currently nothing
public string get key name description return cpu
get a short description of the keys in this category
public void remove int value day if day null return log debug get html sub dir removing day day collection c name2history values iterator i c iterator while i has next day collector days day collector i next days remove day invalidate keyrates and rankings ranking null keyrates null
remove a day from all day entry collections
public boolean do charts return app properties get instance get property team charts equals yes
check whether to include charts in generated html pages
public void add log entry le day collector days int value key new int value le get ip if name2history contains key key days new day collector name2history put key days else days day collector name2history get key days add le
add the log entry to the keys day entry collection
public string get html title return summary rc5 stats by cpu
get the title for this category
public void add log entry le day collector days int value key new int value le get os if name2history contains key key days new day collector name2history put key days else days day collector name2history get key days add le
add the log entry to the keys day entry collection
public boolean do charts return app properties get instance get property ip raw charts equals yes
check whether to include charts in generated html pages
public string get html sub dir return version
get the html sub directory for this category
public boolean do charts return app properties get instance get property os charts equals yes
check whether to include charts in generated html pages
public string get key html sub dir object key return get key name key
get the html sub directory for a key in this category
public string get html sub dir return team
get the html sub directory for this category
public void add log entry le day collector days int value key new int value le get cpu if name2history contains key key days new day collector name2history put key days else days day collector name2history get key days add le
add the log entry to the keys day entry collection
public void reset object app super reset app cpumap util get mappings cpu osmap util get mappings os
initializes the cpu mapping hash map
public string get key name description return client version
get a short description of the keys in this category
public boolean do charts return app properties get instance get property cpu charts equals yes
check whether to include charts in generated html pages
public string get key name object key string buffer buf new string buffer int value id get os cpu key key if osmap contains key id 0 buf append string osmap get id 0 0 else buf append id 0 to string buf append if cpumap contains key id 1 buf append string cpumap get id 1 0 else buf append id 1 to string string name key to string int idx name last index of if idx 1 buf append append name substring idx 1 return buf to string
get the human readable name of the key
public string get html title return summary rc5 stats by client version
get the title for this category
public string get key html sub dir object key return team name
get the html sub directory for a key in this category
public string get html sub dir return os cpu ver
get the html sub directory for this category
public void add log entry le day collector days int value ver new int value le get version if name2history contains key ver days new day collector name2history put ver days else days day collector name2history get ver days add le
add the log entry to the keys day entry collection
private ip resolver new ip resolver ip resolver ir null first try to de serialize string dir app properties get instance get property cache dir if dir null dir trim length 0 ir ip resolver util read object dir system get property file separator dns cache if ir null ir new ip resolver ir reset return ir
get a new ip resolver
public string get html title return summary for team team name
get the title for this category
public ranking get ranking if ranking null ranking get number of ranks name2history size ranking new ranking name2history new int value util get day system current time millis 0 ranking do ranking return ranking
setup a ranking for this statistics
public ip resolver get ip resolver return ip resolver
get the ip resolver used to resolve ip addresses
public string get key name description return os cpu version
get a short description of the keys in this category
public string get html sub dir return email
get the html sub directory for this category
public string get distributed net url string buffer href new string buffer a href http stats distributed net team tmsummary php string team id app properties get instance get property team id if team id trim length 0 href append project id 8 amp team append team id href append append team name append a return href to string
get a full html anchor to the key objects stats on the official
public string get html title return summary rc5 stats by os cpu version
get the title for this category
public string get key name description return email address
get a short description of the keys in this category
public string get html title return summary rc5 stats by email
get the title for this category
public void add log entry le day collector days string key le get os le get cpu le get version if name2history contains key key days new day collector name2history put key days else days day collector name2history get key days add le
add the log entry to the keys day entry collection
public string get html sub dir return ip
get the html sub directory for this category
public void add log entry le day collector days if name2history contains key le get email days new day collector name2history put le get email days else days day collector name2history get le get email days add le
add the log entry to the keys day entry collection
public boolean do charts return app properties get instance get property os cpu ver charts equals yes
check whether to include charts in generated html pages
public string get key html sub dir object key if expired key list clear key list add all name2history key set expired false return key list index of key
get the html sub directory for a key in this category
public boolean do charts return app properties get instance get property email charts equals yes
check whether to include charts in generated html pages
public string get key name description return ip address
get a short description of the keys in this category
public string get distributed net url object key return a href http stats distributed net participant psearch php project id 8 amp st key to string key to string a
get a full html anchor to the key objects stats on the official
public string get html title return summary rc5 stats by ip address
get the title for this category
public void write page stats stats string basedir html dir fs stats get html sub dir fs array list keys new array list stats get key set boolean do charts stats do charts for int i 0 i keys size i write page stats keys get i basedir do charts
write an html detail page for each key in the statistics
public void add log entry le day collector days string key ip resolver resolve le get ip if name2history contains key key days new day collector name2history put key days expired true else days day collector name2history get key days add le
add the log entry to the keys day entry collection
public void add raw ip stats ris day collector days array list list new array list ris get key set for int i 0 i list size i int value addr int value list get i string key ip resolver resolve addr days get days key if days null days add ris get days addr else days new day collector days add ris get days addr name2history put key days
add the complete set of day collections of a raw ip address statistics
public boolean equals object obj if obj instanceof int value return value int value obj get value return false
compares this object to the specified object
public string get prefix if prefix null return prefix return
get the prefixed used for keyrates
public boolean do charts return app properties get instance get property ip charts equals yes
check whether to include charts in generated html pages
public double get devisor return devisor
get the devisor used to calculate the data rates
public int compare to int value another int value int this val this value int another val another int value value return this val another val 1 this val another val 0 1
compares two code int value code objects numerically
public int compare to object o return compare to int value o
compares this code int value code object to another object
public double get max rate return max rate
get the maxium rate calculated in the specified range
public int get rank object key int rank totals today length for int i 0 i rank i if totals today i key key rank i break return rank
get the current rank of the key object
public long get overall blocks return real overall blocks
get the sum of all blocks in the specified range
public double get average blocks return 1 0 overall blocks get number of days
get the average block rate per day
public long get blocks return block
get the number of blocks for this entry
public void add log entry le this blocks le block size if this offset le offset this offset le offset
add the block size in the log entry to this instance and adapt
public void add day entry de if de null return this blocks de blocks if this offset de offset this offset de offset
add the blocks of another day entry to this instance and adjust the
public void add log entry le if days contains key le day day entry days get le day add le else day entry d new day entry le days put le day d expired true
adds the log entry to the appropriate tables