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/simoninireland/epyc/addPendingResult
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addPendingResult API. 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 addPendingResult API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add a "pending" result that we expect to get results for. :param ps: the parameters for the result :param jobid: an identifier for the pending result
"Add a \"pending\" result that we expect to get results for.\n\n :param ps: the parameters for the result\n :param jobid: an identifier for the pending result"
116
false
simoninireland/epyc
addPendingResult
28,973
LDU_FT/PySimpleGUI/PySimpleGUI/worker_thread
LDU_FT
[ "<BEGIN>\n## `read_mail`", "Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>", "<BEGIN>\n## `runCommand`", "run shell command", "\t@param cmd: command to execute\n\t@param timeout: timeout for command execution", "\t@re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the worker_thread API. 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 worker_thread API. 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...
A worker thrread that communicates with the GUI These threads can call functions that block withouth affecting the GUI (a good thing) Note that this function is the code started as each thread. All threads are identical in this way :param thread_name: Text name used for displaying info :param run_freq:...
"A worker thrread that communicates with the GUI\n These threads can call functions that block withouth affecting the GUI (a good thing)\n Note that this function is the code started as each thread. All threads are identical in this way\n :param thread_name: Text name used for displaying info\n :param run_...
110
false
PySimpleGUI/PySimpleGUI
worker_thread
28,974
LDU_FT/OpenAgInitiative/openag_python/get_or_create
LDU_FT
[ "<BEGIN>\n## `create_farm`", "Create a farm. Creates a farm named FARM_NAME on the currently selected\n cloud server. You can use the `openag cloud select_farm` command to start\n mirroring data into it.\n<END>", "<BEGIN>\n## `list_farms`", "List all farms you can manage. If you have selected a farm alr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates the database named `db_name` if it doesn't already exist and return it
"Creates the database named `db_name` if it doesn't already exist and\n return it"
89
false
OpenAgInitiative/openag_python
get_or_create
28,975
LDU_FT/mrstephenneal/mysql-toolkit/select_where_between
LDU_FT
[ "<BEGIN>\n## `count_rows_duplicates`", "Get the number of rows that do not contain distinct values.\n<END>", "<BEGIN>\n## `count_rows`", "Get the number of rows in a particular table.\n<END>", "<BEGIN>\n## `count_rows_distinct`", "Get the number distinct of rows in a particular table.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_where_between 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 select_where_between API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Query rows from a table where a columns value is found between two values. :param table: Name of the table :param cols: List, tuple or set of columns or string with single column name :param where_col: Column to check values against :param between: Tuple with min and max values for comp...
"Query rows from a table where a columns value is found between two values.\n\n :param table: Name of the table\n :param cols: List, tuple or set of columns or string with single column name\n :param where_col: Column to check values against\n :param between: Tuple with min and max values fo...
204
false
mrstephenneal/mysql-toolkit
select_where_between
28,976
LDU_FT/scour-project/scour/parse
LDU_FT
[ "<BEGIN>\n## `lex`", "Yield (token_type, str_data) tokens.", " The last token will be (EOF, None) where EOF is the singleton object\n defined in this module.\n<END>", "<BEGIN>\n## `parse`", "Parse a string of SVG transform=\"\" data.\n<END>", "<BEGIN>\n## `findReferencedElements`", "Return...
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 a string of SVG transform="" data.
"Parse a string of SVG transform=\"\" data."
103
false
scour-project/scour
parse
28,977
LDU_FT/ihmeuw/vivarium/get_stream
LDU_FT
[ "<BEGIN>\n## `setup`", "Performs this component's simulation setup.", " The ``setup`` method is automatically called by the simulation\n framework. The framework passes in a ``builder`` object which\n provides access to a variety of framework subsystems and metadata.", " Parameters...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream API. 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_stream API. 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...
Provides a new source of random numbers for the given decision point. ``vivarium`` provides a framework for Common Random Numbers which allows for variance reduction when modeling counter-factual scenarios. Users interested in causal analysis and comparisons between simulation scenarios should ...
"Provides a new source of random numbers for the given decision point.\n\n ``vivarium`` provides a framework for Common Random Numbers which allows for variance reduction\n when modeling counter-factual scenarios. Users interested in causal analysis and comparisons\n between simulation scenarios sh...
370
false
ihmeuw/vivarium
get_stream
28,978
LDU_FT/sonyxperiadev/pygerrit/get_remote_version
LDU_FT
[ "<BEGIN>\n## `run`", "Listen to the stream and send events to the client.\n<END>", "<BEGIN>\n## `run_command`", "Run a command.", " :arg str command: The command to run.", " :Return: The result as a string.", " :Raises: `ValueError` if `command` is not a string.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_version 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...
Return the version of the remote Gerrit server.
"Return the version of the remote Gerrit server."
71
false
sonyxperiadev/pygerrit
get_remote_version
28,979
LDU_FT/fredRos/pypmc/_cleanup
LDU_FT
[ "<BEGIN>\n## `r_value`", "Calculate the Gelman-Rubin R value (Chapter 2.2 in [GR92]_).", " The R value can be used to quantify mixing of \"multiple iterative\n simulations\" (e.g. Markov Chains) in parameter space. An R value\n \"close to one\" indicates that all chains explored the same region\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cleanup API. 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 _cleanup API. 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...
Look for dead components (weight=0) and remove them if enabled by ``kill``. Resize storage. Recompute determinant and covariance.
"Look for dead components (weight=0) and remove them\n if enabled by ``kill``.\n Resize storage. Recompute determinant and covariance."
279
false
fredRos/pypmc
_cleanup
28,980
LDU_FT/mdredze/carmen-python/load_locations
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalize *location_name* by stripping punctuation and collapsing\n runs of whitespace, and return the normalized name.\n<END>", "<BEGIN>\n## `register`", "Return a decorator that registers the decorated class as a\n resolver with the given *name*.\n<END>", "<BEGIN>\n## `ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_locations API. 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_locations API. 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 locations into this resolver from the given *location_file*, which should contain one JSON object per line representing a location. If *location_file* is not specified, an internal location database is used.
"Load locations into this resolver from the given\n *location_file*, which should contain one JSON object per line\n representing a location. If *location_file* is not specified,\n an internal location database is used."
16
false
mdredze/carmen-python
load_locations
28,981
LDU_FT/refindlyllc/rets/analyze_reply_code
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the login xml response\n :param response: the login response from the RETS server\n :return: None\n<END>", "<BEGIN>\n## `read_line`", "Reads lines of XML and delimits, strips, and returns.\n<END>", "<BEGIN>\n## `generator`", "Takes a response socket connection a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_reply_code 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 analyze_reply_code 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...
Checks the RETS Response Code and handles non-zero answers. :param xml_response_dict: :return: None
"Checks the RETS Response Code and handles non-zero answers.\n :param xml_response_dict:\n :return: None"
51
false
refindlyllc/rets
analyze_reply_code
28,982
LDU_FT/WoLpH/python-progressbar/start
LDU_FT
[ "<BEGIN>\n## `_handle_resize`", "Tries to catch resize signals sent from the terminal.\n<END>", "<BEGIN>\n## `init`", "(re)initialize values to original state so the progressbar can be\n used (again)\n<END>", "<BEGIN>\n## `percentage`", "Return current percentage, returns None if no max_value is gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Starts measuring time, and prints the bar at 0%. It returns self so you can use it like this: Args: max_value (int): The maximum value of the progressbar reinit (bool): Initialize the progressbar, this is useful if you wish to reuse the same progressbar but can ...
"Starts measuring time, and prints the bar at 0%.\n\n It returns self so you can use it like this:\n\n Args:\n max_value (int): The maximum value of the progressbar\n reinit (bool): Initialize the progressbar, this is useful if you\n wish to reuse the same progressbar ...
22
false
WoLpH/python-progressbar
start
28,983
LDU_FT/umich-brcf-bioinf/Connor/_rank_tags
LDU_FT
[ "<BEGIN>\n## `_get_username_hostname`", "Best attempt to get username and hostname, returns \"na\" if problem.\n<END>", "<BEGIN>\n## `sort_dict`", "Accept a dict of key:values (numerics) returning list of key-value tuples ordered by desc values.", " If by_key=True, sorts by dict key.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_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 extrac...
Return the list of tags ranked from most to least popular.
"Return the list of tags ranked from most to least popular."
28
false
umich-brcf-bioinf/Connor
_rank_tags
28,984
LDU_FT/aio-libs/aiohttp/decode
LDU_FT
[ "<BEGIN>\n## `_cleanup_closed`", "Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>", "<BEGIN>\n## `_available_connections`", "Return number of available connections taking into account\n the limit, limit_per_host and the connec...
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 ...
Create a BasicAuth object from an Authorization HTTP header.
"Create a BasicAuth object from an Authorization HTTP header."
233
false
aio-libs/aiohttp
decode
28,985
LDU_FT/yeraydiazdiaz/lunr.py/register_languages
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_languages 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 register_languages 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...
Register all supported languages to ensure compatibility.
"Register all supported languages to ensure compatibility."
128
false
yeraydiazdiaz/lunr.py
register_languages
28,986
LDU_FT/alexhayes/django-toolkit/render
LDU_FT
[ "<BEGIN>\n## `get_anchor_href`", "Given HTML markup, return a list of hrefs for each anchor tag.\n<END>", "<BEGIN>\n## `get_anchor_contents`", "Given HTML markup, return a list of href inner html for each anchor tag.\n<END>", "<BEGIN>\n## `expire_cache`", "Expire a cache item.", " @param url: The url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
<a class="btn" href="#"><i class="icon-repeat"></i> Reload</a> or.. <button type="button" class="btn"><i class="icon-repeat"></i> Reload</button>
"<a class=\"btn\" href=\"#\"><i class=\"icon-repeat\"></i> Reload</a>\n \n or..\n \n <button type=\"button\" class=\"btn\"><i class=\"icon-repeat\"></i> Reload</button>"
155
false
alexhayes/django-toolkit
render
28,987
LDU_FT/linuxsoftware/ls.joyous/_getFromTime
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getFromTime API. 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 _getFromTime API. 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...
Time that the event starts (in the local time zone).
"Time that the event starts (in the local time zone)."
192
false
linuxsoftware/ls.joyous
_getFromTime
28,988
LDU_FT/getpelican/pelican-plugins/rst_add_mathjax
LDU_FT
[ "<BEGIN>\n## `get_gif`", "Returns dict with gif informations from the API.\n<END>", "<BEGIN>\n## `main`", "Doing the regex parsing and running the create_html function.\n<END>", "<BEGIN>\n## `filetime_from_git`", "Update modification and creation times from git\n<END>", "<BEGIN>\n## `update_hash_from_st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rst_add_mathjax API. 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 rst_add_mathjax API. 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...
Adds mathjax script for reStructuredText
"Adds mathjax script for reStructuredText"
247
false
getpelican/pelican-plugins
rst_add_mathjax
28,989
LDU_FT/caseyjlaw/rtpipe/calc_nfalse
LDU_FT
[ "<BEGIN>\n## `get_metadata`", "Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_nfalse API. 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 calc_nfalse API. 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...
Calculate the number of thermal-noise false positives per segment.
"Calculate the number of thermal-noise false positives per segment."
256
false
caseyjlaw/rtpipe
calc_nfalse
28,990
LDU_FT/arubertoson/maya-launcher/get_version_exec_mapping_from_path
LDU_FT
[ "<BEGIN>\n## `get_system_config_directory`", "Return platform specific config directory.\n<END>", "<BEGIN>\n## `get_version_exec_mapping_from_path`", "Find valid application version from given path object and return\r\n a mapping of version, executable.\n<END>", "<BEGIN>\n## `find_applications_on_system`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_exec_mapping_from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version_exec_mapping_from_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Find valid application version from given path object and return a mapping of version, executable.
"Find valid application version from given path object and return\r\n a mapping of version, executable."
21
false
arubertoson/maya-launcher
get_version_exec_mapping_from_path
28,991
LDU_FT/linuxsoftware/ls.joyous/_getFromTime
LDU_FT
[ "<BEGIN>\n## `getLocalTime`", "Get the time in the local timezone from date and time\n<END>", "<BEGIN>\n## `getLocalDateAndTime`", "Get the date and time in the local timezone from date and optionally time\n<END>", "<BEGIN>\n## `getLocalDatetime`", "Get a datetime in the local timezone from date and optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getFromTime API. 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 _getFromTime API. 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...
What was the time of this event? Due to time zones that depends what day we are talking about. If no day is given, assume today.
"What was the time of this event? Due to time zones that depends what\n day we are talking about. If no day is given, assume today."
192
false
linuxsoftware/ls.joyous
_getFromTime
28,992
LDU_FT/iLampard/x-utils/timestamp_to_datetime
LDU_FT
[ "<BEGIN>\n## `load_data`", "Overwrite this for new source data structures\n<END>", "<BEGIN>\n## `handle_exception`", ":param logger: logging, a logging object\n :return: decorator, wraps exception loggers\n<END>", "<BEGIN>\n## `clock`", ":param logger: logging, a logging object\n :return: decorator,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp_to_datetime 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 timestamp_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Converts a UTC timestamp to a datetime.datetime.
"Converts a UTC timestamp to a datetime.datetime."
18
false
iLampard/x-utils
timestamp_to_datetime
28,993
LDU_FT/theacodes/cmarkgfm/render_html
LDU_FT
[ "<BEGIN>\n## `_compiler_type`", "Gets the compiler type from distutils. On Windows with MSVC it will be\r\n \"msvc\". On macOS and linux it is \"unix\".\r", " Borrowed from https://github.com/pyca/cryptography/blob\\\r\n /05b34433fccdc2fec0bb014c3668068169d769fd/src/_cffi_src/utils.py#L78\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_html API. 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 render_html API. 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...
Render a given syntax tree as HTML. Args: root (Any): The reference to the root node of the syntax tree. options (int): The cmark options. extensions (Any): The reference to the syntax extensions, generally from :func:`parser_get_syntax_extensions` Returns: ...
"Render a given syntax tree as HTML.\r\n\r\n Args:\r\n root (Any): The reference to the root node of the syntax tree.\r\n options (int): The cmark options.\r\n extensions (Any): The reference to the syntax extensions, generally\r\n from :func:`parser_get_syntax_extensions`\r\n\r\n ...
25
false
theacodes/cmarkgfm
render_html
28,994
LDU_FT/sibirrer/lenstronomy/subgrid_kernel
LDU_FT
[ "<BEGIN>\n## `array2image`", "maps a 1d array into a (nx, ny) 2d grid with array populating the idex_mask indices\n :param array: 1d array\n :param idex_mask: 1d array of length nx*ny\n :param nx: x-axis of 2d grid\n :param ny: y-axis of 2d grid\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subgrid_kernel API. 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 subgrid_kernel API. 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...
creates a higher resolution kernel with subgrid resolution as an interpolation of the original kernel in an iterative approach :param kernel: initial kernel :param subgrid_res: subgrid resolution required :return: kernel with higher resolution (larger)
"creates a higher resolution kernel with subgrid resolution as an interpolation of the original kernel in an\n iterative approach\n\n :param kernel: initial kernel\n :param subgrid_res: subgrid resolution required\n :return: kernel with higher resolution (larger)"
886
false
sibirrer/lenstronomy
subgrid_kernel
28,995
LDU_FT/NetworkAutomation/jaide/xpath
LDU_FT
[ "<BEGIN>\n## `check_instance`", "Wrapper that tests the type of _session.", " Purpose: This decorator function is used by all functions within\n | the Jaide class that interact with a device to ensure the\n | proper session type is in use. If it is not, it will\n | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xpath API. 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 xpath API. 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...
Filter xml based on an xpath expression. Purpose: This function applies an Xpath expression to the XML | supplied by source_xml. Returns a string subtree or | subtrees that match the Xpath expression. It can also return | an xml object if desired. @param source_xml: Plain text...
"Filter xml based on an xpath expression.\n\n Purpose: This function applies an Xpath expression to the XML\n | supplied by source_xml. Returns a string subtree or\n | subtrees that match the Xpath expression. It can also return\n | an xml object if desired.\n\n @param source_xml: Pl...
191
false
NetworkAutomation/jaide
xpath
28,996
LDU_FT/pdkit/pdkit/get_single_score
LDU_FT
[ "<BEGIN>\n## `load`", "This is a general load data method where the format of data to load can be passed as a parameter,", " :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get a single score is a wrapper around the result of classifying a Point against a group of centroids. \ Attributes: observation_score (dict): Original received point and normalised point. :Example: >>> { "original": [0.40369016, 0.65217912], "normalised": [1.65915104,...
"Get a single score is a wrapper around the result of classifying a Point against a group of centroids. \\\n Attributes:\n\n observation_score (dict): Original received point and normalised point.\n\n :Example:\n\n >>> { \"original\": [0.40369016, 0.65217912], \"normalised\":...
344
false
pdkit/pdkit
get_single_score
28,997
LDU_FT/jpscaletti/moar/_temporary_filenames
LDU_FT
[ "<BEGIN>\n## `get_key`", "Generates the thumbnail's key from it's arguments.\n If the arguments doesn't change the key will not change\n<END>", "<BEGIN>\n## `get_source`", "Returns the source image file descriptor.", " path_or_url:\n Path to the source image as an absolute path, a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _temporary_filenames 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 _temporary_filenames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Context manager to create temporary files and remove them after use.
"Context manager to create temporary files and remove them after use."
27
false
jpscaletti/moar
_temporary_filenames
28,998
LDU_FT/thebjorn/pydeps/dot
LDU_FT
[ "<BEGIN>\n## `write`", "Write ``txt`` to file and output stream (StringIO).\n<END>", "<BEGIN>\n## `write_attributes`", "Write comma separated attribute values (if exists).\n<END>", "<BEGIN>\n## `is_noise`", "Is this module just noise? (too common either at top or bottom of\n the graph).\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dot API. 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 dot API. 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...
Execute the dot command to create an svg output.
"Execute the dot command to create an svg output."
60
false
thebjorn/pydeps
dot
28,999
LDU_FT/cocaine/cocaine-tools/keyring_remove
LDU_FT
[ "<BEGIN>\n## `reelect_app`", "tries to connect to the same app on differnet host from dist-info\n<END>", "<BEGIN>\n## `expr`", "expr ::= term ((AND | OR) term)*\n term ::= factor ((EQ | NE) factor)*\n factor ::= func | const | LPAREN expr RPAREN\n func ::= lit LPAREN expr (,expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyring_remove API. 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 keyring_remove API. 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...
Removes a public key from the keyring. Does nothing if a key is already not in the keyring. If none is specified - clears the keyring. To force the cocaine-runtime to refresh its keyring, call `refresh` method.
"Removes a public key from the keyring.\n\n Does nothing if a key is already not in the keyring. If none is specified - clears the keyring.\n To force the cocaine-runtime to refresh its keyring, call `refresh` method."
127
false
cocaine/cocaine-tools
keyring_remove
29,000
LDU_FT/keepkey/python-keepkey/read
LDU_FT
[ "<BEGIN>\n## `enumerate`", "Return a list of available KeepKey devices.\n<END>", "<BEGIN>\n## `sec_to_public_pair`", "Convert a public key in sec binary format to a public pair.\n<END>", "<BEGIN>\n## `parse_path`", "Convert BIP32 path string to list of uint32 integers with hardened flags.\n Several con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
If there is data available to be read from the transport, reads the data and tries to parse it as a protobuf message. If the parsing succeeds, return a protobuf object. Otherwise, returns None.
"If there is data available to be read from the transport, reads the data and tries to parse it as a protobuf message. If the parsing succeeds, return a protobuf object.\n Otherwise, returns None."
24
false
keepkey/python-keepkey
read
29,001
LDU_FT/secure-systems-lab/securesystemslib/load_json_string
LDU_FT
[ "<BEGIN>\n## `get_password`", "<Purpose>\n Return the password entered by the user. If 'confirm' is True, the user is\n asked to enter the previously entered password once again. If they match,\n the password is returned to the caller.", " <Arguments>\n prompt:\n The text of the password pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_json_string API. 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 load_json_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
<Purpose> Deserialize 'data' (JSON string) to a Python object. <Arguments> data: A JSON string. <Exceptions> securesystemslib.exceptions.Error, if 'data' cannot be deserialized to a Python object. <Side Effects> None. <Returns> Deserialized object. For example, a dictionary.
"<Purpose>\n Deserialize 'data' (JSON string) to a Python object.\n\n <Arguments>\n data:\n A JSON string.\n\n <Exceptions>\n securesystemslib.exceptions.Error, if 'data' cannot be deserialized to a\n Python object.\n\n <Side Effects>\n None.\n\n <Returns>\n Deserialized object. For example,...
663
false
secure-systems-lab/securesystemslib
load_json_string
29,002
LDU_FT/swisscom/cleanerversion/get_prefetch_queryset
LDU_FT
[ "<BEGIN>\n## `get_readonly_fields`", "This is required a subclass of VersionedAdmin has readonly_fields\n ours won't be undone\n<END>", "<BEGIN>\n## `get_list_display`", "This method determines which fields go in the changelist\n<END>", "<BEGIN>\n## `get_list_filter`", "Adds versionable custom filt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prefetch_queryset 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_prefetch_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Overrides the parent method to: - force queryset to use the querytime of the parent objects - ensure that the join is done on identity, not id - make the cache key identity, not id.
"Overrides the parent method to:\n - force queryset to use the querytime of the parent objects\n - ensure that the join is done on identity, not id\n - make the cache key identity, not id."
149
false
swisscom/cleanerversion
get_prefetch_queryset
29,003
LDU_FT/ratcave/ratcave/add_child
LDU_FT
[ "<BEGIN>\n## `add_child`", "Adds an object as a child in the scene graph.\n<END>", "<BEGIN>\n## `add_children`", "Conveniience function: Adds objects as children in the scene graph.\n<END>", "<BEGIN>\n## `match_aspect_to_viewport`", "Updates Camera.aspect to match the viewport's aspect ratio.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. 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...
Adds an object as a child in the scene graph.
"Adds an object as a child in the scene graph."
79
false
ratcave/ratcave
add_child
29,004
LDU_FT/praekeltfoundation/molo/get_content_from_url
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sections can have SectionPage and ArticlePage child objects. These have different fields, and thus have to be treated differently.
"Sections can have SectionPage and ArticlePage child objects.\n These have different fields, and thus have to be treated\n differently."
101
false
praekeltfoundation/molo
get_content_from_url
29,005
LDU_FT/nikcub/floyd/timeuntil
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeuntil API. 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 timeuntil API. 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...
Like timesince, but returns a string measuring the time until the given time.
"Like timesince, but returns a string measuring the time until\n the given time."
71
false
nikcub/floyd
timeuntil
29,006
LDU_FT/juju/juju-bundlelib/_handle_units_placement
LDU_FT
[ "<BEGIN>\n## `isstring`", "Report whether the given value is a byte or unicode string.\n<END>", "<BEGIN>\n## `_parse_url`", "Parse the given charm or bundle URL, provided as a string.", " Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_units_placement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_units_placement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Ensure that requires and placement directives are taken into account.
"Ensure that requires and placement directives are taken into account."
84
false
juju/juju-bundlelib
_handle_units_placement
29,007
LDU_FT/viniciuschiele/flask-apidoc/__send_static_file
LDU_FT
[ "<BEGIN>\n## `cached`", "Cache decorator for functions taking one or more arguments.\n :param f: The function to be cached.\n :return: The cached value.\n<END>", "<BEGIN>\n## `init_app`", "Adds the flask url routes for the apidoc files.\n :param app: the flask application.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __send_static_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __send_static_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Send apidoc files from the apidoc folder to the browser. :param path: the apidoc file.
"Send apidoc files from the apidoc folder to the browser.\n :param path: the apidoc file."
12
false
viniciuschiele/flask-apidoc
__send_static_file
29,008
LDU_FT/cfobel/webcam-recorder/record_path
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the points for the specified index position. If no index is\n specified, reset points for all point handlers.\n<END>", "<BEGIN>\n## `refresh_config`", "__NB__ This *must* be called from a *different* thread than the GUI/Gtk thread.\n<END>", "<BEGIN>\n## `record_path`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
If recording is not enabled, return `None` as record path.
"If recording is not enabled, return `None` as record path."
10
false
cfobel/webcam-recorder
record_path
29,009
LDU_FT/ucsb-cs-education/hairball/analyze
LDU_FT
[ "<BEGIN>\n## `main`", "The entrypoint for the hairball command installed via setup.py.\n<END>", "<BEGIN>\n## `path_to_key`", "Return the sha1sum (key) belonging to the file at filepath.\n<END>", "<BEGIN>\n## `key_to_path`", "Return the fullpath to the file with sha1sum key.\n<END>", "<BEGIN>\n## `load`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. 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 analyze API. 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...
Run and return the results from the BroadcastReceive plugin.
"Run and return the results from the BroadcastReceive plugin."
90
false
ucsb-cs-education/hairball
analyze
29,010
LDU_FT/relwell/corenlp-xml-lib/collapsed_ccprocessed_dependencies
LDU_FT
[ "<BEGIN>\n## `mentions`", "Returns mentions", " :return: list of mentions\n :rtype: list\n<END>", "<BEGIN>\n## `sentence`", "The sentence related to this mention", " :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapsed_ccprocessed_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapsed_ccprocessed_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Accesses collapsed, CC-processed dependencies :getter: Returns the dependency graph for collapsed and cc processed dependencies :type: corenlp_xml.dependencies.DependencyGraph
"Accesses collapsed, CC-processed dependencies\n\n :getter: Returns the dependency graph for collapsed and cc processed dependencies\n :type: corenlp_xml.dependencies.DependencyGraph"
87
false
relwell/corenlp-xml-lib
collapsed_ccprocessed_dependencies
29,011
LDU_FT/marrow/WebCore/mul
LDU_FT
[ "<BEGIN>\n## `_promote`", "Create a new subclass of Context which incorporates instance attributes and new descriptors.", "\t\tThis promotes an instance and its instance attributes up to being a class with class attributes, then\n\t\treturns an instance of that class.\n<END>", "<BEGIN>\n## `register`", "Reg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mul API. 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 mul API. 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...
Multiply two values together and return the result via JSON. Python 3 function annotations are used to ensure that the arguments are integers. This requires the functionality of `web.ext.annotation:AnnotationExtension`. There are several ways to execute this method: * POST http://localhost:8080/mul *...
"Multiply two values together and return the result via JSON.\n\t\t\n\t\tPython 3 function annotations are used to ensure that the arguments are integers. This requires the\n\t\tfunctionality of `web.ext.annotation:AnnotationExtension`.\n\t\t\n\t\tThere are several ways to execute this method:\n\t\t\n\t\t* POST http://...
90
false
marrow/WebCore
mul
29,012
LDU_FT/studionow/pybrightcove/_http_request
LDU_FT
[ "<BEGIN>\n## `has_option`", "Wrapper around ConfigParser's ``has_option`` method.\n<END>", "<BEGIN>\n## `get`", "Wrapper around ConfigParser's ``get`` method.\n<END>", "<BEGIN>\n## `item_lister`", "A generator function for listing Video and Playlist objects.\n<END>", "<BEGIN>\n## `get_manifest`", "Con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_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. The ext...
Makes an HTTP request using httplib. Args: method: str example: 'GET', 'POST', 'PUT', 'DELETE', etc. uri: str or atom.http_core.Uri headers: dict of strings mapping to strings which will be sent as HTTP headers in the request. body_parts: list of strings, objects with a r...
"Makes an HTTP request using httplib.\n \n Args:\n method: str example: 'GET', 'POST', 'PUT', 'DELETE', etc.\n uri: str or atom.http_core.Uri\n headers: dict of strings mapping to strings which will be sent as HTTP \n headers in the request.\n body_parts: list of strings, objects ...
67
false
studionow/pybrightcove
_http_request
29,013
LDU_FT/jrabbit/hitman/import_opml
LDU_FT
[ "<BEGIN>\n## `put_a_hit_out`", "Download a feed's most recent enclosure that we don't have\n<END>", "<BEGIN>\n## `selective_download`", "Note: RSS feeds are counted backwards, default newest is 0, the most recent.\n<END>", "<BEGIN>\n## `resolve_name`", "Takes a given input from a user and finds the url fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_opml API. 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 import_opml API. 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...
Import an OPML file locally or from a URL. Uses your text attributes as aliases.
"Import an OPML file locally or from a URL. Uses your text attributes as aliases."
20
false
jrabbit/hitman
import_opml
29,014
LDU_FT/appknox/pyaxmlparser/namespace
LDU_FT
[ "<BEGIN>\n## `_decode8`", "Decode an UTF-8 String at the given offset", " :param offset: offset of the string inside the data\n :return: str\n<END>", "<BEGIN>\n## `_decode16`", "Decode an UTF-16 String at the given offset", " :param offset: offset of the string inside the data\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace API. 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 namespace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the Namespace URI (if any) as a String for the current tag
"Return the Namespace URI (if any) as a String for the current tag"
63
false
appknox/pyaxmlparser
namespace
29,015
LDU_FT/widdowquinn/pyani/submit_safe_jobs
LDU_FT
[ "<BEGIN>\n## `clean_axis`", "Remove ticks, tick labels, and frame from axis\n<END>", "<BEGIN>\n## `get_seaborn_colorbar`", "Return a colorbar representing classes, for a Seaborn plot.", " The aim is to get a pd.Series for the passed dataframe columns,\n in the form:\n 0 colour for class in col 0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_safe_jobs API. 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 submit_safe_jobs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Submit the passed list of jobs to the Grid Engine server, using the passed directory as the root for scheduler output. - root_dir Path to output directory - jobs Iterable of Job objects
"Submit the passed list of jobs to the Grid Engine server, using the\n passed directory as the root for scheduler output.\n\n - root_dir Path to output directory\n - jobs Iterable of Job objects"
244
false
widdowquinn/pyani
submit_safe_jobs
29,016
LDU_FT/sdispater/backpack/forget
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 forget API. 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 forget API. 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 ...
Remove an item from the collection by key. :param keys: The keys to remove :type keys: tuple :rtype: Collection
"Remove an item from the collection by key.\n\n :param keys: The keys to remove\n :type keys: tuple\n\n :rtype: Collection"
137
false
sdispater/backpack
forget
29,017
LDU_FT/frejanordsiek/GeminiMotorDrive/to_unit_distance
LDU_FT
[ "<BEGIN>\n## `get_driver`", "Gets a driver for a Parker Motion Gemini drive.", " Gets and connects a particular driver in ``drivers`` to a Parker\n Motion Gemini GV-6 or GT-6 servo/stepper motor drive.", " The only driver currently supported is the ``'ASCII_RS232'`` driver\n which corresponds to `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_unit_distance API. 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 to_unit_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert distance/s to units of UnitConverter. Converts distance/s from motor encoder counts to that of this UnitConverter. Parameters ---------- distance : int, float, or iterable of ints and floats The distance/s to convert. Returns ------- ...
"Convert distance/s to units of UnitConverter.\n\n Converts distance/s from motor encoder counts to that of this\n UnitConverter.\n\n Parameters\n ----------\n distance : int, float, or iterable of ints and floats\n The distance/s to convert.\n\n Returns\n ---...
159
false
frejanordsiek/GeminiMotorDrive
to_unit_distance
29,018
LDU_FT/karel-brinda/rnftools/destringize
LDU_FT
[ "<BEGIN>\n## `recode_curesim_reads`", "Recode CuReSim output FASTQ file to the RNF-compatible output FASTQ file.", "\t\tArgs:\n\t\t\tcuresim_fastq_fo (file object): File object of CuReSim FASTQ file.\n\t\t\tfastq_rnf_fo (file object): File object of RNF FASTQ.\n\t\t\tfai_fo (file object): File object for FAI fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destringize API. 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 destringize API. 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...
Get RNF values for this segment from its textual representation and save them into this object. Args: string (str): Textual representation of a segment.
"Get RNF values for this segment from its textual representation and\n\t\tsave them into this object.\n\n\t\tArgs:\n\t\t\tstring (str): Textual representation of a segment."
84
false
karel-brinda/rnftools
destringize
29,019
LDU_FT/StevenMaude/bbc-radio-tracklisting-downloader/generate_output
LDU_FT
[ "<BEGIN>\n## `open_listing_page`", "Opens a BBC radio tracklisting page based on trailing part of url.\n Returns a lxml ElementTree derived from that page.", " trailing_part_of_url: a string, like the pid or e.g. pid/segments.inc\n<END>", "<BEGIN>\n## `get_programme_title`", "Take BBC programme ID as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_output API. 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 generate_output API. 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...
Returns a string containing a full tracklisting. listing: list of (artist(s), track, record label) tuples title: programme title date: programme date
"Returns a string containing a full tracklisting.\n\n listing: list of (artist(s), track, record label) tuples\n title: programme title\n date: programme date"
23
false
StevenMaude/bbc-radio-tracklisting-downloader
generate_output
29,020
LDU_FT/kplindegaard/smbus2/write_byte
LDU_FT
[ "<BEGIN>\n## `read`", "Prepares an i2c read transaction.", " :param address: Slave address.\n :type: address: int\n :param length: Number of bytes to read.\n :type: length: int\n :return: New :py:class:`i2c_msg` instance for read operation.\n :rtype: :py:class:`i2c_msg`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_byte API. 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_byte API. 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 a single byte to a device. :param i2c_addr: i2c address :type i2c_addr: int :param value: value to write :type value: int :param force: :type force: Boolean
"Write a single byte to a device.\n\n :param i2c_addr: i2c address\n :type i2c_addr: int\n :param value: value to write\n :type value: int\n :param force:\n :type force: Boolean"
51
false
kplindegaard/smbus2
write_byte
29,021
LDU_FT/erdewit/ib_insync/tree
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a running TWS or IB gateway application.\n After the connection is made the client is fully synchronized\n and ready to serve requests.", " This method is blocking.", " Args:\n host: Host name or IP address.\n port: Port nu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree API. 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 tree API. 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...
Convert object to a tree of lists, dicts and simple values. The result can be serialized to JSON.
"Convert object to a tree of lists, dicts and simple values.\n The result can be serialized to JSON."
287
false
erdewit/ib_insync
tree
29,022
LDU_FT/core/uricore/url_fix
LDU_FT
[ "<BEGIN>\n## `iteritems`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `iterlists`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `to_dict`", "Return the contents as regular dict. If `flat` is `True` the\n returned dict will only have the first item pre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_fix API. 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 url_fix API. 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"""Sometimes you get an URL by a user that just isn't a real URL because it contains unsafe characters like ' ' and so on. This function can fix some of the problems in a similar way browsers handle data entered by the user: >>> url_fix(u'http://de.wikipedia.org/wiki/Elf (Begriffskl\xe4rung)') 'h...
"r\"\"\"Sometimes you get an URL by a user that just isn't a real URL because\n it contains unsafe characters like ' ' and so on. This function can fix\n some of the problems in a similar way browsers handle data entered by the\n user:\n\n >>> url_fix(u'http://de.wikipedia.org/wiki/Elf (Begriffskl\\xe4rung...
85
false
core/uricore
url_fix
29,023
LDU_FT/briancappello/flask-unchained/property2field
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of a model.", " :param instance: The created model instance.\n :param errors: Any errors.\n :return: The created model instance, or a dictionary of errors.\n<END>", "<BEGIN>\n## `patch`", "Partially update a model instance.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the property2field API. 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 property2field API. 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...
Overridden to mark non-nullable model columns as required (unless it's the primary key, because there's no way to tell if we're generating fields for a create or an update).
"Overridden to mark non-nullable model columns as required (unless it's the\n primary key, because there's no way to tell if we're generating fields\n for a create or an update)."
597
false
briancappello/flask-unchained
property2field
29,024
LDU_FT/MacHu-GWU/macro-project/home
LDU_FT
[ "<BEGIN>\n## `learn_all_skill`", "在技能编辑界面学会所有的技能。运行脚本前, 将鼠标放在第一个技能的技能等级\n 的数字上, 并选中所有文本。然后运行此脚本, 并在1秒内切回到修改器界面。", " :param level: 技能等级\n :param master_level: 专精等级, 0是普通, 1是专家, 2是大师\n<END>", "<BEGIN>\n## `right_click`", "Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home API. 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 home API. 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...
Pres home key n times. **中文文档** 按 home 键n次。
"Pres home key n times.\n\n **中文文档**\n\n 按 home 键n次。"
125
false
MacHu-GWU/macro-project
home
29,025
LDU_FT/honzamach/pynspect/jpath_set
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jpath_set API. 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 jpath_set API. 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...
Set given JPath to given value within given structure. For performance reasons this method is intentionally not written as recursive. :param str structure: data structure to be searched :param str jpath: JPath to be evaluated :param any value: value of any type to be set at given path :param b...
"Set given JPath to given value within given structure.\n\n For performance reasons this method is intentionally not written as\n recursive.\n\n :param str structure: data structure to be searched\n :param str jpath: JPath to be evaluated\n :param any value: value of any type to be set at given path\n ...
143
false
honzamach/pynspect
jpath_set
29,026
LDU_FT/adblair/configloader/namespace_lower
LDU_FT
[ "<BEGIN>\n## `update_from_object`", "Update dict from the attributes of a module, class or other object.", " By default only attributes with all-uppercase names will be retrieved.\n Use the ``criterion`` argument to modify that behaviour.", " :arg obj: Either the actual module/object, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_lower API. 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 namespace_lower API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return a copy with only the keys from a given namespace, lower-cased. The keys in the returned dict will be transformed to lower case after filtering, so they can be easily passed as keyword arguments to other functions. This is just syntactic sugar for calling :meth:`~ConfigLoader.name...
"Return a copy with only the keys from a given namespace, lower-cased.\n\n The keys in the returned dict will be transformed to lower case after\n filtering, so they can be easily passed as keyword arguments to other\n functions. This is just syntactic sugar for calling\n :meth:`~ConfigLoade...
30
false
adblair/configloader
namespace_lower
29,027
LDU_FT/tjcsl/ion/join_event_view
LDU_FT
[ "<BEGIN>\n## `student_visible`", "Return a list of groups that are student-visible.\n<END>", "<BEGIN>\n## `stdev`", "r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_event_view API. 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 join_event_view API. 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...
Join event page. If a POST request, actually add or remove the attendance of the current user. Otherwise, display a page with confirmation. id: event id
"Join event page. If a POST request, actually add or remove the attendance of the current\n user. Otherwise, display a page with confirmation.\n\n id: event id"
407
false
tjcsl/ion
join_event_view
29,028
LDU_FT/GaretJax/lancet/time
LDU_FT
[ "<BEGIN>\n## `load_config`", "Loads and parses an INI style configuration file using Python's built-in\n configparser module. If path is specified, load it.\n If ``defaults`` (a list of strings) is given, try to load each entry as a\n file, without throwing any error if the operation fails.\n If ``def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time API. 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 time API. 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...
Start an Harvest timer for the given issue. This command takes care of linking the timer with the issue tracker page for the given issue. If the issue is not passed to command it's taken from currently active branch.
"Start an Harvest timer for the given issue.\n\n This command takes care of linking the timer with the issue tracker page\n for the given issue. If the issue is not passed to command it's taken\n from currently active branch."
50
false
GaretJax/lancet
time
29,029
LDU_FT/jay-johnson/celery-loaders/get_celery_app
LDU_FT
[ "<BEGIN>\n## `do_some_work`", "do_some_work", " :param work_dict: dictionary for key/values\n<END>", "<BEGIN>\n## `always_fails`", "always_fails", " :param work_dict: dictionary for key/values\n<END>", "<BEGIN>\n## `get_celery_app`", "get_celery_app", " :param name: name for this app\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_celery_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_celery_app API. 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...
get_celery_app :param name: name for this app :param auth_url: celery broker :param backend_url: celery backend :param include_tasks: list of modules containing tasks to add :param ssl_options: security options dictionary :param trasport_options: transport options dictionary :param path_to_...
"get_celery_app\n\n :param name: name for this app\n :param auth_url: celery broker\n :param backend_url: celery backend\n :param include_tasks: list of modules containing tasks to add\n :param ssl_options: security options dictionary\n :param trasport_options: transport options dictionary\n :param...
17
false
jay-johnson/celery-loaders
get_celery_app
29,030
LDU_FT/inveniosoftware/invenio-pidstore/register_fetcher
LDU_FT
[ "<BEGIN>\n## `recid_fetcher`", "Fetch a record's identifiers.", " :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.\n<END>", "<BEGIN>\n## `get_object`", "Get an object behind persistent identifier.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_fetcher API. 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 register_fetcher API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Register a fetcher. :param name: Fetcher name. :param fetcher: The new fetcher.
"Register a fetcher.\n\n :param name: Fetcher name.\n :param fetcher: The new fetcher."
118
false
inveniosoftware/invenio-pidstore
register_fetcher
29,031
LDU_FT/maikelboogerd/eventcore/dispatch
LDU_FT
[ "<BEGIN>\n## `event_subscriber`", "Register a method, which gets called when this event triggers.\n :param event: the event to register the decorator method on.\n<END>", "<BEGIN>\n## `dispatch_event`", "Dispatch an event when the decorated method is called.\n :param event: the event class to instantiate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
Dispatch the event, sending a message to the queue using a producer. :param producer: optional `Producer` to replace the default one.
"Dispatch the event, sending a message to the queue using a producer.\n :param producer: optional `Producer` to replace the default one."
12
false
maikelboogerd/eventcore
dispatch
29,032
LDU_FT/globus/globus-cli/delete_command
LDU_FT
[ "<BEGIN>\n## `role_show`", "Executor for `globus endpoint role show`\n<END>", "<BEGIN>\n## `outformat_is_json`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_unix`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_text`", "Only safe to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 ex...
Executor for `globus endpoint permission delete`
"Executor for `globus endpoint permission delete`"
186
false
globus/globus-cli
delete_command
29,033
LDU_FT/9wfox/tornadoweb/signout
LDU_FT
[ "<BEGIN>\n## `_get_handlers`", "获取 action.handlers\r", " 添加路径 __conf__.ACTION_DIR_NAME 列表中的 action by ABeen\n<END>", "<BEGIN>\n## `url`", "Class Decorator: 设置路径匹配模式和排序序号\r", " 1. 支持设置多个链接匹配规则。\r", " 参数:\r\n pattern 链接正则匹配\r\n order 排序序号\r", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signout API. 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 signout API. 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...
注销登录状态 参数: redirect_url 跳转链接,为 None 时不跳转 (Ajax 可能用得到)。
"注销登录状态\r\n\r\n 参数:\r\n redirect_url 跳转链接,为 None 时不跳转 (Ajax 可能用得到)。"
20
false
9wfox/tornadoweb
signout
29,034
LDU_FT/neo4j/neo4j-python-driver/unit_of_work
LDU_FT
[ "<BEGIN>\n## `basic_auth`", "Generate a basic auth token for a given user and password.", " :param user: user name\n :param password: current password\n :param realm: specifies the authentication provider\n :return: auth token for use with :meth:`GraphDatabase.driver`\n<END>", "<BEGIN>\n## `custom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unit_of_work API. 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 unit_of_work API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This function is a decorator for transaction functions that allows extra control over how the transaction is carried out. For example, a timeout (in seconds) may be applied:: @unit_of_work(timeout=25.0) def count_people(tx): return tx.run("MATCH (a:Person) RETURN count(a)").single(...
"This function is a decorator for transaction functions that allows\n extra control over how the transaction is carried out.\n\n For example, a timeout (in seconds) may be applied::\n\n @unit_of_work(timeout=25.0)\n def count_people(tx):\n return tx.run(\"MATCH (a:Person) RETURN count(a)\...
133
false
neo4j/neo4j-python-driver
unit_of_work
29,035
LDU_FT/galactics/beyond/_scale_tdb_minus_tt
LDU_FT
[ "<BEGIN>\n## `create_station`", "Create a ground station instance", " Args:\n name (str): Name of the station", " latlonalt (tuple of float): coordinates of the station, as follow:", " * Latitude in degrees\n * Longitude in degrees\n * Altitude to sea level ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scale_tdb_minus_tt 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 _scale_tdb_minus_tt 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...
Definition of the Barycentric Dynamic Time scale relatively to Terrestrial Time
"Definition of the Barycentric Dynamic Time scale relatively to Terrestrial Time"
297
false
galactics/beyond
_scale_tdb_minus_tt
29,036
LDU_FT/robmcmullen/atrcopy/serialize_session
LDU_FT
[ "<BEGIN>\n## `text_to_int`", "Convert text to int, raising exeception on invalid input\n<END>", "<BEGIN>\n## `assign_sector_numbers`", "Map out the sectors and link the sectors together", " raises NotEnoughSpaceOnDisk if the whole file won't fit. It will not\n allow partial writes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_session API. 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 serialize_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Save extra metadata to a dict so that it can be serialized This is not saved by __getstate__ because child segments will point to the same data and this allows it to only be saved for the base segment. As well as allowing it to be pulled out of the main json so that it can be more easil...
"Save extra metadata to a dict so that it can be serialized\n\n This is not saved by __getstate__ because child segments will point to\n the same data and this allows it to only be saved for the base segment.\n As well as allowing it to be pulled out of the main json so that it can\n be more...
73
false
robmcmullen/atrcopy
serialize_session
29,037
LDU_FT/AllTheWayDown/turgles/create_turtle
LDU_FT
[ "<BEGIN>\n## `shape`", "We need to shift buffers in order to change shape\n<END>", "<BEGIN>\n## `new`", "Return the last currently unused chunk, resizing if needed.", " If init is passed, chunk will be initialised to that data\n<END>", "<BEGIN>\n## `resize`", "Create a new larger array, and copy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_turtle API. 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_turtle API. 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 slice of memory for turtle data storage
"Create a slice of memory for turtle data storage"
22
false
AllTheWayDown/turgles
create_turtle
29,038
LDU_FT/RIPE-NCC/ripe-atlas-cousteau/set_total_count
LDU_FT
[ "<BEGIN>\n## `update_get_params`", "Update HTTP GET params with the given fields that user wants to fetch.\n<END>", "<BEGIN>\n## `_fetch_meta_data`", "Makes an API call to fetch meta data for the given probe and stores the raw data.\n<END>", "<BEGIN>\n## `_populate_data`", "Assing some probe's raw meta da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_total_count API. 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 set_total_count API. 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...
Setter for count attribute. Set should append only one count per splitted url.
"Setter for count attribute. Set should append only one count per splitted url."
62
false
RIPE-NCC/ripe-atlas-cousteau
set_total_count
29,039
LDU_FT/jeffh/rpi_courses/crosslisted_with
LDU_FT
[ "<BEGIN>\n## `safeInt`", "Throws an exception if the number starts with a 0 (may be significant).", " If the value cannot be converted to an int, it is returned as is.\n<END>", "<BEGIN>\n## `from_string`", "Creates a new CourseCatalog instance from an string containing xml.\n<END>", "<BEGIN>\n## `cross...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crosslisted_with API. 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 crosslisted_with API. 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 all the CRN courses crosslisted with the given crn. The returned crosslisting does not include the original CRN.
"Returns all the CRN courses crosslisted with the given crn.\n The returned crosslisting does not include the original CRN."
59
false
jeffh/rpi_courses
crosslisted_with
29,040
LDU_FT/dsoprea/NsqSpinner/sample_rate
LDU_FT
[ "<BEGIN>\n## `__send_rdy`", "Determine the RDY value, and set it. It can either be a static value\n a callback, or None. If it's None, we'll calculate the value based on\n our limits and connection counts.", " The documentation recommends starting with (1), but since we are always\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_rate API. 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 sample_rate API. 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...
sample_rate (nsqd 0.2.25+) sample messages delivered over this connection. Valid range: 0 <= sample_rate <= 99 (0 disables sampling) Defaults to 0
"sample_rate (nsqd 0.2.25+) sample messages delivered over this \n connection.\n\n Valid range: 0 <= sample_rate <= 99 (0 disables sampling)\n\n Defaults to 0"
50
false
dsoprea/NsqSpinner
sample_rate
29,041
LDU_FT/carpyncho/feets/anim_to_html
LDU_FT
[ "<BEGIN>\n## `basic_animation`", "Plot a basic sine wave with oscillating amplitude\n<END>", "<BEGIN>\n## `lorenz_animation`", "Plot a 3D visualization of the dynamics of the Lorenz system\n<END>", "<BEGIN>\n## `_included_frames`", "frame_list should be a list of filenames\n<END>", "<BEGIN>\n## `_embedd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anim_to_html API. 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 anim_to_html API. 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...
Generate HTML representation of the animation
"Generate HTML representation of the animation"
111
false
carpyncho/feets
anim_to_html
29,042
LDU_FT/yeraydiazdiaz/lunr.py/clause
LDU_FT
[ "<BEGIN>\n## `get_nltk_builder`", "Returns a builder with stemmers for all languages added to it.", " Args:\n languages (list): A list of supported languages.\n<END>", "<BEGIN>\n## `register_languages`", "Register all supported languages to ensure compatibility.\n<END>", "<BEGIN>\n## `Tokenizer`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clause API. 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 clause API. 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 ...
Adds a `lunr.Clause` to this query. Unless the clause contains the fields to be matched all fields will be matched. In addition a default boost of 1 is applied to the clause. If the first argument is a `lunr.Clause` it will be mutated and added, otherwise args and kwargs will be used i...
"Adds a `lunr.Clause` to this query.\n\n Unless the clause contains the fields to be matched all fields will be\n matched. In addition a default boost of 1 is applied to the clause.\n\n If the first argument is a `lunr.Clause` it will be mutated and added,\n otherwise args and kwargs will be...
128
false
yeraydiazdiaz/lunr.py
clause
29,043
LDU_FT/foxx/python-helpful/generate_random_token
LDU_FT
[ "<BEGIN>\n## `unique_iter`", "See http://www.peterbe.com/plog/uniqifiers-benchmark\n Originally f8 written by Dave Kirby\n<END>", "<BEGIN>\n## `ensure_subclass`", "Ensure value is a subclass of types", " >>> class Hello(object): pass\n >>> ensure_subclass(Hello, Hello)\n >>> ensure_subclass(obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_random_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_random_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generate random secure token >>> len(generate_random_token()) 32 >>> len(generate_random_token(6)) 6
"Generate random secure token\n\n >>> len(generate_random_token())\n 32\n >>> len(generate_random_token(6))\n 6"
57
false
foxx/python-helpful
generate_random_token
29,044
LDU_FT/SetBased/py-etlt/clean
LDU_FT
[ "<BEGIN>\n## `_split_scheme`", "Splits the scheme and actual expression", " :param str expression: The expression.", " :rtype: str\n<END>", "<BEGIN>\n## `register_scheme`", "Registers a scheme.", " :param str scheme: The scheme.\n :param callable constructor: The SimpleCondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
Converts a number to a number with decimal point. :param str amount: The input number. :rtype: str
"Converts a number to a number with decimal point.\n\n :param str amount: The input number.\n\n :rtype: str"
155
false
SetBased/py-etlt
clean
29,045
LDU_FT/HDI-Project/MLPrimitives/_join_names
LDU_FT
[ "<BEGIN>\n## `resample`", "pd.DataFrame.resample adapter.", " Call the `df.resample` method on the given time_index\n and afterwards call the indicated aggregation.", " Optionally group the dataframe by the indicated columns before\n performing the resampling.", " If groupby option is used, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _join_names API. 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 _join_names API. 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...
Join the names of a multi-level index with an underscore.
"Join the names of a multi-level index with an underscore."
96
false
HDI-Project/MLPrimitives
_join_names
29,046
LDU_FT/gr33ndata/dysl/lr_padding
LDU_FT
[ "<BEGIN>\n## `get_ngram_counts`", "Returns a list of n-gram counts\n Array of classes counts and last item is for corpus\n<END>", "<BEGIN>\n## `to_ngrams`", "Converts terms to all possibe ngrams \n terms: list of terms\n<END>", "<BEGIN>\n## `lr_padding`", "Pad doc from the left and r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lr_padding API. 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 lr_padding API. 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...
Pad doc from the left and right before adding, depending on what's in self.lpad and self.rpad If any of them is '', then don't pad there.
"Pad doc from the left and right before adding,\n depending on what's in self.lpad and self.rpad\n If any of them is '', then don't pad there."
48
false
gr33ndata/dysl
lr_padding
29,047
LDU_FT/projectatomic/osbs-client/render_bump_release
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_bump_release 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 render_bump_release 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...
If the bump_release plugin is present, configure it
"If the bump_release plugin is present, configure it"
268
false
projectatomic/osbs-client
render_bump_release
29,048
LDU_FT/bheinzerling/pyrouge/evaluate
LDU_FT
[ "<BEGIN>\n## `split`", "Splits text and returns a list of the resulting sentences.\n<END>", "<BEGIN>\n## `xml_equal`", "Parse xml and convert to a canonical string representation so we don't\n have to worry about semantically meaningless differences\n<END>", "<BEGIN>\n## `process`", "Apply function to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API. 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 evaluate API. 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...
Run ROUGE to evaluate the system summaries in system_dir against the model summaries in model_dir. The summaries are assumed to be in the one-sentence-per-line HTML format ROUGE understands. system_id: Optional system ID which will be printed in ROUGE's output. ...
"Run ROUGE to evaluate the system summaries in system_dir against\n the model summaries in model_dir. The summaries are assumed to\n be in the one-sentence-per-line HTML format ROUGE understands.\n\n system_id: Optional system ID which will be printed in\n ROUGE's output...
45
false
bheinzerling/pyrouge
evaluate
29,049
LDU_FT/python-rope/rope/get_indicator
LDU_FT
[ "<BEGIN>\n## `find_occurrences`", "Return a list of `Location`\\s", " If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_indicator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_indicator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the modification time and size of a `Resource`.
"Return the modification time and size of a `Resource`."
312
false
python-rope/rope
get_indicator
29,050
LDU_FT/scottrice/pysteam/_is_user_directory
LDU_FT
[ "<BEGIN>\n## `__get_nondirect_init`", "return the non-direct init if the direct algorithm has been selected.\n<END>", "<BEGIN>\n## `reflect`", "reflect a data word, i.e. reverts the bit order.\n<END>", "<BEGIN>\n## `bit_by_bit`", "Classic simple and slow CRC implementation. This function iterates bit\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_user_directory 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_user_directory 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...
Check whether `pathname` is a valid user data directory This method is meant to be called on the contents of the userdata dir. As such, it will return True when `pathname` refers to a directory name that can be interpreted as a users' userID.
"Check whether `pathname` is a valid user data directory\n\n This method is meant to be called on the contents of the userdata dir.\n As such, it will return True when `pathname` refers to a directory name\n that can be interpreted as a users' userID."
33
false
scottrice/pysteam
_is_user_directory
29,051
LDU_FT/BD2KOnFHIR/fhirtordf/value_predicate_to_type
LDU_FT
[ "<BEGIN>\n## `namespace_for`", "Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>", "<BEGIN>\n## `known_formats`", "Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_predicate_to_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_predicate_to_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Convert a predicate in the form of "fhir:[...].value[type] to fhir:type, covering the downshift on the first character if necessary :param value_pred: Predicate associated with the value :return: corresponding type or None if not found
"Convert a predicate in the form of \"fhir:[...].value[type] to fhir:type, covering the downshift on the\n first character if necessary\n :param value_pred: Predicate associated with the value\n :return: corresponding type or None if not found"
75
false
BD2KOnFHIR/fhirtordf
value_predicate_to_type
29,052
LDU_FT/asyncee/django-easy-select2/visit_console_html
LDU_FT
[ "<BEGIN>\n## `render_js_code`", "Render html container for Select2 widget with options.\n<END>", "<BEGIN>\n## `render`", "Extend base class's `render` method by appending\n javascript inline text to html output.\n<END>", "<BEGIN>\n## `visit_console_html`", "Generate HTML for the console directive.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_console_html 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 visit_console_html 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...
Generate HTML for the console directive.
"Generate HTML for the console directive."
16
false
asyncee/django-easy-select2
visit_console_html
29,053
LDU_FT/AntagonistHQ/openprovider.py/retrieve_customer
LDU_FT
[ "<BEGIN>\n## `snake_to_camel`", "Converts a snake_case_string to a camelCaseString.", " >>> snake_to_camel(\"foo_bar_baz\")\n 'fooBarBaz'\n<END>", "<BEGIN>\n## `retrieve_approver_email_list`", "Retrieve the list of allowed approver email addresses.\n<END>", "<BEGIN>\n## `resend_approver_email`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_customer API. 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 retrieve_customer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve information of an existing customer.
"Retrieve information of an existing customer."
38
false
AntagonistHQ/openprovider.py
retrieve_customer
29,054
LDU_FT/openpermissions/perch/repository_name
LDU_FT
[ "<BEGIN>\n## `collect`", "Import all modules inside the perch.migrations package and return the\n registered migrations\n<END>", "<BEGIN>\n## `run_migrations`", "Run migrations for a resource type", " :param: a dicitionary of migrations\n<END>", "<BEGIN>\n## `_migrate_resource`", "Migrate a resour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repository_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repository_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
View for checking repository name is unique
"View for checking repository name is unique"
177
false
openpermissions/perch
repository_name
29,055
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_wght_valid_range
LDU_FT
[ "<BEGIN>\n## `get_module_profile`", "Get or create a profile from a module and return it.", " If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_wght_valid_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_wght_valid_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
The variable font 'wght' (Weight) axis coordinate must be within spec range of 1 to 1000 on all instances.
"The variable font 'wght' (Weight) axis coordinate\n must be within spec range of 1 to 1000 on all instances."
381
false
googlefonts/fontbakery
com_google_fonts_check_wght_valid_range
29,056
LDU_FT/theislab/anndata/_get_var_array
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Read ``.csv`` file.", " Same as :func:`~anndata.read_text` but with default delimiter ``','``.", " Parameters\n ----------\n filename\n Data file.\n delimiter\n Delimiter that separates data within text file. If ``None``, will split at\n arbitrary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_var_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_var_array API. 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...
Get an array from the layer (default layer='X') along the variables dimension by first looking up ``var.keys`` and then ``obs.index``.
"Get an array from the layer (default layer='X') along the variables dimension by first looking up\n ``var.keys`` and then ``obs.index``."
143
false
theislab/anndata
_get_var_array
29,057
LDU_FT/wickman/compactor/route
LDU_FT
[ "<BEGIN>\n## `encode_request`", "Encode a request into a raw HTTP request. This function returns a string\n of bytes that represent a valid HTTP/1.0 request, including any libprocess\n headers required for communication.", " Use the `legacy` option (set to True) to use the legacy User-Agent based\n libproce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the route API. 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 route API. 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...
A decorator to indicate that a method should be a routable HTTP endpoint. .. code-block:: python from compactor.process import Process class WebProcess(Process): @Process.route('/hello/world') def hello_world(self, handler): return handler.write('<html><title>hello...
"A decorator to indicate that a method should be a routable HTTP endpoint.\n\n .. code-block:: python\n\n from compactor.process import Process\n\n class WebProcess(Process):\n @Process.route('/hello/world')\n def hello_world(self, handler):\n return handler.write('<html><t...
96
false
wickman/compactor
route
29,058
LDU_FT/n1analytics/python-paillier/improved_i_sqrt
LDU_FT
[ "<BEGIN>\n## `generate_keypair`", "Generate a paillier private key.", " Output as JWK to given output file. Use \"-\" to output the private key to\n stdout. See the extract command to extract the public component of the\n private key.", " Note:\n The default ID text includes the current tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the improved_i_sqrt API. 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 improved_i_sqrt API. 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...
taken from http://stackoverflow.com/questions/15390807/integer-square-root-in-python Thanks, mathmandan
"taken from\n http://stackoverflow.com/questions/15390807/integer-square-root-in-python\n Thanks, mathmandan"
169
false
n1analytics/python-paillier
improved_i_sqrt
29,059
LDU_FT/TracyWebTech/django-revproxy/get_django_response
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_django_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_django_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
This method is used to create an appropriate response based on the Content-Length of the proxy_response. If the content is bigger than MIN_STREAMING_LENGTH, which is found on utils.py, than django.http.StreamingHttpResponse will be created, else a django.http.HTTPResponse will be created instead :p...
"This method is used to create an appropriate response based on the\n Content-Length of the proxy_response. If the content is bigger than\n MIN_STREAMING_LENGTH, which is found on utils.py,\n than django.http.StreamingHttpResponse will be created,\n else a django.http.HTTPResponse will be created instead\n\...
41
false
TracyWebTech/django-revproxy
get_django_response
29,060
LDU_FT/guyskk/flask-restaction/add_resource
LDU_FT
[ "<BEGIN>\n## `resp_json`", "Get JSON from response if success, raise requests.HTTPError otherwise.", " Args:\n resp: requests.Response or flask.Response\n Retuens:\n JSON value\n<END>", "<BEGIN>\n## `res_to_url`", "Convert resource.action to (url, HTTP_METHOD)\n<END>", "<BEGIN>\n## `_r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_resource API. 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 add_resource API. 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...
Add resource Parse resource and it's actions, route actions by naming rule. Args: resource: resource class class_args: class_args class_kwargs: class_kwargs
"Add resource\n\n Parse resource and it's actions, route actions by naming rule.\n\n Args:\n resource: resource class\n class_args: class_args\n class_kwargs: class_kwargs"
58
false
guyskk/flask-restaction
add_resource
29,061
LDU_FT/hid-io/layouts-python/basic_c_defines
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry-point for calling layouts directly as a program.\n<END>", "<BEGIN>\n## `retrieve_github_cache`", "Retrieves a cache of the layouts git repo from GitHub", " @param github_path: Location of the git repo on GitHub (e.g. hid-io/layouts)\n @param version: git refer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_c_defines API. 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 basic_c_defines API. 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...
Generates a list of C defines that can be used to generate a header file @param layout: Layout object @keyboard_prefix: Prefix used for to_hid_keyboard @led_prefix: Prefix used for to_hid_led @sysctrl_prefix: Prefix used for to_hid_sysctrl @cons_prefix: Prefix used for to_hid_consumer @code_suf...
"Generates a list of C defines that can be used to generate a header file\n\n @param layout: Layout object\n @keyboard_prefix: Prefix used for to_hid_keyboard\n @led_prefix: Prefix used for to_hid_led\n @sysctrl_prefix: Prefix used for to_hid_sysctrl\n @cons_prefix: Prefix used for to_hid_consumer\n @...
35
false
hid-io/layouts-python
basic_c_defines
29,062
LDU_FT/Godley/MuseParse/toLily
LDU_FT
[ "<BEGIN>\n## `get`", "method to fetch all contents as a list", " :return: list\n<END>", "<BEGIN>\n## `toLily`", "Method which converts the object instance and its attributes to a string of lilypond code", " :return: str of lilypond code\n<END>", "<BEGIN>\n## `Find`", "method for finding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toLily API. 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 toLily API. 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 ...
Method which converts the object instance, its attributes and children to a string of lilypond code :return: str of lilypond code
"Method which converts the object instance, its attributes and children to a string of lilypond code\n\n :return: str of lilypond code"
113
false
Godley/MuseParse
toLily
29,063
LDU_FT/assamite/creamas/minimum
LDU_FT
[ "<BEGIN>\n## `configure_logger`", "Configure logging behvior for the simulations.\n<END>", "<BEGIN>\n## `fractal_dimension`", "Estimates the fractal dimension of an image with box counting.\n Counts pixels with value 0 as empty and everything else as non-empty.\n Input image has to be grayscale.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimum API. 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 minimum API. 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...
Evaluate artifact's value to be minimum of values returned by rule's subrules. This evaluation function ignores subrule weights.
"Evaluate artifact's value to be minimum of values returned by rule's\n subrules.\n\n This evaluation function ignores subrule weights."
529
false
assamite/creamas
minimum
29,064
LDU_FT/ronaldguillen/wave/auth
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. 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 auth API. 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 any non-user authentication information associated with the request, such as an authentication token.
"Sets any non-user authentication information associated with the\n request, such as an authentication token."
296
false
ronaldguillen/wave
auth
29,065
LDU_FT/openstax/cnx-easybake/copy_w_id_suffix
LDU_FT
[ "<BEGIN>\n## `log_decl_method`", "Decorate do_declartion methods for debug logging.\n<END>", "<BEGIN>\n## `css_to_func`", "Convert a css selector to an xpath, supporting pseudo elements.\n<END>", "<BEGIN>\n## `append_string`", "Append a string to a node, as text or tail of last child.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_w_id_suffix API. 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 copy_w_id_suffix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make a deep copy of the provided tree, altering ids.
"Make a deep copy of the provided tree, altering ids."
55
false
openstax/cnx-easybake
copy_w_id_suffix
29,066
LDU_FT/JNRowe/upoints/import_locations
LDU_FT
[ "<BEGIN>\n## `import_locations`", "Parse zoneinfo zone description data files.", " ``import_locations()`` returns a list of :class:`Zone` objects.", " It expects data files in one of the following formats::", " AN\t+1211-06900\tAmerica/Curacao\n AO\t-0848+01314\tAfrica/Lu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_locations API. 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 import_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Import GPX data files. ``import_locations()`` returns a list with :class:`~gpx.Waypoint` objects. It expects data files in GPX format, as specified in `GPX 1.1 Schema Documentation`_, which is XML such as:: <?xml version="1.0" encoding="utf-8" standalone="no"?> ...
"Import GPX data files.\n\n ``import_locations()`` returns a list with :class:`~gpx.Waypoint`\n objects.\n\n It expects data files in GPX format, as specified in `GPX 1.1 Schema\n Documentation`_, which is XML such as::\n\n <?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\...
438
false
JNRowe/upoints
import_locations
29,067
LDU_FT/gear11/pypelogs/_paged_api_call
LDU_FT
[ "<BEGIN>\n## `geo_filter`", "Inspects the given Wikipedia article dict for geo-coordinates.", " If no coordinates are found, returns None. Otherwise, returns a new dict\n with the title and URL of the original article, along with coordinates.\n<END>", "<BEGIN>\n## `find_geo_coords`", "Returns a list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _paged_api_call API. 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 _paged_api_call API. 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...
Takes a Flickr API function object and dict of keyword args and calls the API call repeatedly with an incrementing page value until all contents are exhausted. Flickr seems to limit to about 500 items.
"Takes a Flickr API function object and dict of keyword args and calls the\n API call repeatedly with an incrementing page value until all contents are exhausted.\n Flickr seems to limit to about 500 items."
40
false
gear11/pypelogs
_paged_api_call
29,068
LDU_FT/inonit/drf-haystack/facets
LDU_FT
[ "<BEGIN>\n## `download_setuptools`", "Download distribute from a specified location and return its filename", " `version` should be a valid distribute version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the facets API. 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 facets API. 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 ...
Sets up a list route for ``faceted`` results. This will add ie ^search/facets/$ to your existing ^search pattern.
"Sets up a list route for ``faceted`` results.\n This will add ie ^search/facets/$ to your existing ^search pattern."
77
false
inonit/drf-haystack
facets
29,069
LDU_FT/adamziel/python_translate/read_file
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Reads a file into memory and returns it's contents @type path: str @param path: path to load
"Reads a file into memory and returns it's contents\n\n @type path: str\n @param path: path to load"
136
false
adamziel/python_translate
read_file
29,070
LDU_FT/inspirehep/inspire-query-parser/_generate_date_with_wildcard_query
LDU_FT
[ "<BEGIN>\n## `_restructure_if_volume_follows_journal`", "Remove volume node if it follows a journal logically in the tree hierarchy.", " Args:\n left (ast.ASTElement): The journal KeywordOp node.\n right (ast.ASTElement): The rest of the tree to be restructured.", " Return:\n (ast.A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_date_with_wildcard_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_date_with_wildcard_query API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Helper for generating a date keyword query containing a wildcard. Returns: (dict): The date query containing the wildcard or an empty dict in case the date value is malformed. The policy followed here is quite conservative on what it accepts as valid input. Look into :meth:`inspire...
"Helper for generating a date keyword query containing a wildcard.\n\n Returns:\n (dict): The date query containing the wildcard or an empty dict in case the date value is malformed.\n\n The policy followed here is quite conservative on what it accepts as valid input. Look into\n :meth:`...
142
false
inspirehep/inspire-query-parser
_generate_date_with_wildcard_query
29,071
LDU_FT/MLAB-project/pymlab/write_byte_data
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_byte_data API. 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 write_byte_data API. 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...
SMBus Read Byte: i2c_smbus_read_byte_data() ============================================ This reads a single byte from a device, from a designated register. The register is specified through the Comm byte. S Addr Wr [A] Comm [A] S Addr Rd [A] [Data] NA P Functionality flag: I...
"SMBus Read Byte: i2c_smbus_read_byte_data()\n ============================================\n\n This reads a single byte from a device, from a designated register.\n The register is specified through the Comm byte.\n\n S Addr Wr [A] Comm [A] S Addr Rd [A] [Data] NA P\n\n Functionalit...
99
false
MLAB-project/pymlab
write_byte_data
29,072