input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public int get prob structure return prob structure
|
returns the probability structure
|
public boolean is compatible double lattice1 s other return children other children periods other periods
|
returns code true code if the specified lattice is compatible to
|
public boolean is superset of itime interval interval return lower bound after interval get lower bound upper bound before interval get upper bound throws null pointer exception if interval null
|
returns code true code if this interval is a superset of the specified
|
public itime interval intersection itime interval interval long l bound math max get lower bound get time interval get lower bound get time long u bound math min get upper bound get time interval get upper bound get time return u bound l bound null new time interval new date l bound new date u bound
|
returns the intersection of the specified interval and the receiver
|
public string to string return new string date format format lower bound date format format upper bound
|
returns a string representation of this object
|
public boolean equals object object if this object return true if object null get class object get class return false final itime interval other itime interval object return lower bound equals other get lower bound upper bound equals other get upper bound
|
compares the specified object with this interval for equality
|
public string to string string format get meta descriptor get format meta descriptor always exists return format null format is empty to long string string format format object variables names
|
returns a string representation of this function
|
public void set domain idouble domain domain this domain idouble domain1 d domain
|
sets a domain to constrain the original domain
|
public void set weight int time int level int child level double value weights weight index of time level child level value
|
sets the weight at the specified position to value
|
public string to string int x length length 0 int y length length 1 dense object matrix2 d matrix new dense object matrix2 d x length y length list idouble point list to list for int j 0 j y length j for int i 0 i x length i matrix set i j list get i x length j formatter format new formatter format set alignment formatter center return format to title string matrix null null null null null
|
returns a string representation of this grid
|
public int compare to idouble point point check dimension point dimension double this component other component for int i 0 i coordinates length i this component coordinates i other component point get value i if this component other component return this component other component 1 1 return 0
|
compares this point with the specified point for order
|
public linear1 dset to linear vis adset linear1 dset set null try set new linear1 dset lower bound upper bound length catch vis adexception e e print stack trace return set
|
transforms this grid into a linear grid of the vis ad framework
|
public boolean equals object point if this point return true if point null return false final idouble point other idouble point point if dimension other dimension arrays equals coordinates other as array return false return true
|
compares the specified object with this point for equality
|
public string to string return arrays to string to array
|
returns a string representation of this grid
|
public int hash code final int prime 31 int result prime arrays hash code coordinates return result
|
returns the hash code value for this point
|
public string to string string builder sb new string builder sb append coordinates 0 for int i 1 i coordinates length i sb append coordinates i sb append return sb to string
|
returns a string representation of this object
|
public string to string string buffer sb new string buffer sb append marginals 0 for int i 1 i dimension i sb append x marginals i return sb to string
|
returns a string representation of this object
|
public string to string return new string x
|
returns a string representation of this object
|
public int hash code final int prime 31 int result 1 result prime result marginal0 null 0 marginal0 hash code result prime result marginal1 null 0 marginal1 hash code return result
|
returns a hash code value for this object
|
public string to string return new string marginal0 x marginal1
|
returns a string representation of this object
|
public string to string string set if lower bound upper bound set lower bound else if lower bound upper bound 1 set lower bound upper bound else set lower bound upper bound return set
|
returns a string representation of this object
|
public int compare to iint point point check dimension point dimension double this component other component for int i 0 i coordinates length i this component coordinates i other component point get value i if this component other component return this component other component 1 1 return 0
|
compares this point with the specified point for order
|
public boolean equals object point if this point return true if point null return false final iint point other iint point point if dimension other dimension arrays equals coordinates other as array return false return true
|
compares the specified object with this point for equality
|
public linear2 dset to linear vis adset linear2 dset set null try set new linear2 dset new linear1 dset regular double grid1 d marginal0 to linear vis adset regular double grid1 d marginal1 to linear vis adset catch vis adexception e e print stack trace return set
|
transforms this grid into a linear grid of the vis ad framework
|
public string to string string left bracket contains lower bound 0 string right bracket contains upper bound 0 return new string left bracket lower bound upper bound right bracket
|
returns a string representation of this object
|
public linear ndset to linear vis adset linear ndset set null int dim dimension linear1 dset sets new linear1 dset dim for int i 0 i dim i sets i regular double grid1 d get marginal i to linear vis adset try set new linear ndset create tuple type dim sets catch vis adexception e e print stack trace return set
|
transforms this grid into a linear grid of the vis ad framework
|
public int compare to ipoint n point if x length point dimension throw new illegal argument exception n this component other component for int i 0 i x length i this component x i other component point get value i if this component is less than other component return 1 if this component is greater than other component return 1 return 0
|
compares this point with the specified point for order
|
public int hash code final int prime 31 int result 1 result result prime arrays hash code x return result
|
returns a hash code of this point based on its coordinates
|
public string to string string builder sb new string builder sb append x 0 for int i 1 i x length i sb append x i sb append return sb to string
|
returns a string representation of this object
|
public boolean contains ipoint n point check dimension point dimension return upper bound dominates point false point dominates lower bound false
|
returns code true code if the specified point is an element of this
|
public boolean is superset of icuboid n cuboid check dimension cuboid dimension icuboid n other marginals cuboid get marginals for int i 0 i dimension i if marginals i is superset of other marginals i return false return true
|
returns code true code if this cuboid is a superset of the specified
|
public int hash code final int prime 31 int result 1 result prime result lower bound null 0 lower bound hash code result prime result upper bound null 0 upper bound hash code return result
|
returns the hash code value for this cuboid
|
public string to string return new string beta distribution alpha alpha beta beta
|
returns a string representation of this distribution
|
public string to string return new string gamma distribution alpha alpha theta theta
|
returns a string representation of this distribution
|
public string to string return new string normal distribution mu mu sigma sigma
|
returns a string representation of this distribution
|
public string to string string builder sb new string builder sb append multivariate normal distribution ls return sb to string
|
returns a string representation of this distribution
|
public string to string return new string binomial distribution n n p p
|
returns a string representation of this distribution
|
public string to string return new string poisson distribution lambda lambda
|
returns a string representation of this distribution
|
public string to string return new string lognormal distribution m mu normal s sigma normal
|
returns a string representation of this distribution
|
public string to string return new string geometric distribution p prob
|
returns a string representation of this distribution
|
public string to string return new string exponential distribution lambda lambda alpha alpha
|
returns a string representation of this distribution
|
public string to string return new string cauchy distribution m m b b
|
returns a string representation of this distribution
|
public double get double key int i index of key key if i 0 return 0 not contained return values i
|
returns the value associated with the specified key
|
public boolean remove key double key int i index of key key if i 0 return false key not contained this state i removed this values i 0 delta this distinct if this distinct this low water mark int new capacity choose shrink capacity this distinct this min load factor this max load factor rehash new capacity return true
|
removes the given key with its associated element from the receiver if
|
public object clone open double double hash map copy open double double hash map super clone copy table double copy table clone copy values double copy values clone copy state byte copy state clone return copy
|
returns a deep copy of the receiver
|
public string to string string attribute string builder sb new string builder attribute mapping get name if attribute is empty sb append name attribute ls attribute mapping get id if attribute is empty sb append id attribute ls attribute mapping get description if attribute is empty sb append description ls attribute ls int length sb length if length 0 sb append no meta attributes else sb delete char at length 1 return sb to string
|
returns a string representation of this class
|
public string to string int dim dimension dense object matrix2 d matrix new dense object matrix2 d dim 3 for int row 0 row dim row matrix set row 0 names get row v value values get row matrix set row 1 value null null new string value get class get simple name matrix set row 2 new string value formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of the object
|
public boolean for each pair final double double procedure procedure for int i table length i 0 if state i full if procedure apply table i values i return false return true
|
applies a procedure to each key value pair of the receiver if any
|
public string to string int row 0 dense object matrix2 d matrix new dense object matrix2 d mapping size 2 iterator entry string string iterator mapping entry set iterator while iterator has next entry string string current iterator next matrix set row 0 current get key matrix set row 1 new string current get value row formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of this property structure
|
public double key of double value returns the first key found there may be more matching keys however int i index of value value if i 0 return double na n return table i
|
returns the first key the given value is associated with
|
public string to string int dim dimension dense object matrix2 d matrix new dense object matrix2 d dim 2 double values get double values for int row 0 row dim row matrix set row 0 names get row matrix set row 1 new string values row formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of the object
|
public string to string return names to string
|
returns a string representation of this argument structure
|
public object clone named args clone null try clone named args super clone if editable if mutable clone names new fast list string this names catch clone not supported exception e e print stack trace return clone
|
returns a deep copy of this object i
|
public string to string string builder sb new string builder idescriptor descriptor get meta descriptor sb append descriptor null function descriptor inamed args vars variables if vars null vars dimension 0 sb append nvariables n vars inamed args params parameters if params null params dimension 0 sb append nparameters n params return sb to string
|
returns a string representation of this function
|
public string to string if type equals interval type closed return lower bound upper bound else if type equals interval type open return lower bound upper bound else if type equals interval type leftopen return lower bound upper bound else if type equals interval type rightopen return lower bound upper bound return
|
returns a string representation of this object
|
public linear2 dset to linear vis adset linear2 dset set null try set new linear2 dset new linear1 dset marginal0 to linear vis adset marginal1 to linear vis adset catch vis adexception e e print stack trace return set
|
transforms this grid into a linear grid of the vis ad framework
|
public string to string int x length as vis adset get length 0 int y length length 1 dense object matrix2 d matrix new dense object matrix2 d x length y length list list to list for int j 0 j y length j for int i 0 i x length i matrix set i j list get i x length j formatter format new formatter format set alignment formatter center return format to title string matrix null null null null null
|
returns a string representation of this grid
|
public string to string string buffer sb new string buffer sb append lower bound get value 0 upper bound get value 0 for int i 1 i dimension i sb append x lower bound get value i upper bound get value i return sb to string
|
returns a string representation of this object
|
public string to string return new string lower bound get value 0 upper bound get value 0 x lower bound get value 1 upper bound get value 1
|
returns a string representation of this object
|
public double increment return increment
|
returns the constant increment of the grid
|
public linear ndset to linear vis adset linear ndset set null int dim dimension linear1 dset sets new linear1 dset dim for int i 0 i dim i sets i marginals i to linear vis adset try set new linear ndset create tuple type dim sets catch vis adexception e e print stack trace return set
|
transforms this grid into a linear grid of the vis ad framework
|
public string to string int length0 length 0 int length1 length 1 dense object matrix2 d matrix new dense object matrix2 d length0 length1 list ipoint2 d n list to list for int i 0 i length0 i for int j 0 j length1 j matrix set i j list get i length0 j formatter format new formatter format set alignment formatter center return format to title string matrix null null null null null
|
returns a string representation of this grid
|
public string to string string builder sb new string builder sb append multivariate normal distribution n return sb to string
|
returns a string representation of this distribution
|
public string to string string attribute string builder sb new string builder attribute mapping get name if attribute is empty sb append name attribute n attribute mapping get id if attribute is empty sb append id attribute n attribute mapping get description if attribute is empty sb append description n attribute n int length sb length if length 0 sb append no meta attributes else sb delete char at length 1 return sb to string
|
returns a string representation of this class
|
public string to string int size names size dense object matrix2 d matrix new dense object matrix2 d size 2 double params parameterized get parameter values for int i 0 i size i matrix set i 0 names get i matrix set i 1 new string params i formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of this parameter structure
|
public string to string int row 0 dense object matrix2 d matrix new dense object matrix2 d mapping size 2 iterator entry string double iterator mapping entry set iterator while iterator has next entry string double current iterator next matrix set row 0 current get key matrix set row 1 new string current get value row formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of the object
|
public object clone basic named args clone null try clone basic named args super clone if editable if mutable clone names new fast list string this names catch clone not supported exception e e print stack trace return clone
|
returns a deep copy of this object i
|
public string to string int row 0 dense object matrix2 d matrix new dense object matrix2 d mapping size 3 iterator entry string v iterator mapping entry set iterator while iterator has next entry string v current iterator next matrix set row 0 current get key object value current get value matrix set row 1 value null null new string value get class get simple name matrix set row 2 new string value row formatter format new formatter format set alignment formatter left return format to title string matrix null null null null null
|
returns a string representation of the object
|
public boolean contains value final double value return for each pair new double double procedure public boolean apply double iter key double iter value return value iter value
|
returns tt true tt if the receiver contains the specified value
|
public boolean equals object obj if obj this return true if obj instanceof abstract double double map return false final abstract double double map other abstract double double map obj if other size size return false return for each pair new double double procedure public boolean apply double key double value return other contains key key other get key value other for each pair new double double procedure public boolean apply double key double value return contains key key get key value
|
compares the specified object with this map for equality
|
private jpanel get jcontent pane if j content pane null grid bag constraints grid bag constraints new grid bag constraints grid bag constraints gridx 0 grid bag constraints fill grid bag constraints both grid bag constraints gridwidth 1 grid bag constraints gridheight 1 grid bag constraints weightx 1 0 grid bag constraints weighty 1 0 grid bag constraints gridy 0 j content pane new jpanel j content pane set layout new grid bag layout j content pane add get panel0 grid bag constraints return j content pane
|
this method initializes j content pane
|
private jbutton get panel0 if panel0 null panel0 new jbutton return panel0
|
this method initializes panel0
|
public boolean for each pair final double double procedure procedure return for each key new double procedure public boolean apply double key return procedure apply key get key
|
applies a procedure to each key value pair of the receiver if any
|
public double key of final double value final double found key new double 1 boolean not found for each pair new double double procedure public boolean apply double iter key double iter value boolean found value iter value if found found key 0 iter key return found if not found return double na n return found key 0
|
returns the first key the given value is associated with
|
public void values final double array list list list clear for each key new double procedure public boolean apply double key list add get key return true
|
fills all values contained in the receiver into the specified list
|
public reflect array array if array null array new jvstarray parent return array
|
reflect array factory
|
public object deep clone object obj jvstreflector clone new jvstreflector class loader config return clone
|
creates a copy of the object
|
static public vector eliminate duplicates vector values vector vals vector values clone java util collections sort vals vector ret vals new vector string prev string curr for java util enumeration e vals elements e has more elements curr string e next element if curr equals prev ret vals add element curr prev curr return ret vals
|
returns a vector of all values from the input vector sorted but
|
synchronized public void send emessage string recipients string subject string message throws exception this send emessage recipients subject message text plain
|
sends an e mail message standard rfc822 singlepart message using java mail api
|
public int sql execute java lang string sql syntax throws java sql sqlexception java sql statement stmt int row count 1 connection db get dbconnection stmt db create statement row count stmt execute update sql syntax return row count sql execute
|
executes the specified sql in the default db
|
synchronized public void send emessage string recipients string subject string message string content type throws exception this send emessage recipients subject message text plain null
|
sends an e mail message standard rfc822 singlepart message using java mail api
|
public void close dbconnection try dbconnection close catch sqlexception e
|
called when need to close db connection
|
public void handle error exception e java net url url string method system out println exception from xml rpc server e get message throw out a screen for the user to see jafu utility error message box exception from xml rpc server e get message
|
implement interface for errors
|
public void handle result object o java net url url string method currently because this is async no need to handle this
|
implement interface for good return
|
private void close application jafu env jafu utility log exiting application name see you back soon system exit 0
|
exit the application
|
public void finalize try dbconnection close catch sqlexception e
|
called when garbage collected
|
public int get user role level string userid throws auth exception exception int level 0 if check user and role userid admin level admin else if check user and role userid update level update else if check user and role userid browse level browse else level 0 return level
|
returns user auth level
|
public vector get user access string userid throws auth exception exception vector roles null check user valid this method may throw an exception if check user userid check that user is auth for app this method may throw an exception roles check user and app userid if roles is empty throw new auth exception the user userid is not authorized for the application application name else throw new auth exception the user userid is not valid return roles
|
check user access and return a list of valid roles
|
public boolean verify user and role string id string role throws exception return check user and role id role may throw an exception end of method
|
verifies the user and role are ok on the user role table
|
synchronized static public void log java lang string msg if the stdout stderr is sent to file don t copy the message to it it s sent to log file below if jafu env jafu environment send std out err to file system out println msg return sjb would like to send to lof file regardless whether the stdout err string file name jafu environment get log file name if file name null return log msg file name log string
|
logs the message to application level log file
|
public boolean initialize string properties file name path object object if properties file name path null system out println error properties file name is null return false if jafu properties init properties properties file name path object system out println jafu environment initialization completed for properties file name return true else return false initialize
|
any necessary initialization like reading property file
|
public string get end date time check if cancel pressed if select start date null return select end date select end time 00 else return null
|
return user selected value as dd mm yyyy 00 00 0
|
static private void log java lang string msg string file name check if use xml rpc server based logging if remote logging null tell it to not log this prevents loop if not remote prop found remote logging jafu env jafu properties get property string remote logging true default is n if remote logging null remote logging n if remote logging to lower case starts with y log to remote server via xmlrpc remote log msg else log to local file local log msg file name log msg fname
|
private method to do the actual log work
|
public string get start date time check if cancel pressed if select start date null return select start date select start time 00 else return null
|
return user selected value as dd mm yyyy 00 00 0
|
synchronized static public void log java lang string msg exception e log msg e print stack trace log string e
|
logs the message to an application level log file
|
protected void create button string label string mnemonic boolean set as default jbutton button new jbutton label if mnemonic null button set mnemonic mnemonic char at 0 button add action listener this button set action command label button panel add button if set as default this get root pane set default button button
|
creates a new button in the button panel
|
protected void add label and control string label string component control boolean add please select item label label label new label label string grid bag set constraints label label constr control panel add label control if control instanceof choice add please select item choice control insert please select string 0 grid bag set constraints control control constr control panel add control
|
adds a label and a control to the main panel
|
protected void place panels main panel set layout new border layout main panel set preferred size new dimension 300 180 can be changed by the child main panel add button panel java awt border layout south control panel set layout grid bag main panel add control panel java awt border layout center this get content pane add main panel place panels
|
places button and main panels on the main window
|
private void close application env jafu utility log exiting application name see you back soon system exit 0
|
exit the application
|
protected void menu item clicked string action command if action command equals bla bla bla else joption pane show message dialog this incorrect menu item contact stan application error joption pane warning message
|
called if an item clicked not defined by swing jafu application frame class
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.