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/DataBiosphere/toil/killTask
LDU_FT
[ "<BEGIN>\n## `html_page_context`", "Event handler for the html-page-context signal.\n Modifies the context directly.\n - Replaces the 'toc' value created by the HTML builder with one\n that shows all document titles and the local table of contents.\n - Sets display_toc to True so the table of con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the killTask API. 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 killTask API. 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...
Kill parent task process and all its spawned children
"Kill parent task process and all its spawned children"
1,322
true
DataBiosphere/toil
killTask
33,473
LDU_FT/tylertreat/BigQuery-Python/get_datasets
LDU_FT
[ "<BEGIN>\n## `get_client`", "Return a singleton instance of BigQueryClient. Either\n AssertionCredentials or a service account and private key combination need\n to be provided in order to authenticate requests to BigQuery.", " Parameters\n ----------\n project_id : str, optional\n The Big...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datasets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datasets API. 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...
List all datasets in the project. Parameters ---------- project_id: str Unique ``str`` identifying the BigQuery project contains the dataset Returns ------- list Dataset resources
"List all datasets in the project.\n \n Parameters\n ----------\n project_id: str\n Unique ``str`` identifying the BigQuery project contains the dataset\n\n Returns\n -------\n list\n Dataset resources"
227
false
tylertreat/BigQuery-Python
get_datasets
33,474
LDU_FT/volafiled/python-volapi/make_streams
LDU_FT
[ "<BEGIN>\n## `register_callback`", "Register callback that we will have to wait for\n<END>", "<BEGIN>\n## `_handle_callback`", "Handle lain's callback. Only used with getFileinfo so far\n<END>", "<BEGIN>\n## `_handle_config`", "Handle initial config push and config changes\n<END>", "<BEGIN>\n## `find_ve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_streams API. 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 make_streams API. 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...
Generates one or more streams for each name, value pair
"Generates one or more streams for each name, value pair"
78
false
volafiled/python-volapi
make_streams
33,475
LDU_FT/wecatch/app-turbo/_processor
LDU_FT
[ "<BEGIN>\n## `convert_to_record`", "Wrap mongodb record to a dict record with default value None\n<END>", "<BEGIN>\n## `instance`", "Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _processor API. 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 _processor API. 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...
Application processor to setup session for every request
"Application processor to setup session for every request"
43
false
wecatch/app-turbo
_processor
33,476
LDU_FT/cbrand/vpnchooser/delete
LDU_FT
[ "<BEGIN>\n## `check`", "Checks the given password with the one stored\n in the database\n<END>", "<BEGIN>\n## `connect`", "Connects the client to the server and\n returns it.\n<END>", "<BEGIN>\n## `server_rules`", "Reads the server rules from the client\n and returns it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Deletes the resource with the given name.
"Deletes the resource with the given name."
38
false
cbrand/vpnchooser
delete
33,477
LDU_FT/itamarst/eliot/pretty_format
LDU_FT
[ "<BEGIN>\n## `stopService`", "Stop the writer thread, wait for it to finish.\n<END>", "<BEGIN>\n## `bind`", "Return a new L{Message} with this message's contents plus the\n additional given bindings.\n<END>", "<BEGIN>\n## `_freeze`", "Freeze this message for logging, registering it with C{action}."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_format API. 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 pretty_format API. 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...
Convert a message dictionary into a human-readable string. @param message: Message to parse, as dictionary. @return: Unicode string.
"Convert a message dictionary into a human-readable string.\n\n @param message: Message to parse, as dictionary.\n\n @return: Unicode string."
282
false
itamarst/eliot
pretty_format
33,478
LDU_FT/jmgilman/Neolib/getEncodableAttributes
LDU_FT
[ "<BEGIN>\n## `installed`", "Returns whether or not Google Chrome is installed", " Determines the application data path for Google Chrome\n and checks if the path exists. If so, returns True, otherwise\n it will return False.", " Returns\n bool - True if Chrome is installe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getEncodableAttributes 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 getEncodableAttributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns a C{tuple} containing a dict of static and dynamic attributes for C{obj}.
"Returns a C{tuple} containing a dict of static and dynamic attributes\n for C{obj}."
629
false
jmgilman/Neolib
getEncodableAttributes
33,479
LDU_FT/posativ/isso/thread
LDU_FT
[ "<BEGIN>\n## `anonymize`", "Anonymize IPv4 and IPv6 :param remote_addr: to /24 (zero'd)\n and /48 (zero'd).\n<END>", "<BEGIN>\n## `thread`", "Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Extract <h1> title from web page. The title is *probably* the text node, which is the nearest H1 node in context to an element with the `isso-thread` id.
"Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id."
61
false
posativ/isso
thread
33,480
LDU_FT/agoragames/leaderboard-python/top_in
LDU_FT
[ "<BEGIN>\n## `pool`", "Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>", "<BEGIN>\n## `rank_member`", "Rank a member in the leaderboard.", " @param member [String] Member name.\n @param score [float] M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_in API. 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 top_in API. 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 ...
Retrieve members from the named leaderboard within a range from 1 to the number given. @param leaderboard_name [String] Name of the leaderboard. @param starting_rank [int] Starting rank (inclusive). @param ending_rank [int] Ending rank (inclusive). @param options [Hash] Options to be us...
"Retrieve members from the named leaderboard within a range from 1 to the number given.\n\n @param leaderboard_name [String] Name of the leaderboard.\n @param starting_rank [int] Starting rank (inclusive).\n @param ending_rank [int] Ending rank (inclusive).\n @param options [Hash] Options to...
180
false
agoragames/leaderboard-python
top_in
33,481
LDU_FT/mrallen1/pygett/access_token
LDU_FT
[ "<BEGIN>\n## `get`", "**get**", " Make a GET call to a remote endpoint", " Input:\n * An endpoint relative to the ``base_url``", " Output:\n * A :py:mod:`pygett.request.GettResponse` object\n<END>", "<BEGIN>\n## `post`", "**post**", " Make a POST call ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
**access_token** Returns a valid access token. If the user is not currently logged in, attempts to do so. If the current time exceeds the grace period, attempts to retrieve a new access token. Input: * None Output: * A valid access token Example:: ...
"**access_token**\n\n Returns a valid access token. If the user is not currently logged in, attempts to do so.\n If the current time exceeds the grace period, attempts to retrieve a new access token.\n\n Input:\n * None\n\n Output:\n * A valid access token\n\n E...
117
false
mrallen1/pygett
access_token
33,482
LDU_FT/ZEDGR/pychal/set_timezone
LDU_FT
[ "<BEGIN>\n## `update`", "Update the attributes of a match attachment.\n<END>", "<BEGIN>\n## `bulk_add`", "Bulk add participants to a tournament (up until it is started).", " :param tournament: the tournament's name or id\n :param names: the names of the participants\n :type tournament: int or strin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_timezone API. 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 set_timezone API. 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...
Set the timezone for datetime fields. By default is your machine's time. If it's called without parameter sets the local time again. :keyword param new_tz: timezone string ex. 'Europe/Athens', 'Asia/Seoul', 'America/Los_Angeles', 'UTC' :return None
"Set the timezone for datetime fields.\n By default is your machine's time.\n If it's called without parameter sets the\n local time again.\n\n :keyword param new_tz: timezone string\n ex. 'Europe/Athens',\n 'Asia/Seoul',\n 'America/Los_Angeles',\n 'UTC'\n\n :return\n None"
18
false
ZEDGR/pychal
set_timezone
33,483
LDU_FT/vallis/libstempo/calculate_splus_scross
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_splus_scross 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 calculate_splus_scross API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculate splus and scross summed over all harmonics. This waveform differs slightly from that in Taylor et al (2015) in that it includes the time dependence of the advance of periastron. :param nmax: Total number of harmonics to use :param mc: Chirp mass of binary [Solar Mass] :param dl: Lum...
"Calculate splus and scross summed over all harmonics. \n This waveform differs slightly from that in Taylor et al (2015) \n in that it includes the time dependence of the advance of periastron.\n \n :param nmax: Total number of harmonics to use\n :param mc: Chirp mass of binary [Solar Mass]\n :param ...
160
false
vallis/libstempo
calculate_splus_scross
33,484
LDU_FT/wright-group/WrightTools/make_colormap
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_colormap API. 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 make_colormap API. 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...
Generate a LinearSegmentedColormap. Parameters ---------- seq : list of tuples A sequence of floats and RGB-tuples. The floats should be increasing and in the interval (0,1). name : string (optional) A name for the colormap plot : boolean (optional) Use to generate a...
"Generate a LinearSegmentedColormap.\n\n Parameters\n ----------\n seq : list of tuples\n A sequence of floats and RGB-tuples. The floats should be increasing\n and in the interval (0,1).\n name : string (optional)\n A name for the colormap\n plot : boolean (optional)\n Use to...
603
false
wright-group/WrightTools
make_colormap
33,485
LDU_FT/ternaris/marv/marvcli_run
LDU_FT
[ "<BEGIN>\n## `encode_setid`", "Encode uint128 setid as stripped b32encoded string\n<END>", "<BEGIN>\n## `marvcli_cleanup`", "Cleanup unused tags and discarded datasets.\n<END>", "<BEGIN>\n## `marvcli_develop_server`", "Run development webserver.", " ATTENTION: By default it is only served on localhos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Run nodes for selected datasets. Datasets are specified by a list of set ids, or --collection <name>, use --collection=* to run for all collections. --node in conjunction with --collection=* will pick those collections for which the selected nodes are configured. Set ids may be abbreviated to any ...
"Run nodes for selected datasets.\n\n Datasets are specified by a list of set ids, or --collection\n <name>, use --collection=* to run for all collections. --node in\n conjunction with --collection=* will pick those collections for\n which the selected nodes are configured.\n\n Set ids may be abbreviated...
76
false
ternaris/marv
marvcli_run
33,486
LDU_FT/karel-brinda/rnftools/_vector_of_categories
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 _vector_of_categories 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 _vector_of_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create vector of categories (voc[q] ... assigned category for given quality level) srs ... single read statistics ... for every q ... dictionary read_tuple_name ... read name parts ... number of segments
"Create vector of categories (voc[q] ... assigned category for given quality level)\n\n\t\tsrs ... single read statistics ... for every q ... dictionary\n\t\tread_tuple_name ... read name\n\t\tparts ... number of segments"
84
false
karel-brinda/rnftools
_vector_of_categories
33,487
LDU_FT/briancappello/flask-unchained/put
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 put API. 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 put API. 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...
Update a model instance. :param instance: The model instance. :param errors: Any errors. :return: The updated model instance, or a dictionary of errors.
"Update a model instance.\n\n :param instance: The model instance.\n :param errors: Any errors.\n :return: The updated model instance, or a dictionary of errors."
597
false
briancappello/flask-unchained
put
33,488
LDU_FT/sci-bots/dmf-device-ui/parse_args
LDU_FT
[ "<BEGIN>\n## `register_shortcuts`", ".. versionchanged:: 0.14\n Add keyboard shortcuts to set neighbouring electrode states based\n on directional input using ``<Control>`` key plus the corresponding\n direction (e.g., ``<Control>Up``)\n<END>", "<BEGIN>\n## `cleanup_video`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parses arguments, returns (options, args).
"Parses arguments, returns (options, args)."
124
false
sci-bots/dmf-device-ui
parse_args
33,489
LDU_FT/avihad/twistes/expand_action
LDU_FT
[ "<BEGIN>\n## `expand_action`", "From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api.\n :return es format to bulk doc\n<END>", "<BEGIN>\n## `bulk`", "Helper for the :meth:`~e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_action API. 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 expand_action API. 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...
From one document or action definition passed in by the user extract the action/data lines needed for elasticsearch's :meth:`~elasticsearch.Elasticsearch.bulk` api. :return es format to bulk doc
"From one document or action definition passed in by the user extract the\n action/data lines needed for elasticsearch's\n :meth:`~elasticsearch.Elasticsearch.bulk` api.\n :return es format to bulk doc"
78
false
avihad/twistes
expand_action
33,490
LDU_FT/python-bonobo/bonobo/load_env_from_file
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_env_from_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 load_env_from_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...
Read an env file into a collection of (name, value) tuples.
"Read an env file into a collection of (name, value) tuples."
140
false
python-bonobo/bonobo
load_env_from_file
33,491
LDU_FT/zeaphoo/budoc/params
LDU_FT
[ "<BEGIN>\n## `import_module`", "Imports a module. A single point of truth for importing modules to\n be documented by `pydoc`. In particular, it makes sure that the top\n module in `module_name` can be imported by using only the paths in\n `pydoc.import_path`.", " If a module has already been import...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the params API. 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 params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a list where each element is a nicely formatted parameter of this function. This includes argument lists, keyword arguments and default values.
"Returns a list where each element is a nicely formatted\n parameter of this function. This includes argument lists,\n keyword arguments and default values."
54
false
zeaphoo/budoc
params
33,492
LDU_FT/olitheolix/qtmacs/insertFromMimeData
LDU_FT
[ "<BEGIN>\n## `qteSaveMacroData`", "Associate arbitrary ``data`` with ``widgetObj``.", " This is a convenience method to easily store applet/widget\n specific information in between calls.", " If ``widgetObj`` is **None** then the calling widget\n ``self.qteWidget`` will be used.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insertFromMimeData 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 insertFromMimeData 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...
Paste the MIME data at the current cursor position. This method also adds another undo-object to the undo-stack.
"Paste the MIME data at the current cursor position.\n\n This method also adds another undo-object to the undo-stack."
1,108
true
olitheolix/qtmacs
insertFromMimeData
33,493
LDU_FT/jazzband/django-authority/permission_request_approve_link
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Decorator for views that checks whether a user has a particular permission\n enabled, redirecting to the log-in page if necessary.\n<END>", "<BEGIN>\n## `permission_required_or_403`", "Decorator that wraps the permission_required decorator and returns a\n permission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permission_request_approve_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permission_request_approve_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Renders a html link to the approve view of the given permission request. Returns no content if the request-user has no permission to delete foreign permissions.
"Renders a html link to the approve view of the given permission request.\n Returns no content if the request-user has no permission to delete foreign\n permissions."
67
false
jazzband/django-authority
permission_request_approve_link
33,494
LDU_FT/fabioz/PyDev.Debugger/pageSize
LDU_FT
[ "<BEGIN>\n## `convert`", "Note:", " If the shellcode starts with '66' controls, it needs to be changed to add [BITS 32] or\n [BITS 64] to the start.", " To use:", " convert(\"\"\"\n 55\n 53\n 50\n BDE97F071E\n FFD5\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pageSize API. 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 pageSize API. 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...
Try to get the pageSize value on runtime.
"Try to get the pageSize value on runtime."
3,640
true
fabioz/PyDev.Debugger
pageSize
33,495
LDU_FT/thebigmunch/google-music/top_charts
LDU_FT
[ "<BEGIN>\n## `download`", "Download a song from a Google Music library.", "\t\tParameters:\n\t\t\tsong (dict): A song dict.", "\t\tReturns:\n\t\t\ttuple: Song content as bytestring, suggested filename.\n<END>", "<BEGIN>\n## `quota`", "Get the uploaded track count and allowance.", "\t\tReturns:\n\t\t\ttu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_charts API. 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 top_charts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get a listing of the default top charts.
"Get a listing of the default top charts."
268
false
thebigmunch/google-music
top_charts
33,496
LDU_FT/dwavesystems/dimod/polymorph_response
LDU_FT
[ "<BEGIN>\n## `sample`", "Give random samples for a binary quadratic model.", " Variable assignments are chosen by coin flip.", " Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.", " num_reads (int, optional, default=1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polymorph_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polymorph_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. Th...
Transforms the sampleset for the higher order problem. Given a response of a penalized HUBO, this function creates a new sampleset object, taking into account penalty information and calculates the energies of samples for the higherorder problem. Args: response (:obj:`.SampleSet`): response fo...
"Transforms the sampleset for the higher order problem.\n\n Given a response of a penalized HUBO, this function creates a new sampleset\n object, taking into account penalty information and calculates the\n energies of samples for the higherorder problem.\n\n Args:\n response (:obj:`.SampleSet`): res...
908
false
dwavesystems/dimod
polymorph_response
33,497
LDU_FT/edx/opaque-keys/map_into_course
LDU_FT
[ "<BEGIN>\n## `parse_url`", "If it can be parsed as a version_guid with no preceding org + offering, returns a dict\n with key 'version_guid' and the value,", " If it can be parsed as a org + offering, returns a dict\n with key 'id' and optional keys 'branch' and 'version_guid'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_into_course API. 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 map_into_course API. 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 new :class:`UsageKey` or :class:`AssetKey` representing this usage inside the course identified by the supplied :class:`CourseKey`. It returns the same type as `self` Args: course_key (:class:`CourseKey`): The course to map this object into. Returns: A ...
"Return a new :class:`UsageKey` or :class:`AssetKey` representing this usage inside the\n course identified by the supplied :class:`CourseKey`. It returns the same type as\n `self`\n\n Args:\n course_key (:class:`CourseKey`): The course to map this object into.\n\n Returns:\n ...
127
false
edx/opaque-keys
map_into_course
33,498
LDU_FT/LasLabs/python-helpscout/create_thread
LDU_FT
[ "<BEGIN>\n## `create`", "Create an object on HelpScout.", " Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 create_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...
Create a conversation thread. Please note that threads cannot be added to conversations with 100 threads (or more), if attempted the API will respond with HTTP 412. Args: conversation (helpscout.models.Conversation): The conversation that the thread is being added to. ...
"Create a conversation thread.\n\n Please note that threads cannot be added to conversations with 100\n threads (or more), if attempted the API will respond with HTTP 412.\n\n Args:\n conversation (helpscout.models.Conversation): The conversation\n that the thread is being ad...
178
false
LasLabs/python-helpscout
create_thread
33,499
LDU_FT/moonso/vcftoolbox/add_alt
LDU_FT
[ "<BEGIN>\n## `get_vcf_header`", "Get the header lines of a vcf file", " Args:\n source(iterable): A vcf file", " Returns:\n head (HeaderParser): A headerparser object\n<END>", "<BEGIN>\n## `get_variant_dict`", "Parse a variant line", " Split a variant line and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_alt API. 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 add_alt API. 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...
Add a alternative allele format field line to the header. Arguments: alt_id (str): The id of the alternative line description (str): A description of the info line
"Add a alternative allele format field line to the header.\n\n Arguments:\n alt_id (str): The id of the alternative line\n description (str): A description of the info line"
81
false
moonso/vcftoolbox
add_alt
33,500
LDU_FT/pyQode/pyqode.core/on_install
LDU_FT
[ "<BEGIN>\n## `on_install`", "Add the folding menu to the editor, on install.", " :param editor: editor instance on which the mode has been installed to.\n<END>", "<BEGIN>\n## `_draw_rect`", "Draw the background rectangle using the current style primitive color\n or foldIndicatorBackground if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_install API. 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 on_install API. 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...
Extends :meth:`pyqode.core.api.Mode.on_install` method to set the editor instance as the parent widget. .. warning:: Don't forget to call **super** if you override this method! :param editor: editor instance :type editor: pyqode.core.api.CodeEdit
"Extends :meth:`pyqode.core.api.Mode.on_install` method to set the\n editor instance as the parent widget.\n\n .. warning:: Don't forget to call **super** if you override this\n method!\n\n :param editor: editor instance\n :type editor: pyqode.core.api.CodeEdit"
697
false
pyQode/pyqode.core
on_install
33,501
LDU_FT/nyaruka/smartmin/check_role_permissions
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_role_permissions 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 check_role_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Checks the the passed in role (can be user, group or AnonymousUser) has all the passed in permissions, granting them if necessary.
"Checks the the passed in role (can be user, group or AnonymousUser) has all the passed\n in permissions, granting them if necessary."
118
false
nyaruka/smartmin
check_role_permissions
33,502
LDU_FT/eallik/spinoff/spawn_actor
LDU_FT
[ "<BEGIN>\n## `deferToGreenletPool`", "Call function using a greenlet from the given pool and return the result as a Deferred\n<END>", "<BEGIN>\n## `deferToGreenlet`", "Call function using a greenlet and return the result as a Deferred\n<END>", "<BEGIN>\n## `callMultipleInGreenlet`", "Call a list of functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn_actor API. 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 spawn_actor API. 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...
Spawns an actor using the given `factory` with the specified `name`. Returns an immediately usable `Ref` to the newly created actor, regardless of the location of the new actor, or when the actual spawning will take place.
"Spawns an actor using the given `factory` with the specified `name`.\n\n Returns an immediately usable `Ref` to the newly created actor, regardless of the location of the new actor, or\n when the actual spawning will take place."
60
false
eallik/spinoff
spawn_actor
33,503
LDU_FT/open-homeautomation/pknx/from_frame
LDU_FT
[ "<BEGIN>\n## `ip_to_array`", "Convert a string representing an IPv4 address to 4 bytes.\n<END>", "<BEGIN>\n## `int_to_array`", "Convert an length byte integer to an array of bytes.\n<END>", "<BEGIN>\n## `parse_group_address`", "Parse KNX group addresses and return the address as an integer.", " This ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_frame API. 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 from_frame API. 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...
Initilize the frame object based on a KNX/IP data frame.
"Initilize the frame object based on a KNX/IP data frame."
80
false
open-homeautomation/pknx
from_frame
33,504
LDU_FT/racker/torment/_call
LDU_FT
[ "<BEGIN>\n## `up`", "Start the specified docker-compose services.", " Parameters\n ----------", " :``services``: a list of docker-compose service names to start (must be\n defined in docker-compose.yml)", " Return Value(s)\n ---------------", " The integer status of ``d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracted d...
Wrapper around ``subprocess.Popen`` that sends command output to logger. .. seealso:: ``subprocess.Popen``_ Parameters ---------- :``command``: string form of the command to execute All other parameters are passed directly to ``subprocess.Popen``. Return Value(s) ---------------...
"Wrapper around ``subprocess.Popen`` that sends command output to logger.\n\n .. seealso::\n\n ``subprocess.Popen``_\n\n Parameters\n ----------\n\n :``command``: string form of the command to execute\n\n All other parameters are passed directly to ``subprocess.Popen``.\n\n Return Value(s)\n ...
117
false
racker/torment
_call
33,505
LDU_FT/mkouhei/tonicdnscli/delete_records
LDU_FT
[ "<BEGIN>\n## `check_infile`", "Check text file exisitense.", " Argument:", " filename: text file of bulk updating\n<END>", "<BEGIN>\n## `set_json`", "Convert text file to JSON.", " Arguments:", " domain: domain name of updating target\n action: True ; for PUT/POST HTTP m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_records API. 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_records API. 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...
Delete records of specific domain. Arguments: server: TonicDNS API server token: TonicDNS API authentication token data: Delete records ContentType: application/json x-authentication-token: token
"Delete records of specific domain.\n\n Arguments:\n\n server: TonicDNS API server\n token: TonicDNS API authentication token\n data: Delete records\n\n ContentType: application/json\n x-authentication-token: token"
192
false
mkouhei/tonicdnscli
delete_records
33,506
LDU_FT/kyb3r/dhooks/init
LDU_FT
[ "<BEGIN>\n## `close`", "Closes the file if the file was opened by :class:`File`,\n if not, this does nothing.", " Parameters\n ----------\n force: bool\n If set to :class:`True`, force close every file.\n<END>", "<BEGIN>\n## `set_title`", "Sets the title of the embed."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Sends a message to the webhook channel when server starts.
"Sends a message to the webhook channel when server starts."
33
false
kyb3r/dhooks
init
33,507
LDU_FT/zlobspb/txtarantool/_cast_field
LDU_FT
[ "<BEGIN>\n## `pack_int_base128`", "Pack integer value using LEB128 encoding\n :param value: integer value to encode\n :type value: int", " :return: encoded value\n :rtype: bytes\n<END>", "<BEGIN>\n## `pack_str`", "Pack string field\n <field> ::= <int32_varint><data>", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cast_field API. 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 _cast_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert field type from raw bytes to native python type :param cast_to: native python type to cast to :type cast_to: a type object (one of bytes, int, unicode (str for py3k)) :param value: raw value from the database :type value: bytes :return: converted value :rtype: v...
"Convert field type from raw bytes to native python type\n\n :param cast_to: native python type to cast to\n :type cast_to: a type object (one of bytes, int, unicode (str for py3k))\n :param value: raw value from the database\n :type value: bytes\n\n :return: converted value\n ...
43
false
zlobspb/txtarantool
_cast_field
33,508
LDU_FT/cloudflare/sqlalchemy-clickhouse/execute
LDU_FT
[ "<BEGIN>\n## `_reset_state`", "Reset state about the previous query in preparation for running another query\n<END>", "<BEGIN>\n## `description`", "This read-only attribute is a sequence of 7-item sequences.", " Each of these sequences contains information describing one result column:", " -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Prepare and execute a database operation (query or command).
"Prepare and execute a database operation (query or command)."
22
false
cloudflare/sqlalchemy-clickhouse
execute
33,509
LDU_FT/launchdarkly/relayCommander/valid_state
LDU_FT
[ "<BEGIN>\n## `connection_string_parser`", "Parse Connection string to extract host and port.", " :param uri: full URI for redis connection in the form of host:port", " :returns: list of RedisConnection objects\n<END>", "<BEGIN>\n## `get_flag_record`", "Get feature flag record from redis.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_state API. 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 valid_state API. 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...
Validate State Argument Checks that either 'on' or 'off' was entered as an argument to the CLI and make it lower case. :param state: state to validate. :returns: True if state is valid. .. versionchanged:: 0.0.12 This moethod was renamed from validateState to valid_state to conform ...
"Validate State Argument\n\n Checks that either 'on' or 'off' was entered as an argument to the\n CLI and make it lower case.\n\n :param state: state to validate.\n\n :returns: True if state is valid.\n\n .. versionchanged:: 0.0.12\n This moethod was renamed from validateState to valid_state to co...
63
false
launchdarkly/relayCommander
valid_state
33,510
LDU_FT/erikrose/conway/next_board
LDU_FT
[ "<BEGIN>\n## `main`", "Play Conway's Game of Life on the terminal.\n<END>", "<BEGIN>\n## `cell_strings`", "Return the strings that represent each possible living cell state.", " Return the most colorful ones the terminal supports.\n<END>", "<BEGIN>\n## `random_board`", "Return a random board with giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_board API. 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 next_board API. 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...
Given a board, return the board one interation later. Adapted from Jack Diedrich's implementation from his 2012 PyCon talk "Stop Writing Classes" :arg wrap: A callable which takes a point and transforms it, for example to wrap to the other edge of the screen. Return None to remove a point.
"Given a board, return the board one interation later.\n\n Adapted from Jack Diedrich's implementation from his 2012 PyCon talk \"Stop\n Writing Classes\"\n\n :arg wrap: A callable which takes a point and transforms it, for example\n to wrap to the other edge of the screen. Return None to remove a point...
16
false
erikrose/conway
next_board
33,511
LDU_FT/the01/paps-settings/get_file_hash
LDU_FT
[ "<BEGIN>\n## `get_file_hash`", "Generate hash for given file", " :param file_path: Path to file\n :type file_path: str\n :param block_size: Size of block to be read at once (default: 1024)\n :type block_size: int\n :param hasher: Use specific hasher, defaults to md5 (default: None)\n :type has...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Generate hash for given file :param file_path: Path to file :type file_path: str :param block_size: Size of block to be read at once (default: 1024) :type block_size: int :param hasher: Use specific hasher, defaults to md5 (default: None) :type hasher: _hashlib.HASH :return: Hash of file ...
"Generate hash for given file\n\n :param file_path: Path to file\n :type file_path: str\n :param block_size: Size of block to be read at once (default: 1024)\n :type block_size: int\n :param hasher: Use specific hasher, defaults to md5 (default: None)\n :type hasher: _hashlib.HASH\n :return: Hash o...
40
false
the01/paps-settings
get_file_hash
33,512
LDU_FT/SystemRDL/systemrdl-compiler/assign_value
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Side effect: Ensure assignment of the opposite is cleared since it is being overridden
"Side effect: Ensure assignment of the opposite is cleared since it is being\n overridden"
207
false
SystemRDL/systemrdl-compiler
assign_value
33,513
LDU_FT/data-8/datascience/_lat_lons_from_geojson
LDU_FT
[ "<BEGIN>\n## `_is_array_integer`", "Returns True if an array contains integers (integer type or near-int\n float values) and False otherwise.", " >>> _is_array_integer(np.arange(10))\n True\n >>> _is_array_integer(np.arange(7.0, 20.0, 1.0))\n True\n >>> _is_array_integer(np.arange(0, 1, 0.1))\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lat_lons_from_geojson 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 _lat_lons_from_geojson API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a latitude-longitude pairs from nested GeoJSON coordinates. GeoJSON coordinates are always stored in (longitude, latitude) order.
"Return a latitude-longitude pairs from nested GeoJSON coordinates.\n\n GeoJSON coordinates are always stored in (longitude, latitude) order."
401
false
data-8/datascience
_lat_lons_from_geojson
33,514
LDU_FT/studionow/pybrightcove/set_image
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 set_image API. 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 set_image API. 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 the poster or thumbnail of a this Vidoe.
"Set the poster or thumbnail of a this Vidoe."
67
false
studionow/pybrightcove
set_image
33,515
LDU_FT/emin63/eyap/add_comment
LDU_FT
[ "<BEGIN>\n## `make_anchor_id`", "Return string to use as URL anchor for this comment.\n<END>", "<BEGIN>\n## `make_url`", "Make URL to this comment.", " :arg my_request: The request object where this comment is seen from.", " :arg anchor_id=None: Optional anchor id. If None, we use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_comment API. 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 add_comment API. 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...
Add comment as required by comments.CommentThread parent class.
"Add comment as required by comments.CommentThread parent class."
126
false
emin63/eyap
add_comment
33,516
LDU_FT/spotify/snakebite/readBlock
LDU_FT
[ "<BEGIN>\n## `get_delimited_message_bytes`", "Parse a delimited protobuf message. This is done by first getting a protobuf varint from\n the stream that represents the length of the message, then reading that amount of\n from the message and then parse it.\n Since the int can be represented as max 4 byte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readBlock API. 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 readBlock API. 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...
Send a read request to given block. If we receive a successful response, we start reading packets. Send read request: +---------------------------------------------------------------------+ | Data Transfer Protocol Version, 2 bytes | +----------------...
"Send a read request to given block. If we receive a successful response,\n we start reading packets.\n\n Send read request:\n +---------------------------------------------------------------------+\n | Data Transfer Protocol Version, 2 bytes |\n +---------...
148
false
spotify/snakebite
readBlock
33,517
LDU_FT/odlgroup/odl/blurring_kernel
LDU_FT
[ "<BEGIN>\n## `is_valid_input_array`", "Test if ``x`` is a correctly shaped point array in R^d.\n<END>", "<BEGIN>\n## `is_valid_input_meshgrid`", "Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>", "<BEGIN>\n## `out_shape_from_meshgrid`", "Get the broadcast output shape from a `meshgrid`.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blurring_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blurring_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 e...
Blurring kernel for convolution simulations. The kernel is scaled to sum to one. Returns ------- An image with the following properties: image type: gray scales size: [100, 100] (if not specified by `size`) scale: [0, 1] type: float64
"Blurring kernel for convolution simulations.\n\n The kernel is scaled to sum to one.\n\n Returns\n -------\n An image with the following properties:\n image type: gray scales\n size: [100, 100] (if not specified by `size`)\n scale: [0, 1]\n type: float64"
4,047
true
odlgroup/odl
blurring_kernel
33,518
LDU_FT/klmitch/framer/decode_length
LDU_FT
[ "<BEGIN>\n## `factory`", "Generates and returns a callable suitable for passing as the\n ``protocol_factory`` parameter of the ``create_connection()``\n or ``create_server()`` loop methods. This class method\n performs some sanity checks on the arguments, and is preferred\n over using...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_length API. 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 decode_length API. 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...
Extract and decode a frame length from the data buffer. The consumed data should be removed from the buffer. If the length data is incomplete, must raise a ``NoFrames`` exception. :param data: A ``bytearray`` instance containing the data so far read. :para...
"Extract and decode a frame length from the data buffer. The\n consumed data should be removed from the buffer. If the\n length data is incomplete, must raise a ``NoFrames``\n exception.\n\n :param data: A ``bytearray`` instance containing the data so\n far read.\n ...
77
false
klmitch/framer
decode_length
33,519
LDU_FT/geminipy/geminipy/auction
LDU_FT
[ "<BEGIN>\n## `pubticker`", "Send a request for latest ticker info, return the response.\n<END>", "<BEGIN>\n## `book`", "Send a request to get the public order book, return the response.", " Arguments:\n symbol -- currency symbol (default 'btcusd')\n limit_bids -- limit the number of bid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auction API. 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 auction API. 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...
Send a request for latest auction info, return the response.
"Send a request for latest auction info, return the response."
31
false
geminipy/geminipy
auction
33,520
LDU_FT/robgolding/tasklib/datetime_normalizer
LDU_FT
[ "<BEGIN>\n## `replace`", "Performs conversion to the regular Task object, referenced by the\n stored UUID.\n<END>", "<BEGIN>\n## `replace`", "Performs conversion to the regular TaskQuerySet object, referenced by\n the stored UUIDs.\n<END>", "<BEGIN>\n## `save_task`", "Save a task into TaskWa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_normalizer 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 datetime_normalizer 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...
Normalizes date/datetime value (considered to come from user input) to localized datetime value. Following conversions happen: naive date -> localized datetime with the same date, and time=midnight naive datetime -> localized datetime with the same value localized datetime -> localized ...
"Normalizes date/datetime value (considered to come from user input)\n to localized datetime value. Following conversions happen:\n\n naive date -> localized datetime with the same date, and time=midnight\n naive datetime -> localized datetime with the same value\n localized datetime -> loca...
23
false
robgolding/tasklib
datetime_normalizer
33,521
LDU_FT/PyMLGame/pymlgame/draw_circle
LDU_FT
[ "<BEGIN>\n## `update`", "Update the screens contents in every loop.\n<END>", "<BEGIN>\n## `render`", "Send the current screen content to Mate Light.\n<END>", "<BEGIN>\n## `gameloop`", "A game loop that circles through the methods.\n<END>", "<BEGIN>\n## `init`", "Initialize PyMLGame. This creates a con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_circle API. 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 draw_circle API. 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...
Draw a circle with the given color on the screen and optionally fill it with fillcolor. :param pos: Center of the circle :param radius: Radius :param color: Color for border :param fillcolor: Color for infill :type pos: tuple :type radius: int :type color: tuple ...
"Draw a circle with the given color on the screen and optionally fill it with fillcolor.\n\n :param pos: Center of the circle\n :param radius: Radius\n :param color: Color for border\n :param fillcolor: Color for infill\n :type pos: tuple\n :type radius: int\n :type colo...
63
false
PyMLGame/pymlgame
draw_circle
33,522
LDU_FT/Kitware/tangelo/module_cache_get
LDU_FT
[ "<BEGIN>\n## `module_getmtime`", "Get the mtime associated with a module. If this is a .pyc or .pyo file and\n a corresponding .py file exists, the time of the .py file is returned.", " :param filename: filename of the module.\n :returns: mtime or None if the file doesn\"t exist.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_cache_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module_cache_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Import a module with an optional yaml config file, but only if we haven't imported it already. :param cache: object which holds information on which modules and config files have been loaded and whether config files should be loaded. :param module: the path of the module...
"Import a module with an optional yaml config file, but only if we haven't\n imported it already.\n\n :param cache: object which holds information on which modules and config\n files have been loaded and whether config files should be\n loaded.\n :param module: the path of the...
34
false
Kitware/tangelo
module_cache_get
33,523
LDU_FT/jonhadfield/creds/generate_modify_user_command
LDU_FT
[ "<BEGIN>\n## `create_plan`", "Determine what changes are required.", " args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_modify_user_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_modify_user_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Generate command to modify existing user to become the proposed user. args: task (dict): A proposed user and the differences between it and the existing user returns: list: The command string split into shell-like syntax
"Generate command to modify existing user to become the proposed user.\n\n args:\n task (dict): A proposed user and the differences between it and the existing user\n\n returns:\n list: The command string split into shell-like syntax"
71
false
jonhadfield/creds
generate_modify_user_command
33,524
LDU_FT/rochacbruno/dynaconf/populate_obj
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate_obj API. 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 populate_obj API. 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...
Given the `obj` populate it using self.store items.
"Given the `obj` populate it using self.store items."
172
false
rochacbruno/dynaconf
populate_obj
33,525
LDU_FT/jaraco/jaraco.postgres/start
LDU_FT
[ "<BEGIN>\n## `create`", "CREATE this DATABASE.", " @param sql: (Optional) A string of psql (such as might be generated\n by pg_dump); it will be executed by psql(1) after creating the\n database.\n @type sql: str", " @rtype: None\n<END>", "<BEGIN>\n## `psql_string`", "Ev...
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...
Launch this postgres server. If it's already running, do nothing. If the backing storage directory isn't configured, raise NotInitializedError. This method is optional. If you're running in an environment where the DBMS is provided as part of the basic infrastructure, you pro...
"Launch this postgres server. If it's already running, do nothing.\n\n If the backing storage directory isn't configured, raise\n NotInitializedError.\n\n This method is optional. If you're running in an environment\n where the DBMS is provided as part of the basic infrastructure,\n ...
45
false
jaraco/jaraco.postgres
start
33,526
LDU_FT/proteanhq/protean/all
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Initialize a ListRequestObject object from a dictionary.\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to its string representation\n<END>", "<BEGIN>\n## `_cast_to_type`", "Convert the value to an int and raise error on failures\n<END>", "<BEGIN>\n## `_cast_to_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Primary method to fetch data based on filters Also trigged when the QuerySet is evaluated by calling one of the following methods: * len() * bool() * list() * Iteration * Slicing
"Primary method to fetch data based on filters\n\n Also trigged when the QuerySet is evaluated by calling one of the following methods:\n * len()\n * bool()\n * list()\n * Iteration\n * Slicing"
214
false
proteanhq/protean
all
33,527
LDU_FT/HIPS/autograd/neural_net_predict
LDU_FT
[ "<BEGIN>\n## `make_gp_funs`", "Functions that perform Gaussian process regression.\n cov_func has signature (cov_params, x, x')\n<END>", "<BEGIN>\n## `def_linear`", "Flags that a function is linear wrt all args\n<END>", "<BEGIN>\n## `project`", "Project the velocity field to be approximately mass-co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the neural_net_predict 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 neural_net_predict 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...
Implements a deep neural network for classification. params is a list of (weights, bias) tuples. inputs is an (N x D) matrix. returns normalized class log-probabilities.
"Implements a deep neural network for classification.\n params is a list of (weights, bias) tuples.\n inputs is an (N x D) matrix.\n returns normalized class log-probabilities."
79
false
HIPS/autograd
neural_net_predict
33,528
LDU_FT/tmux-python/tmuxp/get_config_dir
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Return tmuxp configuration directory.", " ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_dir API. 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_config_dir API. 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...
Return tmuxp configuration directory. ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also evaluate XDG default directory from XDG_CONFIG_HOME environmental variable if set or its default. Then the old default ~/.tmuxp is returned for compatibility. Returns ------- ...
"Return tmuxp configuration directory.\n\n ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n compatibility.\n\n Returns\n ---...
161
false
tmux-python/tmuxp
get_config_dir
33,529
LDU_FT/hannorein/rebound/getSimulation
LDU_FT
[ "<BEGIN>\n## `add_outer_solar_system`", "Add the planet of the outer Solar System as a test problem.\n Data taken from NASA Horizons.\n<END>", "<BEGIN>\n## `OrbitPlot`", "Convenience function for plotting instantaneous orbits.", " Parameters\n ----------\n slices : bool, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSimulation API. 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 getSimulation API. 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...
This function returns a simulation object at (or close to) the requested time `t`. Everytime this function is called a new simulation object is created. Arguments --------- t : float Requested time. Needs to be within tmin and tmax of this Simulation Archive. mode ...
"This function returns a simulation object at (or close to) the requested time `t`. \n Everytime this function is called a new simulation object is created.\n\n\n Arguments\n ---------\n t : float\n Requested time. Needs to be within tmin and tmax of this Simulation Archive.\n ...
209
false
hannorein/rebound
getSimulation
33,530
LDU_FT/foutaise/texttable/add_row
LDU_FT
[ "<BEGIN>\n## `obj2unicode`", "Return a unicode representation of a python object\n<END>", "<BEGIN>\n## `len`", "Redefining len here so it will be able to work with non-ASCII characters\n<END>", "<BEGIN>\n## `set_chars`", "Set the characters used to draw lines between rows and columns", " - the ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_row API. 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 add_row API. 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...
Add a row in the rows stack - cells can contain newlines and tabs
"Add a row in the rows stack\n\n - cells can contain newlines and tabs"
65
false
foutaise/texttable
add_row
33,531
LDU_FT/Spinmob/spinmob/c
LDU_FT
[ "<BEGIN>\n## `get_data`", "Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>", "<BEGIN>\n## `Set`", "Sets the key-value pair and dumps to the preferences file.\n<END>", "<BEGIN>\n## `MakeDir`", "Creates a directory of the specified path in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Takes a single argument or keyword argument, and returns the specified column. If the argument (or keyword argument) is an integer, return the n'th column, otherwise return the column based on key. If no arguments are supplied, simply print the column information.
"Takes a single argument or keyword argument, and returns the specified \n column. If the argument (or keyword argument) is an integer, return the \n n'th column, otherwise return the column based on key.\n \n If no arguments are supplied, simply print the column information."
745
false
Spinmob/spinmob
c
33,532
LDU_FT/geertj/gruvi/readline
LDU_FT
[ "<BEGIN>\n## `from_errno`", "Create a new instance from a :mod:`pyuv.errno` error code.\n<END>", "<BEGIN>\n## `start`", "Bind to *protocol* and start calling callbacks on it.\n<END>", "<BEGIN>\n## `set_write_buffer_limits`", "Set the low and high watermark for the write buffer.\n<END>", "<BEGIN>\n## `cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. 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...
Read a single line. If EOF is reached before a full line can be read, a partial line is returned. If *limit* is specified, at most this many bytes will be read.
"Read a single line.\n\n If EOF is reached before a full line can be read, a partial line is\n returned. If *limit* is specified, at most this many bytes will be read."
402
false
geertj/gruvi
readline
33,533
LDU_FT/sebdah/dynamic-dynamodb/__check_table_rules
LDU_FT
[ "<BEGIN>\n## `get_consumed_read_units_percent`", "Returns the number of consumed read units in percent", " :type table_name: str\n :param table_name: Name of the DynamoDB table\n :type lookback_window_start: int\n :param lookback_window_start: Relative start time for the CloudWatch metric\n :type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_table_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_table_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Do some basic checks on the configuration
"Do some basic checks on the configuration"
191
false
sebdah/dynamic-dynamodb
__check_table_rules
33,534
LDU_FT/InQuest/python-sandboxapi/is_available
LDU_FT
[ "<BEGIN>\n## `_request`", "Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.", " :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_available API. 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 is_available API. 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...
Determine if the Cuckoo Sandbox API servers are alive or in maintenance mode. :rtype: bool :return: True if service is available, False otherwise.
"Determine if the Cuckoo Sandbox API servers are alive or in maintenance mode.\n\n :rtype: bool\n :return: True if service is available, False otherwise."
93
false
InQuest/python-sandboxapi
is_available
33,535
LDU_FT/stitchfix/pyxley/render
LDU_FT
[ "<BEGIN>\n## `set_float`", "Set a float option.", " Args:\n option (str): name of option.\n value (float): value of the option.", " Raises:\n TypeError: Value must be a float.\n<END>", "<BEGIN>\n## `set_integer`", "Set an integer option.",...
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 ...
Render the component to a javascript file.
"Render the component to a javascript file."
82
false
stitchfix/pyxley
render
33,536
LDU_FT/note35/sinon/typeOf
LDU_FT
[ "<BEGIN>\n## `__remove_args_first_item`", "# Todo: finding a better solution\n This is a dirty solution\n Because the first argument of inspectors' args will be itself\n For current implementation, it should be ignore\n<END>", "<BEGIN>\n## `lastCall`", "Return: SpyCall object for this spy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the typeOf API. 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 typeOf API. 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 ...
(*Type does NOT consider inherited class) Matcher.mtest(...) will return True if type(...) == expected_type Return: Matcher Raise: matcher_type_error
"(*Type does NOT consider inherited class)\n Matcher.mtest(...) will return True if type(...) == expected_type\n Return: Matcher\n Raise: matcher_type_error"
162
false
note35/sinon
typeOf
33,537
LDU_FT/bschollnick/semantic_url/return_current_uri
LDU_FT
[ "<BEGIN>\n## `norm_page_cnt`", "Normalize a integer (page).", " * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1", " * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_current_uri 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 return_current_uri 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...
Args: * None Returns: String - Returns the full postpath & semantic components *NOTE* may not contain the server & port numbers. That depends on what was provided to the parser.
"Args:\n * None\n\n Returns:\n String - Returns the full postpath & semantic components\n\n *NOTE* may not contain the server & port numbers. That depends on\n what was provided to the parser."
61
false
bschollnick/semantic_url
return_current_uri
33,538
LDU_FT/gtaylor/EVE-Market-Data-Structures/set_empty_region
LDU_FT
[ "<BEGIN>\n## `parse_from_json`", "Given a Unified Uploader message, parse the contents and return a\n MarketOrderList or MarketHistoryList instance.", " :param str json_str: A Unified Uploader message as a JSON string.\n :rtype: MarketOrderList or MarketHistoryList\n :raises: MalformedUploadError wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_empty_region API. 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 set_empty_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepares for the given region+item combo by instantiating a :py:class:`MarketItemsInRegionList` instance, which will track region ID, type ID, and generated time. This is mostly used for the JSON deserialization process in case there are no orders for the given region+item combo. ...
"Prepares for the given region+item combo by instantiating a\n :py:class:`MarketItemsInRegionList` instance, which will track\n region ID, type ID, and generated time. This is mostly used for\n the JSON deserialization process in case there are no orders for\n the given region+item combo.\n\...
40
false
gtaylor/EVE-Market-Data-Structures
set_empty_region
33,539
LDU_FT/gofed/gofedlib/branches
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the branches API. 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 branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a list of branches for given repository :return: [str]
"Return a list of branches for given repository\n\n\t\t:return: [str]"
98
false
gofed/gofedlib
branches
33,540
LDU_FT/23andMe/Yamale/_find_schema
LDU_FT
[ "<BEGIN>\n## `validate`", "Check if ``value`` is valid.", " :returns: [errors] If ``value`` is invalid, otherwise [].\n<END>", "<BEGIN>\n## `_process_schema`", "Go through a schema and construct validators.\n<END>", "<BEGIN>\n## `_validate`", "Run through a schema and a data structure,\n v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_schema API. 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 _find_schema API. 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...
Checks if `schema_name` is a valid file, if not searches in `data_path` for it.
"Checks if `schema_name` is a valid file, if not\n searches in `data_path` for it."
21
false
23andMe/Yamale
_find_schema
33,541
LDU_FT/wangsix/vmo/add_state
LDU_FT
[ "<BEGIN>\n## `main`", "This example shows how to parse a music mxl file (music21 and musescore/finale required) \n and create a simple oracle representation. The output is a reshuffled midi stream shown\n in either musescore or finale based on your installation of music21. ", " OPTIONAL ARGS:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_state API. 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_state API. 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...
Create new state and update related links and compressed state
"Create new state and update related links and compressed state"
61
false
wangsix/vmo
add_state
33,542
LDU_FT/maxfischer2781/chainlet/multi_iter
LDU_FT
[ "<BEGIN>\n## `skip_pickle_inject`", "skip global wrapper._raw_slave names used only for pickle support\n<END>", "<BEGIN>\n## `wraplet_signature`", "have wrapplets use the signature of the slave\n<END>", "<BEGIN>\n## `_chain_forks`", "Detect whether a sequence of elements leads to a fork of streams\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_iter API. 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 multi_iter API. 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 `count` independent, thread-safe iterators for `iterable`
"Return `count` independent, thread-safe iterators for `iterable`"
95
false
maxfischer2781/chainlet
multi_iter
33,543
LDU_FT/projecthamster/hamster/totals
LDU_FT
[ "<BEGIN>\n## `set_start_time`", "set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>", "<BEGIN>\n## `parse_fact`", "tries to extract fact fields from the string\n the optional arguments in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the totals API. 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 totals API. 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 ...
groups items by field described in keyfunc and counts totals using value from sumfunc
"groups items by field described in keyfunc and counts totals using value\n from sumfunc"
249
false
projecthamster/hamster
totals
33,544
LDU_FT/datascopeanalytics/traces/n_points
LDU_FT
[ "<BEGIN>\n## `duration_to_number`", "If duration is already a numeric type, then just return\n duration. If duration is a timedelta, return a duration in\n seconds.", " TODO: allow for multiple types of units.\n<END>", "<BEGIN>\n## `convert_args_to_list`", "Convert all iterable pairs of inputs into...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n_points API. 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 n_points API. 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...
Calculate the number of points over the given time range from `start` to `end`. Args: start (orderable, optional): The lower time bound of when to calculate the distribution. By default, start is -infinity. end (orderable, optional): The upper t...
"Calculate the number of points over the given time range from\n `start` to `end`.\n\n Args:\n\n start (orderable, optional): The lower time bound of when\n to calculate the distribution. By default, start is\n -infinity.\n\n end (orderable, optional): T...
73
false
datascopeanalytics/traces
n_points
33,545
LDU_FT/spotify/gordon-gcp/parse
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate a message given a schema.", " Args:\n message (dict): Loaded JSON of pulled message from Google\n PubSub.\n schema_name (str): Name of schema to validate ``message``\n against. ``schema_name`` will be used to look up\...
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 message according to schema. `message` should already be validated against the given schema. See :ref:`schemadef` for more information. Args: message (dict): message data to parse. schema (str): valid message schema. Returns: (dict): parsed mes...
"Parse message according to schema.\n\n `message` should already be validated against the given schema.\n See :ref:`schemadef` for more information.\n\n Args:\n message (dict): message data to parse.\n schema (str): valid message schema.\n Returns:\n (dict): ...
72
false
spotify/gordon-gcp
parse
33,546
LDU_FT/spookylukey/django-paypal/_check_and_update_params
LDU_FT
[ "<BEGIN>\n## `render_payment_form`", "Display the DirectPayment for entering payment information.\n<END>", "<BEGIN>\n## `validate_payment_form`", "Try to validate and then process the DirectPayment form.\n<END>", "<BEGIN>\n## `redirect_to_express`", "First step of ExpressCheckout. Redirect the request to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_and_update_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_and_update_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Ensure all required parameters were passed to the API call and format them correctly.
"Ensure all required parameters were passed to the API call and format\n them correctly."
65
false
spookylukey/django-paypal
_check_and_update_params
33,547
LDU_FT/azavea/python-omgeo/to_esri_wgs_json
LDU_FT
[ "<BEGIN>\n## `_geocode`", ":arg PlaceQuery pq: PlaceQuery object to use for geocoding\n :returns: list of location Candidates\n<END>", "<BEGIN>\n## `_street_addr_from_response`", "Construct a street address (no city, region, etc.) from a geocoder response.", " :param attributes: A dict of addr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_esri_wgs_json API. 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_esri_wgs_json API. 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 Viewbox object to a JSON string that can be used by the ESRI World Geocoding Service as a parameter.
"Convert Viewbox object to a JSON string that can be used\n by the ESRI World Geocoding Service as a parameter."
78
false
azavea/python-omgeo
to_esri_wgs_json
33,548
LDU_FT/has2k1/plydata/evaluate
LDU_FT
[ "<BEGIN>\n## `set_option`", "Set plydata option", " Parameters\n ----------\n name : str\n Name of the option\n value : object\n New value of the option", " Returns\n -------\n old : object\n Old value of the option", " See also\n --------\n :class:`options...
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...
Evaluate statement Parameters ---------- data : pandas.DataFrame Data in whose namespace the statement will be evaluated. Typically, this is a group dataframe. Returns ------- out : object Result of the evaluation.pandas.DataFrame
"Evaluate statement\n\n Parameters\n ----------\n data : pandas.DataFrame\n Data in whose namespace the statement will be\n evaluated. Typically, this is a group dataframe.\n\n Returns\n -------\n out : object\n Result of the evaluation.pandas.D...
119
false
has2k1/plydata
evaluate
33,549
LDU_FT/shoeffner/cvloop/list_functions
LDU_FT
[ "<BEGIN>\n## `load_hat`", "Loads the hat from a picture at path.", " Args:\n path: The path to load from", " Returns:\n The hat data.\n<END>", "<BEGIN>\n## `find_faces`", "Uses a haarcascade to detect faces inside an image.", " Args:\n image: The ima...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_functions API. 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 list_functions API. 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...
Lists all functions declared in a module. http://stackoverflow.com/a/1107150/3004221 Args: mod_name: the module name Returns: A list of functions declared in that module.
"Lists all functions declared in a module.\n\n http://stackoverflow.com/a/1107150/3004221\n\n Args:\n mod_name: the module name\n Returns:\n A list of functions declared in that module."
67
false
shoeffner/cvloop
list_functions
33,550
LDU_FT/jamescooke/flake8-aaa/check_arrange_act_spacing
LDU_FT
[ "<BEGIN>\n## `do_command_line`", "Currently a small stub to create an instance of Checker for the passed\n ``infile`` and run its test functions through linting.", " Args:\n infile", " Returns:\n int: Number of flake8 errors raised.\n<END>", "<BEGIN>\n## `run`", "Yields:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_arrange_act_spacing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_arrange_act_spacing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
* When no spaces found, point error at line above act block * When too many spaces found, point error at 2nd blank line
"* When no spaces found, point error at line above act block\n * When too many spaces found, point error at 2nd blank line"
66
false
jamescooke/flake8-aaa
check_arrange_act_spacing
33,551
LDU_FT/mrcagney/make_gtfs/check_frequencies
LDU_FT
[ "<BEGIN>\n## `make_gtfs`", "Create a GTFS feed from the files in the directory SOURCE_PATH.\n See the project README for a description of the required source\n files.\n Save the feed to the file or directory TARGET_PATH.\n If the target path ends in '.zip', then write the feed as a zip\n archive.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_frequencies API. 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 check_frequencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Check that ``pfeed.frequency`` follows the ProtoFeed spec. Return a list of problems of the form described in :func:`gt.check_table`; the list will be empty if no problems are found.
"Check that ``pfeed.frequency`` follows the ProtoFeed spec.\n Return a list of problems of the form described in\n :func:`gt.check_table`;\n the list will be empty if no problems are found."
67
false
mrcagney/make_gtfs
check_frequencies
33,552
LDU_FT/pmacosta/ptrie/in_tree
LDU_FT
[ "<BEGIN>\n## `_create_intermediate_nodes`", "Create intermediate nodes if hierarchy does not exist.\n<END>", "<BEGIN>\n## `_delete_subtree`", "Delete subtree private method.", " No argument validation and usage of getter/setter private methods is\n used for speed\n<END>", "<BEGIN>\n## `_prt`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_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...
r""" Test if a node is in the tree. :param name: Node name to search for :type name: :ref:`NodeName` :rtype: boolean :raises: RuntimeError (Argument \`name\` is not valid)
"r\"\"\"\n Test if a node is in the tree.\n\n :param name: Node name to search for\n :type name: :ref:`NodeName`\n\n :rtype: boolean\n\n :raises: RuntimeError (Argument \\`name\\` is not valid)"
166
false
pmacosta/ptrie
in_tree
33,553
LDU_FT/polysquare/cmake-ast/_is_really_comment
LDU_FT
[ "<BEGIN>\n## `run`", "Set up language runtimes and pass control to python project script.\n<END>", "<BEGIN>\n## `_node`", "Return an _AbstractSyntaxTreeNode with some elements defaulted.\n<END>", "<BEGIN>\n## `_recurse`", "Recursive print worker - recurses the AST and prints each node.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_really_comment 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_really_comment 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 true if the token at index is really a comment.
"Return true if the token at index is really a comment."
66
false
polysquare/cmake-ast
_is_really_comment
33,554
LDU_FT/crgwbr/asymmetric-jwt-auth/get_claimed_username
LDU_FT
[ "<BEGIN>\n## `validate_public_key`", "Check that the given value is a valid RSA Public key in either PEM or OpenSSH format. If it is invalid,\n raises ``django.core.exceptions.ValidationError``.\n<END>", "<BEGIN>\n## `sign`", "Create a signed JWT using the given username and RSA private key.", " :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_claimed_username 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_claimed_username API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a JWT, get the username that it is claiming to be `without verifying that the signature is valid`. :param token: JWT claim :return: Username
"Given a JWT, get the username that it is claiming to be `without verifying that the signature is valid`.\n\n :param token: JWT claim\n :return: Username"
34
false
crgwbr/asymmetric-jwt-auth
get_claimed_username
33,555
LDU_FT/Britefury/batchup/batch_iterator
LDU_FT
[ "<BEGIN>\n## `num_batches`", "Compute the number of mini-batches required to cover a data set of\n size `n` using batches of size `batch_size`.", " Parameters\n ----------\n n: int\n the number of samples in the data set\n batch_size: int\n the mini-batch size", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_iterator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create an iterator that generates mini-batches extracted from this data source. The batches will have `batch_size` elements, with the exception of the final batch which will have less if there are insufficient elements left to make a complete batch. If `shuffle` is `None` or `False` el...
"Create an iterator that generates mini-batches extracted from\n this data source. The batches will have `batch_size` elements, with\n the exception of the final batch which will have less if there are\n insufficient elements left to make a complete batch.\n\n If `shuffle` is `None` or `Fal...
194
false
Britefury/batchup
batch_iterator
33,556
LDU_FT/a10networks/a10-neutron-lbaas/magic_session
LDU_FT
[ "<BEGIN>\n## `create_a10_device_instance`", "Attempt to create instance using neutron context\n<END>", "<BEGIN>\n## `vport_meta`", "Get the vport meta, no matter which name was used\n<END>", "<BEGIN>\n## `apply_template`", "Applies every callable in any Mapping or Iterable\n<END>", "<BEGIN>\n## `initial...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the magic_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the magic_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 ext...
Either does nothing with the session you already have or makes one that commits and closes no matter what happens
"Either does nothing with the session you already have or\n makes one that commits and closes no matter what happens"
20
false
a10networks/a10-neutron-lbaas
magic_session
33,557
LDU_FT/chibisov/drf-extensions/_do_smart_punctuation
LDU_FT
[ "<BEGIN>\n## `get_etags_and_matchers`", "Get the etags from the header and perform a validation against the required preconditions.\n<END>", "<BEGIN>\n## `evaluate_preconditions`", "Evaluate whether the precondition for the request is met.\n<END>", "<BEGIN>\n## `_regex_from_encoded_pattern`", "foo' -> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_smart_punctuation 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 _do_smart_punctuation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fancifies 'single quotes', "double quotes", and apostrophes. Converts --, ---, and ... into en dashes, em dashes, and ellipses. Inspiration is: <http://daringfireball.net/projects/smartypants/> See "test/tm-cases/smarty_pants.text" for a full discussion of the support here and <...
"Fancifies 'single quotes', \"double quotes\", and apostrophes.\n Converts --, ---, and ... into en dashes, em dashes, and ellipses.\n\n Inspiration is: <http://daringfireball.net/projects/smartypants/>\n See \"test/tm-cases/smarty_pants.text\" for a full discussion of the\n support here and...
55
false
chibisov/drf-extensions
_do_smart_punctuation
33,558
LDU_FT/darothen/xbpch/readline
LDU_FT
[ "<BEGIN>\n## `from_model`", "Define a grid using the specifications of a given model.", " Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return next unformatted "line". If format is given, unpack content, otherwise return byte string.
"Return next unformatted \"line\". If format is given, unpack content,\n otherwise return byte string."
122
false
darothen/xbpch
readline
33,559
LDU_FT/mozillazg/baidu-pcs-python-sdk/upload_tmpfile
LDU_FT
[ "<BEGIN>\n## `upload`", "上传单个文件(<2G).", " | 百度PCS服务目前支持最大2G的单个文件上传。\n | 如需支持超大文件(>2G)的断点续传,请参考下面的“分片文件上传”方法。", " :param remote_path: 网盘中文件的保存路径(包含文件名)。\n 必须以 /apps/ 开头。", " .. warning::\n * 路径长度限制为1000;...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_tmpfile API. 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 upload_tmpfile API. 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...
分片上传—文件分片及上传. 百度 PCS 服务支持每次直接上传最大2G的单个文件。 如需支持上传超大文件(>2G),则可以通过组合调用分片文件上传的 ``upload_tmpfile`` 方法和 ``upload_superfile`` 方法实现: 1. 首先,将超大文件分割为2G以内的单文件,并调用 ``upload_tmpfile`` 将分片文件依次上传; 2. 其次,调用 ``upload_superfile`` ,完成分片文件的重组。 除此之外,如果应用中需要支持断点续传的功能, 也可...
"分片上传—文件分片及上传.\n\n 百度 PCS 服务支持每次直接上传最大2G的单个文件。\n\n 如需支持上传超大文件(>2G),则可以通过组合调用分片文件上传的\n ``upload_tmpfile`` 方法和 ``upload_superfile`` 方法实现:\n\n 1. 首先,将超大文件分割为2G以内的单文件,并调用 ``upload_tmpfile``\n 将分片文件依次上传;\n 2. 其次,调用 ``upload_superfile`` ,完成分片文件的重组。\n\n 除此之外,如果应用中需要支持断点续传的功能...
126
false
mozillazg/baidu-pcs-python-sdk
upload_tmpfile
33,560
LDU_FT/tdegeus/GooseMPL/scale_lim
LDU_FT
[ "<BEGIN>\n## `find_latex_font_serif`", "r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>", "<BEGIN>\n## `copy_style`", "r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>", "<BEGIN>\n## `set_decade_lims`", "r'''\nSet limits the the floor/ceil va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_lim API. 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 scale_lim API. 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...
r''' Scale limits to be 5% wider, to have a nice plot. :arguments: **lim** (``<list>`` | ``<str>``) The limits. May be a string "[...,...]", which is converted to a list. :options: **factor** ([``1.05``] | ``<float>``) Scale factor.
"r'''\nScale limits to be 5% wider, to have a nice plot.\n\n:arguments:\n\n **lim** (``<list>`` | ``<str>``)\n The limits. May be a string \"[...,...]\", which is converted to a list.\n\n:options:\n\n **factor** ([``1.05``] | ``<float>``)\n Scale factor."
159
false
tdegeus/GooseMPL
scale_lim
33,561
LDU_FT/anchore/anchore/json_formatter
LDU_FT
[ "<BEGIN>\n## `get_current_user_info`", "Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.", " :return: Dict of user metadata\n<END>", "<BEGIN>\n## `sync`", "Sync (download) latest policies from the Anchore.io service.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_formatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_formatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Format the output in JSON :param obj: :return:
"Format the output in JSON\n :param obj:\n :return:"
151
false
anchore/anchore
json_formatter
33,562
LDU_FT/heitzmann/gdspy/read_gds
LDU_FT
[ "<BEGIN>\n## `_eight_byte_real`", "Convert a number into the GDSII 8 byte real format.", " Parameters\n ----------\n value : number\n The number to be converted.", " Returns\n -------\n out : string\n The GDSII binary string that represents ``value``.\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gds API. 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...
Read a GDSII file into this library. Parameters ---------- infile : file or string GDSII stream file (or path) to be imported. It must be opened for reading in binary format. units : {'convert', 'import', 'skip'} Controls how to scale and use the uni...
"Read a GDSII file into this library.\n\n Parameters\n ----------\n infile : file or string\n GDSII stream file (or path) to be imported. It must be\n opened for reading in binary format.\n units : {'convert', 'import', 'skip'}\n Controls how to scale and us...
254
false
heitzmann/gdspy
read_gds
33,563
LDU_FT/unbservices/clams/_attach_arguments
LDU_FT
[ "<BEGIN>\n## `arg`", "Annotate a function by adding the args/kwargs to the meta-data.", " This appends an Argparse \"argument\" to the function's\n ``ARGPARSE_ARGS_LIST`` attribute, creating ``ARGPARSE_ARGS_LIST`` if it\n does not already exist. Aside from that, it returns the decorated function\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attach_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _attach_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add the registered arguments to the parser.
"Add the registered arguments to the parser."
47
false
unbservices/clams
_attach_arguments
33,564
LDU_FT/google/pinject/new_object_graph
LDU_FT
[ "<BEGIN>\n## `new`", "Creates a _InjectionContext.", " Args:\n injection_site_fn: the initial function being injected into\n Returns:\n a new empty _InjectionContext in the default scope\n<END>", "<BEGIN>\n## `get_child`", "Creates a child injection context.", " A \"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_object_graph API. 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 new_object_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a new object graph. Args: modules: the modules in which to search for classes for which to create implicit bindings; if None, then no modules; by default, all modules imported at the time of calling this method classes: the classes for which to create implicit bindings; if N...
"Creates a new object graph.\n\n Args:\n modules: the modules in which to search for classes for which to create\n implicit bindings; if None, then no modules; by default, all\n modules imported at the time of calling this method\n classes: the classes for which to create implicit binding...
58
false
google/pinject
new_object_graph
33,565
LDU_FT/fhcrc/taxtastic/prepend_schema
LDU_FT
[ "<BEGIN>\n## `action`", "Roll back commands on a refpkg.", " *args* should be an argparse object with fields refpkg (giving the\n path to the refpkg to operate on) and n (giving the number of\n operations to roll back).\n<END>", "<BEGIN>\n## `taxtable_to_tree`", "Read a CSV taxonomy from *handle* i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepend_schema API. 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 prepend_schema API. 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...
Prepend schema name to 'name' when a schema is specified
"Prepend schema name to 'name' when a schema is specified"
197
false
fhcrc/taxtastic
prepend_schema
33,566
LDU_FT/pyopenapi/pyswagger/prepare_schemes
LDU_FT
[ "<BEGIN>\n## `swagger`", "some preparation before returning Swagger object\n<END>", "<BEGIN>\n## `apply_with`", "constructor", " :param str v: accept six.string_types, six.binary_type\n<END>", "<BEGIN>\n## `scope_compose`", "compose a new scope", " :param str scope: current scope\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_schemes API. 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 prepare_schemes API. 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...
make sure this client support schemes required by current request :param pyswagger.io.Request req: current request object
"make sure this client support schemes required by current request\n\n :param pyswagger.io.Request req: current request object"
162
false
pyopenapi/pyswagger
prepare_schemes
33,567
LDU_FT/bastibe/PySoundCard/_frombuffer
LDU_FT
[ "<BEGIN>\n## `hostapi_info`", "Return a generator with information about each host API.", " If index is given, only one dictionary for the given host API is\n returned.\n<END>", "<BEGIN>\n## `device_info`", "Return a generator with information about each device.", " If index is given, only one di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _frombuffer API. 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 _frombuffer API. 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...
Create NumPy array from a pointer to some memory.
"Create NumPy array from a pointer to some memory."
27
false
bastibe/PySoundCard
_frombuffer
33,568
LDU_FT/toomore/goristock/MACVOL
LDU_FT
[ "<BEGIN>\n## `output`", "re = \"\"\"<table>\n <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>\n <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>\"\"\" % {\n<END>", "<BEGIN>\n## `Rt_display`", "For real time stock display\n 即時盤用,顯示目...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the MACVOL API. 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 MACVOL API. 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 ...
Comparing yesterday volume is high, low or equal. return ↑,↓ or - 與前一天 days 日成交量移動平均比較 rev = 0 回傳 ↑,↓ or - rev = 1 回傳 1,-1 or 0
"Comparing yesterday volume is high, low or equal.\n return ↑,↓ or -\n 與前一天 days 日成交量移動平均比較\n rev = 0\n 回傳 ↑,↓ or -\n rev = 1\n 回傳 1,-1 or 0"
62
false
toomore/goristock
MACVOL
33,569
LDU_FT/unique1o1/Meta-Music/align_matches
LDU_FT
[ "<BEGIN>\n## `unique_hash`", "Small function to generate a hash to uniquely generate a file.\n Default blocksize is `500`\n<END>", "<BEGIN>\n## `read`", "Reads any file supported by pydub (ffmpeg) and returns the data contained\n within.\n returns: (channels, samplerate)\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the align_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Finds hash matches that align in time with other matches and finds consensus about which hashes are "true" signal from the audio. Returns a dictionary with match information.
"Finds hash matches that align in time with other matches and finds\n consensus about which hashes are \"true\" signal from the audio.\n Returns a dictionary with match information."
16
false
unique1o1/Meta-Music
align_matches
33,570
LDU_FT/frictionlessdata/tableschema-py/iter
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API. 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 iter API. 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...
https://github.com/frictionlessdata/tableschema-py#schema
"https://github.com/frictionlessdata/tableschema-py#schema"
38
false
frictionlessdata/tableschema-py
iter
33,571
LDU_FT/pantsbuild/pex/get
LDU_FT
[ "<BEGIN>\n## `isolated`", "Returns a chroot for third_party isolated from the ``sys.path``.", " PEX will typically be installed in site-packages flat alongside many other distributions; as such,\n adding the location of the pex distribution to the ``sys.path`` will typically expose many other\n distributions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the set of compatible packages given a resolvable name.
"Get the set of compatible packages given a resolvable name."
385
false
pantsbuild/pex
get
33,572