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/ppb/pursuedpybear/on_start_scene
LDU_FT
[ "<BEGIN>\n## `on_start_scene`", "Start a new scene. The current scene pauses.\n<END>", "<BEGIN>\n## `on_stop_scene`", "Stop a running scene. If there's a scene on the stack, it resumes.\n<END>", "<BEGIN>\n## `on_replace_scene`", "Replace the running scene with a new one.\n<END>", "<BEGIN>\n## `register`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_start_scene 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 on_start_scene 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...
Start a new scene. The current scene pauses.
"Start a new scene. The current scene pauses."
53
false
ppb/pursuedpybear
on_start_scene
21,373
LDU_FT/gumblex/zhconv/getdict
LDU_FT
[ "<BEGIN>\n## `loaddict`", "Load the dictionary from a specific JSON file.\n<END>", "<BEGIN>\n## `getdict`", "Generate or get convertion dict cache for certain locale.\n Dictionaries are loaded on demand.\n<END>", "<BEGIN>\n## `issimp`", "Detect text is whether Simplified Chinese or Traditional Chinese....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getdict 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 getdict 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...
Generate or get convertion dict cache for certain locale. Dictionaries are loaded on demand.
"Generate or get convertion dict cache for certain locale.\n Dictionaries are loaded on demand."
16
false
gumblex/zhconv
getdict
21,374
LDU_FT/mrstephenneal/dirutility/_resolve_file_name
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to an FTP server and return ftplib.FTP object.\n<END>", "<BEGIN>\n## `get`", "Download a remote file on the fto sever to a local directory.", " :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_file_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_file_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. Th...
Create a filename for the destination zip file.
"Create a filename for the destination zip file."
92
false
mrstephenneal/dirutility
_resolve_file_name
21,375
LDU_FT/alphagov/performanceplatform-collector/try_number
LDU_FT
[ "<BEGIN>\n## `parse_time_range`", "Convert the start/end datetimes specified by the user, specifically:\n - truncate any minutes/seconds\n - for a missing end time, use start + 24 hours\n - for a missing start time, use end - 24 hours\n - for missing start and end, use the last 24 hours\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_number 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 try_number 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...
Attempt to cast the string `value` to an int, and failing that, a float, failing that, raise a ValueError.
"Attempt to cast the string `value` to an int, and failing that, a float,\n failing that, raise a ValueError."
56
false
alphagov/performanceplatform-collector
try_number
21,376
LDU_FT/hadrianl/huobi/register_onRsp
LDU_FT
[ "<BEGIN>\n## `async_request`", "异步并发请求\n :param reqs: 请求列表\n :return:\n<END>", "<BEGIN>\n## `get_kline`", "获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_onRsp 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 register_onRsp 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...
添加回调处理函数的装饰器 :param req: 具体的topic,如 :return:
"添加回调处理函数的装饰器\n :param req: 具体的topic,如\n :return:"
108
false
hadrianl/huobi
register_onRsp
21,377
LDU_FT/openstax/cnx-archive/republish_module
LDU_FT
[ "<BEGIN>\n## `redirect_legacy_content`", "Redirect from legacy /content/id/version to new /contents/uuid@version.", " Handles collection context (book) as well.\n<END>", "<BEGIN>\n## `robots`", "Return a simple \"don't index me\" robots.txt file.\n<END>", "<BEGIN>\n## `_get_sql`", "Returns the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the republish_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the republish_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. The ...
When a module is republished, create new minor versions of collections. All collections (including subcollections) that this module is contained in part of will need to be updated (a minor update). e.g. there is a collection c1 v2.1, which contains a chapter sc1 v2.1, which contains a module m1 v3. Wh...
"When a module is republished, create new minor versions of collections.\n\n All collections (including subcollections) that this module is contained\n in part of will need to be updated (a minor update).\n\n e.g. there is a collection c1 v2.1, which contains a chapter sc1 v2.1,\n which contains a module m1...
208
false
openstax/cnx-archive
republish_module
21,378
LDU_FT/psphere-project/psphere/invoke
LDU_FT
[ "<BEGIN>\n## `get_options`", "Get the options that have been set.", " Called after the user has added all their own options\n and is ready to use the variables.\n<END>", "<BEGIN>\n## `_get_dataobject`", "This function only gets called if the decorated property\n doesn't have a value in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke 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 invoke 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 ...
Invoke a method on the server. >>> client.invoke('CurrentTime', client.si) :param method: The method to invoke, as found in the SDK. :type method: str :param _this: The managed object reference against which to invoke \ the method. :type _this: ManagedObject :pa...
"Invoke a method on the server.\n\n >>> client.invoke('CurrentTime', client.si)\n\n :param method: The method to invoke, as found in the SDK.\n :type method: str\n :param _this: The managed object reference against which to invoke \\\n the method.\n :type _this: ManagedObject\n...
82
false
psphere-project/psphere
invoke
21,379
LDU_FT/konstantint/matplotlib-venn/compute_venn2_regions
LDU_FT
[ "<BEGIN>\n## `point_in_circle`", "Returns true if a given point is located inside (or on the border) of a circle.", " >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>", "<BEGIN>\n## `circle_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_venn2_regions 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 compute_venn2_regions 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 a triple of VennRegion objects, describing the three regions of the diagram, corresponding to sets (Ab, aB, AB) >>> centers, radii = solve_venn2_circles((1, 1, 0.5)) >>> regions = compute_venn2_regions(centers, radii)
"Returns a triple of VennRegion objects, describing the three regions of the diagram, corresponding to sets\n (Ab, aB, AB)\n\n >>> centers, radii = solve_venn2_circles((1, 1, 0.5))\n >>> regions = compute_venn2_regions(centers, radii)"
166
false
konstantint/matplotlib-venn
compute_venn2_regions
21,380
LDU_FT/wilson-eft/wilson/m2Lambda_to_vMh2
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 m2Lambda_to_vMh2 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 m2Lambda_to_vMh2 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 numerically determine the physical Higgs VEV and mass given the parameters of the Higgs potential.
"Function to numerically determine the physical Higgs VEV and mass\n given the parameters of the Higgs potential."
216
false
wilson-eft/wilson
m2Lambda_to_vMh2
21,381
LDU_FT/budacom/trading-bots/createbot
LDU_FT
[ "<BEGIN>\n## `fetch_deposits`", "Fetch latest deposits, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_deposits_since`", "Fetch all deposits since the given timestamp.\n<END>", "<BEGIN>\n## `fetch_withdrawals`", "Fetch latest withdrawals, must provide a limit.\n<END>", "<BEGIN>\n## `fetch_withdrawal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createbot 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 createbot 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...
Creates a Bot's directory structure for the given bot NAME in the current directory or optionally in the given DIRECTORY.
"Creates a Bot's directory structure for the given bot NAME in\n the current directory or optionally in the given DIRECTORY."
62
false
budacom/trading-bots
createbot
21,382
LDU_FT/rtfd/sphinx-autoapi/is_constructor
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_constructor 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 is_constructor 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...
Check if the function is a constructor. :param node: The node to check. :type node: astroid.nodes.FunctionDef :returns: True if the function is a contructor, False otherwise. :rtype: bool
"Check if the function is a constructor.\n\n :param node: The node to check.\n :type node: astroid.nodes.FunctionDef\n\n :returns: True if the function is a contructor, False otherwise.\n :rtype: bool"
169
false
rtfd/sphinx-autoapi
is_constructor
21,383
LDU_FT/squidsoup/muddle.py/authenticate
LDU_FT
[ "<BEGIN>\n## `valid_options`", "Checks that kwargs are valid API options\n<END>", "<BEGIN>\n## `create`", "Create a new course", " :param string fullname: The course's fullname\n :param string shortname: The course's shortname\n :param int category_id: The course's category", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate 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 authenticate 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...
Returns a muddle instance, with API key and url set for requests.
"Returns a muddle instance, with API key and url set for requests."
44
false
squidsoup/muddle.py
authenticate
21,384
LDU_FT/mgoral/subconvert/_writeFile
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _writeFile 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 _writeFile 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...
Safe file writing. Most common mistakes are checked against and reported before write operation. After that, if anything unexpected happens, user won't be left without data or with corrupted one as this method writes to a temporary file and then simply renames it (which should be atomic operatio...
"Safe file writing. Most common mistakes are checked against and reported before write\n operation. After that, if anything unexpected happens, user won't be left without data or\n with corrupted one as this method writes to a temporary file and then simply renames it\n (which should be atomic oper...
50
false
mgoral/subconvert
_writeFile
21,385
LDU_FT/szastupov/aiotg/kick_chat_member
LDU_FT
[ "<BEGIN>\n## `loop`", "Return bot's main loop as coroutine. Use with asyncio.", " :Example:", " >>> loop = asyncio.get_event_loop()\n >>> loop.run_until_complete(bot.loop())", " or", " >>> loop = asyncio.get_event_loop()\n >>> loop.create_task(bot.loop())\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kick_chat_member 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 kick_chat_member 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 ...
Use this method to kick a user from a group or a supergroup. The bot must be an administrator in the group for this to work. :param int user_id: Unique identifier of the target user
"Use this method to kick a user from a group or a supergroup.\n The bot must be an administrator in the group for this to work.\n\n :param int user_id: Unique identifier of the target user"
134
false
szastupov/aiotg
kick_chat_member
21,386
LDU_FT/srittau/python-asserts/assert_almost_equal
LDU_FT
[ "<BEGIN>\n## `assert_true`", "Fail the test unless the expression is truthy.", " >>> assert_true(\"Hello World!\")\n >>> assert_true(\"\")\n Traceback (most recent call last):\n ...\n AssertionError: '' is not truthy", " The following msg_fmt arguments are supported:\n * msg - the def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_almost_equal 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 assert_almost_equal 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...
Fail if first and second are not equal after rounding. By default, the difference between first and second is rounded to 7 decimal places. This can be configured with the places argument. Alternatively, delta can be used to specify the maximum allowed difference between first and second. If first ...
"Fail if first and second are not equal after rounding.\n\n By default, the difference between first and second is rounded to\n 7 decimal places. This can be configured with the places argument.\n Alternatively, delta can be used to specify the maximum allowed\n difference between first and second.\n\n I...
131
false
srittau/python-asserts
assert_almost_equal
21,387
LDU_FT/liip/taxi/get_installed_plugins
LDU_FT
[ "<BEGIN>\n## `round_to_quarter`", "Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>", "<BEGIN>\n## `_timesheets_callback`", "Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_installed_plugins 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_installed_plugins 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 a dict {plugin_name: version} of installed plugins.
"Return a dict {plugin_name: version} of installed plugins."
131
false
liip/taxi
get_installed_plugins
21,388
LDU_FT/elifesciences/elife-article/build_related_articles
LDU_FT
[ "<BEGIN>\n## `build_contributors`", "Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>", "<BEGIN>\n## `build_datasets`", "Given datasets in JSON format, build and return a list of dataset objects\n<END>", "<BEGIN>\n## `build_data_availability`", "Given da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_related_articles 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 build_related_articles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Given parsed data build a list of related article objects
"Given parsed data build a list of related article objects"
44
false
elifesciences/elife-article
build_related_articles
21,389
LDU_FT/bluekeyes/sphinx-javalink/extract_class
LDU_FT
[ "<BEGIN>\n## `extract_class`", "Extracts a LinkableClass from a jar.", " Args:\n jar: An open ZipFile instance.\n name: A string containing the binary name of a class.", " Raises:\n KeyError: The class does not exist in the jar.\n<END>", "<BEGIN>\n## `normalize_docroot`", "Creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_class 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 extract_class 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...
Extracts a LinkableClass from a jar. Args: jar: An open ZipFile instance. name: A string containing the binary name of a class. Raises: KeyError: The class does not exist in the jar.
"Extracts a LinkableClass from a jar.\n\n Args:\n jar: An open ZipFile instance.\n name: A string containing the binary name of a class.\n\n Raises:\n KeyError: The class does not exist in the jar."
19
false
bluekeyes/sphinx-javalink
extract_class
21,390
LDU_FT/elifesciences/proofreader-python/_run_command
LDU_FT
[ "<BEGIN>\n## `col_widths`", "Get MAX possible width of each column in the table.", " :return: defaultdict\n<END>", "<BEGIN>\n## `_marker_line`", "Generate a correctly sized marker line.", " e.g.", " '+------------------+---------+----------+---------+'", " :return: str\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_command 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 _run_command 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...
Runs `command` + `targets` + `options` in a subprocess and returns a boolean determined by the process return code. >>> result = run_command('pylint', ['foo.py', 'some_module'], ['-E']) >>> result True :param command: str :param targets: List[str] :param options: List[str] :return:...
"Runs `command` + `targets` + `options` in a\n subprocess and returns a boolean determined by the\n process return code.\n\n >>> result = run_command('pylint', ['foo.py', 'some_module'], ['-E'])\n >>> result\n True\n\n :param command: str\n :param targets: List[str]\n :param options: List[str]\n...
44
false
elifesciences/proofreader-python
_run_command
21,391
LDU_FT/theosysbio/means/_generate_problem_left_hand_side
LDU_FT
[ "<BEGIN>\n## `simulate_system`", "Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.", " :param parameters: list of the init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_problem_left_hand_side API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_problem_left_hand_side API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Generate the left hand side of the ODEs. This is simply the symbols for the corresponding moments. Note that, in principle, they are in of course fact the time derivative of the moments. :param n_counter: a list of :class:`~means.core.descriptors.Moment`\s representing central mome...
"Generate the left hand side of the ODEs. This is simply the\r\n symbols for the corresponding moments.\r\n Note that, in principle, they are in of course fact the\r\n time derivative of the moments.\r\n\r\n :param n_counter: a list of :class:`~means.core.descriptors.Moment`\\s representing ...
244
false
theosysbio/means
_generate_problem_left_hand_side
21,392
LDU_FT/astooke/gtimer/load_pkl
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_pkl 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 load_pkl 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...
Unpickle file contents. Args: filenames (str): Can be one or a list or tuple of filenames to retrieve. Returns: Times: A single object, or from a collection of filenames, a list of Times objects. Raises: TypeError: If any loaded object is not a Times object.
"Unpickle file contents.\n\n Args:\n filenames (str): Can be one or a list or tuple of filenames to retrieve.\n\n Returns:\n Times: A single object, or from a collection of filenames, a list of Times objects.\n\n Raises:\n TypeError: If any loaded object is not a Times object."
137
false
astooke/gtimer
load_pkl
21,393
LDU_FT/kavdev/ldap-groups/get_member_info
LDU_FT
[ "<BEGIN>\n## `_get_valididty`", "Determines whether this AD Group is valid.\r", " :returns: True and \"\" if this group is valid or False and a string description\r\n with the reason why it isn't valid otherwise.\n<END>", "<BEGIN>\n## `get_attribute`", "Gets the passed attribute of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_member_info 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_member_info 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...
Retrieves member information from the AD group object. :param page_size (optional): Many servers have a limit on the number of results that can be returned. Paged searches circumvent that limit. Adjust the page_size to be below the s...
"Retrieves member information from the AD group object.\r\n\r\n :param page_size (optional): Many servers have a limit on the number of results that can be returned.\r\n Paged searches circumvent that limit. Adjust the page_size to be below the\r\n ...
59
false
kavdev/ldap-groups
get_member_info
21,394
LDU_FT/erkghlerngm44/malaffinity/calculate_affinity
LDU_FT
[ "<BEGIN>\n## `myanimelist`", "Retrieve a users' animelist scores from MAL.", " Only anime scored > 0 will be returned, and all\n PTW entries are ignored, even if they are scored.", " :param str username: MAL username\n :return: `id`, `score` pairs\n :rtype: list\n<END>", "<BEGIN>\n## `pearson...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_affinity 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 calculate_affinity 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...
Quick one-off affinity calculations. Creates an instance of the ``MALAffinity`` class with ``user1``, then calculates affinity with ``user2``. :param str user1: First user :param str user2: Second user :param round: Decimal places to round affinity values to. Specify ``False`` for no round...
"Quick one-off affinity calculations.\n\n Creates an instance of the ``MALAffinity`` class with ``user1``,\n then calculates affinity with ``user2``.\n\n :param str user1: First user\n :param str user2: Second user\n :param round: Decimal places to round affinity values to.\n Specify ``False`` for...
35
false
erkghlerngm44/malaffinity
calculate_affinity
21,395
LDU_FT/OpenGov/carpenter/_validate_columns
LDU_FT
[ "<BEGIN>\n## `get_cell_type`", "Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>", "<BEGIN>\n## `check_cell_type`", "Checks the cell type to see if it represents the cell_type passed in.", " Args:\n cell_type: The type id for a cell match...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_columns 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 _validate_columns 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...
Same as _validate_rows but for columns. Also ignore used_cells as _validate_rows should update used_cells.
"Same as _validate_rows but for columns. Also ignore used_cells as _validate_rows should\n update used_cells."
123
false
OpenGov/carpenter
_validate_columns
21,396
LDU_FT/sleibman/python-conduit/_before_valid_time_range
LDU_FT
[ "<BEGIN>\n## `topological_sort`", "Topological sort returns an ordered list of blocks.\n Sorting guarantee is that if block A is upstream of block B, block A will come before block B in the sorted list.\n Sorting is implemented by first building a shadow copy of the graph and then removing items from the sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _before_valid_time_range 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 _before_valid_time_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
In case of uncertainty (times not specified), we assume that we are in a valid range.
"In case of uncertainty (times not specified), we assume that we are in a valid range."
19
false
sleibman/python-conduit
_before_valid_time_range
21,397
LDU_FT/ManiacalLabs/PixelWeb/decode
LDU_FT
[ "<BEGIN>\n## `_re_flatten`", "Turn all capturing groups in a regular expression pattern into\n non-capturing groups.\n<END>", "<BEGIN>\n## `redirect`", "Aborts execution and causes a 303 or 302 redirect, depending on\n the HTTP protocol version.\n<END>", "<BEGIN>\n## `_file_iter_range`", "Yi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode 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 decode 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 ...
Returns a copy with all keys and values de- or recoded to match :attr:`input_encoding`. Some libraries (e.g. WTForms) want a unicode dictionary.
"Returns a copy with all keys and values de- or recoded to match\n :attr:`input_encoding`. Some libraries (e.g. WTForms) want a\n unicode dictionary."
100
false
ManiacalLabs/PixelWeb
decode
21,398
LDU_FT/booktype/python-ooxml/parse_endnotes
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_endnotes 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 parse_endnotes 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...
Parse endnotes document. Endnotes are defined in file 'endnotes.xml'
"Parse endnotes document.\n\n Endnotes are defined in file 'endnotes.xml'"
117
false
booktype/python-ooxml
parse_endnotes
21,399
LDU_FT/psd-tools/psd-tools/read_fmt
LDU_FT
[ "<BEGIN>\n## `open`", "Open the smart object as binary IO.", " :param external_dir: Path to the directory of the external file.", " Example::", " with layer.smart_object.open() as f:\n data = f.read()\n<END>", "<BEGIN>\n## `data`", "Embedded file content, or empty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_fmt 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 read_fmt 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...
Reads data from ``fp`` according to ``fmt``.
"Reads data from ``fp`` according to ``fmt``."
173
false
psd-tools/psd-tools
read_fmt
21,400
LDU_FT/Kentzo/git-archive-all/is_file_excluded
LDU_FT
[ "<BEGIN>\n## `create`", "Create the archive at output_file_path.", " Type of the archive is determined either by extension of output_file_path or by output_format.\n Supported formats are: gz, zip, bz2, xz, tar, tgz, txz", " @param output_path: Output file path.\n @type output_path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_file_excluded 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 is_file_excluded 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 ...
Checks whether file at a given path is excluded. @param repo_abspath: Absolute path to the git repository. @type repo_abspath: str @param repo_file_path: Path to a file relative to repo_abspath. @type repo_file_path: str @return: True if file should be excluded. Otherwise Fals...
"Checks whether file at a given path is excluded.\n\n @param repo_abspath: Absolute path to the git repository.\n @type repo_abspath: str\n\n @param repo_file_path: Path to a file relative to repo_abspath.\n @type repo_file_path: str\n\n @return: True if file should be excluded. Other...
35
false
Kentzo/git-archive-all
is_file_excluded
21,401
LDU_FT/swift-nav/libsbp/handle_fields
LDU_FT
[ "<BEGIN>\n## `read`", "Read wrapper.", " Parameters\n ----------\n size : int\n Number of bytes to read.\n<END>", "<BEGIN>\n## `handle_fields`", "Helper for handling naming and sizing of fields. It's terrible.\n<END>", "<BEGIN>\n## `convert`", "Converts to a C language appr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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. The ext...
Helper for handling naming and sizing of fields. It's terrible.
"Helper for handling naming and sizing of fields. It's terrible."
114
false
swift-nav/libsbp
handle_fields
21,402
LDU_FT/villebro/pyhtzee/score_large_straight_yahtzee
LDU_FT
[ "<BEGIN>\n## `score_x_of_a_kind_yahtzee`", "Return sum of dice if there are a minimum of equal min_same_faces dice, otherwise\n return zero. Only works for 3 or more min_same_faces.\n<END>", "<BEGIN>\n## `score_x_of_a_kind_yatzy`", "Similar to yahtzee, but only return the sum of the dice that satisfy min_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_large_straight_yahtzee API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_large_straight_yahtzee API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Large straight scoring according to regular yahtzee rules
"Large straight scoring according to regular yahtzee rules"
12
false
villebro/pyhtzee
score_large_straight_yahtzee
21,403
LDU_FT/dask/dask-ml/inverse_transform
LDU_FT
[ "<BEGIN>\n## `normalize_params`", "Take a list of dictionaries, and tokenize/normalize.\n<END>", "<BEGIN>\n## `check_cv`", "Dask aware version of ``sklearn.model_selection.check_cv``", " Same as the scikit-learn version, but works if ``y`` is a dask object.\n<END>", "<BEGIN>\n## `compute_n_splits`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inverse_transform 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 inverse_transform 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...
Inverse ordinal-encode the columns in `X` Parameters ---------- X : array or dataframe Either the NumPy, dask, or pandas version Returns ------- data : DataFrame Dask array or dataframe will return a Dask DataFrame. Numpy array or pan...
"Inverse ordinal-encode the columns in `X`\n\n Parameters\n ----------\n X : array or dataframe\n Either the NumPy, dask, or pandas version\n\n Returns\n -------\n data : DataFrame\n Dask array or dataframe will return a Dask DataFrame.\n Numpy ...
361
false
dask/dask-ml
inverse_transform
21,404
LDU_FT/emin63/eyap/get_readme
LDU_FT
[ "<BEGIN>\n## `make_anchor_id`", "Return string to use as URL anchor for this comment.\n<END>", "<BEGIN>\n## `make_url`", "Make URL to this comment.", " :arg my_request: The request object where this comment is seen from.", " :arg anchor_id=None: Optional anchor id. If None, we use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_readme 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 get_readme 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...
Get the long description from the README file
"Get the long description from the README file"
126
false
emin63/eyap
get_readme
21,405
LDU_FT/Stranger6667/postmarker/prepare_attachments
LDU_FT
[ "<BEGIN>\n## `create`", "Creates a template.", " :param Name: Name of template\n :param Subject: The content to use for the Subject when this template is used to send email.\n :param HtmlBody: The content to use for the HtmlBody when this template is used to send email.\n :param Text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_attachments 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 prepare_attachments 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...
Converts incoming attachment into dictionary.
"Converts incoming attachment into dictionary."
74
false
Stranger6667/postmarker
prepare_attachments
21,406
LDU_FT/tox-dev/tox-travis/after_config_matches
LDU_FT
[ "<BEGIN>\n## `travis_after`", "Wait for all jobs to finish, then exit successfully.\n<END>", "<BEGIN>\n## `after_config_matches`", "Determine if this job should wait for the others.\n<END>", "<BEGIN>\n## `get_job_statuses`", "Wait for all the travis jobs to complete.", " Once the other jobs are compl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after_config_matches 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 after_config_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determine if this job should wait for the others.
"Determine if this job should wait for the others."
51
false
tox-dev/tox-travis
after_config_matches
21,407
LDU_FT/ns1/ns1-python/datafeed
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datafeed 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 datafeed 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 raw REST interface to feed resources :rtype: :py:class:`ns1.rest.data.Feed`
"Return a new raw REST interface to feed resources\n\n :rtype: :py:class:`ns1.rest.data.Feed`"
159
false
ns1/ns1-python
datafeed
21,408
LDU_FT/dicaso/leopard/outputPDF
LDU_FT
[ "<BEGIN>\n## `makeFigFromFile`", "Renders an image in a matplotlib figure, so it can be added to reports \n args and kwargs are passed to plt.subplots\n<END>", "<BEGIN>\n## `append`", "Append a new section\n If toSection is None, section is appended to the main section/subs list.\n Else if to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outputPDF 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 outputPDF 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...
Makes a pdf report with pylatex *kwargs* are send to doc.generate_pdf -> see pylatex.Document.generate_pdf for help
"Makes a pdf report with pylatex\n *kwargs* are send to doc.generate_pdf \n -> see pylatex.Document.generate_pdf for help"
26
false
dicaso/leopard
outputPDF
21,409
LDU_FT/rossant/ipymd/create_reader
LDU_FT
[ "<BEGIN>\n## `_get_html_contents`", "Process a HTML block and detects whether it is a code block,\n a math block, or a regular HTML block.\n<END>", "<BEGIN>\n## `format_manager`", "Return the instance singleton, creating if necessary\n<END>", "<BEGIN>\n## `register_entrypoints`", "Look through the `set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_reader 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 create_reader 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...
Create a new reader instance for a given format.
"Create a new reader instance for a given format."
64
false
rossant/ipymd
create_reader
21,410
LDU_FT/zeth/inputs/__emulate_axis
LDU_FT
[ "<BEGIN>\n## `chunks`", "Yield successive EVENT_SIZE sized chunks from raw.\n<END>", "<BEGIN>\n## `quartz_mouse_process`", "Single subprocess for reading mouse events on Mac using newer Quartz.\n<END>", "<BEGIN>\n## `appkit_mouse_process`", "Single subprocess for reading mouse events on Mac using older Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __emulate_axis 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 __emulate_axis 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...
Make the axis events use the Linux style format.
"Make the axis events use the Linux style format."
109
false
zeth/inputs
__emulate_axis
21,411
LDU_FT/PetrochukM/PyTorch-NLP/_init_alphabet_from_tokens
LDU_FT
[ "<BEGIN>\n## `imdb_dataset`", "Load the IMDB dataset (Large Movie Review Dataset v1.0).", " This is a dataset for binary sentiment classification containing substantially more data than\n previous benchmark datasets. Provided a set of 25,000 highly polar movie reviews for\n training, and 25,000 for tes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_alphabet_from_tokens 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 _init_alphabet_from_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Initialize alphabet from an iterable of token or subtoken strings.
"Initialize alphabet from an iterable of token or subtoken strings."
261
false
PetrochukM/PyTorch-NLP
_init_alphabet_from_tokens
21,412
LDU_FT/luismasuelli/django-trackmodels-ritual/lookups
LDU_FT
[ "<BEGIN>\n## `lookups`", "Performs lookup in the same way the reporting tool allows to generate a report.\n :param request: Current request\n :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v).\n :raises: AttributeError, ValueError, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookups 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 lookups 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...
Performs lookup in the same way the reporting tool allows to generate a report. :param request: Current request :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v). :raises: AttributeError, ValueError, or any exception triggered by get_peri...
"Performs lookup in the same way the reporting tool allows to generate a report.\n :param request: Current request\n :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v).\n :raises: AttributeError, ValueError, or any exception triggered by get_...
28
false
luismasuelli/django-trackmodels-ritual
lookups
21,413
LDU_FT/astooke/gtimer/timed_loop
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timed_loop 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 timed_loop 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...
Instantiate a TimedLoop object for measuring loop iteration timing data. Can be used with either for or while loops. Example:: loop = timed_loop() while x > 0: # or for x in <iterable>: next(loop) # or loop.next() <body of loop, with gtimer stamps> loop.exit()...
"Instantiate a TimedLoop object for measuring loop iteration timing data.\n Can be used with either for or while loops.\n\n Example::\n\n loop = timed_loop()\n while x > 0: # or for x in <iterable>:\n next(loop) # or loop.next()\n <body of loop, with gtimer stamps>\n l...
137
false
astooke/gtimer
timed_loop
21,414
LDU_FT/erikrose/peep/_is_always_unsatisfied
LDU_FT
[ "<BEGIN>\n## `activate`", "Make a compatible version of pip importable. Raise a RuntimeError if we\n couldn't.\n<END>", "<BEGIN>\n## `path_and_line`", "Return the path and line number of the file from which an\n InstallRequirement came.\n<END>", "<BEGIN>\n## `hashes_above`", "Yield hashes from conti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_always_unsatisfied 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_always_unsatisfied 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 whether this requirement is always unsatisfied This would happen in cases where we can't determine the version from the filename.
"Returns whether this requirement is always unsatisfied\n\n This would happen in cases where we can't determine the version\n from the filename."
53
false
erikrose/peep
_is_always_unsatisfied
21,415
LDU_FT/sdispater/backpack/flatten
LDU_FT
[ "<BEGIN>\n## `avg`", "Get the average value of a given key.", " :param key: The key to get the average for\n :type key: mixed", " :rtype: float or int\n<END>", "<BEGIN>\n## `chunk`", "Chunk the underlying collection.", " :param size: The chunk size\n :type size: int", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten 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 flatten 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...
Get a flattened list of the items in the collection. :rtype: Collection
"Get a flattened list of the items in the collection.\n\n :rtype: Collection"
137
false
sdispater/backpack
flatten
21,416
LDU_FT/datadotworld/data.world-py/name
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Sets the name of this FileCreateOrUpdateRequest. File name. Should include type extension always when possible. Must not include slashes. :param name: The name of this FileCreateOrUpdateRequest. :type: str
"Sets the name of this FileCreateOrUpdateRequest.\n File name. Should include type extension always when possible. Must not include slashes.\n\n :param name: The name of this FileCreateOrUpdateRequest.\n :type: str"
398
false
datadotworld/data.world-py
name
21,417
LDU_FT/jorisroovers/pymarkdownlint/find_files
LDU_FT
[ "<BEGIN>\n## `find_files`", "Finds files with an (optional) given extension in a given path.\n<END>", "<BEGIN>\n## `apply_on_csv_string`", "Splits a given string by comma, trims whitespace on the resulting strings and applies a given ```func``` to\n each item.\n<END>", "<BEGIN>\n## `get_lint_config`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_files 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 find_files 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...
Finds files with an (optional) given extension in a given path.
"Finds files with an (optional) given extension in a given path."
12
false
jorisroovers/pymarkdownlint
find_files
21,418
LDU_FT/twidi/py-dataql/solve
LDU_FT
[ "<BEGIN>\n## `EntryPoints`", "Returns an object to use as entry point when calling ``registry.solve_resource``.", " When calling ``registry.solve_resource`` on a \"root\" resource, we don't have any value.\n This function will create a object to use as a first value and is used to specify which\n entry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve 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 solve 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...
Try to get the current attribute/function result for the given value. If ``args`` or ``kwargs`` are passed, the attribute got from ``value`` must be callable. They will be passed anyway (using ``[]`` and ``{}`` as default values) if the attribute is a function. And if it's not a functi...
"Try to get the current attribute/function result for the given value.\n\n If ``args`` or ``kwargs`` are passed, the attribute got from ``value`` must be callable.\n They will be passed anyway (using ``[]`` and ``{}`` as default values) if the attribute\n is a function.\n\n And if it's not a...
210
false
twidi/py-dataql
solve
21,419
LDU_FT/agermanidis/autosub/srt_formatter
LDU_FT
[ "<BEGIN>\n## `srt_formatter`", "Serialize a list of subtitles according to the SRT format, with optional time padding.\n<END>", "<BEGIN>\n## `vtt_formatter`", "Serialize a list of subtitles according to the VTT format, with optional time padding.\n<END>", "<BEGIN>\n## `json_formatter`", "Serialize a list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the srt_formatter 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 srt_formatter 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...
Serialize a list of subtitles according to the SRT format, with optional time padding.
"Serialize a list of subtitles according to the SRT format, with optional time padding."
14
false
agermanidis/autosub
srt_formatter
21,420
LDU_FT/IvanMalison/okcupyd/SearchFetchable
LDU_FT
[ "<BEGIN>\n## `ages`", "The age range that the user is interested in.\n<END>", "<BEGIN>\n## `single`", "Whether or not the user is only interested in people that are single.\n<END>", "<BEGIN>\n## `update`", "Update the looking for attributes of the logged in user.", " :param ages: The ages that th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SearchFetchable 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 SearchFetchable 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...
Search okcupid.com with the given parameters. Parameters are registered to this function through :meth:`~okcupyd.filter.Filters.register_filter_builder` of :data:`~okcupyd.html_search.search_filters`. :returns: A :class:`~okcupyd.util.fetchable.Fetchable` of :class:`~okcupyd.profile.Profile` ...
"Search okcupid.com with the given parameters. Parameters are registered\n to this function through :meth:`~okcupyd.filter.Filters.register_filter_builder`\n of :data:`~okcupyd.html_search.search_filters`.\n\n :returns: A :class:`~okcupyd.util.fetchable.Fetchable` of\n :class:`~okcupyd.profile.Pro...
149
false
IvanMalison/okcupyd
SearchFetchable
21,421
LDU_FT/SystemRDL/systemrdl-compiler/add_derived_property
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_derived_property 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 add_derived_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Register a user-defined derived property Parameters ---------- getter_function : function Function that fetches the result of the user-defined derived property name : str Derived property name If unassigned, will default to the function's name
"Register a user-defined derived property\n\n Parameters\n ----------\n getter_function : function\n Function that fetches the result of the user-defined derived property\n name : str\n Derived property name\n If unassigned, will default to the function's nam...
207
false
SystemRDL/systemrdl-compiler
add_derived_property
21,422
LDU_FT/sentinel-hub/sentinel2-cloud-detector/get_cloud_masks
LDU_FT
[ "<BEGIN>\n## `extract_pixels`", "Extract pixels from array X", " :param X: Array of images to be classified.\n :type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]\n :return: Reshaped 2D array\n :rtype: numpy array, [n_samples*n_pixels_y*n_pixels_x,n_bands]\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cloud_masks 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_cloud_masks 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...
Runs the cloud detection on the input images (dimension n_images x n x m x 10 or n_images x n x m x 13) and returns the raster cloud mask (dimension n_images x n x m). Pixel values equal to 0 indicate pixels classified as clear-sky, while values equal to 1 indicate pixels classified as clouds. ...
"Runs the cloud detection on the input images (dimension n_images x n x m x 10\n or n_images x n x m x 13) and returns the raster cloud mask (dimension n_images x n x m).\n Pixel values equal to 0 indicate pixels classified as clear-sky, while values\n equal to 1 indicate pixels classified as cloud...
30
false
sentinel-hub/sentinel2-cloud-detector
get_cloud_masks
21,423
LDU_FT/tswicegood/Dolt/_clone
LDU_FT
[ "<BEGIN>\n## `add_basic_auth`", "Send basic auth username and password.", " Normally you can use httplib2.Http.add_credentials() to add username and password.\n However this has two disadvantages.", " 1. Some poorly implemented APIs require basic auth but don't send a\n \"401 Authorization Requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clone 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 _clone 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 ...
Clones the state of the current operation. The state is cloned so that you can freeze the state at a certain point for re-use. :: >>> cat = dolt.cat >>> cat.get_url() '/cat' >>> o = cat.foo >>> o.get_url() '/cat/foo' ...
"Clones the state of the current operation.\n\n The state is cloned so that you can freeze the state at a certain point for re-use.\n\n ::\n\n >>> cat = dolt.cat\n >>> cat.get_url()\n '/cat'\n >>> o = cat.foo\n >>> o.get_url()\n '/cat/foo'\...
28
false
tswicegood/Dolt
_clone
21,424
LDU_FT/radjkarl/fancyWidgets/insertMenuBefore
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insertMenuBefore 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 insertMenuBefore 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 ...
Insert a menu after another menu in the menubar @type: before_menu QMenu instance or title string of menu @param before_menu: menu which should be after the newly inserted menu @rtype: QAction instance @return: action for inserted menu
"Insert a menu after another menu in the menubar\n\n @type: before_menu QMenu instance or title string of menu\n @param before_menu: menu which should be after the newly inserted menu\n @rtype: QAction instance\n @return: action for inserted menu"
48
false
radjkarl/fancyWidgets
insertMenuBefore
21,425
LDU_FT/cggh/scikit-allel/is_non_segregating
LDU_FT
[ "<BEGIN>\n## `mean_pairwise_difference`", "Calculate for each variant the mean number of pairwise differences\n between chromosomes sampled from within a single population.", " Parameters\n ----------", " ac : array_like, int, shape (n_variants, n_alleles)\n Allele counts array.\n an : a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_non_segregating 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 is_non_segregating 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...
Find non-segregating variants (where at most one allele is observed). Parameters ---------- allele : int, optional Allele index. Returns ------- out : ndarray, bool, shape (n_variants,) Boolean array where elements are True if variant mat...
"Find non-segregating variants (where at most one allele is\n observed).\n\n Parameters\n ----------\n allele : int, optional\n Allele index.\n\n Returns\n -------\n out : ndarray, bool, shape (n_variants,)\n Boolean array where elements are True if...
1,142
true
cggh/scikit-allel
is_non_segregating
21,426
LDU_FT/rix0rrr/gcl/find_completions_at_cursor
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Return a schema object from a spec.", " A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>", "<BEGIN>\n## `validate`", "Validate an object according to its own AND an external...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_completions_at_cursor 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 find_completions_at_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Find completions at the cursor. Return a dict of { name => Completion } objects.
"Find completions at the cursor.\n\n Return a dict of { name => Completion } objects."
129
false
rix0rrr/gcl
find_completions_at_cursor
21,427
LDU_FT/liip/taxi/date_options
LDU_FT
[ "<BEGIN>\n## `round_to_quarter`", "Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>", "<BEGIN>\n## `_timesheets_callback`", "Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_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. The extr...
Decorator to add support for `--today/--not-today`, `--from` and `--to` options to the given command. The calculated date is then passed as a parameter named `date`.
"Decorator to add support for `--today/--not-today`, `--from` and `--to` options to the given command. The\n calculated date is then passed as a parameter named `date`."
131
false
liip/taxi
date_options
21,428
LDU_FT/echinopsii/net.echinopsii.ariane.community.cli.python3/stop
LDU_FT
[ "<BEGIN>\n## `find_location`", "find the location according location id (prioritary) or location name\n :param loc_id: the location id\n :param loc_name: the location name\n :return: found location or None if not found\n<END>", "<BEGIN>\n## `json_2_location`", "transform JSON obj coming f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop 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 stop 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...
Stop services and requestors and then connection. :return: self
"Stop services and requestors and then connection.\n :return: self"
303
false
echinopsii/net.echinopsii.ariane.community.cli.python3
stop
21,429
LDU_FT/apache/incubator-superset/truncate_label
LDU_FT
[ "<BEGIN>\n## `new`", "Creates a new, blank dashboard and redirects to it in edit mode\n<END>", "<BEGIN>\n## `import_datasource`", "Imports the datasource from the object to the database.", " Metrics and columns and datasource will be overrided if exists.\n This function can be used to import/export ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_label 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 truncate_label 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...
In the case that a label exceeds the max length supported by the engine, this method is used to construct a deterministic and unique label based on an md5 hash.
"In the case that a label exceeds the max length supported by the engine,\n this method is used to construct a deterministic and unique label based on\n an md5 hash."
411
false
apache/incubator-superset
truncate_label
21,430
LDU_FT/statueofmike/rtsp/handler
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the RTP packet with header fields and payload.\n<END>", "<BEGIN>\n## `preview_stream`", "Display stream in an OpenCV window until \"q\" key is pressed\n<END>", "<BEGIN>\n## `get_resources`", "Do an RTSP-DESCRIBE request, then parse out available resources from the response\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handler 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 handler 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...
Handler on explicitly closing the GUI window.
"Handler on explicitly closing the GUI window."
30
false
statueofmike/rtsp
handler
21,431
LDU_FT/sloria/konch/fix_repeating_arguments
LDU_FT
[ "<BEGIN>\n## `transform`", "Expand pattern into an (almost) equivalent one, but with single Either.", " Example: ((-a | -b) (-c | -d)) => (-a -c | -a -d | -b -c | -b -d)\n Quirks: [-a] => (-a), (-a...) => (-a -a)\n<END>", "<BEGIN>\n## `parse_long`", "long ::= '--' chars [ ( ' ' | '=' ) chars ] ;\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_repeating_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_repeating_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...
Fix elements that should accumulate/increment values.
"Fix elements that should accumulate/increment values."
44
false
sloria/konch
fix_repeating_arguments
21,432
LDU_FT/duguyue100/minesweeper/check_move
LDU_FT
[ "<BEGIN>\n## `ms_game_main`", "Main function for Mine Sweeper Game.", " Parameters\n ----------\n board_width : int\n the width of the board (> 0)\n board_height : int\n the height of the board (> 0)\n num_mines : int\n the number of mines, cannot be larger than\n (boa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_move 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 check_move 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...
Check if a move is valid. If the move is not valid, then shut the game. If the move is valid, then setup a dictionary for the game, and update move counter. TODO: maybe instead of shut the game, can end the game or turn it into a valid move? Parameters --------...
"Check if a move is valid.\n\n If the move is not valid, then shut the game.\n If the move is valid, then setup a dictionary for the game,\n and update move counter.\n\n TODO: maybe instead of shut the game, can end the game or turn it into\n a valid move?\n\n Parameters\n ...
34
false
duguyue100/minesweeper
check_move
21,433
LDU_FT/buriburisuri/sugartensor/sg_mse
LDU_FT
[ "<BEGIN>\n## `constant`", "r\"\"\"Creates a tensor variable of which initial values are `value` and shape is `shape`.", " Args:\n name: The name of new variable.\n shape: A tuple/list of integers or an integer. \n If shape is an integer, it is converted to a list.\n value: A Python scal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sg_mse 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 sg_mse 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 ...
r"""Returns squared error between `tensor` and `target`. Args: tensor: A `Tensor`. opt: target: A `Tensor` with the same shape and dtype as `tensor`. name: A `string`. A name to display in the tensor board web UI. Returns: A `Tensor` of the same shape and dtype as ...
"r\"\"\"Returns squared error between `tensor` and `target`.\n \n Args:\n tensor: A `Tensor`.\n opt:\n target: A `Tensor` with the same shape and dtype as `tensor`.\n name: A `string`. A name to display in the tensor board web UI.\n \n Returns:\n A `Tensor` of the same shape ...
399
false
buriburisuri/sugartensor
sg_mse
21,434
LDU_FT/src-d/modelforge/assemble_sparse_matrix
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assemble_sparse_matrix 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 assemble_sparse_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Transform a dictionary with "shape", "format" and "data" into the \ :mod:`scipy.sparse` matrix. \ Opposite to :func:`disassemble_sparse_matrix()`. :param subtree: :class:`dict` which describes the :mod:`scipy.sparse` \ matrix. :return: :mod:`scipy.sparse` matrix of the specified for...
"Transform a dictionary with \"shape\", \"format\" and \"data\" into the \\\n :mod:`scipy.sparse` matrix. \\\n Opposite to :func:`disassemble_sparse_matrix()`.\n\n :param subtree: :class:`dict` which describes the :mod:`scipy.sparse` \\\n matrix.\n :return: :mod:`scipy.sparse` matrix of t...
118
false
src-d/modelforge
assemble_sparse_matrix
21,435
LDU_FT/kipe/enocean/_set_value
LDU_FT
[ "<BEGIN>\n## `_get_raw`", "Get raw data as integer, based on offset and size\n<END>", "<BEGIN>\n## `_get_enum`", "Get enum value, based on the data in XML\n<END>", "<BEGIN>\n## `_get_boolean`", "Get boolean value, based on the data in XML\n<END>", "<BEGIN>\n## `_set_value`", "set given numeric value t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_value 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 _set_value 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...
set given numeric value to target field in bitarray
"set given numeric value to target field in bitarray"
38
false
kipe/enocean
_set_value
21,436
LDU_FT/sio2project/filetracker/_add_version_to_request
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_version_to_request 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 _add_version_to_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Adds version to either url or headers, depending on protocol.
"Adds version to either url or headers, depending on protocol."
84
false
sio2project/filetracker
_add_version_to_request
21,437
LDU_FT/googleapis/google-cloud-python/_get_value_from_value_pb
LDU_FT
[ "<BEGIN>\n## `_verify_params`", "Verifies the parameters don't use any reserved parameter.", " Raises:\n ValueError: If a reserved parameter is used.\n<END>", "<BEGIN>\n## `_next_page`", "Get the next page in the iterator.", " Returns:\n Optional[Page]: The next page in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_value_from_value_pb 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 _get_value_from_value_pb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Given a protobuf for a Value, get the correct value. The Cloud Datastore Protobuf API returns a Property Protobuf which has one value set and the rest blank. This function retrieves the the one value provided. Some work is done to coerce the return value into a more useful type (particularly in t...
"Given a protobuf for a Value, get the correct value.\n\n The Cloud Datastore Protobuf API returns a Property Protobuf which\n has one value set and the rest blank. This function retrieves the\n the one value provided.\n\n Some work is done to coerce the return value into a more useful type\n (particula...
7,029
true
googleapis/google-cloud-python
_get_value_from_value_pb
21,438
LDU_FT/exekias/droplet/save
LDU_FT
[ "<BEGIN>\n## `install`", "Installation procedure, it writes basic smb.conf and uses samba-tool to\n provision the domain\n<END>", "<BEGIN>\n## `stop_other_daemons`", "Stop services already provided by main samba daemon\n<END>", "<BEGIN>\n## `set_euid`", "Set settings.DROPLET_USER effective UID for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save 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 save 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...
Apply configuration changes on all the modules
"Apply configuration changes on all the modules"
66
false
exekias/droplet
save
21,439
LDU_FT/BlueBrain/nat/getNeighbors
LDU_FT
[ "<BEGIN>\n## `check_ocrmypdf`", "Run ocrmypdf and confirmed that a valid file was created\n<END>", "<BEGIN>\n## `run_ocrmypdf`", "Run ocrmypdf and let caller deal with results\n<END>", "<BEGIN>\n## `getParamValues`", "Return the rows of sampleDF that are associated to the parameter\n specified in p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getNeighbors 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 getNeighbors 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...
Get neighbors from: /graph/neighbors/{id} Arguments: id: This ID should be either a CURIE or an IRI depth: How far to traverse neighbors blankNodes: Traverse blank nodes relationshipType: Which relationship to traverse direction: Which direction to...
"Get neighbors from: /graph/neighbors/{id}\n Arguments:\n id: This ID should be either a CURIE or an IRI\n depth: How far to traverse neighbors\n blankNodes: Traverse blank nodes\n relationshipType: Which relationship to traverse\n direction: Which direc...
56
false
BlueBrain/nat
getNeighbors
21,440
LDU_FT/astroswego/plotypus/find_outliers
LDU_FT
[ "<BEGIN>\n## `Lomb_Scargle`", "Returns the period of *data* according to the\n `Lomb-Scargle periodogram <https://en.wikipedia.org/wiki/Least-squares_spectral_analysis#The_Lomb.E2.80.93Scargle_periodogram>`_.", " **Parameters**", " data : array-like, shape = [n_samples, 2] or [n_samples, 3]\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_outliers 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 find_outliers 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_outliers(data, predictor, sigma, method=mad) Returns a boolean array indicating the outliers in the given *data* array. **Parameters** data : array-like, shape = [n_samples, 2] or [n_samples, 3] Photometry array containing columns *phase*, *magnitude*, and (optional) *error*. pre...
"find_outliers(data, predictor, sigma, method=mad)\n\n Returns a boolean array indicating the outliers in the given *data* array.\n\n **Parameters**\n\n data : array-like, shape = [n_samples, 2] or [n_samples, 3]\n Photometry array containing columns *phase*, *magnitude*, and\n (optional) *error*...
152
false
astroswego/plotypus
find_outliers
21,441
LDU_FT/malinoff/structures/sizeof
LDU_FT
[ "<BEGIN>\n## `build`", "Build bytes from the python object.", " :param obj: Python object to build bytes from.\n :param context: Optional context dictionary.\n<END>", "<BEGIN>\n## `parse`", "Parse some python object from the data.", " :param data: Data to be parsed.\n :param co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sizeof 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 sizeof 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 ...
Return the size of the construct in bytes. :param context: Optional context dictionary.
"Return the size of the construct in bytes.\n\n :param context: Optional context dictionary."
15
false
malinoff/structures
sizeof
21,442
LDU_FT/ace0/pyrelic/pair
LDU_FT
[ "<BEGIN>\n## `assertSameType`", "Raises an exception if @b is not an instance of type(@a)\n<END>", "<BEGIN>\n## `assertType`", "Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>", "<BEGIN>\n## `dp`", "Debugging print. Prints a list of labels and va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pair 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 pair 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...
Computes the bilinear pairing e(p,q). @p must be a G1Element and @q must be a G2Element. @returns a GtElement
"Computes the bilinear pairing e(p,q). @p must be a G1Element and @q must\n be a G2Element.\n @returns a GtElement"
109
false
ace0/pyrelic
pair
21,443
LDU_FT/hawkular/hawkular-client-python/query_metric_tags
LDU_FT
[ "<BEGIN>\n## `create_datapoint`", "Creates a single datapoint dict with a value, timestamp and tags.", " :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be date...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_metric_tags 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 query_metric_tags 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 a list of tags in the metric definition. :param metric_type: MetricType to be matched (required) :param metric_id: Exact string matching metric id
"Returns a list of tags in the metric definition.\n\n :param metric_type: MetricType to be matched (required)\n :param metric_id: Exact string matching metric id"
116
false
hawkular/hawkular-client-python
query_metric_tags
21,444
LDU_FT/mbr/tinyrpc/parse_reply
LDU_FT
[ "<BEGIN>\n## `error_respond`", "Converts the error to an error response object.", " :return: An error response object ready to be serialized and sent to the client.\n :rtype: :py:class:`JSONRPCErrorResponse`\n<END>", "<BEGIN>\n## `error_respond`", "Create an error response to this request.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_reply 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 parse_reply 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...
Deserializes and validates a response. Called by the client to reconstruct the serialized :py:class:`JSONRPCResponse`. :param bytes data: The data stream received by the transport layer containing the serialized request. :return: A reconstructed response. :rtype: :py:class:...
"Deserializes and validates a response.\n\n Called by the client to reconstruct the serialized :py:class:`JSONRPCResponse`.\n\n :param bytes data: The data stream received by the transport layer containing the\n serialized request.\n :return: A reconstructed response.\n :rtype: :p...
120
false
mbr/tinyrpc
parse_reply
21,445
LDU_FT/upsight/doctor/validate
LDU_FT
[ "<BEGIN>\n## `_parse_array`", "Coerce value into an list.", " :param str value: Value to parse.\n :returns: list or None if the value is not a JSON array\n :raises: TypeError or ValueError if value appears to be an array but can't\n be parsed as JSON.\n<END>", "<BEGIN>\n## `_parse_boolean`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate 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 validate 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...
Validates and returns the value. If the value does not validate against the schema, SchemaValidationError will be raised. :param value: A value to validate (usually a dict). :param validator: An instance of a jsonschema validator class, as created by Schema.get_validator()....
"Validates and returns the value.\n\n If the value does not validate against the schema, SchemaValidationError\n will be raised.\n\n :param value: A value to validate (usually a dict).\n :param validator: An instance of a jsonschema validator class, as\n created by Schema.get_vali...
236
false
upsight/doctor
validate
21,446
LDU_FT/LeastAuthority/txkube/native_string_to_unicode
LDU_FT
[ "<BEGIN>\n## `pairwise`", "Generate consecutive pairs of elements from the given iterable.\n<END>", "<BEGIN>\n## `pick_cert_for_twisted`", "Pick the right client key/certificate to use for the given server and\n return it in the form Twisted wants.", " :param NetLocation netloc: The location of the se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the native_string_to_unicode 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 native_string_to_unicode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Ensure that the native string ``s`` is converted to ``unicode``.
"Ensure that the native string ``s`` is converted to ``unicode``."
132
false
LeastAuthority/txkube
native_string_to_unicode
21,447
LDU_FT/cogniteev/docido-python-sdk/restore_dict_kv
LDU_FT
[ "<BEGIN>\n## `to_unicode`", "Convert input to an `unicode` object.", " For a `str` object, we'll first try to decode the bytes using the given\n `charset` encoding (or UTF-8 if none is specified), then we fall back to\n the latin1 encoding which might be correct or not, but at least preserves\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_dict_kv 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 restore_dict_kv 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...
Backup an object in a with context and restore it when leaving the scope. :param a_dict: associative table :param: key key whose value has to be backed up :param copy_func: callbable object used to create an object copy. default is `copy.deepcopy`
"Backup an object in a with context and restore it when leaving\n the scope.\n\n :param a_dict:\n associative table\n :param: key\n key whose value has to be backed up\n :param copy_func: callbable object used to create an object copy.\n default is `copy.deepcopy`"
147
false
cogniteev/docido-python-sdk
restore_dict_kv
21,448
LDU_FT/zarr-developers/zarr/array_metadata_to_zarr
LDU_FT
[ "<BEGIN>\n## `group`", "Create a group.", " Parameters\n ----------\n store : MutableMapping or string, optional\n Store or path to directory in file system.\n overwrite : bool, optional\n If True, delete any pre-existing data in `store` at `path` before\n creating the group.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array_metadata_to_zarr 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 array_metadata_to_zarr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Convert array metadata from N5 to zarr format.
"Convert array metadata from N5 to zarr format."
436
false
zarr-developers/zarr
array_metadata_to_zarr
21,449
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/generate
LDU_FT
[ "<BEGIN>\n## `csview`", "View chemical shift values organized by amino acid residue.", " :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate 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 generate 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...
Generate peak-specific noise abstract method, must be reimplemented in a subclass. :param tuple labels: Dimension labels of a peak. :param int split_idx: Index specifying which peak list split parameters to use. :return: List of noise values for dimensions ordered as they appear in a peak. ...
"Generate peak-specific noise abstract method, must be reimplemented in a subclass.\n\n :param tuple labels: Dimension labels of a peak.\n :param int split_idx: Index specifying which peak list split parameters to use.\n :return: List of noise values for dimensions ordered as they appear in a peak....
117
false
MoseleyBioinformaticsLab/nmrstarlib
generate
21,450
LDU_FT/glue-viz/glue-vispy-viewers/append
LDU_FT
[ "<BEGIN>\n## `iso_mesh_line`", "Generate an isocurve from vertex data in a surface mesh.", " Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append 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 append 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 ...
Append data to the end. Parameters ---------- data : array_like An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. itemsize: int or 1-D array If `itemsize is an integer, N...
"Append data to the end.\n\n Parameters\n ----------\n\n data : array_like\n An array, any object exposing the array interface, an object\n whose __array__ method returns an array, or any (nested) sequence.\n\n itemsize: int or 1-D array\n If `itemsize is an...
1,752
true
glue-viz/glue-vispy-viewers
append
21,451
LDU_FT/svven/summary/load_raw_rules
LDU_FT
[ "<BEGIN>\n## `load_raw_rules`", "Load raw rules from url or package file.\n<END>", "<BEGIN>\n## `get_image`", "Returned Image instance has response url.\r\n This might be different than the url param because of redirects.\n<END>", "<BEGIN>\n## `check_color`", "Just check if raw_image is completely ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_raw_rules 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_raw_rules 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...
Load raw rules from url or package file.
"Load raw rules from url or package file."
41
false
svven/summary
load_raw_rules
21,452
LDU_FT/scikit-tda/kepler-mapper/hovering_widgets
LDU_FT
[ "<BEGIN>\n## `project`", "Creates the projection/lens from a dataset. Input the data set. Specify a projection/lens type. Output the projected data/lens.", " Parameters\n ----------", " X : Numpy Array\n The data to fit a projection/lens to.", " projection :\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hovering_widgets 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 hovering_widgets 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 ...
Defines the widgets that display the distribution of each node on hover and the members of each nodes Parameters ---------- kmgraph: the kepler-mapper graph dict returned by `get_mapper_graph()`` graph_fw: the FigureWidget representing the graph ctooltips: boolean; if True/False ...
"Defines the widgets that display the distribution of each node on hover\r\n and the members of each nodes\r\n \r\n Parameters\r\n ----------\r\n kmgraph: the kepler-mapper graph dict returned by `get_mapper_graph()``\r\n graph_fw: the FigureWidget representing the graph\r\n ctooltips: boolean;...
169
false
scikit-tda/kepler-mapper
hovering_widgets
21,453
LDU_FT/thiagopbueno/rddl2tf/stop_batch_gradient
LDU_FT
[ "<BEGIN>\n## `constant`", "Returns a constant `value` TensorFluent with given `dtype`.", " Args:\n value: The constant value.\n dtype: The output's data type.", " Returns:\n A constant TensorFluent.\n<END>", "<BEGIN>\n## `Bernoulli`", "Returns a TensorFluent ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_batch_gradient 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 stop_batch_gradient 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...
Returns a copy of the inputs fluent with stop_gradient applied at batch level. Args: x: The input fluent. stop_batch: A boolean tf.Tensor with shape=(batch_size, ...) Returns: A TensorFluent that conditionally stops backpropagation of gradient computations.
"Returns a copy of the inputs fluent with stop_gradient applied at batch level.\n\n Args:\n x: The input fluent.\n stop_batch: A boolean tf.Tensor with shape=(batch_size, ...)\n\n Returns:\n A TensorFluent that conditionally stops backpropagation of gradient computations."
297
false
thiagopbueno/rddl2tf
stop_batch_gradient
21,454
LDU_FT/luismsgomes/stringology/lis
LDU_FT
[ "<BEGIN>\n## `llcs`", "length of the longest common sequence", " This implementation takes O(len(s1) * len(s2)) time and\n O(min(len(s1), len(s2))) space.", " Use only with short strings.", " >>> llcs('a.b.cd','!a!b!c!!!d!')\n 4\n<END>", "<BEGIN>\n## `lcsr`", "longest common sequence rati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lis 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 lis 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...
longest increasing subsequence >>> lis([1, 2, 5, 3, 4]) [1, 2, 3, 4]
"longest increasing subsequence\n\n >>> lis([1, 2, 5, 3, 4])\n [1, 2, 3, 4]"
29
false
luismsgomes/stringology
lis
21,455
LDU_FT/Bogdanp/anom-py/transactional
LDU_FT
[ "<BEGIN>\n## `_transactions`", "list[Transaction]: The current stack of Transactions.\n<END>", "<BEGIN>\n## `transactional`", "Decorates functions so that all of their operations (except for\n queries) run inside a Datastore transaction.", " Parameters:\n adapter(Adapter, optional): The Adapter t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transactional 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 transactional 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...
Decorates functions so that all of their operations (except for queries) run inside a Datastore transaction. Parameters: adapter(Adapter, optional): The Adapter to use when running the transaction. Defaults to the current adapter. retries(int, optional): The number of times to retry the ...
"Decorates functions so that all of their operations (except for\n queries) run inside a Datastore transaction.\n\n Parameters:\n adapter(Adapter, optional): The Adapter to use when running the\n transaction. Defaults to the current adapter.\n retries(int, optional): The number of times to retry...
91
false
Bogdanp/anom-py
transactional
21,456
LDU_FT/pylover/khayyam/fromtimestamp
LDU_FT
[ "<BEGIN>\n## `strptime`", "This is opposite of the :py:meth:`khayyam.JalaliDate.strftime`,\n and used to parse date strings into date object.", " `ValueError` is raised if the date_string and format can’t be\n parsed by time.strptime() or if it returns a value which isn’t a time tuple. For ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromtimestamp 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 fromtimestamp 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...
Creates a new :py:class:`khayyam.JalaliDatetime` instance from the given posix timestamp. If optional argument tz is :py:obj:`None` or not specified, the timestamp is converted to the platform's local date and time, and the returned datetime object is naive. Else tz must be an instance of a cl...
"Creates a new :py:class:`khayyam.JalaliDatetime` instance from the given posix timestamp.\n\n If optional argument tz is :py:obj:`None` or not specified, the timestamp is converted to\n the platform's local date and time, and the returned datetime object is naive.\n\n Else tz must be an instance o...
54
false
pylover/khayyam
fromtimestamp
21,457
LDU_FT/bioasp/caspo/combinatorics
LDU_FT
[ "<BEGIN>\n## `from_str`", "Creates a literal from a string", " Parameters\n ----------\n string : str\n If the string starts with '!', it's interpreted as a negated variable", " Returns\n -------\n caspo.core.literal.Literal\n Created object inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combinatorics 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 combinatorics 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...
Returns mutually exclusive/inclusive clampings Returns ------- (dict,dict) A tuple of 2 dictionaries. For each literal key, the first dict has as value the set of mutually exclusive clampings while the second dict has as value the set of mutually inclusive cl...
"Returns mutually exclusive/inclusive clampings\n\n Returns\n -------\n (dict,dict)\n A tuple of 2 dictionaries.\n For each literal key, the first dict has as value the set of mutually exclusive clampings while\n the second dict has as value the set of mutually incl...
366
false
bioasp/caspo
combinatorics
21,458
LDU_FT/ckan/losser/_write_csv
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Return an argparse.ArgumentParser object with losser's arguments.", " Other projects can call this to get an ArgumentParser with losser's\n command line interface to use as a parent parser for their own parser.\n For example::", " parent_parser = losser.cli.make_p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_csv 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 _write_csv 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...
Write the given table (list of dicts) to the given file as CSV. Writes UTF8-encoded, CSV-formatted text. ``f`` could be an opened file, sys.stdout, or a StringIO.
"Write the given table (list of dicts) to the given file as CSV.\n\n Writes UTF8-encoded, CSV-formatted text.\n\n ``f`` could be an opened file, sys.stdout, or a StringIO."
45
false
ckan/losser
_write_csv
21,459
LDU_FT/noxdafox/vminspect/journal_event
LDU_FT
[ "<BEGIN>\n## `keys`", "Iterates over the hive's keys.", " Yields WinRegKey namedtuples containing:", " path: path of the key \"RootKey\\\\Key\\\\...\"\n timestamp: date and time of last modification\n values: list of values ((\"ValueKey\", \"ValueType\", ValueValue), .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the journal_event 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 journal_event 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...
Group multiple events into a single one.
"Group multiple events into a single one."
123
false
noxdafox/vminspect
journal_event
21,460
LDU_FT/michaelpb/omnic/detect
LDU_FT
[ "<BEGIN>\n## `use_settings`", "Context manager to temporarily override settings\n<END>", "<BEGIN>\n## `parse_string`", "Parses a foreign resource URL into the URL string itself and any\n relevant args and kwargs\n<END>", "<BEGIN>\n## `apply_command_list_template`", "Perform necessary substitutions ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect 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 detect 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 ...
Guesses a TypeString from the given path
"Guesses a TypeString from the given path"
111
false
michaelpb/omnic
detect
21,461
LDU_FT/coderholic/pyradio/_move_old_csv
LDU_FT
[ "<BEGIN>\n## `toggleTransparency`", "Toggles theme trasparency.", " force_value will set trasparency if True or False,\n or toggle trasparency if None\n<END>", "<BEGIN>\n## `keypress`", "returns theme_id, save_theme\n return_id\n 0-.. : id in self._theme\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _move_old_csv 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 _move_old_csv 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...
if a ~/.pyradio files exists, relocate it in user config folder and rename it to stations.csv, or if that exists, to pyradio.csv
"if a ~/.pyradio files exists, relocate it in user\n config folder and rename it to stations.csv, or if\n that exists, to pyradio.csv"
65
false
coderholic/pyradio
_move_old_csv
21,462
LDU_FT/redodo/formats/parse
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a parser and composer of a format.", " You can use this method to overwrite existing formats.", " :param type: The unique name of the format\n :param parser: The method to parse data as the format\n :param composer: The method to compose data as the format\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse 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 parse 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...
Parse text as a format. :param type: The unique name of the format :param data: The text to parse as the format
"Parse text as a format.\n\n :param type: The unique name of the format\n :param data: The text to parse as the format"
59
false
redodo/formats
parse
21,463
LDU_FT/openmicroanalysis/pyxray/get_default_reference
LDU_FT
[ "<BEGIN>\n## `set_default_reference`", "Set the default reference for a method.", " :arg method: name of a method\n :type method: :class:`str`", " {reference}\n<END>", "<BEGIN>\n## `get_default_reference`", "Returns the default reference for a method.", " :arg method: name of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_reference 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_default_reference 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 default reference for a method. :arg method: name of a method :type method: :class:`str` :return: reference :rtype: :class:`Reference <pyxray.descriptor.Reference>` or :class:`str`
"Returns the default reference for a method.\n\n :arg method: name of a method\n :type method: :class:`str`\n\n :return: reference\n :rtype: :class:`Reference <pyxray.descriptor.Reference>` or :class:`str`"
42
false
openmicroanalysis/pyxray
get_default_reference
21,464
LDU_FT/PBR/MQ2/set_tmp_folder
LDU_FT
[ "<BEGIN>\n## `add_qtl_to_marker`", "Add the number of QTLs found for a given marker.", " :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found.\n<END>", "<BEGIN>\n## `add_qtl_to_map`", "This function adds to a genetic map for each marker the number\n of signi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_tmp_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. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_tmp_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. The ex...
Create a temporary folder using the current time in which the zip can be extracted and which should be destroyed afterward.
"Create a temporary folder using the current time in which\n the zip can be extracted and which should be destroyed afterward."
98
false
PBR/MQ2
set_tmp_folder
21,465
LDU_FT/QUANTAXIS/QUANTAXIS/standartDeviation
LDU_FT
[ "<BEGIN>\n## `start_market`", "start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>", "<BEGIN>\n## `message`", "the standard message which can be transfer\n<END>", "<BEGIN>\n## `init_hold_with_acco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the standartDeviation 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 standartDeviation 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...
:type start: int :type limit: int :rtype: float
":type start: int\n :type limit: int\n :rtype: float"
835
false
QUANTAXIS/QUANTAXIS
standartDeviation
21,466
LDU_FT/qacafe/cdrouter.py/bulk_launch
LDU_FT
[ "<BEGIN>\n## `list`", "Get a list of configs.", " :param filter: (optional) Filters to apply as a string list.\n :param type: (optional) `union` or `inter` as string.\n :param sort: (optional) Sort fields to apply as string list.\n :param limit: (optional) Limit returned list length....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_launch 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 bulk_launch 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 launch a set of jobs. :param jobs: :class:`jobs.Job <jobs.Job>` list :param filter: (optional) Filters to apply as a string list. :param all: (optional) Apply to all if bool `True`.
"Bulk launch a set of jobs.\n\n :param jobs: :class:`jobs.Job <jobs.Job>` list\n :param filter: (optional) Filters to apply as a string list.\n :param all: (optional) Apply to all if bool `True`."
282
false
qacafe/cdrouter.py
bulk_launch
21,467
LDU_FT/theelous3/asks/_send
LDU_FT
[ "<BEGIN>\n## `request`", "Base function for one time http requests.", " Args:\n method (str): The http method to use. For example 'GET'\n uri (str): The url of the resource.\n Example: 'https://example.com/stuff'\n kwargs: Any number of arguments supported, found here:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send 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 _send 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...
Takes a package and body, combines then, then shoots 'em off in to the ether. Args: package (list of str): The header package. body (str): The str representation of the body.
"Takes a package and body, combines then, then shoots 'em off in to\n the ether.\n\n Args:\n package (list of str): The header package.\n body (str): The str representation of the body."
75
false
theelous3/asks
_send
21,468
LDU_FT/smartmob-project/strawboss/merge_envs
LDU_FT
[ "<BEGIN>\n## `now`", "Returns the current time.", " :param utc: If ``True``, returns a timezone-aware ``datetime`` object in\n UTC. When ``False`` (the default), returns a naive ``datetime`` object\n in local time.\n :return: A ``datetime`` object representing the current time at the time of\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_envs 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 merge_envs 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...
Union of one or more dictionaries. In case of duplicate keys, the values in the right-most arguments will squash (overwrite) the value provided by any dict preceding it. :param args: Sequence of ``dict`` objects that should be merged. :return: A ``dict`` containing the union of keys in all input dicts...
"Union of one or more dictionaries.\n\n In case of duplicate keys, the values in the right-most arguments will\n squash (overwrite) the value provided by any dict preceding it.\n\n :param args: Sequence of ``dict`` objects that should be merged.\n :return: A ``dict`` containing the union of keys in all inpu...
25
false
smartmob-project/strawboss
merge_envs
21,469
LDU_FT/drdoctr/doctr/GitHub_raise_for_status
LDU_FT
[ "<BEGIN>\n## `encrypt_variable`", "Encrypt an environment variable for ``build_repo`` for Travis", " ``variable`` should be a bytes object, of the form ``b'ENV=value'``.", " ``build_repo`` is the repo that ``doctr deploy`` will be run from. It\n should be like 'drdoctr/doctr'.", " ``tld`` should...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GitHub_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GitHub_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...
Call instead of r.raise_for_status() for GitHub requests Checks for common GitHub response issues and prints messages for them.
"Call instead of r.raise_for_status() for GitHub requests\n\n Checks for common GitHub response issues and prints messages for them."
128
false
drdoctr/doctr
GitHub_raise_for_status
21,470
LDU_FT/kubernetes-client/python/replace_namespaced_replica_set_status
LDU_FT
[ "<BEGIN>\n## `delete_namespaced_horizontal_pod_autoscaler`", "delete a HorizontalPodAutoscaler\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, nam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_namespaced_replica_set_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_namespaced_replica_set_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
replace status of the specified ReplicaSet This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() ...
"replace status of the specified ReplicaSet\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True)\n >>> result = thread.get(...
1,652
true
kubernetes-client/python
replace_namespaced_replica_set_status
21,471
LDU_FT/paylogic/pip-accel/find_missing_dependencies
LDU_FT
[ "<BEGIN>\n## `get`", "Get a distribution archive from any of the available caches.", " :param requirement: A :class:`.Requirement` object.\n :returns: The absolute pathname of a local file or :data:`None` when the\n distribution archive is missing from all available caches.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_missing_dependencies 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 find_missing_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Find missing dependencies of a Python package. :param requirement: A :class:`.Requirement` object. :returns: A list of strings with system package names.
"Find missing dependencies of a Python package.\n\n :param requirement: A :class:`.Requirement` object.\n :returns: A list of strings with system package names."
252
false
paylogic/pip-accel
find_missing_dependencies
21,472