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/JoeVirtual/KonFoo/deserialize
LDU_FT
[ "<BEGIN>\n## `to_json`", "Returns the selected field *attributes* for each :class:`Field` *nested*\n in the `Container` as a JSON formatted string.", " The *attributes* of each :class:`Field` for containers *nested* in the\n `Container` are viewed as well (chained method call).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API. 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 deserialize API. 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...
De-serializes the `Field` from the byte *buffer* starting at the begin of the *buffer* or with the given *index* by unpacking the bytes to the :attr:`value` of the `Field` in accordance with the decoding *byte order* for the de-serialization and the decoding :attr:`byte_order` of the `Fi...
"De-serializes the `Field` from the byte *buffer* starting at\n the begin of the *buffer* or with the given *index* by unpacking the\n bytes to the :attr:`value` of the `Field` in accordance with the\n decoding *byte order* for the de-serialization and the decoding\n :attr:`byte_order` of th...
233
false
JoeVirtual/KonFoo
deserialize
143,573
LDU_FT/wglass/lighthouse/from_config
LDU_FT
[ "<BEGIN>\n## `get_installed_classes`", "Iterates over installed plugins associated with the `entry_point` and\n returns a dictionary of viable ones keyed off of their names.", " A viable installed plugin is one that is both loadable *and* a subclass\n of the Pluggable subclass in question.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Behaves like the base Configurable class's `from_config()` except this makes sure that the `Pluggable` subclass with the given name is actually a properly installed plugin first.
"Behaves like the base Configurable class's `from_config()` except this\n makes sure that the `Pluggable` subclass with the given name is\n actually a properly installed plugin first."
231
false
wglass/lighthouse
from_config
143,574
LDU_FT/CI-WATER/mapkit/makeSingleBandWKBRaster
LDU_FT
[ "<BEGIN>\n## `getAsKmlGrid`", "Creates a KML file with each cell in the raster represented by a polygon. The result is a vector grid representation of the raster.\n Note that pixels with values between -1 and 0 are omitted as no data values. Also note that this method only works on the first band.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeSingleBandWKBRaster 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 makeSingleBandWKBRaster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generate Well Known Binary via SQL. Must be used on a PostGIS database as it relies on several PostGIS database functions. :param session: SQLAlchemy session object bound to a PostGIS enabled database :param height: Height of the raster (or number of rows) :param width: Width of the rast...
"Generate Well Known Binary via SQL. Must be used on a PostGIS database as it relies on several PostGIS\n database functions.\n :param session: SQLAlchemy session object bound to a PostGIS enabled database\n :param height: Height of the raster (or number of rows)\n :param width: Width of the...
62
false
CI-WATER/mapkit
makeSingleBandWKBRaster
143,575
LDU_FT/xray7224/PyPump/_verb
LDU_FT
[ "<BEGIN>\n## `verifier`", "Will ask user to click link to accept app and write code\n<END>", "<BEGIN>\n## `post_note`", "Post note and return the URL of the posted note\n<END>", "<BEGIN>\n## `get_obj_id`", "Get the id of a PumpObject.", " :param item: id string or PumpObject\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verb API. 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 _verb API. 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...
Posts minimal activity with verb and bare self object. :param verb: verb to be used.
"Posts minimal activity with verb and bare self object.\n :param verb: verb to be used."
100
false
xray7224/PyPump
_verb
143,576
LDU_FT/facebook/pyre-check/file_handles
LDU_FT
[ "<BEGIN>\n## `log_time`", "Log the time it takes to run a function. It's sort of like timeit, but\n prettier.\n<END>", "<BEGIN>\n## `daemonize`", "We double-fork here to detach the daemon process from the parent.\n If we were to just fork the child as a daemon, we'd have to worry about the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_handles API. 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 file_handles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Generates all file handles represented by the analysis. Callee owns file handle and closes it when the next is yielded or the generator ends.
"Generates all file handles represented by the analysis.\n Callee owns file handle and closes it when the next is yielded or the\n generator ends."
150
false
facebook/pyre-check
file_handles
143,577
LDU_FT/PetrochukM/PyTorch-NLP/pad_tensor
LDU_FT
[ "<BEGIN>\n## `imdb_dataset`", "Load the IMDB dataset (Large Movie Review Dataset v1.0).", " This is a dataset for binary sentiment classification containing substantially more data than\n previous benchmark datasets. Provided a set of 25,000 highly polar movie reviews for\n training, and 25,000 for tes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad_tensor API. 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 pad_tensor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Pad a ``tensor`` to ``length`` with ``padding_index``. Args: tensor (torch.Tensor [n, ...]): Tensor to pad. length (int): Pad the ``tensor`` up to ``length``. padding_index (int, optional): Index to pad tensor with. Returns (torch.Tensor [length, ...]) Padded Tensor.
"Pad a ``tensor`` to ``length`` with ``padding_index``.\n\n Args:\n tensor (torch.Tensor [n, ...]): Tensor to pad.\n length (int): Pad the ``tensor`` up to ``length``.\n padding_index (int, optional): Index to pad tensor with.\n\n Returns\n (torch.Tensor [length, ...]) Padded Tensor."
261
false
PetrochukM/PyTorch-NLP
pad_tensor
143,578
LDU_FT/nephila/djangocms-helper/cms_check
LDU_FT
[ "<BEGIN>\n## `run`", "Run commands in a plain django environment", " :param app: application\n :param argv: arguments (default to sys.argv)\n :param extra_args: list of extra arguments\n<END>", "<BEGIN>\n## `cms`", "Run commands in a django cMS environment", " :param app: application\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cms_check API. 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 cms_check API. 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...
Runs the django CMS ``cms check`` command
"Runs the django CMS ``cms check`` command"
25
false
nephila/djangocms-helper
cms_check
143,579
LDU_FT/cole/aiosmtplib/auth_login
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Modified ``connection_made`` that supports upgrading our transport in\n place using STARTTLS.", " We set the _transport directly on the StreamReader, rather than calling\n set_transport (which will raise an AssertionError on upgrade).\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
LOGIN auth sends the Base64 encoded username and password in sequence. Example:: 250 AUTH LOGIN PLAIN CRAM-MD5 auth login avlsdkfj 334 UGFzc3dvcmQ6 avlsdkfj Note that there is an alternate version sends the username as a separate command:: ...
"LOGIN auth sends the Base64 encoded username and password in sequence.\n\n Example::\n\n 250 AUTH LOGIN PLAIN CRAM-MD5\n auth login avlsdkfj\n 334 UGFzc3dvcmQ6\n avlsdkfj\n\n Note that there is an alternate version sends the username\n as a separate comm...
142
false
cole/aiosmtplib
auth_login
143,580
LDU_FT/nint8835/jigsaw/load_plugin
LDU_FT
[ "<BEGIN>\n## `load_manifests`", "Loads all plugin manifests on the plugin path\n<END>", "<BEGIN>\n## `load_manifest`", "Loads a plugin manifest from a given path", " :param path: The folder to load the plugin manifest from\n<END>", "<BEGIN>\n## `load_plugin`", "Loads a plugin from the given manif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugin API. 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 load_plugin API. 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...
Loads a plugin from the given manifest :param manifest: The manifest to use to load the plugin :param args: Arguments to pass to the plugin
"Loads a plugin from the given manifest\n\n :param manifest: The manifest to use to load the plugin\n :param args: Arguments to pass to the plugin"
25
false
nint8835/jigsaw
load_plugin
143,581
LDU_FT/tensorflow/mesh/gradients
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gradients API. 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 gradients API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Compute gradients in dtf. Args: ys: a list of Tensors xs: a list of Tensors grad_ys: an optional list of Tensors Returns: grad_xs: a list of Tensors
"Compute gradients in dtf.\n\n Args:\n ys: a list of Tensors\n xs: a list of Tensors\n grad_ys: an optional list of Tensors\n\n Returns:\n grad_xs: a list of Tensors"
958
false
tensorflow/mesh
gradients
143,582
LDU_FT/cebel/pyctd/import_table_in_db
LDU_FT
[ "<BEGIN>\n## `set_mysql`", "Set the SQLAlchemy connection string with MySQL settings\n<END>", "<BEGIN>\n## `_limit_and_df`", "adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame", " :param bool as_df: if is set to True results return as pandas.DataFrame\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_table_in_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_table_in_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. Th...
Imports data from CTD file into database :param str file_path: path to file :param list[int] use_columns_with_index: list of column indices in file :param list[str] column_names_in_db: list of column names (have to fit to models except domain_id column name) :param table: `manag...
"Imports data from CTD file into database\n \n :param str file_path: path to file\n :param list[int] use_columns_with_index: list of column indices in file\n :param list[str] column_names_in_db: list of column names (have to fit to models except domain_id column name)\n :param table: ...
126
false
cebel/pyctd
import_table_in_db
143,583
LDU_FT/redhat-openstack/python-tripleo-helper/deploy
LDU_FT
[ "<BEGIN>\n## `start`", "Start the ssh client and connect to the host.", " It will wait until the ssh service is available during 90 seconds.\n If it doesn't succed to connect then the function will raise\n an SSHException.\n<END>", "<BEGIN>\n## `run`", "Run a command on the remote host....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy API. 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 deploy API. 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 the node. This method should only be called by the BaremetalFactory.
"Create the node.\n\n This method should only be called by the BaremetalFactory."
82
false
redhat-openstack/python-tripleo-helper
deploy
143,584
LDU_FT/trombastic/PyScada/add
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. 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...
add a new massage/error notice to the log <0 - Debug 1 - Emergency 2 - Critical 3 - Errors 4 - Alerts 5 - Warnings 6 - Notification (webnotice) 7 - Information (webinfo) 8 - Notification (notice) 9 - Information (info)
"add a new massage/error notice to the log\n <0 - Debug\n 1 - Emergency\n 2 - Critical\n 3 - Errors\n 4 - Alerts\n 5 - Warnings\n 6 - Notification (webnotice)\n 7 - Information (webinfo)\n 8 - Notification (notice)\n 9 - Information (info)"
60
false
trombastic/PyScada
add
143,585
LDU_FT/partofthething/ace/run_friedman82_super
LDU_FT
[ "<BEGIN>\n## `run_friedman82_super`", "Run Friedman's test of fixed-span smoothers from Figure 2b.\n<END>", "<BEGIN>\n## `validate_supersmoother_bass`", "Validate the supersmoother with extra bass.\n<END>", "<BEGIN>\n## `unsort_vector`", "Upermutate 1-D data that is sorted by indices_of_increasing.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_friedman82_super API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_friedman82_super API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Run Friedman's test of fixed-span smoothers from Figure 2b.
"Run Friedman's test of fixed-span smoothers from Figure 2b."
115
false
partofthething/ace
run_friedman82_super
143,586
LDU_FT/MSchnei/pyprf_feature/pyprf_opt_brute
LDU_FT
[ "<BEGIN>\n## `pyprf`", "Main function for pRF mapping.", " Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes, absolute path of pyprf libary\n will be prepended to config file paths.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pyprf_opt_brute API. 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 pyprf_opt_brute API. 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...
Function for optimizing given pRF paramaters using brute-force grid search. Parameters ---------- strCsvCnfg : str Absolute file path of config file. objNspc : object Name space from command line arguments. lgcTest : Boolean Whether this is a test (pytest). If yes, absolute ...
"Function for optimizing given pRF paramaters using brute-force grid search.\n\n Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n objNspc : object\n Name space from command line arguments.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes,...
266
false
MSchnei/pyprf_feature
pyprf_opt_brute
143,587
LDU_FT/lambdalisue/maidenhair/load
LDU_FT
[ "<BEGIN>\n## `load`", "Load data from file matched with given glob pattern.", " Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True` then all data will be united into a single data.", " Parameters\n ----------\n pathname : string or list\n A gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
Parse a file specified with the filename and return an numpy array Parameters ---------- filename : string A path of a file Returns ------- ndarray An instance of numpy array
"Parse a file specified with the filename and return an numpy array\n\n Parameters\n ----------\n filename : string\n A path of a file\n\n Returns\n -------\n ndarray\n An instance of numpy array"
128
false
lambdalisue/maidenhair
load
143,588
LDU_FT/hawkular/hawkular-client-python/dampenings
LDU_FT
[ "<BEGIN>\n## `create_datapoint`", "Creates a single datapoint dict with a value, timestamp and tags.", " :param value: Value of the datapoint. Type depends on the id's MetricType\n :param timestamp: Optional timestamp of the datapoint. Uses client current time if not set. Millisecond accuracy. Can be date...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dampenings API. 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 dampenings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get all Dampenings for a Trigger (1 Dampening per mode). :param trigger_id: Trigger definition id to be retrieved. :param trigger_mode: Optional TriggerMode which is only fetched :type trigger_mode: TriggerMode :return: List of Dampening objects
"Get all Dampenings for a Trigger (1 Dampening per mode).\n\n :param trigger_id: Trigger definition id to be retrieved.\n :param trigger_mode: Optional TriggerMode which is only fetched\n :type trigger_mode: TriggerMode\n :return: List of Dampening objects"
116
false
hawkular/hawkular-client-python
dampenings
143,589
LDU_FT/FlaskGuys/Flask-Imagine/apply
LDU_FT
[ "<BEGIN>\n## `apply`", "Apply filter to resource\n :param resource: Image\n :return: Image\n<END>", "<BEGIN>\n## `get_item`", "Get resource item\n :param path: string\n :return: PIL.Image\n<END>", "<BEGIN>\n## `create_cached_item`", "Create cached resource item\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. 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 apply API. 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...
Apply filter to resource :param resource: Image :return: Image
"Apply filter to resource\n :param resource: Image\n :return: Image"
66
false
FlaskGuys/Flask-Imagine
apply
143,590
LDU_FT/jingming/spotify/parse_code
LDU_FT
[ "<BEGIN>\n## `auth_string`", "Get the auth string. If the token is expired and auto refresh enabled,\n a new token will be fetched", " :return: the auth string\n :rtype: str\n<END>", "<BEGIN>\n## `tracks`", "Tracks list context", " :return: Tracks list context\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac...
Parse the code parameter from the a URL :param str url: URL to parse :return: code query parameter :rtype: str
"Parse the code parameter from the a URL\n\n :param str url: URL to parse\n :return: code query parameter\n :rtype: str"
18
false
jingming/spotify
parse_code
143,591
LDU_FT/ellisonleao/pyshorteners/short
LDU_FT
[ "<BEGIN>\n## `short`", "Short implementation for Adf.ly\n Args:\n url: the URL you want to shorten", " Returns:\n A string containing the shortened URL", " Raises:\n BadAPIResponseException: If the data is malformed or we got a bad\n status code...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short API. 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 short API. 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...
Short implementation for Bit.ly Args: url: the URL you want to shorten Returns: A string containing the shortened URL Raises: BadAPIResponseException: If the data is malformed or we got a bad status code on API response ShorteningErro...
"Short implementation for Bit.ly\n Args:\n url: the URL you want to shorten\n\n Returns:\n A string containing the shortened URL\n\n Raises:\n BadAPIResponseException: If the data is malformed or we got a bad\n status code on API response\n Sho...
22
false
ellisonleao/pyshorteners
short
143,592
LDU_FT/HDI-Project/BTB/tune_pipeline
LDU_FT
[ "<BEGIN>\n## `tune_pipeline`", "Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.", " Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tune_pipeline API. 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 tune_pipeline API. 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...
Tunes a specified pipeline with the specified tuner for TUNING_BUDGET_PER_ITER (3) iterations. Params: X: np.array of X training data y: np.array of y training data X_val: np.array of X validation data y_val: np.array of y validation data generate_model: function that re...
"Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.\n\n Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validation data\n generate_model: functio...
75
false
HDI-Project/BTB
tune_pipeline
143,593
LDU_FT/CalebBell/fpi/Flemmer_Banks
LDU_FT
[ "<BEGIN>\n## `Rizk`", "r'''Calculates saltation velocity of the gas for pneumatic conveying,\n according to [1]_ as described in [2]_ and many others.", " .. math::\n \\mu=\\left(\\frac{1}{10^{1440d_p+1.96}}\\right)\\left(Fr_s\\right)^{1100d_p+2.5}", " Fr_s = \\frac{V_{salt}}{\\sqrt{gD}}",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Flemmer_Banks API. 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 Flemmer_Banks API. 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...
r'''Calculates drag coefficient of a smooth sphere using the method in [1]_ as described in [2]_. .. math:: C_D = \frac{24}{Re}10^E E = 0.383Re^{0.356}-0.207Re^{0.396} - \frac{0.143}{1+(\log_{10} Re)^2} Parameters ---------- Re : float Reynolds number of the sphere, [-] ...
"r'''Calculates drag coefficient of a smooth sphere using the method in\n [1]_ as described in [2]_.\n\n .. math::\n C_D = \\frac{24}{Re}10^E\n\n E = 0.383Re^{0.356}-0.207Re^{0.396} - \\frac{0.143}{1+(\\log_{10} Re)^2}\n\n Parameters\n ----------\n Re : float\n Reynolds number of the...
121
false
CalebBell/fpi
Flemmer_Banks
143,594
LDU_FT/gabstopper/smc-python/sginfo
LDU_FT
[ "<BEGIN>\n## `element_href`", "Get specified element href by element name", " :param name: name of element\n :return: string href location of object, else None\n<END>", "<BEGIN>\n## `element_as_json`", "Get specified element json data by name", " :param name: name of element\n :return: json da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sginfo API. 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 sginfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get the SG Info of the specified node. Optionally provide a filename, otherwise default to 'sginfo.gz'. Once you run gzip -d <filename>, the inner contents will be in .tar format. :param include_core_files: flag to include or not core files :param include_slapcat_output: flag to include...
"Get the SG Info of the specified node. Optionally provide\n a filename, otherwise default to 'sginfo.gz'. Once you run\n gzip -d <filename>, the inner contents will be in .tar format.\n\n :param include_core_files: flag to include or not core files\n :param include_slapcat_output: flag to i...
1,703
true
gabstopper/smc-python
sginfo
143,595
LDU_FT/Legobot/Legobot/build_reply_opts
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_reply_opts API. 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 build_reply_opts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convenience method for constructing default options for a reply message. :param message: the message to reply to :return: opts
"Convenience method for constructing default options for a\n reply message.\n\n :param message: the message to reply to\n :return: opts"
119
false
Legobot/Legobot
build_reply_opts
143,596
LDU_FT/jaysonsantos/python-binary-memcached/decr
LDU_FT
[ "<BEGIN>\n## `str_to_bytes`", "Simply convert a string type to bytes if the value is a string\n and is an instance of six.string_types but not of six.binary_type\n in python2 struct.pack(\"<Q\") is both string_types and binary_type but\n in python3 struct.pack(\"<Q\") is binary_type but not a string_type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decr API. 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 decr API. 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...
Decrement a key, if it exists, returns its actual value, if it doesn't, return 0. Minimum value of decrement return is 0. :param key: Key's name :type key: six.string_types :param value: Number to be decremented :type value: int :param default: Default value if key does ...
"Decrement a key, if it exists, returns its actual value, if it doesn't, return 0.\n Minimum value of decrement return is 0.\n\n :param key: Key's name\n :type key: six.string_types\n :param value: Number to be decremented\n :type value: int\n :param default: Default value if k...
132
false
jaysonsantos/python-binary-memcached
decr
143,597
LDU_FT/miyakogi/wdom/add_favicon_path
LDU_FT
[ "<BEGIN>\n## `get_class_list`", "Get class-level class list, including all super class's.\n<END>", "<BEGIN>\n## `removeClass`", "[Not Standard] Remove classes from this node.\n<END>", "<BEGIN>\n## `appendChild`", "Append child node at the last of child nodes.", " If this instance is connected to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_favicon_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_favicon_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add path to serve favicon file. ``path`` should be a directory, which contains favicon file (``favicon.ico``) for your app.
"Add path to serve favicon file.\n\n ``path`` should be a directory, which contains favicon file\n (``favicon.ico``) for your app."
233
false
miyakogi/wdom
add_favicon_path
143,598
LDU_FT/transifex/transifex-python-library/_create
LDU_FT
[ "<BEGIN>\n## `get`", "Retrieve an object by making a GET request to Transifex.", " Each value in `kwargs` that corresponds to a field\n defined in `self.url_fields` will be used in the URL path\n of the request, so that a particular entry of this model\n is identified and retrieved."...
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 resource in the remote Transifex server.
"Create a resource in the remote Transifex server."
64
false
transifex/transifex-python-library
_create
143,599
LDU_FT/Xion/taipan/_wrap_decorator
LDU_FT
[ "<BEGIN>\n## `decorator`", "Decorator for decorators (sic), written either as classes or functions.", " In either case, the decorator ``decor`` must be \"doubly-callable\":", " * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_decorator API. 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 _wrap_decorator API. 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...
Wraps given decorator in order to provide additional functionality: optional arguments and verification of decorator's target type. :param decorator: Decorator callable :param targets: Name of the decorator targets, as plural (used in error messages) :param is_valid_target: Callable...
"Wraps given decorator in order to provide additional functionality:\n optional arguments and verification of decorator's target type.\n\n :param decorator: Decorator callable\n :param targets: Name of the decorator targets, as plural\n (used in error messages)\n :param is_valid_target: C...
396
false
Xion/taipan
_wrap_decorator
143,600
LDU_FT/thejunglejane/datums/get_or_create_from_legacy_response
LDU_FT
[ "<BEGIN>\n## `run_migrations_offline`", "Run migrations in 'offline' mode.", " This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.", " Calls to context.exec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_from_legacy_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create_from_legacy_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
If a record matching the instance already does not already exist in the database, then create a new record.
"If a record matching the instance already does not already exist in the\n database, then create a new record."
30
false
thejunglejane/datums
get_or_create_from_legacy_response
143,601
LDU_FT/inveniosoftware/invenio-records-rest/put
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Replace a record. Permissions: ``update_permission_factory`` The body should be a JSON object, which will fully replace the current record metadata. Procedure description: #. The ETag is checked. #. The record is updated by calling the record API `clear()`, ...
"Replace a record.\n\n Permissions: ``update_permission_factory``\n\n The body should be a JSON object, which will fully replace the current\n record metadata.\n\n Procedure description:\n\n #. The ETag is checked.\n\n #. The record is updated by calling the record API `clear()...
165
false
inveniosoftware/invenio-records-rest
put
143,602
LDU_FT/koriakin/binflakes/sext
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sext API. 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 sext API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Sign-extends a word to a larger width. It is an error to specify a smaller width (use ``extract`` instead to crop off the extra bits).
"Sign-extends a word to a larger width. It is an error to specify\n a smaller width (use ``extract`` instead to crop off the extra bits)."
59
false
koriakin/binflakes
sext
143,603
LDU_FT/hozn/keepassdb/load
LDU_FT
[ "<BEGIN>\n## `to_struct`", "Initialize properties of the appropriate struct class from this model class.\n<END>", "<BEGIN>\n## `move`", "Move this group to a new parent.", " :param parent: The new parent group; if None will be root group.\n :type parent: :class:`keepassdb.model.Group`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
Load the database from file/stream. :param dbfile: The database file path/stream. :type dbfile: str or file-like object :param password: The password for the database. :type password: str :param keyfile: Path to a keyfile (or a stream) that can be used instead of or in c...
"Load the database from file/stream.\n \n :param dbfile: The database file path/stream.\n :type dbfile: str or file-like object\n :param password: The password for the database.\n :type password: str\n :param keyfile: Path to a keyfile (or a stream) that can be used instead of ...
89
false
hozn/keepassdb
load
143,604
LDU_FT/matthew-sochor/transfer/store_config
LDU_FT
[ "<BEGIN>\n## `int_input`", "Ask a user for a int input between two values", " args:\n message (str): Prompt for user\n low (int): Low value, user entered value must be > this value to be accepted\n high (int): High value, user entered value must be < this value to be accepted\n sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Store configuration args: config (list[dict]): configurations for each project
"Store configuration\n\n args:\n config (list[dict]): configurations for each project"
29
false
matthew-sochor/transfer
store_config
143,605
LDU_FT/zkbt/the-friendly-stars/summarize
LDU_FT
[ "<BEGIN>\n## `from_coordinates`", "Iniitalize a constellation object.", " Parameters\n ----------", " ra, dec, distance, pm_ra_cosdec, pm_dec, radial_velocity\n These must be able to initialize a SkyCoord.\n id : list, array\n Identifications for the entries.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize API. 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 summarize API. 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...
Print a summary of the contents of this object.
"Print a summary of the contents of this object."
52
false
zkbt/the-friendly-stars
summarize
143,606
LDU_FT/MozillaSecurity/fuzzfetch/main
LDU_FT
[ "<BEGIN>\n## `_si`", "Format a number using base-2 SI prefixes\n<END>", "<BEGIN>\n## `_extract_file`", "Extract files while explicitly setting the proper permissions\n<END>", "<BEGIN>\n## `build_string`", "Taskcluster denotes builds in one of two formats - i.e. linux64-asan or linux64-asan-opt\n Th...
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...
fuzzfetch main entry point Run with --help for usage
"fuzzfetch main entry point\n\n Run with --help for usage"
60
false
MozillaSecurity/fuzzfetch
main
143,607
LDU_FT/DecBayComp/RWA-python/isreference
LDU_FT
[ "<BEGIN>\n## `hdf5_storable`", "Registers a `Storable` instance in the global service.\n<END>", "<BEGIN>\n## `isreference`", "Tell whether a variable is an object reference.", " Due to garbage collection, some objects happen to get the id of a distinct variable.\n As a consequence, linking is not read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isreference API. 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 isreference API. 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...
Tell whether a variable is an object reference. Due to garbage collection, some objects happen to get the id of a distinct variable. As a consequence, linking is not ready yet and `isreference` returns ``False``.
"Tell whether a variable is an object reference.\n\n Due to garbage collection, some objects happen to get the id of a distinct variable.\n As a consequence, linking is not ready yet and `isreference` returns ``False``."
130
false
DecBayComp/RWA-python
isreference
143,608
LDU_FT/programa-stic/barf-project/_translate_jcc
LDU_FT
[ "<BEGIN>\n## `translate`", "Return the SMT representation of a REIL instruction.\n<END>", "<BEGIN>\n## `_translate_src_oprnd`", "Translate source operand to a SMT expression.\n<END>", "<BEGIN>\n## `_translate_dst_oprnd`", "Translate destination operand to a SMT expression.\n<END>", "<BEGIN>\n## `_transl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _translate_jcc API. 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 _translate_jcc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a formula representation of a JCC instruction.
"Return a formula representation of a JCC instruction."
148
false
programa-stic/barf-project
_translate_jcc
143,609
LDU_FT/cdgriffith/Box/to_dict
LDU_FT
[ "<BEGIN>\n## `_safe_attr`", "Convert a key into something that is accessible as an attribute\n<END>", "<BEGIN>\n## `_camel_killer`", "CamelKiller, qu'est-ce que c'est?", " Taken from http://stackoverflow.com/a/1176023/3244542\n<END>", "<BEGIN>\n## `_conversion_checks`", "Internal use for checking if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Turn the Box and sub Boxes back into a native python dictionary. :return: python dictionary of this Box
"Turn the Box and sub Boxes back into a native\n python dictionary.\n\n :return: python dictionary of this Box"
31
false
cdgriffith/Box
to_dict
143,610
LDU_FT/Cologler/fsoopify-python/get_file_hash
LDU_FT
[ "<BEGIN>\n## `from_caller_file`", "return a `Path` from the path of caller file\n<END>", "<BEGIN>\n## `from_caller_module_root`", "return a `Path` from module root which include the caller\n<END>", "<BEGIN>\n## `get_parent`", "get parent dir as a `DirectoryInfo`.", " return `None` if self is top....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
get lower case hash of file. return value is a tuple, you may need to unpack it. for example: `get_file_hash('md5', 'sha1')` return `('XXXX1', 'XXXX2')`
"get lower case hash of file.\n\n return value is a tuple, you may need to unpack it.\n\n for example: `get_file_hash('md5', 'sha1')` return `('XXXX1', 'XXXX2')`"
39
false
Cologler/fsoopify-python
get_file_hash
143,611
LDU_FT/Alignak-monitoring/alignak/unset_impact_state
LDU_FT
[ "<BEGIN>\n## `is_active`", "Know if this result modulation is active now", " :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>", "<BEGIN>\n## `module_return`", "Module the exit code if necessary ::", " * modulation_period is legit\n * exit_code_modula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unset_impact_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unset_impact_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Unset impact, only if impact state change is set in configuration :return: None
"Unset impact, only if impact state change is set in configuration\n\n :return: None"
3,377
true
Alignak-monitoring/alignak
unset_impact_state
143,612
LDU_FT/avelkoski/FRB/query_params
LDU_FT
[ "<BEGIN>\n## `all_releases`", "Function to request all releases of economic data.\n `<https://research.stlouisfed.org/docs/api/fred/releases.html>`_", " :arg str response_type: File extension of response. Options are 'xml', 'json',\n 'dict','df','numpy','csv','tab,'pipe'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_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 query_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...
Decorator that pops all accepted parameters from method's kwargs and puts them in the params argument. Modeled after elasticsearch-py client utils strategy. See https://github.com/elastic/elasticsearch-py/blob/3400179153cc13b6ae2c26734337202569bdfd80/elasticsearch/client/utils.py
"Decorator that pops all accepted parameters from method's kwargs and puts\n them in the params argument. Modeled after elasticsearch-py client utils strategy.\n See https://github.com/elastic/elasticsearch-py/blob/3400179153cc13b6ae2c26734337202569bdfd80/elasticsearch/client/utils.py"
40
false
avelkoski/FRB
query_params
143,613
LDU_FT/mikeboers/MultiMap/_conform_pair
LDU_FT
[ "<BEGIN>\n## `_rebuild_key_ids`", "Rebuild the internal key to index mapping.\n<END>", "<BEGIN>\n## `_conform_pair`", "Force a given key/value pair into a certain form.", " Override the _conform_key and _conform_value if you want to change\n the mapping behaviour.\n<END>", "<BEGIN>\n## `geta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conform_pair API. 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 _conform_pair API. 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...
Force a given key/value pair into a certain form. Override the _conform_key and _conform_value if you want to change the mapping behaviour.
"Force a given key/value pair into a certain form.\n \n Override the _conform_key and _conform_value if you want to change\n the mapping behaviour."
35
false
mikeboers/MultiMap
_conform_pair
143,614
LDU_FT/captin411/ofxclient/statement
LDU_FT
[ "<BEGIN>\n## `is_secure_option`", "Test an option to see if it is secured or not.", " :param section: section id\n :type section: string\n :param option: option name\n :type option: string\n :rtype: boolean\n otherwise.\n<END>", "<BEGIN>\n## `items`", "Get all items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the statement API. 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 statement API. 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...
Download the :py:class:`ofxparse.Statement` given the time range :param days: Number of days to look back at :type days: integer :rtype: :py:class:`ofxparser.Statement`
"Download the :py:class:`ofxparse.Statement` given the time range\n\n :param days: Number of days to look back at\n :type days: integer\n :rtype: :py:class:`ofxparser.Statement`"
93
false
captin411/ofxclient
statement
143,615
LDU_FT/Element-34/py.saunter/assert_text_present
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_text_present 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 assert_text_present 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...
Hard assert for whether the text if visible in the current window/frame :params text: the string to search for :params msg: (Optional) msg explaining the difference
"Hard assert for whether the text if visible in the current window/frame\n\n :params text: the string to search for\n :params msg: (Optional) msg explaining the difference"
81
false
Element-34/py.saunter
assert_text_present
143,616
LDU_FT/mgbarrero/xbob.db.atvskeystroke/add_command
LDU_FT
[ "<BEGIN>\n## `dumplist`", "Dumps lists of files based on your criteria\n<END>", "<BEGIN>\n## `checkfiles`", "Checks existence of files based on your criteria\n<END>", "<BEGIN>\n## `reverse`", "Returns a list of file database identifiers given the path stems\n<END>", "<BEGIN>\n## `path`", "Returns a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add specific subcommands that the action "create" can use
"Add specific subcommands that the action \"create\" can use"
45
false
mgbarrero/xbob.db.atvskeystroke
add_command
143,617
LDU_FT/DistrictDataLabs/yellowbrick/data
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read all of the documents from disk into an in-memory list.
"Read all of the documents from disk into an in-memory list."
1,283
true
DistrictDataLabs/yellowbrick
data
143,618
LDU_FT/blue-yonder/tsfresh/augmented_dickey_fuller
LDU_FT
[ "<BEGIN>\n## `_function_with_partly_reduce`", "Small helper function to call a function (map_function)\n on a list of data chunks (chunk_list) and convert the results into\n a flattened list.", " This function is used to send chunks of data with a size larger than 1 to\n the workers in parallel and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the augmented_dickey_fuller 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 augmented_dickey_fuller API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
The Augmented Dickey-Fuller test is a hypothesis test which checks whether a unit root is present in a time series sample. This feature calculator returns the value of the respective test statistic. See the statsmodels implementation for references and more details. :param x: the time series to calculate ...
"The Augmented Dickey-Fuller test is a hypothesis test which checks whether a unit root is present in a time\n series sample. This feature calculator returns the value of the respective test statistic.\n\n See the statsmodels implementation for references and more details.\n\n :param x: the time series to calc...
615
false
blue-yonder/tsfresh
augmented_dickey_fuller
143,619
LDU_FT/rhayes777/PyAutoFit/physical_values_ordered_by_class
LDU_FT
[ "<BEGIN>\n## `residual_map_from_data_mask_and_model_data`", "Compute the residual map between a masked observed data and model data, where:", " Residuals = (Data - Model_Data).", " Parameters\n -----------\n data : np.ndarray\n The observed data that is fitted.\n mask : np.ndarray\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the physical_values_ordered_by_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the physical_values_ordered_by_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Parameters ---------- hypercube_vector: [float] A unit vector Returns ------- physical_values: [float] A list of physical values constructed by passing the values in the hypercube vector through associated priors.
"Parameters\n ----------\n hypercube_vector: [float]\n A unit vector\n\n Returns\n -------\n physical_values: [float]\n A list of physical values constructed by passing the values in the hypercube vector through associated\n priors."
243
false
rhayes777/PyAutoFit
physical_values_ordered_by_class
143,620
LDU_FT/merantix/picasso/visualize
LDU_FT
[ "<BEGIN>\n## `preprocess`", "Convert images into the format required by our model.", " Our model requires that inputs be grayscale (mode 'L'), be resized to\n `MNIST_DIM`, and be represented as float32 numpy arrays in range\n [0, 1].", " Args:\n raw_inputs (list of Image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visualize API. 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 visualize API. 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...
Trigger a visualization via the REST API Takes a single image and generates the visualization data, returning the output exactly as given by the target visualization.
"Trigger a visualization via the REST API\n\n Takes a single image and generates the visualization data, returning the\n output exactly as given by the target visualization."
51
false
merantix/picasso
visualize
143,621
LDU_FT/tjguk/networkzero/is_valid_ip_pattern
LDU_FT
[ "<BEGIN>\n## `get_command`", "Attempt to return a unicode object from the command socket", " If no message is available without blocking (as opposed to a blank \n message), return None\n<END>", "<BEGIN>\n## `send_response`", "Send a unicode object as reply to the most recently-issued command\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_ip_pattern 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 is_valid_ip_pattern 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...
Check whether a string matches the outline of an IPv4 address, allowing "*" as a wildcard
"Check whether a string matches the outline of an IPv4 address,\n allowing \"*\" as a wildcard"
76
false
tjguk/networkzero
is_valid_ip_pattern
143,622
LDU_FT/johnnoone/json-spec/register
LDU_FT
[ "<BEGIN>\n## `check`", "Check if value exists into object.", " :param doc: the document base\n :param pointer: the path to search in\n :param expected: the expected value\n :param raise_onerror: should raise on error?\n :return: boolean\n<END>", "<BEGIN>\n## `add`", "Add element to sequence, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Expose compiler to factory. :param func: the callable to expose :type func: callable :param name: name of format :type name: str It can be used as a decorator:: @register(name='my:validator') def my_validator(obj): if obj is True: return obj ...
"Expose compiler to factory.\n\n :param func: the callable to expose\n :type func: callable\n :param name: name of format\n :type name: str\n\n It can be used as a decorator::\n\n @register(name='my:validator')\n def my_validator(obj):\n if obj is True:\n return ob...
113
false
johnnoone/json-spec
register
143,623
LDU_FT/keans/lmnotify/set_apps_list
LDU_FT
[ "<BEGIN>\n## `_exec`", "execute a command at the device using the RESTful API", " :param str cmd: one of the REST commands, e.g. GET or POST\n :param str url: URL of the REST API the command should be applied to\n :param dict json_data: json data that should be attached to the command\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_apps_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_apps_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
gets installed apps and puts them into the available_apps list
"gets installed apps and puts them into the available_apps list"
69
false
keans/lmnotify
set_apps_list
143,624
LDU_FT/finklabs/metrics/process_token
LDU_FT
[ "<BEGIN>\n## `format`", "Compute output in CSV format (only file_metrics).\n<END>", "<BEGIN>\n## `glob_files`", "Powerful and flexible utility to search and tag files using patterns.\n :param root_dir: directory where we start the search\n :param includes: list or iterator of include pattern tuples (pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ext...
count comments and non-empty lines that contain code
"count comments and non-empty lines that contain code"
17
false
finklabs/metrics
process_token
143,625
LDU_FT/JelleAalbers/multihist/lookup_hist
LDU_FT
[ "<BEGIN>\n## `from_histogram`", "Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_hist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_hist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return histogram within binning of Histdd mh, with values looked up in this histogram. This is not rebinning: no interpolation /renormalization is performed. It's just a lookup.
"Return histogram within binning of Histdd mh, with values looked up in this histogram.\n\n This is not rebinning: no interpolation /renormalization is performed.\n It's just a lookup."
57
false
JelleAalbers/multihist
lookup_hist
143,626
LDU_FT/kytos/kytos-utils/uninstall
LDU_FT
[ "<BEGIN>\n## `get_napp`", "Return napp metadata or None if not found.\n<END>", "<BEGIN>\n## `reload_napps`", "Reload a specific NApp or all Napps.", " Args:\n napp (list): NApp list to be reload.\n Raises:\n requests.HTTPError: When there's a server error.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uninstall API. 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 uninstall API. 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...
Uninstall and delete NApps. For local installations, do not delete code outside install_path and enabled_path.
"Uninstall and delete NApps.\n\n For local installations, do not delete code outside install_path and\n enabled_path."
128
false
kytos/kytos-utils
uninstall
143,627
LDU_FT/batiste/django-page-cms/get_url_path
LDU_FT
[ "<BEGIN>\n## `register_widget`", "Register the given widget as a candidate to use in placeholder.\n<END>", "<BEGIN>\n## `get_widget`", "Give back a widget class according to his name.\n<END>", "<BEGIN>\n## `save_model`", "Move the page in the tree if necessary and save every\n placeholder :class:`C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the URL's path component. Add the language prefix if ``PAGE_USE_LANGUAGE_PREFIX`` setting is set to ``True``. :param language: the wanted url language.
"Return the URL's path component. Add the language prefix if\n ``PAGE_USE_LANGUAGE_PREFIX`` setting is set to ``True``.\n\n :param language: the wanted url language."
218
false
batiste/django-page-cms
get_url_path
143,628
LDU_FT/iancmcc/ouimeaux/get_func_full_args
LDU_FT
[ "<BEGIN>\n## `get_func_full_args`", "Return a list of (argument name, default value) tuples. If the argument\n does not have a default value, omit it in the tuple. Arguments such as\n *args and **kwargs are also included.\n<END>", "<BEGIN>\n## `func_accepts_var_args`", "Return True if function 'func' ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_func_full_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_func_full_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return a list of (argument name, default value) tuples. If the argument does not have a default value, omit it in the tuple. Arguments such as *args and **kwargs are also included.
"Return a list of (argument name, default value) tuples. If the argument\n does not have a default value, omit it in the tuple. Arguments such as\n *args and **kwargs are also included."
48
false
iancmcc/ouimeaux
get_func_full_args
143,629
LDU_FT/HttpRunner/HttpRunner/_handle_skip_feature
LDU_FT
[ "<BEGIN>\n## `setup_logger`", "setup root logger with ColoredFormatter.\n<END>", "<BEGIN>\n## `_handle_skip_feature`", "handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_skip_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_skip_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
handle skip feature for test - skip: skip current test unconditionally - skipIf: skip current test if condition is true - skipUnless: skip current test unless condition is true Args: test_dict (dict): test info Raises: SkipTest: skip test
"handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test unless condition is true\n\n Args:\n test_dict (dict): test info\n\n Raises:\n SkipTest: ski...
267
false
HttpRunner/HttpRunner
_handle_skip_feature
143,630
LDU_FT/SHTOOLS/SHTOOLS/from_cap
LDU_FT
[ "<BEGIN>\n## `example`", "Plot random phase and Gaussian random variable spectra.\n<END>", "<BEGIN>\n## `plot_rad`", "Plot the radial component of the gravity field.", " Usage\n -----\n x.plot_rad([tick_interval, xlabel, ylabel, ax, colorbar,\n cb_orientation, cb_labe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_cap API. 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 from_cap API. 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...
Construct spherical cap localization windows. Usage ----- x = SHWindow.from_cap(theta, lwin, [clat, clon, nwin, theta_degrees, coord_degrees, dj_matrix, weights]) Returns ------- x : SHWindow class instance Parameters...
"Construct spherical cap localization windows.\n\n Usage\n -----\n x = SHWindow.from_cap(theta, lwin, [clat, clon, nwin, theta_degrees,\n coord_degrees, dj_matrix, weights])\n\n Returns\n -------\n x : SHWindow class instance\n\n ...
779
false
SHTOOLS/SHTOOLS
from_cap
143,631
LDU_FT/cons3rt/pycons3rt/send_cons3rt_agent_logs
LDU_FT
[ "<BEGIN>\n## `getdict`", "Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>", "<BEGIN>\n## `get_ec2_client`", "Gets an EC2 client", " :return: boto3.client object\n :raises: AWSAPIError\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_cons3rt_agent_logs 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_cons3rt_agent_logs 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 cons3rt agent log file :return:
"Send the cons3rt agent log file\n\n :return:"
386
false
cons3rt/pycons3rt
send_cons3rt_agent_logs
143,632
LDU_FT/inveniosoftware/invenio-records-rest/obj_or_import_string
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_or_import_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_or_import_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Import string or return object. :params value: Import path or class object to instantiate. :params default: Default object to return if the import fails. :returns: The imported object.
"Import string or return object.\n\n :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n :returns: The imported object."
165
false
inveniosoftware/invenio-records-rest
obj_or_import_string
143,633
LDU_FT/cggh/scikit-allel/compute_ihh_gaps
LDU_FT
[ "<BEGIN>\n## `mean_pairwise_difference`", "Calculate for each variant the mean number of pairwise differences\n between chromosomes sampled from within a single population.", " Parameters\n ----------", " ac : array_like, int, shape (n_variants, n_alleles)\n Allele counts array.\n an : a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_ihh_gaps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_ihh_gaps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Compute spacing between variants for integrating haplotype homozygosity. Parameters ---------- pos : array_like, int, shape (n_variants,) Variant positions (physical distance). map_pos : array_like, float, shape (n_variants,) Variant positions (genetic map distance). gap_scale :...
"Compute spacing between variants for integrating haplotype\n homozygosity.\n\n Parameters\n ----------\n pos : array_like, int, shape (n_variants,)\n Variant positions (physical distance).\n map_pos : array_like, float, shape (n_variants,)\n Variant positions (genetic map distance).\n g...
1,142
true
cggh/scikit-allel
compute_ihh_gaps
143,634
LDU_FT/neo4j/neo4j-python-driver/close
LDU_FT
[ "<BEGIN>\n## `basic_auth`", "Generate a basic auth token for a given user and password.", " :param user: user name\n :param password: current password\n :param realm: specifies the authentication provider\n :return: auth token for use with :meth:`GraphDatabase.driver`\n<END>", "<BEGIN>\n## `custom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Shut down, closing any open connections in the pool.
"Shut down, closing any open connections in the pool."
133
false
neo4j/neo4j-python-driver
close
143,635
LDU_FT/twisted/mantissa/installSite
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the installSite API. 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 installSite API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create the necessary items to run an HTTP server and an SSH server.
"Create the necessary items to run an HTTP server and an SSH server."
1,120
true
twisted/mantissa
installSite
143,636
LDU_FT/SmartTeleMax/iktomi/TableArgsMeta
LDU_FT
[ "<BEGIN>\n## `pare`", "Pare text to have maximum size and add etc to the end if it's\n changed\n<END>", "<BEGIN>\n## `quoteattrs`", "Takes dict of attributes and returns their HTML representation\n<END>", "<BEGIN>\n## `quote_js`", "Quotes text to be used as JavaScript string in HTML templates. The\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TableArgsMeta API. 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 TableArgsMeta API. 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...
Declarative metaclass automatically adding (merging) __table_args__ to mapped classes. Example: Meta = TableArgsMeta({ 'mysql_engine': 'InnoDB', 'mysql_default charset': 'utf8', } Base = declarative_base(name='Base', metaclass=Meta) class MyClass(Base): ...
"Declarative metaclass automatically adding (merging) __table_args__ to\n mapped classes. Example:\n\n Meta = TableArgsMeta({\n 'mysql_engine': 'InnoDB',\n 'mysql_default charset': 'utf8',\n }\n\n Base = declarative_base(name='Base', metaclass=Meta)\n\n class MyClass...
196
false
SmartTeleMax/iktomi
TableArgsMeta
143,637
LDU_FT/datastore/datastore/put
LDU_FT
[ "<BEGIN>\n## `list`", "Returns the `list` representation of this Key.", " Note that this method assumes the key is immutable.\n<END>", "<BEGIN>\n## `instance`", "Returns an instance Key, by appending a name to the namespace.\n<END>", "<BEGIN>\n## `parent`", "Returns the parent Key (all namespaces exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Stores the object `value` named by `key`. Args: key: Key naming `value` value: the object to store.
"Stores the object `value` named by `key`.\n\n Args:\n key: Key naming `value`\n value: the object to store."
180
false
datastore/datastore
put
143,638
LDU_FT/Staffjoy/client_python/get_all
LDU_FT
[ "<BEGIN>\n## `get`", "Inherit info from parent and return new object\n<END>", "<BEGIN>\n## `get_all`", "Perform a read request against the resource\n<END>", "<BEGIN>\n## `_handle_request_exception`", "Raise the proper exception based on the response\n<END>", "<BEGIN>\n## `fetch`", "Perform a read requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Perform a read request against the resource
"Perform a read request against the resource"
12
false
Staffjoy/client_python
get_all
143,639
LDU_FT/trolldbois/ctypeslib/_literal_handling
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _literal_handling API. 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 _literal_handling API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse all literal associated with this cursor. Literal handling is usually useful only for initialization values. We can't use a shortcut by getting tokens # init_value = ' '.join([t.spelling for t in children[0].get_tokens() # if t.spelling != ';']) because some litera...
"Parse all literal associated with this cursor.\n\n Literal handling is usually useful only for initialization values.\n\n We can't use a shortcut by getting tokens\n # init_value = ' '.join([t.spelling for t in children[0].get_tokens()\n # if t.spelling != ';'])\n because som...
88
false
trolldbois/ctypeslib
_literal_handling
143,640
LDU_FT/pypa/twine/no_positional
LDU_FT
[ "<BEGIN>\n## `from_args`", "Return an UploadToDeprecatedPyPIDetected instance.\n<END>", "<BEGIN>\n## `check_status_code`", "Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected\n exception, but this is in case that breaks and it does.\n<END>", "<BEGIN>\n## `no_positional`", "A decorator that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the no_positional API. 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 no_positional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
A decorator that doesn't allow for positional arguments. :param bool allow_self: Whether to allow ``self`` as a positional argument.
"A decorator that doesn't allow for positional arguments.\n\n :param bool allow_self:\n Whether to allow ``self`` as a positional argument."
14
false
pypa/twine
no_positional
143,641
LDU_FT/CodyKochmann/strict_functions/noglobals
LDU_FT
[ "<BEGIN>\n## `has_args`", "returns true if the decorator invocation\n had arguments passed to it before being\n sent a function to decorate\n<END>", "<BEGIN>\n## `identify`", "returns a tuple that is used to match\n functions to their neighbors in their\n resident n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the noglobals API. 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 noglobals API. 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...
decorator for functions that dont get access to globals
"decorator for functions that dont get access to globals"
48
false
CodyKochmann/strict_functions
noglobals
143,642
LDU_FT/Ceasar/staticjinja/make_site
LDU_FT
[ "<BEGIN>\n## `should_handle`", "Check if an event should be handled.", " An event should be handled if a file in the searchpath was modified.", " :param event_type: a string, representing the type of event", " :param filename: the path to the file that triggered the event.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_site API. 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 make_site API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create a :class:`Site <Site>` object. :param searchpath: A string representing the absolute path to the directory that the Site should search to discover templates. Defaults to ``'templates'``. If a relative path is provided, it will be coerced to an absolute ...
"Create a :class:`Site <Site>` object.\n\n :param searchpath:\n A string representing the absolute path to the directory that the\n Site should search to discover templates. Defaults to\n ``'templates'``.\n\n If a relative path is provided, it will be coerced to an abs...
71
false
Ceasar/staticjinja
make_site
143,643
LDU_FT/joshua-stone/DerPyBooru/limit
LDU_FT
[ "<BEGIN>\n## `key`", "Takes a user's API key string which applies content settings. API keys can\n be found at <https://derpibooru.org/users/edit>.\n<END>", "<BEGIN>\n## `query`", "Takes one or more strings for searching by tag and/or metadata.\n<END>", "<BEGIN>\n## `sort_by`", "Determines how to sort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limit API. 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 limit API. 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...
Set absolute limit on number of images to return, or set to None to return as many results as needed; default 50 posts.
"Set absolute limit on number of images to return, or set to None to return\n as many results as needed; default 50 posts."
19
false
joshua-stone/DerPyBooru
limit
143,644
LDU_FT/LordGaav/python-chaos/cancel
LDU_FT
[ "<BEGIN>\n## `registerWorker`", "Register a new Worker, under the given descriptive name.", "\t\tTrying to register multiple workers under the same name will raise an Exception.", "\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel API. 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 cancel API. 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 ...
Cancels the current consuming action by using the stored consumer_tag. If a consumer_tag is given, that one is used instead. Parameters ---------- consumer_tag: string Tag of consumer to cancel
"Cancels the current consuming action by using the stored consumer_tag. If a consumer_tag is given, that one is used instead.\n\n\t\tParameters\n\t\t----------\n\t\tconsumer_tag: string\n\t\t\tTag of consumer to cancel"
138
false
LordGaav/python-chaos
cancel
143,645
LDU_FT/salimm/pylods/_write_object
LDU_FT
[ "<BEGIN>\n## `copy`", "makes a clone copy of the mapper. It won't clone the serializers or deserializers and it won't copy the events\n<END>", "<BEGIN>\n## `copy_all`", "copies all values into the current context from given context\n :param ctxt:\n<END>", "<BEGIN>\n## `resolve`", "resolve type of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Write object into the stream :param val: :param outstream:
"Write object into the stream\n :param val:\n :param outstream:"
13
false
salimm/pylods
_write_object
143,646
LDU_FT/cyrus-/cypy/memoize
LDU_FT
[ "<BEGIN>\n## `packed`", "each row is placed side-by-side with the length of the row interlaced\n the head of the packed matrix contains offsets to this length\n e.g. [[11, 22, 33], [44, 55], []] => [3, 7, 10, 3, 11, 22, 33, 2, 44, 55, 0]\n<END>", "<BEGIN>\n## `reversed`", "Create a connectivity ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memoize API. 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 memoize API. 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...
Caches the result of the provided function.
"Caches the result of the provided function."
209
false
cyrus-/cypy
memoize
143,647
LDU_FT/Kunstmord/datalib/return_features
LDU_FT
[ "<BEGIN>\n## `extract_feature_base`", "Generic function which extracts a feature and stores it in the database", " Parameters\n ----------\n dbpath : string, path to SQLite database file\n folder_path : string, path to folder where the files are stored\n set_object : object (either TestSet or Tra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a list of extracted features from the database Parameters ---------- names : list of strings, a list of feature names which are to be retrieved from the database, if equal to 'all', the all features will be returned, default value: 'all' Returns ------- ...
"Returns a list of extracted features from the database\n\n Parameters\n ----------\n names : list of strings, a list of feature names which are to be retrieved from the database, if equal\n to 'all', the all features will be returned, default value: 'all'\n\n Returns\n -------...
117
false
Kunstmord/datalib
return_features
143,648
LDU_FT/huge-success/sanic/serve
LDU_FT
[ "<BEGIN>\n## `group`", "Create a list of blueprints, optionally grouping them under a\n general URL prefix.", " :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>", "<BEGIN>\n## `register`", "Register the b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API. 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 serve API. 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...
Start asynchronous HTTP Server on an individual process. :param host: Address to host on :param port: Port to host on :param request_handler: Sanic request handler with middleware :param error_handler: Sanic error handler with middleware :param before_start: function to be executed before the serve...
"Start asynchronous HTTP Server on an individual process.\n\n :param host: Address to host on\n :param port: Port to host on\n :param request_handler: Sanic request handler with middleware\n :param error_handler: Sanic error handler with middleware\n :param before_start: function to be executed before th...
238
false
huge-success/sanic
serve
143,649
LDU_FT/jdoda/sdl2hl/blend_mode
LDU_FT
[ "<BEGIN>\n## `was_init`", "This function returns the subsystems which have previously been initialized.", " Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>", "<BEGIN>\n## `load_bmp`", "Load a surface from a file.", " Args:\n path (str):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blend_mode API. 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 blend_mode API. 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...
BlendMode: The blend mode used for drawing operations.
"BlendMode: The blend mode used for drawing operations."
134
false
jdoda/sdl2hl
blend_mode
143,650
LDU_FT/log2timeline/dfdatetime/_GetNormalizedTimestamp
LDU_FT
[ "<BEGIN>\n## `_GetNormalizedTimestamp`", "Retrieves the normalized timestamp.", " Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetNormalizedTimestamp 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 _GetNormalizedTimestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieves the normalized timestamp. Returns: decimal.Decimal: normalized timestamp, which contains the number of seconds since January 1, 1970 00:00:00 and a fraction of second used for increased precision, or None if the normalized timestamp cannot be determined.
"Retrieves the normalized timestamp.\n\n Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized timestamp cannot be\n determined."
244
false
log2timeline/dfdatetime
_GetNormalizedTimestamp
143,651
LDU_FT/contentful/contentful.py/coerce
LDU_FT
[ "<BEGIN>\n## `incoming_references`", "Fetches all entries referencing the entry", " API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset", " :param client Client instance\n :param query: (optional) Dict with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coerce API. 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 coerce API. 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 ...
Coerces array items with proper coercion.
"Coerces array items with proper coercion."
71
false
contentful/contentful.py
coerce
143,652