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/daler/trackhub/add_subgroups
LDU_FT
[ "<BEGIN>\n## `default_hub`", "Returns a fully-connected set of hub components using default filenames.", " Parameters\n ----------", " hub_name : str\n Name of the hub", " genome : str\n Assembly name (hg38, dm6, etc)", " email : str\n Email to include with hub.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subgroups API. 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 add_subgroups API. 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...
Add a list of SubGroupDefinition objects to this composite. Note that in contrast to :meth:`BaseTrack`, which takes a single dictionary indicating the particular subgroups for the track, this method takes a list of :class:`SubGroupDefinition` objects representing the allowed subgroups f...
"Add a list of SubGroupDefinition objects to this composite.\n\n Note that in contrast to :meth:`BaseTrack`, which takes a single\n dictionary indicating the particular subgroups for the track, this\n method takes a list of :class:`SubGroupDefinition` objects representing\n the allowed subgr...
111
false
daler/trackhub
add_subgroups
37,473
LDU_FT/CityOfZion/neo-python-core/zero
LDU_FT
[ "<BEGIN>\n## `PrivateKeyFromWIF`", "Get the private key from a WIF key", " Args:\n wif (str): The wif key", " Returns:\n bytes: The private key\n<END>", "<BEGIN>\n## `PrivateKeyFromNEP2`", "Gets the private key from a NEP-2 encrypted private key", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zero API. 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 zero API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return the additive identity point ( aka '0' ) P + 0 = P
"Return the additive identity point ( aka '0' )\n P + 0 = P"
175
false
CityOfZion/neo-python-core
zero
37,474
LDU_FT/WimpyAnalytics/django-andablog/get_operations
LDU_FT
[ "<BEGIN>\n## `_get_userinfo`", "Get a dictionary that pulls together information about the poster\n safely for both authenticated and non-authenticated comments.", " This dict will have ``name``, ``email``, and ``url`` fields.\n<END>", "<BEGIN>\n## `get_as_text`", "Return this comment as plain...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operations API. 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_operations API. 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...
This will break things if you upgrade Django to 1.8 having already applied this migration in 1.7. Since this is for a demo site it doesn't really matter (simply blow away the DB if you want to go to 1.8) Our demo site is a unusual in that we want to run it's tests (for integration testing) in multiple Django v...
"This will break things if you upgrade Django to 1.8 having already applied this migration in 1.7.\n Since this is for a demo site it doesn't really matter (simply blow away the DB if you want to go to 1.8)\n\n Our demo site is a unusual in that we want to run it's tests (for integration testing) in multiple Djan...
16
false
WimpyAnalytics/django-andablog
get_operations
37,475
LDU_FT/faucamp/python-gsmmodem/__threadedHandleModemNotification
LDU_FT
[ "<BEGIN>\n## `status`", "Status of this SMS. Can be ENROUTE, DELIVERED or FAILED", " The actual status report object may be accessed via the 'report' attribute\n if status is 'DELIVERED' or 'FAILED'\n<END>", "<BEGIN>\n## `connect`", "Opens the port and initializes the modem and SIM card", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __threadedHandleModemNotification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __threadedHandleModemNotification API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Implementation of _handleModemNotification() to be run in a separate thread :param lines The lines that were read
"Implementation of _handleModemNotification() to be run in a separate thread\n \n :param lines The lines that were read"
214
false
faucamp/python-gsmmodem
__threadedHandleModemNotification
37,476
LDU_FT/eyeseast/python-tablefu/percent_change
LDU_FT
[ "<BEGIN>\n## `sort`", "Sort rows in this table, preserving a record of how that\n sorting is done in TableFu.options['sorted_by']\n<END>", "<BEGIN>\n## `filter`", "Tables can be filtered in one of two ways:\n - Simple keyword arguments return rows where values match *exactly*\n - Pass i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the percent_change API. 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 percent_change API. 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...
Converts a floating point value into a percentage change value. Number of decimal places set by the `precision` kwarg. Default is one. Non-floats are assumed to be zero division errors and are presented as 'N/A' in the output. By default the number is multiplied by 100. You can prevent it...
"Converts a floating point value into a percentage change value.\n \n Number of decimal places set by the `precision` kwarg. Default is one.\n \n Non-floats are assumed to be zero division errors and are presented as\n 'N/A' in the output.\n \n By default the number is multiplied by 100. You can pr...
51
false
eyeseast/python-tablefu
percent_change
37,477
LDU_FT/adamzap/landslide/get_slide_vars
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses and renders a text as HTML regarding current format.\n<END>", "<BEGIN>\n## `descape`", "Decodes html entities from a given string\n<END>", "<BEGIN>\n## `get_path_url`", "Returns an absolute or relative path url given a path\n<END>", "<BEGIN>\n## `html_parts`", "Given an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_slide_vars API. 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_slide_vars API. 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...
Computes a single slide template vars from its html source code. Also extracts slide informations for the table of contents.
"Computes a single slide template vars from its html source code.\n Also extracts slide informations for the table of contents."
49
false
adamzap/landslide
get_slide_vars
37,478
LDU_FT/DataDog/integrations-core/delete
LDU_FT
[ "<BEGIN>\n## `check_election_status`", "Retrieves the leader-election annotation from a given object, and\n submits metrics and a service check.", " An integration warning is sent if the object is not retrievable,\n or no record is found. Monitors on the service-check should have\n n...
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 ...
Get a **delete** message. `opts` is a CodecOptions. `flags` is a bit vector that may contain the SingleRemove flag or not: http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete
"Get a **delete** message.\n\n `opts` is a CodecOptions. `flags` is a bit vector that may contain\n the SingleRemove flag or not:\n\n http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/#op-delete"
2,189
true
DataDog/integrations-core
delete
37,479
LDU_FT/dfm/celerite/get_value
LDU_FT
[ "<BEGIN>\n## `compute`", "Compute the extended form of the covariance matrix and factorize", " Args:\n x (array[n]): The independent coordinates of the data points.\n This array must be _sorted_ in ascending order.\n yerr (Optional[float or array[n]]): The measurement...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
Compute the value of the term for an array of lags Args: tau (array[...]): An array of lags where the term should be evaluated. Returns: The value of the term for each ``tau``. This will have the same shape as ``tau``.
"Compute the value of the term for an array of lags\n\n Args:\n tau (array[...]): An array of lags where the term should be\n evaluated.\n\n Returns:\n The value of the term for each ``tau``. This will have the same\n shape as ``tau``."
64
false
dfm/celerite
get_value
37,480
LDU_FT/sernst/cauldron/get_file_chunk_count
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_chunk_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_chunk_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determines the number of chunks necessary to send the file for the given chunk size :param file_path: The absolute path to the file that will be synchronized in chunks :param chunk_size: The maximum size of each chunk in bytes :return The number of chunks necessary to send the e...
"Determines the number of chunks necessary to send the file for the given\n chunk size\n\n :param file_path:\n The absolute path to the file that will be synchronized in chunks\n :param chunk_size:\n The maximum size of each chunk in bytes\n :return\n The number of chunks necessary to s...
534
false
sernst/cauldron
get_file_chunk_count
37,481
LDU_FT/lorien/grab/download
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Fetch document located at ``url`` and save to to ``location``.
"Fetch document located at ``url`` and save to to ``location``."
188
false
lorien/grab
download
37,482
LDU_FT/src-d/jgit-spark-connector/master_ref
LDU_FT
[ "<BEGIN>\n## `repositories`", "Returns a DataFrame with the data about the repositories found at\n the specified repositories path in the form of siva files.", " >>> repos_df = engine.repositories", " :rtype: RepositoriesDataFrame\n<END>", "<BEGIN>\n## `blobs`", "Retrieves the blobs o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the master_ref API. 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 master_ref API. 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...
Filters the current DataFrame references to only contain those rows whose reference is master. >>> master_df = repos_df.master_ref :rtype: ReferencesDataFrame
"Filters the current DataFrame references to only contain those rows whose reference is master.\n\n >>> master_df = repos_df.master_ref\n\n :rtype: ReferencesDataFrame"
76
false
src-d/jgit-spark-connector
master_ref
37,483
LDU_FT/orb-framework/orb/createModel
LDU_FT
[ "<BEGIN>\n## `virtual`", "Allows for defining virtual columns and collectors on models -- these\n are objects that are defined in code and not directly in a data store.", " :param cls:\n :param options:\n :return:\n<END>", "<BEGIN>\n## `dict_factory`", "Converts the cursor information from a SQL...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createModel API. 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 createModel API. 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...
Creates a new table in the database based cff the inputted schema information. If the dryRun flag is specified, then the SQLConnection will only be logged to the current logger, and not actually executed in the database. :param model | <orb.Model> context ...
"Creates a new table in the database based cff the inputted\n schema information. If the dryRun flag is specified, then\n the SQLConnection will only be logged to the current logger, and not\n actually executed in the database.\n\n :param model | <orb.Model>\n con...
608
false
orb-framework/orb
createModel
37,484
LDU_FT/mardix/pylot/extends_
LDU_FT
[ "<BEGIN>\n## `read_pkginfo`", "Help us read the pkginfo without accessing __init__\n<END>", "<BEGIN>\n## `with_user_roles`", "with_user_roles(roles)", " It allows to check if a user has access to a view by adding the decorator\n with_user_roles([])", " Requires flask-login", " In your model,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extends_ API. 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 extends_ API. 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...
A view decorator to extend another view class or function to itself It will inherit all its methods and propeties and use them on itself -- EXAMPLES -- class Index(Pylot): pass index = Index() ::-> As decorator on classes :: @index.extends_ class A...
"A view decorator to extend another view class or function to itself\n It will inherit all its methods and propeties and use them on itself\n\n -- EXAMPLES --\n\n class Index(Pylot):\n pass\n\n index = Index()\n\n ::-> As decorator on classes ::\n @index.extends_\n ...
66
false
mardix/pylot
extends_
37,485
LDU_FT/bennylope/smartystreets.py/truncate_args
LDU_FT
[ "<BEGIN>\n## `chunker`", "Generates n-sized chunks from the list l\n<END>", "<BEGIN>\n## `post`", "Executes most of the request.", " The parallelism parameter is useful to avoid swamping the API service with calls. Thus\n the entire set of requests won't be all made at once, but in chunked gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_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 ext...
Ensures that *args do not exceed a set limit or are truncated to meet that limit :param f: any Client method with *args parameter :return: function f
"Ensures that *args do not exceed a set limit or are truncated to meet that limit\n\n :param f: any Client method with *args parameter\n :return: function f"
35
false
bennylope/smartystreets.py
truncate_args
37,486
LDU_FT/UCSBarchlab/PyRTL/_graphviz_default_namer
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Sets the wire, register, and memory values to default or as specified.", " :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _graphviz_default_namer 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 _graphviz_default_namer 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 "good" graphviz label for thing.
"Returns a \"good\" graphviz label for thing."
416
false
UCSBarchlab/PyRTL
_graphviz_default_namer
37,487
LDU_FT/Chilipp/funcargparse/parse2func
LDU_FT
[ "<BEGIN>\n## `get_param_doc`", "Get the documentation and datatype for a parameter", " This function returns the documentation and the argument for a\n napoleon like structured docstring `doc`", " Parameters\n ----------\n doc: str\n The base docstring to use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse2func API. 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 parse2func API. 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...
Parse the command line arguments to the setup function This method parses the given command line arguments to the function used in the :meth:`setup_args` method to setup up this parser Parameters ---------- args: list The list of command line arguments func:...
"Parse the command line arguments to the setup function\n\n This method parses the given command line arguments to the function\n used in the :meth:`setup_args` method to setup up this parser\n\n Parameters\n ----------\n args: list\n The list of command line arguments\n ...
105
false
Chilipp/funcargparse
parse2func
37,488
LDU_FT/pyviz/geoviews/to_ccw
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_ccw API. 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 to_ccw API. 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 ...
Reorients polygon to be wound counter-clockwise.
"Reorients polygon to be wound counter-clockwise."
106
false
pyviz/geoviews
to_ccw
37,489
LDU_FT/SectorLabs/django-localized-fields/formfield
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this model instance to the database.\n<END>", "<BEGIN>\n## `to_python`", "Converts the value from a database value into a Python value.\n<END>", "<BEGIN>\n## `get_prep_value`", "Gets the value in a format to store into the database.\n<END>", "<BEGIN>\n## `formfield`", "Get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formfield API. 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 formfield API. 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...
Gets the form field associated with this field.
"Gets the form field associated with this field."
117
false
SectorLabs/django-localized-fields
formfield
37,490
LDU_FT/crossbario/txaio-etcd/remaining
LDU_FT
[ "<BEGIN>\n## `status`", "Get etcd status.", " :param timeout: Request timeout in seconds.\n :type timeout: int", " :returns: The current etcd cluster status.\n :rtype: instance of :class:`txaioetcd.Status`\n<END>", "<BEGIN>\n## `set`", "Set the value for the key in the key-valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remaining API. 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 remaining API. 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...
Get the remaining time-to-live of this lease. :returns: TTL in seconds. :rtype: int
"Get the remaining time-to-live of this lease.\n\n :returns: TTL in seconds.\n :rtype: int"
110
false
crossbario/txaio-etcd
remaining
37,491
LDU_FT/pikepdf/pikepdf/_generate_ccitt_header
LDU_FT
[ "<BEGIN>\n## `encode_pdf_date`", "Encode Python datetime object as PDF date string", " From Adobe pdfmark manual:\n (D:YYYYMMDDHHmmSSOHH'mm')\n D: is an optional prefix. YYYY is the year. All fields after the year are\n optional. MM is the month (01-12), DD is the day (01-31), HH is the\n hour (0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_ccitt_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_ccitt_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Construct a CCITT G3 or G4 header from the PDF metadata
"Construct a CCITT G3 or G4 header from the PDF metadata"
104
false
pikepdf/pikepdf
_generate_ccitt_header
37,492
LDU_FT/wesyoung/pyzyre/recvx
LDU_FT
[ "<BEGIN>\n## `set_header`", "Set node header; these are provided to other nodes during discovery\nand come in each ENTER message.\n<END>", "<BEGIN>\n## `set_endpoint`", "By default, Zyre binds to an ephemeral TCP port and broadcasts the local\nhost name using UDP beaconing. When you call this method, Zyre wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recvx API. 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 recvx API. 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...
Receive a series of strings (until NULL) from multipart data. Each string is allocated and filled with string data; if there are not enough frames, unallocated strings are set to NULL. Returns -1 if the message could not be read, else returns the number of strings filled, zero or more. Free each returned string using z...
"Receive a series of strings (until NULL) from multipart data.\nEach string is allocated and filled with string data; if there\nare not enough frames, unallocated strings are set to NULL.\nReturns -1 if the message could not be read, else returns the\nnumber of strings filled, zero or more. Free each returned string\nu...
192
false
wesyoung/pyzyre
recvx
37,493
LDU_FT/robotools/fontParts/SelectFont
LDU_FT
[ "<BEGIN>\n## `_set_unicode`", "Assign the primary unicode to the glyph.\n This will be an integer or None.", " Subclasses may override this method.\n<END>", "<BEGIN>\n## `_get_leftMargin`", "This must return an int or float.\n If the glyph has no outlines, this must return `None`.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SelectFont API. 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 SelectFont API. 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...
Select a font from all open fonts. Optionally a `message`, `title` and `allFonts` can be provided. If `allFonts` is `None` it will list all open fonts. :: from fontParts.ui import SelectFont font = SelectFont() print(font)
"Select a font from all open fonts.\n Optionally a `message`, `title` and `allFonts` can be provided.\n If `allFonts` is `None` it will list all open fonts.\n\n ::\n\n from fontParts.ui import SelectFont\n font = SelectFont()\n print(font)"
646
false
robotools/fontParts
SelectFont
37,494
LDU_FT/google/dotty/implements
LDU_FT
[ "<BEGIN>\n## `generate_chunks`", "Yield 'chunk_size' items from 'data' at a time.\n<END>", "<BEGIN>\n## `reduce`", "Repeatedly call fold and merge on data and then finalize.", " Arguments:\n data: Input for the fold function.\n reducer: The IReducer to use.\n chunk_size: How many ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the implements API. 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 implements API. 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...
Does the object 'obj' implement the 'prococol'?
"Does the object 'obj' implement the 'prococol'?"
284
false
google/dotty
implements
37,495
LDU_FT/tgsmith61591/pmdarima/_return_wrapper
LDU_FT
[ "<BEGIN>\n## `nsdiffs`", "Estimate the seasonal differencing term, ``D``.", " Perform a test of seasonality for different levels of ``D`` to\n estimate the number of seasonal differences required to make a given time\n series stationary. Will select the maximum value of ``D`` for which\n the time se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _return_wrapper API. 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 _return_wrapper API. 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...
If the user wants to get all of the models back, this will return a list of the ARIMA models, otherwise it will just return the model. If this is called from the end of the function, ``fits`` will already be a list. We *know* that if a function call makes it here, ``fits`` is NOT None or it would h...
"If the user wants to get all of the models back, this will\n return a list of the ARIMA models, otherwise it will just return\n the model. If this is called from the end of the function, ``fits``\n will already be a list.\n\n We *know* that if a function call makes it here, ``fits`` is NOT None\n or it ...
356
false
tgsmith61591/pmdarima
_return_wrapper
37,496
LDU_FT/mikicz/arca/get_repo
LDU_FT
[ "<BEGIN>\n## `get_or_create_environment`", "Returns the path to the current Python executable.\n<END>", "<BEGIN>\n## `validate_configuration`", "Validates the provided settings.", " * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_repo API. 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 get_repo API. 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...
Returns a :class:`Repo <git.repo.base.Repo>` instance for the branch. See :meth:`run` for arguments descriptions.
"Returns a :class:`Repo <git.repo.base.Repo>` instance for the branch.\n\n See :meth:`run` for arguments descriptions."
196
false
mikicz/arca
get_repo
37,497
LDU_FT/spotify/snakebite/ls
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 ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Issues 'ls' command and returns a list of maps that contain fileinfo :param paths: Paths to list :type paths: list :param recurse: Recursive listing :type recurse: boolean :param include_toplevel: Include the given path in the listing. If the path is a file, include_toplevel is ...
"Issues 'ls' command and returns a list of maps that contain fileinfo\n\n :param paths: Paths to list\n :type paths: list\n :param recurse: Recursive listing\n :type recurse: boolean\n :param include_toplevel: Include the given path in the listing. If the path is a file, include_tople...
148
false
spotify/snakebite
ls
37,498
LDU_FT/gpoulter/python-ngram/union
LDU_FT
[ "<BEGIN>\n## `copy`", "Return a new NGram object with the same settings, and\n referencing the same items. Copy is shallow in that\n each item is not recursively copied. Optionally specify\n alternate items to populate the copy.", " >>> from ngram import NGram\n >>> from co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API. 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 union API. 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...
Return the union of two or more sets as a new set. >>> from ngram import NGram >>> a = NGram(['spam', 'eggs']) >>> b = NGram(['spam', 'ham']) >>> sorted(list(a.union(b))) ['eggs', 'ham', 'spam']
"Return the union of two or more sets as a new set.\n\n >>> from ngram import NGram\n >>> a = NGram(['spam', 'eggs'])\n >>> b = NGram(['spam', 'ham'])\n >>> sorted(list(a.union(b)))\n ['eggs', 'ham', 'spam']"
59
false
gpoulter/python-ngram
union
37,499
LDU_FT/101Loop/drf-addons/send_message
LDU_FT
[ "<BEGIN>\n## `get_fieldsets`", "Add ownership info fields in fieldset with proper separation.", " Author: Himanshu Shankar (https://himanshus.com)\n<END>", "<BEGIN>\n## `get_readonly_fields`", "Makes `created_by`, `create_date` & `update_date` readonly when\n editing.", " Author: Hima...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. 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 send_message API. 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...
Sends message to specified value. Source: Himanshu Shankar (https://github.com/iamhssingh) Parameters ---------- message: str Message that is to be sent to user. subject: str Subject that is to be sent to user, in case prop is an email. recip: list Recipient to whom messa...
"Sends message to specified value.\n Source: Himanshu Shankar (https://github.com/iamhssingh)\n Parameters\n ----------\n message: str\n Message that is to be sent to user.\n subject: str\n Subject that is to be sent to user, in case prop is an email.\n recip: list\n Recipient to ...
35
false
101Loop/drf-addons
send_message
37,500
LDU_FT/dicaso/leopard/getReportTable
LDU_FT
[ "<BEGIN>\n## `makeFigFromFile`", "Renders an image in a matplotlib figure, so it can be added to reports \n args and kwargs are passed to plt.subplots\n<END>", "<BEGIN>\n## `append`", "Append a new section\n If toSection is None, section is appended to the main section/subs list.\n Else if to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getReportTable API. 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 getReportTable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get a pandas table from a previous report Args: reportzipfile (str): Zip folder location, '.zip' extension is optional. tablefilename (str or list int): Table location within the zip folder. Can be provided as the filename within the zip folder, or a list of integers ...
"Get a pandas table from a previous report\n\n Args:\n reportzipfile (str): Zip folder location, '.zip' extension is optional.\n tablefilename (str or list int): Table location within the zip folder.\n Can be provided as the filename within the zip folder, or a list of intege...
26
false
dicaso/leopard
getReportTable
37,501
LDU_FT/lorien/grab/set_input_by_xpath
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_input_by_xpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_input_by_xpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Set the value of form element by xpath :param xpath: xpath path :param value: value which should be set to element
"Set the value of form element by xpath\n\n :param xpath: xpath path\n :param value: value which should be set to element"
188
false
lorien/grab
set_input_by_xpath
37,502
LDU_FT/zendesk/connect_python_sdk/alias
LDU_FT
[ "<BEGIN>\n## `unsubscribe`", "Unsubscribe a user from some or all campaigns.", " :param str | number user_id: the id you use to identify a user. this should\n be static for the lifetime of a user.", " :param bool from_all True to unsubscribe from all campaigns. Take precedence over\n campaigns IDs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alias API. 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 alias API. 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...
Alias one user id to another. :param str | number user_id: the id you use to identify a user. this will be the user's primary user id. :param str | number previous_id: the id you previously used to identify a user (or the old user id you want to associate with the new user id). :param func on_err...
"Alias one user id to another.\n\n :param str | number user_id: the id you use to identify a user. this will be the user's\n primary user id.\n\n :param str | number previous_id: the id you previously used to identify a user (or the old user id\n you want to associate with the new user id).\n\n :param fu...
69
false
zendesk/connect_python_sdk
alias
37,503
LDU_FT/edx/event-tracking/get
LDU_FT
[ "<BEGIN>\n## `send`", "Insert the event in to the Mongo collection\n<END>", "<BEGIN>\n## `create_backends_from_settings`", "Expects the Django setting \"EVENT_TRACKING_BACKENDS\" to be defined and point\n to a dictionary of backend engine configurations.", " Example::", " EVENT_TR...
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...
Return a reference to a thread-specific context
"Return a reference to a thread-specific context"
47
false
edx/event-tracking
get
37,504
LDU_FT/nchopin/particles/ppf
LDU_FT
[ "<BEGIN>\n## `all_distinct`", "Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct", " Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)", " Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ppf API. 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 ppf API. 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...
Note: if dim(u) < self.dim, the remaining columns are filled with 0 Useful in case the distribution is partly degenerate
"Note: if dim(u) < self.dim, the remaining columns are filled with 0\n Useful in case the distribution is partly degenerate"
249
false
nchopin/particles
ppf
37,505
LDU_FT/hellosign/hellosign-python-sdk/create_team
LDU_FT
[ "<BEGIN>\n## `create_account`", "Create a new account.", " If the account is created via an app, then Account.oauth will contain the\n OAuth data that can be used to execute actions on behalf of the newly created account.", " Args:\n email_address (str): Email addres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_team API. 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 create_team API. 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...
Creates a new Team Creates a new Team and makes you a member. You must not currently belong to a team to invoke. Args: name (str): The name of your team Returns: A Team object
"Creates a new Team\n\n Creates a new Team and makes you a member. You must not currently belong to a team to invoke.\n\n Args:\n\n name (str): The name of your team\n\n Returns:\n A Team object"
416
false
hellosign/hellosign-python-sdk
create_team
37,506
LDU_FT/bpsmith/tia/_find_row_label_positions
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_row_label_positions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_row_label_positions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Check the original DataFrame's row labels to find the locations of rows. And return the adjusted row indexing within region (offset if including index)
"Check the original DataFrame's row labels to find the locations of rows. And return the adjusted\n row indexing within region (offset if including index)"
226
false
bpsmith/tia
_find_row_label_positions
37,507
LDU_FT/RI-imaging/ODTbrain/_mprotate
LDU_FT
[ "<BEGIN>\n## `integrate_2d`", "r\"\"\"(slow) 2D reconstruction with the Fourier diffraction theorem", " Two-dimensional diffraction tomography reconstruction\n algorithm for scattering of a plane wave\n :math:`u_0(\\mathbf{r}) = u_0(x,z)`\n by a dielectric object with refractive index\n :math:`n(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mprotate API. 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 _mprotate API. 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...
Uses multiprocessing to wrap around _rotate 4x speedup on an intel i7-3820 CPU @ 3.60GHz with 8 cores. The function calls _rotate which accesses the `mprotate_dict`. Data is rotated in-place. Parameters ---------- ang: float rotation angle in degrees lny: int total number ...
"Uses multiprocessing to wrap around _rotate\n\n 4x speedup on an intel i7-3820 CPU @ 3.60GHz with 8 cores.\n\n The function calls _rotate which accesses the `mprotate_dict`.\n Data is rotated in-place.\n\n Parameters\n ----------\n ang: float\n rotation angle in degrees\n lny: int\n ...
155
false
RI-imaging/ODTbrain
_mprotate
37,508
LDU_FT/blubberdiblub/eztemplate/convert_field
LDU_FT
[ "<BEGIN>\n## `get_value`", "Get value only from mapping and possibly convert key to string.\n<END>", "<BEGIN>\n## `get_field`", "Create a special value when field missing and tolerant.\n<END>", "<BEGIN>\n## `convert_field`", "When field missing, store conversion specifier.\n<END>", "<BEGIN>\n## `format_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_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 ext...
When field missing, store conversion specifier.
"When field missing, store conversion specifier."
39
false
blubberdiblub/eztemplate
convert_field
37,509
LDU_FT/kiwiz/gkeepapi/login
LDU_FT
[ "<BEGIN>\n## `login`", "Authenticate to Google with the provided credentials.", " Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.", " Raises:\n LoginException: If there...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. 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 login API. 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...
Authenticate to Google with the provided credentials. Args: email (str): The account to use. password (str): The account password. android_id (str): An identifier for this client. Raises: LoginException: If there was a problem logging in.
"Authenticate to Google with the provided credentials.\n\n Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.\n\n Raises:\n LoginException: If there was a problem logging in."
164
false
kiwiz/gkeepapi
login
37,510
LDU_FT/pallets/pallets-sphinx-themes/get_version
LDU_FT
[ "<BEGIN>\n## `add_404_page`", "Build an extra ``404.html`` page if no ``\"404\"`` key is in the\n ``html_additional_pages`` config.\n<END>", "<BEGIN>\n## `canonical_url`", "Build the canonical URL for a page. Appends the path for the\n page to the base URL specified by the\n ``html_context[\"canonica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Ensures that the named package is installed and returns version strings to be used by Sphinx. Sphinx uses ``version`` to mean an abbreviated form of the full version string, which is called ``release``. In ``conf.py``:: release, version = get_version("Flask") # release = 1.0.x, version = 1...
"Ensures that the named package is installed and returns version\n strings to be used by Sphinx.\n\n Sphinx uses ``version`` to mean an abbreviated form of the full\n version string, which is called ``release``. In ``conf.py``::\n\n release, version = get_version(\"Flask\")\n # release = 1.0.x, v...
36
false
pallets/pallets-sphinx-themes
get_version
37,511
LDU_FT/evansloan/sports.py/_get_team_info_raw
LDU_FT
[ "<BEGIN>\n## `get_team`", "Get extra info that pertains to a certain team.\n Info available to all teams:\n - name: Name of the team\n - seasons: Number of seasons played\n - record: Overall record\n - champs: Number of championships won\n - leaders: S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_team_info_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_team_info_raw 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...
Parses through html page to gather raw data about team :param soup: BeautifulSoup object containing html to be parsed :param base_url: Pre-formatted url that is formatted depending on sport :param team_pattern: Compiled regex pattern of team name/city :param team: Name of the team that is being searche...
"Parses through html page to gather raw data about team\n\n :param soup: BeautifulSoup object containing html to be parsed\n :param base_url: Pre-formatted url that is formatted depending on sport\n :param team_pattern: Compiled regex pattern of team name/city\n :param team: Name of the team that is being s...
23
false
evansloan/sports.py
_get_team_info_raw
37,512
LDU_FT/merantix/picasso/preprocess
LDU_FT
[ "<BEGIN>\n## `preprocess`", "Convert images into the format required by our model.", " Our model requires that inputs be grayscale (mode 'L'), be resized to\n `MNIST_DIM`, and be represented as float32 numpy arrays in range\n [0, 1].", " Args:\n raw_inputs (list of Image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess API. 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 preprocess API. 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...
Args: raw_inputs (list of Images): a list of PIL Image objects Returns: array (float32): num images * height * width * num channels
"Args:\n raw_inputs (list of Images): a list of PIL Image objects\n Returns:\n array (float32): num images * height * width * num channels"
51
false
merantix/picasso
preprocess
37,513
LDU_FT/memphis-iis/GLUDB/find_by_index
LDU_FT
[ "<BEGIN>\n## `read_rec`", "Generator that yields keyed recs from store.\n<END>", "<BEGIN>\n## `set_db_application_prefix`", "Set the global app prefix and separator.\n<END>", "<BEGIN>\n## `find_by_index`", "Find records matching index query - defer to backend.\n<END>", "<BEGIN>\n## `_auto_init`", "Our...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Find records matching index query - defer to backend.
"Find records matching index query - defer to backend."
57
false
memphis-iis/GLUDB
find_by_index
37,514
LDU_FT/wesm/feather/IsRValueType
LDU_FT
[ "<BEGIN>\n## `IsErrorSuppressedByNolint`", "Returns true if the specified error category is suppressed on this line.", " Consults the global error_suppressions map populated by\n ParseNolintSuppressions/ResetNolintSuppressions.", " Args:\n category: str, the category of the error.\n linenum: int, the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IsRValueType API. 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 IsRValueType API. 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...
Check if the token ending on (linenum, column) is a type. Assumes that text to the right of the column is "&&" or a function name. Args: typenames: set of type names from template-argument-list. clean_lines: A CleansedLines instance containing the file. nesting_state: A NestingState instance which m...
"Check if the token ending on (linenum, column) is a type.\n\n Assumes that text to the right of the column is \"&&\" or a function\n name.\n\n Args:\n typenames: set of type names from template-argument-list.\n clean_lines: A CleansedLines instance containing the file.\n nesting_state: A NestingState insta...
104
false
wesm/feather
IsRValueType
37,515
LDU_FT/kevinpt/hdlparse/run
LDU_FT
[ "<BEGIN>\n## `parse_vhdl_file`", "Parse a named VHDL file", " Args:\n fname(str): Name of file to parse\n Returns:\n Parsed objects.\n<END>", "<BEGIN>\n## `parse_vhdl`", "Parse a text buffer of VHDL code", " Args:\n text(str): Source code to parse\n Returns:\n Parsed objects.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run lexer rules against a source text Args: text (str): Text to apply lexer to Yields: A sequence of lexer matches.
"Run lexer rules against a source text\n\n Args:\n text (str): Text to apply lexer to\n\n Yields:\n A sequence of lexer matches."
46
false
kevinpt/hdlparse
run
37,516
LDU_FT/alvinlindstam/grapheme/slice
LDU_FT
[ "<BEGIN>\n## `length`", "Returns the number of graphemes in the string.", " Note that this functions needs to traverse the full string to calculate the length,\n unlike `len(string)` and it's time consumption is linear to the length of the string\n (up to the `until` value).", " Only counts up to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the slice API. 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 slice API. 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...
Returns a substring of the given string, counting graphemes instead of codepoints. Negative indices is currently not supported. >>> string = "tamil நி (ni)" >>> string[:7] 'tamil ந' >>> grapheme.slice(string, end=7) 'tamil நி' >>> string[7:] 'ி (ni)' >>> grapheme.slice(string, 7) ...
"Returns a substring of the given string, counting graphemes instead of codepoints.\n\n Negative indices is currently not supported.\n >>> string = \"tamil நி (ni)\"\n\n >>> string[:7]\n 'tamil ந'\n >>> grapheme.slice(string, end=7)\n 'tamil நி'\n >>> string[7:]\n 'ி (ni)'\n >>> grapheme.slic...
28
false
alvinlindstam/grapheme
slice
37,517
LDU_FT/ga4gh/ga4gh-server/populateFromHeader
LDU_FT
[ "<BEGIN>\n## `VerifierMiddleware`", "Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populateFromHeader 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 populateFromHeader 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...
Populate the instance variables using the specified SAM header.
"Populate the instance variables using the specified SAM header."
768
false
ga4gh/ga4gh-server
populateFromHeader
37,518
LDU_FT/makinacorpus/django-tracking-fields/_create_update_tracking_related_event
LDU_FT
[ "<BEGIN>\n## `changelist_view`", "Get object currently tracked and add a button to get back to it\n<END>", "<BEGIN>\n## `_add_get_tracking_url`", "Add a method to get the tracking url of an object.\n<END>", "<BEGIN>\n## `track`", "Decorator used to track changes on Model's fields.", " :Example:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_update_tracking_related_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_update_tracking_related_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Create a TrackingEvent and TrackedFieldModification for an UPDATE event for each related model.
"Create a TrackingEvent and TrackedFieldModification for an UPDATE event\n for each related model."
33
false
makinacorpus/django-tracking-fields
_create_update_tracking_related_event
37,519
LDU_FT/jreese/ent/diff
LDU_FT
[ "<BEGIN>\n## `_encode`", "Generate a recursive JSON representation of the ent.\n<END>", "<BEGIN>\n## `load`", "Create a new ent from an existing value. The value must either\n be an instance of Ent, or must be an instance of SAFE_TYPES. If\n the value is a base type (bool, int, string, etc), i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. 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 diff API. 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...
Create a new Ent representing the differences in two or more existing Ents. Keys in the later Ents with values that differ from the earlier Ents will be present in the final Ent with the latest value seen for that key. Later keys of different type than in earlier Ents will be bravely i...
"Create a new Ent representing the differences in two or more\n existing Ents. Keys in the later Ents with values that differ\n from the earlier Ents will be present in the final Ent with the\n latest value seen for that key. Later keys of different type than in\n earlier Ents will be brav...
16
false
jreese/ent
diff
37,520
LDU_FT/nornir-automation/nornir/gitlab
LDU_FT
[ "<BEGIN>\n## `start`", "Run the task for the given host.", " Arguments:\n host (:obj:`nornir.core.inventory.Host`): Host we are operating with. Populated right\n before calling the ``task``\n nornir(:obj:`nornir.core.Nornir`): Populated right before calling\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gitlab API. 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 gitlab API. 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 ...
Exposes some of the Gitlab API functionality for operations on files in a Gitlab repository. Example: nornir.run(files.gitlab, action="create", url="https://gitlab.localhost.com", token="ABCD1234", repository="test", ...
"Exposes some of the Gitlab API functionality for operations on files\n in a Gitlab repository.\n\n Example:\n\n nornir.run(files.gitlab,\n action=\"create\",\n url=\"https://gitlab.localhost.com\",\n token=\"ABCD1234\",\n repository=\...
175
false
nornir-automation/nornir
gitlab
37,521
LDU_FT/pypyr/pypyr-cli/run_failure_step_group
LDU_FT
[ "<BEGIN>\n## `run_step`", "Wipe the entire context.", " Args:\n Context is a dictionary or dictionary-like.\n Does not require any specific keys in context.\n<END>", "<BEGIN>\n## `get_parsed_context`", "Parse input context string and returns context as dictionary.\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_failure_step_group 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 run_failure_step_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Run the on_failure step group if it exists. This function will swallow all errors, to prevent obfuscating the error condition that got it here to begin with.
"Run the on_failure step group if it exists.\n\n This function will swallow all errors, to prevent obfuscating the error\n condition that got it here to begin with."
527
false
pypyr/pypyr-cli
run_failure_step_group
37,522
LDU_FT/rhgrant10/Groupy/block
LDU_FT
[ "<BEGIN>\n## `from_data`", "Create an attachment from data.", " :param str type: attachment type\n :param kwargs data: additional attachment data\n :return: an attachment subclass object\n :rtype: `~groupy.api.attachments.Attachment`\n<END>", "<BEGIN>\n## `from_file`", "Create a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block API. 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 block API. 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...
Block the given user. :param str other_user_id: the ID of the user to block :return: the block created :rtype: :class:`~groupy.api.blocks.Block`
"Block the given user.\n\n :param str other_user_id: the ID of the user to block\n :return: the block created\n :rtype: :class:`~groupy.api.blocks.Block`"
194
false
rhgrant10/Groupy
block
37,523
LDU_FT/benedictpaten/sonLib/mutateSequence
LDU_FT
[ "<BEGIN>\n## `linOriginRegression`", "computes a linear regression starting at zero\n<END>", "<BEGIN>\n## `close`", "check two float values are within a bound of one another\n<END>", "<BEGIN>\n## `filterOverlappingAlignments`", "Filter alignments to be non-overlapping.\n<END>", "<BEGIN>\n## `binaryTree_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutateSequence API. 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 mutateSequence API. 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...
Mutates the DNA sequence for use in testing.
"Mutates the DNA sequence for use in testing."
80
false
benedictpaten/sonLib
mutateSequence
37,524
LDU_FT/tsroten/dragonmapper/_parse_accented_syllable
LDU_FT
[ "<BEGIN>\n## `load_data_file`", "Load a data file and return it as a list of lines.", " Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>", "<BEGIN>\n## `_load_data`", "Load the word and character mapping data in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_accented_syllable 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 _parse_accented_syllable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return the syllable and tone of an accented Pinyin syllable. Any accented vowels are returned without their accents. Implements the following algorithm: 1. If the syllable has an accent mark, convert that vowel to a regular vowel and add the tone to the end of the syllable. 2. Otherwise, assu...
"Return the syllable and tone of an accented Pinyin syllable.\n\n Any accented vowels are returned without their accents.\n\n Implements the following algorithm:\n\n 1. If the syllable has an accent mark, convert that vowel to a\n regular vowel and add the tone to the end of the syllable.\n 2. Otherw...
97
false
tsroten/dragonmapper
_parse_accented_syllable
37,525
LDU_FT/phn/angles/sep
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalize number to range [lower, upper) or [lower, upper].", " Parameters\n ----------\n num : float\n The number to be normalized.\n lower : int\n Lower limit of range. Default is 0.\n upper : int\n Upper limit of range. Default is 360.\n b : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sep API. 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 sep API. 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...
Angular spearation between two points on a unit sphere. This will be an angle between [0, π] radians. Parameters ---------- a1, b1 : float Longitude-like and latitude-like angles defining the first point. Both are in radians. a2, b2 : float Longitude-like and latitude-like...
"Angular spearation between two points on a unit sphere.\n\n This will be an angle between [0, π] radians.\n\n Parameters\n ----------\n a1, b1 : float\n Longitude-like and latitude-like angles defining the first\n point. Both are in radians.\n\n a2, b2 : float\n Longitude-like and l...
120
false
phn/angles
sep
37,526
LDU_FT/flashashen/flange/frange
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frange API. 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 frange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
A :func:`range` clone for float-based ranges. >>> frange(5) [0.0, 1.0, 2.0, 3.0, 4.0] >>> frange(6, step=1.25) [0.0, 1.25, 2.5, 3.75, 5.0] >>> frange(100.5, 101.5, 0.25) [100.5, 100.75, 101.0, 101.25] >>> frange(5, 0) [] >>> frange(5, 0, step=-1.25) [5.0, 3.75, 2.5, 1.25]
"A :func:`range` clone for float-based ranges.\n\n >>> frange(5)\n [0.0, 1.0, 2.0, 3.0, 4.0]\n >>> frange(6, step=1.25)\n [0.0, 1.25, 2.5, 3.75, 5.0]\n >>> frange(100.5, 101.5, 0.25)\n [100.5, 100.75, 101.0, 101.25]\n >>> frange(5, 0)\n []\n >>> frange(5, 0, step=-1.25)\n [5.0, 3.75, 2.5, ...
132
false
flashashen/flange
frange
37,527
LDU_FT/enricobacis/wos/citedReferences
LDU_FT
[ "<BEGIN>\n## `_api`", "API decorator for common tests (sessions open, etc.) and throttle\n limitation (calls per second).\n<END>", "<BEGIN>\n## `_premium`", "Premium decorator for APIs that require premium access level.\n<END>", "<BEGIN>\n## `make_retrieveParameters`", "Create retrieve parameters d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the citedReferences API. 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 citedReferences API. 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...
The citedReferences operation returns references cited by an article identified by a unique identifier. You may specify only one identifier per request. :uid: Thomson Reuters unique record identifier :count: Number of records to display in the result. Cannot be less than ...
"The citedReferences operation returns references cited by an article\n identified by a unique identifier. You may specify only one identifier\n per request.\n\n :uid: Thomson Reuters unique record identifier\n\n :count: Number of records to display in the result. Cannot be less than\n ...
53
false
enricobacis/wos
citedReferences
37,528
LDU_FT/ucsb-cs/submit/can_view
LDU_FT
[ "<BEGIN>\n## `compute_diff`", "Associate the diff (if exists) with the TestCaseResult.", " Return whether or not the outputs match.\n<END>", "<BEGIN>\n## `json_exception`", "Always return json content in the body of Exceptions to xhr requests.\n<END>", "<BEGIN>\n## `merge_users`", "Merge a non-umail ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return whether or not `user` can view the submission.
"Return whether or not `user` can view the submission."
102
false
ucsb-cs/submit
can_view
37,529
LDU_FT/interedition/collatex/collate
LDU_FT
[ "<BEGIN>\n## `collate`", ":type graph: VariantGraph\n :type collation: Collation\n<END>", "<BEGIN>\n## `align`", "Every step we have 3 choices:\n 1) Move pointer witness a --> omission\n 2) Move pointer witness b --> addition\n 3) Move pointer of both witness a/b --> match\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collate API. 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 collate API. 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 graph: VariantGraph :type collation: Collation
":type graph: VariantGraph\n :type collation: Collation"
138
false
interedition/collatex
collate
37,530
LDU_FT/thespacedoctor/HMpTy/match
LDU_FT
[ "<BEGIN>\n## `add_htm_ids_to_mysql_database_table`", "*Given a database connection, a name of a table and the column names for RA and DEC, generates ID for one or more HTM level in the table*", " **Key Arguments:**\n - ``raColName`` -- ra in sexegesimal\n - ``declColName`` -- dec in sexegesimal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
*match a corrdinate set against this Matcher object's coordinate set* **Key Arguments:** - ``ra`` -- list, numpy array or single ra value - ``dec`` -- --list, numpy array or single dec value (must match ra array length) - ``radius`` -- radius of circle in degrees ...
"*match a corrdinate set against this Matcher object's coordinate set*\n\n **Key Arguments:**\n - ``ra`` -- list, numpy array or single ra value\n - ``dec`` -- --list, numpy array or single dec value (must match ra array length)\n - ``radius`` -- radius of circle in degrees\n ...
81
false
thespacedoctor/HMpTy
match
37,531
LDU_FT/lsbardel/python-stdnet/exclude
LDU_FT
[ "<BEGIN>\n## `load_iterable`", "Load an ``iterable``.", " By default it returns a generator of data loaded via the\n :meth:`loads` method.", " :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude API. 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 exclude API. 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 new :class:`Query` with additional clauses corresponding to ``EXCEPT`` in a ``SQL SELECT`` statement. :parameter kwargs: dictionary of limiting clauses. :rtype: a new :class:`Query` instance. Using an equivalent example to the :meth:`filter` method:: qs = session.query(MyModel) result1 = q...
"Returns a new :class:`Query` with additional clauses corresponding\r\nto ``EXCEPT`` in a ``SQL SELECT`` statement.\r\n\r\n:parameter kwargs: dictionary of limiting clauses.\r\n:rtype: a new :class:`Query` instance.\r\n\r\nUsing an equivalent example to the :meth:`filter` method::\r\n\r\n qs = session.query(MyModel)...
387
false
lsbardel/python-stdnet
exclude
37,532
LDU_FT/dnephin/PyStaticConfiguration/get_config_dict
LDU_FT
[ "<BEGIN>\n## `build_attributes`", "Return an attributes dictionary with ValueTokens replaced by a\n property which returns the config value.\n<END>", "<BEGIN>\n## `cache_as_field`", "Cache a functions return value as the field 'cache_name'.\n<END>", "<BEGIN>\n## `extract_value`", "Given a value pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Reconstruct the nested structure of this object's configuration and return it as a dict.
"Reconstruct the nested structure of this object's configuration\n and return it as a dict."
49
false
dnephin/PyStaticConfiguration
get_config_dict
37,533
LDU_FT/toastdriven/restless/build_endpoint_name
LDU_FT
[ "<BEGIN>\n## `skip_prepare`", "A convenience decorator for indicating the raw data should not be prepared.\n<END>", "<BEGIN>\n## `as_view`", "Used for hooking up the all endpoints (including custom ones), this\n returns a wrapper function that creates a new instance of the resource\n class & cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_endpoint_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_endpoint_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Given a ``name`` & an optional ``endpoint_prefix``, this generates a name for a URL. :param name: The name for the URL (ex. 'detail') :type name: string :param endpoint_prefix: (Optional) A prefix for the URL's name (for resolving). The default is ``None``, which will autoc...
"Given a ``name`` & an optional ``endpoint_prefix``, this generates a name\n for a URL.\n\n :param name: The name for the URL (ex. 'detail')\n :type name: string\n\n :param endpoint_prefix: (Optional) A prefix for the URL's name (for\n resolving). The default is ``None``, which wi...
94
false
toastdriven/restless
build_endpoint_name
37,534
LDU_FT/snipsco/snipsmanagercore/get_dict_value
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a json response into an intent.", " :param payload: a JSON object representing an intent.\n :param candidate_classes: a list of classes representing various\n intents, each having their own `parse`\n me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_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 ex...
Safely get the value of a dictionary given a key path. For instance, for the dictionary `{ 'a': { 'b': 1 } }`, the value at key path ['a'] is { 'b': 1 }, at key path ['a', 'b'] is 1, at key path ['a', 'b', 'c'] is None. :param dictionary: a dictionary. :param path: t...
"Safely get the value of a dictionary given a key path. For\n instance, for the dictionary `{ 'a': { 'b': 1 } }`, the value at\n key path ['a'] is { 'b': 1 }, at key path ['a', 'b'] is 1, at\n key path ['a', 'b', 'c'] is None.\n\n :param dictionary: a dictionary.\n :param ...
60
false
snipsco/snipsmanagercore
get_dict_value
37,535
LDU_FT/SUSE-Enceladus/ipa/_set_instance_ip
LDU_FT
[ "<BEGIN>\n## `_get_instance_state`", "Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>", "<BEGIN>\n## `_get_user_data`", "Return formatted bash script string.", " The public ssh key is added by cloud init to the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_instance_ip API. 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_instance_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get the IP address based on instance ID. If public IP address not found attempt to get private IP.
"Get the IP address based on instance ID.\n\n If public IP address not found attempt to get private IP."
143
false
SUSE-Enceladus/ipa
_set_instance_ip
37,536
LDU_FT/MacHu-GWU/angora-project/cycle_dist
LDU_FT
[ "<BEGIN>\n## `run_backup`", "The backup utility method.", " :param root_dir: the directory you want to backup\n :param ignore: file or directory defined in this list will be ignored.\n :param ignore_ext: file with extensions defined in this list will be ignored.\n :param ignore_pattern: any file or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cycle_dist API. 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 cycle_dist API. 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...
Find Distance between x, y by means of a n-length cycle. Example: cycle_dist(1, 23, 24) = 2 cycle_dist(5, 13, 24) = 8 cycle_dist(0.0, 2.4, 1.0) = 0.4 cycle_dist(0.0, 2.6, 1.0) = 0.4
"Find Distance between x, y by means of a n-length cycle.\n\n Example:\n\n cycle_dist(1, 23, 24) = 2\n cycle_dist(5, 13, 24) = 8\n cycle_dist(0.0, 2.4, 1.0) = 0.4\n cycle_dist(0.0, 2.6, 1.0) = 0.4"
616
false
MacHu-GWU/angora-project
cycle_dist
37,537
LDU_FT/paragbaxi/qualysapi/format_api_version
LDU_FT
[ "<BEGIN>\n## `connect`", "Return a QGAPIConnect object for v1 API pulling settings from config\n file.\n<END>", "<BEGIN>\n## `format_api_version`", "Return QualysGuard API version for api_version specified.\n<END>", "<BEGIN>\n## `which_api_version`", "Return QualysGuard API version for api_call specifi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_api_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_api_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return QualysGuard API version for api_version specified.
"Return QualysGuard API version for api_version specified."
16
false
paragbaxi/qualysapi
format_api_version
37,538
LDU_FT/Jayin/ETipsService/__get_isbn
LDU_FT
[ "<BEGIN>\n## `_get_electricity_info_html`", "get html", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_electricity_info`", "get electricity info", " :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>", "<BEGIN>\n## `get_wyu_news`", "获取新闻列...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_isbn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_isbn API. 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...
从图书借阅状态页面中获取isbn :param html: :return:
"从图书借阅状态页面中获取isbn\n :param html:\n :return:"
26
false
Jayin/ETipsService
__get_isbn
37,539
LDU_FT/agile4you/bottle-neck/not_found
LDU_FT
[ "<BEGIN>\n## `wrap_callable`", "Wraps function-based callable_obj into a `Route` instance, else\n proxies a `bottle_neck.handlers.BaseHandler` subclass instance.", " Args:\n uri (str): The uri relative path.\n methods (tuple): A tuple of valid method strings.\n ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the not_found API. 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 not_found API. 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...
Shortcut API for HTTP 404 `Not found` response. Args: errors (list): Response key/value data. Returns: WSResponse Instance.
"Shortcut API for HTTP 404 `Not found` response.\n\n Args:\n errors (list): Response key/value data.\n\n Returns:\n WSResponse Instance."
81
false
agile4you/bottle-neck
not_found
37,540
LDU_FT/kmike/port-for/available_ports
LDU_FT
[ "<BEGIN>\n## `_write_unassigned_ranges`", "Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>", "<BEGIN>\n## `_unassigned_ports`", "Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_ports API. 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 available_ports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a set of possible ports (excluding system, ephemeral and well-known ports). Pass ``high`` and/or ``low`` to limit the port range.
"Returns a set of possible ports (excluding system,\n ephemeral and well-known ports).\n\n Pass ``high`` and/or ``low`` to limit the port range."
31
false
kmike/port-for
available_ports
37,541
LDU_FT/infothrill/python-dyndnsc/compute_auth_key
LDU_FT
[ "<BEGIN>\n## `getDynDnsClientForConfig`", "Instantiate and return a complete and working dyndns client.", " :param config: a dictionary with configuration keys\n :param plugins: an object that implements PluginManager\n<END>", "<BEGIN>\n## `sync`", "Synchronize the registered IP with the detected IP (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_auth_key API. 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 compute_auth_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Compute the authentication key for freedns.afraid.org. This is the SHA1 hash of the string b'userid|password'. :param userid: ascii username :param password: ascii password :return: ascii authentication key (SHA1 at this point)
"Compute the authentication key for freedns.afraid.org.\n\n This is the SHA1 hash of the string b'userid|password'.\n\n :param userid: ascii username\n :param password: ascii password\n :return: ascii authentication key (SHA1 at this point)"
127
false
infothrill/python-dyndnsc
compute_auth_key
37,542
LDU_FT/mugurbil/gnm/_back_off
LDU_FT
[ "<BEGIN>\n## `update_params`", "Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _back_off API. 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 _back_off API. 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...
Back off Calculate the back off step size Inputs : Z_ : list of states in current proposal r_ : list of back offs in current proposal q : step size reduction dynamic : set to True if you want to use the dynamic back-off ...
"Back off\n Calculate the back off step size\n Inputs : \n Z_ :\n list of states in current proposal\n r_ : \n list of back offs in current proposal\n q : \n step size reduction\n dynamic : \n set to True if you want to use the dynamic ba...
42
false
mugurbil/gnm
_back_off
37,543
LDU_FT/hamperbot/hamper/describe_dish
LDU_FT
[ "<BEGIN>\n## `signedOn`", "Called after successfully signing on to the server.\n<END>", "<BEGIN>\n## `process_action`", "Called when a message is received from a channel or user.\n<END>", "<BEGIN>\n## `connectionLost`", "Called when the connection is lost to the server.\n<END>", "<BEGIN>\n## `userKicked...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_dish API. 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 describe_dish API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
a burrito. a lettuce burrito with ketchup and raspberry.
"a burrito. a lettuce burrito with ketchup and raspberry."
35
false
hamperbot/hamper
describe_dish
37,544
LDU_FT/langloisjp/pysvcmetrics/timing
LDU_FT
[ "<BEGIN>\n## `timeit`", "Time execution of function. Returns (res, seconds).", " >>> res, timing = timeit(time.sleep, 1)\n<END>", "<BEGIN>\n## `timing`", "Log timing information", " >>> client = StatsdClient()\n >>> client.timing('example.timing', 500)\n >>> client.timing(('example...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timing API. 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 timing API. 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 ...
Log timing information >>> client = StatsdClient() >>> client.timing('example.timing', 500) >>> client.timing(('example.timing23', 'example.timing29'), 500)
"Log timing information\n\n >>> client = StatsdClient()\n >>> client.timing('example.timing', 500)\n >>> client.timing(('example.timing23', 'example.timing29'), 500)"
40
false
langloisjp/pysvcmetrics
timing
37,545
LDU_FT/Damgaard/PyImgur/get_subreddit_image
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subreddit_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subreddit_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. T...
Return the Gallery_image with the id submitted to subreddit gallery :param subreddit: The subreddit the image has been submitted to. :param id: The id of the image we want.
"Return the Gallery_image with the id submitted to subreddit gallery\n\n :param subreddit: The subreddit the image has been submitted to.\n :param id: The id of the image we want."
139
false
Damgaard/PyImgur
get_subreddit_image
37,546
LDU_FT/mbakker7/timml/potinf
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot layout", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n<END>", "<BEGIN>\n## `contour`", "Contour plot", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n ngr ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the potinf API. 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 potinf API. 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 ...
Can be called with only one x,y value Returns array(nparam, self.aq.naq) with order order 0, layer[0] order 0, layer[1] ... order 1, layer[0] order 1, layer[1] etc
"Can be called with only one x,y value\n Returns array(nparam, self.aq.naq) with order\n order 0, layer[0]\n order 0, layer[1]\n ...\n order 1, layer[0]\n order 1, layer[1]\n etc"
82
false
mbakker7/timml
potinf
37,547
LDU_FT/ApproxEng/approxeng.input/map_into_range
LDU_FT
[ "<BEGIN>\n## `map_into_range`", "Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0", " :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_into_range API. 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 map_into_range API. 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...
Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0 :param low: The value in the input range corresponding to zero. :param high: The value in the input range corresponding to 1.0 or -1.0, depending on whether this is higher or lower than the...
"Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0\n\n :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, depending on whether this is higher or lower th...
86
false
ApproxEng/approxeng.input
map_into_range
37,548
LDU_FT/cloudboss/friend/random_alphanum
LDU_FT
[ "<BEGIN>\n## `cached`", "A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>", "<BEGIN>\n## `retry_wait_time`", "Determine a retry wait time based on the number of the\n retry attempt and a ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_alphanum API. 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 random_alphanum API. 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 random string of ASCII letters and digits. :param int length: The length of string to return :returns: A random string :rtype: str
"Return a random string of ASCII letters and digits.\n\n :param int length: The length of string to return\n :returns: A random string\n :rtype: str"
49
false
cloudboss/friend
random_alphanum
37,549
LDU_FT/Cito/DBUtils/_setsession
LDU_FT
[ "<BEGIN>\n## `connection`", "Get a steady, cached DB-API 2 connection from the pool.", " If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>", "<BEGIN>\n## `unshare`", "Decrease the share of a connection in the shared cache....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setsession API. 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 _setsession API. 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...
Execute the SQL commands for session preparation.
"Execute the SQL commands for session preparation."
80
false
Cito/DBUtils
_setsession
37,550
LDU_FT/sdispater/cleo/line_error
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given console command definition into a dict.", " :param expression: The expression to parse\n :type expression: str", " :rtype: dict\n<END>", "<BEGIN>\n## `_parameters`", "Extract all of the parameters from the tokens.", " :param tokens: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line_error API. 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 line_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Write a string as information output to stderr.
"Write a string as information output to stderr."
29
false
sdispater/cleo
line_error
37,551
LDU_FT/kfdm/gntp/_format_info
LDU_FT
[ "<BEGIN>\n## `mini`", "Single notification function", "\tSimple notification function in one line. Has only one required parameter\n\tand attempts to use reasonable defaults for everything else\n\t:param string description: Notification message\n<END>", "<BEGIN>\n## `parse_gntp`", "Attempt to parse a messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Generate info line for GNTP Message :return string:
"Generate info line for GNTP Message\n\n\t\t:return string:"
54
false
kfdm/gntp
_format_info
37,552
LDU_FT/pedrotgn/pyactor/interval
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interval API. 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 interval API. 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...
Creates an Event attached to the host for management that will execute the *method* of the *actor* every *time* seconds. See example in :ref:`sample_inter` :param Proxy host: host that will manage the interval, commonly the host of the actor. :param int time: seconds for the intervals. :pa...
"Creates an Event attached to the host for management that will\n execute the *method* of the *actor* every *time* seconds.\n\n See example in :ref:`sample_inter`\n\n :param Proxy host: host that will manage the interval, commonly the\n host of the actor.\n :param int time: seconds for the intervals....
102
false
pedrotgn/pyactor
interval
37,553
LDU_FT/atarashansky/self-assembling-manifold/save_figures
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_figures API. 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 save_figures API. 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...
Save figures. Parameters ---------- filename - str Name of output file fig_IDs - int, numpy.array, list, optional, default None A list of open figure IDs or a figure ID that will be saved to a pdf/png file respectively. **kwargs - Extra keyword arg...
"Save figures.\n \n Parameters\n ----------\n filename - str\n Name of output file\n \n fig_IDs - int, numpy.array, list, optional, default None\n A list of open figure IDs or a figure ID that will be saved to a\n pdf/png file respectively.\n \n **kwargs - \n Extr...
125
false
atarashansky/self-assembling-manifold
save_figures
37,554
LDU_FT/slundberg/shap/get_transform
LDU_FT
[ "<BEGIN>\n## `imagenet50`", "This is a set of 50 images representative of ImageNet images.", " This dataset was collected by randomly finding a working ImageNet link and then pasting the\n original ImageNet image into Google image search restricted to images licensed for reuse. A\n similar image (now w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
A consistent interface to make predictions from this model.
"A consistent interface to make predictions from this model."
299
false
slundberg/shap
get_transform
37,555
LDU_FT/shaypal5/strct/get_nested_val
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nested_val API. 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_nested_val API. 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 a value from nested dicts by the order of the given keys tuple. Parameters ---------- key_tuple : tuple The keys to use for extraction, in order. dict_obj : dict The outer-most dict to extract from. Returns ------- value : object The extracted value, if exist...
"Return a value from nested dicts by the order of the given keys tuple.\n\n Parameters\n ----------\n key_tuple : tuple\n The keys to use for extraction, in order.\n dict_obj : dict\n The outer-most dict to extract from.\n\n Returns\n -------\n value : object\n The extracted va...
140
false
shaypal5/strct
get_nested_val
37,556
LDU_FT/ahwillia/tensortools/soft_cluster_factor
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the soft_cluster_factor 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 soft_cluster_factor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns soft-clustering of data based on CP decomposition results. Parameters ---------- data : ndarray, N x R matrix of nonnegative data Datapoints are held in rows, features are held in columns Returns ------- cluster_ids : ndarray, vector of N integers in range(0, R) List of...
"Returns soft-clustering of data based on CP decomposition results.\n\n Parameters\n ----------\n data : ndarray, N x R matrix of nonnegative data\n Datapoints are held in rows, features are held in columns\n\n Returns\n -------\n cluster_ids : ndarray, vector of N integers in range(0, R)\n ...
158
false
ahwillia/tensortools
soft_cluster_factor
37,557
LDU_FT/calve/prof/get_session
LDU_FT
[ "<BEGIN>\n## `check_update`", "Return True if an update is available on pypi\n<END>", "<BEGIN>\n## `initiate_session`", "Initiate a session globally used in prof :\n + Retrive the cookie\n + Log to prof", " Returns an initiated session\n<END>", "<BEGIN>\n## `verify_session`", "Check that th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Try to get a valid session for this baseurl, using login found in config. This function invoques Firefox if necessary
"Try to get a valid session for this baseurl, using login found in config.\n This function invoques Firefox if necessary"
20
false
calve/prof
get_session
37,558
LDU_FT/refinery29/chassis/delete_object
LDU_FT
[ "<BEGIN>\n## `detect_circle`", "Wrapper for recursive _detect_circle function\n<END>", "<BEGIN>\n## `_detect_circle`", "Recursively iterate over nodes checking\n if we've traveled to that node before.\n<END>", "<BEGIN>\n## `_do`", "Recursive method to instantiate services\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_object API. 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 delete_object API. 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...
Delete an object in Redis using a pipeline. Deletes all fields defined by the template. Arguments: template: a dictionary containg the keys for the object and template strings for the corresponding redis keys. The template string uses named string interpolation format. Example:...
"Delete an object in Redis using a pipeline.\n\n Deletes all fields defined by the template.\n\n Arguments:\n template: a dictionary containg the keys for the object and\n template strings for the corresponding redis keys. The template\n string uses named string interpolation format. ...
75
false
refinery29/chassis
delete_object
37,559
LDU_FT/ynop/audiomate/stats
LDU_FT
[ "<BEGIN>\n## `load`", "Load and return the corpus from the given path.", " Args:\n path (str): Path to the data set to load.", " Returns:\n Corpus: The loaded corpus", " Raises:\n IOError: When the data set is invalid, for example because required files ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. 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 stats API. 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...
Return statistics calculated overall samples of all utterances in the corpus. Returns: DataStats: A DataStats object containing statistics overall samples in the corpus.
"Return statistics calculated overall samples of all utterances in the corpus.\n\n Returns:\n DataStats: A DataStats object containing statistics overall samples in the corpus."
619
false
ynop/audiomate
stats
37,560
LDU_FT/globus/globus-cli/outformat_is_unix
LDU_FT
[ "<BEGIN>\n## `role_show`", "Executor for `globus endpoint role show`\n<END>", "<BEGIN>\n## `outformat_is_json`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_unix`", "Only safe to call within a click context.\n<END>", "<BEGIN>\n## `outformat_is_text`", "Only safe to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outformat_is_unix API. 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 outformat_is_unix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Only safe to call within a click context.
"Only safe to call within a click context."
186
false
globus/globus-cli
outformat_is_unix
37,561
LDU_FT/Unity-Technologies/ml-agents/_execute_model
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute_model API. 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 _execute_model API. 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...
Executes model. :param feed_dict: Input dictionary mapping nodes to input data. :param out_dict: Output dictionary mapping names to nodes. :return: Dictionary mapping names to input data.
"Executes model.\n :param feed_dict: Input dictionary mapping nodes to input data.\n :param out_dict: Output dictionary mapping names to nodes.\n :return: Dictionary mapping names to input data."
171
false
Unity-Technologies/ml-agents
_execute_model
37,562
LDU_FT/Duke-GCB/DukeDSClient/add_response
LDU_FT
[ "<BEGIN>\n## `_create_parser`", "Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>", "<BEGIN>\n## `_check_pypi_version`", "When the version is out of date or we have trouble retrieving it print a error to stderr an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add data from json() to data returned by json() :param response: requests.Response containing the successful JSON result to be merged
"Add data from json() to data returned by json()\n :param response: requests.Response containing the successful JSON result to be merged"
440
false
Duke-GCB/DukeDSClient
add_response
37,563
LDU_FT/stevearc/dql/run_command
LDU_FT
[ "<BEGIN>\n## `field_or_value`", "For a clause that could be a field or value,\n create the right one and return it\n<END>", "<BEGIN>\n## `from_where`", "Factory method for creating the top-level expression\n<END>", "<BEGIN>\n## `_factory`", "Factory for joining constraints with a single conjunction\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Run a command passed in from the command line with -c
"Run a command passed in from the command line with -c"
157
false
stevearc/dql
run_command
37,564
LDU_FT/mokelly/wabbit_wappa/send_line
LDU_FT
[ "<BEGIN>\n## `make_command_line`", "Construct a command line for VW, with each named argument corresponding\n to a VW option.\n Single character keys are mapped to single-dash options,\n e.g. 'b=20' yields '-b 20',\n while multiple character keys map to double-dash options:\n 'quiet=True' yield...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_line API. 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 send_line API. 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...
Submit a raw line of text to the VW instance, returning a VWResult() object. If 'parse_result' is False, ignore the result and return None.
"Submit a raw line of text to the VW instance, returning a \n VWResult() object.\n\n If 'parse_result' is False, ignore the result and return None."
39
false
mokelly/wabbit_wappa
send_line
37,565
LDU_FT/mushkevych/scheduler/install_virtualenv_p3
LDU_FT
[ "<BEGIN>\n## `_process_state_embryo`", "method that takes care of processing job records in STATE_EMBRYO state\n<END>", "<BEGIN>\n## `_process_state_in_progress`", "method that takes care of processing job records in STATE_IN_PROGRESS state\n<END>", "<BEGIN>\n## `__process_non_finalizable_job`", "method h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_virtualenv_p3 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 install_virtualenv_p3 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Install virtual environment for Python 3.3+; removing the old one if it exists
"Install virtual environment for Python 3.3+; removing the old one if it exists"
335
false
mushkevych/scheduler
install_virtualenv_p3
37,566
LDU_FT/AntagonistHQ/openprovider.py/submodel
LDU_FT
[ "<BEGIN>\n## `snake_to_camel`", "Converts a snake_case_string to a camelCaseString.", " >>> snake_to_camel(\"foo_bar_baz\")\n 'fooBarBaz'\n<END>", "<BEGIN>\n## `retrieve_approver_email_list`", "Retrieve the list of allowed approver email addresses.\n<END>", "<BEGIN>\n## `resend_approver_email`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submodel API. 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 submodel API. 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...
Shortcut for defining a submodel (has-a relation).
"Shortcut for defining a submodel (has-a relation)."
38
false
AntagonistHQ/openprovider.py
submodel
37,567
LDU_FT/gebn/wood/_walk_paths
LDU_FT
[ "<BEGIN>\n## `_normalise_path`", "Ensures a path is parsed.", " :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>", "<BEGIN>\n## `root`", "Retrieve a root directory object from a path.", " :param path: The path string or Path object.\n :return: The created...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk_paths API. 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 _walk_paths API. 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...
Internal helper for walking paths. This is required to exclude the name of the root entity from the walk. :param base: The base path to prepend to the entity name. :return: An iterator of paths.
"Internal helper for walking paths. This is required to exclude the name\n of the root entity from the walk.\n\n :param base: The base path to prepend to the entity name.\n :return: An iterator of paths."
70
false
gebn/wood
_walk_paths
37,568
LDU_FT/lotabout/pymustache/lookup
LDU_FT
[ "<BEGIN>\n## `lookup`", "lookup the value of the var_name on the stack of contexts", " :var_name: TODO\n :contexts: TODO\n :returns: None if not found\n<END>", "<BEGIN>\n## `delimiters_to_re`", "convert delimiters to corresponding regular expressions\n<END>", "<BEGIN>\n## `is_standalone`", "che...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. 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 lookup API. 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 ...
lookup the value of the var_name on the stack of contexts :var_name: TODO :contexts: TODO :returns: None if not found
"lookup the value of the var_name on the stack of contexts\n\n :var_name: TODO\n :contexts: TODO\n :returns: None if not found"
12
false
lotabout/pymustache
lookup
37,569
LDU_FT/naphatkrit/easyci/unstage_signature
LDU_FT
[ "<BEGIN>\n## `get_signature`", "Get the signature of the current state of the repository", " TODO right now `get_signature` is an effectful process in that\n it adds all untracked file to staging. This is the only way to get\n accruate diff on new files. This is ok because we only use it on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unstage_signature API. 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 unstage_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Remove `signature` from the list of staged signatures Args: vcs (easyci.vcs.base.Vcs) signature (basestring) Raises: NotStagedError
"Remove `signature` from the list of staged signatures\n\n Args:\n vcs (easyci.vcs.base.Vcs)\n signature (basestring)\n\n Raises:\n NotStagedError"
94
false
naphatkrit/easyci
unstage_signature
37,570
LDU_FT/openvax/varcode/_combine_variant_collections
LDU_FT
[ "<BEGIN>\n## `translate_codon`", "Translate a single codon into a single amino acid or stop '*'", " Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>", "<BEGIN>\n## `translate`", "Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_variant_collections 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 _combine_variant_collections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Create a single VariantCollection from multiple different collections. Parameters ---------- cls : class Should be VariantCollection combine_fn : function Function which takes any number of sets of variants and returns some combination of them (typi...
"Create a single VariantCollection from multiple different collections.\n\n Parameters\n ----------\n\n cls : class\n Should be VariantCollection\n\n combine_fn : function\n Function which takes any number of sets of variants and returns\n some combination of...
344
false
openvax/varcode
_combine_variant_collections
37,571
LDU_FT/hubo1016/vlcp/with_callback
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Get an exclusive connection, useful for blocked commands and transactions.", " You must call release or shutdown (not recommanded) to return the connection after use.", " :param container: routine container", " :returns: RedisClientBase object, with some...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_callback API. 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 with_callback API. 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...
Monitoring event matchers while executing a subprocess. `callback(event, matcher)` is called each time an event is matched by any event matchers. If the callback raises an exception, the subprocess is terminated. :param intercept_callback: a callback called before a event is delegated to the in...
"Monitoring event matchers while executing a subprocess. `callback(event, matcher)` is called each time\n an event is matched by any event matchers. If the callback raises an exception, the subprocess is terminated.\n \n :param intercept_callback: a callback called before a event is delegated to th...
538
false
hubo1016/vlcp
with_callback
37,572