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/ashmastaflash/kal-wrapper/options_string_builder
LDU_FT
[ "<BEGIN>\n## `scan_band`", "Run Kalibrate for a band.", " Supported keyword arguments:\n gain -- Gain in dB\n device -- Index of device to be used\n error -- Initial frequency error in ppm\n<END>", "<BEGIN>\n## `scan_channel`", "Run Kalibrate.", " Supported keyword...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options_string_builder 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 options_string_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return arguments for CLI invocation of kal.
"Return arguments for CLI invocation of kal."
25
false
ashmastaflash/kal-wrapper
options_string_builder
28,673
LDU_FT/ambitioninc/django-dynamic-initial-data/load_app
LDU_FT
[ "<BEGIN>\n## `load_app`", "Tries to load an initial data class for a specified app. If the specified file does not exist,\n an error will be raised. If the class does exist, but it isn't a subclass of `BaseInitialData`\n then None will be returned.\n :param app: The name of the app in which t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_app API. 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...
Tries to load an initial data class for a specified app. If the specified file does not exist, an error will be raised. If the class does exist, but it isn't a subclass of `BaseInitialData` then None will be returned. :param app: The name of the app in which to load the initial data class. This ...
"Tries to load an initial data class for a specified app. If the specified file does not exist,\n an error will be raised. If the class does exist, but it isn't a subclass of `BaseInitialData`\n then None will be returned.\n :param app: The name of the app in which to load the initial data class. T...
10
false
ambitioninc/django-dynamic-initial-data
load_app
28,674
LDU_FT/terrycain/aioboto3/get_object
LDU_FT
[ "<BEGIN>\n## `download_file`", "Download an S3 object to a file.", " Usage::", " import boto3\n s3 = boto3.resource('s3')\n s3.meta.client.download_file('mybucket', 'hello.txt', '/tmp/hello.txt')", " Similar behavior as S3Transfer's download_file() method,\n except that paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac...
S3 GetObject. Takes same args as Boto3 documentation Decrypts any CSE :param Bucket: S3 Bucket :param Key: S3 Key (filepath) :return: returns same response as a normal S3 get_object
"S3 GetObject. Takes same args as Boto3 documentation\n\n Decrypts any CSE\n\n :param Bucket: S3 Bucket\n :param Key: S3 Key (filepath)\n :return: returns same response as a normal S3 get_object"
74
false
terrycain/aioboto3
get_object
28,675
LDU_FT/PeerAssets/pypeerassets/parse_vote_info
LDU_FT
[ "<BEGIN>\n## `parse_vote_info`", "decode vote init tx op_return protobuf message and validate it.\n<END>", "<BEGIN>\n## `vote_init`", "initialize vote transaction, must be signed by the deck_issuer privkey\n<END>", "<BEGIN>\n## `find_vote_casts`", "find and verify vote_casts on this vote_choice_address\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_vote_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_vote_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
decode vote init tx op_return protobuf message and validate it.
"decode vote init tx op_return protobuf message and validate it."
86
false
PeerAssets/pypeerassets
parse_vote_info
28,676
LDU_FT/nteract/papermill/execute_notebook
LDU_FT
[ "<BEGIN>\n## `papermill`", "This utility executes a single notebook on a container.", " Papermill takes a source notebook, applies parameters to the source\n notebook, executes the notebook with the specified kernel, and saves the\n output in the destination notebook.\n<END>", "<BEGIN>\n## `catch_nb_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_notebook API. 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 execute_notebook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Executes a single notebook locally. Parameters ---------- input_path : str Path to input notebook output_path : str Path to save executed notebook parameters : dict, optional Arbitrary keyword arguments to pass to the notebook parameters engine_name : str, optional ...
"Executes a single notebook locally.\n\n Parameters\n ----------\n input_path : str\n Path to input notebook\n output_path : str\n Path to save executed notebook\n parameters : dict, optional\n Arbitrary keyword arguments to pass to the notebook parameters\n engine_name : str, opt...
99
false
nteract/papermill
execute_notebook
28,677
LDU_FT/what-studio/profiling/by_own_time_per_call
LDU_FT
[ "<BEGIN>\n## `by_own_time_per_call`", "Sorting by exclusive elapsed time per call in descending order.\n<END>", "<BEGIN>\n## `result`", "Gets the frozen statistics to serialize by Pickle.\n<END>", "<BEGIN>\n## `dump`", "Saves the profiling result to a file", " :param dump_filename: path to a file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_own_time_per_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_own_time_per_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sorting by exclusive elapsed time per call in descending order.
"Sorting by exclusive elapsed time per call in descending order."
83
false
what-studio/profiling
by_own_time_per_call
28,678
LDU_FT/derpferd/little-python/statement
LDU_FT
[ "<BEGIN>\n## `compile`", "Currently this compiler simply returns an interpreter instead of compiling\n TODO: Write this compiler to increase LPProg run speed and to prevent exceeding maximum recursion depth", " Args:\n prog (str): A string containing the program.\n features (...
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...
statement : assign_statement | expression | control | empty Feature For Loop adds: | loop Feature Func adds: | func | return statement
"statement : assign_statement\n | expression\n | control\n | empty\n Feature For Loop adds:\n | loop\n Feature Func adds:\n | func\n | return statement"
26
false
derpferd/little-python
statement
28,679
LDU_FT/bcbnz/python-rofi/decimal_entry
LDU_FT
[ "<BEGIN>\n## `close`", "Close any open window.", " Note that this only works with non-blocking methods.\n<END>", "<BEGIN>\n## `_run_blocking`", "Internal API: run a blocking command with subprocess.", " This closes any open non-blocking dialog before running the command.", " Paramet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decimal_entry API. 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 decimal_entry API. 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...
Prompt the user to enter a decimal number. Parameters ---------- prompt: string Prompt to display to the user. message: string, optional Message to display under the entry line. min, max: Decimal, optional Minimum and maximum values to allow. ...
"Prompt the user to enter a decimal number.\n\n Parameters\n ----------\n prompt: string\n Prompt to display to the user.\n message: string, optional\n Message to display under the entry line.\n min, max: Decimal, optional\n Minimum and maximum values ...
68
false
bcbnz/python-rofi
decimal_entry
28,680
LDU_FT/acrazing/dbapi/remove_comment
LDU_FT
[ "<BEGIN>\n## `get_people`", "获取用户信息", " :param user_alias: 用户ID\n :return:\n<END>", "<BEGIN>\n## `build_list_result`", "构建带翻页的列表", " :param results: 已获取的数据列表\n :param xml: 原始页面xml\n :return: {'results': list, 'count': int, 'next_start': int|None}\n 如果count与results长度不同,则有更...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
删除评论(自己发的话题所有的都可以删除,否则只能删自己发的) :param topic_id: 话题ID :param comment_id: 评论ID :param reason: 原因 0/1/2 (内容不符/反动/其它) :param other: 其它原因的具体(2) :return: None
"删除评论(自己发的话题所有的都可以删除,否则只能删自己发的)\n \n :param topic_id: 话题ID\n :param comment_id: 评论ID\n :param reason: 原因 0/1/2 (内容不符/反动/其它)\n :param other: 其它原因的具体(2)\n :return: None"
95
false
acrazing/dbapi
remove_comment
28,681
LDU_FT/dmwilcox/vcard-tools/CleanString
LDU_FT
[ "<BEGIN>\n## `CleanString`", "Cleans up string.", " Doesn't catch everything, appears to sometimes allow double underscores\n to occur as a result of replacements.\n<END>", "<BEGIN>\n## `DedupVcardFilenames`", "Make sure every vCard in the dictionary has a unique filename.\n<END>", "<BEGIN>\n## `Vca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CleanString API. 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 CleanString API. 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...
Cleans up string. Doesn't catch everything, appears to sometimes allow double underscores to occur as a result of replacements.
"Cleans up string.\n\n Doesn't catch everything, appears to sometimes allow double underscores\n to occur as a result of replacements."
19
false
dmwilcox/vcard-tools
CleanString
28,682
LDU_FT/remram44/rpaths/may_contain_matches
LDU_FT
[ "<BEGIN>\n## `pattern2re`", "Makes a unicode regular expression from a pattern.", " Returns ``(start, full_re, int_re)`` where:", " * `start` is either empty or the subdirectory in which to start searching,\n * `full_re` is a regular expression object that matches the requested\n files, i.e. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the may_contain_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the may_contain_matches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Tests whether it's possible for paths under the given one to match. If this method returns None, no path under the given one will match the pattern.
"Tests whether it's possible for paths under the given one to match.\n\n If this method returns None, no path under the given one will match the\n pattern."
95
false
remram44/rpaths
may_contain_matches
28,683
LDU_FT/gisle/isoweek/weeks_of_year
LDU_FT
[ "<BEGIN>\n## `fromordinal`", "Return the week corresponding to the proleptic Gregorian ordinal,\n where January 1 of year 1 starts the week with ordinal 1.\n<END>", "<BEGIN>\n## `fromstring`", "Return a week initialized from an ISO formatted string like \"2011W08\" or \"2011-W08\".\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weeks_of_year API. 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 weeks_of_year API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return an iterator over the weeks of the given year. Years have either 52 or 53 weeks.
"Return an iterator over the weeks of the given year.\n Years have either 52 or 53 weeks."
16
false
gisle/isoweek
weeks_of_year
28,684
LDU_FT/ryan-roemer/django-cloud-browser/dt_from_rfc8601
LDU_FT
[ "<BEGIN>\n## `is_key`", "Return ``True`` if result is a key object.\n<END>", "<BEGIN>\n## `parse_bool`", "Convert ``string`` or ``bool`` to ``bool``.\n<END>", "<BEGIN>\n## `container_permitted`", "Return whether or not a container is permitted.", " :param name: Container name.\n :return: `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dt_from_rfc8601 API. 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 dt_from_rfc8601 API. 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...
Convert 8601 (ISO) date string to datetime object. Handles "Z" and milliseconds transparently. :param date_str: Date string. :type date_str: ``string`` :return: Date time. :rtype: :class:`datetime.datetime`
"Convert 8601 (ISO) date string to datetime object.\n\n Handles \"Z\" and milliseconds transparently.\n\n :param date_str: Date string.\n :type date_str: ``string``\n :return: Date time.\n :rtype: :class:`datetime.datetime`"
96
false
ryan-roemer/django-cloud-browser
dt_from_rfc8601
28,685
LDU_FT/kronenthaler/mod-pbxproj/remove_group_by_id
LDU_FT
[ "<BEGIN>\n## `has_child`", "Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>", "<BEGIN>\n## `add_file`", "Adds a file to the project, taking care of the type of the file an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_group_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_group_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Remove the group matching the given group_id. If recursive is True, all descendants of this group are also removed. :param group_id: The group id to be removed :param recursive: All descendants should be removed as well :return: True if the element was removed successfully, False if an error occ...
"Remove the group matching the given group_id. If recursive is True, all descendants of this group are also removed.\n :param group_id: The group id to be removed\n :param recursive: All descendants should be removed as well\n :return: True if the element was removed successfully, False if an error...
71
false
kronenthaler/mod-pbxproj
remove_group_by_id
28,686
LDU_FT/fmenabe/python-dokuwiki/utc2local
LDU_FT
[ "<BEGIN>\n## `date`", "DokuWiki returns dates of `xmlrpclib`/`xmlrpc.client` ``DateTime``\n type and the format changes between DokuWiki versions ... This function\n convert *date* to a `datetime` object.\n<END>", "<BEGIN>\n## `utc2local`", "DokuWiki returns date with a +0000 timezone. This function con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utc2local API. 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 utc2local API. 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...
DokuWiki returns date with a +0000 timezone. This function convert *date* to the local time.
"DokuWiki returns date with a +0000 timezone. This function convert *date*\n to the local time."
32
false
fmenabe/python-dokuwiki
utc2local
28,687
LDU_FT/AguaClara/aguaclara/Q_stock
LDU_FT
[ "<BEGIN>\n## `density_water`", "Return the density of water at a given temperature.", " If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>", "<BEGIN>\n## `viscosity_kinematic`", "Return the kinematic viscosity of water at a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Q_stock API. 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 Q_stock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the required flow rate from the stock of material given a reactor's desired system flow rate, system concentration, and stock concentration. :return: Flow rate from the stock of material :rtype: float
"Return the required flow rate from the stock of material given\n a reactor's desired system flow rate, system concentration, and stock\n concentration.\n\n :return: Flow rate from the stock of material\n :rtype: float"
554
false
AguaClara/aguaclara
Q_stock
28,688
LDU_FT/adrn/schwimmbad/wait
LDU_FT
[ "<BEGIN>\n## `choose_pool`", "Choose between the different pools given options from, e.g., argparse.", " Parameters\n ----------\n mpi : bool, optional\n Use the MPI processing pool, :class:`~schwimmbad.mpi.MPIPool`. By\n default, ``False``, will use the :class:`~schwimmbad.serial.SerialP...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. 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 wait API. 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...
Tell the workers to wait and listen for the master process. This is called automatically when using :meth:`MPIPool.map` and doesn't need to be called by the user.
"Tell the workers to wait and listen for the master process. This is\n called automatically when using :meth:`MPIPool.map` and doesn't need to\n be called by the user."
27
false
adrn/schwimmbad
wait
28,689
LDU_FT/chaoss/grimoirelab-elk/delete_inactive_unique_identities
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_inactive_unique_identities 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 delete_inactive_unique_identities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Select the unique identities not seen before `before_date` and delete them from SortingHat. :param es: ElasticSearchDSL object :param sortinghat_db: instance of the SortingHat database :param before_date: datetime str to filter the identities
"Select the unique identities not seen before `before_date` and\n delete them from SortingHat.\n\n :param es: ElasticSearchDSL object\n :param sortinghat_db: instance of the SortingHat database\n :param before_date: datetime str to filter the identities"
296
false
chaoss/grimoirelab-elk
delete_inactive_unique_identities
28,690
LDU_FT/launchdarkly/relayCommander/connection_string_parser
LDU_FT
[ "<BEGIN>\n## `connection_string_parser`", "Parse Connection string to extract host and port.", " :param uri: full URI for redis connection in the form of host:port", " :returns: list of RedisConnection objects\n<END>", "<BEGIN>\n## `get_flag_record`", "Get feature flag record from redis.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_string_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_string_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Parse Connection string to extract host and port. :param uri: full URI for redis connection in the form of host:port :returns: list of RedisConnection objects
"Parse Connection string to extract host and port.\n\n :param uri: full URI for redis connection in the form of host:port\n\n :returns: list of RedisConnection objects"
63
false
launchdarkly/relayCommander
connection_string_parser
28,691
LDU_FT/romanorac/discomll/reduce_fit
LDU_FT
[ "<BEGIN>\n## `random_init_map`", "Assign datapoint `e` randomly to one of the `k` clusters.\n<END>", "<BEGIN>\n## `estimate_map`", "Find the cluster `i` that is closest to the datapoint `e`.\n<END>", "<BEGIN>\n## `estimate_reduce`", "Estimate the cluster centers for each cluster.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce_fit API. 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 reduce_fit API. 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...
Function separates aggregation of continuous and discrete features. For continuous features it aggregates partially calculated means and variances and returns them. For discrete features it aggregates pairs and returns them. Pairs with label occurrences are used to calculate prior probabilities
"Function separates aggregation of continuous and discrete features.\n For continuous features it aggregates partially calculated means and variances and returns them. For discrete\n features it aggregates pairs and returns them. Pairs with label occurrences are used to calculate prior probabilities"
77
false
romanorac/discomll
reduce_fit
28,692
LDU_FT/ioos/cc-plugin-ncei/check_trajectory_id
LDU_FT
[ "<BEGIN>\n## `check_timeseries_id`", "Checks that if a variable exists for the time series id it has the appropriate attributes", " :param netCDF4.Dataset dataset: An open netCDF dataset\n<END>", "<BEGIN>\n## `check_recommended_attributes`", "Feature type specific check of global recommended attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_trajectory_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_trajectory_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Checks that if a variable exists for the trajectory id it has the appropriate attributes :param netCDF4.Dataset dataset: An open netCDF dataset
"Checks that if a variable exists for the trajectory id it has the appropriate attributes\n\n :param netCDF4.Dataset dataset: An open netCDF dataset"
134
false
ioos/cc-plugin-ncei
check_trajectory_id
28,693
LDU_FT/indico/indico-plugins/_init_browser
LDU_FT
[ "<BEGIN>\n## `available_backends`", "Lists the currently available backend types\n<END>", "<BEGIN>\n## `initial_export`", "Performs the initial data export for an agent\n<END>", "<BEGIN>\n## `get_result`", "Perform the call and return the graph data", " :return: Encoded PNG graph data string to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_browser API. 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 _init_browser API. 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...
Ovveride this method with the appropriate way to prepare a logged in browser.
"Ovveride this method with the appropriate way to prepare a logged in\n browser."
173
false
indico/indico-plugins
_init_browser
28,694
LDU_FT/glenfant/openxmllib/getTreesFor
LDU_FT
[ "<BEGIN>\n## `mimeType`", "The official MIME type for this document, guessed from the extensions\n of the :py:attr:`openxmllib.document.Document.filename` attribute, as\n opposed to the :py:attr:`openxmllib.document.Document.mime_type`\n attribute.", " :return: ``application/xxx`` fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTreesFor API. 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 getTreesFor API. 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...
Provides all XML documents for that content type @param document: a Document or subclass object @param content_type: a MIME content type @return: list of etree._ElementTree of that content type
"Provides all XML documents for that content type\n @param document: a Document or subclass object\n @param content_type: a MIME content type\n @return: list of etree._ElementTree of that content type"
37
false
glenfant/openxmllib
getTreesFor
28,695
LDU_FT/sci-bots/serial-device/comports
LDU_FT
[ "<BEGIN>\n## `_comports`", "Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>", "<BEGIN>\n## `comports`", ".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comports API. 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 comports API. 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...
.. versionchanged:: 0.9 Add :data:`check_available` keyword argument to optionally check if each port is actually available by attempting to open a temporary connection. Add :data:`only_available` keyword argument to only include ports that are actually available for connection....
".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument to optionally check if\n each port is actually available by attempting to open a temporary\n connection.\n\n Add :data:`only_available` keyword argument to only include ports that\n are actually available for conn...
63
false
sci-bots/serial-device
comports
28,696
LDU_FT/alecthomas/injector/get
LDU_FT
[ "<BEGIN>\n## `provider`", "Decorator for :class:`Module` methods, registering a provider of a type.", " >>> class MyModule(Module):\n ... @provider\n ... def provide_name(self) -> str:\n ... return 'Bob'", " @provider-decoration implies @inject so you can omit it and things will\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get an instance of the given interface. .. note:: Although this method is part of :class:`Injector`'s public interface it's meant to be used in limited set of circumstances. For example, to create some kind of root object (application object) of your applicatio...
"Get an instance of the given interface.\n\n .. note::\n\n Although this method is part of :class:`Injector`'s public interface\n it's meant to be used in limited set of circumstances.\n\n For example, to create some kind of root object (application object)\n of your a...
60
false
alecthomas/injector
get
28,697
LDU_FT/ivanprjcts/sdklib/send_http_request_with_body_parameters
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string` or a file-like object.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a prefix to avoid collisions. I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_http_request_with_body_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_http_request_with_body_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Parameters: +-------------+--------------+ | param_name | param_value | +=============+==============+ | param1 | value1 | +-------------+--------------+ | param2 | value2 | +-------------+--------------+
"Parameters:\n\n +-------------+--------------+\n | param_name | param_value |\n +=============+==============+\n | param1 | value1 |\n +-------------+--------------+\n | param2 | value2 |\n +-------------+--------------+"
125
false
ivanprjcts/sdklib
send_http_request_with_body_parameters
28,698
LDU_FT/eirannejad/Revit-Journal-Maker/open_workshared_model
LDU_FT
[ "<BEGIN>\n## `_init_journal`", "Add the initialization lines to the journal.", " By default adds JrnObj variable and timestamp to the journal contents.", " Args:\n permissive (bool): if True most errors in journal will not\n cause Revit to stop journal ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_workshared_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_workshared_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Append a open workshared model entry to the journal. This instructs Revit to open a workshared model. Args: model_path (str): full path to workshared model central (bool): if True opens central model and not local detached (bool): if True opens a detached model ...
"Append a open workshared model entry to the journal.\n\n This instructs Revit to open a workshared model.\n\n Args:\n model_path (str): full path to workshared model\n central (bool): if True opens central model and not local\n detached (bool): if True opens a detached mo...
57
false
eirannejad/Revit-Journal-Maker
open_workshared_model
28,699
LDU_FT/inveniosoftware/invenio-accounts/send_security_email
LDU_FT
[ "<BEGIN>\n## `check_security_settings`", "Warn if session cookie is not secure in production.\n<END>", "<BEGIN>\n## `mysql_aes_encrypt`", "Mysql AES encrypt value with secret key.", " :param val: Plain text value.\n :param key: The AES key.\n :returns: The encrypted AES value.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_security_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_security_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Celery task to send security email. :param data: Contains the email data.
"Celery task to send security email.\n\n :param data: Contains the email data."
71
false
inveniosoftware/invenio-accounts
send_security_email
28,700
LDU_FT/pre-commit/pre-commit/_compute_cols
LDU_FT
[ "<BEGIN>\n## `_shuffled`", "Deterministically shuffle identically under both py2 + py3.\n<END>", "<BEGIN>\n## `envcontext`", "In this context, `os.environ` is modified according to `patch`.", " `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_cols API. 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 _compute_cols API. 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...
Compute the number of columns to display hook messages. The widest that will be displayed is in the no files skipped case: Hook name...(no files to check) Skipped or in the verbose case Hook name [hookid]...(no files to check) Skipped
"Compute the number of columns to display hook messages. The widest\n that will be displayed is in the no files skipped case:\n\n Hook name...(no files to check) Skipped\n\n or in the verbose case\n\n Hook name [hookid]...(no files to check) Skipped"
54
false
pre-commit/pre-commit
_compute_cols
28,701
LDU_FT/taleinat/fuzzysearch/find_near_matches_no_deletions_ngrams
LDU_FT
[ "<BEGIN>\n## `find_near_matches_no_deletions_ngrams`", "search for near-matches of subsequence in sequence", " This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):", " * the maximum allowed number of chara...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_near_matches_no_deletions_ngrams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_near_matches_no_deletions_ngrams API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
search for near-matches of subsequence in sequence This searches for near-matches, where the nearly-matching parts of the sequence must meet the following limitations (relative to the subsequence): * the maximum allowed number of character substitutions * the maximum allowed number of new characters i...
"search for near-matches of subsequence in sequence\n\n This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):\n\n * the maximum allowed number of character substitutions\n * the maximum allowed number of new chara...
51
false
taleinat/fuzzysearch
find_near_matches_no_deletions_ngrams
28,702
LDU_FT/IBM/ibm-cos-sdk-python-s3transfer/add_done_callback
LDU_FT
[ "<BEGIN>\n## `store`", "store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required\n<END>", "<BEGIN>\n## `multi_session`", "convert the multi_session param a number\n<END>", "<BEGIN>\n## `_raw_asp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_done_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_done_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add a done callback to be invoked when transfer is complete
"Add a done callback to be invoked when transfer is complete"
89
false
IBM/ibm-cos-sdk-python-s3transfer
add_done_callback
28,703
LDU_FT/qubell/contrib-python-qubell-client/upload_applications
LDU_FT
[ "<BEGIN>\n## `request_upload_secret`", ":return: json with \"keyId\" as secret and \"url\" for posting key\n<END>", "<BEGIN>\n## `entity`", "CLI for tonomi.com using contrib-python-qubell-client", " To enable completion:", " eval \"$(_NOMI_COMPLETE=source nomi)\"\n<END>", "<BEGIN>\n## `import_ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_applications 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 upload_applications 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...
Mimics get starter-kit and wizard functionality to create components Note: may create component duplicates, not idempotent :type metadata: str :type category: Category :param metadata: url to meta.yml :param category: category
"Mimics get starter-kit and wizard functionality to create components\n Note: may create component duplicates, not idempotent\n :type metadata: str\n :type category: Category\n :param metadata: url to meta.yml\n :param category: category"
112
false
qubell/contrib-python-qubell-client
upload_applications
28,704
LDU_FT/NoneGG/aredis/hset
LDU_FT
[ "<BEGIN>\n## `merge_result`", "Merge all items in `res` into a list.", " This command is used when sending a command to multiple nodes\n and they result from each node should be merged into a single list.\n<END>", "<BEGIN>\n## `first_key`", "Returns the first result for the given command.", " If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hset API. 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 hset API. 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...
Set ``key`` to ``value`` within hash ``name`` Returns 1 if HSET created a new field, otherwise 0
"Set ``key`` to ``value`` within hash ``name``\n Returns 1 if HSET created a new field, otherwise 0"
421
false
NoneGG/aredis
hset
28,705
LDU_FT/AtteqCom/zsl/_get_link_pages
LDU_FT
[ "<BEGIN>\n## `_nested_transactional`", "In a transactional method create a nested transaction.\n<END>", "<BEGIN>\n## `exec_task`", "Execute task.", " :param task_path: task path\n :type task_path: str|Callable\n :param data: task's data\n :type data: Any\n :return:\n<END>", "<BEGIN>\n## `ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_link_pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_link_pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create link header for page metadata. :param page: current page :param per_page: page limit :param count: count of all resources :param page_url: url for resources :return: dictionary with name of the link as key and its url as value
"Create link header for page metadata.\n\n :param page: current page\n :param per_page: page limit\n :param count: count of all resources\n :param page_url: url for resources\n :return: dictionary with name of the link as key and its url as value"
292
false
AtteqCom/zsl
_get_link_pages
28,706
LDU_FT/laysakura/relshell/equivalent_relshell_type
LDU_FT
[ "<BEGIN>\n## `colindex_by_colname`", "Return column index whose name is :param:`column`", " :raises: `ValueError` when no column with :param:`colname` found\n<END>", "<BEGIN>\n## `run`", "Run shell operator synchronously to eat `in_batches`", " :param in_batches: `tuple` of batches to proces...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equivalent_relshell_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equivalent_relshell_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns `val`'s relshell compatible type. :param val: value to check relshell equivalent type :raises: `NotImplementedError` if val's relshell compatible type is not implemented.
"Returns `val`'s relshell compatible type.\n\n :param val: value to check relshell equivalent type\n :raises: `NotImplementedError` if val's relshell compatible type is not implemented."
46
false
laysakura/relshell
equivalent_relshell_type
28,707
LDU_FT/SFDO-Tooling/CumulusCI/get_previous_version
LDU_FT
[ "<BEGIN>\n## `_download_file`", "Download the bulk API result file for a single batch\n<END>", "<BEGIN>\n## `_create_job`", "Initiate a bulk insert and upload batches to run in parallel.\n<END>", "<BEGIN>\n## `_query_db`", "Build a query to retrieve data from the local db.", " Includes columns fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_previous_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_previous_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Query GitHub releases to find the previous production release
"Query GitHub releases to find the previous production release"
165
false
SFDO-Tooling/CumulusCI
get_previous_version
28,708
LDU_FT/kontron/python-aardvark/enable_spi
LDU_FT
[ "<BEGIN>\n## `find_devices`", "Return a list of dictionaries. Each dictionary represents one device.", " The dictionary contains the following keys: port, unique_id and in_use.\n `port` can be used with :func:`open`. `serial_number` is the serial number\n of the device (and can also be used with :func:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_spi API. 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 enable_spi API. 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...
Set this to `True` to enable the hardware SPI interface. If set to `False` the hardware interface will be disabled and its pins (MISO, MOSI, SCK and SS) can be used as GPIOs.
"Set this to `True` to enable the hardware SPI interface. If set to\n `False` the hardware interface will be disabled and its pins (MISO,\n MOSI, SCK and SS) can be used as GPIOs."
72
false
kontron/python-aardvark
enable_spi
28,709
LDU_FT/CodyKochmann/generators/last
LDU_FT
[ "<BEGIN>\n## `first`", "first is essentially the next() function except it's second argument\n determines how many of the first items you want. If items is more than\n 1 the output is an islice of the generator. If items is 1, the first\n item is returned\n<END>", "<BEGIN>\n## `timed_pipe`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last API. 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 last API. 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...
this function simply returns the last item in an iterable
"this function simply returns the last item in an iterable"
71
false
CodyKochmann/generators
last
28,710
LDU_FT/mromanello/hucitlib/is_opus_maximum
LDU_FT
[ "<BEGIN>\n## `fetch_text_structure`", "Fetches the text structure of a given work from a CTS endpoint.", " :param urn: the work's CTS URN (at the work-level!,\n e.g.\"urn:cts:greekLit:tlg0012.tlg001\")\n :type urn: string\n :param endpoint: the URL of the CTS endpoint to use (defaults to Perseid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_opus_maximum API. 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 is_opus_maximum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Check whether the work is the author's opus maximum. Two cases: 1. the work is flagged as opus max 2. there is only one work by this author :return: boolean
"Check whether the work is the author's opus maximum.\n\n Two cases:\n 1. the work is flagged as opus max\n 2. there is only one work by this author\n\n :return: boolean"
73
false
mromanello/hucitlib
is_opus_maximum
28,711
LDU_FT/lingthio/Flask-User/add_user
LDU_FT
[ "<BEGIN>\n## `send_email_message`", "Send email message via Flask-Sendmail.", " Args:\n recipient: Email address or tuple of (Name, Email-address).\n subject: Subject line.\n html_message: The message body in HTML.\n text_message: The message body in plain text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_user API. 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 add_user API. 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...
Add a User object, with properties specified in ``**kwargs``.
"Add a User object, with properties specified in ``**kwargs``."
186
false
lingthio/Flask-User
add_user
28,712
LDU_FT/glue-viz/glue-vispy-viewers/size
LDU_FT
[ "<BEGIN>\n## `iso_mesh_line`", "Generate an isocurve from vertex data in a surface mesh.", " Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
The size of the ColorBar Returns ------- size: (major_axis_length, minor_axis_length) major and minor axis are defined by the orientation of the ColorBar
"The size of the ColorBar\n\n Returns\n -------\n size: (major_axis_length, minor_axis_length)\n major and minor axis are defined by the\n orientation of the ColorBar"
1,752
true
glue-viz/glue-vispy-viewers
size
28,713
LDU_FT/shaiguitar/snowclient.py/update
LDU_FT
[ "<BEGIN>\n## `tablename_from_link`", "Helper method for URL's that look like /api/now/v1/table/FOO/sys_id etc.\n<END>", "<BEGIN>\n## `list`", "get a collection of records by table name.\n returns a collection of SnowRecord obj.\n<END>", "<BEGIN>\n## `get`", "get a single record by table name and sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. 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 update API. 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 ...
use PUT to update a single record by table name and sys_id returns a dict (the json map) for python 3.4
"use PUT to update a single record by table name and sys_id\n returns a dict (the json map) for python 3.4"
26
false
shaiguitar/snowclient.py
update
28,714
LDU_FT/spyder-ide/spyder-kernels/varexp
LDU_FT
[ "<BEGIN>\n## `get_numpy_dtype`", "Return NumPy data type associated to obj\n Return None if NumPy is not available\n or if obj is not a NumPy array or scalar\n<END>", "<BEGIN>\n## `address`", "Return object address as a string: '<classname @ address>\n<END>", "<BEGIN>\n## `get_size`", "Return size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the varexp API. 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 varexp API. 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 ...
Spyder's variable explorer magic Used to generate plots, histograms and images of the variables displayed on it.
"Spyder's variable explorer magic\n\n Used to generate plots, histograms and images of the variables displayed\n on it."
125
false
spyder-ide/spyder-kernels
varexp
28,715
LDU_FT/jaraco/jaraco.windows/trace_symlink_target
LDU_FT
[ "<BEGIN>\n## `CryptUnprotectData`", "Returns a tuple of (description, data) where description is the\n\tthe description that was passed to the CryptProtectData call and\n\tdata is the decrypted result.\n<END>", "<BEGIN>\n## `set_data`", "Use this method to set the data for this blob\n<END>", "<BEGIN>\n## `m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace_symlink_target 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 trace_symlink_target API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a file that is known to be a symlink, trace it to its ultimate target. Raises TargetNotPresent when the target cannot be determined. Raises ValueError when the specified link is not a symlink.
"Given a file that is known to be a symlink, trace it to its ultimate\n\ttarget.\n\n\tRaises TargetNotPresent when the target cannot be determined.\n\tRaises ValueError when the specified link is not a symlink."
119
false
jaraco/jaraco.windows
trace_symlink_target
28,716
LDU_FT/nikcub/floyd/hasvar
LDU_FT
[ "<BEGIN>\n## `get_file_contents`", "Get the context of the file using full path name\n<END>", "<BEGIN>\n## `import_model`", "imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>", "<BEGIN>\n## `parse_md`", "Takes a post path a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hasvar API. 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 hasvar API. 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 ...
Checks if object, obj has a variable var return True or False
"Checks if object, obj has a variable var\n \n return True or False"
71
false
nikcub/floyd
hasvar
28,717
LDU_FT/jleinonen/pytmatrix/save_scatter_table
LDU_FT
[ "<BEGIN>\n## `get_SZ`", "Compute the scattering matrices for the given PSD and geometries.", " Returns:\n The new amplitude (S) and phase (Z) matrices.\n<END>", "<BEGIN>\n## `init_scatter_table`", "Initialize the scattering lookup tables.", " Initialize the scattering lookup table...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_scatter_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_scatter_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Save the scattering lookup tables. Save the state of the scattering lookup tables to a file. This can be loaded later with load_scatter_table. Other variables will not be saved, but this does not matter because the results of the computations are based only on the contents ...
"Save the scattering lookup tables.\n \n Save the state of the scattering lookup tables to a file.\n This can be loaded later with load_scatter_table.\n\n Other variables will not be saved, but this does not matter because\n the results of the computations are based only on the conten...
115
false
jleinonen/pytmatrix
save_scatter_table
28,718
LDU_FT/BYU-PCCL/holodeck/editor_multi_agent_example
LDU_FT
[ "<BEGIN>\n## `malloc`", "Allocates a block of shared memory, and returns a numpy array whose data corresponds with that block.", " Args:\n key (str): The key to identify the block.\n shape (list of int): The shape of the numpy array to allocate.\n dtype (type): The numpy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the editor_multi_agent_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the editor_multi_agent_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
This editor example shows how to interact with holodeck worlds that have multiple agents. This is specifically for when working with UE4 directly and not a prebuilt binary.
"This editor example shows how to interact with holodeck worlds that have multiple agents.\n This is specifically for when working with UE4 directly and not a prebuilt binary."
111
false
BYU-PCCL/holodeck
editor_multi_agent_example
28,719
LDU_FT/aiven/pghoard/_stream_blob
LDU_FT
[ "<BEGIN>\n## `atomic_create_file`", "Open a temporary file for writing, rename to final name when done\n<END>", "<BEGIN>\n## `_stream_blob`", "Streams contents of given key to given fileobj. Data is read sequentially in chunks\n without any seeks. This requires duplicating some functionality of the Azu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stream_blob API. 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 _stream_blob API. 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...
Streams contents of given key to given fileobj. Data is read sequentially in chunks without any seeks. This requires duplicating some functionality of the Azure SDK, which only allows reading entire blob into memory at once or returning data from random offsets
"Streams contents of given key to given fileobj. Data is read sequentially in chunks\n without any seeks. This requires duplicating some functionality of the Azure SDK, which only\n allows reading entire blob into memory at once or returning data from random offsets"
66
false
aiven/pghoard
_stream_blob
28,720
LDU_FT/jtwhite79/pyemu/lraise
LDU_FT
[ "<BEGIN>\n## `_calc_delta`", "calc the scaled ensemble differences from the mean\n<END>", "<BEGIN>\n## `_calc_obs_local`", "propagate the ensemble forward using sweep.\n<END>", "<BEGIN>\n## `save_coo`", "write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lraise API. 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 lraise API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
log an exception, close the log file, then raise the exception Parameters ---------- message : str the exception message Raises ------ exception with message
"log an exception, close the log file, then raise the exception\n\n Parameters\n ----------\n message : str\n the exception message\n\n Raises\n ------\n exception with message"
1,496
true
jtwhite79/pyemu
lraise
28,721
LDU_FT/glyph/automat/state
LDU_FT
[ "<BEGIN>\n## `isOriginalLocation`", "Attempt to discover if this appearance of a PythonAttribute\n representing a class refers to the module where that class was\n defined.\n<END>", "<BEGIN>\n## `findMachinesViaWrapper`", "Recursively yield L{MethodicalMachine}s and their FQPNs within a\n L{PythonMod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Declare a state, possibly an initial state or a terminal state. This is a decorator for methods, but it will modify the method so as not to be callable any more. :param bool initial: is this state the initial state? Only one state on this :class:`automat.MethodicalMachine` ...
"Declare a state, possibly an initial state or a terminal state.\n\n This is a decorator for methods, but it will modify the method so as\n not to be callable any more.\n\n :param bool initial: is this state the initial state?\n Only one state on this :class:`automat.MethodicalMachine`\n...
60
false
glyph/automat
state
28,722
LDU_FT/gplepage/gvar/svd
LDU_FT
[ "<BEGIN>\n## `deriv`", "Compute *n*-th derivative of ``self``.", " :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>", "<BEGIN>\n## `integ`", "Compute *n*-th indefinite integral of ``self``.", " If *x0* is specified, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the svd API. 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 svd API. 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...
Apply SVD cuts to collection of |GVar|\s in ``g``. Standard usage is, for example, :: svdcut = ... gmod = svd(g, svdcut=svdcut) where ``g`` is an array of |GVar|\s or a dictionary containing |GVar|\s and/or arrays of |GVar|\s. When ``svdcut>0``, ``gmod`` is a copy of ``g`` whose |GVar...
"Apply SVD cuts to collection of |GVar|\\s in ``g``.\n\n Standard usage is, for example, ::\n\n svdcut = ...\n gmod = svd(g, svdcut=svdcut)\n\n where ``g`` is an array of |GVar|\\s or a dictionary containing |GVar|\\s\n and/or arrays of |GVar|\\s. When ``svdcut>0``, ``gmod`` is\n a copy of ``g...
206
false
gplepage/gvar
svd
28,723
LDU_FT/cyrus-/cypy/with_id_processor
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 with_id_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_id_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a new instance with the processor set to a new instance of :class:`IdentifierProcessor`, appropriately initialized to process non-strings appropriately.
"Returns a new instance with the processor set to a new instance \n of :class:`IdentifierProcessor`, appropriately initialized to process\n non-strings appropriately."
209
false
cyrus-/cypy
with_id_processor
28,724
LDU_FT/cldf/segments/combine_modifiers
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Tokenize a string (passed as argument or read from stdin)", " segments [--profile=PATH/TO/PROFILE] tokenize [STRING]\n<END>", "<BEGIN>\n## `from_file`", "Read an orthography profile from a metadata file or a default tab-separated profile file.\n<END>", "<BEGIN>\n## `from_text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_modifiers API. 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 combine_modifiers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Given a string that is space-delimited on Unicode grapheme clusters, group Unicode modifier letters with their preceding base characters, deal with tie bars, etc. Parameters ---------- string : str A Unicode string tokenized into grapheme clusters to be tokenized int...
"Given a string that is space-delimited on Unicode grapheme clusters,\n group Unicode modifier letters with their preceding base characters,\n deal with tie bars, etc.\n\n Parameters\n ----------\n string : str\n A Unicode string tokenized into grapheme clusters to be token...
25
false
cldf/segments
combine_modifiers
28,725
LDU_FT/EnergieID/smappy/authenticated
LDU_FT
[ "<BEGIN>\n## `authenticated`", "Decorator to check if Smappee's access token has expired.\n If it has, use the refresh token to request a new access token\n<END>", "<BEGIN>\n## `urljoin`", "Join terms together with forward slashes", " Parameters\n ----------\n parts", " Returns\n -------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticated API. 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 authenticated API. 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...
Decorator to check if Smappee's access token has expired. If it has, use the refresh token to request a new access token
"Decorator to check if Smappee's access token has expired.\n If it has, use the refresh token to request a new access token"
87
false
EnergieID/smappy
authenticated
28,726
LDU_FT/cenkalti/kuyruk/connection
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the worker and consumes messages from RabbitMQ.\n Returns only after `shutdown()` is called.\n<END>", "<BEGIN>\n## `_process_message`", "Processes the message received from the queue.\n<END>", "<BEGIN>\n## `_apply_task`", "Logs the time spent while running the task.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection API. 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 connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a new connection as a context manager.
"Returns a new connection as a context manager."
32
false
cenkalti/kuyruk
connection
28,727
LDU_FT/SMTG-UCL/sumo/_get_bradcrack_data
LDU_FT
[ "<BEGIN>\n## `kpath_from_seekpath`", "r\"\"\"Convert seekpath-formatted kpoints path to sumo-preferred format.", " If 'GAMMA' is used as a label this will be replaced by '\\Gamma'.", " Args:\n seekpath (list): A :obj:`list` of 2-tuples containing the labels at\n each si...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bradcrack_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bradcrack_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. T...
r"""Read Bradley--Cracknell k-points path from data file Args: bravais (str): Lattice code including orientation e.g. 'trig_p_c' Returns: dict: kpoint path and special point locations, formatted as e.g.:: {'kpoints': {'\Gamma': [0., 0., 0.], 'X': [0., 0.5, 0.], ....
"r\"\"\"Read Bradley--Cracknell k-points path from data file\n\n Args:\n bravais (str): Lattice code including orientation e.g. 'trig_p_c'\n\n Returns:\n dict: kpoint path and special point locations, formatted as e.g.::\n\n {'kpoints': {'\\Gamma': [0., 0., 0.], 'X': [0....
449
false
SMTG-UCL/sumo
_get_bradcrack_data
28,728
LDU_FT/hmartiniano/faz/parse_input_file
LDU_FT
[ "<BEGIN>\n## `_build_graph`", "Produce a dependency graph based on a list\n of tasks produced by the parser.\n<END>", "<BEGIN>\n## `expand_variables`", "Expand variables in the task code.\n Only variables who use the $[<variable name>] format are expanded.\n Variables using the $<vari...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_input_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_input_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parser for a file with syntax somewhat similar to Drake.
"Parser for a file with syntax somewhat similar to Drake."
20
false
hmartiniano/faz
parse_input_file
28,729
LDU_FT/Bystroushaak/pyDHTMLParser/replaceWith
LDU_FT
[ "<BEGIN>\n## `_raw_split`", "Parse HTML from text into array filled with tags end text.", " Source code is little bit unintutive, because it is state machine parser.", " For better understanding, look at http://bit.ly/1rXRcJj", " Example::", " >>> dhtmlparser._raw_split('<html><tag params=...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replaceWith API. 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 replaceWith API. 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...
Replace value in this element with values from `el`. This useful when you don't want change all references to object. Args: el (obj): :class:`HTMLElement` instance.
"Replace value in this element with values from `el`.\n\n This useful when you don't want change all references to object.\n\n Args:\n el (obj): :class:`HTMLElement` instance."
147
false
Bystroushaak/pyDHTMLParser
replaceWith
28,730
LDU_FT/googleapis/protoc-java-resource-names-plugin/parse
LDU_FT
[ "<BEGIN>\n## `render`", "Renders a string from a path template using the provided bindings.", " Args:\n bindings (dict): A dictionary of var names to binding strings.", " Returns:\n str: The rendered instantiation of this path template.", " Raises:\n Val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a list of path template segments parsed from data. Args: data: A path template string. Returns: A list of _Segment.
"Returns a list of path template segments parsed from data.\n\n Args:\n data: A path template string.\n Returns:\n A list of _Segment."
19
false
googleapis/protoc-java-resource-names-plugin
parse
28,731
LDU_FT/Rapptz/discord.py/latency
LDU_FT
[ "<BEGIN>\n## `_retrieve_messages_before_strategy`", "Retrieve messages using before parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_after_strategy`", "Retrieve messages using after parameter.\n<END>", "<BEGIN>\n## `_retrieve_messages_around_strategy`", "Retrieve messages using around parameter.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the latency API. 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 latency API. 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...
:class:`float`: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds. This operates similarly to :meth:`.Client.latency` except it uses the average latency of every shard's latency. To get a list of shard latency, check the :attr:`latencies` property. Returns ``nan`` if there are...
":class:`float`: Measures latency between a HEARTBEAT and a HEARTBEAT_ACK in seconds.\n\n This operates similarly to :meth:`.Client.latency` except it uses the average\n latency of every shard's latency. To get a list of shard latency, check the\n :attr:`latencies` property. Returns ``nan`` if ther...
1,325
true
Rapptz/discord.py
latency
28,732
LDU_FT/frc1418/tbapy/_post
LDU_FT
[ "<BEGIN>\n## `_get`", "Helper method: GET data from given URL on TBA's API.", " :param url: URL string to get data from.\n :return: Requested data in JSON format.\n<END>", "<BEGIN>\n## `_post`", "Helper method: POST data to a given URL on TBA's API.", " :param url: URL string to post ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Helper method: POST data to a given URL on TBA's API. :param url: URL string to post data to and hash. :pararm data: JSON data to post and hash. :return: Requests Response object.
"Helper method: POST data to a given URL on TBA's API.\n\n :param url: URL string to post data to and hash.\n :pararm data: JSON data to post and hash.\n :return: Requests Response object."
66
false
frc1418/tbapy
_post
28,733
LDU_FT/rackerlabs/fleece/inject_request_ids_into_environment
LDU_FT
[ "<BEGIN>\n## `build_wsgi_environ_from_event`", "Create a WSGI environment from the proxy integration event.\n<END>", "<BEGIN>\n## `wsgi_handler`", "lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_request_ids_into_environment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_request_ids_into_environment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Decorator for the Lambda handler to inject request IDs for logging.
"Decorator for the Lambda handler to inject request IDs for logging."
108
false
rackerlabs/fleece
inject_request_ids_into_environment
28,734
LDU_FT/talentpair/featurevectormatrix/get_row_dict
LDU_FT
[ "<BEGIN>\n## `default_to_hashed_rows`", "Gets the current setting with no parameters, sets it if a boolean is passed in", " :param default: the value to set\n :return: the current value, or new value if default is set to True or False\n<END>", "<BEGIN>\n## `_update_internal_column_state`", "Up...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_row_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_row_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 extr...
Return a dictionary representation for a matrix row :param row_idx: which row :return: a dict of feature keys/values, not including ones which are the default value
"Return a dictionary representation for a matrix row\n\n :param row_idx: which row\n :return: a dict of feature keys/values, not including ones which are the default value"
38
false
talentpair/featurevectormatrix
get_row_dict
28,735
LDU_FT/bkabrda/flask-whooshee/on_commit
LDU_FT
[ "<BEGIN>\n## `whooshee_search`", "Do a fulltext search on the query.\n Returns a query filtered with results of the fulltext search.", " :param search_string: The string to search for.\n :param group: The whoosh group to use for searching.\n Defaults to :class:`whoosh.q...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_commit API. 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 on_commit API. 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...
Method that gets called when a model is changed. This serves to do the actual index writing.
"Method that gets called when a model is changed. This serves\n to do the actual index writing."
30
false
bkabrda/flask-whooshee
on_commit
28,736
LDU_FT/robmcmullen/atrcopy/get_index_from_base_index
LDU_FT
[ "<BEGIN>\n## `text_to_int`", "Convert text to int, raising exeception on invalid input\n<END>", "<BEGIN>\n## `assign_sector_numbers`", "Map out the sectors and link the sectors together", " raises NotEnoughSpaceOnDisk if the whole file won't fit. It will not\n allow partial writes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index_from_base_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index_from_base_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get index into this array's data given the index into the base array
"Get index into this array's data given the index into the base array"
73
false
robmcmullen/atrcopy
get_index_from_base_index
28,737
LDU_FT/mattharrison/rst2odp/_check_add_node
LDU_FT
[ "<BEGIN>\n## `adjust_fit`", "given a x and y of dest, determine the ratio and return\n an (x,y,w,h) for a fitted image (note x or y could be neg).\n >>> adjust_fit(4,3,5,5)\n (0.5, 0, 3.0, 3.0)\n >>> adjust_fit(8,6,5,5)\n (1.0, 0, 6.0, 6.0)\n >>> adjust_fit(4,3,5,2)\n (0, 0.69999999999999996,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns False if bad to make name a child of parent
"Returns False if bad to make name a child of parent"
50
false
mattharrison/rst2odp
_check_add_node
28,738
LDU_FT/django-userena-ce/django-userena-ce/save
LDU_FT
[ "<BEGIN>\n## `activate`", "Activate a user with an activation key.", " The key is a SHA1 string. When the SHA1 is found with an\n :class:`UserenaSignup`, the :class:`User` of that account will be\n activated. After a successful activation the view will redirect to\n ``success_url``. If the SHA1 is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. 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 save API. 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...
Override the save method to save the first and last name to the user field.
"Override the save method to save the first and last name to the user\n field."
241
false
django-userena-ce/django-userena-ce
save
28,739
LDU_FT/inveniosoftware/invenio-access/set_action_cache
LDU_FT
[ "<BEGIN>\n## `removed_or_inserted_action`", "Remove the action from cache when an item is inserted or deleted.\n<END>", "<BEGIN>\n## `changed_action`", "Remove the action from cache when an item is updated.\n<END>", "<BEGIN>\n## `create`", "Create new database row using the provided action need.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_action_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_action_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Store action needs and excludes. .. note:: The action is saved only if a cache system is defined. :param action_key: The unique action name. :param data: The action to be saved.
"Store action needs and excludes.\n\n .. note:: The action is saved only if a cache system is defined.\n\n :param action_key: The unique action name.\n :param data: The action to be saved."
64
false
inveniosoftware/invenio-access
set_action_cache
28,740
LDU_FT/drongo-framework/drongo/add
LDU_FT
[ "<BEGIN>\n## `set_cookie`", "Set a cookie.", " Args:\n key (:obj:`str`): Cookie name\n value (:obj:`str`): Cookie value\n domain (:obj:`str`): Cookie domain\n path (:obj:`str`): Cookie value\n secure (:obj:`bool`): True if secure, False otherwise\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 url pattern. Args: pattern (:obj:`str`): URL pattern to add. This is usually '/' separated path. Parts of the URL can be parameterised using curly braces. Examples: "/", "/path/to/resource", "/resoures/{param}" method (:obj:`str`, :o...
"Add a url pattern.\n\n Args:\n pattern (:obj:`str`): URL pattern to add. This is usually '/'\n separated path. Parts of the URL can be parameterised using\n curly braces.\n Examples: \"/\", \"/path/to/resource\", \"/resoures/{param}\"\n method (...
46
false
drongo-framework/drongo
add
28,741
LDU_FT/eyurtsev/fcsparser/from_data
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Wrapper around np.fromfile to support any file-like object.\n<END>", "<BEGIN>\n## `parse`", "Parse an fcs file at the location specified by the path.", " Parameters\n ----------\n path: str\n Path of .fcs file\n meta_data_only: bool\n If True, the parse_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extract...
Load an FCS file from a bytes-like object. Args: data: buffer containing contents of an FCS file. Returns: FCSParser instance with data loaded
"Load an FCS file from a bytes-like object.\n\n Args:\n data: buffer containing contents of an FCS file.\n\n Returns:\n FCSParser instance with data loaded"
39
false
eyurtsev/fcsparser
from_data
28,742
LDU_FT/oceanprotocol/squid-py/get_price
LDU_FT
[ "<BEGIN>\n## `get_requests_session`", "Set connection pool maxsize and block value to avoid `connection pool full` warnings.", " :return: requests session\n<END>", "<BEGIN>\n## `request_tokens`", "Request an amount of tokens for a particular address.\n This transaction has gas cost", " :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_price API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_price API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the price from the conditions parameters. :return: Int
"Return the price from the conditions parameters.\n\n :return: Int"
417
false
oceanprotocol/squid-py
get_price
28,743
LDU_FT/fhcrc/seqmagick/squeeze
LDU_FT
[ "<BEGIN>\n## `action`", "Run mogrify. Most of the action is in convert, this just creates a temp\n file for the output.\n<END>", "<BEGIN>\n## `all_unambiguous`", "All unambiguous versions of sequence_str\n<END>", "<BEGIN>\n## `moving_average`", "From Python collections module documentation", " mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the squeeze API. 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 squeeze API. 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...
Remove any gaps that are present in the same position across all sequences in an alignment. Takes a second sequence iterator for determining gap positions.
"Remove any gaps that are present in the same position across all sequences\n in an alignment. Takes a second sequence iterator for determining gap\n positions."
150
false
fhcrc/seqmagick
squeeze
28,744
LDU_FT/peopledoc/workalendar/solar_term
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solar_term API. 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 solar_term API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the date of the solar term for the given longitude and the given year. Solar terms are used for Chinese and Taiwanese holidays (e.g. Qingming Festival in Taiwan). More information: - https://en.wikipedia.org/wiki/Solar_term - https://en.wikipedia.org/wiki/Qingmi...
"Returns the date of the solar term for the given longitude\n and the given year.\n\n Solar terms are used for Chinese and Taiwanese holidays\n (e.g. Qingming Festival in Taiwan).\n\n More information:\n - https://en.wikipedia.org/wiki/Solar_term\n - https://en.wikipedia.org/wi...
106
false
peopledoc/workalendar
solar_term
28,745
LDU_FT/Aloomaio/python-sdk/_verify_connection
LDU_FT
[ "<BEGIN>\n## `_get_sender`", "Utility function acting as a Sender factory - ensures senders don't get\n created twice of more for the same target server\n<END>", "<BEGIN>\n## `terminate`", "Stops all the active Senders by flushing the buffers and closing the\n underlying sockets\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_connection 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 _verify_connection 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...
Checks availability of the Alooma server :return: If the server is reachable, returns True :raises: If connection fails, raises exceptions.ConnectionFailed
"Checks availability of the Alooma server\n :return: If the server is reachable, returns True\n :raises: If connection fails, raises exceptions.ConnectionFailed"
27
false
Aloomaio/python-sdk
_verify_connection
28,746
LDU_FT/timothyb0912/pylogit/check_length_of_initial_values
LDU_FT
[ "<BEGIN>\n## `get_dataframe_from_data`", "Parameters\n ----------\n data : string or pandas dataframe.\n If string, data should be an absolute or relative path to a CSV file\n containing the long format data for this choice model. Note long format\n has one row per available alternative...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_length_of_initial_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_length_of_initial_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Ensures that `init_values` is of the correct length. Raises a helpful ValueError if otherwise. Parameters ---------- init_values : 1D ndarray. The initial values to start the optimizatin process with. There should be one value for each index coefficient, outside ...
"Ensures that `init_values` is of the correct length. Raises a helpful\n ValueError if otherwise.\n\n Parameters\n ----------\n init_values : 1D ndarray.\n The initial values to start the optimizatin process with. There\n should be one value for each index coefficient, ...
871
false
timothyb0912/pylogit
check_length_of_initial_values
28,747
LDU_FT/theonion/django-bulbs/get_api_url
LDU_FT
[ "<BEGIN>\n## `save`", "Kicks off celery task to re-save associated special coverages to percolator", " :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>", "<BEGIN>\n## `get_field_info`", "This method is basically a m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
gets a canonical path to the api detail url of the video on the hub :return: the path to the api detail of the video :rtype: str
"gets a canonical path to the api detail url of the video on the hub\n\n :return: the path to the api detail of the video\n :rtype: str"
277
false
theonion/django-bulbs
get_api_url
28,748
LDU_FT/SUSE-Enceladus/ipa/_get_instance
LDU_FT
[ "<BEGIN>\n## `_get_instance_state`", "Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>", "<BEGIN>\n## `_get_user_data`", "Return formatted bash script string.", " The public ssh key is added by cloud init to the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the instance matching the running_instance_id.
"Return the instance matching the running_instance_id."
143
false
SUSE-Enceladus/ipa
_get_instance
28,749
LDU_FT/Microsoft/nni/update_search_space
LDU_FT
[ "<BEGIN>\n## `get_pre_compute`", ":param s: [src_sequence, batch_size, src_dim]\n :return: [src_sequence, batch_size. hidden_dim]\n<END>", "<BEGIN>\n## `get_prob`", ":param s: [src_sequence_length, batch_size, src_dim]\n :param h: [batch_size, tgt_dim] or [tgt_sequence_length, batch_size, tgt_di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_search_space 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 update_search_space API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Update the self.x_bounds and self.x_types by the search_space.json Parameters ---------- search_space : dict
"Update the self.x_bounds and self.x_types by the search_space.json\n\n Parameters\n ----------\n search_space : dict"
587
false
Microsoft/nni
update_search_space
28,750
LDU_FT/nbedi/typecaster/text_to_speech
LDU_FT
[ "<BEGIN>\n## `convert_to_ssml`", "Convert text to SSML based on the text's current format. NOTE: This module\n is extremely limited at the moment and will be expanded.", " :param text:\n The text to convert.\n :param text_format:\n The text format of the text. Currently supports 'plain', ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_to_speech API. 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 text_to_speech API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Converts given text to a pydub AudioSegment using a specified speech synthesizer. At the moment, IBM Watson's text-to-speech API is the only available synthesizer. :param text: The text that will be synthesized to audio. :param synthesizer: The text-to-speech synthesizer to use. At the...
"Converts given text to a pydub AudioSegment using a specified speech\n synthesizer. At the moment, IBM Watson's text-to-speech API is the only\n available synthesizer.\n\n :param text:\n The text that will be synthesized to audio.\n :param synthesizer:\n The text-to-speech synthesizer to use....
27
false
nbedi/typecaster
text_to_speech
28,751
LDU_FT/etcher-be/epab/stashed
LDU_FT
[ "<BEGIN>\n## `cli`", "This is a tool that handles all the tasks to build a Python application", " This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>", "<BEGIN>\n## `sort`", "Runs iSort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stashed API. 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 stashed API. 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...
Simple decorator to stash changed files between a destructive repo operation
"Simple decorator to stash changed files between a destructive repo operation"
133
false
etcher-be/epab
stashed
28,752
LDU_FT/Stranger6667/pyoffers/setup_managers
LDU_FT
[ "<BEGIN>\n## `prepare_query_params`", "Prepares given parameters to be used in querystring.\n<END>", "<BEGIN>\n## `prepend_model`", "Prepends model name if it is not already prepended.\n For example model is \"Offer\":", " key -> Offer.key\n -key -> -Offer.key\n Offer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_managers API. 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 setup_managers API. 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...
Allows to access manager by model name - it is convenient, because HasOffers returns model names in responses.
"Allows to access manager by model name - it is convenient, because HasOffers returns model names in responses."
19
false
Stranger6667/pyoffers
setup_managers
28,753
LDU_FT/Trax-air/swagger-parser/get_path_spec
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_spec API. 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_path_spec API. 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 the specification matching with the given path. Args: path: path we want the specification. action: get the specification for the given action. Returns: A tuple with the base name of the path and the specification. Or (None, None) if no specification...
"Get the specification matching with the given path.\n\n Args:\n path: path we want the specification.\n action: get the specification for the given action.\n\n Returns:\n A tuple with the base name of the path and the specification.\n Or (None, None) if no spec...
100
false
Trax-air/swagger-parser
get_path_spec
28,754
LDU_FT/ResidentMario/geoplot/_validate_hue
LDU_FT
[ "<BEGIN>\n## `load`", "A moderately mind-bendy meta-method which abstracts the internals of individual projections' load procedures.", " Parameters\n ----------\n proj : geoplot.crs object instance\n A disguised reference to ``self``.\n df : GeoDataFrame\n The G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_hue API. 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 _validate_hue API. 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...
The top-level ``hue`` parameter present in most plot types accepts a variety of input types. This method condenses this variety into a single preferred format---an iterable---which is expected by all submethods working with the data downstream of it. Parameters ---------- df : GeoDataFrame ...
"The top-level ``hue`` parameter present in most plot types accepts a variety of input types. This method\n condenses this variety into a single preferred format---an iterable---which is expected by all submethods working\n with the data downstream of it.\n\n Parameters\n ----------\n df : GeoDataFrame\n...
404
false
ResidentMario/geoplot
_validate_hue
28,755
LDU_FT/SandstoneHPC/sandstone-ide/get_content
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the server.\n :param str url: server URL.\n<END>", "<BEGIN>\n## `send`", "Send message to the server\n :param str data: message.\n<END>", "<BEGIN>\n## `initialize`", "Only try to parse as JSON if the JSON content type\n header is set.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content API. 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...
Retrieve the content of the requested resource which is located at the given absolute path. This method should either return a byte string or an iterator of byte strings. The latter is preferred for large files as it helps reduce memory fragmentation.
"Retrieve the content of the requested resource which is located\n at the given absolute path.\n This method should either return a byte string or an iterator\n of byte strings. The latter is preferred for large files\n as it helps reduce memory fragmentation."
36
false
SandstoneHPC/sandstone-ide
get_content
28,756
LDU_FT/django-crispy-forms/django-crispy-forms/all
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns all layout objects of first level of depth
"Returns all layout objects of first level of depth"
89
false
django-crispy-forms/django-crispy-forms
all
28,757
LDU_FT/spotify/pyfg/compare_config
LDU_FT
[ "<BEGIN>\n## `compare_config`", "This method will return all the necessary commands to get from the config we are in to the target\n config.", " Args:\n * **target** (:class:`~pyFG.forticonfig.FortiConfig`) - Target config.\n * **init** (bool) - This tells to the method if th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_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 ex...
This method will return all the necessary commands to get from the config we are in to the target config. Args: * **target** (:class:`~pyFG.forticonfig.FortiConfig`) - Target config. * **init** (bool) - This tells to the method if this is the first call to the method or if we ar...
"This method will return all the necessary commands to get from the config we are in to the target\n config.\n\n Args:\n * **target** (:class:`~pyFG.forticonfig.FortiConfig`) - Target config.\n * **init** (bool) - This tells to the method if this is the first call to the method or if...
37
false
spotify/pyfg
compare_config
28,758
LDU_FT/knipknap/exscript/synchronized
LDU_FT
[ "<BEGIN>\n## `get_protocol_from_name`", "Returns the protocol class for the protocol with the given name.", " :type name: str\n :param name: The name of the protocol.\n :rtype: Protocol\n :return: The protocol class.\n<END>", "<BEGIN>\n## `create_protocol`", "Returns an instance of the protoco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synchronized API. 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 synchronized API. 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 for synchronizing method access.
"Decorator for synchronizing method access."
683
false
knipknap/exscript
synchronized
28,759
LDU_FT/bmweiner/skillful/cert_chain
LDU_FT
[ "<BEGIN>\n## `timestamp`", "Validate timestamp specified by request.", " See `validate.request` for additional info.", " Args:\n stamp: str. Time request was made as ISO 8601 timestamp.\n tolerance: int. Number of seconds request remains valid from timestamp.", " Returns\n bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cert_chain API. 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 cert_chain API. 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...
Validate PEM-encoded X.509 certificate chain. See `validate.request` for additional info. Args: certs: list. The certificate chain as a list of cryptography.hazmat.backends.openssl.x509._Certificate certificates. See `validate.retrieve` to create certs obj. Returns: ...
"Validate PEM-encoded X.509 certificate chain.\n\n See `validate.request` for additional info.\n\n Args:\n certs: list. The certificate chain as a list of\n cryptography.hazmat.backends.openssl.x509._Certificate certificates.\n See `validate.retrieve` to create certs obj.\n\n Retur...
94
false
bmweiner/skillful
cert_chain
28,760
LDU_FT/switchboardpy/switchboard/get_active_conditions
LDU_FT
[ "<BEGIN>\n## `has_active_condition`", "Given a list of instances, and the condition active for\n this switch, returns a boolean representing if the\n conditional is met, including a non-instance default.\n<END>", "<BEGIN>\n## `_key`", "Returns a Datastore key object, prefixed with the NAMESPACE....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_active_conditions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a generator which yields groups of lists of conditions. >>> conditions = switch.get_active_conditions() >>> for label, set_id, field, value, exc in conditions: #doctest: +SKIP >>> print ("%(label)s: %(field)s = %(value)s (exclude: %(exc)s)" >>> % (label, field.lab...
"Returns a generator which yields groups of lists of conditions.\n\n >>> conditions = switch.get_active_conditions()\n >>> for label, set_id, field, value, exc in conditions: #doctest: +SKIP\n >>> print (\"%(label)s: %(field)s = %(value)s (exclude: %(exc)s)\"\n >>> % (label, f...
30
false
switchboardpy/switchboard
get_active_conditions
28,761
LDU_FT/andrea-cuttone/geoplotlib/kde
LDU_FT
[ "<BEGIN>\n## `__voronoi_finite_polygons_2d`", "Reconstruct infinite voronoi regions in a 2D diagram to finite\n regions.", " Parameters\n ----------\n vor : Voronoi\n Input diagram\n radius : float, optional\n Distance to 'points at infinity'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kde API. 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 kde API. 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...
Kernel density estimation visualization :param data: data access object :param bw: kernel bandwidth (in screen coordinates) :param cmap: colormap :param method: if kde use KDEMultivariate from statsmodel, which provides a more accurate but much slower estimation. If hist, estimates density appl...
"Kernel density estimation visualization\n\n :param data: data access object\n :param bw: kernel bandwidth (in screen coordinates)\n :param cmap: colormap\n :param method: if kde use KDEMultivariate from statsmodel, which provides a more accurate but much slower estimation.\n If hist, estimates densi...
82
false
andrea-cuttone/geoplotlib
kde
28,762
LDU_FT/wearpants/instrument/_make_decorator
LDU_FT
[ "<BEGIN>\n## `_make_decorator`", "morass of closures for making decorators/descriptors\n<END>", "<BEGIN>\n## `all`", "Measure total time and item count for consuming an iterable", " :arg iterable: any iterable\n :arg function metric: f(name, count, total_time)\n :arg str name: name for the metric\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_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 _make_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...
morass of closures for making decorators/descriptors
"morass of closures for making decorators/descriptors"
53
false
wearpants/instrument
_make_decorator
28,763
LDU_FT/CodeBradley/python-uptimerobot/editMonitor
LDU_FT
[ "<BEGIN>\n## `addMonitor`", "Returns True if Monitor was added, otherwise False.\n<END>", "<BEGIN>\n## `getMonitors`", "Returns status and response payload for all known monitors.\n<END>", "<BEGIN>\n## `getMonitorById`", "Returns monitor status and alltimeuptimeratio for a MonitorId.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the editMonitor API. 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 editMonitor API. 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...
monitorID is the only required object. All others are optional and must be quoted. Returns Response object from api.
"monitorID is the only required object. All others are optional and must be quoted.\n Returns Response object from api."
12
false
CodeBradley/python-uptimerobot
editMonitor
28,764
LDU_FT/snowblink14/smatch/compute_f
LDU_FT
[ "<BEGIN>\n## `build_arg_parser`", "Build an argument parser using argparse. Use it when python version is 2.7 or later.\n<END>", "<BEGIN>\n## `build_arg_parser2`", "Build an argument parser using optparse. Use it when python version is 2.5 or 2.6.\n<END>", "<BEGIN>\n## `get_best_match`", "Get the highest ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_f API. 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 compute_f API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Compute the f-score based on the matching triple number, triple number of AMR set 1, triple number of AMR set 2 Args: match_num: matching triple number test_num: triple number of AMR 1 (test file) gold_num: triple number of ...
"Compute the f-score based on the matching triple number,\n triple number of AMR set 1,\n triple number of AMR set 2\n Args:\n match_num: matching triple number\n test_num: triple number of AMR 1 (test file)\n gold_num: triple num...
54
false
snowblink14/smatch
compute_f
28,765
LDU_FT/michaelpb/omnic/directory_walk
LDU_FT
[ "<BEGIN>\n## `use_settings`", "Context manager to temporarily override settings\n<END>", "<BEGIN>\n## `parse_string`", "Parses a foreign resource URL into the URL string itself and any\n relevant args and kwargs\n<END>", "<BEGIN>\n## `apply_command_list_template`", "Perform necessary substitutions ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directory_walk API. 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 directory_walk API. 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...
Walk a directory structure and yield full parallel source and destination files, munging filenames as necessary
"Walk a directory structure and yield full parallel source and destination\n files, munging filenames as necessary"
111
false
michaelpb/omnic
directory_walk
28,766
LDU_FT/ambitioninc/django-entity/add_entity
LDU_FT
[ "<BEGIN>\n## `remove_duplicates`", "Remove any duplicates from the entity relationship table\n :param apps:\n :param schema_editor:\n :return:\n<END>", "<BEGIN>\n## `transaction_atomic_with_retry`", "This is a decorator that will wrap the decorated method in an atomic transaction and\n retry the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_entity API. 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 add_entity API. 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...
Add an entity, or sub-entity group to this EntityGroup. :type entity: Entity :param entity: The entity to add. :type sub_entity_kind: Optional EntityKind :param sub_entity_kind: If a sub_entity_kind is given, all sub_entities of the entity will be added to this ...
"Add an entity, or sub-entity group to this EntityGroup.\n\n :type entity: Entity\n :param entity: The entity to add.\n\n :type sub_entity_kind: Optional EntityKind\n :param sub_entity_kind: If a sub_entity_kind is given, all\n sub_entities of the entity will be added to this\n ...
83
false
ambitioninc/django-entity
add_entity
28,767
LDU_FT/the01/python-floscraper/_shrink_dict
LDU_FT
[ "<BEGIN>\n## `prepare_headers`", "Prepare headers object for request (add cache information", " :param headers: Headers object\n :type headers: dict\n :param cache_info: Cache information to add\n :type cache_info: floscraper.models.CacheInfo\n :return: Prepared headers\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shrink_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shrink_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 extr...
Shrink dict down to essentials :param shrink: Dict to shrink :type shrink: dict :return: Shrunk dict :rtype: dict
"Shrink dict down to essentials\n\n :param shrink: Dict to shrink\n :type shrink: dict\n :return: Shrunk dict\n :rtype: dict"
50
false
the01/python-floscraper
_shrink_dict
28,768
LDU_FT/swistakm/python-gmaps/encode
LDU_FT
[ "<BEGIN>\n## `directions`", "Get directions between locations", " :param origin: Origin location - string address; (latitude, longitude)\n two-tuple, dict with (\"lat\", \"lon\") keys or object with (lat, lon)\n attributes\n :param destination: Destination location - type sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. 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 encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
:param locations: locations list containig (lat, lon) two-tuples :return: encoded polyline string
":param locations: locations list containig (lat, lon) two-tuples\n :return: encoded polyline string"
26
false
swistakm/python-gmaps
encode
28,769
LDU_FT/pysathq/pysat/get_model
LDU_FT
[ "<BEGIN>\n## `open`", "Open a file pointer. Note that a file is *always* opened in text\n mode. The method inherits its input parameters from the constructor\n of :class:`FileObject`.\n<END>", "<BEGIN>\n## `get_compression_type`", "Determine compression type for a given file using its ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a model if the formula was previously satisfied.
"Get a model if the formula was previously satisfied."
578
false
pysathq/pysat
get_model
28,770
LDU_FT/contentful/contentful.py/url
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 url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns a formatted URL for the Asset's File with serialized parameters. Usage: >>> my_asset.url() "//images.contentful.com/spaces/foobar/..." >>> my_asset.url(w=120, h=160) "//images.contentful.com/spaces/foobar/...?w=120&h=160"
"Returns a formatted URL for the Asset's File\n with serialized parameters.\n\n Usage:\n >>> my_asset.url()\n \"//images.contentful.com/spaces/foobar/...\"\n >>> my_asset.url(w=120, h=160)\n \"//images.contentful.com/spaces/foobar/...?w=120&h=160\""
71
false
contentful/contentful.py
url
28,771
LDU_FT/sveetch/djangocodemirror/codemirror_field_css_assets
LDU_FT
[ "<BEGIN>\n## `codemirror_settings_update`", "Return a new dictionnary of configs updated with given parameters.", " You may use ``on`` and ``names`` arguments to select config or filter out\n some configs from returned dict.", " Arguments:\n configs (dict): Dictionnary of configurations to upd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codemirror_field_css_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the codemirror_field_css_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Tag to render CodeMirror CSS assets needed for all given fields. Example: :: {% load djangocodemirror_tags %} {% codemirror_field_css_assets form.myfield1 form.myfield2 %}
"Tag to render CodeMirror CSS assets needed for all given fields.\n\n Example:\n ::\n\n {% load djangocodemirror_tags %}\n {% codemirror_field_css_assets form.myfield1 form.myfield2 %}"
125
false
sveetch/djangocodemirror
codemirror_field_css_assets
28,772