id stringlengths 17 116 | task stringclasses 1
value | context_length stringclasses 1
value | documents listlengths 10 1.02k | question stringlengths 332 403 | question_with_choices stringlengths 332 403 | answer stringlengths 40 43.3k | answer_raw stringlengths 42 43.8k | n_chunks_full int64 10 61.9k | truncated bool 2
classes | repo stringlengths 7 54 | target_name stringlengths 1 72 | document_id int64 2.87k 144k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
LDU_FT/idlesign/django-admirarchy/read_file | LDU_FT | [
"<BEGIN>\n## `action_checkbox`",
"Renders checkboxes.",
" Disable checkbox for parent item navigation link.\n<END>",
"<BEGIN>\n## `hierarchy_nav`",
"Renders hierarchy navigation elements (folders).\n<END>",
"<BEGIN>\n## `get_queryset`",
"Constructs a query set.",
" :param request:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Reads a file within package directories. | "Reads a file within package directories." | 31 | false | idlesign/django-admirarchy | read_file | 141,173 | |
LDU_FT/eagleflo/mpyq/_hash | LDU_FT | [
"<BEGIN>\n## `read_table`",
"Read either the hash or block table of a MPQ archive.\n<END>",
"<BEGIN>\n## `get_hash_table_entry`",
"Get the hash table entry corresponding to a given filename.\n<END>",
"<BEGIN>\n## `extract`",
"Extract all the files inside the MPQ archive in memory.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Hash a string using MPQ's hash function. | "Hash a string using MPQ's hash function." | 16 | false | eagleflo/mpyq | _hash | 141,174 | |
LDU_FT/wilson-eft/wilson/wcxf2arrays | LDU_FT | [
"<BEGIN>\n## `alpha_s`",
"3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>",
"<BEGIN>\n## `m_b`",
"r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wcxf2arrays API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wcxf2arrays API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convert a dictionary with a Wilson coefficient
name followed by underscore and numeric indices as keys and numbers as
values to a dictionary with Wilson coefficient names as keys and
numbers or numpy arrays as values. This is needed for the parsing
of input in WCxf format. | "Convert a dictionary with a Wilson coefficient\n name followed by underscore and numeric indices as keys and numbers as\n values to a dictionary with Wilson coefficient names as keys and\n numbers or numpy arrays as values. This is needed for the parsing\n of input in WCxf format." | 216 | false | wilson-eft/wilson | wcxf2arrays | 141,175 | |
LDU_FT/manns/pyspread/libvlc_media_player_get_fps | LDU_FT | [
"<BEGIN>\n## `add_tools`",
"Adds tools from self.toolbardata to self\n<END>",
"<BEGIN>\n## `_get_button_label`",
"Gets Button label from user and returns string\n<END>",
"<BEGIN>\n## `OnButtonCell`",
"Event handler for cell button toggle button\n<END>",
"<BEGIN>\n## `OnVideoCell`",
"Event handler for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the libvlc_media_player_get_fps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the libvlc_media_player_get_fps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Get movie fps rate.
@param p_mi: the Media Player.
@return: frames per second (fps) for this playing movie, or 0 if unspecified. | "Get movie fps rate.\n @param p_mi: the Media Player.\n @return: frames per second (fps) for this playing movie, or 0 if unspecified." | 1,275 | true | manns/pyspread | libvlc_media_player_get_fps | 141,176 | |
LDU_FT/StanfordVL/robosuite/reward | LDU_FT | [
"<BEGIN>\n## `clear_objects`",
"Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>",
"<BEGIN>\n## `staged_rewards`",
"Returns staged rewards b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reward API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reward API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Reward function for the task.
The sparse reward is 0 if the peg is outside the hole, and 1 if it's inside.
We enforce that it's inside at an appropriate angle (cos(theta) > 0.95).
The dense reward has four components.
Reaching: in [0, 1], to encourage the arms to get together.
... | "Reward function for the task.\n\n The sparse reward is 0 if the peg is outside the hole, and 1 if it's inside.\n We enforce that it's inside at an appropriate angle (cos(theta) > 0.95).\n\n The dense reward has four components.\n\n Reaching: in [0, 1], to encourage the arms to get toget... | 354 | false | StanfordVL/robosuite | reward | 141,177 | |
LDU_FT/InspectorMustache/base16-builder-python/get_yaml_dict | LDU_FT | [
"<BEGIN>\n## `get_parent_dir`",
"Get the directory $level levels above $base_dir.\n<END>",
"<BEGIN>\n## `get_pystache_parsed`",
"Return a ParsedTemplate instance based on the contents of\n $mustache_file.\n<END>",
"<BEGIN>\n## `get_template_dirs`",
"Return a set of all template directories.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yaml_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yaml_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a yaml_dict from reading yaml_file. If yaml_file is empty or
doesn't exist, return an empty dict instead. | "Return a yaml_dict from reading yaml_file. If yaml_file is empty or\n doesn't exist, return an empty dict instead." | 50 | false | InspectorMustache/base16-builder-python | get_yaml_dict | 141,178 | |
LDU_FT/deifyed/vault/getTarget | LDU_FT | [
"<BEGIN>\n## `getTarget`",
"Returns a dictionary containing information about a certain target\n<END>",
"<BEGIN>\n## `insertTarget`",
"Inserts a new target into the vault database\n Returns the id of the created target\n<END>",
"<BEGIN>\n## `removeTarget`",
"Removes target information from vaul... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTarget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTarget API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | A static method which returns a Target object identified by
iid. Returns None if a Target object was not found | "A static method which returns a Target object identified by\n iid. Returns None if a Target object was not found" | 27 | false | deifyed/vault | getTarget | 141,179 | |
LDU_FT/Apitax/Apitax/driver_status | LDU_FT | [
"<BEGIN>\n## `get_driver_blacklist`",
"Retrieve the blacklist in the driver",
" Retrieve the blacklist in the driver # noqa: E501",
" :param driver: The driver to use for the request. ie. github\n :type driver: str",
" :rtype: Response\n<END>",
"<BEGIN>\n## `get_driver_config`",
"Retrieve th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the driver_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the driver_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Retrieve the status of a loaded driver
Retrieve the status of a loaded driver # noqa: E501
:param name: Get status of a driver with this name
:type name: str
:rtype: Response | "Retrieve the status of a loaded driver\n\n Retrieve the status of a loaded driver # noqa: E501\n\n :param name: Get status of a driver with this name\n :type name: str\n\n :rtype: Response" | 137 | false | Apitax/Apitax | driver_status | 141,180 | |
LDU_FT/rsheftel/raccoon/get_location | LDU_FT | [
"<BEGIN>\n## `sorted_exists`",
"For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | For an index location return a dict of the index and value. This is optimized for speed because
it does not need to lookup the index location with a search. Also can accept relative indexing from the end of
the SEries in standard python notation [-3, -2, -1]
:param location: index location in s... | "For an index location return a dict of the index and value. This is optimized for speed because\n it does not need to lookup the index location with a search. Also can accept relative indexing from the end of\n the SEries in standard python notation [-3, -2, -1]\n\n :param location: index location... | 208 | false | rsheftel/raccoon | get_location | 141,181 | |
LDU_FT/planetlabs/datalake-common/normalize_date | LDU_FT | [
"<BEGIN>\n## `list_from_url`",
"return a list of DatalakeRecords for the specified url\n<END>",
"<BEGIN>\n## `list_from_metadata`",
"return a list of DatalakeRecords for the url and metadata\n<END>",
"<BEGIN>\n## `get_time_buckets_from_metadata`",
"return a list of time buckets in which the metadata falls... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | normalize the specified date to milliseconds since the epoch
If it is a string, it is assumed to be some sort of datetime such as
"2015-12-27" or "2015-12-27T11:01:20.954". If date is a naive datetime,
it is assumed to be UTC.
If numeric arguments are beyond 5138-11-16 (100,000,000,000... | "normalize the specified date to milliseconds since the epoch\n\n If it is a string, it is assumed to be some sort of datetime such as\n \"2015-12-27\" or \"2015-12-27T11:01:20.954\". If date is a naive datetime,\n it is assumed to be UTC.\n\n If numeric arguments are beyond 5138-11-16 (100,... | 23 | false | planetlabs/datalake-common | normalize_date | 141,182 | |
LDU_FT/happyleavesaoc/python-limitlessled/night_light | LDU_FT | [
"<BEGIN>\n## `command_set_factory`",
"Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>",
"<BEGIN>\n## `rate`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the night_light API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the night_light API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Build command for turning the led to night light mode.
:return: The command. | "Build command for turning the led to night light mode.\n :return: The command." | 164 | false | happyleavesaoc/python-limitlessled | night_light | 141,183 | |
LDU_FT/flo-compbio/xlmhg/get_xlmhg_stat | LDU_FT | [
"<BEGIN>\n## `is_equal`",
"Ratio test to check if two floating point numbers are equal.",
" Parameters\n ----------\n a: float\n The first floating point number.\n b: float\n The second floating point number.\n tol: float\n The tolerance used.",
" Returns\n -------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xlmhg_stat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xlmhg_stat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Calculate the XL-mHG test statistic using recurrence relations.
Parameters
----------
v: np.ndarray with dtype=np.uint8
The ranked list.
X: int
The XL-mHG ``X`` parameter.
L: int
The XL-mHG ``L`` parameter.
tol: float, optional
The tolerance used for comparin... | "Calculate the XL-mHG test statistic using recurrence relations.\n \n Parameters\n ----------\n v: np.ndarray with dtype=np.uint8\n The ranked list.\n X: int\n The XL-mHG ``X`` parameter.\n L: int\n The XL-mHG ``L`` parameter.\n tol: float, optional\n The tolerance used ... | 31 | false | flo-compbio/xlmhg | get_xlmhg_stat | 141,184 | |
LDU_FT/klorenz/python-argdeco/get_config_name | LDU_FT | [
"<BEGIN>\n## `add_subcommands`",
"add subcommands.",
" If command already defined, pass args and kwargs to add_subparsers()\n method, else to add_parser() method. This behaviour is for convenience,\n because I mostly use the sequence:",
" >>> p = parser.add_parser('foo', help=\"so... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | get the name for configuration
This returns a name respecting commands and subcommands. So if you
have a command name "index" with subcommand "ls", which has option
"--all", you will pass the action for subcommand "ls" and the options's
dest name ("all" in this case), then this functi... | "get the name for configuration\n\n This returns a name respecting commands and subcommands. So if you\n have a command name \"index\" with subcommand \"ls\", which has option\n \"--all\", you will pass the action for subcommand \"ls\" and the options's\n dest name (\"all\" in this case), ... | 54 | false | klorenz/python-argdeco | get_config_name | 141,185 | |
LDU_FT/aquatix/python-utilkit/filename_addstring | LDU_FT | [
"<BEGIN>\n## `archive_if_exists`",
"Move `filename` out of the way, archiving it by appending the current datetime\n Can be a file or a directory\n<END>",
"<BEGIN>\n## `ensure_dir_exists`",
"Ensure the existence of the (parent) directory of f\n<END>",
"<BEGIN>\n## `list_files`",
"List all files in dire... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename_addstring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename_addstring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Add `text` to filename, keeping the extension in place
For example when adding a timestamp to the filename | "Add `text` to filename, keeping the extension in place\n For example when adding a timestamp to the filename" | 24 | false | aquatix/python-utilkit | filename_addstring | 141,186 | |
LDU_FT/mardix/Mocha/get_user_by_auth_token | LDU_FT | [
"<BEGIN>\n## `_normalize_response_tuple`",
"Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_by_auth_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_by_auth_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return the AuthUser associated to the token, otherwise it will return None.
If token is not provided, it will pull it from the headers: Authorization
Exception:
Along with AuthError, it may
:param token:
:return: AuthUser | "Return the AuthUser associated to the token, otherwise it will return None.\n If token is not provided, it will pull it from the headers: Authorization\n\n Exception:\n Along with AuthError, it may\n :param token:\n :return: AuthUser" | 276 | false | mardix/Mocha | get_user_by_auth_token | 141,187 | |
LDU_FT/Gorialis/jishaku/get_language | LDU_FT | [
"<BEGIN>\n## `get_var_dict_from_ctx`",
"Returns the dict to be used in REPL for a given Context.\n<END>",
"<BEGIN>\n## `background_reader`",
"Reads a stream and forwards each line to an async callback.\n<END>",
"<BEGIN>\n## `make_reader_task`",
"Create a reader executor task for a stream.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Tries to work out the highlight.js language of a given file name or
shebang. Returns an empty string if none match. | "Tries to work out the highlight.js language of a given file name or\n shebang. Returns an empty string if none match." | 161 | false | Gorialis/jishaku | get_language | 141,188 | |
LDU_FT/jasonlaska/spherecluster/_sample_weight | LDU_FT | [
"<BEGIN>\n## `sample_vMF`",
"Generate num_samples N-dimensional samples from von Mises Fisher\n distribution around center mu \\in R^N with concentration kappa.\n<END>",
"<BEGIN>\n## `_sample_weight`",
"Rejection sampling scheme for sampling distance from center on\n surface of the sphere.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_weight API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_weight API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Rejection sampling scheme for sampling distance from center on
surface of the sphere. | "Rejection sampling scheme for sampling distance from center on\n surface of the sphere." | 93 | false | jasonlaska/spherecluster | _sample_weight | 141,189 | |
LDU_FT/gmichaeljaison/cv-utils/overlaps | LDU_FT | [
"<BEGIN>\n## `match_one`",
"Match template and find exactly one match in the Image using specified features.",
" :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlaps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overlaps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check whether this box and given box overlaps at least by given threshold.
:param box: Box to compare with
:param th: Threshold above which overlapping should be considered
:returns: True if overlaps | "Check whether this box and given box overlaps at least by given threshold.\n\n :param box: Box to compare with\n :param th: Threshold above which overlapping should be considered\n :returns: True if overlaps" | 91 | false | gmichaeljaison/cv-utils | overlaps | 141,190 | |
LDU_FT/gforcada/haproxy_log_analysis/cmd_connection_type | LDU_FT | [
"<BEGIN>\n## `filter_ip_range`",
"Filter :class:`.Line` objects by IP range.",
" Both *192.168.1.203* and *192.168.1.10* are valid if the provided ip\n range is ``192.168.1`` whereas *192.168.2.103* is not valid (note the\n *.2.*).",
" :param ip_range: IP range that you want to filter to.\n :ty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_connection_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_connection_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Generates statistics on how many requests are made via HTTP and how
many are made via SSL.
.. note::
This only works if the request path contains the default port for
SSL (443).
.. warning::
The ports are hardcoded, they should be configurable. | "Generates statistics on how many requests are made via HTTP and how\n many are made via SSL.\n\n .. note::\n This only works if the request path contains the default port for\n SSL (443).\n\n .. warning::\n The ports are hardcoded, they should be configurable." | 71 | false | gforcada/haproxy_log_analysis | cmd_connection_type | 141,191 | |
LDU_FT/seperman/deepdiff/path | LDU_FT | [
"<BEGIN>\n## `__report_result`",
"Add a detected change to the reference-style result dictionary.\n report_type will be added to level.\n (We'll create the text-style report from there later.)\n :param report_type: A well defined string key describing the type of change.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | A python syntax string describing how to descend to this level, assuming the top level object is called root.
Returns None if the path is not representable as a string.
This might be the case for example if there are sets involved (because then there's not path at all) or because
custom objects ... | "A python syntax string describing how to descend to this level, assuming the top level object is called root.\n Returns None if the path is not representable as a string.\n This might be the case for example if there are sets involved (because then there's not path at all) or because\n custom obje... | 46 | false | seperman/deepdiff | path | 141,192 | |
LDU_FT/wakatime/wakatime/dst | LDU_FT | [
"<BEGIN>\n## `wrap`",
"[MS-NLMP] v28.0 2016-07-14",
" 3.4.6 GSS_WrapEx()\n Emulates the GSS_Wrap() implementation to sign and seal messages if the correct flags\n are set.",
" @param message: The message data that will be wrapped\n @return message: The message that has been ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dst API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dst API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | See datetime.tzinfo.dst
The is_dst parameter may be used to remove ambiguity during DST
transitions.
>>> from pytz import timezone
>>> tz = timezone('America/St_Johns')
>>> normal = datetime(2009, 9, 1)
>>> tz.dst(normal)
datetime.timedelta(0, 3600)
>>... | "See datetime.tzinfo.dst\n\n The is_dst parameter may be used to remove ambiguity during DST\n transitions.\n\n >>> from pytz import timezone\n >>> tz = timezone('America/St_Johns')\n\n >>> normal = datetime(2009, 9, 1)\n\n >>> tz.dst(normal)\n datetime.timedelta(0, 3600... | 623 | false | wakatime/wakatime | dst | 141,193 | |
LDU_FT/alephdata/memorious/run | LDU_FT | [
"<BEGIN>\n## `size`",
"Total operations pending for this crawler\n<END>",
"<BEGIN>\n## `read_word`",
"OCR a single word from an image. Useful for captchas.\n Image should be pre-processed to remove noise etc.\n<END>",
"<BEGIN>\n## `read_char`",
"OCR a single character from an image. Useful for capt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Queue the execution of a particular crawler. | "Queue the execution of a particular crawler." | 71 | false | alephdata/memorious | run | 141,194 | |
LDU_FT/cloudify-cosmo/wagon/_get_os_properties | LDU_FT | [
"<BEGIN>\n## `install_package`",
"Install a Python package.",
" Can specify a specific version.\n Can specify a prerelease.\n Can specify a venv to install in.\n Can specify a list of paths or urls to requirement txt files.\n Can specify a local wheels_path to use for offline installation.\n C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_os_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_os_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Retrieve distribution properties.
**Note that platform.linux_distribution and platform.dist are deprecated
and will be removed in Python 3.7. By that time, distro will become
mandatory. | "Retrieve distribution properties.\n\n **Note that platform.linux_distribution and platform.dist are deprecated\n and will be removed in Python 3.7. By that time, distro will become\n mandatory." | 51 | false | cloudify-cosmo/wagon | _get_os_properties | 141,195 | |
LDU_FT/kstaniek/condoor/a_not_committed | LDU_FT | [
"<BEGIN>\n## `_prepare_patterns`",
"Return two dictionaries: compiled and text prompts.\n<END>",
"<BEGIN>\n## `_platform_patterns`",
"Return all the patterns for specific platform.\n<END>",
"<BEGIN>\n## `pattern`",
"Return the pattern defined by the key string specific to the platform.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a_not_committed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a_not_committed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Provide the message that current software is not committed and reload is not possible. | "Provide the message that current software is not committed and reload is not possible." | 229 | false | kstaniek/condoor | a_not_committed | 141,196 | |
LDU_FT/toomore/grs/moving_average_bias_ratio | LDU_FT | [
"<BEGIN>\n## `real`",
"Real time data",
" :rtype: dict\n :returns:",
" :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average_bias_ratio API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moving_average_bias_ratio API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | 計算乖離率(均價)
date1 - date2
:param int data1: n 日
:param int data2: m 日
:rtype: tuple (序列 舊→新, 持續天數) | "計算乖離率(均價)\n date1 - date2\n\n :param int data1: n 日\n :param int data2: m 日\n :rtype: tuple (序列 舊→新, 持續天數)" | 88 | false | toomore/grs | moving_average_bias_ratio | 141,197 | |
LDU_FT/jedie/DragonPy/count_continuous_pattern | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_continuous_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_continuous_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | >>> pattern = list(bytes2bit_strings("A"))
>>> bitstream = bytes2bit_strings("AAAXXX")
>>> count_continuous_pattern(bitstream, pattern)
3
>>> pattern = list(bytes2bit_strings("X"))
>>> bitstream = bytes2bit_strings("AAAXXX")
>>> count_continuous_pattern(bitstream, pattern)
0 | ">>> pattern = list(bytes2bit_strings(\"A\"))\n >>> bitstream = bytes2bit_strings(\"AAAXXX\")\n >>> count_continuous_pattern(bitstream, pattern)\n 3\n\n >>> pattern = list(bytes2bit_strings(\"X\"))\n >>> bitstream = bytes2bit_strings(\"AAAXXX\")\n >>> count_continuous_pattern(bitstream, pattern)\n ... | 223 | false | jedie/DragonPy | count_continuous_pattern | 141,198 | |
LDU_FT/LISE-B26/pylabcontrol/get_classes_in_folder | LDU_FT | [
"<BEGIN>\n## `instantiate_probes`",
"Creates instances of the probes inputed;",
" Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_classes_in_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_classes_in_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | load all the instruments or script objects that are located in folder_name and
return a dictionary with the script class name and path_to_python_file
Args:
folder_name (string): folder in which to search for class objects / or name of module
class_type (string or class): class type for which to ... | "load all the instruments or script objects that are located in folder_name and\n return a dictionary with the script class name and path_to_python_file\n Args:\n folder_name (string): folder in which to search for class objects / or name of module\n class_type (string or class): class type for whic... | 301 | false | LISE-B26/pylabcontrol | get_classes_in_folder | 141,199 | |
LDU_FT/GluuFederation/oxd-python/add | LDU_FT | [
"<BEGIN>\n## `register_site`",
"Function to register the site and generate a unique ID for the site",
" Returns:\n **string:** The ID of the site (also called client id) if the registration is successful",
" Raises:\n **OxdServerError:** If the site registration fails.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Adds a new resource with the given path to the resource set.
Parameters:
* **path (str, unicode):** path of the resource to be protected
Raises:
TypeError when the path is not a string or a unicode string | "Adds a new resource with the given path to the resource set.\n\n Parameters:\n * **path (str, unicode):** path of the resource to be protected\n\n Raises:\n TypeError when the path is not a string or a unicode string" | 124 | false | GluuFederation/oxd-python | add | 141,200 | |
LDU_FT/UAVCAN/pyuavcan/value_to_constant_name | LDU_FT | [
"<BEGIN>\n## `enum_mark_last`",
"Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_constant_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_constant_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | This function accepts a UAVCAN struct (message, request, or response), and a field name; and returns
the name of constant or bit mask that match the value. If no match could be established, the literal
value will be returned as is.
Args:
struct: UAVCAN struct to work with
field_name:... | "This function accepts a UAVCAN struct (message, request, or response), and a field name; and returns\n the name of constant or bit mask that match the value. If no match could be established, the literal\n value will be returned as is.\n Args:\n struct: UAVCAN struct to work with\n field... | 65 | false | UAVCAN/pyuavcan | value_to_constant_name | 141,201 | |
LDU_FT/miedzinski/google-oauth/issued_at | LDU_FT | [
"<BEGIN>\n## `from_json`",
"Alternate constructor intended for using JSON format of private key.",
" Args:\n key (dict) - Parsed JSON with service account credentials.\n scopes (Union[str, collections.Iterable[str]]) -\n List of permissions that the application reques... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issued_at API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issued_at API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Time when access token was requested, as seconds since epoch.
Note:
Accessing this property when there wasn't any request attempts
will return current time.
Returns:
int | "Time when access token was requested, as seconds since epoch.\n\n Note:\n Accessing this property when there wasn't any request attempts\n will return current time.\n\n Returns:\n int" | 27 | false | miedzinski/google-oauth | issued_at | 141,202 | |
LDU_FT/inasafe/inasafe/default_classification_thresholds | LDU_FT | [
"<BEGIN>\n## `dict`",
"dictionary representation of the metadata.",
" :return: dictionary representation of the metadata\n :rtype: dict\n<END>",
"<BEGIN>\n## `xml`",
"xml representation of the metadata.",
" :return: xml representation of the metadata\n :rtype: ElementTree.Eleme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_classification_thresholds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_classification_thresholds API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Helper to get default thresholds from classification and unit.
:param classification: Classification definition.
:type classification: dict
:param unit: Unit key definition.
:type unit: basestring
:returns: Dictionary with key = the class key and value = list of
default numeric minimum an... | "Helper to get default thresholds from classification and unit.\n\n :param classification: Classification definition.\n :type classification: dict\n\n :param unit: Unit key definition.\n :type unit: basestring\n\n :returns: Dictionary with key = the class key and value = list of\n default numeric ... | 4,163 | true | inasafe/inasafe | default_classification_thresholds | 141,203 | |
LDU_FT/briancappello/flask-sqlalchemy-bundle/get_or_create | LDU_FT | [
"<BEGIN>\n## `param_converter`",
"Call with the url parameter names as keyword argument keys, their values\n being the model to convert to.",
" Models will be looked up by the url param names. If a url param name\n is prefixed with the snake-cased model name, the prefix will be stripped.",
" If a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | :return: returns a tuple of the instance and a boolean flag specifying
whether or not the instance was created | ":return: returns a tuple of the instance and a boolean flag specifying\n whether or not the instance was created" | 36 | false | briancappello/flask-sqlalchemy-bundle | get_or_create | 141,204 | |
LDU_FT/SuperCowPowers/bat/get | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Open the file for reading and yield lines as they are added\n<END>",
"<BEGIN>\n## `readrows`",
"The readrows method reads simply 'combines' the rows of\n multiple files OR gunzips the file and then reads the rows\n<END>",
"<BEGIN>\n## `most_recent`",
"Recursively insp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get an item from the cache
Args:
key: item key
Returns:
the value of the item or None if the item isn't in the cache | "Get an item from the cache\n Args:\n key: item key\n Returns:\n the value of the item or None if the item isn't in the cache" | 79 | false | SuperCowPowers/bat | get | 141,205 | |
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_name_familyname_first_char | LDU_FT | [
"<BEGIN>\n## `get_module_profile`",
"Get or create a profile from a module and return it.",
" If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_name_familyname_first_char API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_name_familyname_first_char API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END... | Make sure family name does not begin with a digit.
Font family names which start with a numeral are often not
discoverable in Windows applications. | "Make sure family name does not begin with a digit.\n\n Font family names which start with a numeral are often not\n discoverable in Windows applications." | 381 | false | googlefonts/fontbakery | com_google_fonts_check_name_familyname_first_char | 141,206 | |
LDU_FT/ejhigson/nestcheck/paper_format_efficiency_gain_df | LDU_FT | [
"<BEGIN>\n## `save_load_result`",
"Saves and/or loads func output (must be picklable).\n<END>",
"<BEGIN>\n## `pickle_save`",
"Saves object with pickle.",
" Parameters\n ----------\n data: anything picklable\n Object to save.\n name: str\n Path to save to (includes dir, excludes ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paper_format_efficiency_gain_df API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paper_format_efficiency_gain_df API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Transform efficiency gain data frames output by nestcheck into the
format shown in the dynamic nested sampling paper (Higson et al. 2019).
Parameters
----------
eff_gain_df: pandas DataFrame
DataFrame of the from produced by efficiency_gain_df.
Returns
-------
paper_df: pandas Data... | "Transform efficiency gain data frames output by nestcheck into the\n format shown in the dynamic nested sampling paper (Higson et al. 2019).\n\n Parameters\n ----------\n eff_gain_df: pandas DataFrame\n DataFrame of the from produced by efficiency_gain_df.\n\n Returns\n -------\n paper_df: ... | 394 | false | ejhigson/nestcheck | paper_format_efficiency_gain_df | 141,207 | |
LDU_FT/ivilata/pymultihash/truncate | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the registry to the standard codecs.\n<END>",
"<BEGIN>\n## `register`",
"Add a codec to the registry.",
" Registers a codec with the given `name` (a string) to be used with the\n given `encode` and `decode` functions, which take a `bytes` object and\n retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a new `Multihash` with a shorter digest `length`.
If the given `length` is greater than the original, a `ValueError`
is raised.
>>> mh1 = Multihash(0x01, b'FOOBAR')
>>> mh2 = mh1.truncate(3)
>>> mh2 == (0x01, b'FOO')
True
>>> mh3 = mh1.truncate(10)
... | "Return a new `Multihash` with a shorter digest `length`.\n\n If the given `length` is greater than the original, a `ValueError`\n is raised.\n\n >>> mh1 = Multihash(0x01, b'FOOBAR')\n >>> mh2 = mh1.truncate(3)\n >>> mh2 == (0x01, b'FOO')\n True\n >>> mh3 = mh1.truncate(... | 59 | false | ivilata/pymultihash | truncate | 141,208 | |
LDU_FT/ambitioninc/django-query-builder/generate_auto_fields | LDU_FT | [
"<BEGIN>\n## `get_sql`",
"Generates the JOIN sql for the join tables and join condition",
" :rtype: str\n :return: the JOIN sql for the join tables and join condition\n<END>",
"<BEGIN>\n## `set_left_table`",
"Sets the left table for this join clause. If no table is specified, the first table\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_auto_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_auto_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generates any auto fields needed to properly group this date part.
Ex: a Day field will create Year, Month, Day fields and group by Year, Month, Day | "Generates any auto fields needed to properly group this date part.\n Ex: a Day field will create Year, Month, Day fields and group by Year, Month, Day" | 251 | false | ambitioninc/django-query-builder | generate_auto_fields | 141,209 | |
LDU_FT/darothen/xbpch/_read_metadata | LDU_FT | [
"<BEGIN>\n## `from_model`",
"Define a grid using the specifications of a given model.",
" Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Read the main metadata packaged within a bpch file, indicating
the output filetype and its title. | "Read the main metadata packaged within a bpch file, indicating\n the output filetype and its title." | 122 | false | darothen/xbpch | _read_metadata | 141,210 | |
LDU_FT/neighbordog/deviantart/_req | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _req API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _req API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Helper method to make API calls
:param endpoint: The endpoint to make the API call to
:param get_data: data send through GET
:param post_data: data send through POST | "Helper method to make API calls\n\n :param endpoint: The endpoint to make the API call to\n :param get_data: data send through GET\n :param post_data: data send through POST" | 132 | false | neighbordog/deviantart | _req | 141,211 | |
LDU_FT/captin411/ofxclient/is_encrypted_account | LDU_FT | [
"<BEGIN>\n## `is_secure_option`",
"Test an option to see if it is secured or not.",
" :param section: section id\n :type section: string\n :param option: option name\n :type option: string\n :rtype: boolean\n otherwise.\n<END>",
"<BEGIN>\n## `items`",
"Get all items... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_encrypted_account API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_encrypted_account API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Are all fields for the account id encrypted? | "Are all fields for the account id encrypted?" | 93 | false | captin411/ofxclient | is_encrypted_account | 141,212 | |
LDU_FT/blackecho/Deep-Learning-TensorFlow/_create_variables_pretrain | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the model to the given data.",
" :param train_set: training data\n :param test_set: test data\n<END>",
"<BEGIN>\n## `_run_train_step`",
"Run a single training step.",
" :param data: input data\n :param mode: 'train' or 'test'.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_variables_pretrain API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_variables_pretrain API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Create model variables (previous unsupervised pretraining).
:return: self | "Create model variables (previous unsupervised pretraining).\n\n :return: self" | 284 | false | blackecho/Deep-Learning-TensorFlow | _create_variables_pretrain | 141,213 | |
LDU_FT/gmr/queries/free | LDU_FT | [
"<BEGIN>\n## `close`",
"Close the connection",
" :raises: ConnectionBusyError\n<END>",
"<BEGIN>\n## `busy`",
"Return if the connection is currently executing a query or is locked\n by a session that still exists.",
" :rtype: bool\n<END>",
"<BEGIN>\n## `free`",
"Remove the lock on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Remove the lock on the connection if the connection is not active
:raises: ConnectionBusyError | "Remove the lock on the connection if the connection is not active\n\n :raises: ConnectionBusyError" | 181 | false | gmr/queries | free | 141,214 | |
LDU_FT/utek/pyseaweed/post_file | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Get file from WeedFS.",
" Returns file content. May be problematic for large files as content is\n stored in memory.",
" Args:\n **fid**: File identifier <volume_id>,<file_name_hash>",
" Returns:\n Content of the file with provided... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Uploads file to provided url.
Returns contents as text
Args:
**url**: address where to upload file
**filename**: Name of the uploaded file
**file_stream**: file like object to upload
.. versionadded:: 0.3.2
**additional_headers**: (opt... | "Uploads file to provided url.\n\n Returns contents as text\n\n Args:\n **url**: address where to upload file\n\n **filename**: Name of the uploaded file\n\n **file_stream**: file like object to upload\n\n .. versionadded:: 0.3.2\n **additional_he... | 67 | false | utek/pyseaweed | post_file | 141,215 | |
LDU_FT/255BITS/hyperchamber/partial_fit | LDU_FT | [
"<BEGIN>\n## `conv_cond_concat`",
"Concatenate conditioning vector on feature map axis.\n<END>",
"<BEGIN>\n## `avg_grads`",
"Calculate the average gradient for each shared variable across all towers.",
" Note that this function provides a synchronization point across all towers.",
" Args:\n tower_gra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partial_fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Train model based on mini-batch of input data.
Return cost of mini-batch. | "Train model based on mini-batch of input data.\n \n Return cost of mini-batch." | 61 | false | 255BITS/hyperchamber | partial_fit | 141,216 | |
LDU_FT/matthieugouel/gibica/function_declaration | LDU_FT | [
"<BEGIN>\n## `append_scope`",
"Create a new scope in the current frame.\n<END>",
"<BEGIN>\n## `pop_scope`",
"Delete the current scope in the current scope.\n<END>",
"<BEGIN>\n## `visit`",
"Visit the right method of the child class according to the node.\n<END>",
"<BEGIN>\n## `peek`",
"Get the next cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_declaration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_declaration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | function_declaration: 'def' ID parameters compound | "function_declaration: 'def' ID parameters compound" | 56 | false | matthieugouel/gibica | function_declaration | 141,217 | |
LDU_FT/HazyResearch/fonduer/upsert_keys | LDU_FT | [
"<BEGIN>\n## `construct_stable_id`",
"Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>",
"<BEGIN>\n## `split_stable_id`",
"Split stable id, returning:",
" * Document (root) stable ID\n * Context polymorphic type\n * Charac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Bulk add annotation keys to the specified table.
:param key_table: The sqlalchemy class to insert into.
:param keys: A map of {name: [candidate_classes]}. | "Bulk add annotation keys to the specified table.\n\n :param key_table: The sqlalchemy class to insert into.\n :param keys: A map of {name: [candidate_classes]}." | 540 | false | HazyResearch/fonduer | upsert_keys | 141,218 | |
LDU_FT/Fortran-FOSS-Programmers/ford/iterator | LDU_FT | [
"<BEGIN>\n## `line_to_variables`",
"Returns a list of variables declared in the provided line of code. The\n line of code should be provided as a string.\n<END>",
"<BEGIN>\n## `parse_type`",
"Gets variable type, kind, length, and/or derived-type attributes from a\n variable declaration.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Iterator returning any list of elements via attribute lookup in `self`
This iterator retains the order of the arguments | "Iterator returning any list of elements via attribute lookup in `self`\n\n This iterator retains the order of the arguments" | 76 | false | Fortran-FOSS-Programmers/ford | iterator | 141,219 | |
LDU_FT/PySimpleGUI/PySimpleGUI/human_size | LDU_FT | [
"<BEGIN>\n## `read_mail`",
"Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>",
"<BEGIN>\n## `runCommand`",
"run shell command",
"\t@param cmd: command to execute\n\t@param timeout: timeout for command execution",
"\t@re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the human_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the human_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a human readable string reprentation of bytes | "Returns a human readable string reprentation of bytes" | 110 | false | PySimpleGUI/PySimpleGUI | human_size | 141,220 | |
LDU_FT/garnaat/placebo/save_response | LDU_FT | [
"<BEGIN>\n## `_serialize_json`",
"Serialize ``obj`` as a JSON formatted stream to ``fp``\n<END>",
"<BEGIN>\n## `get_serializer`",
"Get the serializer for a specific format\n<END>",
"<BEGIN>\n## `get_deserializer`",
"Get the deserializer for a specific format\n<END>",
"<BEGIN>\n## `_set_logger`",
"Conv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Store a response to the data directory. The ``operation``
should be the name of the operation in the service API (e.g.
DescribeInstances), the ``response_data`` should a value you want
to return from a placebo call and the ``http_response`` should be
the HTTP status code returned from t... | "Store a response to the data directory. The ``operation``\n should be the name of the operation in the service API (e.g.\n DescribeInstances), the ``response_data`` should a value you want\n to return from a placebo call and the ``http_response`` should be\n the HTTP status code returned f... | 18 | false | garnaat/placebo | save_response | 141,221 | |
LDU_FT/crate/crate-python/_raise_for_status | LDU_FT | [
"<BEGIN>\n## `coerce`",
"Convert plain dictionaries to MutableDict.\n<END>",
"<BEGIN>\n## `_raise_for_status`",
"make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>",
"<BEGIN>\n## `_server_url`",
"Normalizes a given server string to an url",
" >>> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raise_for_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _raise_for_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | make sure that only crate.exceptions are raised that are defined in
the DB-API specification | "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification" | 81 | false | crate/crate-python | _raise_for_status | 141,222 | |
LDU_FT/bukun/TorCMS/render | LDU_FT | [
"<BEGIN>\n## `view_or_add`",
"To judge if there is a post of the title.\n Then, to show, or to add.\n<END>",
"<BEGIN>\n## `gen_array_crud`",
"Return the dictionay of the switcher form XLXS file.\n if valud of the column of the row is `1`, it will be added to the array.\n<END>",
"<BEGIN>\n## `__ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | fun(uid_with_str)
fun(uid_with_str, slug = val1, glyph = val2) | "fun(uid_with_str)\n fun(uid_with_str, slug = val1, glyph = val2)" | 189 | false | bukun/TorCMS | render | 141,223 | |
LDU_FT/schettino72/import-deps/_get_imported_module | LDU_FT | [
"<BEGIN>\n## `ast_imports`",
"get list of import from python module\n :return: (list - tuple) (module, name, asname, level)\n<END>",
"<BEGIN>\n## `_get_fqn`",
"get full qualified name as list of strings\n :return: (list - str) of path segments from top package to given path\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_imported_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_imported_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | try to get imported module reference by its name | "try to get imported module reference by its name" | 10 | false | schettino72/import-deps | _get_imported_module | 141,224 | |
LDU_FT/jtambasco/modesolverpy/n | LDU_FT | [
"<BEGIN>\n## `solve_sweep_structure`",
"Find the modes of many structures.",
" Args:\n structures (list): A list of `Structures` to find the modes\n of.\n sweep_param_list (list): A list of the parameter-sweep sweep\n that was used. This is for plottin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docum... | np.array: The refractive index profile matrix
of the current slab. | "np.array: The refractive index profile matrix\n of the current slab." | 70 | false | jtambasco/modesolverpy | n | 141,225 | |
LDU_FT/cga-harvard/Hypermap-Registry/bbox2wktpolygon | LDU_FT | [
"<BEGIN>\n## `update_schema`",
"set the mapping in solr.\n :param catalog: core\n :return:\n<END>",
"<BEGIN>\n## `create_layer_from_metadata_xml`",
"Create a layer / keyword list from a metadata record if it does not already exist.\n<END>",
"<BEGIN>\n## `create_service_from_endpoint`",
"Crea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox2wktpolygon API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox2wktpolygon API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return OGC WKT Polygon of a simple bbox list | "Return OGC WKT Polygon of a simple bbox list" | 132 | false | cga-harvard/Hypermap-Registry | bbox2wktpolygon | 141,226 | |
LDU_FT/UCSBarchlab/PyRTL/and_inverter_synth | LDU_FT | [
"<BEGIN>\n## `_initialize`",
"Sets the wire, register, and memory values to default or as specified.",
" :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the and_inverter_synth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the and_inverter_synth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Transforms a decomposed block into one consisting of ands and inverters in place
:param block: The block to synthesize | "Transforms a decomposed block into one consisting of ands and inverters in place\n :param block: The block to synthesize" | 416 | false | UCSBarchlab/PyRTL | and_inverter_synth | 141,227 | |
LDU_FT/HDI-Project/mit-d3m/_get_resources_by_type | LDU_FT | [
"<BEGIN>\n## `build_config`",
"root@d3m-example-pod:/# cat /input/185_baseball/test_config.json\n {\n \"problem_schema\": \"/input/TEST/problem_TEST/problemDoc.json\",\n \"problem_root\": \"/input/TEST/problem_TEST\",\n \"dataset_schema\": \"/input/TEST/dataset_TEST/datasetDoc.json\",\n \"t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_resources_by_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_resources_by_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Returns the list of resources that are of the indicated type | "Returns the list of resources that are of the indicated type" | 15 | false | HDI-Project/mit-d3m | _get_resources_by_type | 141,228 | |
LDU_FT/eventable/vobject/transformToNative | LDU_FT | [
"<BEGIN>\n## `toVName`",
"Turn a Python name into an iCalendar style name,\n optionally uppercase and with characters stripped off.\n<END>",
"<BEGIN>\n## `dquoteEscape`",
"Return param, or \"param\" if ',' or ';' or ':' is in param.\n<END>",
"<BEGIN>\n## `readComponents`",
"Generate one Component at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transformToNative API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transformToNative API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convert comma separated periods into tuples. | "Convert comma separated periods into tuples." | 138 | false | eventable/vobject | transformToNative | 141,229 | |
LDU_FT/awslabs/aws-sam-cli/__translate | LDU_FT | [
"<BEGIN>\n## `invoke_common_options`",
"Common CLI options shared by \"local invoke\" and \"local start-api\" commands",
" :param f: Callback passed by Click\n<END>",
"<BEGIN>\n## `get_or_default_template_file_name`",
"Default value for the template file name option is more complex than what Click can ha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __translate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __translate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This method is unused and a Work In Progress | "This method is unused and a Work In Progress" | 708 | false | awslabs/aws-sam-cli | __translate | 141,230 | |
LDU_FT/dslackw/slpkg/one_for_all | LDU_FT | [
"<BEGIN>\n## `repos`",
"View or enabled or disabled repositories\n<END>",
"<BEGIN>\n## `reset`",
"Reset slpkg.conf file with default values\n<END>",
"<BEGIN>\n## `case_sensitive`",
"Create dictionary from list with key in lower case\n and value with default\n<END>",
"<BEGIN>\n## `package_name`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_for_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_for_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Because there are dependencies that depend on other
dependencies are created lists into other lists.
Thus creating this loop create one-dimensional list and
remove double packages from dependencies. | "Because there are dependencies that depend on other\n dependencies are created lists into other lists.\n Thus creating this loop create one-dimensional list and\n remove double packages from dependencies." | 168 | false | dslackw/slpkg | one_for_all | 141,231 | |
LDU_FT/rongcloud/server-sdk-python/refresh | LDU_FT | [
"<BEGIN>\n## `getToken`",
"获取 Token 方法 方法\n @param userId:用户 Id,最大长度 64 字节.是用户在 App 中的唯一标识码,必须保证在同一个 App 内不重复,重复的用户 Id 将被当作是同一用户。(必传)\n @param name:用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称.用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称。(必传)\n @param portraitUri:用户头像 URI,最大长度 1024 字节.用来在 Push 推送时显示用户的头像。... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | 刷新群组信息方法 方法
@param groupId:群组 Id。(必传)
@param groupName:群名称。(必传)
@return code:返回码,200 为正常。
@return errorMessage:错误信息。 | "刷新群组信息方法 方法\n @param groupId:群组 Id。(必传)\n @param groupName:群名称。(必传)\n\t \n @return code:返回码,200 为正常。\n @return errorMessage:错误信息。" | 93 | false | rongcloud/server-sdk-python | refresh | 141,232 | |
LDU_FT/KeithSSmith/switcheo-python/sign_create_order | LDU_FT | [
"<BEGIN>\n## `neo_get_scripthash_from_address`",
"Convert a Public Address String to a ScriptHash (Address) String.",
" :param address: The Public address to convert.\n :type address: str\n :return: String containing the converted ScriptHash.\n<END>",
"<BEGIN>\n## `num2hexstring`",
"Converts a numb... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_create_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_create_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Function to sign the create order parameters and send to the Switcheo API.
Execution of this function is as follows::
sign_create_order(order_params=signable_params, key_pair=key_pair)
The expected return result for this function is as follows::
{
'blockchain': 'neo',
... | "Function to sign the create order parameters and send to the Switcheo API.\n Execution of this function is as follows::\n\n sign_create_order(order_params=signable_params, key_pair=key_pair)\n\n The expected return result for this function is as follows::\n\n {\n 'blockchain': 'neo',\n ... | 218 | false | KeithSSmith/switcheo-python | sign_create_order | 141,233 | |
LDU_FT/toloco/pyoanda/get_transaction_history | LDU_FT | [
"<BEGIN>\n## `check`",
"Logic extracted from:\n http://developer.oanda.com/rest-live/orders/#createNewOrder\n<END>",
"<BEGIN>\n## `__get_response`",
"Creates a response object with the given params and option",
" Parameters\n ----------\n url : string\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transaction_history API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transaction_history API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Download full account history.
Uses request_transaction_history to get the transaction
history URL, then polls the given URL until it's ready (or
the max_wait time is reached) and provides the decoded
response.
Parameters
----------
m... | "Download full account history.\n\n Uses request_transaction_history to get the transaction\n history URL, then polls the given URL until it's ready (or\n the max_wait time is reached) and provides the decoded\n response.\n\n Parameters\n ----------\n ... | 46 | false | toloco/pyoanda | get_transaction_history | 141,234 | |
LDU_FT/TissueMAPS/TmDeploy/load_inventory | LDU_FT | [
"<BEGIN>\n## `__init_os_api`",
"Initialise client objects for talking to OpenStack API.",
" This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>",
"<BEGIN>\n## `stop_instance`",
"Stops the instance gracefully.",
" :param str instance_id: instan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_inventory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_inventory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Loads Ansible inventory from file.
Parameters
----------
hosts_file: str, optional
path to Ansible hosts file
Returns
-------
ConfigParser.SafeConfigParser
content of `hosts_file` | "Loads Ansible inventory from file.\n\n Parameters\n ----------\n hosts_file: str, optional\n path to Ansible hosts file\n\n Returns\n -------\n ConfigParser.SafeConfigParser\n content of `hosts_file`" | 192 | false | TissueMAPS/TmDeploy | load_inventory | 141,235 | |
LDU_FT/getnikola/coil/pages | LDU_FT | [
"<BEGIN>\n## `orphans_single`",
"Remove all orphans in the site, in the single user-mode.\n<END>",
"<BEGIN>\n## `password_hash`",
"Hash the password, using bcrypt+sha256.",
" .. versionchanged:: 1.1.0",
" :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Get pages, reloading the site if needed. | "Get pages, reloading the site if needed." | 68 | false | getnikola/coil | pages | 141,236 | |
LDU_FT/ctuning/ck/add | LDU_FT | [
"<BEGIN>\n## `call_ck`",
"Input: {\n Input for CK\n }",
" Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0",
" (stdout) - stdout, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Input: {
(repo_uoa) - repo UOA
module_uoa - module UOA
data_uoa - data UOA
(data_uid) - data UID (if uoa is an alias)
(data_name) - user friendly data name
(dict_from_cid) ... | "Input: {\n (repo_uoa) - repo UOA\n module_uoa - module UOA\n data_uoa - data UOA\n (data_uid) - data UID (if uoa is an alias)\n (data_name) - user friendly data name\n\n (dict_fro... | 640 | false | ctuning/ck | add | 141,237 | |
LDU_FT/latchset/jwcrypto/import_from_pem | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt according to the selected encryption and hashing\n functions.",
" :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext",
" Returns a dictionary with the computed data.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_pem API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_pem API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Imports a key from data loaded from a PEM file.
The key may be encrypted with a password.
Private keys (PKCS#8 format), public keys, and X509 certificate's
public keys can be imported with this interface.
:param data(bytes): The data contained in a PEM file.
:param password(byte... | "Imports a key from data loaded from a PEM file.\n The key may be encrypted with a password.\n Private keys (PKCS#8 format), public keys, and X509 certificate's\n public keys can be imported with this interface.\n\n :param data(bytes): The data contained in a PEM file.\n :param passwo... | 101 | false | latchset/jwcrypto | import_from_pem | 141,238 | |
LDU_FT/ryukinix/decorating/default_arguments | LDU_FT | [
"<BEGIN>\n## `default_arguments`",
"Returns the available kwargs of the called class\n<END>",
"<BEGIN>\n## `recreate`",
"Recreate the class based in your args, multiple uses\n<END>",
"<BEGIN>\n## `check_arguments`",
"Put warnings of arguments whose can't be handle by the class\n<END>",
"<BEGIN>\n## `col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Returns the available kwargs of the called class | "Returns the available kwargs of the called class" | 41 | false | ryukinix/decorating | default_arguments | 141,239 | |
LDU_FT/toastdriven/restless/serialize | LDU_FT | [
"<BEGIN>\n## `skip_prepare`",
"A convenience decorator for indicating the raw data should not be prepared.\n<END>",
"<BEGIN>\n## `as_view`",
"Used for hooking up the all endpoints (including custom ones), this\n returns a wrapper function that creates a new instance of the resource\n class & cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | A convenience method for serializing data for a response.
If called on a list-style endpoint, this calls ``serialize_list``.
Otherwise, it will call ``serialize_detail``.
:param method: The HTTP method of the current request
:type method: string
:param endpoint: The endpoint s... | "A convenience method for serializing data for a response.\n\n If called on a list-style endpoint, this calls ``serialize_list``.\n Otherwise, it will call ``serialize_detail``.\n\n :param method: The HTTP method of the current request\n :type method: string\n\n :param endpoint: The e... | 94 | false | toastdriven/restless | serialize | 141,240 | |
LDU_FT/wecatch/app-turbo/join_sys_path | LDU_FT | [
"<BEGIN>\n## `convert_to_record`",
"Wrap mongodb record to a dict record with default value None\n<END>",
"<BEGIN>\n## `instance`",
"Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_sys_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_sys_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | find certain path then load into sys path | "find certain path then load into sys path" | 43 | false | wecatch/app-turbo | join_sys_path | 141,241 | |
LDU_FT/onicagroup/runway/update_api_endpoint | LDU_FT | [
"<BEGIN>\n## `fix_hyphen_commands`",
"Update options to match their module names with underscores.\n<END>",
"<BEGIN>\n## `calculate_hash_of_files`",
"Return a hash of all of the given files at the given root.",
" Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_api_endpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_api_endpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Update app environment file with backend endpoint. | "Update app environment file with backend endpoint." | 130 | false | onicagroup/runway | update_api_endpoint | 141,242 | |
LDU_FT/pypa/twine/from_args | LDU_FT | [
"<BEGIN>\n## `from_args`",
"Return an UploadToDeprecatedPyPIDetected instance.\n<END>",
"<BEGIN>\n## `check_status_code`",
"Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected\n exception, but this is in case that breaks and it does.\n<END>",
"<BEGIN>\n## `no_positional`",
"A decorator that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return an UploadToDeprecatedPyPIDetected instance. | "Return an UploadToDeprecatedPyPIDetected instance." | 14 | false | pypa/twine | from_args | 141,243 | |
LDU_FT/kvesteri/validators/ipv4 | LDU_FT | [
"<BEGIN>\n## `email`",
"Validate an email address.",
" This validator is based on `Django's email validator`_. Returns\n ``True`` on success and :class:`~validators.utils.ValidationFailure`\n when validation fails.",
" Examples::",
" >>> email('someone@example.com')\n True",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipv4 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipv4 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return whether or not given value is a valid IP version 4 address.
This validator is based on `WTForms IPAddress validator`_
.. _WTForms IPAddress validator:
https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
Examples::
>>> ipv4('123.0.0.7')
True
>>> ipv... | "Return whether or not given value is a valid IP version 4 address.\n\n This validator is based on `WTForms IPAddress validator`_\n\n .. _WTForms IPAddress validator:\n https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py\n\n Examples::\n\n >>> ipv4('123.0.0.7')\n True\n\n ... | 102 | false | kvesteri/validators | ipv4 | 141,244 | |
LDU_FT/ashleysommer/sanicpluginsframework/middleware | LDU_FT | [
"<BEGIN>\n## `middleware`",
"Decorate and register middleware\n :param args: captures all of the positional arguments passed in\n :type args: tuple(Any)\n :param kwargs: captures the keyword arguments passed in\n :type kwargs: dict(Any)\n :return: The middleware function to use ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the middleware API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the middleware API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Decorate and register middleware
:param args: captures all of the positional arguments passed in
:type args: tuple(Any)
:param kwargs: captures the keyword arguments passed in
:type kwargs: dict(Any)
:return: The middleware function to use as the decorator
:rtype: fn | "Decorate and register middleware\n :param args: captures all of the positional arguments passed in\n :type args: tuple(Any)\n :param kwargs: captures the keyword arguments passed in\n :type kwargs: dict(Any)\n :return: The middleware function to use as the decorator\n :rtype: ... | 38 | false | ashleysommer/sanicpluginsframework | middleware | 141,245 | |
LDU_FT/django-parler/django-parler/get_view_url | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This method is used by the ``get_translated_url`` template tag.
By default, it uses the :attr:`view_url_name` to generate an URL.
When the URL ``args`` and ``kwargs`` are translatable,
override this function instead to generate the proper URL. | "This method is used by the ``get_translated_url`` template tag.\n\n By default, it uses the :attr:`view_url_name` to generate an URL.\n When the URL ``args`` and ``kwargs`` are translatable,\n override this function instead to generate the proper URL." | 163 | false | django-parler/django-parler | get_view_url | 141,246 | |
LDU_FT/cortical-io/retina-sdk.py/createCategoryFilter | LDU_FT | [
"<BEGIN>\n## `getTerms`",
"Get term objects\n Args:\n term, str: A term in the retina (optional)\n getFingerprint, bool: Configure if the fingerprint should be returned as part of the results (optional)\n startIndex, int: The start-index for pagination (optional)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createCategoryFilter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createCategoryFilter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | get filter for classifier
Args:
filter_name, str: A unique name for the filter. (required)
body, FilterTrainingObject: The list of positive and negative (optional) example items. (required)
retina_name, str: The retina name (required)
Returns: CategoryFilter | "get filter for classifier\n Args:\n filter_name, str: A unique name for the filter. (required)\n body, FilterTrainingObject: The list of positive and negative (optional) example items. (required)\n retina_name, str: The retina name (required)\n Returns: CategoryFilter... | 64 | false | cortical-io/retina-sdk.py | createCategoryFilter | 141,247 | |
LDU_FT/jmoiron/johnny-cache/get_multi_generation | LDU_FT | [
"<BEGIN>\n## `disallowed_table`",
"Returns True if a set of tables is in the blacklist or, if a whitelist is set,\n any of the tables is not in the whitelist. False otherwise.\n<END>",
"<BEGIN>\n## `invalidate`",
"Invalidate the current generation for one or more tables. The arguments\n can be either s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multi_generation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multi_generation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Takes a list of table names and returns an aggregate
value for the generation | "Takes a list of table names and returns an aggregate\n value for the generation" | 38 | false | jmoiron/johnny-cache | get_multi_generation | 141,248 | |
LDU_FT/systemd/python-systemd/add_match | LDU_FT | [
"<BEGIN>\n## `get_catalog`",
"Return catalog entry for the specified ID.",
" `mid` should be either a UUID or a 32 digit hex number.\n<END>",
"<BEGIN>\n## `stream`",
"r\"\"\"Return a file object wrapping a stream to journal.",
" Log messages written to this file as simple newline sepearted text stri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add one or more matches to the filter journal log entries.
All matches of different field are combined with logical AND, and
matches of the same field are automatically combined with logical OR.
Matches can be passed as strings of form "FIELD=value", or keyword
arguments FIELD="value". | "Add one or more matches to the filter journal log entries.\n\n All matches of different field are combined with logical AND, and\n matches of the same field are automatically combined with logical OR.\n Matches can be passed as strings of form \"FIELD=value\", or keyword\n arguments FIELD=\... | 70 | false | systemd/python-systemd | add_match | 141,249 | |
LDU_FT/quora/qcore/get_or_create | LDU_FT | [
"<BEGIN>\n## `lazy_constant`",
"Decorator to make a function that takes no arguments use the LazyConstant class.\n<END>",
"<BEGIN>\n## `lru_cache`",
"Decorator that adds an LRU cache of size maxsize to the decorated function.",
" maxsize is the number of different keys cache can accomodate.\n key_fn i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Gets or creates a new event hook for the specified event (key).
This method treats qcore.EnumBase-typed event keys specially:
enum_member.name is used as key instead of enum instance
in case such a key is passed.
Note that on/off/trigger/safe_trigger methods rely on this method,
... | "Gets or creates a new event hook for the specified event (key).\n\n This method treats qcore.EnumBase-typed event keys specially:\n enum_member.name is used as key instead of enum instance\n in case such a key is passed.\n\n Note that on/off/trigger/safe_trigger methods rely on this method,... | 167 | false | quora/qcore | get_or_create | 141,250 | |
LDU_FT/chimera0/accel-brain-code/Main | LDU_FT | [
"<BEGIN>\n## `draw`",
"Draws samples from the `true` distribution.\r",
" Returns:\r\n `np.ndarray` of samples.\n<END>",
"<BEGIN>\n## `generate`",
"Generate noise samples.\r",
" Returns:\r\n `np.ndarray` of samples.\n<END>",
"<BEGIN>\n## `generate`",
"Draws samples f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Entry Point.
Args:
url: PDF url. | "Entry Point.\n \n Args:\n url: PDF url." | 550 | false | chimera0/accel-brain-code | Main | 141,251 | |
LDU_FT/sendgrid/sendgrid-python/init_environment | LDU_FT | [
"<BEGIN>\n## `threshold`",
"Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.",
" :param value: Threshold used to determine if your content qualifies as\n spam.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_environment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_environment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Allow variables assigned in .env available using
os.environ.get('VAR_NAME') | "Allow variables assigned in .env available using\n os.environ.get('VAR_NAME')" | 229 | false | sendgrid/sendgrid-python | init_environment | 141,252 | |
LDU_FT/Yelp/threat_intel/_extract_response_xml | LDU_FT | [
"<BEGIN>\n## `init_poolmanager`",
"Called to initialize the HTTPAdapter when no proxy is used.\n<END>",
"<BEGIN>\n## `proxy_manager_for`",
"Called to initialize the HTTPAdapter when a proxy is used.\n<END>",
"<BEGIN>\n## `make_calls`",
"Adds appropriate sleep to avoid making too many calls.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_response_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_response_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Extract XML content of an HTTP response into dictionary format.
Args:
response: HTML Response objects
Returns:
A dictionary: {alexa-ranking key : alexa-ranking value}. | "Extract XML content of an HTTP response into dictionary format.\n\n Args:\n response: HTML Response objects\n Returns:\n A dictionary: {alexa-ranking key : alexa-ranking value}." | 149 | false | Yelp/threat_intel | _extract_response_xml | 141,253 | |
LDU_FT/kshlm/gant/stop_cmd | LDU_FT | [
"<BEGIN>\n## `get_container_ip`",
"Returns the internal ip of the container if available\n<END>",
"<BEGIN>\n## `check_permissions`",
"Checks if current user can access docker\n<END>",
"<BEGIN>\n## `build_main_image_cmd`",
"Build the main image to be used for launching containers\n<END>",
"<BEGIN>\n## `l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Stop the specified or all docker containers launched by us | "Stop the specified or all docker containers launched by us" | 14 | false | kshlm/gant | stop_cmd | 141,254 | |
LDU_FT/Chilipp/psy-simple/ycoord | LDU_FT | [
"<BEGIN>\n## `try_and_error`",
"Apply multiple validation functions",
" Parameters\n ----------\n ``*funcs``\n Validation functions to test",
" Returns\n -------\n function\n<END>",
"<BEGIN>\n## `validate_text`",
"Validate a text formatoption",
" Parameters\n ----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ycoord API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ycoord API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | The y coordinate :class:`xarray.Variable` | "The y coordinate :class:`xarray.Variable`" | 183 | false | Chilipp/psy-simple | ycoord | 141,255 | |
LDU_FT/dhylands/rshell/filename_complete | LDU_FT | [
"<BEGIN>\n## `add_device`",
"Adds a device to the list of devices we know about.\n<END>",
"<BEGIN>\n## `is_micropython_usb_device`",
"Checks a USB device to see if it looks like a MicroPython device.\n<END>",
"<BEGIN>\n## `is_micropython_usb_port`",
"Checks to see if the indicated portname is a MicroPytho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename_complete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filename_complete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Wrapper for catching exceptions since cmd seems to silently
absorb them. | "Wrapper for catching exceptions since cmd seems to silently\n absorb them." | 159 | false | dhylands/rshell | filename_complete | 141,256 | |
LDU_FT/mwouts/jupytext/metadata_to_md_options | LDU_FT | [
"<BEGIN>\n## `is_magic`",
"Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>",
"<BEGIN>\n## `metadata_filter_as_dict`",
"Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_to_md_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_to_md_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Encode {'class':None, 'key':'value'} into 'class key="value"' | "Encode {'class':None, 'key':'value'} into 'class key=\"value\"'" | 229 | false | mwouts/jupytext | metadata_to_md_options | 141,257 | |
LDU_FT/lk-geimfari/mimesis/issn | LDU_FT | [
"<BEGIN>\n## `content_type`",
"Get a random HTTP content type.",
" :return: Content type.",
" :Example:\n Content-Type: application/json\n<END>",
"<BEGIN>\n## `ip_v4`",
"Generate a random IPv4 address.",
" :param with_port: Add port to IP.\n :return: Random IPv4 ad... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Generate a random ISSN.
:param mask: Mask of ISSN.
:return: ISSN. | "Generate a random ISSN.\n\n :param mask: Mask of ISSN.\n :return: ISSN." | 559 | false | lk-geimfari/mimesis | issn | 141,258 | |
LDU_FT/django-auth-ldap/django-auth-ldap/_init_group_settings | LDU_FT | [
"<BEGIN>\n## `get_or_build_user`",
"This must return a (User, built) 2-tuple for the given LDAP user.",
" username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.",
" The returned User object ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_group_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_group_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Loads the settings we need to deal with groups.
Raises ImproperlyConfigured if anything's not right. | "Loads the settings we need to deal with groups.\n\n Raises ImproperlyConfigured if anything's not right." | 65 | false | django-auth-ldap/django-auth-ldap | _init_group_settings | 141,259 | |
LDU_FT/ajdavis/mongo-mockup-db/unpack | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch an operation on a thread and get a handle to its future result.",
" >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Parse message and return an `OpKillCursors`.
Takes the client message as bytes, the client and server socket objects,
and the client request id. | "Parse message and return an `OpKillCursors`.\n\n Takes the client message as bytes, the client and server socket objects,\n and the client request id." | 129 | false | ajdavis/mongo-mockup-db | unpack | 141,260 | |
LDU_FT/base4sistemas/satcomum/dados_qrcode | LDU_FT | [
"<BEGIN>\n## `dados_qrcode`",
"Compila os dados que compõem o QRCode do CF-e-SAT, conforme a\n documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo\n Comercial**, a partir de uma instância de ``ElementTree`` que represente a\n árvore do XML do CF-e-SAT.",
" :param cfe: Instânci... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dados_qrcode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dados_qrcode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Compila os dados que compõem o QRCode do CF-e-SAT, conforme a
documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo
Comercial**, a partir de uma instância de ``ElementTree`` que represente a
árvore do XML do CF-e-SAT.
:param cfe: Instância de :py:mod:`xml.etree.ElementTree.ElementT... | "Compila os dados que compõem o QRCode do CF-e-SAT, conforme a\n documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo\n Comercial**, a partir de uma instância de ``ElementTree`` que represente a\n árvore do XML do CF-e-SAT.\n\n :param cfe: Instância de :py:mod:`xml.etree.ElementTree.El... | 61 | false | base4sistemas/satcomum | dados_qrcode | 141,261 | |
LDU_FT/Knoema/knoema-python-driver/check_correct_host | LDU_FT | [
"<BEGIN>\n## `is_equal_strings_ignore_case`",
"The function compares strings ignoring case\n<END>",
"<BEGIN>\n## `find_dimension_by_name`",
"the method searching dimension with a given name\n<END>",
"<BEGIN>\n## `find_dimension_by_id`",
"the method searching dimension with a given id\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_correct_host API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_correct_host API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | The method checks whether the host is correctly set and whether it can configure the connection to this host. Does not check the base host knoema.com | "The method checks whether the host is correctly set and whether it can configure the connection to this host. Does not check the base host knoema.com" | 48 | false | Knoema/knoema-python-driver | check_correct_host | 141,262 | |
LDU_FT/litl/rauth/get_access_token | LDU_FT | [
"<BEGIN>\n## `request`",
"A loose wrapper around Requests' :class:`~requests.sessions.Session`\n which injects OAuth 1.0/a parameters.",
" :param method: A string representation of the HTTP method to be used.\n :type method: str\n :param url: The resource to be requested.\n :t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns an access token pair.
:param request_token: The request token as returned by
:meth:`get_request_token`.
:type request_token: str
:param request_token_secret: The request token secret as returned by
:meth:`get_request_token`.
:type request_token_secret: st... | "Returns an access token pair.\n\n :param request_token: The request token as returned by\n :meth:`get_request_token`.\n :type request_token: str\n :param request_token_secret: The request token secret as returned by\n :meth:`get_request_token`.\n :type request_token_se... | 79 | false | litl/rauth | get_access_token | 141,263 | |
LDU_FT/jazzband/django-axes/handle_setting_changed | LDU_FT | [
"<BEGIN>\n## `get_cool_off`",
"Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.",
" The return value is either None or timedelta.",
" Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_setting_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_setting_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Reinitialize handler implementation if a relevant setting changes
in e.g. application reconfiguration or during testing. | "Reinitialize handler implementation if a relevant setting changes\n in e.g. application reconfiguration or during testing." | 94 | false | jazzband/django-axes | handle_setting_changed | 141,264 | |
LDU_FT/MakerReduxCorp/PLOD/eq | LDU_FT | [
"<BEGIN>\n## `dropKey`",
"Drop an attribute/element/key-value pair from all the dictionaries.",
" If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.",
" Side effect: if the key is a number and it matches a list (interpreted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Return entries where the key's value is of equal (==) value.
Example of use:
>>> test = [
... {"name": "Jim", "age": 18, "income": 93000, "wigs": 68 },
... {"name": "Larry", "age": 18, "wigs": [3, 2, 9]},
... {"name": "Joe", "age": 20, "incom... | "Return entries where the key's value is of equal (==) value.\n\n Example of use:\n\n >>> test = [\n ... {\"name\": \"Jim\", \"age\": 18, \"income\": 93000, \"wigs\": 68 },\n ... {\"name\": \"Larry\", \"age\": 18, \"wigs\": [3, 2, 9]},\n ... {\"name\"... | 199 | false | MakerReduxCorp/PLOD | eq | 141,265 | |
LDU_FT/swisscom/cleanerversion/get_versioned_delete_collector_class | LDU_FT | [
"<BEGIN>\n## `get_readonly_fields`",
"This is required a subclass of VersionedAdmin has readonly_fields\n ours won't be undone\n<END>",
"<BEGIN>\n## `get_list_display`",
"This method determines which fields go in the changelist\n<END>",
"<BEGIN>\n## `get_list_filter`",
"Adds versionable custom filt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_versioned_delete_collector_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_versioned_delete_collector_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Gets the class to use for deletion collection.
:return: class | "Gets the class to use for deletion collection.\n\n :return: class" | 149 | false | swisscom/cleanerversion | get_versioned_delete_collector_class | 141,266 | |
LDU_FT/afilipovich/gglsbl/dump_hash_prefix_values | LDU_FT | [
"<BEGIN>\n## `lookup_hash_prefix`",
"Lookup hash prefixes by cue (first 4 bytes of hash)",
" Returns a tuple of (value, negative_cache_expired).\n<END>",
"<BEGIN>\n## `store_full_hash`",
"Store full hash found for the given hash prefix\n<END>",
"<BEGIN>\n## `get_client_state`",
"Get a dict of kno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_hash_prefix_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_hash_prefix_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Export all hash prefix values.
Returns a list of known hash prefix values | "Export all hash prefix values.\n\n Returns a list of known hash prefix values" | 35 | false | afilipovich/gglsbl | dump_hash_prefix_values | 141,267 | |
LDU_FT/pmacosta/pmisc/_ex_type_str | LDU_FT | [
"<BEGIN>\n## `make_dir`",
"Create the directory of a fully qualified file name if it does not exist.",
" :param fname: File name\n :type fname: string",
" Equivalent to these Bash shell commands:",
" .. code-block:: bash",
" $ fname=\"${HOME}/mydir/myfile.txt\"\n $ dir=$(dirname... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ex_type_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ex_type_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a string corresponding to the exception type. | "Return a string corresponding to the exception type." | 151 | false | pmacosta/pmisc | _ex_type_str | 141,268 | |
LDU_FT/clld/cdstarcat/add | LDU_FT | [
"<BEGIN>\n## `add`",
"Add an existing CDSTAR object to the catalog.",
" :param obj: A pycdstar.resource.Object instance\n<END>",
"<BEGIN>\n## `delete`",
"Delete an object in CDSTAR and remove it from the catalog.",
" :param obj: An object ID or an Object instance.\n<END>",
"<BEGIN>\n## `cr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | cdstarcat add SPEC
Add metadata about objects (specified by SPEC) in CDSTAR to the catalog.
SPEC: Either a CDSTAR object ID or a query. | "cdstarcat add SPEC\n\n Add metadata about objects (specified by SPEC) in CDSTAR to the catalog.\n SPEC: Either a CDSTAR object ID or a query." | 28 | false | clld/cdstarcat | add | 141,269 | |
LDU_FT/DaveMcEwan/ndim/dir_on_bezier_curve | LDU_FT | [
"<BEGIN>\n## `pt_on_bezier_curve`",
"Return point at t on bezier curve defined by control points P.\n<END>",
"<BEGIN>\n## `pts_on_bezier_curve`",
"Return list N+1 points representing N line segments on bezier curve\n defined by control points P.\n<END>",
"<BEGIN>\n## `bezier_curve_approx_len`",
"Return a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir_on_bezier_curve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dir_on_bezier_curve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return direction at t on bezier curve defined by control points P.
List of vectors per pair of dimensions are returned in radians.
E.g. Where X is "right", Y is "up", Z is "in" on a computer screen, and
returned value is [pi/4, -pi/4], then the vector will be coming out the
screen over the viewer's right shoulder. | "Return direction at t on bezier curve defined by control points P.\nList of vectors per pair of dimensions are returned in radians.\nE.g. Where X is \"right\", Y is \"up\", Z is \"in\" on a computer screen, and\n returned value is [pi/4, -pi/4], then the vector will be coming out the\n screen over the viewer's right... | 40 | false | DaveMcEwan/ndim | dir_on_bezier_curve | 141,270 | |
LDU_FT/combust/mleap/fit | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit label encoder",
" Parameters\n ----------\n y : array-like of shape (n_samples,)\n Target values.",
" Returns\n -------\n self : returns an instance of self.\n<END>",
"<BEGIN>\n## `fit_transform`",
"Fit label encoder and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Fit Unary Math Operator
:param y:
:return: | "Fit Unary Math Operator\n :param y:\n :return:" | 34 | false | combust/mleap | fit | 141,271 | |
LDU_FT/ThreshingFloor/libtf/_extract_line_features | LDU_FT | [
"<BEGIN>\n## `_extract_features`",
"Extracts and sets the feature data from the log file necessary for a reduction\n<END>",
"<BEGIN>\n## `_extract_line_features`",
"Parse raw log lines and convert it to a dictionary with extracted features.\n<END>",
"<BEGIN>\n## `_analyze`",
"Decide which lines should be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_line_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_line_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Parse raw log lines and convert it to a dictionary with extracted features. | "Parse raw log lines and convert it to a dictionary with extracted features." | 25 | false | ThreshingFloor/libtf | _extract_line_features | 141,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.