input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get distances evaluation parameters scope rules epf if distances length 0 return string buffer s new string buffer int stat epf get measure c framespan get stat type fixme use seperate stats for each attr for int i 0 i distances length i s append distances i get stat stat append return s substring 0 s length 1 | gets a formatted string indicating how far apart |
public double get value string attr name distance metric return get value new attr dist pair attr name metric | gets the current value of the metric on the |
protected void set level int new level level new level | allows to set the level to whatever is passed in |
public double get distance for string name int index t get attribute index name if index 0 distances null return 0 else return distances index get average | returns the distance measure of the specified attribute name |
public redo action listener get redo action listener return redo action listener | gets an action that will redo the last undone action that hasnt been |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type el set attribute value value return el | returns an xml element for this object |
public boolean validate attribute value v return v instanceof attribute svalue string value | checks to make sure that the value can be set |
public attribute value set value element el if el get tag name ends with ellipse throw new illegal argument exception unexpected data type el get tag name else try ellipse value copy new ellipse value copy value new ellipse parse an int el x parse an int el y parse an int el width parse an int el height parse an int el rotation return copy catch bad data exception bdx throw new illegal argument exception bdx get message | sets the state of the object to the data the xml dom element |
public attribute value set value string s try string tokenizer st new string tokenizer s ellipse value copy new ellipse value copy value new ellipse integer parse int st next token integer parse int st next token integer parse int st next token integer parse int st next token integer parse int st next token return copy catch number format exception nfx throw new illegal argument exception bad get type s catch no such element exception nsex throw new illegal argument exception ellipse requires four integers s | sets the state of the object to the data the string represents |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type el set attribute x string value of value get x el set attribute y string value of value get y el set attribute width string value of value get width el set attribute height string value of value get height el set attribute rotation string value of value get rotation return el | returns an xml element for this object |
public boolean validate attribute value v return v instanceof attribute ellipse ellipse value | checks to make sure that the value can be set |
public object clone return new attribute point this | returns a clone of this attribute |
public boolean possible value of string s string tokenizer st new string tokenizer get type for int i 0 i 2 i if st has more tokens return false try integer parse int st next token catch number format exception nfx return false return st has more tokens | determines if this attribute can take the value specified |
public attribute value set value element el if el get tag name ends with bvalue throw new illegal argument exception unexpected data type not bvalue el get tag name else boolean value copy new boolean value copy value true equals ignore case el get attribute value return copy | sets the state of the object to the data the xml dom element |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type el set attribute value value true false return el | returns an xml element for this object |
public boolean validate attribute value v return v instanceof attribute bvalue boolean value | checks to make sure that the value can be set |
public int get x return value 0 | gets the x value |
public undo action listener get undo action listener return undo action listener | gets an action that will undo the last action |
public attribute value set value element el if el get tag name ends with circle throw new illegal argument exception unexpected data type el get tag name else try circle value copy new circle value copy value new circle parse an int el x parse an int el y parse an int el radius return copy catch bad data exception bdx throw new illegal argument exception bdx get message | sets the state of the object to the data the xml dom element |
public int get y return value 1 | gets the y value |
public attribute value set value string s try string tokenizer st new string tokenizer s circle value copy new circle value copy value new circle integer parse int st next token integer parse int st next token integer parse int st next token return copy catch number format exception nfx throw new illegal argument exception bad get type s catch no such element exception nsex throw new illegal argument exception ellipse requires four integers s | sets the state of the object to the data the string represents |
public boolean validate attribute value v return v instanceof attribute point point value | checks to make sure that the value can be set |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type el set attribute x string value of value get center get x el set attribute y string value of value get center get y el set attribute radius string value of value get radius return el | returns an xml element for this object |
public boolean validate attribute value v return v instanceof attribute circle circle value | checks to make sure that the value can be set |
protected void set dynamic boolean dynamic this dynamic dynamic | set this to allow the attribute to vary from frame to frame |
public string get object count accuracy if truth objects result objects 0 return undefined else return string value of 2 0 math min truth objects result objects truth objects result objects | gets the accuracy of the object counts based on number of objects in |
public string get local type int l type last index of return type substring l 1 | gets the local part of the type name |
public void set archetype attribute value archetype this archetype archetype | extra config information is information concerning the data that is not |
public boolean possible value of string s try double value of s return true catch number format exception nfx return false | determines if this attribute can take the value specified |
public attribute value get archetype return archetype | gets the config value |
public void set type string type throws bad data exception if attributes is type type this type type else throw new bad data exception cannot find attribute type type | sets the attribute type |
public void set archetype element e throws bad data exception throw new bad data exception the data type this get type does not take extended config information | sets the archetype associated with this descriptor |
public void set archetype string s throws bad data exception throw new bad data exception the data type this get type does not take extended config information | sets the archetype associated with this descriptor |
static public void set output width int w output width w | sets the width to crop to when printing out |
public object clone return new attribute prototype this | returns a clone of this attribute |
public string get object count precision if result objects 0 return undefined else if truth objects result objects return string value of double truth objects result objects else return 1 | gets the precision of the object counts based on number of objects |
public string to string return to string true true | gets the string representation of static attribute |
public boolean is composition type string s return s equals ignore case none s equals ignore case first | this allows attributes to define their own composition types in addition |
public string to string boolean verbose boolean endln string buffer buf new string buffer buf append get name append append get local type create if get archetype null get archetype instanceof extended attribute value extended attribute value eav extended attribute value get archetype string child eav get extra config string if child null buf append append child append attribute value def get default if null def buf append default string help backslashify def to string if verbose is dynamic buf append static if endln buf append n return buf to string | gets the string representation of static attribute |
public boolean validate attribute value v return v instanceof attribute number number value | checks to make sure that the value can be set |
public value span attribute value v long s long e if s e throw new illegal argument exception start cannot be after end s e value v start s end e 1 | creates a new instance of value span |
public boolean equals object obj if obj this return true else if obj instanceof value span value span that value span obj return start that start end that end value null that value null value that value value equals that value else return false | checks that the value and times are equals |
public string to string string buffer buf new string buffer long factor end start if true buf append start append append end 1 append else if factor 1 buf append factor append if value null buf append null else buf append append string help backslashify value to string append if true factor 1 buf append return buf to string | prints the value in |
public long get last return end 1 | gets the last frame |
public string get object count recall if truth objects 0 return undefined else if result objects truth objects return string value of double result objects truth objects else return 1 | gets the recall of the object counts based on number of objects in |
public object clone attribute at new attribute is dynamic at set name get name at set archetype get archetype at reset default get default at composition composition if value null if is dynamic attribute value old vals attribute value value at value new attribute value old vals length system arraycopy old vals 0 at value 0 old vals length else at value value return at | returns a clone of this attribute |
public boolean possible value of string s boolean prev num false int num count 0 for int i 0 len s length i len i char c s char at i switch character get type c case character decimal digit number case character other number if prev num if num count 4 return false prev num true break case character space separator case character paragraph separator case character line separator prev num false break default return false return num count 4 | determines if this attribute can take the value specified |
public static interface difference gets the target value return the target value public object get alpha gets the candidate object return the candidate measurable public object get beta gets the blackout value return the blackout value public object get blackout gets the value to ignore region to ignore return the don t care value public object get ignore gets information about the source media file where the object originated return the source media description public canonical file descriptor get file information | for attributes that have several different distance metrics it is often |
public boolean possible value of string s try get archetype set value s catch illegal argument exception iax return false return true | determines if this attribute can take the value specified |
public object clone return new attribute obox this | returns a clone of this attribute |
public void action performed action event event string fname event get action command object o event get source component comp null if o instanceof component comp component o comp get topmost comp thread runner new recent opener fname comp save discard or cancel if changed new thread wrapper runner | opens the specified file |
public boolean is short circuit return false | tells the filter whether to apply short circuiting |
public boolean possible value of element e if e get tag name null return true try get archetype set value e catch illegal argument exception iax return false return true | tests to see if the given dom element is |
public void run swing utilities invoke later runner | invokes the thread in process during the next run of the ui loop |
public action listener get open file action listener return open listener | gets the open file action |
public attribute value set value element el if bbox equals el get local name throw new illegal argument exception unexpected data type el get tag name else try bbox copy new bbox copy value new bounding box parse an int el x parse an int el y parse an int el width parse an int el height return copy catch bad data exception bdx throw new illegal argument exception bdx get message | sets the state of the object to the data the xml dom element |
public attribute value set value element el if obox equals el get local name throw new illegal argument exception unexpected data type el get tag name else obox copy new obox try copy value new oriented box parse an int el x parse an int el y parse an int el width parse an int el height parse an int el rotation catch bad data exception bdx throw new illegal argument exception bdx get message return copy | sets the state of the object to the data the xml dom element |
public attribute value set value string s try string tokenizer st new string tokenizer s bbox copy new bbox copy value new bounding box integer parse int st next token integer parse int st next token integer parse int st next token integer parse int st next token return copy catch number format exception nfx throw new illegal argument exception bad integer value in bbox string s catch no such element exception nsex throw new illegal argument exception not enough numbers in bbox string s | sets the state of the object to the data the string represents |
public void set value string s throws bad data exception if is dynamic try if s null value get archetype set value s else value null catch string index out of bounds exception sioobx throw new bad data exception misplaced quote mark s catch illegal argument exception iax throw new bad data exception iax get message else throw new bad data exception dynamic attribute requires frame number | sets the attribute to the given string value |
public attribute value set value string s try string tokenizer st new string tokenizer s obox copy new obox copy value new oriented box integer parse int st next token integer parse int st next token integer parse int st next token integer parse int st next token integer parse int st next token return copy catch number format exception nfx throw new illegal argument exception bad integer value in obox string s catch no such element exception nsex throw new illegal argument exception not enough numbers in obox string s | sets the state of the object to the data the string represents |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type bounding box bb bounding box value el set attribute x string value of bb get x el set attribute y string value of bb get y el set attribute width string value of bb get width el set attribute height string value of bb get height return el | returns an xml element for this object sans angle brackets eg |
public element to xml document doc element el doc create element ns attributes default namespace uri attributes default namespace qualifier get type oriented box ob oriented box value el set attribute x string value of ob get x el set attribute y string value of ob get y el set attribute width string value of ob get width el set attribute height string value of ob get height el set attribute rotation string value of ob get rotation return el | returns an xml element for this object sans angle brackets eg |
public attribute value get value frame span span int frame if is dynamic attribute value values attribute value value if null values return null else return values frame span beginning else return attribute value value | gets the value at a specific frame |
public void set target object count int i truth objects i | sets the number of target objects |
public void set candidate object count int i result objects i | sets the number of candidate objects |
public void set frame count int i frame count i | sets the number of frames in the video |
public void set descriptor configs descriptor configs cfgs desc cfg info cfgs | sets the descriptor schema associated with this holder |
public boolean is empty if beg end mask null for int i 0 i mask length i if mask i 0 return false return true | tests to see if there are any frames in this frame span |
public string get sourcefile name return filename | gets the name of the file this metadata describes |
public void set sourcefile name string s filename s | sets the source file name |
public boolean equals frame span other if beg other beg end other end return false else if this contiguous other contiguous return true else try for int i 0 i mask length i if mask i other mask i return false catch array index out of bounds exception aioobx return false return true | tests the equality of two frame spans |
public string to string string temp get flattened data to string return desc cfg info n n temp | gets the data in gtf format |
public equivalencies get map return holder get map | gets the map of the parent descriptor data that holds the information for |
public boolean intersects frame span other int current math max other beg beg int finish math min other end end if current finish return false else if this contiguous other contiguous return true else while current finish if contains frame current other contains frame current return true current return false | tests to see if code this code span intersects with the other |
public void set map equivalencies map holder set map map | sets the map of the parent descriptor data that holds the information for |
public iterator get values frame span span if is dynamic return new dynamic value iterator value span else return new static value iterator get static value span | gets an iterator over all values at all frames times returning |
public void parse data list all files rule holder limits parse data new vreader all files data limits | reads in descriptor data from the specified list of files with the |
public void set static value attribute value v throws bad data exception if get archetype validate v throw new bad data exception not a valid value for get name v if is dynamic throw new unsupported operation exception dynamic attributes must specify a frame for the value to set value v | sets the value of this static attribute |
public attribute value get static value if is dynamic throw new unsupported operation exception dynamic attributes must specify a frame for the value to get else return attribute value value | gets the value of this static attribute |
public void intersect with frame span other frame span f if other null f new frame span else f this intersect other beg f beg end f end mask f mask contiguous f contiguous | removes all frames in this frame span not present |
public iterator get nodes by type string type string name return new except iterator new only named this type name null this iterator | returns the first descriptor in the list with the specified category and |
public iterator get nodes by type string type string name equivalencies map return new except iterator new only named this type name map this iterator | returns the first descriptor in the list with the specified category and |
public int size return beg end 0 end beg 1 | returns the total number of frames included in the span |
public boolean check object o descriptor curr descriptor o return curr get category equals type curr named name map null map eq name curr get name map eq curr get name name | checks to see if the descriptor is of the |
public object clone frame span f new frame span f beg beg f end end if mask null f mask new int mask length f contiguous contiguous for int i 0 i mask length i f mask i mask i else f mask null return f | returns a copy of the frame span |
public rational get area if is dynamic return new rational poly list value area else object values object value rational total area new rational 0 for int i 0 i values length i rational plus total area poly list values i area total area return total area | gets the area of the polygon |
public rational get area of intersection with attribute polygon other if other null value null other value null return new rational 0 poly list my boxes poly list their boxes if is dynamic my boxes poly list object value 0 else my boxes poly list value if other is dynamic their boxes poly list object other value 0 else their boxes poly list other value poly list inters my boxes get intersection their boxes if inters null return new rational 0 else return inters area | gets the area of the polygon shared with the other polygon |
public list get ids linked list id list new linked list for iterator iter this iterator iter has next object id descriptor iter next get id if id instanceof collection id list add all collection id else id list add id return id list | gets a flattened list of all ids |
public void set map equivalencies map this map map | sets the equivalency map of the list |
public boolean coincide frame span other int tolerance return other beg beg tolerance other beg beg tolerance other end end tolerance other end end tolerance | determines if this span and anothers bounds are within a certain |
public set get attrib names hash set names new hash set attrs size for int i 0 i attrs size i names add attribute prototype attrs get i get name return names | gets the names of all attributes instances of this descriptor type may |
public attribute prototype get attribute prototype string name for int i 0 i attrs size i if attribute prototype attrs get i get name equals name return attribute prototype attrs get i throw new no such element exception descriptor does not have attribute name | gets that specification for the attribute with the given name |
public double overlap frame span other return double intersect other num frames double num frames | calculates the overlap of another frame span with this one |
public void add attribute string name string type throws bad data exception attribute prototype temp attribute prototype create attribute prototype type name get type equals ignore case object attrs add temp | adds a new attribute with the given type information |
public int num frames if end beg return 0 else if contiguous return end beg 1 else int count 0 for int i 0 i mask length i if mask i 0x ffffffff count 32 else for int j 0 j 32 j 4 count quickener mask i j 15 return count | counts the number of active frames in this frame span |
public boolean is short circuit return true | tells the filter whether to apply short circuiting |
public void add attribute attribute prototype ap attrs add ap | adds the given attribute type |
public boolean contains frame int frame number if frame number 0 end beg return false int major frame number 5 int minor frame number 0x1 f if major beg 5 major end 5 return 0 mask major beg 5 1 minor return false | tests to see if a given frame is contained in this frame span |
public string to string string buffer sb new string buffer append get category sb append append get name for iterator iter attrs iterator iter has next attribute prototype curr attribute prototype iter next sb append n append curr to string object equals get category false return sb append n to string | gives the prototype in gtf format |
public int extents frame span other return beg other beg other beg beg beg other beg end other end other end end end other end | returns the sum of the absolute values of the differences between the |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.