input
stringlengths
10
828
output
stringlengths
5
107
public editable properties get properties final string path if path equals rake project helper project xml path path equals rake project helper private xml path throw new illegal argument exception attempt to load properties from a project xml file noi18 n return project manager mutex read access new mutex action editable properties public editable properties run return properties get properties path
load a property file from some location in the project
public void put properties final string path final editable properties props if path equals rake project helper project xml path path equals rake project helper private xml path throw new illegal argument exception attempt to store properties from a project xml file noi18 n project manager mutex write access new mutex action void public void run if properties put properties path props modifying path return null
store a property file to some location in the project
public astnode get root node return root node
the root node of the ast produced by the parser
public void set sanitized range offset range sanitized range this sanitized range sanitized range
set the range of source that was sanitized if any
public property provider get property provider final string path if path equals rake project helper project xml path path equals rake project helper private xml path throw new illegal argument exception attempt to store properties from a project xml file noi18 n return project manager mutex read access new mutex action property provider public property provider run return properties get property provider path
get a property provider that works with loadable project properties
public element get primary configuration data final boolean shared final string name type get primary configuration data element name shared assert name index of 1 final string namespace type get primary configuration data element namespace shared assert namespace null namespace length 0 return project manager mutex read access new mutex action element public element run synchronized modified metadata paths element el get configuration fragment name namespace shared if el null return el else no such data corrupt file return clone safely get configuration xml shared create element ns namespace name
get the primary configuration data for this project
public execution descriptor file object file object file object this file object file object return this
set file object associated with this execution typically the source file
public boolean remove raw reference final string foreign project name final string id return project manager mutex write access new mutex action boolean public boolean run try return remove raw reference0 foreign project name id false catch illegal argument exception e error manager get default notify error manager informational e return false
remove a raw reference to an artifact coming from a foreign project
public execution descriptor additional args final string additional args this additional args additional args return this
arguments that will be appended em after em the target
public execution descriptor initial args string initial args this initial args initial args return this
arguments that will be parsed and prepended em before em the target
public void put primary configuration data element data boolean shared throws illegal argument exception string name type get primary configuration data element name shared assert name index of 1 string namespace type get primary configuration data element namespace shared assert namespace null namespace length 0 if name equals data get local name namespace equals data get namespace uri throw new illegal argument exception wrong name namespace expected namespace name but was data get namespace uri data get local name noi18 n put configuration fragment data shared
store the primary configuration data for this project
public void setup process environment map string string env super setup process environment env in case we re launching jruby string jruby home ruby installation get instance get jruby home env put jruby home jruby home noi18 n env put jruby base jruby home noi18 n env put java home get java home
add settings in the environment appropriate for running jruby
public raw reference get raw reference final string foreign project name final string id return get raw reference foreign project name id false
get a particular raw reference from this project to another
public boolean is jruby set return ruby installation is jruby ruby installation get instance get ruby
returns whether the currently set interpreter is the jruby
public void add extra base directory final string property name if property name null eval get property property name null throw new illegal argument exception property name is null or such a property does not exist property name noi18 n project manager mutex write access new runnable public void run if extra base directories add property name throw new illegal argument exception already extra base directory property property name noi18 n
add extra folder which can be used as base directory in addition to
public auxiliary configuration create auxiliary configuration return new extensible metadata provider impl this
create an object permitting this project to store auxiliary configuration
private boolean is operator string name if a name contains not a single letter it is probably an operator especially if it is a short name int n name length if n 2 return false for int i 0 i n i if character is letter name char at i return false return true
return true iff the name looks like an operator name
public cache directory provider create cache directory provider return new extensible metadata provider impl this
create an object permitting this project to expose a cache directory
public rake artifact create simple rake artifact string type string location property property evaluator eval string target name string clean target name return new simple rake artifact this type location property eval target name clean target name
create a basic implementation of
public sharability query implementation create sharability query property evaluator eval string source roots string build directories string includes new string source roots length 1 system arraycopy source roots 0 includes 0 source roots length includes source roots length noi18 n string excludes new string build directories length 1 system arraycopy build directories 0 excludes 0 build directories length excludes build directories length nbproject private noi18 n return new sharability query impl this eval includes excludes
create an implementation of the file sharability query
public property provider get stock property preprovider return properties get stock property preprovider
get a property provider which defines code basedir code according to
public property evaluator get standard property evaluator return properties get standard property evaluator
get a property evaluator that can evaluate properties according to the default
private string find reference id string property string prefix string path map string string m h get standard property evaluator get properties for map entry string string e m entry set string key e get key if key starts with prefix property string v h resolve path e get value if path equals v return key substring prefix length return null
find reference id e
public string get gem if gem null string bin get ruby bin if bin null gem bin file separator gem noi18 n if new file gem is file gem null if gem null gem ruby installation find on path gem return gem
return path to the em gem em tool if it does exist
public file resolve file string filename if filename null throw new null pointer exception attempted to pass a null filename to resolve file noi18 n return property utils resolve file file util to file dir filename
find an absolute file path from a possibly project relative path
private string generate unique id string property string prefix string value property evaluator pev h get standard property evaluator if pev get property prefix property null return property int i 1 while pev get property prefix property i null i return property i
generate unique reference id for the given property base name prefix
public boolean destroy reference string reference matcher m foreign file reference matcher reference boolean matches m matches if matches m foreign file reference old matcher reference matches m matches if matches string for proj name m group 1 string id m group 2 return remove reference for proj name id true reference substring 2 reference length 1 m foreign plain file reference matcher reference if m matches return remove file reference reference return false
remove a reference to a foreign file from the project
public subproject provider create subproject provider return new subproject provider impl this
create an object permitting this project to represent subprojects
public string get ruby lib file ruby lib new file new file get ruby get parent file get parent lib noi18 n if ruby lib exists caoyuan commented new file ruby lib ruby exists noi18 n try return ruby lib get canonical path catch ioexception ioe exceptions print stack trace ioe return get jruby lib
return the lib directory for the currently chosen ruby interpreter
public string get foreign project name return foreign project name
get the name of the foreign project as referred to from this project
public string get script location value if new script location null return new script location else return project foreign project name script location to string
get absolute path location of the foreign projects build script
public string get clean target name return clean target name
get the ant target name to clean the artifact
public string get id return artifact id
get the id of the foreign projects build artifact
public string get xhi formatted return east lon get text
get the east longitude value as a string formatted to 2 decimal places
public string get xlo formatted return west lon get text
get the west longitude value as a string formatted to 2 decimal places
public string get ylo formatted return south lat get text
get the south latitude value as a string formatted to 2 decimal places
public string get yhi formatted return north lat get text
get the north latitude value as a string formatted to 2 decimal places
public double get xhi return xhi
get the current east longitude
public double get xlo return xlo
get the current west longitude
public double get yhi return yhi
get the current north latitude
public double get ylo return ylo
get the current south latitude
public void add south change listener change listener south change listener south lat add change listener south change listener
adds a listener to the south latitude text box
public void add north change listener change listener north change listener north lat add change listener north change listener
adds a listener to the north latitude text box
public void add east change listener change listener east change listener east lon add change listener east change listener
adds a listener to the east longitude text box
public void add west change listener change listener west change listener west lon add change listener west change listener
adds a listener to the west longitude text box
public void set change listener change listener listener add change listener listener
remove the default listener and add the listener
public void teleop periodic drive tank drive pad driver get y pad driver get z if pad driver get raw button 7 true arm timer get 0 0 arm timer start sol elbow set true
this function is called periodically during operator control
public void disabled periodic using joystick trigger to switch modes if auto trigger game pad get raw button 10 if auto mode 4 auto mode else auto mode 1 auto trigger true else if game pad get raw button 10 auto trigger false update message at driverstation to reflect current mode selection switch auto mode case 1 message 3 autonomous for near field break case 2 message 2 autonomous for mid field break case 3 message 1 autonomous for far field break default message do nothing in any position break
this function is called while the robot is disabled
public void autonomous periodic for int i 0 i 2 i watchdog get instance feed if kick timer get 0 0 kick timer start drive drive 0 75 0 s fire set true s latch set false s ext set true s ret set false if kick timer get 0 0 kick timer stop kick timer reset drive drive 0 5 0 timer delay 0 5
this function is called periodically during autonomous
public void teleop init watchdog get instance feed s latch set true s fire set false s ext set false s ret set true timer delay 0 2 s ext set true s ret set false kick timer reset
this function is called at the beginning of teleop
public void teleop init s latch set true s fire set false s ext set false s ret set true timer delay 0 2 s ext set true s ret set false kick timer reset
this function is called at the beginning of teleop
public request type get request type return request type
getter method for this djdoc requests code request type code
public string get api name return api name
getter method for this djdoc requests api name
public string get bunch name return bunch name
getter method for this djdoc requests package name
public object get result return result
getter method for this djdoc requests result object
public void set result object result this result result
setter method for this djdoc requests result object
public string get server info return server info
getter method of this code session info code s server info web
public session info get session info return session info this get session get attribute session info
getter method for this djdoc requests code session info code object
public void set session info session info session info this get session set attribute session info session info
setter method for this djdoc requests code session info code object
public void init filter config config
this method does nothing
public user get user return user
getter method of this code session info code s code user code object
public void destroy
this method does nothing
public action get action return action
getter method for the code action code instance of this
public void set value1 string value1 this value1 value1
the value of the first number to be anded
public void set value2 string value2 this value2 value2
the value of the second number to be anded
public bunch get bunch return bunch
getter method of the code bunch code package object last used by the
public string get parent name return bunch name
getter method for the name of this lists parent object
public item get string target name return all items get target name
this method finds a particular code item code object among this
public string get parent name return api name
getter method for the name of this lists parent object
public bunch get string target name return all bunches get target name
this method finds a particular code bunch code object among this
public boolean has hits return this favorite is empty
this method is used to determine whether this code item list code s
public boolean get has bunch hits return bunch list has hits
this method is used to check whether the last accessed api has previously
public boolean get has item hits return item list has hits
this method is used to check whether the last accessed package has
public void send response djdoc request req http servlet response res throws ioexception file file file req get result input stream in null try in new file input stream file ioutils copy in res get output stream finally if in null in close
this method directly copies the content of the file returned by the method
public object perform djdoc request req return null
this method does absolutely nothing since the list of available apis does
public object perform djdoc request req hibernate utils start session try session info session info req get session info session info set api name req get api name session info set bunch name req get bunch name has a class been hit string hit req get parameter hit if hit null hit length 0 session info hit item hit have the view preferences changed string toggle req get parameter toggle if toggle null toggle length 0 byte view byte parse byte toggle session info toggle view pref view return null finally hibernate utils close session
this method stores the names of the the currently accessed api and the
public void send response djdoc request req http servlet response res throws ioexception res send redirect req get session info get server info list bunches jspx
this method simply redirects the response to the list bunches
public void send response djdoc request req http servlet response res throws ioexception res send redirect list apis jspx
this method simply redirects the response to the list apis
public void send response djdoc request req http servlet response res throws ioexception res send redirect req get session info get server info list items jspx
this method simply redirects the response to the list items
public void set api api api this api api
setter method for this code bunch entity code s code api code
public void set items set item items this items items
setter method for the set of items of this code bunch entity code
public void add item item item this items add item
member accessor method of the set of items of this
public void set hit count int hit count this hit count hit count
setter method for this code item hit entity code s hit count
public void set type id int type id this type id type id super set type item type values type id
setter method for this code item entity code s item type id
public void set bunch bunch bunch this bunch bunch
setter method for this code item entity code s package object
public void set hit date date hit date this hit date hit date
setter method for this code item hit entity code s hit date
public void set bunches set bunch bunches this bunches bunches
setter method for the set of packages of this code api entity code
public void add bunch bunch bunch this bunches add bunch
member accessor method of the set of packages of this
public void set item item item this item item
setter method for the code item code this code item hit entity code
public void set user user user this user user
setter method for the code user code this code item hit entity code
public void set view pref byte view pref this view pref view pref
setter method for this code user vo code s view preferences
public void set type item type type this type type
setter method for this code item vo code s item type
public void toggle view pref byte mask view pref byte view pref mask
this method toggles an aspect of the users view preferences between
public void set stylesheet name string stylesheet name this stylesheet name stylesheet name
setter method for this code api vo code s stylesheet name
public void run while true monitor conf dir try thread sleep interval catch interrupted exception e break
this method performs an infinite loop in which it compares the set of
public void hit this hit count this hit date new date
this method marks this code bunch vo code as hit
public int compare to object obj bunch vo that bunch vo obj return this name compare to that name
comparison method for two code bunch vo code s
public int compare to object obj item vo that item vo obj if this type that type return this type ordinal that type ordinal else return this name compare to that name
comparison method for two code item vo code s
public void set user user entity user this user user
setter method for the code user code this code bunch hit entity code
public int get max customer return max number of customer
method is not needed