input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public long next long in range long lower bound long upper bound if upper bound lower bound throw new illegal argument exception random generator next long in range the upper bound of the random number range should be greater than the lower bound return long next double upper bound lower bound 1 lower bound
|
returns the next pseudorandom uniformly distributed code long code
|
public int next int in range int lower bound int upper bound if upper bound lower bound throw new illegal argument exception random generator next int in range the upper bound of the random number range should be greater than the lower bound return int next double upper bound lower bound lower bound
|
returns the next pseudorandom uniformly distributed code int code
|
public enumeration enumerate instances return new instance enumeration example set iterator
|
returns an instance enumeration based on an example reader
|
public string next string int length char chars new char length for int i 0 i chars length i chars i alphabet char at next int alphabet length return new string chars
|
returns a random string of the given length
|
public file get default source return default source
|
returns the default file
|
public group tree get sub group int index collection group tree all children get sub groups if index all children size return null else iterator group tree i all children iterator int counter 0 while i has next group tree current i next if counter index return current counter return null
|
returns the i th sub group
|
public attribute get attribute int index return regular attributes get index
|
returns an attribute by index
|
public instance instance int i return to weka instance example set get example i
|
returns the i th instance
|
public int random index double probs double r next double double sum 0 0d for int i 0 i probs length i sum probs i if r sum return i return probs length 1
|
returns a randomly selected integer between 0 and the length of the given
|
public void add attribute attribute attribute regular attributes add attribute
|
adds an attribute at the end of the list
|
public void add operator description operator description description operators add description
|
adds an operator to this group
|
public int num instances return example set size
|
returns the number of instances
|
public attribute get special attribute string name return special attributes get name
|
returns a special attribute by name
|
public date next date in range date start date end return new date next long in range start get time end get time
|
returns a random date between the given ones
|
public void set special attribute string name attribute attribute special attributes put name attribute
|
adds a named special attribute
|
public int get number of regular attributes return regular attributes size
|
returns the number of regular attributes
|
public jdbcproperties get properties return this properties
|
returns the jdbc properties associated with this handler
|
public boolean is fulfilled list plugins iterator i plugins iterator while i has next plugin plugin plugin i next if plugin get name equals this name plugin get version compare to this version 0 return true return false
|
returns true if the list contains a plugin with the desired name and
|
public void connect string username string passwd boolean auto commit throws sqlexception if connection null throw new sqlexception connect connection to database database url already exists if username null connection driver manager get connection database url else connection driver manager get connection database url username passwd connection set auto commit auto commit
|
establishes a connection to the database
|
public void disconnect throws sqlexception if connection null throw new sqlexception disconnect was not connected connection close connection null
|
closes the connection to the database
|
private void get root doc get root doc new file parameter service get rapid miner home src file separator com rapidminer operator
|
use only classes beneath the operator package
|
public string get necessary rapid miner version return necessary rapid miner version
|
returns the necessary rapid miner version
|
public list get plugin dependencies return plugin dependencies
|
returns the plugin dependencies of this plugin
|
public statement create statement boolean scrollable and updatable throws sqlexception if connection null throw new sqlexception could not create a statement for database url not connected statement statement null if scrollable and updatable statement connection create statement result set type scroll sensitive result set concur updatable else statement connection create statement result set type forward only result set concur read only return statement
|
create a statement where result sets will have the properties
|
public prepared statement create prepared statement string sql string boolean scrollable and updatable throws sqlexception if connection null throw new sqlexception could not create a prepared statement for database url not connected prepared statement statement null if scrollable and updatable statement connection prepare statement sql string result set type scroll sensitive result set concur updatable else statement connection prepare statement sql string result set type forward only result set concur read only return statement
|
create a prepared statement where result sets will have the properties
|
public class loader get original class loader try this archive new jar file this file url url new url file null this file get absolute path return new urlclass loader new url url catch ioexception e return null
|
returns the class loader of this plugin
|
private boolean check dependencies list plugins if rapid miner get long version compare to necessary rapid miner version 0 return false other plugins iterator i plugin dependencies iterator while i has next dependency dependency dependency i next if dependency is fulfilled plugins return false all ok return true
|
checks the rapid miner version and plugin dependencies
|
public void commit throws sqlexception if connection null connection is closed throw new sqlexception could not commit no open connection to database database url connection commit
|
makes all changes to the database permanent
|
private void get meta data try java util jar attributes atts archive get manifest get main attributes name atts get value implementation title if name null name archive get name version atts get value implementation version if version null version url atts get value implementation url vendor atts get value implementation vendor necessary rapid miner version atts get value rapid miner version if necessary rapid miner version null necessary rapid miner version 0 string dependencies atts get value plugin dependencies if dependencies null dependencies add dependencies dependencies rapid miner splash message loading name catch exception e e print stack trace
|
collects all meta data of the plugin from the manifest file
|
public void log string message int verbosity level if message null return if verbosity level min verbosity level return if message equals last message equal message count return if equal message count 0 log out println last message repeated equal message count times equal message count 0 last message message log out println prefix get time verbositylevel start verbosity level message verbositylevel end verbosity level
|
writes the message to the output stream if the verbosity level is high
|
private void log message with tree string message int verbosity level process process operator op if verbosity level min verbosity level return log message verbosity level string tree string process get root operator create marked process tree 10 here op log out println m tree string m
|
writes the message to the output stream if the verbosity level is high
|
public about box create about box frame owner image product logo string about try url url this class loader get resource meta inf about nfo if url null about tools read text file new input stream reader url open stream catch throwable e return new about box owner name version vendor vendor null vendor unknown url url null url unknown about product logo
|
creates the about box for this plugin
|
public void log final exception string message process process throwable exception boolean debug mode if fatal this min verbosity level return operator op null if process null op process get current operator if op null log tools class name wopackage exception get class occured in tools ordinal number op get apply count application of op fatal log message with tree message fatal process op else log tools class name wopackage exception get class occured fatal log message fatal if exception instanceof no bug error if debug mode log exception get message fatal exception print stack trace log out
|
writes the message and the stack trace of the exception
|
public void remove column attribute attribute string table name throws sqlexception statement st null try st connection create statement result set type forward only result set concur updatable string query alter table properties get identifier quote open table name properties get identifier quote close drop column properties get identifier quote open attribute get name properties get identifier quote close st execute query catch sqlexception e throw e finally if st null st close
|
removes the column of the given attribute from the table with name
|
protected void merge class loader plugin other merge class loaders other class loader this class loader
|
adds the urls of the given plugin to class loader of this one
|
public void print result
|
default implementation does nothing
|
private string get time return java text date format get date time instance format new date
|
returns the current system time nicely formatted
|
public void check all files file current throws exception if current is directory if current get name ends with java perform check current else file children current list files for int i 0 i children length i check all files children i
|
recursively checks all files
|
public statistics report get arg0 return arg0
|
gets the value of the arg0 property
|
public upload usage statistics response create upload usage statistics response return new upload usage statistics response
|
create an instance of
|
public void set arg0 statistics report value this arg0 value
|
sets the value of the arg0 property
|
public upload usage statistics create upload usage statistics return new upload usage statistics
|
create an instance of
|
public statistics report create statistics report return new statistics report
|
create an instance of
|
public xmlgregorian calendar get from return from
|
gets the value of the from property
|
public statistics record create statistics record return new statistics record
|
create an instance of
|
public void set from xmlgregorian calendar value this from value
|
sets the value of the from property
|
public void set report id int value this report id value
|
sets the value of the report id property
|
public string get new parent folder return new parent folder
|
gets the value of the new parent folder property
|
public void set new parent folder string value this new parent folder value
|
sets the value of the new parent folder property
|
public xmlgregorian calendar get to return to
|
gets the value of the to property
|
public void set to xmlgregorian calendar value this to value
|
sets the value of the to property
|
public string get user key return user key
|
gets the value of the user key property
|
public void set user key string value this user key value
|
sets the value of the user key property
|
public string get entry location return entry location
|
gets the value of the entry location property
|
public string get process location return process location
|
gets the value of the process location property
|
public int get execution return execution
|
gets the value of the execution property
|
public void set entry location string value this entry location value
|
sets the value of the entry location property
|
public void set process location string value this process location value
|
sets the value of the process location property
|
public void set execution int value this execution value
|
sets the value of the execution property
|
public int get failure return failure
|
gets the value of the failure property
|
public xmlgregorian calendar get execution time return execution time
|
gets the value of the execution time property
|
public void set revision number int value this revision number value
|
sets the value of the revision number property
|
public void set failure int value this failure value
|
sets the value of the failure property
|
public void set execution time xmlgregorian calendar value this execution time value
|
sets the value of the execution time property
|
public xmlgregorian calendar get first execution return first execution
|
gets the value of the first execution property
|
public process context wrapper get process context return process context
|
gets the value of the process context property
|
public void set first execution xmlgregorian calendar value this first execution value
|
sets the value of the first execution property
|
public void set process context process context wrapper value this process context value
|
sets the value of the process context property
|
public int get operator exception return operator exception
|
gets the value of the operator exception property
|
public void set job id int value this job id value
|
sets the value of the job id property
|
public void set operator exception int value this operator exception value
|
sets the value of the operator exception property
|
public void set operator name string value this operator name value
|
sets the value of the operator name property
|
public folder contents response get return return return
|
gets the value of the return property
|
public void set contents string value this contents value
|
sets the value of the contents property
|
public int get runtime error return runtime error
|
gets the value of the runtime error property
|
public void set return folder contents response value this return value
|
sets the value of the return property
|
public void set runtime error int value this runtime error value
|
sets the value of the runtime error property
|
public response get return return return
|
gets the value of the return property
|
public int get stop return stop
|
gets the value of the stop property
|
public void set return response value this return value
|
sets the value of the return property
|
public void set stop int value this stop value
|
sets the value of the stop property
|
public int get user error return user error
|
gets the value of the user error property
|
public void set apply count int value this apply count value
|
sets the value of the apply count property
|
public void set user error int value this user error value
|
sets the value of the user error property
|
public void set execution time long value this execution time value
|
sets the value of the execution time property
|
public entry response get return return return
|
gets the value of the return property
|
public string get trigger name return trigger name
|
gets the value of the trigger name property
|
public void set return entry response value this return value
|
sets the value of the return property
|
public void set trigger name string value this trigger name value
|
sets the value of the trigger name property
|
public cancel trigger response create cancel trigger response return new cancel trigger response
|
create an instance of
|
public get running processes response create get running processes response return new get running processes response
|
create an instance of
|
public process context wrapper create process context wrapper return new process context wrapper
|
create an instance of
|
public execute process cron create execute process cron return new execute process cron
|
create an instance of
|
public get process ids for job id create get process ids for job id return new get process ids for job id
|
create an instance of
|
public process stack trace element create process stack trace element return new process stack trace element
|
create an instance of
|
public check setup response create check setup response return new check setup response
|
create an instance of
|
public set global property create set global property return new set global property
|
create an instance of
|
public get process ids for job id response create get process ids for job id response return new get process ids for job id response
|
create an instance of
|
public get global property create get global property return new get global property
|
create an instance of
|
public string get parent location return parent location
|
gets the value of the parent location property
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.