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/mkoura/dump2polarion/write_xml
LDU_FT
[ "<BEGIN>\n## `only_passed_and_wait`", "Returns PASS and WAIT results only, skips everything else.\n<END>", "<BEGIN>\n## `insert_source_info`", "Adds info about source of test result if available.\n<END>", "<BEGIN>\n## `setup_parametrization`", "Modifies result's data according to the parametrization setti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_xml API. 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 write_xml API. 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...
Outputs the XML content (string) into a file. If `output_loc` is supplied and it's a file (not directory), the output will be saved there and the `filename` is ignored. Args: xml_str: string with XML document output_loc: file or directory for saving the file filename: file name tha...
"Outputs the XML content (string) into a file.\n\n If `output_loc` is supplied and it's a file (not directory), the output\n will be saved there and the `filename` is ignored.\n\n Args:\n xml_str: string with XML document\n output_loc: file or directory for saving the file\n filename: file...
107
false
mkoura/dump2polarion
write_xml
14,273
LDU_FT/thomasdelaet/python-velbus/to_json_basic
LDU_FT
[ "<BEGIN>\n## `_name_messages_complete`", "Check if all name messages have been received\n<END>", "<BEGIN>\n## `populate`", "-DB1 last bit = local_control\n -DB1 bit 2+3 = status_mode\n -DB1 bit 4 = auto send\n -DB1 bit 5+6+7 = mode\n -DB1 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json_basic API. 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 to_json_basic API. 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...
Create JSON structure with generic attributes :return: dict
"Create JSON structure with generic attributes\r\n\r\n :return: dict"
38
false
thomasdelaet/python-velbus
to_json_basic
14,274
LDU_FT/vals/umis/substitution_set
LDU_FT
[ "<BEGIN>\n## `mutationhash`", "produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>", "<BEGIN>\n## `substitution_set`", "for a string, return a set of all possible substitutions\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitution_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitution_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
for a string, return a set of all possible substitutions
"for a string, return a set of all possible substitutions"
62
false
vals/umis
substitution_set
14,275
LDU_FT/ambitioninc/kmatch/_match_value_filter
LDU_FT
[ "<BEGIN>\n## `_compile`", "Recursively compiles the regexs in the pattern (p).\n<END>", "<BEGIN>\n## `_validate`", "Recursively validates the pattern (p), ensuring it adheres to the proper key names and structure.\n<END>", "<BEGIN>\n## `_validate_xor_args`", "Raises ValueError if 2 arguments are not passe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _match_value_filter 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 _match_value_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns True of False if value in the pattern p matches the filter.
"Returns True of False if value in the pattern p matches the filter."
15
false
ambitioninc/kmatch
_match_value_filter
14,276
LDU_FT/brechtm/rinohtype/_vertically_size_cells
LDU_FT
[ "<BEGIN>\n## `preprocess_tree`", "Transform internal refuri targets in reference nodes to refids and\n transform footnote rubrics so that they do not end up in the output\n<END>", "<BEGIN>\n## `_size_columns`", "Calculate the table's column sizes constrained by:", " - requested (absolute, rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _vertically_size_cells 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 _vertically_size_cells API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Grow row heights to cater for vertically spanned cells that do not fit in the available space.
"Grow row heights to cater for vertically spanned cells that do not\n fit in the available space."
310
false
brechtm/rinohtype
_vertically_size_cells
14,277
LDU_FT/zmathew/django-backbone/get_form_instance
LDU_FT
[ "<BEGIN>\n## `autodiscover`", "Auto-discover INSTALLED_APPS backbone_api.py modules.\n<END>", "<BEGIN>\n## `register`", "Registers the given backbone view class.\n<END>", "<BEGIN>\n## `queryset`", "Returns the queryset (along with ordering) to be used when retrieving object(s).\n<END>", "<BEGIN>\n## `ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_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...
Returns an instantiated form to be used for adding or editing an object. The `instance` argument is the model instance (passed only if this form is going to be used for editing an existing object).
"Returns an instantiated form to be used for adding or editing an object.\n\n The `instance` argument is the model instance (passed only if this form\n is going to be used for editing an existing object)."
23
false
zmathew/django-backbone
get_form_instance
14,278
LDU_FT/openstack/networking-cisco/_create_port_profile
LDU_FT
[ "<BEGIN>\n## `assign_hosting_device_to_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `unassign_hosting_device_from_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `update_subports`", "Set port attributes for trunk ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_port_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_port_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates a Port Profile on the UCS Manager. Significant parameters set in the port profile are: 1. Port profile name - Should match what was set in vif_details 2. High performance mode - For VM-FEX to be enabled/configured on the port using this port profile, this mode should be enabled....
"Creates a Port Profile on the UCS Manager.\n\n Significant parameters set in the port profile are:\n 1. Port profile name - Should match what was set in vif_details\n 2. High performance mode - For VM-FEX to be enabled/configured on\n the port using this port profile, this mode should be en...
1,517
true
openstack/networking-cisco
_create_port_profile
14,279
LDU_FT/pytroll/pyorbital/get_last_an_time
LDU_FT
[ "<BEGIN>\n## `gmst`", "Greenwich mean sidereal utc_time, in radians.", " As defined in the AIAA 2006 implementation:\n http://www.celestrak.com/publications/AIAA/2006-6753/\n<END>", "<BEGIN>\n## `sun_ecliptic_longitude`", "Ecliptic longitude of the sun at *utc_time*.\n<END>", "<BEGIN>\n## `sun_ra_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_an_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_an_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Calculate time of last ascending node relative to the specified time
"Calculate time of last ascending node relative to the\n specified time"
83
false
pytroll/pyorbital
get_last_an_time
14,280
LDU_FT/mailgun/talon/parse_msg_sender
LDU_FT
[ "<BEGIN>\n## `safe_format`", "Helper: formats string with any combination of bytestrings/unicode\n strings without raising exceptions\n<END>", "<BEGIN>\n## `to_unicode`", "Safely returns a unicode version of a given string\n >>> utils.to_unicode('привет')\n u'привет'\n >>> utils.to_unicode(u'п...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_msg_sender API. 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_msg_sender API. 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 filename returns the sender and the message. Here the message is assumed to be a whole MIME message or just message body. >>> sender, msg = parse_msg_sender('msg.eml') >>> sender, msg = parse_msg_sender('msg_body') If you don't want to consider the sender's name in your classification ...
"Given a filename returns the sender and the message.\n\n Here the message is assumed to be a whole MIME message or just\n message body.\n\n >>> sender, msg = parse_msg_sender('msg.eml')\n >>> sender, msg = parse_msg_sender('msg_body')\n\n If you don't want to consider the sender's name in your classific...
140
false
mailgun/talon
parse_msg_sender
14,281
LDU_FT/Ezhil-Language-Foundation/open-tamil/reverse_word
LDU_FT
[ "<BEGIN>\n## `unicode2encode`", "charmap : dictionary which has both encode as key, unicode as value\n<END>", "<BEGIN>\n## `unicode2auto`", "This function will convert unicode (first argument) text into other\r\n encodes by auto find the encode (from available encodes) by using sample\r\n encode text in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_word API. 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 reverse_word API. 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...
reverse a Tamil word according to letters not unicode-points
"reverse a Tamil word according to letters not unicode-points"
90
false
Ezhil-Language-Foundation/open-tamil
reverse_word
14,282
LDU_FT/wiheto/teneto/binarize_percent
LDU_FT
[ "<BEGIN>\n## `temporal_betweenness_centrality`", "Returns temporal betweenness centrality per node.", " Parameters\n -----------", " Input should be *either* tnet or paths.", " data : array or dict", " Temporal network input (graphlet or contact). nettype: 'bu', 'bd'.", " calc : st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binarize_percent API. 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 binarize_percent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Binarizes a network proprtionally. When axis='time' (only one available at the moment) then the top values for each edge time series are considered. Parameters ---------- netin : array or dict network (graphlet or contact representation), level : float Percent to keep (expressed as dec...
"Binarizes a network proprtionally. When axis='time' (only one available at the moment) then the top values for each edge time series are considered.\n\n Parameters\n ----------\n\n netin : array or dict\n network (graphlet or contact representation),\n level : float\n Percent to keep (express...
649
false
wiheto/teneto
binarize_percent
14,283
LDU_FT/Parisson/TimeSide/gst_buffer_to_numpy_array
LDU_FT
[ "<BEGIN>\n## `JSON_NumpyArrayEncoder`", "Define Specialize JSON encoder for numpy array\n<END>", "<BEGIN>\n## `to_hdf5`", "Save a dictionnary-like object inside a h5 file group\n<END>", "<BEGIN>\n## `render`", "Render a matplotlib figure from the analyzer result", " Return the figure, use fig....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gst_buffer_to_numpy_array 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 gst_buffer_to_numpy_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
gstreamer buffer to numpy array conversion
"gstreamer buffer to numpy array conversion"
88
false
Parisson/TimeSide
gst_buffer_to_numpy_array
14,284
LDU_FT/Parquery/icontract/visit_Subscript
LDU_FT
[ "<BEGIN>\n## `_collapse_invariants`", "Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>", "<BEGIN>\n## `_collapse_preconditions`", "Collapse function preconditions with the preconditions collected from the base classes.", " :param base_preconditions: precondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Subscript API. 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 visit_Subscript API. 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...
Visit the ``slice`` and a ``value`` and get the element.
"Visit the ``slice`` and a ``value`` and get the element."
122
false
Parquery/icontract
visit_Subscript
14,285
LDU_FT/samfoo/vt102/process
LDU_FT
[ "<BEGIN>\n## `_escape_sequence`", "Handle characters seen when in an escape sequence. Most non-vt52\n commands start with a left-bracket after the escape and then a \n stream of parameters and a command.\n<END>", "<BEGIN>\n## `_end_escape_sequence`", "Handle the end of an escape sequence. The fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. 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 process API. 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...
Consume a string of and advance the state as necessary.
"Consume a string of and advance the state as necessary."
55
false
samfoo/vt102
process
14,286
LDU_FT/mayfield/shellish/add_file_argument
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file_argument API. 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_file_argument API. 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 tab-completion safe FileType argument. This argument differs from a normal argparse.FileType based argument in that the value is a factory function that returns a file handle instead of providing an already open file handle. There are various reasons why this is a better approach...
"Add a tab-completion safe FileType argument. This argument\n differs from a normal argparse.FileType based argument in that the\n value is a factory function that returns a file handle instead of\n providing an already open file handle. There are various reasons\n why this is a better app...
172
false
mayfield/shellish
add_file_argument
14,287
LDU_FT/Parsl/libsubmit/_status
LDU_FT
[ "<BEGIN>\n## `_status`", "Internal: Do not call. Returns the status list for a list of job_ids", " Args:\n self", " Returns:\n [status...] : Status list of all jobs\n<END>", "<BEGIN>\n## `submit`", "Submits the command onto an Local Resource Manager job of blocksize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Internal: Do not call. Returns the status list for a list of job_ids Args: self Returns: [status...] : Status list of all jobs
"Internal: Do not call. Returns the status list for a list of job_ids\n\n Args:\n self\n\n Returns:\n [status...] : Status list of all jobs"
99
false
Parsl/libsubmit
_status
14,288
LDU_FT/cmbruns/pyopenvr/getScreenshotPropertyFilename
LDU_FT
[ "<BEGIN>\n## `key_press`", "Close the application when the player presses ESCAPE\n<END>", "<BEGIN>\n## `scale`", "Uniform scale, if only sx argument is specified\n<END>", "<BEGIN>\n## `bInit`", "Purpose: Allocates and populates the GL resources for a render model\n<END>", "<BEGIN>\n## `cleanup`", "Pur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getScreenshotPropertyFilename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getScreenshotPropertyFilename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Get the filename for the preview or vr image (see vr::EScreenshotPropertyFilenames). The return value is the size of the string.
"Get the filename for the preview or vr image (see\n vr::EScreenshotPropertyFilenames). The return value is\n the size of the string."
475
false
cmbruns/pyopenvr
getScreenshotPropertyFilename
14,289
LDU_FT/biocore/deblur/_system_call
LDU_FT
[ "<BEGIN>\n## `deblur_system_call`", "Build deblur command for subprocess.", " Parameters\n ----------\n params: list of str\n parameter settings to pass to deblur CLI\n input_fp : str\n name of the input fasta file to deblur", " Returns\n -------\n stdout: string\n pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _system_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _system_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. The extr...
Execute the command `cmd` Parameters ---------- cmd : str The string containing the command to be run. stdoutfilename : str Name of the file to save stdout to or None (default) to not save to file stderrfilename : str Name of the file to save stderr to or None ...
"Execute the command `cmd`\n Parameters\n ----------\n cmd : str\n The string containing the command to be run.\n stdoutfilename : str\n Name of the file to save stdout to or None\n (default) to not save to file\n stderrfilename : str\n Name of the file to save stderr to or No...
94
false
biocore/deblur
_system_call
14,290
LDU_FT/gmr/queries/size
LDU_FT
[ "<BEGIN>\n## `close`", "Close the connection", " :raises: ConnectionBusyError\n<END>", "<BEGIN>\n## `busy`", "Return if the connection is currently executing a query or is locked\n by a session that still exists.", " :rtype: bool\n<END>", "<BEGIN>\n## `free`", "Remove the lock on ...
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...
Return the number of connections in the pool :param str pid: The pool id :rtype int
"Return the number of connections in the pool\n\n :param str pid: The pool id\n :rtype int"
181
false
gmr/queries
size
14,291
LDU_FT/asweigart/pytweening/easeInOutExpo
LDU_FT
[ "<BEGIN>\n## `easeInOutQuad`", "A quadratic tween function that accelerates, reaches the midpoint, and then decelerates.", " Args:\n n (float): The time progress, starting at 0.0 and ending at 1.0.", " Returns:\n (float) The line progress, starting at 0.0 and ending at 1.0. Suitable for passin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the easeInOutExpo API. 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 easeInOutExpo API. 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...
An exponential tween function that accelerates, reaches the midpoint, and then decelerates. Args: n (float): The time progress, starting at 0.0 and ending at 1.0. Returns: (float) The line progress, starting at 0.0 and ending at 1.0. Suitable for passing to getPointOnLine().
"An exponential tween function that accelerates, reaches the midpoint, and then decelerates.\n\n Args:\n n (float): The time progress, starting at 0.0 and ending at 1.0.\n\n Returns:\n (float) The line progress, starting at 0.0 and ending at 1.0. Suitable for passing to getPointOnLine()."
52
false
asweigart/pytweening
easeInOutExpo
14,292
LDU_FT/RaRe-Technologies/smart_open/to_docstring
LDU_FT
[ "<BEGIN>\n## `extract_kwargs`", "Extract keyword argument documentation from a function's docstring.", " Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.", " Returns\n -------\n list of (str, str, list str)", " str\n The name of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_docstring API. 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 to_docstring API. 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...
Reconstruct a docstring from keyword argument info. Basically reverses :func:`extract_kwargs`. Parameters ---------- kwargs: list Output from the extract_kwargs function lpad: str, optional Padding string (from the left). Returns ------- str The docstring snipp...
"Reconstruct a docstring from keyword argument info.\n\n Basically reverses :func:`extract_kwargs`.\n\n Parameters\n ----------\n kwargs: list\n Output from the extract_kwargs function\n lpad: str, optional\n Padding string (from the left).\n\n Returns\n -------\n str\n The ...
150
false
RaRe-Technologies/smart_open
to_docstring
14,293
LDU_FT/jay-johnson/spylunking/start_worker
LDU_FT
[ "<BEGIN>\n## `perform_exit`", "perform_exit", " Handling at-the-exit events\n ---------------------------", " This will cleanup each worker process which\n could be in the middle of a request/sleep/block\n action. This has been tested on python 3 with\n Celery and single processes.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_worker API. 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 start_worker API. 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...
start_worker Start the helper worker process to package queued messages and send them to Splunk
"start_worker\n\n Start the helper worker process to package queued messages\n and send them to Splunk"
121
false
jay-johnson/spylunking
start_worker
14,294
LDU_FT/dnanexus/dx-toolkit/record_add_tags
LDU_FT
[ "<BEGIN>\n## `load_app_resource`", ":param kwargs: keyword args for :func:`~dxpy.bindings.search.find_one_data_object`, with the exception of \"project\"\n :raises: :exc:`~dxpy.exceptions.DXError` if \"project\" is given, if this is called with dxpy.JOB_ID not set, or if \"DX_RESOURCES_ID\" or \"DX_PROJECT_CON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_add_tags API. 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 record_add_tags API. 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...
Invokes the /record-xxxx/addTags API method. For more info, see: https://wiki.dnanexus.com/API-Specification-v1.0.0/Tags#API-method%3A-%2Fclass-xxxx%2FaddTags
"Invokes the /record-xxxx/addTags API method.\n\n For more info, see: https://wiki.dnanexus.com/API-Specification-v1.0.0/Tags#API-method%3A-%2Fclass-xxxx%2FaddTags"
1,430
true
dnanexus/dx-toolkit
record_add_tags
14,295
LDU_FT/avinassh/haxor/get_item
LDU_FT
[ "<BEGIN>\n## `_get_sync`", "Internal method used for GET requests", " Args:\n url (str): URL to fetch", " Returns:\n Individual URL request's response", " Raises:\n HTTPError: If HTTP request failed.\n<END>", "<BEGIN>\n## `_get_async`", "Asynchronous i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns Hacker News `Item` object. Fetches the data from url: https://hacker-news.firebaseio.com/v0/item/<item_id>.json e.g. https://hacker-news.firebaseio.com/v0/item/69696969.json Args: item_id (int or string): Unique item id of Hacker News story, comment...
"Returns Hacker News `Item` object.\n\n Fetches the data from url:\n https://hacker-news.firebaseio.com/v0/item/<item_id>.json\n\n e.g. https://hacker-news.firebaseio.com/v0/item/69696969.json\n\n Args:\n item_id (int or string): Unique item id of Hacker News story,\n ...
77
false
avinassh/haxor
get_item
14,296
LDU_FT/LukeB42/Window/coordinate
LDU_FT
[ "<BEGIN>\n## `palette`", "Since curses only supports a finite amount of initialised colour pairs\n we memoise any selections you've made as an attribute on this function\n<END>", "<BEGIN>\n## `process_input`", "Send input to panes marked as active after checking for\n a request to redraw the screen ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coordinate API. 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 coordinate API. 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...
Update pane coordinate tuples based on their height and width relative to other panes within the dimensions of the current window. We account for panes with a height of 1 where the bottom coordinates are the same as the top. Account for floating panes and self-coordinating panes adjacent to pan...
"Update pane coordinate tuples based on their height and width relative to other panes\n within the dimensions of the current window.\n\n We account for panes with a height of 1 where the bottom coordinates are the same as the top.\n Account for floating panes and self-coordinating panes adjacent t...
19
false
LukeB42/Window
coordinate
14,297
LDU_FT/Feneric/doxypypy/_processMembers
LDU_FT
[ "<BEGIN>\n## `coroutine`", "Basic decorator to implement the coroutine pattern.\n<END>", "<BEGIN>\n## `main`", "Starts the parser on the file given by the filename as the first\n argument on the command line.\n<END>", "<BEGIN>\n## `_endCodeIfNeeded`", "Simple routine to append end code marker if needed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _processMembers API. 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 _processMembers API. 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...
Mark up members if they should be private. If the name indicates it should be private or protected, apply the appropriate Doxygen tags.
"Mark up members if they should be private.\n\n If the name indicates it should be private or protected, apply\n the appropriate Doxygen tags."
46
false
Feneric/doxypypy
_processMembers
14,298
LDU_FT/bernii/querystring-parser/more_than_one_index
LDU_FT
[ "<BEGIN>\n## `more_than_one_index`", "Search for two sets of [] []\r\n @param s: string to search\n<END>", "<BEGIN>\n## `get_key`", "Get data between [ and ] remove ' if exist\r\n @param s: string to process\n<END>", "<BEGIN>\n## `parser_helper`", "Helper for parser function\r\n @param key:\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the more_than_one_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the more_than_one_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Search for two sets of [] [] @param s: string to search
"Search for two sets of [] []\r\n @param s: string to search"
12
false
bernii/querystring-parser
more_than_one_index
14,299
LDU_FT/sepandhaghighi/art/wizard_font
LDU_FT
[ "<BEGIN>\n## `font_size_splitter`", "Split fonts to 4 category (small,medium,large,xlarge) by maximum length of letter in each font.", " :param font_map: input fontmap\n :type font_map : dict\n :return: splitted fonts as dict\n<END>", "<BEGIN>\n## `font_list`", "Print all fonts.", " :param tex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wizard_font API. 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 wizard_font API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Check input text length for wizard mode. :param text: input text :type text:str :return: font as str
"Check input text length for wizard mode.\n\n :param text: input text\n :type text:str\n :return: font as str"
40
false
sepandhaghighi/art
wizard_font
14,300
LDU_FT/unfoldingWord-dev/python-gogs-client/delete_hook
LDU_FT
[ "<BEGIN>\n## `json_get`", "Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>", "<BEGIN>\n## `append_url`", "Append path to base_url in a sensible way.\n<END>", "<BEGIN>\n## `authenticated_user`", "Returns the user authenticated by ``auth``", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_hook API. 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 delete_hook API. 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...
Deletes the hook with id ``hook_id`` for repo with name ``repo_name`` owned by the user with username ``username``. :param auth.Authentication auth: authentication object :param str username: username of owner of repository :param str repo_name: name of repository of hook to delete ...
"Deletes the hook with id ``hook_id`` for repo with name ``repo_name``\n owned by the user with username ``username``.\n\n :param auth.Authentication auth: authentication object\n :param str username: username of owner of repository\n :param str repo_name: name of repository of hook to delet...
123
false
unfoldingWord-dev/python-gogs-client
delete_hook
14,301
LDU_FT/samluescher/django-media-tree/multi_splitext
LDU_FT
[ "<BEGIN>\n## `i18n_javascript`", "Displays the i18n JavaScript that the Django admin requires.", " This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>", "<BEGIN>\n## `file_links`", "Turns a (optionally nested) list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_splitext API. 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 multi_splitext API. 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...
Similar to os.path.slittext(), but with special handling for files with multiple extensions, such as "archive.tar.gz": Returns a list containg three elements, the first being the name without any extensions (taking into account hidden files/leading periods), the second being the "full" extension, the third ...
"Similar to os.path.slittext(), but with special handling for files with multiple extensions,\n such as \"archive.tar.gz\": Returns a list containg three elements, the first being the\n name without any extensions (taking into account hidden files/leading periods),\n the second being the \"full\" extension, th...
96
false
samluescher/django-media-tree
multi_splitext
14,302
LDU_FT/bastikr/boolean.py/distributive
LDU_FT
[ "<BEGIN>\n## `definition`", "Return a tuple of this algebra defined elements and types as:\n (TRUE, FALSE, NOT, AND, OR, Symbol)\n<END>", "<BEGIN>\n## `parse`", "Return a boolean expression parsed from `expr` either a unicode string\n or tokens iterable.", " Optionally simplify the expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distributive API. 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 distributive API. 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 term where the leading AND or OR terms are switched. This is done by applying the distributive laws: A & (B|C) = (A&B) | (A&C) A | (B&C) = (A|B) & (A|C)
"Return a term where the leading AND or OR terms are switched.\n\n This is done by applying the distributive laws:\n A & (B|C) = (A&B) | (A&C)\n A | (B&C) = (A|B) & (A|C)"
71
false
bastikr/boolean.py
distributive
14,303
LDU_FT/trezor/python-trezor/verify
LDU_FT
[ "<BEGIN>\n## `encode_pin`", "Transform correct PIN according to the displayed matrix.\n<END>", "<BEGIN>\n## `address_from_public_key`", "Returns the base32-encoded version of pk_bytes (G...)\n<END>", "<BEGIN>\n## `parse_transaction_bytes`", "Parses base64data into a map with the following keys:\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verify Ed25519 signature. Raise exception if the signature is invalid.
"Verify Ed25519 signature. Raise exception if the signature is invalid."
52
false
trezor/python-trezor
verify
14,304
LDU_FT/lmcinnes/umap/tau_rand_int
LDU_FT
[ "<BEGIN>\n## `tau_rand_int`", "A fast (pseudo)-random number generator.", " Parameters\n ----------\n state: array of int64, shape (3,)\n The internal state of the rng", " Returns\n -------\n A (pseudo)-random int32 value\n<END>", "<BEGIN>\n## `norm`", "Compute the (standard l2) n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tau_rand_int API. 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 tau_rand_int API. 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...
A fast (pseudo)-random number generator. Parameters ---------- state: array of int64, shape (3,) The internal state of the rng Returns ------- A (pseudo)-random int32 value
"A fast (pseudo)-random number generator.\n\n Parameters\n ----------\n state: array of int64, shape (3,)\n The internal state of the rng\n\n Returns\n -------\n A (pseudo)-random int32 value"
255
false
lmcinnes/umap
tau_rand_int
14,305
LDU_FT/sarenji/pyrc/_connect
LDU_FT
[ "<BEGIN>\n## `stopword`", "will repeat 'lol', 'lmao, 'rofl' or 'roflmao' when seen in a message\n only applies to channel messages\n<END>", "<BEGIN>\n## `run`", "Keep running this thread until it's stopped\n<END>", "<BEGIN>\n## `connect`", "Connects to the IRC server with the options defined in `co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect API. 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 _connect API. 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...
Connects a socket to the server using options defined in `config`.
"Connects a socket to the server using options defined in `config`."
16
false
sarenji/pyrc
_connect
14,306
LDU_FT/OpenHumans/open-humans-api/exchange_oauth2_member
LDU_FT
[ "<BEGIN>\n## `guess_tags`", "Function to get potential tags for files using the file names.", " :param filename: This field is the name of file.\n<END>", "<BEGIN>\n## `characterize_local_files`", "Collate local file info as preperation for Open Humans upload.", " Note: Files with filesize > max_byte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exchange_oauth2_member 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 exchange_oauth2_member 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 data for a specific user, including shared data files. :param access_token: This field is the user specific access_token. :param base_url: It is this URL `https://www.openhumans.org`.
"Returns data for a specific user, including shared data files.\n\n :param access_token: This field is the user specific access_token.\n :param base_url: It is this URL `https://www.openhumans.org`."
162
false
OpenHumans/open-humans-api
exchange_oauth2_member
14,307
LDU_FT/EpistasisLab/tpot/initialize_stats_dict
LDU_FT
[ "<BEGIN>\n## `auto_select_categorical_features`", "Make a feature mask of categorical features in X.", " Features with less than 10 unique values are considered categorical.", " Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_stats_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_stats_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. ...
Initializes the stats dict for individual The statistics initialized are: 'generation': generation in which the individual was evaluated. Initialized as: 0 'mutation_count': number of mutation operations applied to the individual and its predecessor cumulatively. Initialized as: 0 'crossover...
"Initializes the stats dict for individual\n The statistics initialized are:\n 'generation': generation in which the individual was evaluated. Initialized as: 0\n 'mutation_count': number of mutation operations applied to the individual and its predecessor cumulatively. Initialized as: 0\n 'cros...
249
false
EpistasisLab/tpot
initialize_stats_dict
14,308
LDU_FT/stan-dev/pystan/_idx_col2rowm
LDU_FT
[ "<BEGIN>\n## `lookup`", "Look up for a Stan function with similar functionality to a Python\n function (or even an R function, see examples). If the function is\n not present on the lookup table, then attempts to find similar one\n and prints the results. This function requires package `pandas`.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _idx_col2rowm API. 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 _idx_col2rowm API. 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...
Generate indexes to change from col-major to row-major ordering
"Generate indexes to change from col-major to row-major ordering"
222
false
stan-dev/pystan
_idx_col2rowm
14,309
LDU_FT/minorg/pastpy/write
LDU_FT
[ "<BEGIN>\n## `read`", "Read a new object from the given input protocol and return the object.", " :type iprot: thryft.protocol._input_protocol._InputProtocol\n :rtype: pastpy.gen.database.impl.dbf.objects_dbf_record.ObjectsDbfRecord\n<END>", "<BEGIN>\n## `write`", "Write this object to the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Write this object to the given output protocol and return self. :type oprot: thryft.protocol._output_protocol._OutputProtocol :rtype: pastpy.gen.database.impl.dbf.objects_dbf_record.ObjectsDbfRecord
"Write this object to the given output protocol and return self.\n\n :type oprot: thryft.protocol._output_protocol._OutputProtocol\n :rtype: pastpy.gen.database.impl.dbf.objects_dbf_record.ObjectsDbfRecord"
42
false
minorg/pastpy
write
14,310
LDU_FT/Nachtfeuer/pipeline/pprint
LDU_FT
[ "<BEGIN>\n## `calculate_columns`", "Find all row names and the maximum column widths.", " Args:\n columns (dict): the keys are the column name and the value the max length.", " Returns:\n dict: column names (key) and widths (value).\n<END>", "<BEGIN>\n## `calculate_row_format`", "Calcu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pprint API. 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 pprint API. 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 ...
Print sequence as ascii table to stdout. Args: sequence (list or tuple): a sequence with a dictionary each entry. keys (list): optional list of keys to order columns as well as to filter for them.
"Print sequence as ascii table to stdout.\n\n Args:\n sequence (list or tuple): a sequence with a dictionary each entry.\n keys (list): optional list of keys to order columns as well as to filter for them."
196
false
Nachtfeuer/pipeline
pprint
14,311
LDU_FT/geronimp/graftM/hmmsearch
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hmmsearch API. 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 hmmsearch API. 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...
r"""Run HMMsearch with all the HMMs, generating output files Parameters ---------- input_pipe: String A string which is a partial command line. When this command is run is outputs to STDOUT fasta formatted protein sequences, which hmmsearch runs on. h...
"r\"\"\"Run HMMsearch with all the HMMs, generating output files\n\n Parameters\n ----------\n input_pipe: String\n A string which is a partial command line. When this command is run\n is outputs to STDOUT fasta formatted protein sequences, which\n hmmsearch runs on...
334
false
geronimp/graftM
hmmsearch
14,312
LDU_FT/aamalev/aiohttp_apiset/include
LDU_FT
[ "<BEGIN>\n## `url_for`", "Construct url for route with additional params.\n<END>", "<BEGIN>\n## `deref`", "Return dereference data\n :param data:\n :param spec:\n :return:\n<END>", "<BEGIN>\n## `build_swagger_data`", "Prepare data when schema loaded", " :param swagger_schema: loaded sche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include API. 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 include API. 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...
Adds a new specification to a router :param spec: path to specification :param basePath: override base path specify in specification :param operationId_mapping: mapping for handlers :param name: name to access original spec
"Adds a new specification to a router\n\n :param spec: path to specification\n :param basePath: override base path specify in specification\n :param operationId_mapping: mapping for handlers\n :param name: name to access original spec"
48
false
aamalev/aiohttp_apiset
include
14,313
LDU_FT/klmitch/tendril/start
LDU_FT
[ "<BEGIN>\n## `send_frame`", "Sends a frame to the other end of the connection.\n<END>", "<BEGIN>\n## `start`", "Starts the TendrilManager.", " :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Starts the TendrilManager. :param acceptor: If given, specifies a callable that will be called with each newly received Tendril; that callable is responsible for initial acceptance of the connection and for setting ...
"Starts the TendrilManager.\n\n :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that callable is responsible for initial\n acceptance of the connection and for setting\n ...
92
false
klmitch/tendril
start
14,314
LDU_FT/raamana/pyradigm/labels
LDU_FT
[ "<BEGIN>\n## `check_compatibility`", "Checks whether the given MLdataset instances are compatible", " i.e. with same set of subjects, each beloning to the same class in all instances.", " Checks the first dataset in the list against the rest, and returns a boolean array.", " Parameters\n -------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the labels API. 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 labels API. 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 labels (such as 1, 2, -1, 'A', 'B' etc.) for each sample in the dataset.
"Class labels (such as 1, 2, -1, 'A', 'B' etc.) for each sample in the dataset."
140
false
raamana/pyradigm
labels
14,315
LDU_FT/elastic/apm-agent-python/put
LDU_FT
[ "<BEGIN>\n## `extract_signature`", "Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>", "<BEGIN>\n## `_timed_queue_join`", "implementation of Queue.join which takes a 'timeout' argument", " returns True on s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Put an item into the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until a free slot is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Full exception if no free slot was available wit...
"Put an item into the queue.\n\n If optional args 'block' is true and 'timeout' is None (the default),\n block if necessary until a free slot is available. If 'timeout' is\n a non-negative number, it blocks at most 'timeout' seconds and raises\n the Full exception if no free slot was availab...
163
false
elastic/apm-agent-python
put
14,316
LDU_FT/Tanganelli/CoAPthon3/destination
LDU_FT
[ "<BEGIN>\n## `etag`", "Set the ETag of the resource.", " :param etag: the ETag\n<END>", "<BEGIN>\n## `payload`", "Get the payload of the resource according to the content type specified by required_content_type or\n \"text/plain\" by default.", " :return: the payload.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destination API. 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 destination API. 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...
Set the destination of the message. :type value: tuple :param value: (ip, port) :raise AttributeError: if value is not a ip and a port.
"Set the destination of the message.\n\n :type value: tuple\n :param value: (ip, port)\n :raise AttributeError: if value is not a ip and a port."
478
false
Tanganelli/CoAPthon3
destination
14,317
LDU_FT/tdegeus/GooseMPL/rel2abs_x
LDU_FT
[ "<BEGIN>\n## `find_latex_font_serif`", "r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>", "<BEGIN>\n## `copy_style`", "r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>", "<BEGIN>\n## `set_decade_lims`", "r'''\nSet limits the the floor/ceil va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rel2abs_x API. 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 rel2abs_x API. 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...
r''' Transform relative x-coordinates to absolute x-coordinates. Relative coordinates correspond to a fraction of the relevant axis. Be sure to set the limits and scale before calling this function! :arguments: **x** (``float``, ``list``) Relative coordinates. :options: **axis** ([``plt.gca()``] | ...) ...
"r'''\nTransform relative x-coordinates to absolute x-coordinates. Relative coordinates correspond to a\nfraction of the relevant axis. Be sure to set the limits and scale before calling this function!\n\n:arguments:\n\n **x** (``float``, ``list``)\n Relative coordinates.\n\n:options:\n\n **axis** ([``plt.gca()``]...
159
false
tdegeus/GooseMPL
rel2abs_x
14,318
LDU_FT/pennersr/django-allauth/_strip_empty_keys
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_empty_keys API. 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 _strip_empty_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Added because the Dropbox OAuth2 flow doesn't work when scope is passed in, which is empty.
"Added because the Dropbox OAuth2 flow doesn't\n work when scope is passed in, which is empty."
130
false
pennersr/django-allauth
_strip_empty_keys
14,319
LDU_FT/Calysto/calysto/ce_init
LDU_FT
[ "<BEGIN>\n## `setCoords`", "Set coordinates of window to run from (x1,y1) in the\n lower-left corner to (x2,y2) in the upper-right corner.\n<END>", "<BEGIN>\n## `convert`", "png, ps, pdf, gif, jpg, svg\n returns image in format as bytes\n<END>", "<BEGIN>\n## `getPixels`", "Return a stream of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ce_init API. 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 ce_init API. 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...
Initializes error computation. Calculates error for output layers and initializes hidden layer error to zero.
"Initializes error computation. Calculates error for output\n layers and initializes hidden layer error to zero."
236
false
Calysto/calysto
ce_init
14,320
LDU_FT/houtianze/bypy/meta
LDU_FT
[ "<BEGIN>\n## `human_time`", "DocTests:\n\t>>> human_time(0) == ''\n\tTrue\n\t>>> human_time(122.1) == '2m2s'\n\tTrue\n\t>>> human_time(133) == '2m13s'\n\tTrue\n\t>>> human_time(12345678) == '20W2D21h21m18s'\n\tTrue\n<END>", "<BEGIN>\n## `limit_unit`", "DocTests:\n\t>>> limit_unit('1m2s', 1) == '1m'\n\tTrue\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Usage: meta <remotepath> [format] - \ get information of the given path (dir / file) at Baidu Yun. remotepath - the remote path format - specifies how the list are displayed it supports all the format variables in the 'list' command, and additionally the followings: $i - fs_id $b - MD5 block_list $u - Has su...
"Usage: meta <remotepath> [format] - \\\nget information of the given path (dir / file) at Baidu Yun.\n remotepath - the remote path\n format - specifies how the list are displayed\n it supports all the format variables in the 'list' command, and additionally the followings:\n\t$i - fs_id\n\t$b - MD5 block_list\n\...
55
false
houtianze/bypy
meta
14,321
LDU_FT/openvax/datacache/db_type
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts from any of: (1) Python type (2) NumPy/Pandas dtypes (3) string names of types ...to a sqlite3 type name
"Converts from any of:\n (1) Python type\n (2) NumPy/Pandas dtypes\n (3) string names of types\n ...to a sqlite3 type name"
101
false
openvax/datacache
db_type
14,322
LDU_FT/liluo/mime/simplify
LDU_FT
[ "<BEGIN>\n## `priority_compare`", "Compares the MIME::Type based on how reliable it is before doing a\n normal <=> comparison. Used by MIME::Types#[] to sort types. The\n comparisons involved are:\n 1. self.simplified <=> other.simplified (ensures that we\n don't try to compare diff...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplify API. 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 simplify API. 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...
The MIME types main- and sub-label can both start with <tt>x-</tt>, which indicates that it is a non-registered name. Of course, after registration this flag can disappear, adds to the confusing proliferation of MIME types. The simplified string has the <tt>x-</tt> removed and are transl...
"The MIME types main- and sub-label can both start with <tt>x-</tt>,\n which indicates that it is a non-registered name. Of course, after\n registration this flag can disappear, adds to the confusing\n proliferation of MIME types. The simplified string has the\n <tt>x-</tt> removed and are t...
12
false
liluo/mime
simplify
14,323
LDU_FT/MechanisM/django-confy/config
LDU_FT
[ "<BEGIN>\n## `config`", "Returns configured DATABASE dictionary from DATABASE_URL.\n<END>", "<BEGIN>\n## `config`", "Returns a dictionary with EMAIL_* settings from EMAIL_URL.\n<END>", "<BEGIN>\n## `read_environment_file`", "Read a .env file into os.environ.", " If not given a path to a envfile path,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns configured SEARCH dictionary from SEARCH_URL
"Returns configured SEARCH dictionary from SEARCH_URL"
11
false
MechanisM/django-confy
config
14,324
LDU_FT/fabioz/PyDev.Debugger/clear_app_refs
LDU_FT
[ "<BEGIN>\n## `convert`", "Note:", " If the shellcode starts with '66' controls, it needs to be changed to add [BITS 32] or\n [BITS 64] to the start.", " To use:", " convert(\"\"\"\n 55\n 53\n 50\n BDE97F071E\n FFD5\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_app_refs API. 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 clear_app_refs API. 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...
Clear IPython's internal reference to an application instance. Whenever we create an app for a user on qt4 or wx, we hold a reference to the app. This is needed because in some cases bad things can happen if a user doesn't hold a reference themselves. This method is provided to clear ...
"Clear IPython's internal reference to an application instance.\n\n Whenever we create an app for a user on qt4 or wx, we hold a\n reference to the app. This is needed because in some cases bad things\n can happen if a user doesn't hold a reference themselves. This\n method is provided to ...
3,640
true
fabioz/PyDev.Debugger
clear_app_refs
14,325
LDU_FT/sigsep/sigsep-mus-eval/json
LDU_FT
[ "<BEGIN>\n## `_load_track_estimates`", "load estimates from disk instead of processing\n<END>", "<BEGIN>\n## `eval_dir`", "Compute bss_eval metrics for two given directories assuming file\n names are identical for both, reference source and estimates.", " Parameters\n ----------\n reference_dir ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json API. 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 json API. 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...
add target to scores Dictionary Returns ---------- json_string : str json dump of the scores dictionary
"add target to scores Dictionary\n\n Returns\n ----------\n json_string : str\n json dump of the scores dictionary"
69
false
sigsep/sigsep-mus-eval
json
14,326
LDU_FT/icgood/pymap/get_renames
LDU_FT
[ "<BEGIN>\n## `for_executor`", "Return a subsystem based on the given executor. If ``executor`` is\n None, use :mod:`asyncio`. If ``executor`` is a\n :class:`concurrent.futures.ThreadPoolExecutor`, use :mod:`threading`.", " Args:\n executor: The executor in use, if any.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_renames API. 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_renames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a list of tuples for all mailboxes that must be renamed, for the given rename operation. This should include ``(from_name, to_name)`` as well as all inferior names in the heirarchy that must also be renamed. If ``from_name`` does not exist, an empty list is returned. See ...
"Return a list of tuples for all mailboxes that must be renamed, for\n the given rename operation. This should include\n ``(from_name, to_name)`` as well as all inferior names in the heirarchy\n that must also be renamed. If ``from_name`` does not exist, an empty\n list is returned.\n\n ...
298
false
icgood/pymap
get_renames
14,327
LDU_FT/jeongyoonlee/Kaggler/predict
LDU_FT
[ "<BEGIN>\n## `fit`", "Train a network with the quasi-Newton method.", " Args:\n X (np.array of float): feature matrix for training\n y (np.array of float): target values for training\n X_val (np.array of float): feature matrix for validation\n y_val (np.array o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Make prediction recursively. Use both the samples inside the current node and the statistics inherited from parent.
"Make prediction recursively. Use both the samples inside the current\n node and the statistics inherited from parent."
114
false
jeongyoonlee/Kaggler
predict
14,328
LDU_FT/blueset/ehForwarderBot/setup_telemetry
LDU_FT
[ "<BEGIN>\n## `self`", "Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.", " Returns:\n EFBChat: This object.\n<END>", "<BEGIN>\n## `system`", "Set the chat as a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_telemetry API. 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 setup_telemetry API. 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...
Setup telemetry EH Forwarder Bot Framework includes NO code that uploads your log or any other data to anywhere. To enable telemetry functionality, additional modules need to be installed manually. See :doc:`telemetry` for details.
"Setup telemetry\n\n EH Forwarder Bot Framework includes NO code that uploads your log\n or any other data to anywhere.\n\n To enable telemetry functionality, additional modules need to be\n installed manually. See :doc:`telemetry` for details."
66
false
blueset/ehForwarderBot
setup_telemetry
14,329
LDU_FT/asphalt-framework/asphalt/context_teardown
LDU_FT
[ "<BEGIN>\n## `run_application`", "Configure logging and start the given root component in the default asyncio event loop.", " Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.", " Initializes the logging system first based on...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the context_teardown API. 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 context_teardown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Wrap an async generator function to execute the rest of the function at context teardown. This function returns an async function, which, when called, starts the wrapped async generator. The wrapped async function is run until the first ``yield`` statement (``await async_generator.yield_()`` on Python 3.5)...
"Wrap an async generator function to execute the rest of the function at context teardown.\n\n This function returns an async function, which, when called, starts the wrapped async\n generator. The wrapped async function is run until the first ``yield`` statement\n (``await async_generator.yield_()`` on Python...
143
false
asphalt-framework/asphalt
context_teardown
14,330
LDU_FT/robotpy/pyfrc/compute
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute API. 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 compute API. 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...
Call this when vision processing should be enabled :param now: The value passed to ``update_sim`` :param x: Returned from physics_controller.get_position :param y: Returned from physics_controller.get_position :param angle: Returned from physics_control...
"Call this when vision processing should be enabled\n \n :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle: Returned from physics_c...
109
false
robotpy/pyfrc
compute
14,331
LDU_FT/hydraplatform/hydra-base/create_default_users_and_perms
LDU_FT
[ "<BEGIN>\n## `check_perm`", "Checks whether a user has permission to perform an action.\n The permission_code parameter should be a permission contained in tPerm.", " If the user does not have permission to perfom an action, a permission\n error is thrown.\n<END>", "<BEGIN>\n## `required_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_default_users_and_perms 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 create_default_users_and_perms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Adds the roles and perm to the DB. It adds only roles, perms and links between them that are not inside the db It is possible adding new role or perm and connecting them just modifiying the following lists
"Adds the roles and perm to the DB. It adds only roles, perms and links between them that are not inside the db\n It is possible adding new role or perm and connecting them just modifiying the following lists"
576
false
hydraplatform/hydra-base
create_default_users_and_perms
14,332
LDU_FT/pioneers/python-grizzly/_read_as_int
LDU_FT
[ "<BEGIN>\n## `get_all_usb_devices`", "Returns a list of all the usb devices matching the provided vendor ID and product ID.\n<END>", "<BEGIN>\n## `get_device_address`", "Returns the grizzly's internal address value. Returns a negative error value in case of error.\n<END>", "<BEGIN>\n## `exchange_bytes`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_as_int API. 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 _read_as_int API. 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...
Convenience method. Oftentimes we need to read a range of registers to represent an int. This method will automatically read @numBytes registers starting at @addr and convert the array into an int.
"Convenience method. Oftentimes we need to read a range of\n registers to represent an int. This method will automatically read\n @numBytes registers starting at @addr and convert the array into an int."
35
false
pioneers/python-grizzly
_read_as_int
14,333
LDU_FT/osrg/ryu/_remove
LDU_FT
[ "<BEGIN>\n## `update`", "Updates global configuration settings with given values.", " First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove API. 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 _remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
:type column_values: list of (column, value_json)
":type column_values: list of (column, value_json)"
1,172
true
osrg/ryu
_remove
14,334
LDU_FT/rlabbe/filterpy/_compute_weights
LDU_FT
[ "<BEGIN>\n## `reset`", "reset filter back to state at time of construction\n<END>", "<BEGIN>\n## `update`", "Update filter with new measurement `z`", " Returns\n -------", " x : np.array\n estimate for this time step (same as self.x)\n<END>", "<BEGIN>\n## `errors`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_weights API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_weights API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Computes the weights for the unscented Kalman filter. In this formulation the weights for the mean and covariance are the same.
"Computes the weights for the unscented Kalman filter. In this\n formulation the weights for the mean and covariance are the same."
665
false
rlabbe/filterpy
_compute_weights
14,335
LDU_FT/v1k45/python-qBittorrent/set_file_priority
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_file_priority API. 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_file_priority API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set file of a torrent to a supplied priority level. :param infohash: INFO HASH of torrent. :param file_id: ID of the file to set priority. :param priority: Priority level of the file.
"Set file of a torrent to a supplied priority level.\n\n :param infohash: INFO HASH of torrent.\n :param file_id: ID of the file to set priority.\n :param priority: Priority level of the file."
98
false
v1k45/python-qBittorrent
set_file_priority
14,336
LDU_FT/fermiPy/fermipy/create_from_eflux
LDU_FT
[ "<BEGIN>\n## `build_srcdict`", "Build a dictionary that maps from source name to the value of a source property", " Parameters\n ----------", " gta : `fermipy.GTAnalysis`\n The analysis object", " prop : str\n The name of the property we are mapping", " Returns\n -------", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_eflux API. 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 create_from_eflux API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a spectral function instance given its energy flux.
"Create a spectral function instance given its energy flux."
2,597
true
fermiPy/fermipy
create_from_eflux
14,337
LDU_FT/cloudendpoints/endpoints-management-python/use_gae_thread
LDU_FT
[ "<BEGIN>\n## `convert_response`", "Computes a http status code and message `CheckResponse`", " The return value a tuple (code, message, api_key_is_bad) where", " code: is the http status code\n message: is the message to return\n api_key_is_bad: indicates that a given api_key is bad", " Args:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_gae_thread API. 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 use_gae_thread API. 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...
Makes ``Client``s started after this use the appengine thread class.
"Makes ``Client``s started after this use the appengine thread class."
308
false
cloudendpoints/endpoints-management-python
use_gae_thread
14,338
LDU_FT/robertmartin8/PyPortfolioOpt/portfolio_byvalue
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the portfolio_byvalue API. 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 portfolio_byvalue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
For a long only portfolio, convert the continuous weights to a discrete allocation using Mixed Integer Linear Programming. This function assumes that we buy some asset based on value instead of shares, and there is a limit of minimum value and increasing step. :param weights: continuous weights generat...
"For a long only portfolio, convert the continuous weights to a discrete\n allocation using Mixed Integer Linear Programming. This function assumes\n that we buy some asset based on value instead of shares, and there is a\n limit of minimum value and increasing step.\n\n :param weights: continuous weights g...
90
false
robertmartin8/PyPortfolioOpt
portfolio_byvalue
14,339
LDU_FT/costastf/locationsharinglib/parse
LDU_FT
[ "<BEGIN>\n## `get_shared_people`", "Retrieves all people that share their location with this account\n<END>", "<BEGIN>\n## `get_authenticated_person`", "Retrieves the person associated with this account\n<END>", "<BEGIN>\n## `get_coordinates_by_nickname`", "Retrieves a person's coordinates by nickname\n<E...
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...
parse unified diff return True on success
"parse unified diff\n return True on success"
61
false
costastf/locationsharinglib
parse
14,340
LDU_FT/pymacaron/pymacaron/load_auth_token
LDU_FT
[ "<BEGIN>\n## `load_clients`", "Generate client libraries for the given apis, without starting an\n api server\n<END>", "<BEGIN>\n## `load_apis`", "Load all swagger files found at the given path, except those whose\n names are in the 'ignore' list\n<END>", "<BEGIN>\n## `publish_apis`", "Publi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_auth_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_auth_token API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Validate an auth0 token. Returns the token's payload, or an exception of the type:
"Validate an auth0 token. Returns the token's payload, or an exception\n of the type:"
47
false
pymacaron/pymacaron
load_auth_token
14,341
LDU_FT/honzamach/pynspect/binary_operation_logical
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_operation_logical 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 binary_operation_logical API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Implementation of :py:func:`pynspect.traversers.RuleTreeTraverser.binary_operation_logical` interface.
"Implementation of :py:func:`pynspect.traversers.RuleTreeTraverser.binary_operation_logical` interface."
143
false
honzamach/pynspect
binary_operation_logical
14,342
LDU_FT/NeuroML/NeuroMLlite/_generate_neuron_files_from_neuroml
LDU_FT
[ "<BEGIN>\n## `create_new_model`", "net.projections.append(Projection(id='proj0',\n presynaptic=p0.id, \n postsynaptic=p1.id,\n synapse='ampa'))", " net.projections[0].random_connectivity=RandomConne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_neuron_files_from_neuroml 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 _generate_neuron_files_from_neuroml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Generate NEURON hoc/mod files from the NeuroML files which are marked as included in the NeuroMLlite description; also compiles the mod files
"Generate NEURON hoc/mod files from the NeuroML files which are marked as \n included in the NeuroMLlite description; also compiles the mod files"
35
false
NeuroML/NeuroMLlite
_generate_neuron_files_from_neuroml
14,343
LDU_FT/OLC-Bioinformatics/sipprverse/copy_dir
LDU_FT
[ "<BEGIN>\n## `cmd2list`", "Executes a command through the operating system and returns the output\n as a list, or on error a string with the standard error.\n EXAMPLE:\n >>> from subprocess import Popen, PIPE\n >>> CMDout2array('ls -l')\n<END>", "<BEGIN>\n## `print_timers`", "PRINT EXECUTION TIM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
this function will simply copy the file from the source path to the dest path given as input
"this function will simply copy the file from the source path to the dest\n path given as input"
255
false
OLC-Bioinformatics/sipprverse
copy_dir
14,344
LDU_FT/JamesRamm/longclaw/get_shipping_cost
LDU_FT
[ "<BEGIN>\n## `shipping_cost`", "Returns the shipping cost for a given country\n If the shipping cost for the given country has not been set, it will\n fallback to the default shipping cost if it has been enabled in the app\n settings\n<END>", "<BEGIN>\n## `shipping_options`", "Get the shipping option...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shipping_cost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shipping_cost API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the shipping cost for a given country code and shipping option (shipping rate name)
"Return the shipping cost for a given country code and shipping option (shipping rate name)"
49
false
JamesRamm/longclaw
get_shipping_cost
14,345
LDU_FT/FNNDSC/med2image/match
LDU_FT
[ "<BEGIN>\n## `verbosity`", "get/set the verbosity level.", " The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.", " This does not affect output to non-console devices\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Indicate whether or not to enter a case suite
"Indicate whether or not to enter a case suite"
131
false
FNNDSC/med2image
match
14,346
LDU_FT/eddiejessup/agaro/clear_dir
LDU_FT
[ "<BEGIN>\n## `get_average_measure`", "Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.", " Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Clear the output directory of all output files.
"Clear the output directory of all output files."
62
false
eddiejessup/agaro
clear_dir
14,347
LDU_FT/thomasw/querylist/_resolve_lookup_chain
LDU_FT
[ "<BEGIN>\n## `_convert_iterable`", "Converts elements returned by an iterable into instances of\n self._wrapper\n<END>", "<BEGIN>\n## `_check_element`", "Return True if lookup string/value pairs match against the passed\n object.\n<END>", "<BEGIN>\n## `get`", "Returns the first object encoun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_lookup_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_lookup_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. ...
Return the value of inst.chain[0].chain[1].chain[...].chain[n].
"Return the value of inst.chain[0].chain[1].chain[...].chain[n]."
29
false
thomasw/querylist
_resolve_lookup_chain
14,348
LDU_FT/stevearc/dql/do_local
LDU_FT
[ "<BEGIN>\n## `field_or_value`", "For a clause that could be a field or value,\n create the right one and return it\n<END>", "<BEGIN>\n## `from_where`", "Factory method for creating the top-level expression\n<END>", "<BEGIN>\n## `_factory`", "Factory for joining constraints with a single conjunction\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Connect to a local DynamoDB instance. Use 'local off' to disable. > local > local host=localhost port=8001 > local off
"Connect to a local DynamoDB instance. Use 'local off' to disable.\n\n > local\n > local host=localhost port=8001\n > local off"
157
false
stevearc/dql
do_local
14,349
LDU_FT/BlueBrain/NeuroM/segment_area
LDU_FT
[ "<BEGIN>\n## `_get_type`", "get the type of the soma", " Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>", "<BEGIN>\n## `make_soma`", "Make a soma object from a set of points", " Infers the soma type (SomaSinglePoint, SomaSimpleC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the segment_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the segment_area API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Compute the surface area of a segment. Approximated as a conical frustum. Does not include the surface area of the bounding circles.
"Compute the surface area of a segment.\n\n Approximated as a conical frustum. Does not include the surface area\n of the bounding circles."
706
false
BlueBrain/NeuroM
segment_area
14,350
LDU_FT/iterative/dvc/_reproduce_stages
LDU_FT
[ "<BEGIN>\n## `_get_remote`", "The config file is stored in a way that allows you to have a\n cache for each remote.", " This is needed when specifying external outputs\n (as they require you to have an external cache location).", " Imagine a config file like the following:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reproduce_stages API. 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 _reproduce_stages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
r"""Derive the evaluation of the given node for the given graph. When you _reproduce a stage_, you want to _evaluate the descendants_ to know if it make sense to _recompute_ it. A post-ordered search will give us an order list of the nodes we want. For example, let's say that we have the following pip...
"r\"\"\"Derive the evaluation of the given node for the given graph.\n\n When you _reproduce a stage_, you want to _evaluate the descendants_\n to know if it make sense to _recompute_ it. A post-ordered search\n will give us an order list of the nodes we want.\n\n For example, let's say that we have the fol...
269
false
iterative/dvc
_reproduce_stages
14,351
LDU_FT/GeospatialPython/pyshp/field
LDU_FT
[ "<BEGIN>\n## `signed_area`", "Return the signed area enclosed by a ring using the linear time\r\n algorithm. A value >= 0 indicates a counter-clockwise oriented ring.\n<END>", "<BEGIN>\n## `as_dict`", "Returns this Record as a dictionary using the field names as keys\r\n :return: dict\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Adds a dbf field descriptor to the shapefile.
"Adds a dbf field descriptor to the shapefile."
82
false
GeospatialPython/pyshp
field
14,352
LDU_FT/ttinies/sc2gameLobby/save
LDU_FT
[ "<BEGIN>\n## `addNew`", "Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r...
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...
save a data file such that all processes know the game that is running
"save a data file such that all processes know the game that is running"
76
false
ttinies/sc2gameLobby
save
14,353
LDU_FT/kevinconway/confpy/content
LDU_FT
[ "<BEGIN>\n## `configfile_from_path`", "Get a ConfigFile object based on a file path.", " This method will inspect the file extension and return the appropriate\n ConfigFile subclass initialized with the given path.", " Args:\n path (str): The file path which represents the configuration file.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Get the file contents. This property is cached. The file is only read once.
"Get the file contents.\n\n This property is cached. The file is only read once."
104
false
kevinconway/confpy
content
14,354
LDU_FT/basilfx/flask-daapserver/create_session
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish a given `DAAPServer` instance.", " The given instances should be fully configured, including the provider.\n By default Zeroconf only advertises the first database, but the DAAP\n protocol has support for multiple databases. Therefore, the parameter\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a new session. :param str user_agent: Client user agent :param str remote_addr: Remote address of client :param str client_version: Remote client version :return: The new session id :rtype: int
"Create a new session.\n\n :param str user_agent: Client user agent\n :param str remote_addr: Remote address of client\n :param str client_version: Remote client version\n :return: The new session id\n :rtype: int"
45
false
basilfx/flask-daapserver
create_session
14,355
LDU_FT/inspirehep/inspire-dojson/marcxml2record
LDU_FT
[ "<BEGIN>\n## `normalize_rank`", "Normalize a rank in order to be schema-compliant.\n<END>", "<BEGIN>\n## `get_recid_from_ref`", "Retrieve recid from jsonref reference object.", " If no recid can be parsed, returns None.\n<END>", "<BEGIN>\n## `absolute_url`", "Returns an absolute URL from a URL relati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marcxml2record API. 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 marcxml2record API. 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...
Convert a MARCXML string to a JSON record. Tries to guess which set of rules to use by inspecting the contents of the ``980__a`` MARC field, but falls back to HEP in case nothing matches, because records belonging to special collections logically belong to the Literature collection but don't have ``980...
"Convert a MARCXML string to a JSON record.\n\n Tries to guess which set of rules to use by inspecting the contents\n of the ``980__a`` MARC field, but falls back to HEP in case nothing\n matches, because records belonging to special collections logically\n belong to the Literature collection but don't have...
163
false
inspirehep/inspire-dojson
marcxml2record
14,356
LDU_FT/todstoychev/signal-dispatcher/dispatch
LDU_FT
[ "<BEGIN>\n## `register_signal`", "Used to register signal at the dispatcher. Note that you can not use alias that already exists.", " :param alias: Alias of the signal. String.\n :param signal: Signal itself. Usually pyqtSignal instance.\n :return:\n<END>", "<BEGIN>\n## `register_handler`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
This methods runs the wheel. It is used to connect signal with their handlers, based on the aliases. :return:
"This methods runs the wheel. It is used to connect signal with their handlers, based on the aliases.\n\n :return:"
13
false
todstoychev/signal-dispatcher
dispatch
14,357
LDU_FT/getsentry/sentry-plugins/validate_config
LDU_FT
[ "<BEGIN>\n## `validate_config`", "```\n if config['foo'] and not config['bar']:\n raise PluginError('You cannot configure foo with bar')\n return config\n ```\n<END>", "<BEGIN>\n## `build_dynamic_field`", "Builds a field based on JIRA's meta field information\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 e...
``` if config['foo'] and not config['bar']: raise PluginError('You cannot configure foo with bar') return config ```
"```\n if config['foo'] and not config['bar']:\n raise PluginError('You cannot configure foo with bar')\n return config\n ```"
14
false
getsentry/sentry-plugins
validate_config
14,358
LDU_FT/nteract/vdom/create_event_handler
LDU_FT
[ "<BEGIN>\n## `create_event_handler`", "Register a comm and return a serializable object with target name\n<END>", "<BEGIN>\n## `to_json`", "Convert an element to VDOM JSON", " If you wish to validate the JSON, pass in a schema via the schema keyword\n argument. If a schema is provided, this raises a V...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_event_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_event_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Register a comm and return a serializable object with target name
"Register a comm and return a serializable object with target name"
17
false
nteract/vdom
create_event_handler
14,359
LDU_FT/cloud-custodian/cloud-custodian/report
LDU_FT
[ "<BEGIN>\n## `factory`", "Factory func for filters.", " data - policy config for filters\n manager - resource type manager (ec2, s3, etc)\n<END>", "<BEGIN>\n## `get_block_operator`", "Determine the immediate parent boolean operator for a filter\n<END>", "<BEGIN>\n## `_validate_resource_count...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API. 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 report API. 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 ...
report on guard duty enablement by account
"report on guard duty enablement by account"
506
false
cloud-custodian/cloud-custodian
report
14,360
LDU_FT/django-extensions/django-extensions/indentby
LDU_FT
[ "<BEGIN>\n## `_slug_strip`", "Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.", " If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>", "<BEGIN>\n## `to_py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indentby API. 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 indentby API. 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 indentation to text between the tags by the given indentation level. {% indentby <indent_level> [if <statement>] %} ... {% endindentby %} Arguments: indent_level - Number of spaces to indent text with. statement - Only apply indent_level if the boolean statement evalutates to True.
"Add indentation to text between the tags by the given indentation level.\n\n {% indentby <indent_level> [if <statement>] %}\n ...\n {% endindentby %}\n\n Arguments:\n indent_level - Number of spaces to indent text with.\n statement - Only apply indent_level if the boolean statement evalutates to ...
191
false
django-extensions/django-extensions
indentby
14,361
LDU_FT/edeposit/edeposit.amqp.aleph/getDocNumber
LDU_FT
[ "<BEGIN>\n## `from_xml`", "Pick informations from :class:`.MARCXMLRecord` object and use it to\n build :class:`.SemanticInfo` structure.", " Args:\n xml (str/MARCXMLRecord): MarcXML which will be converted to\n SemanticInfo. In case of str, ``<record>`` tag is required.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDocNumber API. 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 getDocNumber API. 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...
Parse <doc_number> tag from `xml`. Args: xml (str): XML string returned from :func:`aleph.aleph.downloadRecords` Returns: str: Doc ID as string or "-1" if not found.
"Parse <doc_number> tag from `xml`.\n\n Args:\n xml (str): XML string returned from :func:`aleph.aleph.downloadRecords`\n\n Returns:\n str: Doc ID as string or \"-1\" if not found."
102
false
edeposit/edeposit.amqp.aleph
getDocNumber
14,362
LDU_FT/django-userena-ce/django-userena-ce/count_unread_messages_for
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 count_unread_messages_for 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 count_unread_messages_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns the amount of unread messages for this user :param user: A Django :class:`User` :return: An integer with the amount of unread messages.
"Returns the amount of unread messages for this user\n\n :param user:\n A Django :class:`User`\n\n :return:\n An integer with the amount of unread messages."
241
false
django-userena-ce/django-userena-ce
count_unread_messages_for
14,363
LDU_FT/gmr/queries/_incr_executions
LDU_FT
[ "<BEGIN>\n## `close`", "Close the connection", " :raises: ConnectionBusyError\n<END>", "<BEGIN>\n## `busy`", "Return if the connection is currently executing a query or is locked\n by a session that still exists.", " :rtype: bool\n<END>", "<BEGIN>\n## `free`", "Remove the lock on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _incr_executions API. 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 _incr_executions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Increment the number of executions for the current connection.
"Increment the number of executions for the current connection."
181
false
gmr/queries
_incr_executions
14,364
LDU_FT/acutesoftware/virtual-AI-simulator/build_base
LDU_FT
[ "<BEGIN>\n## `calc_basics`", "calculate various aspects of the structure\n<END>", "<BEGIN>\n## `bld_rafter_deflection`", "calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>", "<BEGIN>\n## `main`", "Prototype to see h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_base API. 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 build_base API. 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...
create a base random land structure using the AIKIF world model
"create a base random land structure using the AIKIF world model"
86
false
acutesoftware/virtual-AI-simulator
build_base
14,365
LDU_FT/digidotcom/python-streamexpect/search
LDU_FT
[ "<BEGIN>\n## `_flatten`", "Recursively flatten a mixed sequence of sub-sequences and items\n<END>", "<BEGIN>\n## `wrap`", "Wrap a stream to implement expect functionality.", " This function provides a convenient way to wrap any Python stream (a\n file-like object) or socket with an appropriate :class:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Search the provided buffer for matching text. Search the provided buffer for matching text. If the *match* is found, returns a :class:`SequenceMatch` object, otherwise returns ``None``. :param buf: Buffer to search for a match. :return: :class:`SequenceMatch` if matched, None if no mat...
"Search the provided buffer for matching text.\n\n Search the provided buffer for matching text. If the *match* is found,\n returns a :class:`SequenceMatch` object, otherwise returns ``None``.\n\n :param buf: Buffer to search for a match.\n :return: :class:`SequenceMatch` if matched, None if...
42
false
digidotcom/python-streamexpect
search
14,366
LDU_FT/QualiSystems/cloudshell-networking-devices/restore
LDU_FT
[ "<BEGIN>\n## `create_networking_resource_from_context`", "Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore API. 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 restore API. 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...
Restore configuration on device from provided configuration file Restore configuration from local file system or ftp/tftp server into 'running-config' or 'startup-config'. :param path: relative path to the file on the remote host tftp://server/sourcefile :param configuration_type: the configurat...
"Restore configuration on device from provided configuration file\n Restore configuration from local file system or ftp/tftp server into 'running-config' or 'startup-config'.\n :param path: relative path to the file on the remote host tftp://server/sourcefile\n :param configuration_type: the config...
87
false
QualiSystems/cloudshell-networking-devices
restore
14,367
LDU_FT/trolldbois/ctypeslib/FIELD_DECL
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FIELD_DECL API. 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 FIELD_DECL API. 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...
Handles Field declarations. Some specific treatment for a bitfield.
"Handles Field declarations.\n Some specific treatment for a bitfield."
88
false
trolldbois/ctypeslib
FIELD_DECL
14,368
LDU_FT/jaumebonet/libconfig/set_option
LDU_FT
[ "<BEGIN>\n## `_get_repo`", "Identify the path to the repository origin.\n<END>", "<BEGIN>\n## `_entry_must_exist`", "Evaluate key-subkey existence.", " Checks that the key-subkey combo exists in the\n configuration options.\n<END>", "<BEGIN>\n## `_entry_must_not_exist`", "Evaluate key-subkey non-e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_option API. 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 set_option API. 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...
Sets the value of an option. :param str key: First identifier of the option. :param str subkey: Second identifier of the option. :param value: New value for the option (type varies). :raise: :NotRegisteredError: If ``key`` or ``subkey`` do not define any opt...
"Sets the value of an option.\n\n :param str key: First identifier of the option.\n :param str subkey: Second identifier of the option.\n :param value: New value for the option (type varies).\n\n :raise:\n :NotRegisteredError: If ``key`` or ``subkey`` do not define any\n ...
104
false
jaumebonet/libconfig
set_option
14,369
LDU_FT/sbg/sevenbridges-python/submit
LDU_FT
[ "<BEGIN>\n## `query`", "Query (List) tasks. Date parameters may be both strings and python date\n objects.\n :param project: Target project. optional.\n :param status: Task status.\n :param batch: Only batch tasks.\n :param parent: Parent batch task identifier.\n :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Partitions the file into chunks and submits them into group of 4 for download on the api download pool.
"Partitions the file into chunks and submits them into group of 4\n for download on the api download pool."
292
false
sbg/sevenbridges-python
submit
14,370
LDU_FT/scot-dev/scot/plot_source_topos
LDU_FT
[ "<BEGIN>\n## `ignore_patterns`", "Function that can be used as copytree() ignore parameter.", " Patterns is a sequence of glob-style patterns\n that are used to exclude files\n<END>", "<BEGIN>\n## `copytree`", "Recursively copy a directory tree using copy2().", " The destination directory must no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_source_topos API. 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 plot_source_topos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Plot topography of the Source decomposition. Parameters ---------- common_scale : float, optional If set to None, each topoplot's color axis is scaled individually. Otherwise specifies the percentile (1-99) of values in all plot. This value is taken as the maximum color ...
"Plot topography of the Source decomposition.\n\n Parameters\n ----------\n common_scale : float, optional\n If set to None, each topoplot's color axis is scaled individually. Otherwise specifies the percentile\n (1-99) of values in all plot. This value is taken as the maximum...
381
false
scot-dev/scot
plot_source_topos
14,371
LDU_FT/pyfca/pyfca/UV_B
LDU_FT
[ "<BEGIN>\n## `L`", "recursively constructs L line for g; i = len(g)-1\n<END>", "<BEGIN>\n## `H`", "recursively constructs H line for g; i = len(g)-1\n<END>", "<BEGIN>\n## `UV_H`", "Constructs implications and intents based on H\n gw = g width\n Hg = H(g), g is the binary coding of the attribute set\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UV_B API. 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 UV_B API. 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...
returns the implications UV based on B Bg = B(g), g∈2^M gw = |M|, M is the set of all attributes
"returns the implications UV based on B\n Bg = B(g), g∈2^M\n gw = |M|, M is the set of all attributes"
25
false
pyfca/pyfca
UV_B
14,372