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/antonybholmes/libdna/_read_1bit_file | LDU_FT | [
"<BEGIN>\n## `fasta`",
"Prints a fasta representation of a sequence.",
" Parameters\n ----------\n l : tuple (str, int, int)\n location chr, start, and end\n mask : str, optional\n Either 'upper', 'lower', or 'n'. If 'lower', poor quality bases \n wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_1bit_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_1bit_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Load data from 1 bit file into array
Parameters
----------
file : str
1bit filename
l : libdna.Loc
dna location
Returns
-------
bytes
byte array from file where each byte represents 8 bases. | "Load data from 1 bit file into array\n \n Parameters\n ----------\n file : str\n 1bit filename\n l : libdna.Loc\n dna location\n \n Returns\n -------\n bytes\n byte array from file where each byte represents 8 bases." | 44 | false | antonybholmes/libdna | _read_1bit_file | 9,673 | |
LDU_FT/btotharye/mattermostwrapper/get | LDU_FT | [
"<BEGIN>\n## `get`",
"Used to make get calls to mattermost api\n :param request:\n :return:\n<END>",
"<BEGIN>\n## `post`",
"Used to make post calls to mattermost api\n :param request:\n :param data:\n :return:\n<END>",
"<BEGIN>\n## `login`",
"Login to the corresponding (... | 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... | Used to make get calls to mattermost api
:param request:
:return: | "Used to make get calls to mattermost api\n :param request:\n :return:" | 10 | false | btotharye/mattermostwrapper | get | 9,674 | |
LDU_FT/wolverdude/GenSON/to_schema | LDU_FT | [
"<BEGIN>\n## `add_schema`",
"Merge in a JSON schema. This can be a ``dict`` or another\n ``SchemaBuilder``",
" :param schema: a JSON Schema",
" .. note::\n There is no schema validation. If you pass in a bad schema,\n you might get back a bad schema.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Generate a schema based on previous inputs.
:rtype: ``dict`` | "Generate a schema based on previous inputs.\n\n :rtype: ``dict``" | 20 | false | wolverdude/GenSON | to_schema | 9,675 | |
LDU_FT/uw-it-aca/uw-restclients-sws/_json_to_sectionstatus | LDU_FT | [
"<BEGIN>\n## `get_term_by_year_and_quarter`",
"Returns a uw_sws.models.Term object,\n for the passed year and quarter.\n<END>",
"<BEGIN>\n## `get_current_term`",
"Returns a uw_sws.models.Term object,\n for the current term.\n<END>",
"<BEGIN>\n## `get_term_before`",
"Returns a uw_sws.models.Term obje... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _json_to_sectionstatus 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 _json_to_sectionstatus 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 uw_sws.models.SectionStatus object
created from the passed json. | "Returns a uw_sws.models.SectionStatus object\n created from the passed json." | 74 | false | uw-it-aca/uw-restclients-sws | _json_to_sectionstatus | 9,676 | |
LDU_FT/gsi-upm/soil/calculate_distribution | LDU_FT | [
"<BEGIN>\n## `save_record`",
"Save a collection of records to the database.\n Database writes are cached.\n<END>",
"<BEGIN>\n## `convert`",
"Get the serialized value for a given key.\n<END>",
"<BEGIN>\n## `recover`",
"Get the deserialized value for a given key, and the serialized version.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_distribution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_distribution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Calculate the threshold values (thresholds for a uniform distribution)
of an agent distribution given the weights of each agent type.
The input has this form: ::
[
{'agent_type': 'agent_type_1',
'weight': 0.2,
'state': {
'id': 0
... | "Calculate the threshold values (thresholds for a uniform distribution)\n of an agent distribution given the weights of each agent type.\n\n The input has this form: ::\n\n [\n {'agent_type': 'agent_type_1',\n 'weight': 0.2,\n 'state': {\n 'id... | 63 | false | gsi-upm/soil | calculate_distribution | 9,677 | |
LDU_FT/mpds-io/python-api-client/get_dataframe | LDU_FT | [
"<BEGIN>\n## `count_data`",
"Calculate the number of entries matching the keyword(s) specified",
" Args:\n search: (dict) Search query like {\"categ_A\": \"val_A\", \"categ_B\": \"val_B\"},\n documented at https://developer.mpds.io/#Categories\n phases: (list) Phase I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dataframe API.
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_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Retrieve data as a Pandas dataframe.
Args:
search: (dict) Search query like {"categ_A": "val_A", "categ_B": "val_B"},
documented at https://developer.mpds.io/#Categories
phases: (list) Phase IDs, according to the MPDS distinct phases concept
fields: (dict) Da... | "Retrieve data as a Pandas dataframe.\n\n Args:\n search: (dict) Search query like {\"categ_A\": \"val_A\", \"categ_B\": \"val_B\"},\n documented at https://developer.mpds.io/#Categories\n phases: (list) Phase IDs, according to the MPDS distinct phases concept\n fi... | 22 | false | mpds-io/python-api-client | get_dataframe | 9,678 | |
LDU_FT/nilp0inter/cpe/_unbind | LDU_FT | [
"<BEGIN>\n## `_trim`",
"Remove trailing colons from the URI back to the first non-colon.",
" :param string s: input URI string\n :returns: URI string with trailing colons removed\n :rtype: string",
" TEST: trailing colons necessary",
" >>> s = '1:2::::'\n >>> CPE._t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unbind API.
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 _unbind API.
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... | Unbinds a bound form to a WFN.
:param string boundname: CPE name
:returns: WFN object associated with boundname.
:rtype: CPE2_3_WFN | "Unbinds a bound form to a WFN.\n\n :param string boundname: CPE name\n :returns: WFN object associated with boundname.\n :rtype: CPE2_3_WFN" | 206 | false | nilp0inter/cpe | _unbind | 9,679 | |
LDU_FT/iopipe/iopipe-python/read_disk | LDU_FT | [
"<BEGIN>\n## `upload_profiler_report`",
"Uploads a profiler report to IOpipe",
" :param url: The signed URL\n :param filename: The profiler report file\n :param config: The IOpipe config\n<END>",
"<BEGIN>\n## `read_pid_stat`",
"Mocks read_pid_stat as this is a Linux-specific operation.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_disk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_disk API.
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... | Returns disk usage for /tmp
:returns: Disk usage (total, used, percentage used)
:rtype dict | "Returns disk usage for /tmp\n\n :returns: Disk usage (total, used, percentage used)\n :rtype dict" | 93 | false | iopipe/iopipe-python | read_disk | 9,680 | |
LDU_FT/mcieslik-mctp/papy/_plunge | LDU_FT | [
"<BEGIN>\n## `_inspect`",
"(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plunge API.
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 _plunge API.
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... | (internal) calls the next method of weaved tasks until they are finished
or The ``Plumber`` instance is stopped see: ``Dagger.chinkup``. | "(internal) calls the next method of weaved tasks until they are finished\n or The ``Plumber`` instance is stopped see: ``Dagger.chinkup``." | 323 | false | mcieslik-mctp/papy | _plunge | 9,681 | |
LDU_FT/websauna/pyramid_notebook/clear_context | LDU_FT | [
"<BEGIN>\n## `handshake_headers`",
"List of headers appropriate for the upgrade\n handshake.\n<END>",
"<BEGIN>\n## `run`",
"Combine async uwsgi message loop with ws4py message loop.",
" TODO: This could do some serious optimizations and behave asynchronously correct instead of just sleep().\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_context API.
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 clear_context API.
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... | Called at exit. Delete the context file to signal there is no active notebook.
We don't delete the whole file, but leave it around for debugging purposes. Maybe later we want to pass some information back to the web site. | "Called at exit. Delete the context file to signal there is no active notebook.\n\n We don't delete the whole file, but leave it around for debugging purposes. Maybe later we want to pass some information back to the web site." | 78 | false | websauna/pyramid_notebook | clear_context | 9,682 | |
LDU_FT/jreese/aiosqlite/close | LDU_FT | [
"<BEGIN>\n## `connect`",
"Create and return a connection proxy to the sqlite database.\n<END>",
"<BEGIN>\n## `_execute`",
"Execute the given function on the shared connection's thread.\n<END>",
"<BEGIN>\n## `fetchmany`",
"Fetch up to `cursor.arraysize` number of rows.\n<END>",
"<BEGIN>\n## `run`",
"Ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
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 close API.
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... | Complete queued queries/cursors and close the connection. | "Complete queued queries/cursors and close the connection." | 22 | false | jreese/aiosqlite | close | 9,683 | |
LDU_FT/litl/rauth/sign | LDU_FT | [
"<BEGIN>\n## `request`",
"A loose wrapper around Requests' :class:`~requests.sessions.Session`\n which injects OAuth 1.0/a parameters.",
" :param method: A string representation of the HTTP method to be used.\n :type method: str\n :param url: The resource to be requested.\n :t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API.
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 sign API.
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... | Sign request parameters.
:param consumer_secret: Consumer secret.
:type consumer_secret: str
:param access_token_secret: Access token secret.
:type access_token_secret: str
:param method: The method of this particular request.
:type method: str
:param url: The UR... | "Sign request parameters.\n\n :param consumer_secret: Consumer secret.\n :type consumer_secret: str\n :param access_token_secret: Access token secret.\n :type access_token_secret: str\n :param method: The method of this particular request.\n :type method: str\n :param ur... | 79 | false | litl/rauth | sign | 9,684 | |
LDU_FT/ahawker/ulid/from_uuid | LDU_FT | [
"<BEGIN>\n## `datetime`",
"Creates a :class:`~datetime.datetime` instance (assumes UTC) from the Unix time value of the timestamp\n with millisecond precision.",
" :return: Timestamp in datetime form.\n :rtype: :class:`~datetime.datetime`\n<END>",
"<BEGIN>\n## `new`",
"Create a new :cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_uuid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_uuid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create a new :class:`~ulid.ulid.ULID` instance from the given :class:`~uuid.UUID` value.
:param value: UUIDv4 value
:type value: :class:`~uuid.UUID`
:return: ULID from UUID value
:rtype: :class:`~ulid.ulid.ULID` | "Create a new :class:`~ulid.ulid.ULID` instance from the given :class:`~uuid.UUID` value.\n\n :param value: UUIDv4 value\n :type value: :class:`~uuid.UUID`\n :return: ULID from UUID value\n :rtype: :class:`~ulid.ulid.ULID`" | 72 | false | ahawker/ulid | from_uuid | 9,685 | |
LDU_FT/xhtml2pdf/xhtml2pdf/_getFragWords | LDU_FT | [
"<BEGIN>\n## `pisaParser`",
"- Parse HTML and get miniDOM\n - Extract CSS informations, add default CSS, parse CSS\n - Handle the document DOM itself and build reportlab story\n - Return Context object\n<END>",
"<BEGIN>\n## `splitIntoLines`",
"Split text into lines and calculate X positions. If we ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getFragWords API.
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 _getFragWords API.
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... | given a Parafrag list return a list of fragwords
[[size, (f00,w00), ..., (f0n,w0n)],....,[size, (fm0,wm0), ..., (f0n,wmn)]]
each pair f,w represents a style and some string
each sublist represents a word | "given a Parafrag list return a list of fragwords\n [[size, (f00,w00), ..., (f0n,w0n)],....,[size, (fm0,wm0), ..., (f0n,wmn)]]\n each pair f,w represents a style and some string\n each sublist represents a word" | 134 | false | xhtml2pdf/xhtml2pdf | _getFragWords | 9,686 | |
LDU_FT/johnnoone/json-spec/extract | LDU_FT | [
"<BEGIN>\n## `check`",
"Check if value exists into object.",
" :param doc: the document base\n :param pointer: the path to search in\n :param expected: the expected value\n :param raise_onerror: should raise on error?\n :return: boolean\n<END>",
"<BEGIN>\n## `add`",
"Add element to sequence, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API.
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 extract API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Extract member or element of obj according to pointer.
:param obj: the object source
:param pointer: the pointer
:type pointer: Pointer, str
:param bypass_ref: bypass JSON Reference event
:type bypass_ref: boolean | "Extract member or element of obj according to pointer.\n\n :param obj: the object source\n :param pointer: the pointer\n :type pointer: Pointer, str\n :param bypass_ref: bypass JSON Reference event\n :type bypass_ref: boolean" | 113 | false | johnnoone/json-spec | extract | 9,687 | |
LDU_FT/peerplays-network/python-peerplays/event_update_status | LDU_FT | [
"<BEGIN>\n## `listaccounts`",
"List accounts (for the connected network)\n<END>",
"<BEGIN>\n## `importaccount`",
"Import an account using an account password\n<END>",
"<BEGIN>\n## `eventgroups`",
"[bookie] List event groups for a sport",
" :param str sport: Sports id\n<END>",
"<BEGIN>\n## `even... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_update_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_update_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Update the status of an event. This needs to be **proposed**.
:param str event_id: Id of the event to update
:param str status: Event status
:param list scores: List of strings that represent the scores of a
match (defaults to [])
:param str account: (opt... | "Update the status of an event. This needs to be **proposed**.\n\n :param str event_id: Id of the event to update\n :param str status: Event status\n :param list scores: List of strings that represent the scores of a\n match (defaults to [])\n :param str accoun... | 124 | false | peerplays-network/python-peerplays | event_update_status | 9,688 | |
LDU_FT/arkottke/pysra/_calc_strain_max | LDU_FT | [
"<BEGIN>\n## `_calc_strain_ref`",
"Compute the reference strain using Equation (6).\n<END>",
"<BEGIN>\n## `_calc_mod_reduc`",
"Compute the shear modulus reduction using Equation (1).\n<END>",
"<BEGIN>\n## `_calc_damping`",
"Compute the damping ratio using Equation (16).\n<END>",
"<BEGIN>\n## `relative_e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_strain_max API.
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 _calc_strain_max API.
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 effective strain at the center of a layer. | "Compute the effective strain at the center of a layer." | 111 | false | arkottke/pysra | _calc_strain_max | 9,689 | |
LDU_FT/rootpy/rootpy/hist | LDU_FT | [
"<BEGIN>\n## `total`",
"Return the total yield and its associated statistical uncertainty.\n<END>",
"<BEGIN>\n## `sys_names`",
"Return a list of unique systematic names from OverallSys and HistoSys\n<END>",
"<BEGIN>\n## `iter_sys`",
"Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hist API.
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 hist API.
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... | Make a matplotlib hist plot from a ROOT histogram, stack or
list of histograms.
Parameters
----------
hists : Hist, list of Hist, HistStack
The histogram(s) to be plotted
stacked : bool, optional (default=True)
If True then stack the histograms with the first histogram on the
... | "Make a matplotlib hist plot from a ROOT histogram, stack or\n list of histograms.\n\n Parameters\n ----------\n\n hists : Hist, list of Hist, HistStack\n The histogram(s) to be plotted\n\n stacked : bool, optional (default=True)\n If True then stack the histograms with the first histogram ... | 878 | false | rootpy/rootpy | hist | 9,690 | |
LDU_FT/simonvh/genomepy/get_random_sequences | LDU_FT | [
"<BEGIN>\n## `register_provider`",
"Register method to keep list of providers.\n<END>",
"<BEGIN>\n## `tar_to_bigfile`",
"Convert tar of multiple FASTAs to one file.\n<END>",
"<BEGIN>\n## `download_genome`",
"Download a (gzipped) genome file to a specific directory",
" Parameters\n --------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_random_sequences 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_random_sequences API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return random genomic sequences.
Parameters
----------
n : int , optional
Number of sequences to return.
length : int , optional
Length of sequences to return.
chroms : list , optional
Return sequences only from these chromosomes.
m... | "Return random genomic sequences.\n\n Parameters\n ----------\n n : int , optional\n Number of sequences to return.\n\n length : int , optional\n Length of sequences to return.\n\n chroms : list , optional\n Return sequences only from these chromosomes... | 87 | false | simonvh/genomepy | get_random_sequences | 9,691 | |
LDU_FT/marcomusy/vtkplotter/alignProcrustes | LDU_FT | [
"<BEGIN>\n## `add_particle`",
"Adds a new particle with specified properties (in SI units)\n<END>",
"<BEGIN>\n## `simulate`",
"Runs the particle simulation. Simulates one time step, dt, of the particle motion.\n Calculates the force between each pair of particles and updates particles' motion accor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alignProcrustes API.
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 alignProcrustes API.
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 an ``Assembly`` of aligned source actors with
the `Procrustes` algorithm. The output ``Assembly`` is normalized in size.
`Procrustes` algorithm takes N set of points and aligns them in a least-squares sense
to their mutual mean. The algorithm is iterated until convergence,
as the mean must be re... | "Return an ``Assembly`` of aligned source actors with\n the `Procrustes` algorithm. The output ``Assembly`` is normalized in size.\n\n `Procrustes` algorithm takes N set of points and aligns them in a least-squares sense\n to their mutual mean. The algorithm is iterated until convergence,\n as the mean must... | 801 | false | marcomusy/vtkplotter | alignProcrustes | 9,692 | |
LDU_FT/SeabornGames/RequestClient/get | LDU_FT | [
"<BEGIN>\n## `reinstantiate_endpoints`",
"This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>",
"<BEGIN>\n## `_pre_process_call`",
"This is called by the method_decorator within... | 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... | :param offset: int of the offset to use
:param limit: int of max number of puzzles to return
:return: list of Transfer dict | ":param offset: int of the offset to use\n :param limit: int of max number of puzzles to return\n :return: list of Transfer dict" | 148 | false | SeabornGames/RequestClient | get | 9,693 | |
LDU_FT/TadLeonard/tfatool/post | LDU_FT | [
"<BEGIN>\n## `up_down_by_arrival`",
"Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
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 post API.
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... | Posts a `param_map` created with `config` to
the FlashAir config.cgi entrypoint | "Posts a `param_map` created with `config` to\n the FlashAir config.cgi entrypoint" | 34 | false | TadLeonard/tfatool | post | 9,694 | |
LDU_FT/StanfordVL/robosuite/_get_size | LDU_FT | [
"<BEGIN>\n## `clear_objects`",
"Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>",
"<BEGIN>\n## `staged_rewards`",
"Returns staged rewards b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Helper method for providing a size,
or a range to randomize from | "Helper method for providing a size,\n or a range to randomize from" | 354 | false | StanfordVL/robosuite | _get_size | 9,695 | |
LDU_FT/inveniosoftware-attic/invenio-utils/redirect_to_url | LDU_FT | [
"<BEGIN>\n## `get_callable_signature_as_string`",
"Return a string representing a callable.",
" It is executed as if it would have been declared on the prompt.",
" >>> def foo(arg1, arg2, arg3='val1', arg4='val2', *args, **argd):\n ... pass\n >>> get_callable_signature_as_string(foo)\n def ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redirect_to_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redirect_to_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Redirect current page to url.
@param req: request as received from apache
@param url: url to redirect to
@param redirection_type: what kind of redirection is required:
e.g.: apache.HTTP_MULTIPLE_CHOICES = 300
apache.HTTP_MOVED_PERMANENTLY = 301
apache.HTTP_MOVE... | "Redirect current page to url.\n @param req: request as received from apache\n @param url: url to redirect to\n @param redirection_type: what kind of redirection is required:\n e.g.: apache.HTTP_MULTIPLE_CHOICES = 300\n apache.HTTP_MOVED_PERMANENTLY = 301\n apache.HT... | 424 | false | inveniosoftware-attic/invenio-utils | redirect_to_url | 9,696 | |
LDU_FT/joke2k/faker/ipv4_public | LDU_FT | [
"<BEGIN>\n## `checksum`",
"Calculates the checksum char used for the 16th char.\n Author: Vincenzo Palazzo\n<END>",
"<BEGIN>\n## `binary`",
"Returns random binary blob.",
" Default blob size is 1 Mb.\n<END>",
"<BEGIN>\n## `md5`",
"Calculates the md5 hash of a given string\n :example 'cf... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipv4_public API.
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 ipv4_public API.
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... | Returns a public IPv4 excluding private blocks.
:param network: Network address
:param address_class: IPv4 address class (a, b, or c)
:returns: Public IPv4 | "Returns a public IPv4 excluding private blocks.\n\n :param network: Network address\n :param address_class: IPv4 address class (a, b, or c)\n :returns: Public IPv4" | 334 | false | joke2k/faker | ipv4_public | 9,697 | |
LDU_FT/sirrice/scorpionsql/get_vars | LDU_FT | [
"<BEGIN>\n## `expr_to_str`",
"construct SQL string from expression node\n<END>",
"<BEGIN>\n## `get_vars`",
"extract variables from expression node\n defined by tuple-pair: (_var_, [variable name])\n<END>",
"<BEGIN>\n## `recover`",
"recompute the actual value, then compare it against the truth\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | extract variables from expression node
defined by tuple-pair: (_var_, [variable name]) | "extract variables from expression node\n defined by tuple-pair: (_var_, [variable name])" | 13 | false | sirrice/scorpionsql | get_vars | 9,698 | |
LDU_FT/linode/linode_api4-python/image_create | LDU_FT | [
"<BEGIN>\n## `nodes`",
"This is a special derived_class relationship because NodeBalancerNode is the\n only api object that requires two parent_ids\n<END>",
"<BEGIN>\n## `load_ssl_data`",
"A convenience method that loads a cert and a key from files and sets them\n on this object. This can make ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Creates a new Image from a disk you own.
:param disk: The Disk to imagize.
:type disk: Disk or int
:param label: The label for the resulting Image (defaults to the disk's
label.
:type label: str
:param description: The description for the new Image.
... | "Creates a new Image from a disk you own.\n\n :param disk: The Disk to imagize.\n :type disk: Disk or int\n :param label: The label for the resulting Image (defaults to the disk's\n label.\n :type label: str\n :param description: The description for the new Image.... | 232 | false | linode/linode_api4-python | image_create | 9,699 | |
LDU_FT/nion-software/nionswift-io/is_imagej | LDU_FT | [
"<BEGIN>\n## `imagedatadict_to_ndarray`",
"Converts the ImageData dictionary, imdict, to an nd image.\n<END>",
"<BEGIN>\n## `ndarray_to_imagedatadict`",
"Convert the numpy array nparr into a suitable ImageList entry dictionary.\n Returns a dictionary with the appropriate Data, DataType, PixelDepth\n to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_imagej API.
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 is_imagej API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return ImageJ description if exists, else None. | "Return ImageJ description if exists, else None." | 438 | false | nion-software/nionswift-io | is_imagej | 9,700 | |
LDU_FT/numberly/appnexus-client/update_token | LDU_FT | [
"<BEGIN>\n## `extract_data`",
"Extract the AppNexus object or list of objects from the response\n<END>",
"<BEGIN>\n## `first`",
"Extract the first AppNexus object present in the response\n<END>",
"<BEGIN>\n## `get_page`",
"Get a page (100 elements) starting from `start_element`\n<END>",
"<BEGIN>\n## `si... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Request a new token and store it for future use | "Request a new token and store it for future use" | 18 | false | numberly/appnexus-client | update_token | 9,701 | |
LDU_FT/hazelcast/hazelcast-python-client/last_index_of | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds the specified item to this queue if there is available space.",
" :param item: (object), the specified item.\n :return: (bool), ``true`` if element is successfully added, ``false`` otherwise.\n<END>",
"<BEGIN>\n## `add_all`",
"Adds the elements in the specified colle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_index_of API.
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 last_index_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the last index of specified items's occurrences in this list. If specified item is not present in this
list, returns -1.
:param item: (object), the specified item to be searched for.
:return: (int), the last index of specified items's occurrences, -1 if item is not present in this list. | "Returns the last index of specified items's occurrences in this list. If specified item is not present in this\n list, returns -1.\n\n :param item: (object), the specified item to be searched for.\n :return: (int), the last index of specified items's occurrences, -1 if item is not present in this ... | 666 | false | hazelcast/hazelcast-python-client | last_index_of | 9,702 | |
LDU_FT/python-odin/odinweb/odinweb_node_formatter | LDU_FT | [
"<BEGIN>\n## `action`",
"Decorator to apply an action to a resource. An action is applied to a `detail` operation.\n<END>",
"<BEGIN>\n## `listing`",
"Decorator to configure an operation that returns a list of resources.\n<END>",
"<BEGIN>\n## `create`",
"Decorator to configure an operation that creates a r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the odinweb_node_formatter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the odinweb_node_formatter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Format a node to be consumable by the `UrlPath.parse`. | "Format a node to be consumable by the `UrlPath.parse`." | 139 | false | python-odin/odinweb | odinweb_node_formatter | 9,703 | |
LDU_FT/ownport/scrapy-dblite/delete | LDU_FT | [
"<BEGIN>\n## `copy`",
"copy items with optional fields transformation\n<END>",
"<BEGIN>\n## `_dict_factory`",
"factory for sqlite3 to return results as dict\n<END>",
"<BEGIN>\n## `_create_table`",
"create sqlite's table for storing simple dictionaries\n<END>",
"<BEGIN>\n## `get`",
"returns items selec... | 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 ... | delete dictionary(ies) in sqlite database
_all = True - delete all items | "delete dictionary(ies) in sqlite database\n\n _all = True - delete all items" | 16 | false | ownport/scrapy-dblite | delete | 9,704 | |
LDU_FT/LonamiWebs/Telethon/_update_offset | LDU_FT | [
"<BEGIN>\n## `collect`",
"Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>",
"<BEGIN>\n## `handler`",
"#full: Advises to read \"Accessing the full API\" in the docs.\n<END>",
"<BEGIN>\n## `handler`",
"#search query: Searches for \"query\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_offset API.
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 _update_offset API.
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... | After making the request, update its offset with the last message. | "After making the request, update its offset with the last message." | 1,037 | true | LonamiWebs/Telethon | _update_offset | 9,705 | |
LDU_FT/barryp/py-amqplib/basic_consume | LDU_FT | [
"<BEGIN>\n## `_textlist`",
"Returns a list of text strings contained within an element and its sub-elements.",
" Helpful for extracting text from prose-oriented XML (such as XHTML or DocBook).\n<END>",
"<BEGIN>\n## `_reindent`",
"Remove the existing indentation from each line of a chunk of\n text, s, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_consume API.
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 basic_consume API.
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... | start a queue consumer
This method asks the server to start a "consumer", which is a
transient request for messages from a specific queue.
Consumers last as long as the channel they were created on, or
until the client cancels them.
RULE:
The server SHOULD support ... | "start a queue consumer\n\n This method asks the server to start a \"consumer\", which is a\n transient request for messages from a specific queue.\n Consumers last as long as the channel they were created on, or\n until the client cancels them.\n\n RULE:\n\n The server SHO... | 449 | false | barryp/py-amqplib | basic_consume | 9,706 | |
LDU_FT/psd-tools/psd-tools/bbox | LDU_FT | [
"<BEGIN>\n## `open`",
"Open the smart object as binary IO.",
" :param external_dir: Path to the directory of the external file.",
" Example::",
" with layer.smart_object.open() as f:\n data = f.read()\n<END>",
"<BEGIN>\n## `data`",
"Embedded file content, or empty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox API.
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 bbox API.
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... | Bounding box of the live shape.
:return: :py:class:`~psd_tools.psd.descriptor.Descriptor` | "Bounding box of the live shape.\n\n :return: :py:class:`~psd_tools.psd.descriptor.Descriptor`" | 173 | false | psd-tools/psd-tools | bbox | 9,707 | |
LDU_FT/Chilipp/funcargparse/_parse2subparser_funcs | 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 _parse2subparser_funcs 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 _parse2subparser_funcs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Recursive function to parse arguments to chained parsers | "Recursive function to parse arguments to chained parsers" | 105 | false | Chilipp/funcargparse | _parse2subparser_funcs | 9,708 | |
LDU_FT/ioos/pyoos/_parse_data | LDU_FT | [
"<BEGIN>\n## `_parse_data`",
"Transforms raw HADS observations into a dict:\n station code -> [(variable, time, value), ...]",
" Takes into account the var filter (if set).\n<END>",
"<BEGIN>\n## `_parse_metadata`",
"Transforms raw HADS metadata into a dictionary (station code -> props)\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Transforms raw HADS observations into a dict:
station code -> [(variable, time, value), ...]
Takes into account the var filter (if set). | "Transforms raw HADS observations into a dict:\n station code -> [(variable, time, value), ...]\n\n Takes into account the var filter (if set)." | 42 | false | ioos/pyoos | _parse_data | 9,709 | |
LDU_FT/liminspace/dju-image/get_files_by_img_id | LDU_FT | [
"<BEGIN>\n## `image_get_format`",
"Return image format for file-object f. (jpeg, png, gif etc.)\n All formats: http://pillow.readthedocs.org/en/latest/handbook/image-file-formats.html\n Example:\n if image_get_format(request.FILES['image']) == 'jpeg':\n print 'Image is JPEG'",
" i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_by_img_id 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_files_by_img_id 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... | Шукає файли для img_id.
Повертає:
{
'main': 'relative path to main image',
'variants': {
'label': 'relative path to variant image by label',
...
}
}
Якщо check_hash=True, тоді файли з невірним хешем будуть ігноруватись.
Якщо файл не існує, тоді поверає... | "Шукає файли для img_id.\n Повертає:\n {\n 'main': 'relative path to main image',\n 'variants': {\n 'label': 'relative path to variant image by label',\n ...\n }\n }\n Якщо check_hash=True, тоді файли з невірним хешем будуть ігноруватись.\n Якщо файл не існує, т... | 36 | false | liminspace/dju-image | get_files_by_img_id | 9,710 | |
LDU_FT/Garee/pytodoist/get_reminders | LDU_FT | [
"<BEGIN>\n## `login`",
"Login to Todoist.",
" :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`",
" >>> from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reminders API.
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_reminders API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a list of the task's reminders.
>>> from pytodoist import todoist
>>> user = todoist.login('john.doe@gmail.com', 'password')
>>> project = user.get_project('PyTodoist')
>>> task = project.add_task('Install PyTodoist')
>>> task.add_date_reminder('email', '2015-12-01T09:00'... | "Return a list of the task's reminders.\n\n >>> from pytodoist import todoist\n >>> user = todoist.login('john.doe@gmail.com', 'password')\n >>> project = user.get_project('PyTodoist')\n >>> task = project.add_task('Install PyTodoist')\n >>> task.add_date_reminder('email', '2015-12-01... | 237 | false | Garee/pytodoist | get_reminders | 9,711 | |
LDU_FT/miguelgrinberg/Flask-SocketIO/send | LDU_FT | [
"<BEGIN>\n## `emit`",
"Emit a SocketIO event.",
" This function emits a SocketIO event to one or more connected clients. A\n JSON blob can be attached to the event as payload. This is a function that\n can only be called from a SocketIO event handler, as in obtains some\n information from the curren... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send a server-generated SocketIO message.
This function sends a simple SocketIO message to one or more connected
clients. The message can be a string or a JSON blob. This is a simpler
version of ``emit()``, which should be preferred. This function can be
used outside of a SocketIO event... | "Send a server-generated SocketIO message.\n\n This function sends a simple SocketIO message to one or more connected\n clients. The message can be a string or a JSON blob. This is a simpler\n version of ``emit()``, which should be preferred. This function can be\n used outside of a SocketIO... | 87 | false | miguelgrinberg/Flask-SocketIO | send | 9,712 | |
LDU_FT/CI-WATER/gsshapy/check_watershed_boundary_geometry | LDU_FT | [
"<BEGIN>\n## `_read`",
"Generic Time Series Read from File Method\n<END>",
"<BEGIN>\n## `_write`",
"Generic Time Series Write to File Method\n<END>",
"<BEGIN>\n## `_createTimeSeriesObjects`",
"Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>",
"<BEGIN>\n## `_read`",
"Generic Output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_watershed_boundary_geometry 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 check_watershed_boundary_geometry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Make sure that there are no random artifacts in the file. | "Make sure that there are no random artifacts in the file." | 537 | false | CI-WATER/gsshapy | check_watershed_boundary_geometry | 9,713 | |
LDU_FT/uuazed/numerapi/get_payments | LDU_FT | [
"<BEGIN>\n## `_unzip_file`",
"unzips file located at src_path into destination_path\n<END>",
"<BEGIN>\n## `get_dataset_url`",
"Fetch url of the current dataset.",
" Args:\n tournament (int, optional): ID of the tournament, defaults to 1",
" Returns:\n str: url of the cu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_payments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_payments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get all your payments.
Returns:
list of dicts: payments
For each payout in the list, a dict contains the following items:
* nmrAmount (`decimal.Decimal`)
* usdAmount (`decimal.Decimal`)
* tournament (`str`)
* round (`dict... | "Get all your payments.\n\n Returns:\n list of dicts: payments\n\n For each payout in the list, a dict contains the following items:\n\n * nmrAmount (`decimal.Decimal`)\n * usdAmount (`decimal.Decimal`)\n * tournament (`str`)\n * r... | 163 | false | uuazed/numerapi | get_payments | 9,714 | |
LDU_FT/ksbg/sparklanes/_package_and_submit | LDU_FT | [
"<BEGIN>\n## `build_lane_from_yaml`",
"Builds a `sparklanes.Lane` object from a YAML definition file.",
" Parameters\n ----------\n path: str\n Path to the YAML definition file",
" Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _package_and_submit 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 _package_and_submit 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... | Packages and submits a job, which is defined in a YAML file, to Spark.
Parameters
----------
args (List): Command-line arguments | "Packages and submits a job, which is defined in a YAML file, to Spark.\n\n Parameters\n ----------\n args (List): Command-line arguments" | 62 | false | ksbg/sparklanes | _package_and_submit | 9,715 | |
LDU_FT/xflr6/gsheets/uniqued | LDU_FT | [
"<BEGIN>\n## `write_csv`",
"Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>",
"<BEGIN>\n## `write_dataframe`",
"Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>",
"<BEGIN>\n## `from_string`",
"Return a new SheetUrl instance from p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uniqued API.
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 uniqued API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return unique list of ``iterable`` items preserving order.
>>> uniqued('spameggs')
['s', 'p', 'a', 'm', 'e', 'g'] | "Return unique list of ``iterable`` items preserving order.\n\n >>> uniqued('spameggs')\n ['s', 'p', 'a', 'm', 'e', 'g']" | 93 | false | xflr6/gsheets | uniqued | 9,716 | |
LDU_FT/jobovy/galpy/_add_axislabels | LDU_FT | [
"<BEGIN>\n## `_evaluate`",
"NAME:\n _evaluate\n PURPOSE:\n evaluate the potential at (R,z)\n INPUT:\n R - Cylindrical Galactocentric radius\n z - vertical height\n phi - azimuth\n t - time\n OUTPUT:\n potential at (R,z)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_axislabels API.
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 _add_axislabels API.
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... | NAME:
_add_axislabels
PURPOSE:
add axis labels to the current figure
INPUT:
xlabel - (raw string!) x-axis label, LaTeX math mode, no $s needed
ylabel - (raw string!) y-axis label, LaTeX math mode, no $s needed
OUTPUT:
(none; works on the current axes)
HISTORY:... | "NAME:\n\n _add_axislabels\n\n PURPOSE:\n\n add axis labels to the current figure\n\n INPUT:\n\n xlabel - (raw string!) x-axis label, LaTeX math mode, no $s needed\n\n ylabel - (raw string!) y-axis label, LaTeX math mode, no $s needed\n\n OUTPUT:\n\n (none; works on the current ax... | 5,004 | true | jobovy/galpy | _add_axislabels | 9,717 | |
LDU_FT/codeinthehole/django-cacheback/cacheback | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the data for this function (using the cache if possible).",
" This method is not intended to be overidden\n<END>",
"<BEGIN>\n## `invalidate`",
"Mark a cached item invalid and trigger an asynchronous\n job to refresh the cache\n<END>",
"<BEGIN>\n## `raw_get`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cacheback API.
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 cacheback API.
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... | Decorate function to cache its return value.
:lifetime: How long to cache items for
:fetch_on_miss: Whether to perform a synchronous fetch when no cached
result is found
:cache_alias: The Django cache alias to store the result into.
:job_class: The class to use for running the cache... | "Decorate function to cache its return value.\n\n :lifetime: How long to cache items for\n :fetch_on_miss: Whether to perform a synchronous fetch when no cached\n result is found\n :cache_alias: The Django cache alias to store the result into.\n :job_class: The class to use for running th... | 32 | false | codeinthehole/django-cacheback | cacheback | 9,718 | |
LDU_FT/peercoin/peercoin_rpc/listtransactions | LDU_FT | [
"<BEGIN>\n## `getbalance`",
"retrieve balance, If [account] is specified, returns the balance in the account.\n<END>",
"<BEGIN>\n## `sendtoaddress`",
"send ammount to address, with optional comment. Returns txid.\n sendtoaddress(ADDRESS, AMMOUNT, COMMENT)\n<END>",
"<BEGIN>\n## `sendfrom`",
"send ou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listtransactions API.
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 listtransactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | list all transactions associated with this wallet | "list all transactions associated with this wallet" | 14 | false | peercoin/peercoin_rpc | listtransactions | 9,719 | |
LDU_FT/eddyxu/cpp-coveralls/is_source_file | LDU_FT | [
"<BEGIN>\n## `is_source_file`",
"Returns true if it is a C++ source file.\n<END>",
"<BEGIN>\n## `exclude_paths`",
"Returns the absolute paths for excluded path.\n<END>",
"<BEGIN>\n## `is_excluded_path`",
"Returns true if the filepath is under the one of the exclude path.\n<END>",
"<BEGIN>\n## `filter_di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_source_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_source_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns true if it is a C++ source file. | "Returns true if it is a C++ source file." | 18 | false | eddyxu/cpp-coveralls | is_source_file | 9,720 | |
LDU_FT/datosgobar/textar/get_similar | LDU_FT | [
"<BEGIN>\n## `make_classifier`",
"Entrenar un clasificador SVM sobre los textos cargados.",
" Crea un clasificador que se guarda en el objeto bajo el nombre `name`.",
" Args:\n name (str): Nombre para el clasidicador.\n ids (list): Se espera una lista de N ids de textos ya ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_similar API.
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_similar API.
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... | Devuelve textos similares al ejemplo dentro de los textos entrenados.
Nota:
Usa la distancia de coseno del vector de features TF-IDF
Args:
example (str): Se espera un id de texto o un texto a partir del
cual se buscaran otros textos similares.
max_si... | "Devuelve textos similares al ejemplo dentro de los textos entrenados.\n\n Nota:\n Usa la distancia de coseno del vector de features TF-IDF\n\n Args:\n example (str): Se espera un id de texto o un texto a partir del\n cual se buscaran otros textos similares.\n ... | 24 | false | datosgobar/textar | get_similar | 9,721 | |
LDU_FT/thoughtworksarts/EmoPy/predict | LDU_FT | [
"<BEGIN>\n## `load_data`",
"Loads image and label data from specified csv file path.",
" :return: Dataset object containing image and label data.\n<END>",
"<BEGIN>\n## `_load_dataset`",
"Loads Dataset object with images, labels, and other data.",
" :param images: numpy array of image data\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Predicts discrete emotion for given image.
:param images: image file (jpg or png format) | "Predicts discrete emotion for given image.\n\n :param images: image file (jpg or png format)" | 53 | false | thoughtworksarts/EmoPy | predict | 9,722 | |
LDU_FT/scoutapp/scout_apm_python/set | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds context to the currently executing request.",
" :key: Any String identifying the request context.\n Example: \"user_ip\", \"plan\", \"alert_count\"\n :value: Any json-serializable type.\n Example: \"1.1.1.1\", \"free\", 100\n :returns: no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Sets a configuration value for the Scout agent. Values set here will
not override values set in ENV. | "Sets a configuration value for the Scout agent. Values set here will\n not override values set in ENV." | 25 | false | scoutapp/scout_apm_python | set | 9,723 | |
LDU_FT/leonidessaguisagjr/unicodeutil/_uax44lm2transform | LDU_FT | [
"<BEGIN>\n## `preservesurrogates`",
"Function for splitting a string into a list of characters, preserving surrogate pairs.",
" In python 2, unicode characters above 0x10000 are stored as surrogate pairs. For example, the Unicode character\n u\"\\U0001e900\" is stored as the surrogate pair u\"\\ud83a\\ud... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _uax44lm2transform 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 _uax44lm2transform 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... | Helper function for taking a string (i.e. a Unicode character name) and transforming it via UAX44-LM2 loose matching
rule. For more information, see <https://www.unicode.org/reports/tr44/#UAX44-LM2>.
The rule is defined as follows:
"UAX44-LM2. Ignore case, whitespace, underscore ('_'), and all medial hyp... | "Helper function for taking a string (i.e. a Unicode character name) and transforming it via UAX44-LM2 loose matching\n rule. For more information, see <https://www.unicode.org/reports/tr44/#UAX44-LM2>.\n\n The rule is defined as follows:\n\n \"UAX44-LM2. Ignore case, whitespace, underscore ('_'), and all med... | 86 | false | leonidessaguisagjr/unicodeutil | _uax44lm2transform | 9,724 | |
LDU_FT/idlesign/steampak/activate | LDU_FT | [
"<BEGIN>\n## `get_filter_cardborder`",
"Returns game cards URL filter for a given cardborder\n type (TAG_CARDBORDER_NORMAL / TAG_CARDBORDER_FOIL).",
" To be used in URL_GAMECARDS.",
" :param str|unicode cardborder_type:\n :rtype: str|unicode\n<END>",
"<BEGIN>\n## `install_dir`",
"Returns appli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate API.
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 activate API.
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... | Activates overlay with browser, optionally opened at a given page.
:param str page: Overlay page alias (see OVERLAY_PAGE_*)
or a custom URL. | "Activates overlay with browser, optionally opened at a given page.\n\n :param str page: Overlay page alias (see OVERLAY_PAGE_*)\n or a custom URL." | 72 | false | idlesign/steampak | activate | 9,725 | |
LDU_FT/onicagroup/runway/generate_sample_sls_module | LDU_FT | [
"<BEGIN>\n## `fix_hyphen_commands`",
"Update options to match their module names with underscores.\n<END>",
"<BEGIN>\n## `calculate_hash_of_files`",
"Return a hash of all of the given files at the given root.",
" Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_sample_sls_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_sample_sls_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Generate skeleton Serverless sample module. | "Generate skeleton Serverless sample module." | 130 | false | onicagroup/runway | generate_sample_sls_module | 9,726 | |
LDU_FT/cthoyt/onto2nx/bestLabel | LDU_FT | [
"<BEGIN>\n## `parse_owl_rdf`",
"Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph",
" :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>",
"<BEGIN>\n## `get_or_create_home_repo`",
"Check to make... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bestLabel API.
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 bestLabel API.
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... | facility for extrating the best available label for an entity
..This checks RFDS.label, SKOS.prefLabel and finally the qname local component | "facility for extrating the best available label for an entity\n\n ..This checks RFDS.label, SKOS.prefLabel and finally the qname local component" | 102 | false | cthoyt/onto2nx | bestLabel | 9,727 | |
LDU_FT/rushter/heamy/to_csr | LDU_FT | [
"<BEGIN>\n## `concat`",
"Concatenate a sequence of pandas or numpy objects into one entity.\n<END>",
"<BEGIN>\n## `reshape_1d`",
"If parameter is 1D row vector then convert it into 2D matrix.\n<END>",
"<BEGIN>\n## `idx`",
"Universal indexing for numpy and pandas objects.\n<END>",
"<BEGIN>\n## `xgb_progr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_csr API.
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_csr API.
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 ... | Convert Dataset to scipy's Compressed Sparse Row matrix. | "Convert Dataset to scipy's Compressed Sparse Row matrix." | 91 | false | rushter/heamy | to_csr | 9,728 | |
LDU_FT/mapnik/Cascadenik/get_text_rule_groups | LDU_FT | [
"<BEGIN>\n## `xindexes`",
"Generate list of possible indexes into a list of slots.",
" Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_rule_groups 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_text_rule_groups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a list of declarations, return a list of output.Rule objects. | "Given a list of declarations, return a list of output.Rule objects." | 123 | false | mapnik/Cascadenik | get_text_rule_groups | 9,729 | |
LDU_FT/dmcc/PyStanfordDependencies/renumber | LDU_FT | [
"<BEGIN>\n## `convert_trees`",
"Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.",
" Cu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renumber API.
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 renumber API.
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... | Destructively renumber the indices based on the actual tokens
(e.g., if there are gaps between token indices, this will remove
them). Old Token objects will still exist, so you'll need to
update your references. | "Destructively renumber the indices based on the actual tokens\n (e.g., if there are gaps between token indices, this will remove\n them). Old Token objects will still exist, so you'll need to\n update your references." | 56 | false | dmcc/PyStanfordDependencies | renumber | 9,730 | |
LDU_FT/mathandy/svgpathtools/joins_smoothly_with | LDU_FT | [
"<BEGIN>\n## `big_bounding_box`",
"Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>",
"<BEGIN>\n## `disvg`",
"Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the joins_smoothly_with API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the joins_smoothly_with API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Checks if this segment joins smoothly with previous segment. By
default, this only checks that this segment starts moving (at t=0) in
the same direction (and from the same positive) as previous stopped
moving (at t=1). To check if the tangent magnitudes also match, set
wrt_parameteriza... | "Checks if this segment joins smoothly with previous segment. By\n default, this only checks that this segment starts moving (at t=0) in\n the same direction (and from the same positive) as previous stopped\n moving (at t=1). To check if the tangent magnitudes also match, set\n wrt_paramet... | 252 | false | mathandy/svgpathtools | joins_smoothly_with | 9,731 | |
LDU_FT/jbeluch/xbmcswift2/setup_options | LDU_FT | [
"<BEGIN>\n## `display_listitems`",
"Displays a list of items along with the index to enable a user\n to select an item.\n<END>",
"<BEGIN>\n## `display_video`",
"Prints a message for a playing video and displays the parent\n listitem.\n<END>",
"<BEGIN>\n## `get_user_choice`",
"Returns the selected it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Takes any actions necessary based on command line options | "Takes any actions necessary based on command line options" | 164 | false | jbeluch/xbmcswift2 | setup_options | 9,732 | |
LDU_FT/facelessuser/wcmatch/consume_path_sep | LDU_FT | [
"<BEGIN>\n## `_compile_wildcard`",
"Compile or format the wildcard inclusion/exclusion pattern.\n<END>",
"<BEGIN>\n## `_valid_folder`",
"Return whether a folder can be searched.\n<END>",
"<BEGIN>\n## `get_case`",
"Parse flags for case sensitivity settings.\n<END>",
"<BEGIN>\n## `_fs_match`",
"Match pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_path_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_path_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 ... | Consume any consecutive path separators are they count as one. | "Consume any consecutive path separators are they count as one." | 44 | false | facelessuser/wcmatch | consume_path_sep | 9,733 | |
LDU_FT/wrboyce/telegrambot/send_photo | LDU_FT | [
"<BEGIN>\n## `from_api`",
"Parses a payload from the API, guided by `_api_attrs`\n<END>",
"<BEGIN>\n## `api_method`",
"Returns the api method to `send` the current API Object type\n<END>",
"<BEGIN>\n## `api_payload`",
"Generates a payload ready for submission to the API, guided by `_api_payload`\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_photo API.
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 send_photo API.
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... | Use this method to send photos. On success, the sent Message is returned. | "Use this method to send photos. On success, the sent Message is returned." | 34 | false | wrboyce/telegrambot | send_photo | 9,734 | |
LDU_FT/shawnbot/py-organ/organize | LDU_FT | [
"<BEGIN>\n## `templategetter`",
"This is a dirty little template function generator that turns single-brace\n Mustache-style template strings into functions that interpolate dict keys:",
" >>> get_name = templategetter(\"{first} {last}\")\n >>> get_name({'first': 'Shawn', 'last': 'Allen'})\n 'Shawn ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the organize API.
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 organize API.
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... | Iterate over a collection and group its values by the provided key
function. If the key is not callable (a function), then we wrap it in
templategetter(), so that you can simply do:
>>> organize([{'foo': 1}, {'foo': 2}, {'foo': 1}], "{foo}")
{'1': [{'foo': 1}, {'foo': 1}], '2': [{'foo': 2}]} | "Iterate over a collection and group its values by the provided key\n function. If the key is not callable (a function), then we wrap it in\n templategetter(), so that you can simply do:\n\n >>> organize([{'foo': 1}, {'foo': 2}, {'foo': 1}], \"{foo}\")\n {'1': [{'foo': 1}, {'foo': 1}], '2': [{'foo': 2}]}" | 15 | false | shawnbot/py-organ | organize | 9,735 | |
LDU_FT/juju-solutions/charms.reactive/get_local | LDU_FT | [
"<BEGIN>\n## `endpoint_from_name`",
"The object used for interacting with the named relations, or None.\n<END>",
"<BEGIN>\n## `endpoint_from_flag`",
"The object used for interacting with relations tied to a flag, or None.\n<END>",
"<BEGIN>\n## `relation_factory`",
"Get the RelationFactory for the given re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local API.
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_local API.
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... | Retrieve some data previously set via :meth:`set_local` for this conversation. | "Retrieve some data previously set via :meth:`set_local` for this conversation." | 223 | false | juju-solutions/charms.reactive | get_local | 9,736 | |
LDU_FT/OpenGov/python_data_wrap/_dict_set | LDU_FT | [
"<BEGIN>\n## `read`",
"Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.",
" TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | These allow for direct access to the dictionary holding
the set under a different naming convention (to prevent
dictionary like syntax from working on external interface). | "These allow for direct access to the dictionary holding\r\n the set under a different naming convention (to prevent\r\n dictionary like syntax from working on external interface)." | 94 | false | OpenGov/python_data_wrap | _dict_set | 9,737 | |
LDU_FT/spencerahill/aospy/_permuted_dicts_of_specs | LDU_FT | [
"<BEGIN>\n## `_preprocess_and_rename_grid_attrs`",
"Call a custom preprocessing method first then rename grid attrs.",
" This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _permuted_dicts_of_specs 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 _permuted_dicts_of_specs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Create {name: value} dict, one each for every permutation.
Each permutation becomes a dictionary, with the keys being the attr names
and the values being the corresponding value for that permutation. These
dicts can then be directly passed to the Calc constructor. | "Create {name: value} dict, one each for every permutation.\n\n Each permutation becomes a dictionary, with the keys being the attr names\n and the values being the corresponding value for that permutation. These\n dicts can then be directly passed to the Calc constructor." | 323 | false | spencerahill/aospy | _permuted_dicts_of_specs | 9,738 | |
LDU_FT/joeferraro/mm/generateObject | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>",
"<BEGIN>\n## `get_meta_type_by_dir`",
"> quick and dirty fix for users expe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generateObject API.
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 generateObject API.
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... | Generate a Salesforce object, such as a Lead or Contact | "Generate a Salesforce object, such as a Lead or Contact" | 71 | false | joeferraro/mm | generateObject | 9,739 | |
LDU_FT/johntruckenbrodt/spatialist/bbox | LDU_FT | [
"<BEGIN>\n## `hdr`",
"write ENVI header files",
" Parameters\n ----------\n data: str or dict\n the file or dictionary to get the info from\n filename: str\n the HDR file to write",
" Returns\n -------\n<END>",
"<BEGIN>\n## `__hdr2dict`",
"read a HDR file into a dictionary\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bbox API.
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 bbox API.
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 bounding box from the extent of the Vector object
Parameters
----------
outname: str or None
the name of the vector file to be written; if None, a Vector object is returned
format: str
the name of the file format to write
overwrite: bool
... | "create a bounding box from the extent of the Vector object\n\n Parameters\n ----------\n outname: str or None\n the name of the vector file to be written; if None, a Vector object is returned\n format: str\n the name of the file format to write\n overwrite: bool... | 227 | false | johntruckenbrodt/spatialist | bbox | 9,740 | |
LDU_FT/hannorein/rebound/particles_ascii | LDU_FT | [
"<BEGIN>\n## `add_outer_solar_system`",
"Add the planet of the outer Solar System as a test problem.\n Data taken from NASA Horizons.\n<END>",
"<BEGIN>\n## `OrbitPlot`",
"Convenience function for plotting instantaneous orbits.",
" Parameters\n ----------\n slices : bool, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the particles_ascii API.
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 particles_ascii API.
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 an ASCII string with all particles' masses, radii, positions and velocities.
Parameters
----------
prec : int, optional
Number of digits after decimal point. Default 8. | "Returns an ASCII string with all particles' masses, radii, positions and velocities.\n\n Parameters\n ----------\n prec : int, optional\n Number of digits after decimal point. Default 8." | 209 | false | hannorein/rebound | particles_ascii | 9,741 | |
LDU_FT/nickoala/telepot/make_event_data | LDU_FT | [
"<BEGIN>\n## `answer`",
"Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_event_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_event_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Marshall ``flavor`` and ``data`` into a standard event. | "Marshall ``flavor`` and ``data`` into a standard event." | 312 | false | nickoala/telepot | make_event_data | 9,742 | |
LDU_FT/gbiggs/rtsprofile/parse_yaml | LDU_FT | [
"<BEGIN>\n## `parse_xml_node`",
"Parse an xml.dom Node object representing a message sending object\n into this object.\n<END>",
"<BEGIN>\n## `parse_yaml`",
"Parse a YAML speficication of a message sending object into this\n object.\n<END>",
"<BEGIN>\n## `save_xml`",
"Save this message_sendi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_yaml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_yaml API.
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 a YAML specification of a preceding condition into this
object. | "Parse a YAML specification of a preceding condition into this\n object." | 166 | false | gbiggs/rtsprofile | parse_yaml | 9,743 | |
LDU_FT/sorgerlab/indra/get_attributes | LDU_FT | [
"<BEGIN>\n## `group_and_sort_statements`",
"Group statements by type and arguments, and sort by prevalence.",
" Parameters\n ----------\n stmt_list : list[Statement]\n A list of INDRA statements.\n ev_totals : dict{int: int}\n A dictionary, keyed by statement hash (shallow) with counts... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attributes API.
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_attributes API.
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 the attributes pointing to a given ID in a given aspect. | "Return the attributes pointing to a given ID in a given aspect." | 2,493 | true | sorgerlab/indra | get_attributes | 9,744 | |
LDU_FT/google/mobly/create_dir | LDU_FT | [
"<BEGIN>\n## `_parse_logline_timestamp`",
"Parses a logline timestamp into a tuple.",
" Args:\n t: Timestamp in logline format.",
" Returns:\n An iterable of date and time elements in the order of month, day, hour,\n minute, second, microsecond.\n<END>",
"<BEGIN>\n## `logline_time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Creates a directory if it does not exist already.
Args:
path: The path of the directory to create. | "Creates a directory if it does not exist already.\n\n Args:\n path: The path of the directory to create." | 593 | false | google/mobly | create_dir | 9,745 | |
LDU_FT/openearth/mmi-python/key_occurrence | LDU_FT | [
"<BEGIN>\n## `key_occurrence`",
"Return a dict containing the value of the provided key and its uuid as\n value.\n<END>",
"<BEGIN>\n## `zmq_address`",
"Return a ZeroMQ address to the module with the provided key.\n<END>",
"<BEGIN>\n## `send_array`",
"send a numpy array with metadata over zmq",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_occurrence API.
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 key_occurrence API.
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 dict containing the value of the provided key and its uuid as
value. | "Return a dict containing the value of the provided key and its uuid as\n value." | 30 | false | openearth/mmi-python | key_occurrence | 9,746 | |
LDU_FT/ethereum/pyrlp/is_sequence | LDU_FT | [
"<BEGIN>\n## `decode_lazy`",
"Decode an RLP encoded object in a lazy fashion.",
" If the encoded object is a bytestring, this function acts similar to\n :func:`rlp.decode`. If it is a list however, a :class:`LazyList` is\n returned instead. This object will decode the string lazily, avoiding\n both ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_sequence API.
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 is_sequence API.
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... | Check if `obj` is a sequence, but not a string or bytes. | "Check if `obj` is a sequence, but not a string or bytes." | 49 | false | ethereum/pyrlp | is_sequence | 9,747 | |
LDU_FT/MozillaSecurity/laniakea/attach_volume_to_device | LDU_FT | [
"<BEGIN>\n## `list_tags`",
"List all used macros within a UserData script.",
" :param userdata: The UserData script.\n :type userdata: str\n<END>",
"<BEGIN>\n## `handle_tags`",
"Insert macro values or auto export variables in UserData scripts.",
" :param userdata: The UserData script.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_volume_to_device 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 attach_volume_to_device API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Attaches the created Volume to a Device. | "Attaches the created Volume to a Device." | 136 | false | MozillaSecurity/laniakea | attach_volume_to_device | 9,748 | |
LDU_FT/LettError/MutatorMath/getInstance | LDU_FT | [
"<BEGIN>\n## `makeUnicodeMapFromSources`",
"Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getInstance API.
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 getInstance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Calculate the delta at aLocation.
* aLocation: a Location object, expected to be in bent space
* axisOnly:
* True: calculate an instance only with the on-axis masters.
* False: calculate an instance with on-axis and off-axis masters.
* getFa... | "Calculate the delta at aLocation.\n * aLocation: a Location object, expected to be in bent space\n * axisOnly:\n * True: calculate an instance only with the on-axis masters.\n * False: calculate an instance with on-axis and off-axis masters.\n * ... | 169 | false | LettError/MutatorMath | getInstance | 9,749 | |
LDU_FT/ralphje/imagemounter/mount | LDU_FT | [
"<BEGIN>\n## `_get_mount_methods`",
"Finds which mount methods are suitable for the specified disk type. Returns a list of all suitable mount\n methods.\n<END>",
"<BEGIN>\n## `mount`",
"Mounts the base image on a temporary location using the mount method stored in :attr:`method`. If mounting\n w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mount API.
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 mount API.
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... | Based on the file system type as determined by :func:`determine_fs_type`, the proper mount command is executed
for this volume. The volume is mounted in a temporary path (or a pretty path if :attr:`pretty` is enabled) in
the mountpoint as specified by :attr:`mountpoint`.
If the file system type... | "Based on the file system type as determined by :func:`determine_fs_type`, the proper mount command is executed\n for this volume. The volume is mounted in a temporary path (or a pretty path if :attr:`pretty` is enabled) in\n the mountpoint as specified by :attr:`mountpoint`.\n\n If the file system... | 225 | false | ralphje/imagemounter | mount | 9,750 | |
LDU_FT/zeaphoo/reston/get_instructions | LDU_FT | [
"<BEGIN>\n## `get_access_flags_string`",
"Transform an access flags to the corresponding string",
" :param value: the value of the access flags\n :type value: int",
" :rtype: string\n<END>",
"<BEGIN>\n## `get_shorty_idx_value`",
"Return the string associated to the shorty_idx",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instructions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instructions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | :param cm: a ClassManager object
:type cm: :class:`ClassManager` object
:param size: the total size of the buffer
:type size: int
:param insn: a raw buffer where are the instructions
:type insn: string
:param idx: a start address in the buffer
... | ":param cm: a ClassManager object\n :type cm: :class:`ClassManager` object\n :param size: the total size of the buffer\n :type size: int\n :param insn: a raw buffer where are the instructions\n :type insn: string\n :param idx: a start address in the buff... | 152 | false | zeaphoo/reston | get_instructions | 9,751 | |
LDU_FT/espressif/esptool/double | LDU_FT | [
"<BEGIN>\n## `decrypt`",
"Decrypt a block of cipher text using the AES block cipher.\n<END>",
"<BEGIN>\n## `increment`",
"Increment the counter (overflow rolls back to 0).\n<END>",
"<BEGIN>\n## `summary`",
"Print a human-readable summary of efuse contents\n<END>",
"<BEGIN>\n## `write_efuses`",
"Write ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the double API.
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 double API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Return a new point that is twice the old. | "Return a new point that is twice the old." | 199 | false | espressif/esptool | double | 9,752 | |
LDU_FT/capless/warrant/logout | LDU_FT | [
"<BEGIN>\n## `dict_to_cognito`",
":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>",
"<BEGIN>\n## `snake_to_camel`",
":param snake_str: string\n :return: string converted from a s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API.
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 logout API.
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 ... | Logs the user out of all clients and removes the expires_in,
expires_datetime, id_token, refresh_token, access_token, and token_type
attributes
:return: | "Logs the user out of all clients and removes the expires_in,\n expires_datetime, id_token, refresh_token, access_token, and token_type\n attributes\n :return:" | 61 | false | capless/warrant | logout | 9,753 | |
LDU_FT/alvations/pywsd/get_answers | LDU_FT | [
"<BEGIN>\n## `similarity_by_path`",
"Returns maximum path similarity between two senses.",
" :param sense1: A synset.\n :param sense2: A synset.\n :param option: String, one of ('path', 'wup', 'lch').\n :return: A float, similarity measurement.\n<END>",
"<BEGIN>\n## `similarity_by_infocontent`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_answers API.
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_answers API.
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... | Returns a {(key,value), ...} dictionary of {(instance_id,Answer),...)}
>>> coarse_wsd = SemEval2007_Coarse_WSD()
>>> inst2ans = coarse_wsd.get_answers()
>>> for inst in inst2ans:
... print inst, inst2ans[inst
... break | "Returns a {(key,value), ...} dictionary of {(instance_id,Answer),...)}\n >>> coarse_wsd = SemEval2007_Coarse_WSD()\n >>> inst2ans = coarse_wsd.get_answers()\n >>> for inst in inst2ans:\n ... print inst, inst2ans[inst\n ... break" | 83 | false | alvations/pywsd | get_answers | 9,754 | |
LDU_FT/nalourie/django-macros/do_macro_kwarg | LDU_FT | [
"<BEGIN>\n## `do_macro`",
"the function taking the parsed tag and returning\n a DefineMacroNode object.\n<END>",
"<BEGIN>\n## `do_loadmacros`",
"The function taking a parsed tag and returning\n a LoadMacrosNode object, while also loading the macros\n into the page.\n<END>",
"<BEGIN>\n## `parse_macr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_macro_kwarg API.
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 do_macro_kwarg API.
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... | Function taking a parsed template tag
to a MacroKwargNode. | "Function taking a parsed template tag\n to a MacroKwargNode." | 14 | false | nalourie/django-macros | do_macro_kwarg | 9,755 | |
LDU_FT/openstack/swauth/handle_delete_account | LDU_FT | [
"<BEGIN>\n## `filter_factory`",
"Returns a WSGI filter app for use with paste.deploy.\n<END>",
"<BEGIN>\n## `make_pre_authed_request`",
"Nearly the same as swift.common.wsgi.make_pre_authed_request\n except that this also always sets the 'swift.source' and user\n agent.",
" Newer Swift ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_delete_account API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_delete_account API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Handles the DELETE v2/<account> call for removing an account from the
auth system. Can only be called by a .reseller_admin.
:param req: The swob.Request to process.
:returns: swob.Response, 2xx on success. | "Handles the DELETE v2/<account> call for removing an account from the\n auth system. Can only be called by a .reseller_admin.\n\n :param req: The swob.Request to process.\n :returns: swob.Response, 2xx on success." | 133 | false | openstack/swauth | handle_delete_account | 9,756 | |
LDU_FT/CivicSpleen/ckcache/list | LDU_FT | [
"<BEGIN>\n## `put`",
"Copy a file to the repository",
" Args:\n source: Absolute path to the source file, or a file-like object\n rel_path: path relative to the root of the repository\n<END>",
"<BEGIN>\n## `put_stream`",
"return a file object to write into the cache. The caller\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
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 list API.
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... | Get a list of all of bundle files in the cache. Does not return partition files | "Get a list of all of bundle files in the cache. Does not return partition files" | 70 | false | CivicSpleen/ckcache | list | 9,757 | |
LDU_FT/openxc/openxc-python/_store_timestamp | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>",
"<BEGIN>\n## `add_source`",
"Add a vehicle data source to the instance.",
" The Vehicle instance will be set as the callback of the source, and the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _store_timestamp API.
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 _store_timestamp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | If not already saved, cache the first timestamp in the active trace
file on the instance. | "If not already saved, cache the first timestamp in the active trace\n file on the instance." | 94 | false | openxc/openxc-python | _store_timestamp | 9,758 | |
LDU_FT/cmutel/constructive_geometries/has_gis | LDU_FT | [
"<BEGIN>\n## `has_gis`",
"Skip function execution if there are no presamples\n<END>",
"<BEGIN>\n## `sha256`",
"Generate SHA 256 hash for file at `filepath`\n<END>",
"<BEGIN>\n## `check_data`",
"Check that definitions file is present, and that faces file is readable.\n<END>",
"<BEGIN>\n## `load_definitio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_gis API.
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 has_gis API.
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... | Skip function execution if there are no presamples | "Skip function execution if there are no presamples" | 55 | false | cmutel/constructive_geometries | has_gis | 9,759 | |
LDU_FT/huntrar/scrape/page_crawled | LDU_FT | [
"<BEGIN>\n## `write_files`",
"Write scraped or local file(s) in desired format.",
" Keyword arguments:\n args -- program arguments (dict)\n infilenames -- names of user-inputted and/or downloaded files (list)\n outfilename -- name of output file (str)",
" Remove PART(#).html files after convers... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page_crawled API.
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 page_crawled API.
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 page has been crawled by hashing its text content.
Add new pages to the page cache.
Return whether page was found in cache. | "Check if page has been crawled by hashing its text content.\n\n Add new pages to the page cache.\n Return whether page was found in cache." | 79 | false | huntrar/scrape | page_crawled | 9,760 | |
LDU_FT/ABI-Software/MeshParser/_get_VRML_node | LDU_FT | [
"<BEGIN>\n## `_remove_comment`",
"Removes any comments from a line. A comment starts from a # symbol\n to the end of the line. But don't remove from # symbol that are embedded\n in strings.\n<END>",
"<BEGIN>\n## `_check_index_within_index_pairs`",
"Check that the index 'index' lies within the set of i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_VRML_node API.
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_VRML_node API.
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 the node object that matches the given named node. The name must be a valid VRML node name.
:param name: The name of the object to return.
:return: The VRML Node object that matches the given name. | "Return the node object that matches the given named node. The name must be a valid VRML node name.\n :param name: The name of the object to return.\n :return: The VRML Node object that matches the given name." | 16 | false | ABI-Software/MeshParser | _get_VRML_node | 9,761 | |
LDU_FT/twisted/txaws/run_instances | LDU_FT | [
"<BEGIN>\n## `get_ca_certs`",
"Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.",
" In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_instances API.
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 run_instances API.
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... | Parse the reservations XML payload that is returned from an AWS
RunInstances API call.
@param xml_bytes: raw XML bytes with a C{RunInstancesResponse} root
element. | "Parse the reservations XML payload that is returned from an AWS\n RunInstances API call.\n\n @param xml_bytes: raw XML bytes with a C{RunInstancesResponse} root\n element." | 465 | false | twisted/txaws | run_instances | 9,762 | |
LDU_FT/cloudera/cm_api/get_all_clusters | LDU_FT | [
"<BEGIN>\n## `set_basic_auth`",
"Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>",
"<BEGIN>\n## `execute`",
"Submit an HTTP request.\n @param http_method: GET, POST,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_clusters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_clusters API.
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 all clusters
@param resource_root: The root Resource object.
@return: A list of ApiCluster objects. | "Get all clusters\n @param resource_root: The root Resource object.\n @return: A list of ApiCluster objects." | 561 | false | cloudera/cm_api | get_all_clusters | 9,763 | |
LDU_FT/sporestack/bitcash/get_unspents | LDU_FT | [
"<BEGIN>\n## `get_transaction`",
"Gets the full transaction details.",
" :param txid: The transaction id in question.\n :type txid: ``str``\n :raises ConnectionError: If all API services fail.\n :rtype: ``Transaction``\n<END>",
"<BEGIN>\n## `get_tx_amount`",
"Gets the amount of a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unspents API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unspents API.
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... | Fetches all available unspent transaction outputs.
:rtype: ``list`` of :class:`~bitcash.network.meta.Unspent` | "Fetches all available unspent transaction outputs.\n\n :rtype: ``list`` of :class:`~bitcash.network.meta.Unspent`" | 23 | false | sporestack/bitcash | get_unspents | 9,764 | |
LDU_FT/myusuf3/delorean/_move_datetime | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parses a datetime string and returns a `Delorean` object.",
" :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _move_datetime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _move_datetime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Move datetime given delta by given direction | "Move datetime given delta by given direction" | 85 | false | myusuf3/delorean | _move_datetime | 9,765 | |
LDU_FT/aboSamoor/polyglot/info | LDU_FT | [
"<BEGIN>\n## `most_frequent`",
"Only most frequent k words to be included in the embeddings.\n<END>",
"<BEGIN>\n## `normalize_words`",
"Normalize embeddings matrix row-wise.",
" Args:\n ord: normalization order. Possible values {1, 2, 'inf', '-inf'}\n<END>",
"<BEGIN>\n## `nearest_neighbors`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Return the ``Package`` or ``Collection`` record for the
given item. | "Return the ``Package`` or ``Collection`` record for the\n given item." | 189 | false | aboSamoor/polyglot | info | 9,766 | |
LDU_FT/20c/vodka/config | LDU_FT | [
"<BEGIN>\n## `is_config_container`",
"checks whether v is of type list,dict or Config\n<END>",
"<BEGIN>\n## `check`",
"Checks that the config values specified in key name is\n sane according to config attributes defined as properties\n on this class\n<END>",
"<BEGIN>\n## `validate`",
"Valida... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API.
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 config API.
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 ... | Generates configuration file from config specifications | "Generates configuration file from config specifications" | 56 | false | 20c/vodka | config | 9,767 | |
LDU_FT/openstax/cnx-easybake/do_class | LDU_FT | [
"<BEGIN>\n## `log_decl_method`",
"Decorate do_declartion methods for debug logging.\n<END>",
"<BEGIN>\n## `css_to_func`",
"Convert a css selector to an xpath, supporting pseudo elements.\n<END>",
"<BEGIN>\n## `append_string`",
"Append a string to a node, as text or tail of last child.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Implement class declaration - pre-match. | "Implement class declaration - pre-match." | 55 | false | openstax/cnx-easybake | do_class | 9,768 | |
LDU_FT/klahnakoski/mo-json/value2json | LDU_FT | [
"<BEGIN>\n## `pypy_json_encode`",
"pypy DOES NOT OPTIMIZE GENERATOR CODE WELL\n<END>",
"<BEGIN>\n## `unicode_key`",
"CONVERT PROPERTY VALUE TO QUOTED NAME OF SAME\n<END>",
"<BEGIN>\n## `parse`",
"INTENDED TO TREAT JSON AS A STREAM; USING MINIMAL MEMORY WHILE IT ITERATES\n THROUGH THE STRUCTURE. ASSUMI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value2json API.
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 value2json API.
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... | :param obj: THE VALUE TO TURN INTO JSON
:param pretty: True TO MAKE A MULTI-LINE PRETTY VERSION
:param sort_keys: True TO SORT KEYS
:param keep_whitespace: False TO strip() THE WHITESPACE IN THE VALUES
:return: | ":param obj: THE VALUE TO TURN INTO JSON\n :param pretty: True TO MAKE A MULTI-LINE PRETTY VERSION\n :param sort_keys: True TO SORT KEYS\n :param keep_whitespace: False TO strip() THE WHITESPACE IN THE VALUES\n :return:" | 20 | false | klahnakoski/mo-json | value2json | 9,769 | |
LDU_FT/fastavro/fastavro/prepare_time_micros | LDU_FT | [
"<BEGIN>\n## `_read_decimal`",
"based on https://github.com/apache/avro/pull/82/\n<END>",
"<BEGIN>\n## `read_long`",
"int and long values are written using variable-length, zig-zag\n coding.\n<END>",
"<BEGIN>\n## `read_bytes`",
"Bytes are encoded as a long followed by that many bytes of data.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_time_micros API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_time_micros 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... | Convert datetime.time to int timestamp with microseconds | "Convert datetime.time to int timestamp with microseconds" | 136 | false | fastavro/fastavro | prepare_time_micros | 9,770 | |
LDU_FT/theolind/pymysensors/handle_smartsleep | LDU_FT | [
"<BEGIN>\n## `_check_connection`",
"Check if connection is alive every reconnect_timeout seconds.\n<END>",
"<BEGIN>\n## `_connect`",
"Connect to socket. This should be run in a new thread.\n<END>",
"<BEGIN>\n## `_check_connection`",
"Check if connection is alive every reconnect_timeout seconds.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_smartsleep API.
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 handle_smartsleep API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Process a message before going back to smartsleep. | "Process a message before going back to smartsleep." | 109 | false | theolind/pymysensors | handle_smartsleep | 9,771 | |
LDU_FT/titusz/epubcheck/main | LDU_FT | [
"<BEGIN>\n## `validate`",
"Minimal validation.",
" :return bool: True if valid else False\n<END>",
"<BEGIN>\n## `create_parser`",
"Creat a commandline parser for epubcheck",
" :return Argumentparser:\n<END>",
"<BEGIN>\n## `main`",
"Command line app main function.",
" :param list | None argv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Command line app main function.
:param list | None argv: Overrides command options (for libuse or testing) | "Command line app main function.\n\n :param list | None argv: Overrides command options (for libuse or testing)" | 20 | false | titusz/epubcheck | main | 9,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.