input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public boolean create string dir name string command new string 5 command 0 svnadmin command 1 create command 2 fs type command 3 fsfs command 4 dir name boolean result run command command return result create
|
create a new repository filetree i
|
public void test exists throws exception check out test dir assert true test dir is unknown rep get command output rep exists checked out dir name assert false unknown dir exists rep exists thing thing thing
|
check test exists
|
public boolean is modified string file name string status string status file name if debug out prln status string if status string null status string starts with m return true else return false is modified
|
use the repositorys status command to figure out if the file has been
|
public boolean is out of date string file name string status string status file name if status string null return false char update flag status string char at 7 if debug out prln update flag if debug out prln status string if update flag return true else return false is out of date
|
use the repositorys status command to figure out if the file is
|
public boolean is unknown string file name string status string status file name if debug out prln status string if debug out prln get command output if status string null get command stderr index of not a working copy 0 if status string null get command stderr contains not a working copy return true else return false is unknown
|
use the repositorys status command to figure out if the file is
|
public boolean exists string module name list com new array list com add get command name com add ls com add get root module name string com array string com to array new string com size boolean result run command com array return result exists
|
check for the existence of a module i
|
public void tear down files rmdir checked out dir assert false checked out dir exists checked out dir get path checked out dir exists if debug out prln tear down has deleted checked out dir get path files rmdir new root dir assert false new root dir exists new root dir get path new root dir exists tear down
|
delete any checked out files
|
protected boolean add sandbox impl file location isvnauthentication manager auth manager do we know it already string id get sandbox id location if sandbox map get id null return false already managed add it sandbox sandbox new sandbox auth manager config dir sandbox map put id sandbox return true
|
add a new sandbox
|
public repository check out test dir throws exception boolean checkout result rep checkout checked out dir name assert true test dir not checked out rep get command output checkout result assert true checked out dir exists checked out dir is directory return rep check out test dir
|
helper function for external users of this class
|
public void check cancelled throws svncancel exception sandbox check cancelled
|
delegate check cancelled back to the sandbox
|
public boolean is sandbox dir file sb dir is it a dir if sb dir is directory return false is it under svn control file sb svndir new file sb dir svn if sb svndir is directory return false return true is sandbox dir fsr
|
check that a file points to a valid sandbox on disk
|
public void forget sandbox file sb dir sandbox sb sandbox map remove get sandbox id sb dir if sb null sb close forget sandbox file
|
forget a sandbox
|
public sandbox get sandbox string id return sandbox map get id get sandbox fsr
|
get a sandbox from its id canonical path to the directory tree
|
public void close lock false try closed true client manager dispose finally unlock
|
close this sandbox preventing any future operations
|
public void add sandboxes list folder ids string username string password try for int i 0 i folder ids size i add sandbox new file string folder ids get i username password catch gate exception e throw new gate runtime exception e
|
this method adds a list of sandboxes to the sandbox map
|
public void shutdown log info sandbox manager shutting down for map entry string sandbox sb sandbox map entry set log info shutting down sandbox sb get key sb get value close log info shutdown complete
|
close all managed sandboxes
|
public void on history changed string s if history get token equals gwt newpage clear root panel get top page specific get element root panel get top page specific add v panel get the default message check name a page name text box set focus true
|
called when a gwt link is clicked
|
public void customize end point ep request r throws ioexception super customize ep r r set scheme http schemes https
|
tell the request that it is being served over https
|
public boolean is integral request r return true
|
we are integral
|
public void on history changed string s if history get token equals gwt upload clear root panel get top page specific get element root panel get top page specific add v panel
|
called when a gwt link is clicked
|
public void test constants int num nodes jjt node name length for int i 0 i num nodes i if i latex constants table length fail ran out of constants at jjt node name jjt node name i if jjt node name i equals latex constants table i constantname fail node name mismatch wanted jjt node name i but got latex constants table i constantname test constants
|
check la te xconstants against yam parser tree constants
|
private void page name text box keyboard event string file name char c string message message label get text if c char keyboard listener key enter if message starts with a new create file name normal
|
detect special keys like enter in the page name text box
|
public void test constants int num nodes jjt node name length for int i 0 i num nodes i if i html constants table length fail ran out of constants at jjt node name jjt node name i if jjt node name i equals html constants table i constantname fail node name mismatch wanted jjt node name i but got html constants table i constantname html headings bug html translator html translator new html translator assert true 1 equals html translator get constant start 1 test constants
|
check html constants against yam parser tree constants
|
public abstract translator test string test name super test name
|
create the test case
|
public boolean tree empty simple node n if n get start null n get end null n get body null lgr info non empty node n to string lgr info n get start end body n get start n get end n get body return false int i n jjt get num children if i 0 return true for int j 0 j i j if tree empty simple node n jjt get child j return false return true tree empty simple node
|
helper to check tree contents
|
public svnstatus do status file wc path boolean is remote throws svnexception lock false try return client manager get status client do status wc path is remote finally unlock do status
|
collects status information on local path s
|
public boolean accept file dir string name return test file pattern matcher name matches
|
accept a file if it is a yam file used in dependencies tests
|
public void do resolve file wc path boolean is recursive throws svnexception lock false try if closed throw new illegal state exception sandbox closed client manager get wcclient do resolve wc path svndepth from recurse is recursive svnconflict choice merged finally unlock do resolve
|
resolve a conflict on local path s
|
public boolean accept file dir string name return original test file pattern matcher name matches
|
accept a file if it is the original version of
|
public void revert file wc paths throws svnexception lock false try if closed throw new illegal state exception sandbox closed client manager get wcclient do revert wc paths svndepth infinity null finally unlock revert
|
revert uncommitted changes
|
public void add entry file wc path throws svnexception add entry wc path true add entry
|
puts directories and files under version control scheduling them for
|
public void add entry file wc path boolean recurse throws svnexception lock false try if closed throw new illegal state exception sandbox closed client manager get wcclient do add wc path false false false recurse svndepth infinity svndepth empty false false finally unlock add entry
|
puts directories and files under version control scheduling them for
|
public void test serialization throws exception log info dependencies tests test serialization log info testing serialization and deserialization of dependencies dependencies remove 1 dependencies dep1 dependencies get 1 add all the files in a wiki to the depencies for yam file yam wiki1 dep1 created yam dependencies serialize dependencies clear assert true dependencies removed dependencies exists 1 dependencies dep1 reloaded dependencies get 1 assert equals dependencies not consistently serialized deserialized dep1 dep1 reloaded dependencies remove 1
|
test dependencies serialization
|
public svnurl get repository url file file throws svnexception lock false try return client manager get wcclient do info file svnrevision working get url finally unlock
|
returns the url corresponding to the repository location of the given
|
public svnurl get repository root file file throws svnexception lock false try return client manager get wcclient get repos root file get repository url file svnrevision working null null finally unlock
|
returns the url of the root of the repository containing the given working
|
public void check cancelled throws svncancel exception if current operation preemptible mutex has queued threads throw new svncancel exception
|
if the current operation is preemptible and any other operations are
|
private void copy file in file out log info copying yam file from in get name to out get name try file channel ic new file input stream in get channel file channel oc new file output stream out get channel ic transfer to 0 ic size oc ic close oc close catch ioexception ioe fail failed testing while copying modified file ioe get message
|
copy one file to another
|
public void grant string repos string path get grants for repos repos true add path
|
add permission for the given repository and path to this session
|
public boolean is permitted string repos string path if is admin return true else set string grants for repos get grants for repos repos false return grants for repos null grants for repos contains path
|
check whether the current session permits access to the given repository
|
public void extract data from source object source throws persistence exception if source instanceof scriptable controller throw new unsupported operation exception get class get name can only be used for scriptable controller class get name objects n source get class get name is not a scriptable controller class get name super extract data from source source scriptable controller sc scriptable controller source corpus persistence manager get persistent representation sc get corpus control script persistence manager get persistent representation sc get control script
|
populates this persistence with the data that needs to be stored from the
|
protected void mixin globally class class to mix find the set of types into which it needs to be mixed this means the types of the first argument of each static method in the class set class types to mix into new hash set class for method method class to mix get methods if modifier is static method get modifiers method get declaring class class to mix method get parameter types length 0 types to mix into add method get parameter types 0 for class clazz types to mix into default groovy methods mixin clazz class to mix
|
mix all the static methods of the given class into their
|
public void set script running boolean b try field f groovy ui console class get declared field script running boolean a f is accessible f set accessible true f set this b f set accessible a catch exception e give up
|
this is a workaround for a strange behaviour in groovy
|
public object get variable string name if corpora equals name try return gate get creole register get all instances gate corpus catch gate exception e throw new gate runtime exception e else if docs equals name return gate get creole register get lr instances gate corpora document impl else if prs equals name return gate get creole register get pr instances else if apps equals name try return gate get creole register get all instances gate creole abstract controller catch gate exception e throw new gate runtime exception e else return super get variable name
|
overridden to intercept requests for the pseudo variables
|
public void set variable string name object value if corpora equals name docs equals name prs equals name apps equals name throw new read only property exception name this get class super set variable name value
|
overridden to enforce read only access to the pseudo variables
|
public string get output asname return output asname
|
gets name of the output annotation set
|
public string get input asname return input asname
|
gets name of the input annotation set
|
public url get script url return script url
|
gets url of the groovy script
|
public feature map get script params return script params
|
get map of parameters for the groovy script
|
public string get groovy src return groovy src
|
return the source of the loaded groovy script
|
public ex interligo filesystem trace event loading org interligo exceptions ex interligo filesystem trace level all
|
creates new code ex interligo filesystem code without detail message
|
public model element get argument return null
|
returns a list of expression that forms the arguments of the constraint
|
public model element evaluate return null
|
evaluates the constraint agains the arguments
|
public boolean same class model element elt return elt get class get name equals this get class get name
|
compares the fully qualified name of a model element with this one
|
public model element new instance try return model element clone catch exception ex ex print stack trace return null
|
gets a clone of this model element
|
public string get predicate return
|
gets a empty predicate
|
public void update long sleep until time to sleep sleep until system current time millis debug update for time to sleep start the thread if this is the first update if thread null thread new thread this alarm manager sleep end false thread start else the thread is sleeping interrupt it to update its sleeping time else debug i interrupt the thread to update its sleeping time thread interrupt
|
updates the time to sleep
|
public void restart long sleep until time to sleep sleep until system current time millis sleep end false
|
restarts the thread for a new time to sleep until
|
public void stop if thread null thread destroy
|
stops destroy the thread
|
public string to string if year 1 return next alarm for identifier at new date alarm time n string buffer sb new string buffer alarm params sb append minute sb append minute sb append hour sb append hour sb append day of month sb append day of month sb append month sb append month sb append day of week sb append day of week sb append next alarm date new date alarm time return sb to string
|
returns a string representation of this alarm
|
public int compare to object obj alarm entry entry alarm entry obj if alarm time entry alarm time return 1 if alarm time entry alarm time return 1 return 0
|
compares this alarm entry with the specified alarm entry for order
|
public void add fact model element a elt try string key a elt get predicate vector a vect of facts vector m table get key if a vect of facts null a vect of facts new vector a vect of facts add a elt new instance trace event trace engine assert a elt trace level engine trace context state m table put key a vect of facts catch exception e e print stack trace
|
adds fact in memory
|
public void add alarm alarm entry entry throws past date exception debug add a new alarm entry entry if queue add entry debug this new alarm is the top one update the waiter thread waiter update alarm entry queue first alarm time waiter update alarm entry queue get top alarm time
|
adds an alarm for a specified alarm entry
|
public boolean remove alarm alarm entry entry if queue contains entry return false if queue remove entry waiter update alarm entry queue first alarm time waiter update alarm entry queue get top alarm time return true
|
removes the specified alarm entry
|
public void remove all alarms waiter stop waiter null queue clear
|
removes all the alarms
|
public boolean contains alarm alarm entry alarm entry return queue contains alarm entry contains alarm
|
tests whether the supplied alarm entry is in the manager
|
private string generate sqlselect vector a cols variables string sql select select list iterator i a cols list iterator constructing the select clause if i has next iterating through the list of the columns for i a cols list iterator i has next sql select sql select m cols get i next index i next adding a comma if there is there another column if i has next sql select sql select return sql select if any columns are specified return select else return sql select
|
construct the select clause of an sql statement
|
public void parse throws exception ecrasement de la hashtable this clear if this file name null throw new exception le nom du fichier xml parser n est pas pr cis r cup ration du noeud root et debut du parsing domparser domparser new domparser domparser parse new input source new file reader this file name try document document domparser get document this parse nodes recursive document get document element catch exception e throw new exception erreur durant le parsing du fichier this file name
|
parsing du fichier
|
public string get err no return errno
|
give the error number see the constants
|
public void set err no string n errno n
|
set the error number see the constants
|
public void set limit int n limit big integer value of n
|
set the limit which has been broken for the parameter
|
private string buffer generate grant node list node list table throws exception
|
generate the create table statement for the sql script
|
public void reset throws ex interligo jdbc close all connections synchronized props try system out println props get property driver class for name props get property driver driver true catch exception e throw new ex interligo jdbc driver not found props get property driver catch illegal access exception e throw new sqlexception can t access driver props get property driver catch instantiation exception e throw new sqlexception can t instanciate driver props get property driver
|
reset the jdbc provider close all connections and re read properties
|
private string buffer generate comment node list node list table throws exception
|
generate the create table statement for the sql script
|
public void set driver string val props put driver val driver false
|
set the driver name this call will close all active connections
|
public void set url string val props put url val
|
set the url
|
public void set user string val props put login val
|
set the user name
|
public void set properties properties p throws sqlexception synchronized props this props put all p driver false max integer parse int p get property max timeout integer parse int p get property timeout refresh integer parse int p get property refresh chargement du driver try class for name p get property driver driver drv driver class for name props get property driver new instance driver manager register driver drv catch exception e
|
set the properties
|
public void set pass string val props put password val
|
set the user password
|
protected void load properties string a database throws ex interligo jdbc super load properties a database try set properties props catch sqlexception e throw new ex interligo jdbc
|
load properties from the xml configuration file
|
public string get database engine throws exception database engine string db engine new string xml object instanciation xml parse conf new xml parse get the engine db engine conf get text interligo xml database engine return db engine
|
get the current database engine version from the interligo configuration file
|
public connection get current connection return con
|
2001 01 10 ofeutrier set the properties
|
public void close all connections throws ex interligo jdbc ex interligo jdbc ex null for enumeration en connections elements en has more elements try connection en next element close catch sqlexception e if ex null throw ex
|
close all the active connections
|
public string get database version throws exception version string db version new string xml object instanciation xml parse conf new xml parse get the version db version conf get text interligo xml database version return db version
|
get the current database engine version from the interligo configuration file
|
public connection get current connection return current connection
|
2001 01 10 ofeutrier set the properties
|
public void init model element a goal throws ex interligo bad goal structure clear m initial goal a goal evaluate vector a vect new vector pattern handler a handler get pattern handler a goal push new history a handler new vector a vect new rules set
|
initialize the engine with the goal to reach
|
public string get profile string user id string password if user id null password null return default now its your turn to code return default
|
standard method called by user controller to retreive the profile of a user
|
public void set arg name string v this arg name v
|
set the value of arg name
|
public string get arg type return arg type
|
get the value of arg type
|
public void set arg type string v this arg type v
|
set the value of arg type
|
public int get arg arity return arg arity
|
get the value of arg arity
|
public void set arg arity int v this arg arity v
|
set the value of arg arity
|
public vector get args return args
|
get the value of args
|
public void set args vector v this args v
|
set the value of args
|
private void add script string buffer out buf out buf append t t script language javascript n out buf append t t tfunction change dir n out buf append t t tdocument forms 0 submit n out buf append t t t n out buf append t t tfunction change file f n out buf append t t t f submit n out buf append t t t n out buf append t t script n
|
needed script for navigation
|
private void add dir string buffer out buf string astr rel path string astr link list of directories if astr link null commun servlet select cat out buf path change dir astr link astr rel path else commun servlet select cat out buf path change dir astr link astr rel path new
|
add the dir navigation
|
protected void generate xml string buffer sb new string buffer if is belonged null sb append is belonged get xml if is contained null sb append is contained get xml xml sb to string
|
serializes the data from this object to the internal xml string
|
protected void analyze xml write your code here
|
extracts the data of the object from the xml string the unserialization method
|
public void load properties string n throws ioexception props load new file input stream n
|
load properties in the application property file
|
public void load properties string c string n throws ioexception try props load class for name c get resource as stream n catch class not found exception e throw new ioexception class not found c
|
use the class loader of the given class to load a properties file
|
public void set properties properties props throws sqlexception synchronized props for enumeration e props keys e has more elements object o e next element this props put o props get o try class for name props get property driver new instance catch exception e e print stack trace throw new sqlexception e to string
|
set or change the properties used for the connections
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.