input
stringlengths
10
828
output
stringlengths
5
107
public void update final observable o final object arg if a combobox notification comes in rebuild the combobox if arg null arg equals observable enum notify species combobox construct species combobox
this method is called whenever the observed object is changed
public hash map get aa map return i aa map
getter for the i aa map parameter
public string get aaindex id return i aaindex id
getter for the aa index id parameter
public string get pub med id return i pub med id
getter for the i pub med id parameter
public string get description return csv file with the data model of the analysis
getter for the description
public string get lit id return i lit id
getter for the i lit id parameter
public void add fasta file file a file if i fasta files null i fasta files new array list file list max three files if there are allready 3 files if i fasta files size 2 remove the third file i fasta files remove 2 insert the new file in leading position i fasta files add 0 a file store properties update observable enum notify fasta combobox
add a fasta file to the list
public string get authors return i authors
getter for the i authors parameter
public string get journal return i journal
getter for the i journal parameter
public string get matrix return i matrix
getter for the i matrix parameter
public string get text if i content null build content return i content
returns the text if the savable is text type
public void add swiss prot composition swiss prot composition a sp composition list max six files if there are allready 6 files if i sp compositions size 5 remove the sixed file i sp compositions remove 5 insert the new file in leading position i sp compositions add 0 a sp composition update observable enum notify species combobox store properties
add a swiss prot composition to the list
public void clear swiss prot composition i sp compositions clear
this method clears the swiss prot composition array list
public isequence set get active reference set return i active reference set
returns the active reference set
public void set active reference set final isequence set a active reference set i active reference set a active reference set
set the active reference set
public int get anchor start position return i start position 1
returns the anchor start position
public void set anchor start position final int a anchor start position set start position a anchor start position 1
set the anchor start position
public sampling direction enum get reference direction return i reference direction
get the sampling direction
public void set reference direction final sampling direction enum a reference direction i reference direction a reference direction
set the sampling direction
public boolean is two experiment return bool two experiment
returns whether there are one or two position sets
public void add sequence experiment type enum a type string a sequence switch a type case experiment i experiment sequence set add a sequence break case experiment two i experiment sequence set two add a sequence break
clears the content of the position sequence set
public void clear experiment sequence set experiment type enum a type switch a type case experiment i experiment sequence set clear content break case experiment two i experiment sequence set two clear content break
clears the content of the position sequence set
public int get number of experimental positions int l length 0 if i experiment sequence set null i experiment sequence set get number of sequences 0 i experiment sequence set reset l length i experiment sequence set next sequence length i experiment sequence set reset return l length
returns the number of positions on the position sequence set
public int get experiment anchor value return i experiment anchor value
returns the anchor value for the position set
public raw sequence set get experiment sequence set experiment type enum a type raw sequence set l result null switch a type case experiment l result i experiment sequence set break case experiment two l result i experiment sequence set two break return l result
returns the requested
public boolean remove fasta file file a file boolean l result false if i fasta files null if i fasta files contains a file i fasta files remove a file l result true return l result
removes a file from the list if it was there
public void set experiment anchor value final int a experiment anchor value i experiment anchor value a experiment anchor value
set the position achor value
public void set pvalue double a pvalue before we start we must round the p value because sometimes the spinner giver 0 0600000005 instad of 0 06 a pvalue math round a pvalue 1000 0 1000 0 if i pvalue a pvalue this i pvalue a pvalue this i zscore statistics conversion calculate two sided zscore 1 a pvalue update observable enum notify statistical
this methods sets the p value
public void set zscore double a zscore if i zscore a zscore this i zscore a zscore this i pvalue statistics conversion calculate pvalue a zscore update observable enum notify statistical
this methods sets the z score
public void set position sample size int a position sample size i position sample size a position sample size
set the samplingsize
public int get position sample size return i position sample size
returns the samplesize
public void set two experiment final boolean a two experiment bool two experiment a two experiment
set the variable whether there are one or two positions sets
private string process move string notation todo implement this method return notation
takes a move in notation format and populates this ply
public void set comment string comment if handicap this comment comment
no comments on handicap
public void shutdown boolean system stop log info shutting down plugin service shutdown try if generic web context null generic web context destroy if server null server stop catch interrupted exception e ignore if system stop unregister shutdown handler to avoid loops runtime get runtime remove shutdown hook shutdown thread log info stopping jvm system exit 0
shutdown all processes
public boolean archive email advanced mime message msg try if message already exported msg log info file already exists in the directory return true string file name get unique filename msg file output stream fileout new file output stream file name false msg write to fileout fileout close log debug exported message to file name catch exception e log error error writing to export dir e return false return true
archives the complete email
private boolean is part indexable document doc part p throws messaging exception ioexception text plain is directly handled if p is mime type text plain doc add field un stored isearch field content string p get content return true handle content types that need to be parsed return parser factory parse doc p
return true if we can handle the content type
public long get total message return all messages
the total of the folder
protected void setup properties for object o key set string key string o if key equals java home system set property key string get key
sets up system properties required for running launcher
public string get main method name return main method name
gets the main method name
public void set main method name string main method name this main method name main method name
sets the main method name
public class realm get main realm throws no such realm exception return classworld launcher get main realm
gets main realm
public void add classpath entry url url throws launcher exception classpath add url
adds classpath entry
public void add classpath entry string file name throws launcher exception file file new file file name if file exists system out println file file does not exist try classpath add file to uri to url catch malformed urlexception e throw new launcher exception e
adds classpath entry
public void configure class loader parent class loader throws launcher exception url urls new url classpath size classpath to array urls class loader new urlclass loader urls parent class loader
configures the launcher
public void perform launch throws launcher exception try class clazz class loader load class main class name reflection util launch class clazz args public static void main string argv method catch exception e throw new launcher exception e
perform actual launch
protected string get realm name return pom launcher
gets the realm name
public void add deps file name list deps file names this deps file names deps file names
sets the deps file name
public void launch throws launcher exception init launch perform launch
main launcher method
public void set classpath file name string classpath file name this classpath file name classpath file name
sets the classpath file name
public class realm get main realm throws no such realm exception return class world get realm main realm name
gets main realm
public void add classpath entry url url throws launcher exception try get main realm add constituent url catch no such realm exception e throw new launcher exception e
adds classpath entry
protected void add libraries list string lib paths throws exception class realm class realm get main realm for string lib path lib paths file lib path file new file lib path if lib path file is directory file files lib path file list files for file file files class realm add constituent file to uri to url
adds discovered libraries folders or jar files to the class realm
public void add classpath entry string file name throws launcher exception file file new file file name if file exists system out println file file does not exist try add classpath entry file to uri to url catch malformed urlexception e throw new launcher exception e
adds classpath entry
public void resolve dependencies string deps file name throws exception resolve dependencies deps file name false
resolves dependencies for specified pom maven2 dependencies file
protected string get realm name return classworlds launcher
gets the realm name
public void resolve dependencies string deps file name boolean ignore throws exception file deps file new file deps file name if deps file exists system out println file deps file does not exist else class realm class realm get main realm list url deps pom reader calculate dependencies deps file ignore for url dep deps class realm add constituent dep
resolves dependencies for specified pom maven2 dependencies file
public void init launch throws launcher exception try if deps file names null for object deps file name deps file names file deps file new file string deps file name if deps file exists resolve dependencies string deps file name if classpath file name null file classpath file new file classpath file name if classpath file exists load dependencies classpath file catch exception e throw new launcher exception e
inits the launch
public void save throws ioexception file launcher props file new file file name store new file output stream launcher props file launcher properties
saves the properties file
public void configure class loader parent class loader throws launcher exception classworld launcher set system class loader parent class loader classworld launcher set world class world string realm name get realm name classworld launcher set app main main class name realm name try class realm cur realm class world new realm realm name parent class loader configured realms put realm name cur realm catch duplicate realm exception e throw new launcher exception e associate child realms to their parents associate realms
configures the launcher
public boolean is interactive return command line get is interactive null
checks if interactive mode has been requested
public string get starter class name return string command line get main class name
gets the starter class name
public boolean is wait mode string s string command line get wait mode return s null s equals ignore case true
checks if wait mode
public boolean is verbose string s string command line get verbose return s null s equals ignore case true
checks if wait mode
public boolean is pomstarter mode string s string command line get pomstarter mode return s null s equals ignore case true
checks if pomstarter mode
protected class load class final string name boolean resolve throws class not found exception class c this find loaded class name if c null return c try c old find class name catch class not found exception cnfe ignore if c null c super load class name resolve if resolve resolve class c return c
loads a class using the name of the class
public boolean is wait mode return parser is wait mode
checks for wait mode
public url get resource string name url url find resource name if url null url super get resource name return url
returns the url of a resource or null if it is not found
public void print constituents try system out println this system out println classworld launcher get world system out println classworld launcher get main realm name class realm realm classworld launcher get main realm url constituents realm get constituents system out println for int i 0 i constituents length i system out println constituent i constituents i system out println catch no such realm exception e system out println no such realm e get message
prints current classpath content
private void load filtered path string filter if filter null return int star index filter index of wildcard if star index 1 add file new file filter return boolean recursive filter index of all wildcard 1 string start dir filter substring 0 star index 1 file root new file start dir filter quote filter filter filter replace all wildcard wildcard match all filter filter replace all wildcard match file name pattern pattern pattern compile filter final file files root list files if files null find matching files files pattern recursive
load a possible filtered path
private boolean parent path does exist string path file dir new file path get parent file return dir exists
return true if the parent of the path inside the given
private string get parent path string filter int index filter last index of if index 1 return return filter substring index 1
seperates the given path at the last
public void add file file f if f null f exists try class path add f to uri to url catch malformed urlexception e throw new assertion error converting an existing file to an url should have never thrown an exception
adds a file to the classpath if it does exist
public void add file string s if s null add file new file s
adds a file to the classpath if it does exist
public void add class path string path string paths path split file path separator for int i 0 i paths length i add file new file paths i
adds a classpath to this configuration
public string get main class return main
returns the main class or null is no is defined
public void set main class string clazz main clazz require main false
sets the main class
public void set require main boolean require main this require main require main
if set to false no main class is required when calling
public void install string args throws exception string basedir system get property basedir if args length 1 args 0 equals basedir basedir args 1 boolean build true string build str system get property build required if args length 3 args 2 equals build required build str args 3 if build str null build str trim to lower case equals false build false install basedir build
installs the project
public void install string basedir boolean build throws exception file pom new file basedir pom xml install basedir build pom
installs the project for specified basedir
private void install pom file model model file source throws ioexception string artifact id model get artifact id string version model get version string group id model get group id repository local repository resolver get local repository file pom local repository get metadata file group id artifact id version model get packaging artifact id version pom copy file source pom
installs pom file
private void copy file file src file dest throws ioexception file utils copy file src dest checksum calculator calculate for file dest
copies dest from one location to another
public model read model file file throws parser configuration exception saxexception ioexception return read model file true false
builds the model based on pom xml file
public message format get format return format map get get value
convert this enumerated type to a code message format code
public artifact resolver get resolver return resolver
gets the artifact resolver
public file get artifact file dependency dependency return resolver get artifact file dependency
gets the artifact file
public model get cached model string group id string artifact id return model cache get group id artifact id
gets the cached model
public file get cached model file string id return model file cache get id
gets the cached model file
public void update property jcomponent component string property if component instanceof jtext field jtext field text field jtext field component string value string launcher props get property if value null text field set text value replace file separator char else if component instanceof jcheck box jcheck box check box jcheck box component string value string launcher props get property if value null check box set selected boolean parse boolean value else if component instanceof jcombo box jcombo box combo box jcombo box component string value string launcher props get property if value null combo box set selected item value
updates gui component from the property
public void save property jcomponent component string property if component instanceof jtext field jtext field text field jtext field component string value text field get text trim if value null value trim length 0 launcher props put property value replace file separator char else if component instanceof jcheck box jcheck box check box jcheck box component launcher props put property string value of check box is selected else if component instanceof jcombo box jcombo box combo box jcombo box component launcher props put property combo box get selected item
updates the property from gui component
public void execute is condition false boolean value validate and execute if verify property null get project set new property verify property value boolean true to string boolean false to string
calculate the checksum s
private string read checksum file f buffered reader disk checksum reader null try disk checksum reader new buffered reader new file reader f object result format parse disk checksum reader read line if result null result length 0 result 0 null throw new runtime exception failed to find a checksum return string result 0 catch ioexception e throw new runtime exception couldn t read checksum file f e catch parse exception e throw new runtime exception couldn t read checksum file f e finally close disk checksum reader
reads the checksum from a file using the specified format
private object get user group fs user group ug fs access token token get the information handler from model com signavio usermanagement usergroup handler info handler in new com signavio usermanagement usergroup handler info handler this get servlet context get the annotation from the model handler configuration group ca platform get instance get handler directory get in get class get name get context class get annotation handler configuration class return the information for a usergroup return this generate resource group ca rel group ca uri ug get id in get representation ug null token
returns the representation of a user group
private object get all root groups fs access token token jsonarray a new jsonarray info handler ih new info handler this get servlet context handler configuration hc this get handler configuration fs role manager manager fs role manager get tenant manager instance fs role manager class token get tenant id token set fs user group groups manager get children fs user group class for fs user group group groups a put this generate resource hc rel hc uri group get id ih get representation group null token return a
returns the representation of all available users
private object get user fs user user fs access token token get the information handler from the user com signavio usermanagement user handler info handler in new com signavio usermanagement user handler info handler this get servlet context get the annotation from the user handler configuration group ca platform get instance get handler directory get in get class get name get context class get annotation handler configuration class generate the information from a user return this generate resource group ca rel group ca uri user get id in get representation user null token
returns the representation of a user
private void initialize listeners
todo this method is for debugging purpose only
public void fire create event fs secure business object object fire event object create event
calls the create method of all registered listeners
public void fire load event fs secure business object object fire event object load event
calls the load method of all registered listeners
public void fire delete event fs secure business object object fire event object delete event
calls the delete method of all registered listeners
protected void add jspattributes http servlet request req req set attribute explorer url platform get instance get platform properties get explorer uri req set attribute administration url platform get instance get platform properties get administration uri req set attribute editor url platform get instance get platform properties get editor uri req set attribute libs url platform get instance get platform properties get libs uri req set attribute translation translation factory get translation req
adds default objects as attributes to the request that are usually