Download annotations/annotation_32/function_info.json from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 12.7 kB
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_32/function_info.json
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_32/function_info.json
-
curl -L -o function_info.json https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_32/function_info.json
12.7 kB
| [ | |
| { | |
| "function_name": "get_all_rankings", | |
| "file_path": "current_file.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance", | |
| "functionality": "Checks if an object is an instance of a specified class or a tuple of classes.", | |
| "input": "path (object), pd.DataFrame (class or tuple of classes)", | |
| "output": "bool", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "shape", | |
| "functionality": "Returns a tuple representing the dimensions of the DataFrame. The [0] accesses the number of rows.", | |
| "input": "path (pandas DataFrame)", | |
| "output": "tuple (then int)", | |
| "location_or_namespace": "pandas" | |
| }, | |
| { | |
| "function_call_name": "read_df", | |
| "functionality": "Reads data from a pandas DataFrame and prepares it for ranking generation.", | |
| "input": "dataframe (pandas.DataFrame), columns (list[str])", | |
| "output": "", | |
| "location_or_namespace": "ranking_util/basestuff.py" | |
| }, | |
| { | |
| "function_call_name": "read_csv", | |
| "functionality": "Reads a comma-separated values (CSV) file into a pandas DataFrame.", | |
| "input": "path (str)", | |
| "output": "pandas.DataFrame", | |
| "location_or_namespace": "pandas" | |
| }, | |
| { | |
| "function_call_name": "read_file", | |
| "functionality": "Reads data from a CSV file and prepares it for ranking generation.", | |
| "input": "file (str), columns (list[str])", | |
| "output": "", | |
| "location_or_namespace": "ranking_util/basestuff.py" | |
| }, | |
| { | |
| "function_call_name": "initialize", | |
| "functionality": "Initializes the TwoD utility for generating rankings, managing the generation of permutations corresponding to projections on different vectors.", | |
| "input": "None", | |
| "output": "None", | |
| "location_or_namespace": "ranking_util/TwoD.py" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates an immutable sequence of numbers, commonly used for looping a specific number of times.", | |
| "input": "start (int), stop (int)", | |
| "output": "range object", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "GetNext", | |
| "functionality": "Returns the next ranking (r_), a swap index (j) that transformed the current ranking, and a theta value.", | |
| "input": "None", | |
| "output": "tuple (list[int], int, float)", | |
| "location_or_namespace": "ranking_util/TwoD.py" | |
| }, | |
| { | |
| "function_call_name": "deepcopy", | |
| "functionality": "Creates a new compound object (list) recursively copying its contents, ensuring that changes to the copy do not affect the original.", | |
| "input": "r_ (list)", | |
| "output": "list", | |
| "location_or_namespace": "copy" | |
| }, | |
| { | |
| "function_call_name": "append", | |
| "functionality": "Adds an item to the end of a list.", | |
| "input": "item (any type)", | |
| "output": "None", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "print", | |
| "functionality": "Prints the specified objects to the standard output.", | |
| "input": "count (int), len(R) (int)", | |
| "output": "None (prints to stdout)", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Returns the number of items in an object.", | |
| "input": "iterable (list)", | |
| "output": "int", | |
| "location_or_namespace": "builtins" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "find_fair_ranking", | |
| "file_path": "current_file.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "isinstance", | |
| "functionality": "Checks if an object is an instance of a specified class or a tuple of classes.", | |
| "input": "path (object), pd.DataFrame (class or tuple of classes)", | |
| "output": "bool", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "values", | |
| "functionality": "Returns a NumPy representation of the given Series or Index.", | |
| "input": "path[sens_attr_col] (pandas Series)", | |
| "output": "numpy", | |
| "location_or_namespace": "pandas" | |
| }, | |
| { | |
| "function_call_name": "list", | |
| "functionality": "Returns a new list initialized from the elements of an iterable.", | |
| "input": "iterable", | |
| "output": "list", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "read_csv", | |
| "functionality": "Reads a comma-separated values (CSV) file into a pandas DataFrame.", | |
| "input": "path (str)", | |
| "output": "pandas.DataFrame", | |
| "location_or_namespace": "pandas" | |
| }, | |
| { | |
| "function_call_name": "Counter", | |
| "functionality": "A dict subclass for counting hashable objects.", | |
| "input": "G (list)", | |
| "output": "collections.Counter object", | |
| "location_or_namespace": "collections" | |
| }, | |
| { | |
| "function_call_name": "min", | |
| "functionality": "Returns the smallest item in an iterable or the smallest of two or more arguments. Used here with a key function to find the key with the minimum value.", | |
| "input": "iterable (Counter object), key (function)", | |
| "output": "object (key with minimum value)", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Returns the number of items in an object.", | |
| "input": "iterable (list)", | |
| "output": "int", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "default_timer", | |
| "functionality": "Returns the value (in fractional seconds) of a performance counter, providing a high-resolution time source.", | |
| "input": "None", | |
| "output": "float", | |
| "location_or_namespace": "timeit" | |
| }, | |
| { | |
| "function_call_name": "get_all_rankings", | |
| "functionality": "Generates a set of rankings (permutations of data item indices) and associated data, used as candidates for fair ranking evaluation.", | |
| "input": "path (str or pandas.DataFrame), columns (list[str]), G (list), number_of_buckets (int)", | |
| "output": "R (list[list[int]]), Theta (list[float]), swap_index (list[int])", | |
| "location_or_namespace": "current_file.py" | |
| }, | |
| { | |
| "function_call_name": "unique", | |
| "functionality": "Finds the unique elements of an array.", | |
| "input": "G (list)", | |
| "output": "numpy.ndarray", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "tolist", | |
| "functionality": "Returns the array as a (possibly nested) list.", | |
| "input": "numpy.ndarray", | |
| "output": "list", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "enumerate", | |
| "functionality": "Returns an enumerate object, which yields pairs containing a count (from start, which defaults to 0) and a value obtained from iterating over an iterable.", | |
| "input": "iterable", | |
| "output": "enumerate object", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "defaultdict", | |
| "functionality": "A dictionary subclass that calls a factory function to supply missing values for requested keys.", | |
| "input": "list (factory function)", | |
| "output": "collections.defaultdict object", | |
| "location_or_namespace": "collections" | |
| }, | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates an immutable sequence of numbers, commonly used for looping a specific number of times.", | |
| "input": "stop (int) or start (int), stop (int)", | |
| "output": "range object", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "count", | |
| "functionality": "Returns the number of times a specified value occurs in a list.", | |
| "input": "key (any type)", | |
| "output": "int", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "comb", | |
| "functionality": "Calculates the number of combinations (n choose k) without repetition.", | |
| "input": "n (int), k (int)", | |
| "output": "float", | |
| "location_or_namespace": "scipy.special" | |
| }, | |
| { | |
| "function_call_name": "append", | |
| "functionality": "Adds an item to the end of a list.", | |
| "input": "item (any type)", | |
| "output": "None", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "print", | |
| "functionality": "Prints the specified objects to the standard output.", | |
| "input": "count (int), len(R) (int)", | |
| "output": "None (prints to stdout)", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "max", | |
| "functionality": "Returns the maximum of an array or maximum along an axis.", | |
| "input": "array_like (list of probabilities)", | |
| "output": "float", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "min", | |
| "functionality": "Returns the minimum of an array or minimum along an axis. In this context, used as a NumPy function.", | |
| "input": "array_like (list of probabilities)", | |
| "output": "float", | |
| "location_or_namespace": "numpy" | |
| }, | |
| { | |
| "function_call_name": "index", | |
| "functionality": "Returns the index of the first occurrence of a value in the list.", | |
| "input": "value (float)", | |
| "output": "int", | |
| "location_or_namespace": "builtins" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "query", | |
| "file_path": "current_file.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "range", | |
| "functionality": "Generates an immutable sequence of numbers, commonly used for looping a specific number of times.", | |
| "input": "stop (int)", | |
| "output": "range object", | |
| "location_or_namespace": "builtins" | |
| }, | |
| { | |
| "function_call_name": "bisect", | |
| "functionality": "Returns an insertion point for item x in list a to maintain sorted order, where x comes before (to the left of) any existing entries of x.", | |
| "input": "a (list), x (float)", | |
| "output": "int", | |
| "location_or_namespace": "bisect" | |
| }, | |
| { | |
| "function_call_name": "len", | |
| "functionality": "Returns the number of items in an object.", | |
| "input": "iterable (list)", | |
| "output": "int", | |
| "location_or_namespace": "builtins" | |
| } | |
| ] | |
| } | |
| ] |