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/tchellomello/python-arlo/set_night_light_brightness
LDU_FT
[ "<BEGIN>\n## `query`", "Return a JSON object or raw session.", " :param url: Arlo API URL\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param extra_params: Dictionary to be appended on request.body\n :param extra_headers: Dictionary to be apppended on requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_night_light_brightness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_night_light_brightness API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Sets the brightness of the night light (0-255).
"Sets the brightness of the night light (0-255)."
69
false
tchellomello/python-arlo
set_night_light_brightness
20,673
LDU_FT/blazelibs/blazeutils/write_merge
LDU_FT
[ "<BEGIN>\n## `workbook_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>", "<BEGIN>\n## `xlsx_to_strio`", "convert xlwt Workbook instance to a BytesIO instance\n<END>", "<BEGIN>\n## `xlsx_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_merge API. 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 write_merge API. 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...
Write data to row, col of worksheet (ws) using the style information. Again, I'm wrapping this because you'll have to do it if you create large amounts of formatted entries in your spreadsheet (else Excel, but probably not OOo will crash).
"Write data to row, col of worksheet (ws) using the style\n information.\n\n Again, I'm wrapping this because you'll have to do it if you\n create large amounts of formatted entries in your spreadsheet\n (else Excel, but probably not OOo will crash)."
135
false
blazelibs/blazeutils
write_merge
20,674
LDU_FT/dnouri/nolearn/plot_conv_weights
LDU_FT
[ "<BEGIN>\n## `plot_conv_weights`", "Plot the weights of a specific layer.", " Only really makes sense with convolutional layers.", " Parameters\n ----------\n layer : lasagne.layers.Layer\n<END>", "<BEGIN>\n## `plot_conv_activity`", "Plot the acitivities of a specific layer.", " Only real...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_conv_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 plot_conv_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...
Plot the weights of a specific layer. Only really makes sense with convolutional layers. Parameters ---------- layer : lasagne.layers.Layer
"Plot the weights of a specific layer.\n\n Only really makes sense with convolutional layers.\n\n Parameters\n ----------\n layer : lasagne.layers.Layer"
64
false
dnouri/nolearn
plot_conv_weights
20,675
LDU_FT/d11wtq/dockerpty/sockets
LDU_FT
[ "<BEGIN>\n## `before_all`", "Pulls down busybox:latest before anything is tested.\n<END>", "<BEGIN>\n## `after_scenario`", "Cleans up docker containers used as test fixtures after test completes.\n<END>", "<BEGIN>\n## `set_blocking`", "Set the given file-descriptor blocking or non-blocking.", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sockets API. 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 sockets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a single socket which is processing all I/O to exec
"Return a single socket which is processing all I/O to exec"
66
false
d11wtq/dockerpty
sockets
20,676
LDU_FT/EventTeam/beliefs/is_entailed_by
LDU_FT
[ "<BEGIN>\n## `size`", "Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.", " The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>", "<BEGIN>\n## `update`", "Updates intensio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_entailed_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_entailed_by API. 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...
If the other is as or more specific than self
"If the other is as or more specific than self"
158
false
EventTeam/beliefs
is_entailed_by
20,677
LDU_FT/JamesPHoughton/pysd/set_state
LDU_FT
[ "<BEGIN>\n## `parse`", "context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>", "<BEGIN>\n## `read_tabular`", "Reads a vensim ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the system state. Parameters ---------- t : numeric The system time state : dict A (possibly partial) dictionary of the system state. The keys to this dictionary may be either pysafe names or original model file names
"Set the system state.\n\n Parameters\n ----------\n t : numeric\n The system time\n\n state : dict\n A (possibly partial) dictionary of the system state.\n The keys to this dictionary may be either pysafe names or original model file names"
268
false
JamesPHoughton/pysd
set_state
20,678
LDU_FT/pymupdf/PyMuPDF/_parse_da
LDU_FT
[ "<BEGIN>\n## `_Widget_fontdict`", "Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>", "<BEGIN>\n## `getTextlength`", "Calculate length of a string for a given built-in font.", " Args:\n fontname: name of the font.\n fontsize: size of font in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_da API. 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 _parse_da API. 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...
Extract font name, size and color from default appearance string (/DA object). Equivalent to 'pdf_parse_default_appearance' function in MuPDF's 'pdf-annot.c'.
"Extract font name, size and color from default appearance string (/DA object). Equivalent to 'pdf_parse_default_appearance' function in MuPDF's 'pdf-annot.c'."
282
false
pymupdf/PyMuPDF
_parse_da
20,679
LDU_FT/The-Politico/politico-civic-geography/save
LDU_FT
[ "<BEGIN>\n## `save`", "**uid**: :code:`division:{parentuid}_{levelcode}-{code}`\n<END>", "<BEGIN>\n## `add_intersecting`", "Adds paired relationships between intersecting divisions.", " Optional intersection represents the portion of the area of the related\n division intersecting this divisio...
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...
**uid**: :code:`division:{parentuid}_{levelcode}-{code}`
"**uid**: :code:`division:{parentuid}_{levelcode}-{code}`"
16
false
The-Politico/politico-civic-geography
save
20,680
LDU_FT/Roastero/freshroastsr700/find_device
LDU_FT
[ "<BEGIN>\n## `fan_speed`", "Verifies the value is between 1 and 9 inclusively.\n<END>", "<BEGIN>\n## `heat_setting`", "Verifies that the heat setting is between 0 and 3.\n<END>", "<BEGIN>\n## `heater_level`", "Verifies that the heater_level is between 0 and heater_segments.\n Can only be called ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Finds a connected device with the given VID:PID. Returns the serial port url.
"Finds a connected device with the given VID:PID. Returns the serial\n port url."
61
false
Roastero/freshroastsr700
find_device
20,681
LDU_FT/Trax-air/swagger-parser/get_response_example
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response_example API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get a response example from a response spec.
"Get a response example from a response spec."
100
false
Trax-air/swagger-parser
get_response_example
20,682
LDU_FT/evetrivia/thanatos/get_ships_that_have_variations
LDU_FT
[ "<BEGIN>\n## `get_all_regions`", "Gets a list of all regions.", " :return: A list of all regions. Results have regionID and regionName.\n :rtype: list\n<END>", "<BEGIN>\n## `get_all_not_wh_regions`", "Gets a list of all regions that are not WH regions.", " :return: A list of all regions not inclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ships_that_have_variations 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 get_ships_that_have_variations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Gets a list of all published ship type IDs that have at least 3 variations. :return: :rtype: list
"Gets a list of all published ship type IDs that have at least 3 variations.\n\n :return:\n :rtype: list"
35
false
evetrivia/thanatos
get_ships_that_have_variations
20,683
LDU_FT/HazardDede/dictmentor/modified_environ
LDU_FT
[ "<BEGIN>\n## `instance_of`", "Tests if the given key-value pairs (items) are instances of the given ``target_type``.\n Per default this function yields whether ``True`` or ``False`` depending on the fact if all\n items withstand the validation or not. Per default the validation / evaluation is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modified_environ API. 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 modified_environ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Temporarily updates the ``os.environ`` dictionary in-place and resets it to the original state when finished. (https://stackoverflow.com/questions/2059482/ python-temporarily-modify-the-current-processs-environment/34333710#34333710) The ``os.environ`` dictionary is updated in-place so that the mod...
"Temporarily updates the ``os.environ`` dictionary in-place and resets it to the original state\n when finished.\n (https://stackoverflow.com/questions/2059482/\n python-temporarily-modify-the-current-processs-environment/34333710#34333710)\n\n The ``os.environ`` dictionary is updated in-place so that t...
91
false
HazardDede/dictmentor
modified_environ
20,684
LDU_FT/elsampsa/valkka-live/genH264
LDU_FT
[ "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `preRun_`", "Create the shared memory client immediately after fork\n<END>", "<BEGIN>\n## `run`", "After the fork. Now the process starts running\n<END>", "<BEGIN>\n## `activate_`", "Shared mem info is given. N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genH264 API. 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 genH264 API. 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...
Generate H264 stream Input image, output video file, time in seconds Example: :: genH264("/home/sampsa/python3/tests/lprtest/RealImages/IMG_20170308_093511.jpg","testi.mkv", 10)
"Generate H264 stream\n \n Input image, output video file, time in seconds\n \n Example:\n \n ::\n \n genH264(\"/home/sampsa/python3/tests/lprtest/RealImages/IMG_20170308_093511.jpg\",\"testi.mkv\", 10)"
135
false
elsampsa/valkka-live
genH264
20,685
LDU_FT/biocommons/hgvs/validate_type_ac_pair
LDU_FT
[ "<BEGIN>\n## `_expose_rule_functions`", "add parse functions for public grammar rules", " Defines a function for each public grammar rule, based on\n introspecting the grammar. For example, the `c_interval` rule\n is exposed as a method `parse_c_interval` and used like this::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_type_ac_pair API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_type_ac_pair API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
validate that accession is correct for variant type AND that accession is fully specified.
"validate that accession is correct for variant type AND that\n accession is fully specified."
210
false
biocommons/hgvs
validate_type_ac_pair
20,686
LDU_FT/emirozer/bowshock/techport
LDU_FT
[ "<BEGIN>\n## `search_target_obj`", "Query for a specific target:", " http://asterank.com/api/skymorph/search?<params>\n target\tTarget object (lookup in MPC).\n<END>", "<BEGIN>\n## `search_orbit`", "Query based on orbital elements:", " http://asterank.com/api/skymorph/search_orbit?<params>\n e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the techport API. 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 techport API. 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...
In order to use this capability, queries can be issued to the system with the following URI format: GET /xml-api/id_parameter Parameter Required? Value Description id_parameter Yes Type: String Default: None The id value of the TechPort record. TechPort values range from 0-20000. Not all...
"In order to use this capability, queries can be issued to the system with the following URI\n format:\n GET /xml-api/id_parameter\n Parameter Required? Value Description\n id_parameter Yes Type: String\n Default: None\n The id value of the TechPort record.\n TechPort values range from 0-20000.\n ...
90
false
emirozer/bowshock
techport
20,687
LDU_FT/GeorgeArgyros/symautomata/_stage
LDU_FT
[ "<BEGIN>\n## `main`", "Testing function for DFA brzozowski algebraic method Operation\n<END>", "<BEGIN>\n## `_bfs_sort`", "maintain a map of states distance using BFS\n Args:\n start (fst state): The initial DFA state\n Returns:\n list: An ordered list of DFA states\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stage API. 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 _stage API. 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 ...
This is a repeated state in the state removal algorithm
"This is a repeated state in the state removal algorithm"
143
false
GeorgeArgyros/symautomata
_stage
20,688
LDU_FT/MarcMeszaros/envitro/read
LDU_FT
[ "<BEGIN>\n## `_strtobool`", "Convert a string representation of truth to true (1) or false (0).", " True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values\n are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if\n 'val' is anything else.\n<END>", "<BEGIN>\n## `_str_to_lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read the raw env value. Read the raw environment variable or use the default. If the value is not found and no default is set throw an exception. Args: name: The environment variable name default: The default value to use if no environment variable is found allow_none: If the retur...
"Read the raw env value.\n\n Read the raw environment variable or use the default. If the value is not\n found and no default is set throw an exception.\n\n Args:\n name: The environment variable name\n default: The default value to use if no environment variable is found\n allow_none: If ...
58
false
MarcMeszaros/envitro
read
20,689
LDU_FT/textbook/atmdb/url_builder
LDU_FT
[ "<BEGIN>\n## `url_builder`", "Create a URL for the specified endpoint.", " Arguments:\n endpoint (:py:class:`str`): The API endpoint to access.\n root: (:py:class:`str`, optional): The root URL for the\n service API.\n params: (:py:class:`dict`, optional): The values...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a URL for the specified endpoint. Arguments: endpoint (:py:class:`str`): The API endpoint to access. root: (:py:class:`str`, optional): The root URL for the service API. params: (:py:class:`dict`, optional): The values for format into the created URL...
"Create a URL for the specified endpoint.\n\n Arguments:\n endpoint (:py:class:`str`): The API endpoint to access.\n root: (:py:class:`str`, optional): The root URL for the\n service API.\n params: (:py:class:`dict`, optional): The values for format\n into the cre...
70
false
textbook/atmdb
url_builder
20,690
LDU_FT/dwavesystems/dwave-system/iter_graph
LDU_FT
[ "<BEGIN>\n## `broken_chains`", "Find the broken chains.", " Args:\n samples (array_like):\n Samples as a nS x nV array_like object where nS is the number of samples and nV is the\n number of variables. The values should all be 0/1 or -1/+1.", " chains (list[array_like]):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_graph API. 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 iter_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Iterate over all graphs in the cache. Args: cur (:class:`sqlite3.Cursor`): An sqlite3 cursor. This function is meant to be run within a :obj:`with` statement. Yields: tuple: A 2-tuple containing: list: The nodelist for a graph in the cache. list: the edgel...
"Iterate over all graphs in the cache.\n\n Args:\n cur (:class:`sqlite3.Cursor`): An sqlite3 cursor. This function\n is meant to be run within a :obj:`with` statement.\n\n Yields:\n tuple: A 2-tuple containing:\n\n list: The nodelist for a graph in the cache.\n\n lis...
562
false
dwavesystems/dwave-system
iter_graph
20,691
LDU_FT/gristlabs/asttokens/get_text
LDU_FT
[ "<BEGIN>\n## `get_token_from_offset`", "Returns the token containing the given character offset (0-based position in source text),\n or the preceeding token if the position is between tokens.\n<END>", "<BEGIN>\n## `get_token`", "Returns the token containing the given (lineno, col_offset) position, or the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text API. 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_text API. 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...
After mark_tokens() has been called, returns the text corresponding to the given node. Returns '' for nodes (like `Load`) that don't correspond to any particular text.
"After mark_tokens() has been called, returns the text corresponding to the given node. Returns\n '' for nodes (like `Load`) that don't correspond to any particular text."
46
false
gristlabs/asttokens
get_text
20,692
LDU_FT/opentok/Opentok-Python-SDK/set_broadcast_layout
LDU_FT
[ "<BEGIN>\n## `get_stream_url`", "this method returns the url to get streams information\n<END>", "<BEGIN>\n## `force_disconnect_url`", "this method returns the force disconnect url endpoint\n<END>", "<BEGIN>\n## `set_archive_layout_url`", "this method returns the url to set the archive layout\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_broadcast_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_broadcast_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Use this method to change the layout type of a live streaming broadcast :param String broadcast_id: The ID of the broadcast that will be updated :param String layout_type: The layout type for the broadcast. Valid values are: 'bestFit', 'custom', 'horizontalPresentation', 'pip' and 'verticalPre...
"Use this method to change the layout type of a live streaming broadcast\n\n :param String broadcast_id: The ID of the broadcast that will be updated\n\n :param String layout_type: The layout type for the broadcast. Valid values are:\n 'bestFit', 'custom', 'horizontalPresentation', 'pip' and 'verti...
128
false
opentok/Opentok-Python-SDK
set_broadcast_layout
20,693
LDU_FT/portfors-lab/sparkle/setStimReps
LDU_FT
[ "<BEGIN>\n## `purgeDeletedWidgets`", "Finds old references to stashed fields and deletes them\n<END>", "<BEGIN>\n## `set_calibration`", "See :meth:`AbstractAcquisitionRunner<sparkle.run.abstract_acquisition.AbstractAcquisitionRunner.set_calibration>`\n<END>", "<BEGIN>\n## `set_current_stim_parameter`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setStimReps API. 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 setStimReps API. 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...
Sets the reps of the StimulusModel from values pulled from this widget
"Sets the reps of the StimulusModel from values pulled from\n this widget"
834
false
portfors-lab/sparkle
setStimReps
20,694
LDU_FT/openfisca/openfisca-core/randomly_init_variable
LDU_FT
[ "<BEGIN>\n## `apply_thresholds`", "Return one of the choices depending on the input position compared to thresholds, for each input.", " >>> apply_thresholds(np.array([4]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_thresholds(np.array([5]), [5, 7], [10, 15, 20])\n array([10])\n >>> apply_th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randomly_init_variable 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 randomly_init_variable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Initialise a variable with random values (from 0 to max_value) for the given period. If a condition vector is provided, only set the value of persons or groups for which condition is True. Example: >>> from openfisca_core.scripts.simulation_generator import make_simulation, randomly_init_varia...
"Initialise a variable with random values (from 0 to max_value) for the given period.\n If a condition vector is provided, only set the value of persons or groups for which condition is True.\n\n Example:\n\n >>> from openfisca_core.scripts.simulation_generator import make_simulation, randomly_init...
322
false
openfisca/openfisca-core
randomly_init_variable
20,695
LDU_FT/sv0/django-markdown-app/markdown
LDU_FT
[ "<BEGIN>\n## `markdown`", "Render markdown over a given value, optionally using varios extensions.", " Default extensions could be defined which MARKDOWN_EXTENSIONS option.", " :returns: A rendered markdown\n<END>", "<BEGIN>\n## `editor_js_initialization`", "Return script tag with initialization cod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markdown API. 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 markdown API. 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...
Render markdown over a given value, optionally using varios extensions. Default extensions could be defined which MARKDOWN_EXTENSIONS option. :returns: A rendered markdown
"Render markdown over a given value, optionally using varios extensions.\n\n Default extensions could be defined which MARKDOWN_EXTENSIONS option.\n\n :returns: A rendered markdown"
37
false
sv0/django-markdown-app
markdown
20,696
LDU_FT/sacherjj/array_devices/update_status
LDU_FT
[ "<BEGIN>\n## `setting`", "Load setting (Amps, Watts, or Ohms depending on program mode)\n<END>", "<BEGIN>\n## `partial_steps_data`", "Iterates 5 steps from start position and\n provides tuple for packing into buffer.", " returns (0, 0) if stpe doesn't exist.", " :param start: Position...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Updates current values from load. Must be called to get latest values for the following properties of class: current voltage power max current max power resistance local_control load_on wrong_polarity excessive_t...
"Updates current values from load.\n Must be called to get latest values for the following properties of class:\n current\n voltage\n power\n max current\n max power\n resistance\n local_control\n load_on\n wrong_polarity\n ...
44
false
sacherjj/array_devices
update_status
20,697
LDU_FT/gofed/gofedlib/getPackages
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPackages API. 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 getPackages API. 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...
:param distribution: package distribution :type distribution: string :returns: [string] :raises KeyError: if distribution not found
":param distribution: package distribution\n\t\t:type distribution: string\n\t\t:returns: [string]\n\t\t:raises KeyError: if distribution not found"
98
false
gofed/gofedlib
getPackages
20,698
LDU_FT/pudo/jsonmapping/generate_schema_mapping
LDU_FT
[ "<BEGIN>\n## `slugify`", "Transform all values into URL-capable slugs.\n<END>", "<BEGIN>\n## `latinize`", "Transliterate a given string into the latin alphabet.\n<END>", "<BEGIN>\n## `join`", "Merge all the strings. Put space between them.\n<END>", "<BEGIN>\n## `str_func`", "Apply functions like upper...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_schema_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_schema_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Try and recursively iterate a JSON schema and to generate an ES mapping that encasulates it.
"Try and recursively iterate a JSON schema and to generate an ES mapping\n that encasulates it."
34
false
pudo/jsonmapping
generate_schema_mapping
20,699
LDU_FT/theelous3/multio/run
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a new library function with the current manager.\n<END>", "<BEGIN>\n## `init`", "Must be called at some point after import and before your event loop\n is run.", " Populates the asynclib instance of _AsyncLib with methods relevant to the\n async library you are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Runs the appropriate library run function.
"Runs the appropriate library run function."
16
false
theelous3/multio
run
20,700
LDU_FT/statueofmike/rtsp/updateMovie
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the RTP packet with header fields and payload.\n<END>", "<BEGIN>\n## `preview_stream`", "Display stream in an OpenCV window until \"q\" key is pressed\n<END>", "<BEGIN>\n## `get_resources`", "Do an RTSP-DESCRIBE request, then parse out available resources from the response\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateMovie API. 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 updateMovie API. 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...
Update the image file as video frame in the GUI.
"Update the image file as video frame in the GUI."
30
false
statueofmike/rtsp
updateMovie
20,701
LDU_FT/Mapkin/osmgraph/parse_data
LDU_FT
[ "<BEGIN>\n## `nwise`", "Iterate through a sequence with a defined length window", " >>> list(nwise(range(8), 3))\n [(0, 1, 2), (1, 2, 3), (2, 3, 4), (3, 4, 5), (5, 6, 7)]", " >>> list(nwise(range(3), 5))\n []", " Parameters\n ----------\n iterable\n n : length of each sequence", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return an OSM networkx graph from the input OSM data Parameters ---------- data : string type : string ('xml' or 'pbf') >>> graph = parse_data(data, 'xml')
"Return an OSM networkx graph from the input OSM data\n\n Parameters\n ----------\n data : string\n type : string ('xml' or 'pbf')\n\n >>> graph = parse_data(data, 'xml')"
53
false
Mapkin/osmgraph
parse_data
20,702
LDU_FT/arubertoson/maya-launcher/get_environment_paths
LDU_FT
[ "<BEGIN>\n## `get_system_config_directory`", "Return platform specific config directory.\n<END>", "<BEGIN>\n## `get_version_exec_mapping_from_path`", "Find valid application version from given path object and return\r\n a mapping of version, executable.\n<END>", "<BEGIN>\n## `find_applications_on_system`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environment_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environment_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get environment paths from given environment variable.
"Get environment paths from given environment variable."
21
false
arubertoson/maya-launcher
get_environment_paths
20,703
LDU_FT/Calysto/calysto/getDataCrossValidation
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 getDataCrossValidation 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 getDataCrossValidation 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 the inputs/targets for a pattern pos, or assumes that the layers are called input and output and uses the lists in self.inputs and self.targets.
"Returns the inputs/targets for a pattern pos, or assumes that\n the layers are called input and output and uses the lists\n in self.inputs and self.targets."
236
false
Calysto/calysto
getDataCrossValidation
20,704
LDU_FT/JinnLynn/genpac/subdomain
LDU_FT
[ "<BEGIN>\n## `set_default_proxy`", "set_default_proxy(proxy_type, addr[, port[, rdns[, username, password]]])", " Sets a default proxy which all further socksocket objects will use,\n unless explicitly changed. All parameters are as for socket.set_proxy().\n<END>", "<BEGIN>\n## `create_connection`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subdomain API. 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 subdomain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return so-called subdomain of specified depth in the private suffix.
"Return so-called subdomain of specified depth in the private suffix."
41
false
JinnLynn/genpac
subdomain
20,705
LDU_FT/mnmelo/lazy_import/_setdef
LDU_FT
[ "<BEGIN>\n## `lazy_module`", "Function allowing lazy importing of a module into the namespace.", " A lazy module object is created, registered in `sys.modules`, and\n returned. This is a hollow module; actual loading, and `ImportErrors` if\n not found, are delayed until an attempt is made to access att...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setdef API. 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 _setdef API. 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...
Like dict.setdefault but sets the default value also if None is present.
"Like dict.setdefault but sets the default value also if None is present."
37
false
mnmelo/lazy_import
_setdef
20,706
LDU_FT/mikhaildubov/AST-text-analysis/_compute_childtab_next_l_index
LDU_FT
[ "<BEGIN>\n## `traverse_depth_first_pre_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.", " Based on Abouelhoda et al. (2004).\n<END>", "<BEGIN>\n## `traverse_depth_first_post_order`", "Visits the internal \"nodes\" of the enhanced suffix array in depth-f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_childtab_next_l_index 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 _compute_childtab_next_l_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Computes the child 'next l index' array in O(n) based on the LCP table. Abouelhoda et al. (2004).
"Computes the child 'next l index' array in O(n) based on the LCP table.\n\n Abouelhoda et al. (2004)."
52
false
mikhaildubov/AST-text-analysis
_compute_childtab_next_l_index
20,707
LDU_FT/koriakin/binflakes/_init
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 d...
Initializes internal data representation of the BinArray to all-0. The internal data representation is simply tightly-packed bits of all words, starting from LSB, split into bytes and stored in a bytearray. The unused trailing padding bits in the last byte must always be set to 0.
"Initializes internal data representation of the BinArray to all-0.\n The internal data representation is simply tightly-packed bits of all\n words, starting from LSB, split into bytes and stored in a bytearray.\n The unused trailing padding bits in the last byte must always be set\n to 0."
59
false
koriakin/binflakes
_init
20,708
LDU_FT/makinacorpus/django-geojson/get_all_related_objects
LDU_FT
[ "<BEGIN>\n## `render_to_response`", "Returns a JSON response, transforming 'context' to make the payload.\n<END>", "<BEGIN>\n## `tile_coord`", "This returns the NW-corner of the square. Use the function\n with xtile+1 and/or ytile+1 to get the other corners.\n With xtile+0.5 & ytile+0.5 it will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_related_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_related_objects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Django 1.8 changed meta api, see https://docs.djangoproject.com/en/1.8/ref/models/meta/#migrating-old-meta-api https://code.djangoproject.com/ticket/12663 https://github.com/django/django/pull/3848 Initially from Django REST Framework: https://github.com/tomchristie/django-rest-framework/blob/3.3.2/...
"Django 1.8 changed meta api, see\n https://docs.djangoproject.com/en/1.8/ref/models/meta/#migrating-old-meta-api\n https://code.djangoproject.com/ticket/12663\n https://github.com/django/django/pull/3848\n Initially from Django REST Framework:\n https://github.com/tomchristie/django-rest-framework/blob/...
16
false
makinacorpus/django-geojson
get_all_related_objects
20,709
LDU_FT/NASA-AMMOS/AIT-Core/_handle_log_rotations
LDU_FT
[ "<BEGIN>\n## `crc32File`", "Computes the CRC-32 of the contents of filename, optionally\n skipping a certain number of bytes at the beginning of the file.\n<END>", "<BEGIN>\n## `endianSwapU16`", "Swaps pairs of bytes (16-bit words) in the given bytearray.\n<END>", "<BEGIN>\n## `setDictDefaults`", "Sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_log_rotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_log_rotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Rotate each handler's log file if necessary
"Rotate each handler's log file if necessary"
688
false
NASA-AMMOS/AIT-Core
_handle_log_rotations
20,710
LDU_FT/rueckstiess/mtools/fast_forward
LDU_FT
[ "<BEGIN>\n## `wait_for_host`", "Ping server and wait for response.", " Ping a mongod or mongos every `interval` seconds until it responds, or\n `timeout` seconds have passed. If `to_start` is set to False, will wait for\n the node to shut down instead. This function can be called as a separate\n thr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_forward API. 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 fast_forward API. 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...
Fast-forward file to given start_dt datetime obj using binary search. Only fast for files. Streams need to be forwarded manually, and it will miss the first line that would otherwise match (as it consumes the log line).
"Fast-forward file to given start_dt datetime obj using binary search.\n\n Only fast for files. Streams need to be forwarded manually, and it will\n miss the first line that would otherwise match (as it consumes the log\n line)."
260
false
rueckstiess/mtools
fast_forward
20,711
LDU_FT/awickert/gFlex/configGet
LDU_FT
[ "<BEGIN>\n## `elasprep`", "dx4, dy4, dx2dy2, D = elasprep(dx,dy,Te,E=1E11,nu=0.25)", " Defines the variables that are required to create the 2D finite \n difference solution coefficient matrix\n<END>", "<BEGIN>\n## `BC_selector_and_coeff_matrix_creator`", "Selects the boundary conditions\n E-W is f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configGet API. 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 configGet API. 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...
Wraps a try / except and a check for self.filename around ConfigParser as it talks to the configuration file. Also, checks for existence of configuration file so this won't execute (and fail) when no configuration file is provided (e.g., running in coupled mode with CSDMS entirely with getters and set...
"Wraps a try / except and a check for self.filename around ConfigParser\n as it talks to the configuration file.\n Also, checks for existence of configuration file so this won't execute (and fail) \n when no configuration file is provided (e.g., running in coupled mode with CSDMS \n entirely with getters an...
78
false
awickert/gFlex
configGet
20,712
LDU_FT/phodge/homely/update
LDU_FT
[ "<BEGIN>\n## `clonetopath`", "Clone the repo at <self.pushablepath> into <dest>\n Note that if self.pushablepath is None, then self.path will be used\n instead.\n<END>", "<BEGIN>\n## `_removecleaner`", "Remove the cleaner from the list if it already exists. Returns True if\n the cleaner w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Performs a `git pull` in each of the repositories registered with `homely add`, runs all of their HOMELY.py scripts, and then performs automatic cleanup as necessary. REPO This should be the path to a local dotfiles repository that has already been registered using `homely add`. If you spec...
"Performs a `git pull` in each of the repositories registered with\n `homely add`, runs all of their HOMELY.py scripts, and then performs\n automatic cleanup as necessary.\n\n REPO\n This should be the path to a local dotfiles repository that has already\n been registered using `homely add`. If y...
49
false
phodge/homely
update
20,713
LDU_FT/ic-labs/django-icekit/published
LDU_FT
[ "<BEGIN>\n## `parse_region`", "Parse Region parameter to determine the rectangular portion of the full\n image to be returned, informed by the actual image dimensions.\n Returns (x, y, width, height):\n - x,y are pixel offsets into the image from the upper left\n - width, height are pixel dime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the published API. 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 published API. 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...
Apply additional filtering of published items over that done in `PublishingQuerySet.published` to filter based on additional publising date fields used by Fluent.
"Apply additional filtering of published items over that done in\n `PublishingQuerySet.published` to filter based on additional publising\n date fields used by Fluent."
562
false
ic-labs/django-icekit
published
20,714
LDU_FT/xflr6/graphviz/mapping_items
LDU_FT
[ "<BEGIN>\n## `command`", "Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>", "<BEGIN>\n## `run`", "Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>", "<BEGIN>\n## `render`", "Render file with Graphviz ``engine`` into ``format``, return result f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapping_items API. 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 mapping_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return an iterator over the ``mapping`` items, sort if it's a plain dict. >>> list(mapping_items({'spam': 0, 'ham': 1, 'eggs': 2})) [('eggs', 2), ('ham', 1), ('spam', 0)] >>> from collections import OrderedDict >>> list(mapping_items(OrderedDict(enumerate(['spam', 'ham', 'eggs'])))) [(0, 'spam'), ...
"Return an iterator over the ``mapping`` items, sort if it's a plain dict.\n\n >>> list(mapping_items({'spam': 0, 'ham': 1, 'eggs': 2}))\n [('eggs', 2), ('ham', 1), ('spam', 0)]\n\n >>> from collections import OrderedDict\n >>> list(mapping_items(OrderedDict(enumerate(['spam', 'ham', 'eggs']))))\n [(0, '...
93
false
xflr6/graphviz
mapping_items
20,715
LDU_FT/jacobtomlinson/datapoint-python/install_API_key
LDU_FT
[ "<BEGIN>\n## `connection`", "Connect to DataPoint with the given API key profile name.\n<END>", "<BEGIN>\n## `elements`", "Return a list of the elements which are not None\n<END>", "<BEGIN>\n## `__retry_session`", "Retry the connection using requests if it fails. Use this as a wrapper\n to request ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_API_key API. 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 install_API_key API. 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...
Put the given API key into the given profile name.
"Put the given API key into the given profile name."
39
false
jacobtomlinson/datapoint-python
install_API_key
20,716
LDU_FT/wickman/compactor/dispatch
LDU_FT
[ "<BEGIN>\n## `encode_request`", "Encode a request into a raw HTTP request. This function returns a string\n of bytes that represent a valid HTTP/1.0 request, including any libprocess\n headers required for communication.", " Use the `legacy` option (set to True) to use the legacy User-Agent based\n libproce...
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...
Call a method on another process by its pid. The method on the other process does not need to be installed with ``Process.install``. The call is serialized with all other calls on the context's event loop. The pid must be bound to this context. This function returns immediately. :param pid: The...
"Call a method on another process by its pid.\n\n The method on the other process does not need to be installed with\n ``Process.install``. The call is serialized with all other calls on the\n context's event loop. The pid must be bound to this context.\n\n This function returns immediately.\n\n :param...
96
false
wickman/compactor
dispatch
20,717
LDU_FT/pasztorpisti/json-cfg/default_number_converter
LDU_FT
[ "<BEGIN>\n## `default_number_converter`", "Converts the string representation of a json number into its python object equivalent, an\n int, long, float or whatever type suits.\n<END>", "<BEGIN>\n## `load_utf_text_file`", "Loads the specified text file and tries to decode it using one of the UTF encodings.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_number_converter 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 default_number_converter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Converts the string representation of a json number into its python object equivalent, an int, long, float or whatever type suits.
"Converts the string representation of a json number into its python object equivalent, an\n int, long, float or whatever type suits."
39
false
pasztorpisti/json-cfg
default_number_converter
20,718
LDU_FT/yougov/vr.builder/pull_buildpack
LDU_FT
[ "<BEGIN>\n## `_write_buildproc_yaml`", "Write a proc.yaml for the container and return the container path\n<END>", "<BEGIN>\n## `assert_compile_finished`", "Once builder.sh has invoked the compile script, it should return and we\n should set a flag to the script returned. If that flag is missing, then\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull_buildpack API. 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 pull_buildpack API. 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...
Update a buildpack in its shared location, then make a copy into the current directory, using an md5 of the url.
"Update a buildpack in its shared location, then make a copy into the\n current directory, using an md5 of the url."
23
false
yougov/vr.builder
pull_buildpack
20,719
LDU_FT/wavycloud/pyboto3/update_item
LDU_FT
[ "<BEGIN>\n## `create_endpoint`", "Creates an endpoint using the provided settings.\n See also: AWS API Documentation", " :example: response = client.create_endpoint(\n EndpointIdentifier='string',\n EndpointType='source'|'target',\n EngineName='string',\n Username='string',\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 extra...
Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has cer...
"Edits an existing item's attributes, or adds a new item to the table if it does not already exist. You can put, delete, or add attribute values. You can also perform a conditional update on an existing item (insert a new attribute name-value pair if it doesn't exist, or replace an existing name-value pair if it has ce...
3,657
true
wavycloud/pyboto3
update_item
20,720
LDU_FT/hydpy-dev/hydpy/run_subprocess
LDU_FT
[ "<BEGIN>\n## `xml_replace`", "Read the content of an XML template file (XMLT), apply the given\n `replacements` to its substitution markers, and write the result into\n an XML file with the same name but ending with `xml` instead of `xmlt`.", " First, we write an XMLT file, containing a regular HTML c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_subprocess API. 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 run_subprocess API. 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...
Execute the given command in a new process. Only when both `verbose` and `blocking` are |True|, |run_subprocess| prints all responses to the current value of |sys.stdout|: >>> from hydpy import run_subprocess >>> import platform >>> esc = '' if 'windows' in platform.platform().lower() else '\\\\' ...
"Execute the given command in a new process.\n\n Only when both `verbose` and `blocking` are |True|, |run_subprocess|\n prints all responses to the current value of |sys.stdout|:\n\n >>> from hydpy import run_subprocess\n >>> import platform\n >>> esc = '' if 'windows' in platform.platform().lower() else...
3,847
true
hydpy-dev/hydpy
run_subprocess
20,721
LDU_FT/emirozer/fake2db/database_caller_creator
LDU_FT
[ "<BEGIN>\n## `database_caller_creator`", "creates a mongodb database\n returns the related connection object\n which will be later used to spawn the cursor\n<END>", "<BEGIN>\n## `database_caller_creator`", "creates a redis connection object\n which will be later used to modify the db\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_caller_creator 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 database_caller_creator 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 postgresql db returns the related connection object which will be later used to spawn the cursor
"creates a postgresql db\n returns the related connection object\n which will be later used to spawn the cursor"
44
false
emirozer/fake2db
database_caller_creator
20,722
LDU_FT/amanusk/s-tui/update_stress_mode
LDU_FT
[ "<BEGIN>\n## `get_label_scale`", "Dynamically change the scale of the graph (y lable)\n<END>", "<BEGIN>\n## `calculate_bar_widths`", "Return a list of bar widths, one for each bar in data.", " If self.bar_width is None this implementation will stretch\n the bars across the available space spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_stress_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_stress_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Updates stress mode according to radio buttons state
"Updates stress mode according to radio buttons state"
70
false
amanusk/s-tui
update_stress_mode
20,723
LDU_FT/OLC-Bioinformatics/sipprverse/gdcsreporter
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 gdcsreporter API. 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 gdcsreporter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Creates a report of the GDCS results :param analysistype: The variable to use when accessing attributes in the metadata object
"Creates a report of the GDCS results\n :param analysistype: The variable to use when accessing attributes in the metadata object"
255
false
OLC-Bioinformatics/sipprverse
gdcsreporter
20,724
LDU_FT/quantopian/zipline/lows
LDU_FT
[ "<BEGIN>\n## `unwrap`", "Get the cached value.", " Returns\n -------\n value : object\n The cached value.", " Raises\n ------\n Expired\n Raised when `dt` is greater than self.expires.\n<END>", "<BEGIN>\n## `get`", "Get the value of a cached ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lows API. 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 lows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
The low field's aggregation returns the smallest low seen between the market open and the current dt. If there has been no data on or before the `dt` the low is `nan`. Returns ------- np.array with dtype=float64, in order of assets parameter.
"The low field's aggregation returns the smallest low seen between\n the market open and the current dt.\n If there has been no data on or before the `dt` the low is `nan`.\n\n Returns\n -------\n np.array with dtype=float64, in order of assets parameter."
2,011
true
quantopian/zipline
lows
20,725
LDU_FT/greenelab/django-genes/wall_of_name
LDU_FT
[ "<BEGIN>\n## `chk_col_numbers`", "Check that none of the input column numbers is out of range.\n (Instead of defining this function, we could depend on Python's built-in\n IndexError exception for this issue, but the IndexError exception wouldn't\n include line number information, which is helpful for us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wall_of_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wall_of_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Appends identifiers for the different databases (such as Entrez id's) and returns them. Uses the CrossRef class below.
"Appends identifiers for the different databases (such as Entrez id's)\n and returns them. Uses the CrossRef class below."
15
false
greenelab/django-genes
wall_of_name
20,726
LDU_FT/blockchain/api-v1-client-python/get_block_height
LDU_FT
[ "<BEGIN>\n## `get_ticker`", "Call the 'ticker' method and return a dictionary\n of :class:`Currency` objects.", " :param str api_code: Blockchain.info API code (optional)\n :return: a dictionary in the format of ccy_symbol(str):currency(:class:`Currency`)\n<END>", "<BEGIN>\n## `to_btc`", "Call the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_block_height API. 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_block_height API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Get an array of blocks at the specified height. :param int height: block height to look up :param str api_code: Blockchain.info API code (optional) :return: an array of :class:`Block` objects
"Get an array of blocks at the specified height.\n\n :param int height: block height to look up\n :param str api_code: Blockchain.info API code (optional)\n :return: an array of :class:`Block` objects"
78
false
blockchain/api-v1-client-python
get_block_height
20,727
LDU_FT/python-bugzilla/python-bugzilla/getbugs
LDU_FT
[ "<BEGIN>\n## `_request_helper`", "A helper method to assist in making a request and provide a parsed\n response.\n<END>", "<BEGIN>\n## `open_without_clobber`", "Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getbugs API. 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 getbugs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a list of Bug objects with the full complement of bug data already loaded. If there's a problem getting the data for a given id, the corresponding item in the returned list will be None.
"Return a list of Bug objects with the full complement of bug data\n already loaded. If there's a problem getting the data for a given id,\n the corresponding item in the returned list will be None."
184
false
python-bugzilla/python-bugzilla
getbugs
20,728
LDU_FT/wbond/asn1crypto/preferred_ordinal
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preferred_ordinal API. 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 preferred_ordinal API. 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 ordering value for a particular attribute key. Unrecognized attributes and OIDs will be sorted lexically at the end. :return: An orderable value.
"Returns an ordering value for a particular attribute key.\n\n Unrecognized attributes and OIDs will be sorted lexically at the end.\n\n :return:\n An orderable value."
739
false
wbond/asn1crypto
preferred_ordinal
20,729
LDU_FT/UDST/osmnet/node_pairs
LDU_FT
[ "<BEGIN>\n## `format_check`", "Check the format of a osmnet_config object.", " Parameters\n ----------\n settings : dict\n osmnet_config as a dictionary\n Returns\n -------\n Nothing\n<END>", "<BEGIN>\n## `to_dict`", "Return a dict representation of an osmnet osmnet_config instance....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_pairs API. 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 node_pairs API. 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 table of node pairs with the distances between them. Parameters ---------- nodes : pandas.DataFrame Must have 'lat' and 'lon' columns. ways : pandas.DataFrame Table of way metadata. waynodes : pandas.DataFrame Table linking way IDs to node IDs. Way IDs should be in ...
"Create a table of node pairs with the distances between them.\n\n Parameters\n ----------\n nodes : pandas.DataFrame\n Must have 'lat' and 'lon' columns.\n ways : pandas.DataFrame\n Table of way metadata.\n waynodes : pandas.DataFrame\n Table linking way IDs to node IDs. Way IDs sho...
69
false
UDST/osmnet
node_pairs
20,730
LDU_FT/Vagrants/blackbird/_get_modules
LDU_FT
[ "<BEGIN>\n## `helper_import`", "Return class or module object.\n if the argument is only a module name and return a module object.\n if the argument is a module and class name, and return a class object.\n<END>", "<BEGIN>\n## `global_import`", "This function search sys.path[1:], return specified module....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get modules under the self.config['global']['module_dirs'] directories. Plugin modules has the two classes of "ConcreteJob" and "Validator". Further, "Validator.module" property is used to deciding which one to use plugin module. This method returns a dictionary as following: mo...
"Get modules under the self.config['global']['module_dirs'] directories.\n Plugin modules has the two classes of \"ConcreteJob\" and \"Validator\".\n Further, \"Validator.module\" property is used to\n deciding which one to use plugin module.\n\n This method returns a dictionary as following...
106
false
Vagrants/blackbird
_get_modules
20,731
LDU_FT/secnot/rectpack/newPacker
LDU_FT
[ "<BEGIN>\n## `_add_section`", "Adds a new section to the free section list, but before that and if \n section merge is enabled, tries to join the rectangle with all existing \n sections, if successful the resulting section is again merged with the \n remaining sections until the operation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newPacker API. 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 newPacker API. 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...
Packer factory helper function Arguments: mode (PackingMode): Packing mode Online: Rectangles are packed as soon are they are added Offline: Rectangles aren't packed untils pack() is called bin_algo (PackingBin): Bin selection heuristic pack_algo (PackingAlgorithm): ...
"Packer factory helper function\n\n Arguments:\n mode (PackingMode): Packing mode\n Online: Rectangles are packed as soon are they are added\n Offline: Rectangles aren't packed untils pack() is called\n bin_algo (PackingBin): Bin selection heuristic\n pack_algo (PackingAlgo...
103
false
secnot/rectpack
newPacker
20,732
LDU_FT/cgarciae/phi/Then4
LDU_FT
[ "<BEGIN>\n## `RegisterMethod`", "**RegisterMethod**", " RegisterMethod(f, library_path, alias=None, original_name=None, doc=None, wrapped=None, explanation=\"\", method_type=utils.identity, explain=True)", "`classmethod` for registering functions as methods of this class.", "**Arguments**", "* **f** : ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Then4 API. 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 Then4 API. 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...
`Then4(f, ...)` is equivalent to `ThenAt(4, f, ...)`. Checkout `phi.builder.Builder.ThenAt` for more information.
"`Then4(f, ...)` is equivalent to `ThenAt(4, f, ...)`. Checkout `phi.builder.Builder.ThenAt` for more information."
252
false
cgarciae/phi
Then4
20,733
LDU_FT/bwhite/hadoopy/extract
LDU_FT
[ "<BEGIN>\n## `__add_options`", "Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>", "<BEGIN>\n## `exec_python`", "Wrap running python script in a subprocess.", " Return stdout of the invoked command.\n<END>", "<BEGIN>\n## `exec_python_rc`", "Wrap running python scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the contents of an entry. NAME is an entry name. Return the tuple (ispkg, contents). For non-Python resoures, ispkg is meaningless (and 0). Used by the import mechanism.
"Get the contents of an entry.\n\n NAME is an entry name.\n Return the tuple (ispkg, contents).\n For non-Python resoures, ispkg is meaningless (and 0).\n Used by the import mechanism."
610
false
bwhite/hadoopy
extract
20,734
LDU_FT/arkottke/pysra/fit
LDU_FT
[ "<BEGIN>\n## `_calc_strain_ref`", "Compute the reference strain using Equation (6).\n<END>", "<BEGIN>\n## `_calc_mod_reduc`", "Compute the shear modulus reduction using Equation (1).\n<END>", "<BEGIN>\n## `_calc_damping`", "Compute the damping ratio using Equation (16).\n<END>", "<BEGIN>\n## `relative_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fit to a target crustal amplification or site term. The fitting process adjusts the velocity, site attenuation, and layer thickness (if enabled) to fit a target values. The frequency range is specified by the input motion. Parameters ---------- target_type: str ...
"Fit to a target crustal amplification or site term.\n\n The fitting process adjusts the velocity, site attenuation, and layer\n thickness (if enabled) to fit a target values. The frequency range is\n specified by the input motion.\n\n Parameters\n ----------\n target_type: str...
111
false
arkottke/pysra
fit
20,735
LDU_FT/SystemRDL/systemrdl-compiler/get_property
LDU_FT
[ "<BEGIN>\n## `derive_coordinates`", "Depending on the compilation source, some members of the SourceRef\n object may be incomplete.\n Calling this function performs the necessary derivations to complete the\n object.\n<END>", "<BEGIN>\n## `format_message`", "Formats the message prior to e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_property API. 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...
Gets the SystemRDL component property If a property was not explicitly set in the RDL source, its default value is derived. In some cases, a default value is implied according to other property values. Properties values that are a reference to a component instance are converted...
"Gets the SystemRDL component property\n\n If a property was not explicitly set in the RDL source, its default\n value is derived. In some cases, a default value is implied according to\n other property values.\n\n Properties values that are a reference to a component instance are\n c...
207
false
SystemRDL/systemrdl-compiler
get_property
20,736
LDU_FT/CalebBell/ht/wall_factor
LDU_FT
[ "<BEGIN>\n## `blackbody_spectral_radiance`", "r'''Returns the spectral radiance, in units of W/m^2/sr/µm.", " .. math::\n I_{\\lambda,blackbody,e}(\\lambda,T)=\\frac{2hc_o^2}\n {\\lambda^5[\\exp(hc_o/\\lambda k T)-1]}", " Parameters\n ----------\n T : float\n Temperature of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wall_factor API. 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 wall_factor API. 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...
r'''Computes the wall correction factor for heat transfer, mass transfer, or momentum transfer between a fluid and a wall. Utility function; the coefficients for the phenomenon must be provided to this method. The default coefficients are for heat transfer of a turbulent liquid. The general formula...
"r'''Computes the wall correction factor for heat transfer, mass transfer,\n or momentum transfer between a fluid and a wall. Utility function; the\n coefficients for the phenomenon must be provided to this method. The\n default coefficients are for heat transfer of a turbulent liquid.\n \n The general f...
2,013
true
CalebBell/ht
wall_factor
20,737
LDU_FT/konstantint/matplotlib-venn/get_label_by_id
LDU_FT
[ "<BEGIN>\n## `point_in_circle`", "Returns true if a given point is located inside (or on the border) of a circle.", " >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>", "<BEGIN>\n## `circle_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_label_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_label_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a subset label by a "region id". A region id is a string '10', '01' or '11' for 2-circle diagram or a string like '001', '010', etc, for 3-circle diagram. Alternatively, if the string 'A', 'B' (or 'C' for 3-circle diagram) is given, the label of the corresponding set is return...
"Returns a subset label by a \"region id\". \n A region id is a string '10', '01' or '11' for 2-circle diagram or a \n string like '001', '010', etc, for 3-circle diagram.\n Alternatively, if the string 'A', 'B' (or 'C' for 3-circle diagram) is given, the label of the\n corresponding set is...
166
false
konstantint/matplotlib-venn
get_label_by_id
20,738
LDU_FT/tsroten/dragonmapper/numbered_to_accented
LDU_FT
[ "<BEGIN>\n## `load_data_file`", "Load a data file and return it as a list of lines.", " Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>", "<BEGIN>\n## `_load_data`", "Load the word and character mapping data in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numbered_to_accented 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 numbered_to_accented API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert all numbered Pinyin syllables in *s* to accented Pinyin.
"Convert all numbered Pinyin syllables in *s* to accented Pinyin."
97
false
tsroten/dragonmapper
numbered_to_accented
20,739
LDU_FT/gmr/queries/_get_cursor
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 _get_cursor API. 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_cursor API. 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 cursor for the given cursor_factory. Specify a name to use server-side cursors. :param connection: The connection to create a cursor on :type connection: psycopg2.extensions.connection :param str name: A cursor name for a server side cursor :rtype: psycopg2.extensions.c...
"Return a cursor for the given cursor_factory. Specify a name to\n use server-side cursors.\n\n :param connection: The connection to create a cursor on\n :type connection: psycopg2.extensions.connection\n :param str name: A cursor name for a server side cursor\n :rtype: psycopg2.exten...
181
false
gmr/queries
_get_cursor
20,740
LDU_FT/iskandr/serializable/return_primitive
LDU_FT
[ "<BEGIN>\n## `return_primitive`", "Decorator which wraps a single argument function to ignore any\n arguments of primitive type (simply returning them unmodified).\n<END>", "<BEGIN>\n## `write_json_file`", "Serialize this VariantCollection to a JSON representation and write it\n out to a text file.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_primitive API. 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 return_primitive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Decorator which wraps a single argument function to ignore any arguments of primitive type (simply returning them unmodified).
"Decorator which wraps a single argument function to ignore any\n arguments of primitive type (simply returning them unmodified)."
20
false
iskandr/serializable
return_primitive
20,741
LDU_FT/delph-in/pydelphin/hcons
LDU_FT
[ "<BEGIN>\n## `compile`", "Use ACE to compile a grammar.", " Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hcons API. 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 hcons API. 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...
Return the list of all HandleConstraints in *xmrs*.
"Return the list of all HandleConstraints in *xmrs*."
662
false
delph-in/pydelphin
hcons
20,742
LDU_FT/codenerix/django-codenerix-invoicing/find
LDU_FT
[ "<BEGIN>\n## `buy_product`", "determina si el customer ha comprado un producto\n<END>", "<BEGIN>\n## `find`", "Get a valid CashDiary for today from the given POS, it will return:\n - None: if no CashDiary is available today and older one was already closed\n - New CashDiary: if no CashDi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. 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 find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Get a valid CashDiary for today from the given POS, it will return: - None: if no CashDiary is available today and older one was already closed - New CashDiary: if no CashDiary is available today but there is an older one which it was opened - Existing CashDiary: if a CashDiary is av...
"Get a valid CashDiary for today from the given POS, it will return:\n - None: if no CashDiary is available today and older one was already closed\n - New CashDiary: if no CashDiary is available today but there is an older one which it was opened\n - Existing CashDiary: if a CashDiary i...
38
false
codenerix/django-codenerix-invoicing
find
20,743
LDU_FT/tagcubeio/tagcube-cli/is_valid_path
LDU_FT
[ "<BEGIN>\n## `create_scans`", "This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).", " :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>", "<BEGIN>\n## `parse_url`", "Parse a URL into the part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
:return: True if the path is valid, else raise a ValueError with the specific error
":return: True if the path is valid, else raise a ValueError with the\n specific error"
72
false
tagcubeio/tagcube-cli
is_valid_path
20,744
LDU_FT/crate/crate-python/_get_crud_params
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_crud_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_crud_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
extract values from crud parameters taken from SQLAlchemy's crud module (since 1.0.x) and adapted for Crate dialect
"extract values from crud parameters\n\n taken from SQLAlchemy's crud module (since 1.0.x) and\n adapted for Crate dialect"
81
false
crate/crate-python
_get_crud_params
20,745
LDU_FT/briancappello/flask-unchained/reset_password
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of a model.", " :param instance: The created model instance.\n :param errors: Any errors.\n :return: The created model instance, or a dictionary of errors.\n<END>", "<BEGIN>\n## `patch`", "Partially update a model instance.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_password API. 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 reset_password API. 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...
Service method to reset a user's password. The same as :meth:`change_password` except we this method sends a different notification email. Sends signal `password_reset`. :param user: :param password: :return:
"Service method to reset a user's password. The same as :meth:`change_password`\n except we this method sends a different notification email.\n\n Sends signal `password_reset`.\n\n :param user:\n :param password:\n :return:"
597
false
briancappello/flask-unchained
reset_password
20,746
LDU_FT/ff0000/scarlet/get_cache_prefix
LDU_FT
[ "<BEGIN>\n## `get_add_link`", "Appends the popup=1 query string to the url so the\n destination url treats it as a popup.\n<END>", "<BEGIN>\n## `render_view`", "Return an string version of a View with as_string method.\n First argument is the name of the view. Any other arguments\n should be keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_prefix API. 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_cache_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Hook for any extra data you would like to prepend to your cache key. The default implementation ensures that ajax not non ajax requests are cached separately. This can easily be extended to differentiate on other criteria like mobile os' for example.
"Hook for any extra data you would like\n to prepend to your cache key.\n\n The default implementation ensures that ajax not non\n ajax requests are cached separately. This can easily\n be extended to differentiate on other criteria\n like mobile os' for example."
548
false
ff0000/scarlet
get_cache_prefix
20,747
LDU_FT/cebel/pyctd/get_disease
LDU_FT
[ "<BEGIN>\n## `set_mysql`", "Set the SQLAlchemy connection string with MySQL settings\n<END>", "<BEGIN>\n## `_limit_and_df`", "adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame", " :param bool as_df: if is set to True results return as pandas.DataFrame\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_disease API. 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_disease API. 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...
Get diseases :param bool as_df: if set to True result returns as `pandas.DataFrame` :param int limit: maximum number of results :param str disease_name: disease name :param str disease_id: disease identifier :param str definition: definition of disease :param str parent_...
"Get diseases\n\n :param bool as_df: if set to True result returns as `pandas.DataFrame`\n :param int limit: maximum number of results\n :param str disease_name: disease name\n :param str disease_id: disease identifier\n :param str definition: definition of disease\n :param str...
126
false
cebel/pyctd
get_disease
20,748
LDU_FT/bionikspoon/pureyaml/singledispatch
LDU_FT
[ "<BEGIN>\n## `_gt_from_lt`", "Return a > b. Computed by @total_ordering from (not a < b) and (a != b).\n<END>", "<BEGIN>\n## `_le_from_lt`", "Return a <= b. Computed by @total_ordering from (a < b) or (a == b).\n<END>", "<BEGIN>\n## `_ge_from_lt`", "Return a >= b. Computed by @total_ordering from (not ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the singledispatch API. 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 singledispatch API. 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...
Single-dispatch generic function decorator. Transforms a function into a generic function, which can have different behaviours depending upon the type of its first argument. The decorated function acts as the default implementation, and additional implementations can be registered using the register() ...
"Single-dispatch generic function decorator.\n\n Transforms a function into a generic function, which can have different\n behaviours depending upon the type of its first argument. The decorated\n function acts as the default implementation, and additional\n implementations can be registered using the regis...
70
false
bionikspoon/pureyaml
singledispatch
20,749
LDU_FT/p3trus/slave/append_line
LDU_FT
[ "<BEGIN>\n## `_typelist`", "Helper function converting all items of x to instances.\n<END>", "<BEGIN>\n## `write`", "Generates and sends a command message unit.", " :param transport: An object implementing the `.Transport` interface.\n It is used by the protocol to send the message.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_line API. 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 append_line API. 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...
Appends the new_line to the LS340 program.
"Appends the new_line to the LS340 program."
189
false
p3trus/slave
append_line
20,750
LDU_FT/fboender/ansible-cmdb/escape
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Parse a string expression into a set of tokens that can be used as a path\n into a Python datastructure.\n<END>", "<BEGIN>\n## `jsonxs`", "Get, set, delete values in a JSON structure. `expr` is a JSONpath-like\n expression pointing to the desired value. `action` determines the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape API. 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 escape API. 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 ...
Replace characters with their character references. Replace characters by their named entity references. Non-ASCII characters, if they do not have a named entity reference, are replaced by numerical character references. The return value is guaranteed to be ASCII.
"Replace characters with their character references.\n\n Replace characters by their named entity references.\n Non-ASCII characters, if they do not have a named entity reference,\n are replaced by numerical character references.\n\n The return value is guaranteed to be ASCII."
271
false
fboender/ansible-cmdb
escape
20,751
LDU_FT/RiotGames/cloud-inquisitor/get_actions
LDU_FT
[ "<BEGIN>\n## `options`", "Returns metadata information required for User Creation\n<END>", "<BEGIN>\n## `run`", "Update the cache of all DNS entries and perform checks", " Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments", " Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actions API. 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_actions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a list of actions to executed Args: issues (`list` of :obj:`RequiredTagsIssue`): List of issues Returns: `list` of `dict`
"Returns a list of actions to executed\n\n Args:\n issues (`list` of :obj:`RequiredTagsIssue`): List of issues\n\n Returns:\n `list` of `dict`"
693
false
RiotGames/cloud-inquisitor
get_actions
20,752
LDU_FT/fbngrm/babelpy/_wraps
LDU_FT
[ "<BEGIN>\n## `read_txt_file`", "read text from `filepath` and remove linebreaks\n<END>", "<BEGIN>\n## `babelfy`", "make a request to the babelfy api and babelfy param text\n set self._data with the babelfied text as json object\n<END>", "<BEGIN>\n## `_parse_entities`", "enrich the babelfied data wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wraps API. 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 _wraps API. 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 ...
determine if a token is wrapped by another token
"determine if a token is wrapped by another token"
16
false
fbngrm/babelpy
_wraps
20,753
LDU_FT/edx/opaque-keys/_split_keys_v1
LDU_FT
[ "<BEGIN>\n## `parse_url`", "If it can be parsed as a version_guid with no preceding org + offering, returns a dict\n with key 'version_guid' and the value,", " If it can be parsed as a org + offering, returns a dict\n with key 'id' and optional keys 'branch' and 'version_guid'.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_keys_v1 API. 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 _split_keys_v1 API. 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...
Split two keys out a string created by _join_keys_v1.
"Split two keys out a string created by _join_keys_v1."
127
false
edx/opaque-keys
_split_keys_v1
20,754
LDU_FT/airspeed-velocity/asv/insert_param
LDU_FT
[ "<BEGIN>\n## `get_graph_data`", "Iterator over graph data sets", " Yields\n ------\n param_idx\n Flat index to parameter permutations for parameterized benchmarks.\n None if benchmark is not parameterized.\n entry_name\n Name for the data set. If benc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_param API. 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 insert_param API. 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...
Insert a parameter at the front of the parameter list.
"Insert a parameter at the front of the parameter list."
256
false
airspeed-velocity/asv
insert_param
20,755
LDU_FT/kyuupichan/aiorpcX/connection_made
LDU_FT
[ "<BEGIN>\n## `timeout_after`", "Execute the specified coroutine and return its result. However,\n issue a cancellation request to the calling task after seconds\n have elapsed. When this happens, a TaskTimeout exception is\n raised. If coro is None, the result of this function serves\n as an asynchr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_made API. 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 connection_made API. 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...
Called by asyncio when a connection is established. Derived classes overriding this method must call this first.
"Called by asyncio when a connection is established.\n\n Derived classes overriding this method must call this first."
118
false
kyuupichan/aiorpcX
connection_made
20,756
LDU_FT/quantmind/dynts/t_NUMBER
LDU_FT
[ "<BEGIN>\n## `jstimestamp_slow`", "Convert a date or datetime object into a javsacript timestamp\n<END>", "<BEGIN>\n## `jstimestamp`", "Convert a date or datetime object into a javsacript timestamp.\n<END>", "<BEGIN>\n## `rolling`", "Fast rolling operation with O(log n) updates where n is the\n win...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_NUMBER API. 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 t_NUMBER API. 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...
r'([0-9]+\.?[0-9]*|\.[0-9]+)([eE](\+|-)?[0-9]+)?
"r'([0-9]+\\.?[0-9]*|\\.[0-9]+)([eE](\\+|-)?[0-9]+)?"
159
false
quantmind/dynts
t_NUMBER
20,757
LDU_FT/Staffjoy/client_python/_handle_request_exception
LDU_FT
[ "<BEGIN>\n## `get`", "Inherit info from parent and return new object\n<END>", "<BEGIN>\n## `get_all`", "Perform a read request against the resource\n<END>", "<BEGIN>\n## `_handle_request_exception`", "Raise the proper exception based on the response\n<END>", "<BEGIN>\n## `fetch`", "Perform a read requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_request_exception 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 _handle_request_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Raise the proper exception based on the response
"Raise the proper exception based on the response"
12
false
Staffjoy/client_python
_handle_request_exception
20,758
LDU_FT/etal/biofrills/consensus
LDU_FT
[ "<BEGIN>\n## `read_logodata`", "Get weblogo data for a sequence alignment.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END>", "<BEGIN>\n## `aln2logodata`", "Get weblogo data for an alignment object.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consensus API. 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 consensus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get the consensus of an alignment, as a string. Emit gap characters for majority-gap columns; apply various strategies to choose the consensus amino acid type for the remaining columns. Parameters ---------- simple : bool If True, use simple plurality to determine the consensus amino acid...
"Get the consensus of an alignment, as a string.\n\n Emit gap characters for majority-gap columns; apply various strategies to\n choose the consensus amino acid type for the remaining columns.\n\n Parameters\n ----------\n\n simple : bool\n If True, use simple plurality to determine the consensus ...
81
false
etal/biofrills
consensus
20,759
LDU_FT/fedora-infra/fmn.lib/create_defaults_for
LDU_FT
[ "<BEGIN>\n## `recipients`", "The main API function.", " Accepts a fedmsg message as an argument.", " Returns a dict mapping context names to lists of recipients.\n<END>", "<BEGIN>\n## `matches`", "Returns True if the given filter matches the given message.\n<END>", "<BEGIN>\n## `load_preferences`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_defaults_for 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 create_defaults_for 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...
Create a sizable amount of defaults for a new user.
"Create a sizable amount of defaults for a new user."
25
false
fedora-infra/fmn.lib
create_defaults_for
20,760
LDU_FT/adamchainz/django-mysql/default_reverse_key_func
LDU_FT
[ "<BEGIN>\n## `settings_to_cmd_args`", "Copied from django 1.8 MySQL backend DatabaseClient - where the runshell\n commandline creation has been extracted and made callable like so.\n<END>", "<BEGIN>\n## `pt_fingerprint`", "Takes a query (in a string) and returns its 'fingerprint'\n<END>", "<BEGIN>\n## `i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_reverse_key_func 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 default_reverse_key_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Reverse of Django's default_key_func, i.e. undoing: def default_key_func(key, key_prefix, version): return '%s:%s:%s' % (key_prefix, version, key)
"Reverse of Django's default_key_func, i.e. undoing:\n\n def default_key_func(key, key_prefix, version):\n return '%s:%s:%s' % (key_prefix, version, key)"
33
false
adamchainz/django-mysql
default_reverse_key_func
20,761
LDU_FT/mikicz/arca/check_docker_access
LDU_FT
[ "<BEGIN>\n## `get_or_create_environment`", "Returns the path to the current Python executable.\n<END>", "<BEGIN>\n## `validate_configuration`", "Validates the provided settings.", " * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_docker_access API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_docker_access 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...
Creates a :class:`DockerClient <docker.client.DockerClient>` for the instance and checks the connection. :raise BuildError: If docker isn't accessible by the current user.
"Creates a :class:`DockerClient <docker.client.DockerClient>` for the instance and checks the connection.\n\n :raise BuildError: If docker isn't accessible by the current user."
196
false
mikicz/arca
check_docker_access
20,762
LDU_FT/sourceperl/pyModbusTCP/start
LDU_FT
[ "<BEGIN>\n## `start`", "Start the server.", " Do nothing if server is already running.\n This function will block if no_block is not set to True.\n<END>", "<BEGIN>\n## `stop`", "Stop the server.", " Do nothing if server is already not running.\n<END>", "<BEGIN>\n## `host`", "Get o...
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...
Start the server. Do nothing if server is already running. This function will block if no_block is not set to True.
"Start the server.\n\n Do nothing if server is already running.\n This function will block if no_block is not set to True."
96
false
sourceperl/pyModbusTCP
start
20,763
LDU_FT/tensorflow/datasets/_get_validation_labels
LDU_FT
[ "<BEGIN>\n## `_decode_image`", "Reads and decodes an image from a file object as a Numpy array.", " The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_validation_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_validation_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....
Returns labels for validation. Args: val_path: path to TAR file containing validation images. It is used to retrieve the name of pictures and associate them to labels. Returns: dict, mapping from image name (str) to label (str).
"Returns labels for validation.\n\n Args:\n val_path: path to TAR file containing validation images. It is used to\n retrieve the name of pictures and associate them to labels.\n\n Returns:\n dict, mapping from image name (str) to label (str)."
609
false
tensorflow/datasets
_get_validation_labels
20,764
LDU_FT/SciTools/biggus/ensure_array
LDU_FT
[ "<BEGIN>\n## `_groups_of_size`", "Collect data into fixed-length chunks or blocks.\n<END>", "<BEGIN>\n## `slice_repr`", "Turn things like `slice(None, 2, -1)` into `:2:-1`.\n<END>", "<BEGIN>\n## `biggus_chunk`", "A function that lazily evaluates a biggus.Chunk. This is useful for\n passing through ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_array API. 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 ensure_array API. 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...
Assert that the given array is an Array subclass (or numpy array). If the given array is a numpy.ndarray an appropriate NumpyArrayAdapter instance is created, otherwise the passed array must be a subclass of :class:`Array` else a TypeError will be raised.
"Assert that the given array is an Array subclass (or numpy array).\n\n If the given array is a numpy.ndarray an appropriate NumpyArrayAdapter\n instance is created, otherwise the passed array must be a subclass of\n :class:`Array` else a TypeError will be raised."
105
false
SciTools/biggus
ensure_array
20,765
LDU_FT/michael-lazar/rtv/comment_urlview
LDU_FT
[ "<BEGIN>\n## `refresh_content`", "Re-download all subscriptions and reset the page index\n<END>", "<BEGIN>\n## `select_subreddit`", "Store the selected subreddit and return to the subreddit page\n<END>", "<BEGIN>\n## `alias_function`", "Create a RedditContentObject function mapped to a BaseReddit function...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comment_urlview API. 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 comment_urlview API. 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...
Open the selected comment with the URL viewer
"Open the selected comment with the URL viewer"
919
false
michael-lazar/rtv
comment_urlview
20,766
LDU_FT/trevorstephens/gplearn/get_all_indices
LDU_FT
[ "<BEGIN>\n## `_parallel_evolve`", "Private function used to build a batch of programs within a job.\n<END>", "<BEGIN>\n## `_verbose_reporter`", "A report of the progress of the evolution process.", " Parameters\n ----------\n run_details : dict\n Information about the evoluti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_indices API. 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...
Get the indices on which to evaluate the fitness of a program. Parameters ---------- n_samples : int The number of samples. max_samples : int The maximum number of samples to use. random_state : RandomState instance The random number generat...
"Get the indices on which to evaluate the fitness of a program.\n\n Parameters\n ----------\n n_samples : int\n The number of samples.\n\n max_samples : int\n The maximum number of samples to use.\n\n random_state : RandomState instance\n The random nu...
103
false
trevorstephens/gplearn
get_all_indices
20,767
LDU_FT/halcy/Mastodon.py/poll_vote
LDU_FT
[ "<BEGIN>\n## `parse_version_string`", "Parses a semver version string, stripping off \"rc\" stuff if present.\n<END>", "<BEGIN>\n## `bigger_version`", "Returns the bigger version of two version strings.\n<END>", "<BEGIN>\n## `api_version`", "Version check decorator. Currently only checks Bigger Than.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poll_vote API. 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 poll_vote API. 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...
Vote in the given poll. `choices` is the index of the choice you wish to register a vote for (i.e. its index in the corresponding polls `options` field. In case of a poll that allows selection of more than one option, a list of indices can be passed. You can o...
"Vote in the given poll.\n \n `choices` is the index of the choice you wish to register a vote for \n (i.e. its index in the corresponding polls `options` field. In case \n of a poll that allows selection of more than one option, a list of\n indices can be passed.\n \n Y...
313
false
halcy/Mastodon.py
poll_vote
20,768
LDU_FT/renweizhukov/pytwis/get_user_tweets
LDU_FT
[ "<BEGIN>\n## `_is_loggedin`", "Check if a user is logged-in by verifying the input authentication secret.", " Parameters\n ----------\n auth_secret: str\n The authentication secret of a logged-in user.", " Returns\n -------\n bool\n True if the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_tweets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_tweets API. 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...
Get the tweets posted by one user. Parameters ---------- auth_secret: str The authentication secret of the logged-in user. username: The name of the user who post the tweets and may not be the logged-in user. max_cnt_tweets: int The maximum nu...
"Get the tweets posted by one user.\n\n Parameters\n ----------\n auth_secret: str\n The authentication secret of the logged-in user.\n username:\n The name of the user who post the tweets and may not be the logged-in user.\n max_cnt_tweets: int\n The ...
108
false
renweizhukov/pytwis
get_user_tweets
20,769
LDU_FT/alvinlindstam/grapheme/safe_split_index
LDU_FT
[ "<BEGIN>\n## `length`", "Returns the number of graphemes in the string.", " Note that this functions needs to traverse the full string to calculate the length,\n unlike `len(string)` and it's time consumption is linear to the length of the string\n (up to the `until` value).", " Only counts up to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_split_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_split_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. The ...
Returns the highest index up to `max_len` at which the given string can be sliced, without breaking a grapheme. This is useful for when you want to split or take a substring from a string, and don't really care about the exact grapheme length, but don't want to risk breaking existing graphemes. This funct...
"Returns the highest index up to `max_len` at which the given string can be sliced, without breaking a grapheme.\n\n This is useful for when you want to split or take a substring from a string, and don't really care about\n the exact grapheme length, but don't want to risk breaking existing graphemes.\n\n This...
28
false
alvinlindstam/grapheme
safe_split_index
20,770
LDU_FT/Jaymon/prom/connect
LDU_FT
[ "<BEGIN>\n## `fields`", "return all the fields and their raw values for this Orm instance. This\n property returns a dict with the field names and their current values", " if you want to control the values for outputting to an api, use .jsonable()\n<END>", "<BEGIN>\n## `create`", "create an in...
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 extracted...
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 extracted...
connect to the interface this will set the raw db connection to self.connection *args -- anything you want that will help the db connect **kwargs -- anything you want that the backend db connection will need to actually connect
"connect to the interface\n\n this will set the raw db connection to self.connection\n\n *args -- anything you want that will help the db connect\n **kwargs -- anything you want that the backend db connection will need to actually connect"
241
false
Jaymon/prom
connect
20,771
LDU_FT/toumorokoshi/transmute-core/create_routes_and_handler
LDU_FT
[ "<BEGIN>\n## `from_argspec`", "retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>", "<BEGIN>\n## `split_args`", "given a dictionary of arguments, split them into\n args and kwargs", " note: this destroys the arg_dict passed. if you need it,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_routes_and_handler 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 create_routes_and_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
return back a handler that is the api generated from the transmute_func, and a list of routes it should be mounted to.
"return back a handler that is the api generated\n from the transmute_func, and a list of routes\n it should be mounted to."
100
false
toumorokoshi/transmute-core
create_routes_and_handler
20,772