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/Miserlou/django-zappa/lambda_handler
LDU_FT
[ "<BEGIN>\n## `lambda_handler`", "An AWS Lambda function which parses specific API Gateway input into a WSGI request.", " The request get fed it to Django, processes the Django response, and returns that\n back to the API Gateway.\n<END>", "<BEGIN>\n## `require_settings`", "Load the ZAPPA_SETTINGS as w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambda_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambda_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
An AWS Lambda function which parses specific API Gateway input into a WSGI request. The request get fed it to Django, processes the Django response, and returns that back to the API Gateway.
"An AWS Lambda function which parses specific API Gateway input into a WSGI request.\n\n The request get fed it to Django, processes the Django response, and returns that\n back to the API Gateway."
11
false
Miserlou/django-zappa
lambda_handler
38,273
LDU_FT/altair-viz/pdvega/parallel_coordinates
LDU_FT
[ "<BEGIN>\n## `infer_vegalite_type`", "From an array-like input, infer the correct vega typecode\n ('ordinal', 'nominal', 'quantitative', or 'temporal')", " Parameters\n ----------\n data: Numpy array or Pandas Series\n data for which the type will be inferred\n ordinal_threshold: integer (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_coordinates 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 parallel_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parallel coordinates plotting. Parameters ---------- frame: DataFrame class_column: str Column name containing class names cols: list, optional A list of column names to use alpha: float, optional The transparency of the lines interactive : bool, optional if ...
"Parallel coordinates plotting.\n\n Parameters\n ----------\n frame: DataFrame\n class_column: str\n Column name containing class names\n cols: list, optional\n A list of column names to use\n alpha: float, optional\n The transparency of the lines\n interactive : bool, optional...
48
false
altair-viz/pdvega
parallel_coordinates
38,274
LDU_FT/numenta/htmresearch/_getPrototypes
LDU_FT
[ "<BEGIN>\n## `runExperiment`", "Run experiment. What did you think this does?", " args is a dict representing the parameters. We do it this way to support\n multiprocessing. args contains one or more of the following keys:", " @param noiseLevel (float) Noise level to add to the locations and features\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getPrototypes API. 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 _getPrototypes API. 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...
Given a compressed overlap array and a set of indices specifying a subset of those in that array, return the set of topNumber indices of vectors that have maximum average overlap with other vectors in `indices`. @param indices (arraylike) Array of indices for which to get prototypes. @param overlaps (...
"Given a compressed overlap array and a set of indices specifying a subset\n of those in that array, return the set of topNumber indices of vectors that\n have maximum average overlap with other vectors in `indices`.\n\n @param indices (arraylike) Array of indices for which to get prototypes.\n\n @param ove...
2,106
true
numenta/htmresearch
_getPrototypes
38,275
LDU_FT/Ezhil-Language-Foundation/open-tamil/frequency_model
LDU_FT
[ "<BEGIN>\n## `unicode2encode`", "charmap : dictionary which has both encode as key, unicode as value\n<END>", "<BEGIN>\n## `unicode2auto`", "This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frequency_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frequency_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
build a letter frequency model for Tamil letters from a corpus
"build a letter frequency model for Tamil letters from a corpus"
90
false
Ezhil-Language-Foundation/open-tamil
frequency_model
38,276
LDU_FT/lobocv/anonymoususage/database_to_csv
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create a CSV file for the latest usage stats. :param path: path to output CSV file :param dbconn_master: master database connection :param dbconn_part: partial database connection :param tableinfo: table header information
"Create a CSV file for the latest usage stats.\n :param path: path to output CSV file\n :param dbconn_master: master database connection\n :param dbconn_part: partial database connection\n :param tableinfo: table header information"
60
false
lobocv/anonymoususage
database_to_csv
38,277
LDU_FT/pyviz/geoviews/add_dimension
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_dimension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_dimension API. 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...
Adding value dimensions not currently supported by iris interface. Adding key dimensions not possible on dense interfaces.
"Adding value dimensions not currently supported by iris interface.\n Adding key dimensions not possible on dense interfaces."
106
false
pyviz/geoviews
add_dimension
38,278
LDU_FT/ga4gh/ga4gh-client/_setup_http_session
LDU_FT
[ "<BEGIN>\n## `_run_search_request`", "Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_http_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_http_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Sets up the common HTTP session parameters used by requests.
"Sets up the common HTTP session parameters used by requests."
104
false
ga4gh/ga4gh-client
_setup_http_session
38,279
LDU_FT/webrecorder/warcio/timestamp_to_datetime
LDU_FT
[ "<BEGIN>\n## `_raise_invalid_gzip_err`", "A gzip file with multiple ARC/WARC records, non-chunked\n has been detected. This is not valid for replay, so notify user\n<END>", "<BEGIN>\n## `_consume_blanklines`", "Consume blank lines that are between records\n - For warcs, there are usually 2\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timestamp_to_datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
# >14-digit -- rest ignored >>> timestamp_to_datetime('2014122609501011') datetime.datetime(2014, 12, 26, 9, 50, 10) # 14-digit >>> timestamp_to_datetime('20141226095010') datetime.datetime(2014, 12, 26, 9, 50, 10) # 13-digit padding >>> timestamp_to_datetime('2014122609501') datetime....
"# >14-digit -- rest ignored\n >>> timestamp_to_datetime('2014122609501011')\n datetime.datetime(2014, 12, 26, 9, 50, 10)\n\n # 14-digit\n >>> timestamp_to_datetime('20141226095010')\n datetime.datetime(2014, 12, 26, 9, 50, 10)\n\n # 13-digit padding\n >>> timestamp_to_datetime('2014122609501')\n ...
91
false
webrecorder/warcio
timestamp_to_datetime
38,280
LDU_FT/bunq/sdk_python/create
LDU_FT
[ "<BEGIN>\n## `post`", ":type uri_relative: str\n :type request_bytes: bytes\n :type custom_headers: dict[str, str]", " :return: BunqResponseRaw\n<END>", "<BEGIN>\n## `_request`", ":type method: str\n :type uri_relative: str\n :type request_bytes: bytes\n :type param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Create a new debit card request. :type user_id: int :param second_line: The second line of text on the card, used as name/description for it. It can contain at most 17 characters and it can be empty. :type second_line: str :param name_on_card: The user's name as it will ...
"Create a new debit card request.\n\n :type user_id: int\n :param second_line: The second line of text on the card, used as\n name/description for it. It can contain at most 17 characters and it can\n be empty.\n :type second_line: str\n :param name_on_card: The user's name as ...
458
false
bunq/sdk_python
create
38,281
LDU_FT/aiortc/aiortc/wrap_rtx
LDU_FT
[ "<BEGIN>\n## `allocate_mid`", "Allocate a MID which has not been used yet.\n<END>", "<BEGIN>\n## `addIceCandidate`", "Add a new :class:`RTCIceCandidate` received from the remote peer.", " The specified candidate must have a value for either `sdpMid` or `sdpMLineIndex`.\n<END>", "<BEGIN>\n## `addTra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_rtx API. 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 wrap_rtx API. 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...
Create a retransmission packet from a lost packet.
"Create a retransmission packet from a lost packet."
126
false
aiortc/aiortc
wrap_rtx
38,282
LDU_FT/ets-labs/python-domain-models/check_model_cls
LDU_FT
[ "<BEGIN>\n## `init_model`", "Init model with field.", " :param DomainModel model:\n :param object value:\n<END>", "<BEGIN>\n## `get_value`", "Return field's value.", " :param DomainModel model:\n :param object default:\n :rtype object:\n<END>", "<BEGIN>\n## `set_value`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_model_cls API. 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 check_model_cls API. 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...
Check __model_cls__ attribute. :type attributes: dict
"Check __model_cls__ attribute.\n\n :type attributes: dict"
40
false
ets-labs/python-domain-models
check_model_cls
38,283
LDU_FT/aaugustin/websockets/build_extension_item
LDU_FT
[ "<BEGIN>\n## `ensure_open`", "Check that the WebSocket connection is open.", " Raise :exc:`~websockets.exceptions.ConnectionClosed` if it isn't.\n<END>", "<BEGIN>\n## `transfer_data`", "Read incoming messages and put them in a queue.", " This coroutine runs in a task until the closing handsh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_extension_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_extension_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Build an extension definition. This is the reverse of :func:`parse_extension_item`.
"Build an extension definition.\n\n This is the reverse of :func:`parse_extension_item`."
346
false
aaugustin/websockets
build_extension_item
38,284
LDU_FT/lsst-sqre/documenteer/get_type
LDU_FT
[ "<BEGIN>\n## `run`", "Main entrypoint method.", " Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>", "<BEGIN>\n## `main`", "stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.", " This command should be r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get a type given its importable name. Parameters ---------- task_name : `str` Name of the Python type, such as ``mypackage.MyClass``. Returns ------- object The object.
"Get a type given its importable name.\n\n Parameters\n ----------\n task_name : `str`\n Name of the Python type, such as ``mypackage.MyClass``.\n\n Returns\n -------\n object\n The object."
430
false
lsst-sqre/documenteer
get_type
38,285
LDU_FT/src-d/modelforge/extract_model_meta
LDU_FT
[ "<BEGIN>\n## `initialize_registry`", "Initialize the registry and the index.", " :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_model_meta 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 extract_model_meta 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...
Merge the metadata from the backend and the extra metadata into a dict which is suitable for \ `index.json`. :param base_meta: tree["meta"] :class:`dict` containing data from the backend. :param extra_meta: dict containing data from the user, similar to `template_meta.json`. :param model_url: public UR...
"Merge the metadata from the backend and the extra metadata into a dict which is suitable for \\\n `index.json`.\n\n :param base_meta: tree[\"meta\"] :class:`dict` containing data from the backend.\n :param extra_meta: dict containing data from the user, similar to `template_meta.json`.\n :param model_url: ...
118
false
src-d/modelforge
extract_model_meta
38,286
LDU_FT/elifesciences/proofreader-python/_get_packages
LDU_FT
[ "<BEGIN>\n## `col_widths`", "Get MAX possible width of each column in the table.", " :return: defaultdict\n<END>", "<BEGIN>\n## `_marker_line`", "Generate a correctly sized marker line.", " e.g.", " '+------------------+---------+----------+---------+'", " :return: str\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_packages API. 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_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert `pkg_resources.working_set` into a list of `Package` objects. :return: list
"Convert `pkg_resources.working_set` into a list of `Package` objects.\n\n :return: list"
44
false
elifesciences/proofreader-python
_get_packages
38,287
LDU_FT/thomasvandoren/bugzscout-py/submit_error
LDU_FT
[ "<BEGIN>\n## `_defaults`", "Returns a dict of default args from the environment, which can be\n overridden by command line args.\n<END>", "<BEGIN>\n## `_from_args`", "Factory method to create a new instance from command line args.", " :param args: instance of :class:`argparse.Namespace`\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Send an error to bugzscout. Sends a request to the fogbugz URL for this instance. If a case exists with the **same** description, a new occurrence will be added to that case. It is advisable to remove personal info from the description for that reason. Account ids, emails, request ids, ...
"Send an error to bugzscout.\n\n Sends a request to the fogbugz URL for this instance. If a case exists\n with the **same** description, a new occurrence will be added to that\n case. It is advisable to remove personal info from the description for\n that reason. Account ids, emails, request...
29
false
thomasvandoren/bugzscout-py
submit_error
38,288
LDU_FT/pytroll/satpy/main
LDU_FT
[ "<BEGIN>\n## `_get_coarse_dataset`", "Get the coarse dataset refered to by `key` from the XML data.\n<END>", "<BEGIN>\n## `get_dataset`", "Get output data and metadata of specified dataset.\n<END>", "<BEGIN>\n## `find_coefficient_index`", "Return index in to coefficient arrays for this band's wavelength."...
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...
Create calibration coefficient files for AVHRR
"Create calibration coefficient files for AVHRR"
924
false
pytroll/satpy
main
38,289
LDU_FT/shtalinberg/django-actions-logger/register
LDU_FT
[ "<BEGIN>\n## `create_log_action`", "Helper method to create a new log entry.\n This method automatically populates some fields when no explicit value is given.\n :param instance: The model instance to log a change for.\n :type instance: Model\n :param kwargs: Field overrides for the :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register a model with actionslog. Actionslog will then track mutations on this model's instances. :param model: The model to register. :type model: Model :param include_fields: The fields to include. Implicitly excludes all other fields. :type include_fields: list :param exclude...
"Register a model with actionslog. Actionslog will then track mutations on this model's instances.\n\n :param model: The model to register.\n :type model: Model\n :param include_fields: The fields to include. Implicitly excludes all other fields.\n :type include_fields: list\n :param ...
31
false
shtalinberg/django-actions-logger
register
38,290
LDU_FT/datamachine/twx/vis
LDU_FT
[ "<BEGIN>\n## `_ige`", "Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vis API. 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 vis API. 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...
Function to visualize byte streams. Split into bytes, print to console. :param bs: BYTE STRING
"Function to visualize byte streams. Split into bytes, print to console.\n :param bs: BYTE STRING"
94
false
datamachine/twx
vis
38,291
LDU_FT/jrief/django-sass-processor/walk_nodes
LDU_FT
[ "<BEGIN>\n## `traverse_tree`", "traverse the static folders an look for at least one file ending in .scss/.sass\n<END>", "<BEGIN>\n## `find_sources`", "Look for Python sources available for the current configuration.\n<END>", "<BEGIN>\n## `parse_source`", "Extract the statements from the given file, look ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk_nodes API. 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 walk_nodes API. 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...
Iterate over the nodes recursively yielding the templatetag 'sass_src'
"Iterate over the nodes recursively yielding the templatetag 'sass_src'"
14
false
jrief/django-sass-processor
walk_nodes
38,292
LDU_FT/gak/pygooglechart/set_geo_area
LDU_FT
[ "<BEGIN>\n## `set_legend`", "legend needs to be a list, tuple or None\n<END>", "<BEGIN>\n## `set_legend_position`", "Sets legend position. Default is 'r'.", " b - At the bottom of the chart, legend entries in a horizontal row.\n bv - At the bottom of the chart, legend entries in a vertical col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_geo_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_geo_area API. 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...
Sets the geo area for the map. * africa * asia * europe * middle_east * south_america * usa * world
"Sets the geo area for the map.\n\n * africa\n * asia\n * europe\n * middle_east\n * south_america\n * usa\n * world"
28
false
gak/pygooglechart
set_geo_area
38,293
LDU_FT/closeio/quotequail/join_wrapped_lines
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_wrapped_lines 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 join_wrapped_lines 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...
Join one or multiple lines that wrapped. Returns the reconstructed line. Takes into account proper spacing between the lines (see STRIP_SPACE_CHARS).
"Join one or multiple lines that wrapped. Returns the reconstructed line.\n Takes into account proper spacing between the lines (see\n STRIP_SPACE_CHARS)."
65
false
closeio/quotequail
join_wrapped_lines
38,294
LDU_FT/amaas-fintech/amaas-core-sdk-python/process_normal
LDU_FT
[ "<BEGIN>\n## `deactivate`", "Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.", " :param asset_manager_id:\n :return:\n<END>", "<BEGIN>\n## `quote_datetime`", "Force the quote_datetime to a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_normal API. 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 process_normal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
this method process the _dict to correct dict to be called by class constructor this method will be imported and called by main csv uploader function
"this method process the _dict to correct dict to be called by class constructor\n this method will be imported and called by main csv uploader function"
109
false
amaas-fintech/amaas-core-sdk-python
process_normal
38,295
LDU_FT/mdsol/rwslib/mixin_params
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mixin_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mixin_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Merge in the MdsolAttribute for the passed parameter :param dict params: dictionary of object parameters
"Merge in the MdsolAttribute for the passed parameter\n\n :param dict params: dictionary of object parameters"
120
false
mdsol/rwslib
mixin_params
38,296
LDU_FT/rcsb/mmtf-python/set_inter_group_bond
LDU_FT
[ "<BEGIN>\n## `add_atom_data`", "Add the atomic data to the DataTransferInterface.\n :param data_api the data api from where to get the data\n :param data_setters the class to push the data to\n :param atom_nams the list of atom names for the group\n :param element_names the list of element names for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_inter_group_bond 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 set_inter_group_bond API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Add bonds between groups. :param atom_index_one: the integer atom index (in the structure) of the first partner in the bond :param atom_index_two: the integer atom index (in the structure) of the second partner in the bond :param bond_order the bond order
"Add bonds between groups.\n :param atom_index_one: the integer atom index (in the structure) of the first partner in the bond\n :param atom_index_two: the integer atom index (in the structure) of the second partner in the bond\n :param bond_order the bond order"
130
false
rcsb/mmtf-python
set_inter_group_bond
38,297
LDU_FT/CodyKochmann/graphdb/show_relations
LDU_FT
[ "<BEGIN>\n## `graph_hash`", "this hashes all types to a hash without colissions. python's hashing algorithms are not cross type compatable but hashing tuples with the type as the first element seems to do the trick\n<END>", "<BEGIN>\n## `store_item`", "use this function to store a python object in the databas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_relations API. 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 show_relations API. 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...
display every relation in the database as (src, relation, dst)
"display every relation in the database as (src, relation, dst)"
44
false
CodyKochmann/graphdb
show_relations
38,298
LDU_FT/VIVelev/PyDojoML/calculate_mean_vectors
LDU_FT
[ "<BEGIN>\n## `accuracy_score`", "Calculates the fraction of the correctly\n classified samples over all.", " Parameters:\n -----------\n y : vector, shape (n_samples,)\n The target labels.", " y_pred : vector, shape (n_samples,)\n The predicted labels.", " Returns:\n --------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_mean_vectors 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_mean_vectors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculates the mean samples per class Parameters: ----------- X : array-like, shape (m, n) - the samples y : array-like, shape (m, ) - the class labels Returns: -------- mean_vectors : array-like, shape (k, ) Those are the mean samples from each k classes.
"Calculates the mean samples per class\n \n Parameters:\n -----------\n X : array-like, shape (m, n) - the samples\n y : array-like, shape (m, ) - the class labels\n \n Returns:\n --------\n mean_vectors : array-like, shape (k, )\n Those are the mean samples from each k classes."
170
false
VIVelev/PyDojoML
calculate_mean_vectors
38,299
LDU_FT/NYUCCL/psiTurk/do_db
LDU_FT
[ "<BEGIN>\n## `check_auth`", "This function is called to check if a username password combination\n is valid.\n<END>", "<BEGIN>\n## `requires_auth`", "Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_db API. 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 do_db API. 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...
Usage: db get_config db use_local_file [<filename>] db use_aws_instance [<instance_id>] db aws_list_regions db aws_get_region db aws_set_region [<region_name>] db aws_list_instances db aws_create_instance [<instance_id> <size> <username> <p...
"Usage:\n db get_config\n db use_local_file [<filename>]\n db use_aws_instance [<instance_id>]\n db aws_list_regions\n db aws_get_region\n db aws_set_region [<region_name>]\n db aws_list_instances\n db aws_create_instance [<instance_id> <size> <use...
65
false
NYUCCL/psiTurk
do_db
38,300
LDU_FT/morse-talk/morse-talk/_get_speed
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts a string of morse code into English message", " The encoded message can also be decoded using the same morse chart\n backwards.", " >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>", "<BEGIN>\n## `grouper`", "grouper(3, 'ABCDEFG', 'x') --> ABC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_speed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_speed API. 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...
Returns element duration when element_duration and/or code speed is given wpm >>> _get_speed(0.2, None) (0.2, 5.999999999999999) >>> _get_speed(None, 15) (0.08, 15) >>> _get_speed(None, None) (0.08, 15)
"Returns\n element duration when element_duration and/or code speed is given\n wpm\n\n >>> _get_speed(0.2, None)\n (0.2, 5.999999999999999)\n\n >>> _get_speed(None, 15)\n (0.08, 15)\n\n >>> _get_speed(None, None)\n (0.08, 15)"
111
false
morse-talk/morse-talk
_get_speed
38,301
LDU_FT/JIC-CSB/jicimagelib/check_dtype
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_dtype API. 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 check_dtype API. 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...
Raises TypeError if the array is not of an allowed dtype. :param array: array whose dtype is to be checked :param allowed: instance or list of allowed dtypes
"Raises TypeError if the array is not of an allowed dtype.\n\n :param array: array whose dtype is to be checked\n :param allowed: instance or list of allowed dtypes"
91
false
JIC-CSB/jicimagelib
check_dtype
38,302
LDU_FT/Accelize/pycosio/is_file
LDU_FT
[ "<BEGIN>\n## `_copy`", "Copies file from source to destination", " Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 extracted...
Return True if this entry is a file or a symbolic link pointing to a file; return False if the entry is or points to a directory or other non-file entry, or if it doesn’t exist anymore. The result is cached on the os.DirEntry object. Args: follow_symlinks (bool): Follow sym...
"Return True if this entry is a file or a symbolic link pointing to a\n file; return False if the entry is or points to a directory or other\n non-file entry, or if it doesn’t exist anymore.\n\n The result is cached on the os.DirEntry object.\n\n Args:\n follow_symlinks (bool): Fo...
498
false
Accelize/pycosio
is_file
38,303
LDU_FT/basecrm/basecrm-python/retrieve
LDU_FT
[ "<BEGIN>\n## `post`", "Send a POST request.", " :param str url: Sub URL for the request. You MUST not specify neither base url nor api version prefix.\n :param dict body: (optional) Dictionary of body attributes that will be wrapped with envelope and json encoded.\n :param dict **kwargs: (o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve API. 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 retrieve API. 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...
Retrieve a single line item Returns a single line item of an order, according to the unique line item ID provided :calls: ``get /orders/{order_id}/line_items/{id}`` :param int order_id: Unique identifier of a Order. :param int id: Unique identifier of a LineItem. :return: Dicti...
"Retrieve a single line item\n\n Returns a single line item of an order, according to the unique line item ID provided\n\n :calls: ``get /orders/{order_id}/line_items/{id}``\n :param int order_id: Unique identifier of a Order.\n :param int id: Unique identifier of a LineItem.\n :retur...
216
false
basecrm/basecrm-python
retrieve
38,304
LDU_FT/mvn23/pyotgw/_wait_for_cmd
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Gets called when a connection to the gateway is established.\n Initialise the protocol object.\n<END>", "<BEGIN>\n## `connection_lost`", "Gets called when the connection to the gateway is lost.\n Tear down and clean up the protocol object.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_cmd API. 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 _wait_for_cmd API. 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...
Wrap @cmd in applicable asyncio call. This method is a coroutine.
"Wrap @cmd in applicable asyncio call.\n\n This method is a coroutine."
115
false
mvn23/pyotgw
_wait_for_cmd
38,305
LDU_FT/julienr/meshcut/load_ply
LDU_FT
[ "<BEGIN>\n## `load_ply`", "Same as load_ply, but takes a file-like object\n<END>", "<BEGIN>\n## `orthogonal_vector`", "Return an arbitrary vector that is orthogonal to v\n<END>", "<BEGIN>\n## `show_plane`", "Show the plane with the given origin and normal. scale give its size\n<END>", "<BEGIN>\n## `slic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ply API. 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...
Same as load_ply, but takes a file-like object
"Same as load_ply, but takes a file-like object"
34
false
julienr/meshcut
load_ply
38,306
LDU_FT/aio-libs/aiohttp-devtools/pg_dsn
LDU_FT
[ "<BEGIN>\n## `modify_main_app`", "Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar\n<END>", "<BEGIN>\n## `src_reload`", "prompt each connected browser to reload by sending...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pg_dsn API. 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 pg_dsn API. 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 ...
:param settings: settings including connection settings :return: DSN url suitable for sqlalchemy and aiopg.
":param settings: settings including connection settings\n :return: DSN url suitable for sqlalchemy and aiopg."
32
false
aio-libs/aiohttp-devtools
pg_dsn
38,307
LDU_FT/bioidiap/gridtk/get_arguments
LDU_FT
[ "<BEGIN>\n## `submit`", "Submits a job that will be executed on the local machine during a call to \"run\".\n All kwargs will simply be ignored.\n<END>", "<BEGIN>\n## `stop_jobs`", "Resets the status of the job to 'submitted' when they are labeled as 'executing'.\n<END>", "<BEGIN>\n## `stop_job`", "Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the additional options for the grid (such as the queue, memory requirements, ...).
"Returns the additional options for the grid (such as the queue, memory requirements, ...)."
163
false
bioidiap/gridtk
get_arguments
38,308
LDU_FT/jenanwise/codequality/_resolve_paths
LDU_FT
[ "<BEGIN>\n## `_temp_filename`", "Make a temporary file with `contents`.", " The file will be cleaned up on exit.\n<END>", "<BEGIN>\n## `register`", "Decorator to register a class as a checker for extensions.\n<END>", "<BEGIN>\n## `check`", "Return list of error dicts for all found errors in paths.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Resolve paths into a set of filenames (no directories) to check. External tools will handle directories as arguments differently, so for consistency we just want to pass them filenames. This method will recursively walk all directories and filter out any paths that match self.options.i...
"Resolve paths into a set of filenames (no directories) to check.\n\n External tools will handle directories as arguments differently, so for\n consistency we just want to pass them filenames.\n\n This method will recursively walk all directories and filter out\n any paths that match self.op...
19
false
jenanwise/codequality
_resolve_paths
38,309
LDU_FT/miniconfig/python-openevse-wifi/getAmbientThreshold
LDU_FT
[ "<BEGIN>\n## `sendCommand`", "Sends a command through the web interface of the charger and parses the response\n<END>", "<BEGIN>\n## `getStatus`", "Returns the charger's charge status, as a string\n<END>", "<BEGIN>\n## `getChargeTimeElapsed`", "Returns the charge time elapsed (in seconds), or 0 if is not ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAmbientThreshold 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 getAmbientThreshold API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the ambient temperature threshold in degrees Celcius, or 0 if no Threshold is set
"Returns the ambient temperature threshold in degrees Celcius, or 0 if no Threshold is set"
32
false
miniconfig/python-openevse-wifi
getAmbientThreshold
38,310
LDU_FT/pjuren/pyokit/_fill
LDU_FT
[ "<BEGIN>\n## `__trim_extensions_dot`", "trim leading dots from extensions and drop any empty strings.\n<END>", "<BEGIN>\n## `__split_genomic_interval_filename`", "Split a filename of the format chrom:start-end.ext or chrom.ext (full chrom).", " :return: tuple of (chrom, start, end) -- 'start' and 'end' are...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill API. 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 _fill API. 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...
Advance the iterator without returning the old head.
"Advance the iterator without returning the old head."
519
false
pjuren/pyokit
_fill
38,311
LDU_FT/invinst/ResponseBot/discover_handler_classes
LDU_FT
[ "<BEGIN>\n## `load_config_file`", "Parse configuration file and get config values.\n<END>", "<BEGIN>\n## `load_config_from_cli_arguments`", "Get config values of passed in CLI options.", " :param dict kwargs: CLI options\n<END>", "<BEGIN>\n## `validate_configs`", "Check that required config are s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_handler_classes 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 discover_handler_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Looks for handler classes within handler path module. Currently it's not looking deep into nested module. :param handlers_package: module path to handlers :type handlers_package: string :return: list of handler classes
"Looks for handler classes within handler path module.\n\n Currently it's not looking deep into nested module.\n\n :param handlers_package: module path to handlers\n :type handlers_package: string\n :return: list of handler classes"
99
false
invinst/ResponseBot
discover_handler_classes
38,312
LDU_FT/mardix/Juice/register
LDU_FT
[ "<BEGIN>\n## `get_env`", "Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>", "<BEGIN>\n## `init_app`", "To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Registers a FlaskView class for use with a specific instance of a Flask app. Any methods not prefixes with an underscore are candidates to be routed and will have routes registered when this method is called. :param app: an instance of a Flask application :param base_route: The...
"Registers a FlaskView class for use with a specific instance of a\n Flask app. Any methods not prefixes with an underscore are candidates\n to be routed and will have routes registered when this method is\n called.\n\n :param app: an instance of a Flask application\n\n :param base_ro...
101
false
mardix/Juice
register
38,313
LDU_FT/crossbario/txaio/guess_stream_needs_encoding
LDU_FT
[ "<BEGIN>\n## `guess_stream_needs_encoding`", "Guess the type (bytes/unicode) of this stream, and return whether or not it\n requires text to be encoded before written into it.\n<END>", "<BEGIN>\n## `with_config`", ":return: an instance of the txaio API with the given\n configuration. This won't affe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_stream_needs_encoding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_stream_needs_encoding API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Guess the type (bytes/unicode) of this stream, and return whether or not it requires text to be encoded before written into it.
"Guess the type (bytes/unicode) of this stream, and return whether or not it\n requires text to be encoded before written into it."
62
false
crossbario/txaio
guess_stream_needs_encoding
38,314
LDU_FT/smdabdoub/phylotoast/color_mapping
LDU_FT
[ "<BEGIN>\n## `sample_group`", "Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.", " :type sid: str\n :param sid: SampleID from dataset.", " :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the color_mapping API. 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 color_mapping API. 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...
Determine color-category mapping. If color_column was specified, then map the category names to color values. Otherwise, use the palettable colors to automatically generate a set of colors for the group values. :type sample_map: dict :param unifracFN: Map associating each line of the mapping file with ...
"Determine color-category mapping. If color_column was specified, then map the category\n names to color values. Otherwise, use the palettable colors to automatically generate\n a set of colors for the group values.\n\n :type sample_map: dict\n :param unifracFN: Map associating each line of the mapping file...
200
false
smdabdoub/phylotoast
color_mapping
38,315
LDU_FT/horejsek/python-fastjsonschema/generate_format
LDU_FT
[ "<BEGIN>\n## `indent`", "Decorator for allowing to use method as normal method or with\n context manager for auto-indenting code blocks.\n<END>", "<BEGIN>\n## `resolve_path`", "Return definition from path.\r", " Path is unescaped according https://tools.ietf.org/html/rfc6901\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Means that value have to be in specified format. For example date, email or other. .. code-block:: python {'format': 'email'} Valid value for this definition is user@example.com but not @username
"Means that value have to be in specified format. For example date, email or other.\n\n .. code-block:: python\n\n {'format': 'email'}\n\n Valid value for this definition is user@example.com but not @username"
157
false
horejsek/python-fastjsonschema
generate_format
38,316
LDU_FT/PythonCharmers/python-future/feed
LDU_FT
[ "<BEGIN>\n## `time2isoz`", "Return a string representing time in seconds since epoch, t.", " If the function is called without an argument, it will use the current\n time.", " The format of the returned string is like \"YYYY-MM-DD hh:mm:ssZ\",\n representing Universal Time (UTC, aka GMT). An exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feed API. 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 feed API. 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...
r"""Feed data to the parser. Call this as often as you want, with as little or as much text as you want (may include '\n').
"r\"\"\"Feed data to the parser.\n\n Call this as often as you want, with as little or as much text\n as you want (may include '\\n')."
1,185
true
PythonCharmers/python-future
feed
38,317
LDU_FT/jd/tenacity/before_func_accept_retry_state
LDU_FT
[ "<BEGIN>\n## `after_log`", "After call strategy that logs to some logger the finished attempt.\n<END>", "<BEGIN>\n## `retry`", "Wrap a function with a new `Retrying` object.", " :param dargs: positional arguments passed to Retrying object\n :param dkw: keyword arguments passed to the Retrying object\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_func_accept_retry_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_func_accept_retry_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Wrap "before" function to accept "retry_state".
"Wrap \"before\" function to accept \"retry_state\"."
44
false
jd/tenacity
before_func_accept_retry_state
38,318
LDU_FT/aglie/meerkat/air_absorption_coefficient
LDU_FT
[ "<BEGIN>\n## `rotvec2mat`", "Convert rotation from axis and angle to matrix representation\n<END>", "<BEGIN>\n## `det2lab_xds`", "Converts pixels coordinates from the frame into q-vector\n<END>", "<BEGIN>\n## `r_get_numbers`", "A helper function which can be used similarly to fscanf(fid,'%f',num) to extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the air_absorption_coefficient 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 air_absorption_coefficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
The function returns linear absorbtion coefficient of selected medium at given x-ray wavelength [mm^-1] Mass attenuation coefficients are taken from NIST "Tables of X-Ray Mass Attenuation Coefficients and Mass Energy-Absorption Coefficients from 1 keV to 20 MeV for Elements Z = 1 to 92 and 48 Addit...
"The function returns linear absorbtion coefficient of selected medium at\n given x-ray wavelength [mm^-1]\n\n Mass attenuation coefficients are taken from NIST \"Tables of X-Ray Mass\n Attenuation Coefficients and Mass Energy-Absorption Coefficients from 1\n keV to 20 MeV for Elements Z = 1 to 92 and 4...
14
false
aglie/meerkat
air_absorption_coefficient
38,319
LDU_FT/robotpy/pyfrc/process_child
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
This function changes class references to not have the intermediate module name by hacking at the doctree
"This function changes class references to not have the\n intermediate module name by hacking at the doctree"
109
false
robotpy/pyfrc
process_child
38,320
LDU_FT/seibert-media/Highton/list_upcoming
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode the object to the object", " :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>", "<BEGIN>\n## `add_note`", "Create a Note to current obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_upcoming API. 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 list_upcoming API. 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 a collection of upcoming tasks (tasks that have not yet been completed, regardless of whether they’re overdue) for the authenticated user :return: :rtype: list
"Returns a collection of upcoming tasks (tasks that have not yet been completed,\n regardless of whether they’re overdue) for the authenticated user\n\n :return:\n :rtype: list"
80
false
seibert-media/Highton
list_upcoming
38,321
LDU_FT/adsabs/adsutils/get_pub_abbreviation
LDU_FT
[ "<BEGIN>\n## `__parse_results`", "The resolve server responds with some basic HTML formatting, where the actual\n results are listed as an HTML list. The regular expression RE_RESULT captures\n each entry\n<END>", "<BEGIN>\n## `get_pub_abbreviation`", "Get ADS journal abbreviation (\"bibstem\") ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pub_abbreviation 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_pub_abbreviation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get ADS journal abbreviation ("bibstem") candidates for a given publication name. * 'exact': if True results will only be returned if an exact match was found * 'numBest': maximum number of guesses to return A list of tuples will be returned, each tuple consisting of a score and a bibstem
"Get ADS journal abbreviation (\"bibstem\") candidates for a given publication name.\n * 'exact': if True results will only be returned if an exact match was found\n * 'numBest': maximum number of guesses to return\n A list of tuples will be returned, each tuple consisting of a score and a bibstem"
13
false
adsabs/adsutils
get_pub_abbreviation
38,322
LDU_FT/cloudify-cosmo/wagon/get_source_name_and_version
LDU_FT
[ "<BEGIN>\n## `install_package`", "Install a Python package.", " Can specify a specific version.\n Can specify a prerelease.\n Can specify a venv to install in.\n Can specify a list of paths or urls to requirement txt files.\n Can specify a local wheels_path to use for offline installation.\n C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_source_name_and_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_source_name_and_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Retrieve the source package's name and version. If the source is a path, the name and version will be retrieved by querying the setup.py file in the path. If the source is PACKAGE_NAME==PACKAGE_VERSION, they will be used as the name and version. If the source is PACKAGE_NAME, the version will be ...
"Retrieve the source package's name and version.\n\n If the source is a path, the name and version will be retrieved\n by querying the setup.py file in the path.\n\n If the source is PACKAGE_NAME==PACKAGE_VERSION, they will be used as\n the name and version.\n\n If the source is PACKAGE_NAME, the version...
51
false
cloudify-cosmo/wagon
get_source_name_and_version
38,323
LDU_FT/cozy/python_cozy_management/delete_token
LDU_FT
[ "<BEGIN>\n## `rebuild_app`", "Rebuild cozy apps with deletion of npm directory & new npm build\n<END>", "<BEGIN>\n## `rebuild_all_apps`", "Get all cozy apps & rebuild npm repository\n<END>", "<BEGIN>\n## `restore`", "Restore a Cozy\n backup_file: path to .tar.gz\n<END>", "<BEGIN>\n## `generate_ce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 delete_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...
Delete current token, file & CouchDB admin user
"Delete current token, file & CouchDB admin user"
24
false
cozy/python_cozy_management
delete_token
38,324
LDU_FT/adafruit/Adafruit_Blinka/_wait_receive_msg
LDU_FT
[ "<BEGIN>\n## `scan`", "Try to read a byte from each address, if you get an OSError it means the device isnt there\n<END>", "<BEGIN>\n## `final`", "In case the program is cancelled or quit, we need to clean up the PulseIn\n helper process and also the message queue, this is called at exit to do so\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_receive_msg API. 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 _wait_receive_msg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Internal helper that will wait for new messages of a given type, and throw an exception on timeout
"Internal helper that will wait for new messages of a given type,\n and throw an exception on timeout"
14
false
adafruit/Adafruit_Blinka
_wait_receive_msg
38,325
LDU_FT/calvinku96/labreporthelper/make_tex_table
LDU_FT
[ "<BEGIN>\n## `generate_datasets_list`", "generate datasets list to activate", " args:\n settings: dictionary\n from settings file\n argv: list\n from sys.argv\n<END>", "<BEGIN>\n## `do_label`", "Create label for x and y axis, title and suptitle\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tex_table API. 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 make_tex_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse table from inputlist Args: inputlist: list List to parse outputfile: file .tex file to write fmt: dictionary key: integer column index starting with 0 values: string format string. eg "{:g}" **kwar...
"Parse table from inputlist\n\n Args:\n inputlist: list\n List to parse\n outputfile: file\n .tex file to write\n fmt: dictionary\n key: integer\n column index starting with 0\n values: string\n format string. eg \"{:g}\"\...
57
false
calvinku96/labreporthelper
make_tex_table
38,326
LDU_FT/SecurityInnovation/PGPy/key_flags
LDU_FT
[ "<BEGIN>\n## `decrypt_sk`", "The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_flags API. 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 key_flags API. 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...
A ``set`` of :py:obj:`~constants.KeyFlags` specified in this signature, if any. Otherwise, an empty ``set``.
"A ``set`` of :py:obj:`~constants.KeyFlags` specified in this signature, if any. Otherwise, an empty ``set``."
197
false
SecurityInnovation/PGPy
key_flags
38,327
LDU_FT/ambitioninc/rabbitmq-admin/is_vhost_alive
LDU_FT
[ "<BEGIN>\n## `_api_get`", "A convenience wrapper for _get. Adds headers, auth and base url by\n default\n<END>", "<BEGIN>\n## `_get`", "A wrapper for getting things", " :returns: The response of your get\n :rtype: dict\n<END>", "<BEGIN>\n## `_api_put`", "A convenience wrapper for _p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_vhost_alive API. 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_vhost_alive API. 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...
Declares a test queue, then publishes and consumes a message. Intended for use by monitoring tools. :param vhost: The vhost name to check :type vhost: str
"Declares a test queue, then publishes and consumes a message.\n Intended for use by monitoring tools.\n\n :param vhost: The vhost name to check\n :type vhost: str"
100
false
ambitioninc/rabbitmq-admin
is_vhost_alive
38,328
LDU_FT/davenquinn/Attitude/transform
LDU_FT
[ "<BEGIN>\n## `bingham_pdf`", "From the *Encyclopedia of Paleomagnetism*", " From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>", "<BEGIN>\n## `report`", "Outputs a standalone HTML 'report card' for a\n measurement (or se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create an affine transformation matrix that maps vector 1 onto vector 2 https://math.stackexchange.com/questions/293116/rotating-one-3d-vector-to-another
"Create an affine transformation matrix that maps vector 1\n onto vector 2\n\n https://math.stackexchange.com/questions/293116/rotating-one-3d-vector-to-another"
138
false
davenquinn/Attitude
transform
38,329
LDU_FT/quiltdata/quilt/parse_package_extended
LDU_FT
[ "<BEGIN>\n## `create_s3_session`", "Creates a session with automatic retries on 5xx errors.\n<END>", "<BEGIN>\n## `load_module`", "Returns an object that lazily looks up tables and groups.\n<END>", "<BEGIN>\n## `find_module`", "Looks up the table based on the module path.\n<END>", "<BEGIN>\n## `_path_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_package_extended 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 parse_package_extended API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Parses the extended package syntax and returns a tuple of (package, hash, version, tag).
"Parses the extended package syntax and returns a tuple of (package, hash, version, tag)."
202
false
quiltdata/quilt
parse_package_extended
38,330
LDU_FT/Frzk/Ellis/customized_warning
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Updates the function arguments and creates a :class:`asyncio.Task`\n from the Action.", " *kwargs* is an optional dictionnary of additional arguments to pass to\n the Action function.", " .. warning::\n *kwargs* will overwrite existing keys in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the customized_warning 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 customized_warning 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...
Customized function to display warnings. Monkey patch for `warnings.showwarning`.
"Customized function to display warnings.\n Monkey patch for `warnings.showwarning`."
106
false
Frzk/Ellis
customized_warning
38,331
LDU_FT/mbr/flask-kvsession/regenerate
LDU_FT
[ "<BEGIN>\n## `has_expired`", "Report if the session key has expired.", " :param lifetime: A :class:`datetime.timedelta` that specifies the\n maximum age this :class:`SessionID` should be checked\n against.\n :param now: If specified, use this :class:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regenerate API. 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 regenerate API. 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...
Generate a new session id for this session. To avoid vulnerabilities through `session fixation attacks <http://en.wikipedia.org/wiki/Session_fixation>`_, this function can be called after an action like a login has taken place. The session will be copied over to a new session id and the...
"Generate a new session id for this session.\n\n To avoid vulnerabilities through `session fixation attacks\n <http://en.wikipedia.org/wiki/Session_fixation>`_, this function can be\n called after an action like a login has taken place. The session will\n be copied over to a new session id a...
22
false
mbr/flask-kvsession
regenerate
38,332
LDU_FT/funkybob/knights-templater/tokenise
LDU_FT
[ "<BEGIN>\n## `parseprint`", "Parse some code from a string and pretty-print it.\n<END>", "<BEGIN>\n## `tokenise`", "A generator which yields Token instances\n<END>", "<BEGIN>\n## `kompile`", "Creates a new class based on the supplied template, and returnsit.", " class Template(object):\n def _...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenise API. 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 tokenise API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
A generator which yields Token instances
"A generator which yields Token instances"
27
false
funkybob/knights-templater
tokenise
38,333
LDU_FT/sebp/scikit-survival/_fit_and_score_ensemble
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fit_and_score_ensemble 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 _fit_and_score_ensemble API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create a cross-validated model by training a model for each fold with the same model parameters
"Create a cross-validated model by training a model for each fold with the same model parameters"
432
false
sebp/scikit-survival
_fit_and_score_ensemble
38,334
LDU_FT/christian-oudard/htmltreediff/full_split
LDU_FT
[ "<BEGIN>\n## `diff`", "Show the differences between the old and new html document, as html.", " Return the document html with extra tags added to show changes. Add <ins>\n tags around newly added sections, and <del> tags to show sections that have\n been deleted.\n<END>", "<BEGIN>\n## `adjusted_ops`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_split API. 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 full_split API. 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...
Split the text by the regex, keeping all parts. The parts should re-join back into the original text. >>> list(full_split('word', re.compile('&.*?'))) ['word']
"Split the text by the regex, keeping all parts.\n The parts should re-join back into the original text.\n\n >>> list(full_split('word', re.compile('&.*?')))\n ['word']"
69
false
christian-oudard/htmltreediff
full_split
38,335
LDU_FT/architv/harvey/_stripslashes
LDU_FT
[ "<BEGIN>\n## `get_summary`", "Gets the summary of a license from tldrlegal.com\n<END>", "<BEGIN>\n## `get_rules`", "Gets can, cannot and must rules from github license API\n<END>", "<BEGIN>\n## `main`", "Gets all the license information and stores it in json format\n<END>", "<BEGIN>\n## `_stripslashes`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stripslashes API. 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 _stripslashes API. 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...
Removes trailing and leading backslashes from string
"Removes trailing and leading backslashes from string"
16
false
architv/harvey
_stripslashes
38,336
LDU_FT/flying-sheep/bcode/_encode_buffer
LDU_FT
[ "<BEGIN>\n## `_readuntil`", "Helper function to read bytes until a certain end byte is hit\n<END>", "<BEGIN>\n## `_decode_buffer`", "String types are normal (byte)strings\n\tstarting with an integer followed by ':'\n\twhich designates the string’s length.", "\tSince there’s no way to specify the byte type\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_buffer API. 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 _encode_buffer API. 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...
Writes the bencoded form of the input string or bytes
"Writes the bencoded form of the input string or bytes"
17
false
flying-sheep/bcode
_encode_buffer
38,337
LDU_FT/adewes/blitzdb/in_query
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit all pending transactions to the database.", " .. admonition:: Warning", " This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_query API. 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 in_query API. 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...
Match any of the values that exist in an array specified in query.
"Match any of the values that exist in an array specified in query."
141
false
adewes/blitzdb
in_query
38,338
LDU_FT/dcos/shakedown/_get_options
LDU_FT
[ "<BEGIN>\n## `get_tasks`", "Get a list of tasks, optionally filtered by task id.\n The task_id can be the abbrevated. Example: If a task named 'sleep' is\n scaled to 3 in marathon, there will be be 3 tasks starting with 'sleep.'", " :param task_id: task ID\n :type task_id: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Read in options_file as JSON. :param options_file: filename to return :type options_file: str :return: options as dictionary :rtype: dict
"Read in options_file as JSON.\n\n :param options_file: filename to return\n :type options_file: str\n\n :return: options as dictionary\n :rtype: dict"
288
false
dcos/shakedown
_get_options
38,339
LDU_FT/pymc-devs/pymc/pfunc
LDU_FT
[ "<BEGIN>\n## `moral_graph`", "moral_graph(model,format='raw', prog='dot', path=None)", " Draws the moral graph for this model and writes it to path with filename name.\n Returns the pydot 'dot' object for further user manipulation.", " GraphViz and PyDot must be installed to use this function.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pfunc API. 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 pfunc API. 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...
pf = pfunc(func) Returns a function that can be called just like func; however its arguments may be PyMC objects or containers of PyMC objects, and its return value will be a deterministic. Example: >>> A = pymc.Normal('A',0,1,size=10) >>> pprod = pymc.pfunc(numpy.prod) >>> B = pp...
"pf = pfunc(func)\n\n Returns a function that can be called just like func; however its arguments may be\n PyMC objects or containers of PyMC objects, and its return value will be a deterministic.\n\n Example:\n\n >>> A = pymc.Normal('A',0,1,size=10)\n >>> pprod = pymc.pfunc(numpy.prod)\n ...
1,025
true
pymc-devs/pymc
pfunc
38,340
LDU_FT/haaksmash/pyutils/setdefaults
LDU_FT
[ "<BEGIN>\n## `from_keyed_iterable`", "Construct a dictionary out of an iterable, using an attribute name as\n the key. Optionally provide a filter function, to determine what should be\n kept in the dictionary.\n<END>", "<BEGIN>\n## `subtract_by_key`", "given two dicts, a and b, this function returns c ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setdefaults API. 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 setdefaults API. 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...
Given a target dct and a dict of {key:default value} pairs, calls setdefault for all of those pairs.
"Given a target dct and a dict of {key:default value} pairs,\n calls setdefault for all of those pairs."
27
false
haaksmash/pyutils
setdefaults
38,341
LDU_FT/SALib/SALib/unscale_samples
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unscale_samples API. 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 unscale_samples API. 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...
Rescale samples from arbitrary bounds back to [0,1] range Arguments --------- bounds : list list of lists of dimensions num_params-by-2 params : numpy.ndarray numpy array of dimensions num_params-by-N, where N is the number of samples
"Rescale samples from arbitrary bounds back to [0,1] range\n\n Arguments\n ---------\n bounds : list\n list of lists of dimensions num_params-by-2\n params : numpy.ndarray\n numpy array of dimensions num_params-by-N,\n where N is the number of samples"
249
false
SALib/SALib
unscale_samples
38,342
LDU_FT/defunkt/pystache/render_name
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Render the template with the given name using the given context. See the render() docstring for more information.
"Render the template with the given name using the given context.\n\n See the render() docstring for more information."
177
false
defunkt/pystache
render_name
38,343
LDU_FT/PureStorage-OpenConnect/rest-client/create_vlan_interface
LDU_FT
[ "<BEGIN>\n## `_check_rest_version`", "Validate a REST API version is supported by the library and target array.\n<END>", "<BEGIN>\n## `_choose_rest_version`", "Return the newest REST API version supported by target array.\n<END>", "<BEGIN>\n## `_list_available_rest_versions`", "Return a list of the REST A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_vlan_interface 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 create_vlan_interface API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create a vlan interface :param interface: Name of interface to be created. :type interface: str :param subnet: Subnet associated with interface to be created :type subnet: str :param \*\*kwargs: See the REST API Guide on your array for the documentatio...
"Create a vlan interface\n\n :param interface: Name of interface to be created.\n :type interface: str\n :param subnet: Subnet associated with interface to be created\n :type subnet: str\n :param \\*\\*kwargs: See the REST API Guide on your array for the\n do...
166
false
PureStorage-OpenConnect/rest-client
create_vlan_interface
38,344
LDU_FT/guyzmo/pyparts/download_file
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download a file and show progress", " url: the URL of the file to download\n filename: the filename to download it to (if not given, uses the url's filename part)\n show_progress: callback function to update a progress bar", " the show_progress function shall take t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_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 ext...
Download a file and show progress url: the URL of the file to download filename: the filename to download it to (if not given, uses the url's filename part) show_progress: callback function to update a progress bar the show_progress function shall take two parameters: `seen` and `size`, and return...
"Download a file and show progress\n\n url: the URL of the file to download\n filename: the filename to download it to (if not given, uses the url's filename part)\n show_progress: callback function to update a progress bar\n\n the show_progress function shall take two parameters: `seen` and `size`, and\n ...
23
false
guyzmo/pyparts
download_file
38,345
LDU_FT/frawau/aiolifx/set_color_zones
LDU_FT
[ "<BEGIN>\n## `mac_to_ipv6_linklocal`", "Translate a MAC address into an IPv6 address in the prefixed network.", " This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_color_zones API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_color_zones API. 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...
Convenience method to set the colour status zone of the device This method will send a MultiZoneSetColorZones message to the device, and request callb be executed when an ACK is received. The default callback will simply cache the value. :param start_index: Index of the start of the zone o...
"Convenience method to set the colour status zone of the device\n\n This method will send a MultiZoneSetColorZones message to the device, and request callb be executed\n when an ACK is received. The default callback will simply cache the value.\n\n :param start_index: Index of the start of the ...
134
false
frawau/aiolifx
set_color_zones
38,346
LDU_FT/timdiels/pytil/configure
LDU_FT
[ "<BEGIN>\n## `load`", "Load configuration (from configuration files).", " Parameters\n ----------\n path : ~pathlib.Path or None\n Path to configuration file, which must exist; or path to directory\n containing a configuration file; or None.", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure API. 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 configure API. 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...
Configure root logger to log INFO to stderr and DEBUG to log file. The log file is appended to. Stderr uses a terse format, while the log file uses a verbose unambiguous format. Root level is set to INFO. Parameters ---------- log_file : ~pathlib.Path File to log to. Returns ...
"Configure root logger to log INFO to stderr and DEBUG to log file.\n\n The log file is appended to. Stderr uses a terse format, while the log file\n uses a verbose unambiguous format.\n\n Root level is set to INFO.\n\n Parameters\n ----------\n log_file : ~pathlib.Path\n File to log to.\n\n ...
147
false
timdiels/pytil
configure
38,347
LDU_FT/timstaley/voeventdb/tarfile_xml_generator
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Set up basic (INFO level) and debug logfiles\n<END>", "<BEGIN>\n## `_list_class_vars`", "Return a dict of all 'regular' (i.e. not prefixed ``_``) class attributes.\n<END>", "<BEGIN>\n## `apiv1_root_view`", "API root url. Shows a list of active endpoints.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tarfile_xml_generator 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 tarfile_xml_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generator for iterating through xml files in a tarball. Returns strings. Example usage:: xmlgen = tarfile_xml_generator(fname) xml0 = next(xmlgen) for pkt in xmlgen: foo(pkt)
"Generator for iterating through xml files in a tarball.\n\n Returns strings.\n\n Example usage::\n\n xmlgen = tarfile_xml_generator(fname)\n xml0 = next(xmlgen)\n\n for pkt in xmlgen:\n foo(pkt)"
56
false
timstaley/voeventdb
tarfile_xml_generator
38,348
LDU_FT/wummel/patool/_repack_archive
LDU_FT
[ "<BEGIN>\n## `list_tar`", "List a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `extract_tar`", "Extract a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `create_tar`", "Create a TAR archive with the tarfile Python module.\n<END>", "<BEGIN>\n## `get_tar_mode`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repack_archive API. 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 _repack_archive API. 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...
Repackage an archive to a different format.
"Repackage an archive to a different format."
127
false
wummel/patool
_repack_archive
38,349
LDU_FT/horejsek/python-fastjsonschema/global_state_code
LDU_FT
[ "<BEGIN>\n## `indent`", "Decorator for allowing to use method as normal method or with\n context manager for auto-indenting code blocks.\n<END>", "<BEGIN>\n## `resolve_path`", "Return definition from path.\r", " Path is unescaped according https://tools.ietf.org/html/rfc6901\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the global_state_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the global_state_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns global variables for generating function from ``func_code`` as code. Includes compiled regular expressions and imports.
"Returns global variables for generating function from ``func_code`` as code.\n Includes compiled regular expressions and imports."
157
false
horejsek/python-fastjsonschema
global_state_code
38,350
LDU_FT/DeepHorizons/iarm/BLS
LDU_FT
[ "<BEGIN>\n## `ADR`", "ADR Ra, [PC, #imm10_4]\n ADR Ra, label", " Load the address of label or the PC offset into Ra\n Ra must be a low register\n<END>", "<BEGIN>\n## `LDR`", "LDR Ra, [PC, #imm10_4]\n LDR Ra, label\n LDR Ra, =equate\n LDR Ra, [Rb, Rc]\n LDR Ra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BLS API. 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 BLS API. 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...
BLS label Branch to the instruction at label if the C flag is not set or the Z flag is set
"BLS label\n\n Branch to the instruction at label if the C flag is not set or the Z flag is set"
253
false
DeepHorizons/iarm
BLS
38,351
LDU_FT/dpkp/kafka-python/highwater
LDU_FT
[ "<BEGIN>\n## `send_fetches`", "Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.", " Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>", "<BEGIN>\n## `reset_offsets_if_needed`", "Lookup and se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highwater API. 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 highwater API. 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...
Last known highwater offset for a partition. A highwater offset is the offset that will be assigned to the next message that is produced. It may be useful for calculating lag, by comparing with the reported position. Note that both position and highwater refer to the *next* offset -- i....
"Last known highwater offset for a partition.\n\n A highwater offset is the offset that will be assigned to the next\n message that is produced. It may be useful for calculating lag, by\n comparing with the reported position. Note that both position and\n highwater refer to the *next* offset...
787
false
dpkp/kafka-python
highwater
38,352
LDU_FT/ambitioninc/rabbitmq-admin/delete_policy_for_vhost
LDU_FT
[ "<BEGIN>\n## `_api_get`", "A convenience wrapper for _get. Adds headers, auth and base url by\n default\n<END>", "<BEGIN>\n## `_get`", "A wrapper for getting things", " :returns: The response of your get\n :rtype: dict\n<END>", "<BEGIN>\n## `_api_put`", "A convenience wrapper for _p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_policy_for_vhost 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 delete_policy_for_vhost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Delete a specific policy for a vhost. :param vhost: The virtual host of the policy :type vhost: str :param name: The name of the policy :type name: str
"Delete a specific policy for a vhost.\n\n :param vhost: The virtual host of the policy\n :type vhost: str\n :param name: The name of the policy\n :type name: str"
100
false
ambitioninc/rabbitmq-admin
delete_policy_for_vhost
38,353
LDU_FT/jrief/djangocms-cascade/get_next_instance
LDU_FT
[ "<BEGIN>\n## `_enrich_link`", "Enrich the dict glossary['link'] with an identifier onto the model\n<END>", "<BEGIN>\n## `get_form`", "Extend the form for the given plugin with the form SharableCascadeForm\n<END>", "<BEGIN>\n## `get_picture_elements`", "Create a context, used to render a <picture> together...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_instance API. 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_next_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the next plugin instance for the given object. This differs from `obj.get_next_sibling()` which returns an unsorted sibling.
"Return the next plugin instance for the given object.\n This differs from `obj.get_next_sibling()` which returns an unsorted sibling."
78
false
jrief/djangocms-cascade
get_next_instance
38,354
LDU_FT/colab/colab-superarchives-plugin/send_create_list_email
LDU_FT
[ "<BEGIN>\n## `update_score`", "Update the relevance score for this thread.", " The score is calculated with the following variables:", " * vote_weight: 100 - (minus) 1 for each 3 days since\n voted with minimum of 5.\n * replies_weight: 300 - (minus) 1 for each 3 days since\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_create_list_email 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 send_create_list_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Send the notification mail kargs' params: user = User object password = list's password listname = list's name
"Send the notification mail\n kargs' params:\n user = User object\n password = list's password\n listname = list's name"
22
false
colab/colab-superarchives-plugin
send_create_list_email
38,355
LDU_FT/sunlightlabs/django-mediasync/css_print_tag
LDU_FT
[ "<BEGIN>\n## `combo_serve`", "Handles generating a 'combo' file for the given path. This is similar to\n what happens when we upload to S3. Processors are applied, and we get\n the value that we would if we were serving from S3. This is a good way\n to make sure combo files work as intended before rollin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the css_print_tag API. 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 css_print_tag API. 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...
Shortcut to render CSS as a print stylesheet. Usage:: {% css_print "myfile.css" %} Which is equivalent to {% css "myfile.css" "print" %}
"Shortcut to render CSS as a print stylesheet.\n \n Usage::\n \n {% css_print \"myfile.css\" %}\n \n Which is equivalent to\n \n {% css \"myfile.css\" \"print\" %}"
44
false
sunlightlabs/django-mediasync
css_print_tag
38,356
LDU_FT/quaddra/provision/get_driver
LDU_FT
[ "<BEGIN>\n## `NodeDriver_wait_until_running`", "Block until node is fully booted and has an IP address assigned.", " @keyword node: Node instance.\n @type node: C{Node}", " @keyword wait_period: How many seconds to between each loop\n iteration (default is 3)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver API. 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...
A driver represents successful authentication. They become stale, so obtain them as late as possible, and don't cache them.
"A driver represents successful authentication. They become\n stale, so obtain them as late as possible, and don't cache them."
59
false
quaddra/provision
get_driver
38,357
LDU_FT/HDI-Project/mit-d3m/_get_learning_data_resource
LDU_FT
[ "<BEGIN>\n## `build_config`", "root@d3m-example-pod:/# cat /input/185_baseball/test_config.json\n {\n \"problem_schema\": \"/input/TEST/problem_TEST/problemDoc.json\",\n \"problem_root\": \"/input/TEST/problem_TEST\",\n \"dataset_schema\": \"/input/TEST/dataset_TEST/datasetDoc.json\",\n \"t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_learning_data_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_learning_data_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Returns the path of learningData.csv in a dataset
"Returns the path of learningData.csv in a dataset"
15
false
HDI-Project/mit-d3m
_get_learning_data_resource
38,358
LDU_FT/turicas/rows/import_from_uri
LDU_FT
[ "<BEGIN>\n## `import_from_json`", "Import a JSON file or file-like object into a `rows.Table`.", " If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>", "<BEGIN>\n## `export_to_json`", "Export a `ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_from_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Given an URI, detects plugin and encoding and imports into a `rows.Table`
"Given an URI, detects plugin and encoding and imports into a `rows.Table`"
123
false
turicas/rows
import_from_uri
38,359
LDU_FT/openvax/topiary/predict_from_variants
LDU_FT
[ "<BEGIN>\n## `transcript_sort_key`", "Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_from_variants 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 predict_from_variants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Predict epitopes from a Variant collection, filtering options, and optional gene and transcript expression data. Parameters ---------- variants : varcode.VariantCollection transcript_expression_dict : dict Maps from Ensembl transcript IDs to FPKM expression values. ...
"Predict epitopes from a Variant collection, filtering options, and\n optional gene and transcript expression data.\n\n Parameters\n ----------\n variants : varcode.VariantCollection\n\n transcript_expression_dict : dict\n Maps from Ensembl transcript IDs to FPKM expression...
91
false
openvax/topiary
predict_from_variants
38,360
LDU_FT/wdecoster/NanoPlot/make_plots
LDU_FT
[ "<BEGIN>\n## `main`", "Organization function\n -setups logging\n -gets inputdata\n -calls plotting function\n<END>", "<BEGIN>\n## `make_plots`", "Call plotting functions from nanoplotter\n settings[\"lengths_pointer\"] is a column in the DataFrame specifying which lengths to use\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_plots API. 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 make_plots API. 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...
Call plotting functions from nanoplotter settings["lengths_pointer"] is a column in the DataFrame specifying which lengths to use
"Call plotting functions from nanoplotter\n settings[\"lengths_pointer\"] is a column in the DataFrame specifying which lengths to use"
12
false
wdecoster/NanoPlot
make_plots
38,361
LDU_FT/jreese/tasky/start_task
LDU_FT
[ "<BEGIN>\n## `sleep`", "Simple wrapper around `asyncio.sleep()`.\n<END>", "<BEGIN>\n## `stop`", "Cancel the task if it hasn't yet started, or tell it to\n gracefully stop running if it has.\n<END>", "<BEGIN>\n## `task`", "Return a running Task object matching the given name or class.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_task API. 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 start_task API. 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...
Initialize the task, queue it for execution, add the done callback, and keep track of it for when tasks need to be stopped.
"Initialize the task, queue it for execution, add the done callback,\n and keep track of it for when tasks need to be stopped."
42
false
jreese/tasky
start_task
38,362
LDU_FT/stephenmcd/gnotty/parse_feeds
LDU_FT
[ "<BEGIN>\n## `messages`", "Show messages for the given query or day.\n<END>", "<BEGIN>\n## `calendar`", "Show calendar months for the given year/month.\n<END>", "<BEGIN>\n## `_dispatcher`", "This is the method in ``SimpleIRCClient`` that all IRC events\n get passed through. Here we map events to ou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_feeds API. 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_feeds API. 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...
Iterates through each of the feed URLs, parses their items, and sends any items to the channel that have not been previously been parsed.
"Iterates through each of the feed URLs, parses their items, and\n sends any items to the channel that have not been previously\n been parsed."
76
false
stephenmcd/gnotty
parse_feeds
38,363
LDU_FT/Fire-Proof/cuepy/led_id_from_char
LDU_FT
[ "<BEGIN>\n## `_raise_corsair_error`", "Raise error message based on the last reported error from the SDK", " :param error: specify error type\n :type error: int\n :param message: specify error message\n :type message: str\n<END>", "<BEGIN>\n## `device_count`", "Find amount of CUE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the led_id_from_char API. 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 led_id_from_char API. 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 id of a led by the letter Only between A-Z :param char: Character to find led_id from :type char: str :returns: id for led :rtype: int
"Get id of a led by the letter\n Only between A-Z\n\n :param char: Character to find led_id from\n :type char: str\n :returns: id for led\n :rtype: int"
21
false
Fire-Proof/cuepy
led_id_from_char
38,364
LDU_FT/harvard-nrg/yaxil/search
LDU_FT
[ "<BEGIN>\n## `splitarg`", "This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>", "<BEGIN>\n## `search`", "Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 ...
Search for DICOM files within a given directory and receive back a dictionary of {StudyInstanceUID: {SeriesNumber: [files]}} Example usage:: >>> import yaxil.dicom >>> yaxil.dicom.search("~/dicoms").keys() ['1.2.340.500067.8.9.10.11012.13000001401516017181900000200'] :...
"Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {SeriesNumber: [files]}}\n \n Example usage::\n >>> import yaxil.dicom\n >>> yaxil.dicom.search(\"~/dicoms\").keys()\n ['1.2.340.500067.8.9.10.11012.13000001401516017181900000200']\n ...
71
false
harvard-nrg/yaxil
search
38,365
LDU_FT/honzamach/pynspect/grfcbk_strlen
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grfcbk_strlen API. 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 grfcbk_strlen API. 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...
Grammar rule function callback: **strlen**. This function will measure the string length of all subitems of the first item in argument list. :param list args: List of function arguments. :return: Length of all subitems of the first item in argument list. :rtype: int or list
"Grammar rule function callback: **strlen**. This function will measure the\n string length of all subitems of the first item in argument list.\n\n :param list args: List of function arguments.\n :return: Length of all subitems of the first item in argument list.\n :rtype: int or list"
143
false
honzamach/pynspect
grfcbk_strlen
38,366
LDU_FT/learningequality/iceqube/main_loop
LDU_FT
[ "<BEGIN>\n## `wait_for_job_update`", "Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.", " :param job_id: the job's job_id to monitor for changes.\n :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Check if self.trigger_event is set. If it is, then run our function. If not, return early. :param timeout: How long to wait for a trigger event. Defaults to 0. :return:
"Check if self.trigger_event is set. If it is, then run our function. If not, return early.\n :param timeout: How long to wait for a trigger event. Defaults to 0.\n :return:"
93
false
learningequality/iceqube
main_loop
38,367
LDU_FT/csaez/wishlib/cmd_wrapper
LDU_FT
[ "<BEGIN>\n## `inside_softimage`", "Returns a boolean indicating if the code is executed inside softimage.\n<END>", "<BEGIN>\n## `auto_update`", "This class method could be used as decorator on subclasses, it ensures\n update method is called after function execution.\n<END>", "<BEGIN>\n## `update`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Wrap and execute a softimage command accepting named arguments
"Wrap and execute a softimage command accepting named arguments"
22
false
csaez/wishlib
cmd_wrapper
38,368
LDU_FT/bitprophet/ssh/resize_pty
LDU_FT
[ "<BEGIN>\n## `start_client`", "Negotiate a new SSH2 session as a client. This is the first step after\n creating a new L{Transport}. A separate thread is created for protocol\n negotiation.", " If an event is passed in, this method returns immediately. When\n negotiation is done (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resize_pty API. 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 resize_pty API. 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...
Resize the pseudo-terminal. This can be used to change the width and height of the terminal emulation created in a previous L{get_pty} call. @param width: new width (in characters) of the terminal screen @type width: int @param height: new height (in characters) of the terminal screen ...
"Resize the pseudo-terminal. This can be used to change the width and\n height of the terminal emulation created in a previous L{get_pty} call.\n\n @param width: new width (in characters) of the terminal screen\n @type width: int\n @param height: new height (in characters) of the terminal s...
272
false
bitprophet/ssh
resize_pty
38,369
LDU_FT/beetbox/audioread/popen_multiple
LDU_FT
[ "<BEGIN>\n## `_notify_caps`", "The callback for the sinkpad's \"notify::caps\" signal.\n<END>", "<BEGIN>\n## `_pad_added`", "The callback for GstElement's \"pad-added\" signal.\n<END>", "<BEGIN>\n## `_no_more_pads`", "The callback for GstElement's \"no-more-pads\" signal.\n<END>", "<BEGIN>\n## `_new_sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popen_multiple API. 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 popen_multiple API. 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...
Like `subprocess.Popen`, but can try multiple commands in case some are not available. `commands` is an iterable of command names and `command_args` are the rest of the arguments that, when appended to the command name, make up the full first argument to `subprocess.Popen`. The other positional and...
"Like `subprocess.Popen`, but can try multiple commands in case\n some are not available.\n\n `commands` is an iterable of command names and `command_args` are\n the rest of the arguments that, when appended to the command name,\n make up the full first argument to `subprocess.Popen`. The\n other positio...
58
false
beetbox/audioread
popen_multiple
38,370
LDU_FT/whtsky/parguments/run
LDU_FT
[ "<BEGIN>\n## `command`", "Decorator to add a command function to the registry.", " :param func: command function.\n<END>", "<BEGIN>\n## `add_command`", "Add a command function to the registry.", " :param func: command function.\n :param name: default name of func.\n :param doc:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Parse arguments and run the funcs. :param command: name of command to run. default argv[0] :param argv: argument vector to be parsed. sys.argv[1:] is used if not provided. :param help: Set to False to disable automatic help on -h or --help options. :param exit: S...
"Parse arguments and run the funcs.\n\n :param command: name of command to run. default argv[0]\n :param argv: argument vector to be parsed.\n sys.argv[1:] is used if not provided.\n :param help: Set to False to disable automatic\n help on -h or --help options.\n :param...
21
false
whtsky/parguments
run
38,371
LDU_FT/hodgesds/elasticsearch_tornado/create_snapshot
LDU_FT
[ "<BEGIN>\n## `mk_req`", "Helper function to create a tornado HTTPRequest object, kwargs get passed in to\n create the HTTPRequest object. See:\n http://tornado.readthedocs.org/en/latest/httpclient.html#request-objects\n<END>", "<BEGIN>\n## `mk_url`", "Args get parameterized into base url:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_snapshot API. 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 create_snapshot API. 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...
Create a snapshot in repository `<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_ :arg repository: A repository name :arg snapshot: A snapshot name :arg body: The snapshot definition :arg master_timeout: Explicit operation timeout f...
"Create a snapshot in repository\n `<http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html>`_\n\n :arg repository: A repository name\n :arg snapshot: A snapshot name\n :arg body: The snapshot definition\n :arg master_timeout: Explicit operation ti...
31
false
hodgesds/elasticsearch_tornado
create_snapshot
38,372