input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
private object alloc object from free list int size object vtable heap address addr alloc from free list size if addr is null not enough space in free list try a gc collect addr alloc from free list size if addr is null need to allocate new block of memory return null addr heap address addr offset object layout obj header size addr offset object layout vtable offset poke heap address address of vtable if flip addr offset object layout status word offset poke4 object layout gc bit return addr as object | try to allocate an object from the free list |
public object allocate object align8 int size object vtable throws out of memory error heap current heap address heap current offset object layout obj header size align 3 offset object layout obj header size return allocate object size vtable | allocate an object such that the first field is 8 byte aligned |
public object allocate array align8 int length int size object vtable throws out of memory error negative array size exception heap current heap address heap current offset object layout array header size align 3 offset object layout array header size return allocate array length size vtable | allocate an array such that the elements are 8 byte aligned |
public int compare to jq compiled code that code address ip this get ip code address start that get start if start difference ip 0 return 1 if start offset that get length difference ip 0 return 1 return 0 | compare this instruction pointer to a compiled code object |
public int compare to instruction pointer that if this ip difference that ip 0 return 1 if this ip difference that ip 0 return 1 return 0 | compare this instruction pointer to another instruction pointer |
public int compare to java lang object that if that instanceof jq compiled code return compare to jq compiled code that else return compare to instruction pointer that | compares this instruction pointer to the given object |
public boolean equals jq compiled code that code address ip this get ip code address start that get start if ip difference start 0 return false if ip difference start offset that get length 0 return false return true | returns true if this instruction pointer refers to a location |
public boolean equals instruction pointer that return this ip difference that ip 0 | returns true if this instruction pointer refers to the same location |
public boolean equals object that if that instanceof jq compiled code return equals jq compiled code that else return equals instruction pointer that | compares this instruction pointer with the given object |
public int compare to heap pointer that if this ip difference that ip 0 return 1 if this ip difference that ip 0 return 1 return 0 | compare this heap pointer to another heap pointer |
public int compare to java lang object that return compare to heap pointer that | compares this heap pointer to the given object |
public boolean equals heap pointer that return this ip difference that ip 0 | returns true if this heap pointer refers to the same location |
public boolean equals object that return equals heap pointer that | compares this heap pointer with the given object |
public void reset mode nowrap decode blocks decode header total in total out 0 input reset output window reset dyn header null litlen tree null dist tree null is last block false adler reset | resets the inflater so that a new stream can be decompressed |
private boolean decode dict while needed bits 0 int dict byte input peek bits 8 if dict byte 0 return false input drop bits 8 read adler read adler 8 dict byte needed bits 8 return false | decodes the dictionary checksum after the deflate header |
private boolean decode chksum throws data format exception while needed bits 0 int chk byte input peek bits 8 if chk byte 0 return false input drop bits 8 read adler read adler 8 chk byte needed bits 8 if int adler get value read adler throw new data format exception adler chksum doesn t match integer to hex string int adler get value vs integer to hex string read adler mode finished return false | decodes the adler checksum after the deflate stream |
public void set dictionary byte buffer set dictionary buffer 0 buffer length | sets the preset dictionary |
public void set dictionary byte buffer int off int len if needs dictionary throw new illegal state exception adler update buffer off len if int adler get value read adler throw new illegal argument exception wrong adler checksum adler reset output window copy dict buffer off len mode decode blocks | sets the preset dictionary |
public void set input byte buf int off int len input set input buf off len total in len | sets the input |
public boolean needs input return input needs input | returns true if the input buffer is empty |
public boolean needs dictionary return mode decode dict needed bits 0 | returns true if a preset dictionary is needed to inflate the input |
public boolean finished return mode finished output window get available 0 | returns true if the inflater has finished |
public int get adler return needs dictionary read adler int adler get value | gets the adler checksum |
public int get total out return total out | gets the total number of output bytes returned by inflate |
public int get total in return total in get remaining | gets the total number of processed compressed input bytes |
public int get remaining return input get available bytes | gets the number of unprocessed input |
public void end output window null input null dyn header null litlen tree null dist tree null adler null | frees all objects allocated by the inflater |
protected void finalize throws throwable exists only for compatibility super finalize | finalizes this object |
public void wait on semaphore if this semaphore 0 this semaphore system interface init semaphore todo integrate waiting on a semaphore into the scheduler for int rc system interface wait for single object this semaphore 10 timeout if rc system interface wait timeout thread yield continue else if rc 0 return else system interface debugwriteln bad return value from wait for single object rc | create a semaphore if there isnt one already and wait on it |
public void release semaphore if this semaphore 0 this semaphore system interface init semaphore system interface release semaphore this semaphore 1 | create a semaphore if there isnt one already and release it |
public jq thread get current thread return current thread | returns the jq thread that is currently running on this native thread |
public code allocator get code allocator return my code allocator | get the native thread local code allocator |
public heap allocator get heap allocator return my heap allocator | get the native thread local heap allocator |
public jq thread get current java thread return current thread | get the currently executing java thread |
public void resume system interface resume thread thread handle | starts up resumes this native thread |
public void suspend system interface suspend thread thread handle | suspends this native thread |
public boolean get context jq register state r return system interface get thread context pid r | gets context of this native thread and puts it in r |
public boolean set context jq register state r return system interface set thread context pid r | sets context of this native thread to r |
public void thread switch jq thread t1 this current thread t1 was preempted true if trace system interface debugwriteln timer interrupt in native thread this java thread t1 switch thread assert unreachable | thread switch based on a timer or poker interrupt |
public void yield current thread jq thread t1 this current thread if t1 this scheduler thread the scheduler thread is trying to yield this occurs when there is contention on a monitor that the scheduler thread uses e g the monitor for the transfer queue the scheduler thread doesn t have anyone to yield to so we just return which will cause us to busy wait t1 enable thread switch assert assert t1 is thread switch enabled return t1 was preempted false if trace system interface debugwriteln explicit yield in native thread this java thread t1 switch thread assert unreachable | thread switch based on explicit yield |
public boolean is compatible long tgt profile id long src profile id boolean compatible false try profile profile profile util fetch by primary key tgt profile id list profile matches get matches profile false src profile id compatible matches null matches is empty catch exception e log error e get message return compatible | this method checks if two profiles are compatible |
private string to proper csv string input csv if validator is null input csv input csv equals ignore case 0 return string pool blank string buffer sb new string buffer string parts input csv split sb append parts 0 for int i 1 i parts length i string part parts i sb append sb append part return sb to string | removes all unwanted commas |
public boolean is primitive return this roles is empty | proxy model is primitive if his set of roles is empty |
private void check clash for term t terms string op t get operator if op null op equals reasoner constants not if terms contains t get first subterm this is clashed true | checks this node for clashes e |
public edge type get edge type int p id int c id for tableau edge e edges values if e child id c id e parent id p id return e type return null | returns the particular relation between one parent and one child node |
public boolean in terms of int id term t set term temp new tree set term temp add t set term terms1 apply intersection rule temp set term terms2 get terms id for term t1 terms1 if terms2 contains t1 return false return true | use this instead of |
private void create result label ct ctsim result ct sim result ctsim result sim result string result text span style font size 20 color 286 ea0 similarity between ct sim result get search concept get uri get fragment and ct sim result get target concept is ct sim result get value 100 span result label ct set text view component add sim cat markup result text result label ct set visible true | creates a label for visualizing similarity scores compared to one single |
public jlabel get label string background color selected 286ea0 ffffff return new jlabel html head body bgcolor background color get mark up body html | retrieves the label for visualizing the contained context element |
public void jump to string element name try description pane set page help url element name catch ioexception e todo exception handling | displays the according help item |
protected string get mark up string text uitranslator get translator get translation context elem name return selected font color ffffff text font text | the formatted name of the context element |
public void server start queued thread pool thread pool new queued thread pool thread pool set min threads 5 this server set thread pool thread pool try this server start this server join logger debug debug is enabled catch exception e | starts the server |
public void server stop try this server stop catch exception e | stops the server |
public void set server handler sim cat handler handler this server set handler org eclipse jetty server handler handler | assigns a jetty7 handler to the server |
public void process input stream request output stream response throws saxexception ioexception reasoner process request response | parses the requests elements and starts operations corresponding to different request tags |
public void handle string target request base request http servlet request request http servlet response response throws ioexception servlet exception base request set handled true try response set content type text xml this controller process request get input stream response get output stream catch exception e e print stack trace | implements a simple server handler needed for sim cat processes |
public string get edge name long p id long c id for tableau edge e edges if e child id c id e parent id p id return e name return null | returns the name of a directional edge |
public boolean in terms of long id term t set term temp new tree set term temp add t set term terms1 apply intersection rule temp set term terms2 get terms id for term t1 terms1 if terms2 contains t1 return false return true | use instead of get terms id |
private void create result label ct ctsim result ct sim result ctsim result sim result string result text span style font size 20 color 286 ea0 similarity between ct sim result get search concept get iri get fragment and ct sim result get target concept is ct sim result get value 100 span result label ct set text sim cat2 view component add sim cat markup result text result label ct set visible true | creates a label for visualizing similarity scores compared to one single |
public sim cat version info get version info if vinfo null vinfo new sim cat version info return vinfo | method for the current version of the sim cat dl reasoner |
private concept optimize number restrictions in concept concept concept array list unqualified number restriction number restrictions find number restrictions in concept concept array list tuple replacements find number restrictions replacements number restrictions return replace number restrictions in concept concept replacements | rewriting rule 4 |
public document create xmldocument input stream in throws jdomexception ioexception reader in reader new input stream reader in return builder build in reader | parses the server request into a jdom document |
public void release kb string uri while in use in use true uuid kbmapping remove uri in use false | releases a specified knowledge base |
public knowledge base get uuid kbby uri string uri while in use in use true if uuid kbmapping contains key uri in use false return null knowledge base kb uuid kbmapping get uri kb set last access date system current time millis in use false return kb | retrieves the knowledge bases uuid mappings |
private sim cat version info get version info if vinfo null vinfo new sim cat version info return vinfo | assembles a response that knowledge base has been created and provides its uuid |
protected element add element document doc string tag element parent element element doc create element tag parent append child element return element | appends a new element to a given parent element in the current document |
public document build release kbresponse document doc new document impl element root doc create element response doc append child root root set attribute xmlns server constants namespace root set attribute xmlns xsi server constants xsi root set attribute ns server constants xsi xsi schema location server constants namespace server constants schema add element doc server constants ok root return doc | assembles a response that the knowledge base has been released |
public document build tells response document doc new document impl element root doc create element response doc append child root root set attribute xmlns server constants namespace root set attribute xmlns xsi server constants xsi root set attribute ns server constants xsi xsi schema location server constants namespace server constants schema add element doc server constants ok root return doc | assembles a tell response |
public void server start bounded thread pool thread pool new bounded thread pool thread pool set min threads 5 this server set thread pool thread pool try this server start this server join logger debug debug is enabled catch exception e | starts the server |
public void set server handler sim cat handler handler this server set handler org mortbay jetty handler handler | assigns a jetty6 handler to the server |
public void delete direct sub node concept taxonomy node sub node direct sub nodes remove sub node sub node direct super nodes remove this | this method removes a sub node from the list of direct sub nodes |
private boolean contains concept concept subsumption concept defining concept if subsumption instanceof intersection return intersection subsumption get first concepts are equal defining concept intersection subsumption get second concepts are equal defining concept return subsumption concepts are equal defining concept | checks if subsumptions is already in the definition of definig concept |
public named concept get concept string name for iterator concepts iterator concepts iterator concepts iterator has next concept con concept concepts iterator next if con instanceof named concept named concept con get name equals name return named concept con return null if there is no concept with given name return null | get a concept by name |
public boolean is sub node of concept taxonomy node node if get all super nodes contains node return true return false | this method checks whether the given node is a super node |
public tuple add unequal pair tuple tuple if is unequal tuple individual pairs add tuple return tuple | sets the unequalityvalue in the matrix |
public concept taxonomy node create topnode concept top new named concept server constants top concept taxonomy node node new concept taxonomy node top nodes add new tuple top node return node | this method creates the top node for this taxonomy |
public concept taxonomy node create bottomnode concept bottom new named concept server constants bottom concept taxonomy node node new concept taxonomy node bottom nodes add new tuple bottom node return node | this method creates the bottom node for this taxonomy |
private concept taxonomy node add node concept concept concept taxonomy node node new concept taxonomy node concept nodes add new tuple concept node return node | this method creates a new node and adds it to the concept taxonomy |
public boolean contains node concept concept for tuple tuple nodes if concepts are equal concept tuple get first element concept return true return false | this method checks whether a concept is contained in the |
public abox get abox return a box | this method returns the abox of a knowledge base |
public void delete direct sub node concept taxonomy node old sub node direct sub nodes remove sub node sub node direct super nodes remove this | this method removes a sub node from the list of direct sub nodes |
public tbox get tbox return t box | this method returns the tbox of a knowledge base |
public tbox get normalized tbox return normalized tbox | this method returns the normalized tbox of a knowledge base |
public void set tbox tbox box concept taxonomy null role graph null t box box | this method sets the tbox of a knowledge base |
public concept taxonomy node get node concept concept for tuple tuple nodes if concepts are equal concept tuple get first element concept return concept taxonomy node tuple get second element return add node concept | this method returns a node to a given concept |
public concept taxonomy node get top return top node | getter for the top node |
public void set normalized tbox tbox normalized tbox this normalized tbox normalized tbox | this method sets the normalized tbox of a knowledge base |
public void add equivalent node concept taxonomy node old node equivalents add node | this method adds an equivalent node |
public concept taxonomy node get bottom return bottom node | getter for the bottom node |
public concept taxonomy node old create topnode concept top new named concept server constants top concept taxonomy node old node new concept taxonomy node old top nodes add new tuple top node return node | this method creates the top node for this taxonomy |
public boolean is sub node of concept taxonomy node old node if get all super nodes contains node return true return false | this method checks whether the given node is a super node |
public concept taxonomy node old create bottomnode concept bottom new named concept server constants bottom concept taxonomy node old node new concept taxonomy node old bottom nodes add new tuple bottom node return node | this method creates the bottom node for this taxonomy |
private concept taxonomy node old add node concept concept concept taxonomy node old node new concept taxonomy node old concept top node nodes add new tuple concept node return node | this method creates a new node and adds it to the concept taxonomy |
public void hide is hidden true | this method hides this node |
public concept taxonomy node old get node concept concept for tuple tuple nodes if concepts are equal concept tuple get first element concept return concept taxonomy node old tuple get second element return add node concept | this method returns a node to a given concept |
public concept taxonomy node old get top return top node | getter for the top node |
public concept taxonomy node old get bottom return bottom node | getter for the bottom node |
public void set knowledge base knowledge base kb this kb kb | set the knowledge base that has been used with this similarity operation |
public result concept get concept string concept name for iterator result concept iter concepts iterator iter has next result concept c iter next if c get concept name equals concept name return c return null | retrieves the concept with the specified name from this rank |
public void set similarity ranking ccsimilarity result sim ranking this sim ranking sim ranking | set the ranking that has been computed from the similarity request |
public void submit context logger log similarity operation this | submit the similarity operation to the context logger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.