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/cathalgarvey/deadlock/get_ranked_census_names
LDU_FT
[ "<BEGIN>\n## `get_slanted_adjacent_coords`", "returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.\n adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below.\n (that is, only near-diagona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ranked_census_names 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_ranked_census_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
takes name lists from the the 2000 us census, prepares as a json array in order of frequency (most common names first). more info: http://www.census.gov/genealogy/www/data/2000surnames/index.html files in data are downloaded copies of: http://www.census.gov/genealogy/names/dist.all.last http://www...
"takes name lists from the the 2000 us census, prepares as a json array in order of frequency (most common names first).\n\n more info:\n http://www.census.gov/genealogy/www/data/2000surnames/index.html\n\n files in data are downloaded copies of:\n http://www.census.gov/genealogy/names/dist.all.last\n ht...
73
false
cathalgarvey/deadlock
get_ranked_census_names
10,873
LDU_FT/binbrain/OpenSesame/best_guess
LDU_FT
[ "<BEGIN>\n## `_instant_search`", "Determine possible keys after a push or pop\n<END>", "<BEGIN>\n## `best_guess`", "Return the gnomekeyring position of the closest matching\n<END>", "<BEGIN>\n## `first_time_setup`", "First time running Open Sesame? ", " Create keyring and an auto-unlock key in de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_guess API. 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 best_guess API. 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 the gnomekeyring position of the closest matching
"Return the gnomekeyring position of the closest matching"
17
false
binbrain/OpenSesame
best_guess
10,874
LDU_FT/selik/xport/ibm_to_ieee
LDU_FT
[ "<BEGIN>\n## `ibm_to_ieee`", "Translate IBM-format floating point numbers (as bytes) to IEEE 754\n 64-bit floating point format (as Python float).\n<END>", "<BEGIN>\n## `ieee_to_ibm`", "Translate Python floating point numbers to IBM-format (as bytes).\n<END>", "<BEGIN>\n## `dumps`", "Serialize ``column...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ibm_to_ieee API. 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 ibm_to_ieee API. 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...
Translate IBM-format floating point numbers (as bytes) to IEEE 754 64-bit floating point format (as Python float).
"Translate IBM-format floating point numbers (as bytes) to IEEE 754\n 64-bit floating point format (as Python float)."
16
false
selik/xport
ibm_to_ieee
10,875
LDU_FT/Nic30/hwtGraph/iterEdges
LDU_FT
[ "<BEGIN>\n## `extractSplits`", "convert group of indexed assignments witch are splitting signal to Split node", " a = sig[0]\n b = sig[1]\n to\n a, b = sig", " :param toL: dictionary {hdl object: layout object}\n<END>", "<BEGIN>\n## `getPortSideView`", "Returns a sublist view for all ports ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterEdges API. 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 iterEdges API. 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...
Iter edges connected from outside of this unit
"Iter edges connected from outside of this unit"
65
false
Nic30/hwtGraph
iterEdges
10,876
LDU_FT/enkore/i3pystatus/get_module
LDU_FT
[ "<BEGIN>\n## `init`", "Creates context, when context is ready context_notify_cb is called\n<END>", "<BEGIN>\n## `request_update`", "Requests a sink info update (sink_info_cb is called)\n<END>", "<BEGIN>\n## `server_info_cb`", "Retrieves the default sink and calls request_update\n<END>", "<BEGIN>\n## `co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Function decorator for retrieving the ``self`` argument from the stack. Intended for use with callbacks that need access to a modules variables, for example: .. code:: python from i3pystatus import Status, get_module from i3pystatus.core.command import execute status = Status(...) ...
"Function decorator for retrieving the ``self`` argument from the stack.\n\n Intended for use with callbacks that need access to a modules variables, for example:\n\n .. code:: python\n\n from i3pystatus import Status, get_module\n from i3pystatus.core.command import execute\n status = Status...
181
false
enkore/i3pystatus
get_module
10,877
LDU_FT/MycroftAI/mycroft-precise/inject_params
LDU_FT
[ "<BEGIN>\n## `load_precise_model`", "Loads a Keras model from file, handling custom loss function\n<END>", "<BEGIN>\n## `create_model`", "Load or create a precise model", " Args:\n model_name: Name of model\n params: Parameters used to create the model", " Returns:\n model: Load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_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 ext...
Set the global listener params to a saved model
"Set the global listener params to a saved model"
79
false
MycroftAI/mycroft-precise
inject_params
10,878
LDU_FT/MaxHalford/prince/row_standard_coordinates
LDU_FT
[ "<BEGIN>\n## `row_contributions`", "Returns the row contributions towards each principal component.\n<END>", "<BEGIN>\n## `partial_row_coordinates`", "Returns the row coordinates for each group.\n<END>", "<BEGIN>\n## `transform`", "Computes the row principal coordinates of a dataset.", " Same as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_standard_coordinates 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 row_standard_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns the row standard coordinates. The row standard coordinates are obtained by dividing each row principal coordinate by it's associated eigenvalue.
"Returns the row standard coordinates.\n\n The row standard coordinates are obtained by dividing each row principal coordinate by it's\n associated eigenvalue."
36
false
MaxHalford/prince
row_standard_coordinates
10,879
LDU_FT/feliperyan/EinsteinVisionPython/get_model_info
LDU_FT
[ "<BEGIN>\n## `get_token`", "Acquires a token for futher API calls, unless you already have a token this will be the first thing\n you do before you use this.\n :param email: string, the username for your EinsteinVision service, usually in email form\n :para pem_file: string, file ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Gets information about a specific previously trained model, ie: stats and accuracy :param model_id: string, model_id previously supplied by the API returns: requests object
"Gets information about a specific previously trained model, ie: stats and accuracy\n :param model_id: string, model_id previously supplied by the API\n returns: requests object"
34
false
feliperyan/EinsteinVisionPython
get_model_info
10,880
LDU_FT/asmodehn/filefinder2/find_module
LDU_FT
[ "<BEGIN>\n## `strip_encoding_cookie`", "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>", "<BEGIN>\n## `source_to_unicode`", "Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_module API. 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_module API. 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...
find the module on sys.path or 'path' based on sys.path_hooks and sys.path_importer_cache. This method is for python2 only
"find the module on sys.path or 'path' based on sys.path_hooks and\n sys.path_importer_cache.\n This method is for python2 only"
64
false
asmodehn/filefinder2
find_module
10,881
LDU_FT/ibm-watson-data-lab/ibmseti/moment
LDU_FT
[ "<BEGIN>\n## `header`", "This returns the first header in the data file\n<END>", "<BEGIN>\n## `headers`", "This returns all headers in the data file. There should be one for each\n half_frame in the file (typically 129).\n<END>", "<BEGIN>\n## `_packed_data`", "Returns the bit-packed data extracted from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moment API. 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 moment API. 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 ...
Uses the scipy.stats.moment to calculate the Nth central moment about the mean. If `arr` is a 2D spectrogram returned by ibmseti.dsp.raw_to_spectrogram(data), where each row of the `arr` is a power spectrum at a particular time, this function, then the Nth moment along each axis will be computed. If axi...
"Uses the scipy.stats.moment to calculate the Nth central\n moment about the mean.\n\n If `arr` is a 2D spectrogram returned by\n ibmseti.dsp.raw_to_spectrogram(data), where each row\n of the `arr` is a power spectrum at a particular time,\n this function, then the Nth moment along each axis\n will be computed.\n...
138
false
ibm-watson-data-lab/ibmseti
moment
10,882
LDU_FT/sdispater/orator/with_timestamps
LDU_FT
[ "<BEGIN>\n## `construct`", "Create a new factory container.", " :param faker: A faker generator instance\n :type faker: faker.Generator", " :param path_to_factories: The path to factories\n :type path_to_factories: str", " :rtype: Factory\n<END>", "<BEGIN>\n## `define`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_timestamps API. 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 with_timestamps API. 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...
Specify that the pivot table has creation and update columns.
"Specify that the pivot table has creation and update columns."
1,212
true
sdispater/orator
with_timestamps
10,883
LDU_FT/hwmrocker/smtplibaio/_auth_plain
LDU_FT
[ "<BEGIN>\n## `read_reply`", "Reads a reply from the server.", " Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auth_plain API. 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 _auth_plain API. 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...
Performs an authentication attempt using the PLAIN mechanism. Protocol: 1. Format the username and password in a suitable way ; 2. The formatted string is base64-encoded ; 3. The string 'AUTH PLAIN' and a space character are prepended to the base64-encoded us...
"Performs an authentication attempt using the PLAIN mechanism.\n\n Protocol:\n\n 1. Format the username and password in a suitable way ;\n 2. The formatted string is base64-encoded ;\n 3. The string 'AUTH PLAIN' and a space character are prepended to\n the base64-en...
140
false
hwmrocker/smtplibaio
_auth_plain
10,884
LDU_FT/jtwhite79/pyemu/get_par_group_contribution
LDU_FT
[ "<BEGIN>\n## `_calc_delta`", "calc the scaled ensemble differences from the mean\n<END>", "<BEGIN>\n## `_calc_obs_local`", "propagate the ensemble forward using sweep.\n<END>", "<BEGIN>\n## `save_coo`", "write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_par_group_contribution 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 get_par_group_contribution API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
get the forecast uncertainty contribution from each parameter group. Just some sugar for get_contribution_dataframe() - this method automatically constructs the parlist_dict argument where the keys are the group names and the values are the adjustable parameters in the groups Parameter...
"get the forecast uncertainty contribution from each parameter\n group. Just some sugar for get_contribution_dataframe() - this method\n automatically constructs the parlist_dict argument where the keys are the\n group names and the values are the adjustable parameters in the groups\n\n Par...
1,496
true
jtwhite79/pyemu
get_par_group_contribution
10,885
LDU_FT/avalente/appmetrics/decimal_to_ratio
LDU_FT
[ "<BEGIN>\n## `notify`", "Increment or decrement the value, according to the given value's sign", " The value should be an integer, an attempt to cast it to integer will be made\n<END>", "<BEGIN>\n## `new_metric`", "Create a new metric of the given class.", " Raise DuplicateMetricError if the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decimal_to_ratio API. 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 decimal_to_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert Decimal d to exact integer ratio (numerator, denominator).
"Convert Decimal d to exact integer ratio (numerator, denominator)."
120
false
avalente/appmetrics
decimal_to_ratio
10,886
LDU_FT/jason-weirather/pythologist/build_segmentation_image
LDU_FT
[ "<BEGIN>\n## `get_valid_cell_indecies`", "Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>", "<BEGIN>\n## `prune_neighbors`", "If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_segmentation_image 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 build_segmentation_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Put together an image. Defined by a list of layers with RGBA colors Make the schema example | schema = [ | {'subset_logic':SL(phenotypes=['SOX10+']), | 'edge_color':(31, 31, 46,255), | 'watershed_steps':0, | 'fill_color':(51, 5...
"Put together an image. Defined by a list of layers with RGBA colors\n\n Make the schema example\n \n | schema = [\n | {'subset_logic':SL(phenotypes=['SOX10+']),\n | 'edge_color':(31, 31, 46,255),\n | 'watershed_steps':0,\n | 'fill_colo...
98
false
jason-weirather/pythologist
build_segmentation_image
10,887
LDU_FT/ondryaso/pi-rc522/select_tag
LDU_FT
[ "<BEGIN>\n## `request`", "Requests for tag.\n Returns (False, None) if no tag is present, otherwise returns (True, tag type)\n<END>", "<BEGIN>\n## `anticoll`", "Anti-collision detection.\n Returns tuple of (error state, tag ID).\n<END>", "<BEGIN>\n## `select_tag`", "Selects tag for further u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Selects tag for further usage. uid -- list or tuple with four bytes tag ID Returns error state.
"Selects tag for further usage.\n uid -- list or tuple with four bytes tag ID\n Returns error state."
28
false
ondryaso/pi-rc522
select_tag
10,888
LDU_FT/uber-common/opentracing-python-instrumentation/singleton
LDU_FT
[ "<BEGIN>\n## `install_all_patches`", "A convenience method that installs all available hooks.", " If a specific module is not available on the path, it is ignored.\n<END>", "<BEGIN>\n## `install_patches`", "Usually called from middleware to install client hooks\n specified in the client_hooks section ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the singleton API. 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 singleton API. 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...
This decorator allows you to make sure that a function is called once and only once. Note that recursive functions will still work. WARNING: Not thread-safe!!!
"This decorator allows you to make sure that a function is called once and\n only once. Note that recursive functions will still work.\n\n WARNING: Not thread-safe!!!"
74
false
uber-common/opentracing-python-instrumentation
singleton
10,889
LDU_FT/hydroshare/hs_restclient/unzip
LDU_FT
[ "<BEGIN>\n## `custom`", ":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>", "<BEGIN>\n## `get`", ":param payload:\r\n a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unzip API. 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 unzip API. 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...
Unzips a file :param payload: zip_with_rel_path: string remove_original_zip: boolean :return: (object) unzipped_path: string
"Unzips a file\r\n\r\n :param payload:\r\n zip_with_rel_path: string\r\n remove_original_zip: boolean\r\n :return: (object)\r\n unzipped_path: string"
95
false
hydroshare/hs_restclient
unzip
10,890
LDU_FT/praekeltfoundation/molo/upload_file
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Upload a Zip File Containing a single file containing media.
"Upload a Zip File Containing a single file containing media."
101
false
praekeltfoundation/molo
upload_file
10,891
LDU_FT/CybOXProject/mixbox/to_obj
LDU_FT
[ "<BEGIN>\n## `__make_id`", "Generate an identifier for a callable signal receiver.", " This is used when disconnecting receivers, where we need to correctly\n establish equivalence between the input receiver and the receivers assigned\n to a signal.", " Args:\n receiver: A callable object."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_obj API. 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 ...
Convert to a GenerateDS binding object. Subclasses can override this function. Returns: An instance of this Entity's ``_binding_class`` with properties set from this Entity.
"Convert to a GenerateDS binding object.\n\n Subclasses can override this function.\n\n Returns:\n An instance of this Entity's ``_binding_class`` with properties\n set from this Entity."
249
false
CybOXProject/mixbox
to_obj
10,892
LDU_FT/miquelo/resort/insert
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Add Vagrant box to the calling user. :param resort.engine.execution.Context context: Current execution context.
"Add Vagrant box to the calling user.\n\t\t\n\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context."
125
false
miquelo/resort
insert
10,893
LDU_FT/daler/metaseq/split_feature
LDU_FT
[ "<BEGIN>\n## `requirements_check`", "Ensure we have programs needed to download/manipulate the data\n<END>", "<BEGIN>\n## `_up_to_date`", "Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>", "<BEGIN>\n## `logged_command`", "helper function to log a command and then run it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Split an interval into `n` roughly equal portions
"Split an interval into `n` roughly equal portions"
400
false
daler/metaseq
split_feature
10,894
LDU_FT/tjvr/kurt/convert
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Convert the project in-place to a different file format. Returns a list of :class:`UnsupportedFeature` objects, which may give warnings about the conversion. :param format: :attr:`KurtFileFormat.name` eg. ``"scratch14"``. :raises: :class:`ValueError` if the format doesn't exist.
"Convert the project in-place to a different file format.\n\n Returns a list of :class:`UnsupportedFeature` objects, which may give\n warnings about the conversion.\n\n :param format: :attr:`KurtFileFormat.name` eg. ``\"scratch14\"``.\n\n :raises: :class:`ValueError` if the format doesn't ex...
171
false
tjvr/kurt
convert
10,895
LDU_FT/BoGoEngine/bogo-python/add_accent
LDU_FT
[ "<BEGIN>\n## `append_comps`", "Append a character to `comps` following this rule: a vowel is added to the\n vowel part if there is no last consonant, else to the last consonant part;\n a consonant is added to the first consonant part if there is no vowel, and\n to the last consonant part if the vowel par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_accent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_accent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add accent to the given components. The parameter components is the result of function separate()
"Add accent to the given components. The parameter components is\n the result of function separate()"
55
false
BoGoEngine/bogo-python
add_accent
10,896
LDU_FT/koszullab/metaTOR/trim_sparse
LDU_FT
[ "<BEGIN>\n## `download_and_install_dependencies`", "Setup URLS and download dependencies for Python 3.6+\n<END>", "<BEGIN>\n## `main`", "This module just acts as an entry point to the bulk of the pipeline.\n All argument parsing is delegated to metator.sh\n<END>", "<BEGIN>\n## `rename_genome`", "Rename...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim_sparse API. 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 trim_sparse API. 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...
Apply the trimming procedure to a sparse matrix.
"Apply the trimming procedure to a sparse matrix."
180
false
koszullab/metaTOR
trim_sparse
10,897
LDU_FT/bjmorgan/lattice_mc/set_site_energies
LDU_FT
[ "<BEGIN>\n## `collective_dr_squared`", "Squared sum of total displacements for these atoms.", " Args:\n None", " Returns:\n (Float): The square of the summed total displacements for these atoms.\n<END>", "<BEGIN>\n## `occupations`", "Number of these atoms occupying a sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_site_energies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_site_energies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set the energies for every site in the lattice according to the site labels. Args: energies (Dict(Str:Float): Dictionary of energies for each site label, e.g.:: { 'A' : 1.0, 'B', 0.0 } Returns: None
"Set the energies for every site in the lattice according to the site labels.\n\n Args:\n energies (Dict(Str:Float): Dictionary of energies for each site label, e.g.::\n\n { 'A' : 1.0, 'B', 0.0 }\n\n Returns:\n None"
213
false
bjmorgan/lattice_mc
set_site_energies
10,898
LDU_FT/major/supernova/is_valid_group
LDU_FT
[ "<BEGIN>\n## `get_user_password`", "Allows the user to print the credential for a particular keyring entry\n to the screen\n<END>", "<BEGIN>\n## `pull_env_credential`", "Dissects a keyring credential lookup string from the supernova config file\n and returns the username/password combo\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_group API. 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_valid_group API. 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...
Checks to see if the configuration file contains a SUPERNOVA_GROUP configuration option.
"Checks to see if the configuration file contains a SUPERNOVA_GROUP\n configuration option."
66
false
major/supernova
is_valid_group
10,899
LDU_FT/bulkan/robotframework-requests/create_ntlm_session
LDU_FT
[ "<BEGIN>\n## `_create_session`", "Create Session: create a HTTP session to a server", " ``url`` Base url of the server", " ``alias`` Robot Framework alias to identify the session", " ``headers`` Dictionary of default headers", " ``cookies`` Dictionary of cookies", " ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ntlm_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ntlm_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Create Session: create a HTTP session to a server ``url`` Base url of the server ``alias`` Robot Framework alias to identify the session ``headers`` Dictionary of default headers ``cookies`` Dictionary of cookies ``auth`` ['DOMAIN', 'username', 'password'] for NTLM Authentic...
"Create Session: create a HTTP session to a server\n\n ``url`` Base url of the server\n\n ``alias`` Robot Framework alias to identify the session\n\n ``headers`` Dictionary of default headers\n\n ``cookies`` Dictionary of cookies\n\n ``auth`` ['DOMAIN', 'username', 'password'] for NTL...
151
false
bulkan/robotframework-requests
create_ntlm_session
10,900
LDU_FT/LabKey/labkey-api-python/save_batch
LDU_FT
[ "<BEGIN>\n## `create`", "Create a domain\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param domain_definition: A domain definition.\n :param container_path: labkey container path if not already set in context\n :return: Domain\n<END>", "<BEGIN>\n## `drop`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_batch API. 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 save_batch API. 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...
Saves a modified batch. :param server_context: A LabKey server context. See utils.create_server_context. :param assay_id: The assay protocol id. :param batch: The Batch to save. :return:
"Saves a modified batch.\n :param server_context: A LabKey server context. See utils.create_server_context.\n :param assay_id: The assay protocol id.\n :param batch: The Batch to save.\n :return:"
60
false
LabKey/labkey-api-python
save_batch
10,901
LDU_FT/aguinane/nem-reader/update_reading_events
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "takes a list of lists, l and returns a flat list\n<END>", "<BEGIN>\n## `read_nem_file`", "Read in NEM file and return meter readings named tuple", " :param file_path: The NEM file to process\n :returns: The file that was created\n<END>", "<BEGIN>\n## `parse_nem_file`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_reading_events 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 update_reading_events API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Updates readings from a 300 row to reflect any events found in a subsequent 400 row
"Updates readings from a 300 row to reflect any events found in a\n subsequent 400 row"
24
false
aguinane/nem-reader
update_reading_events
10,902
LDU_FT/common-workflow-language/cwltool/_compare_records
LDU_FT
[ "<BEGIN>\n## `add_volumes`", "Append volume mappings to the runtime option list.\n<END>", "<BEGIN>\n## `docker_monitor`", "Record memory usage of the running Docker container.\n<END>", "<BEGIN>\n## `adjustFiles`", "Apply a mapping function to each File path in the object `rec`.\n<END>", "<BEGIN>\n## `ch...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compare_records API. 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 _compare_records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Compare two records, ensuring they have compatible fields. This handles normalizing record names, which will be relative to workflow step, so that they can be compared.
"Compare two records, ensuring they have compatible fields.\n\n This handles normalizing record names, which will be relative to workflow\n step, so that they can be compared."
161
false
common-workflow-language/cwltool
_compare_records
10,903
LDU_FT/JnyJny/Geometry/circumcenter
LDU_FT
[ "<BEGIN>\n## `nearly_eq`", "implementation based on:", " http://floating-point-gui.de/errors/comparison/\n<END>", "<BEGIN>\n## `_convert`", ":other: Point or point equivalent\n :ignorescalars: optional boolean\n :return: Point", " Class private method for converting 'other' into a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circumcenter API. 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 circumcenter API. 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...
The intersection of the median perpendicular bisectors, Point. The center of the circumscribed circle, which is the circle that passes through all vertices of the triangle. https://en.wikipedia.org/wiki/Circumscribed_circle#Cartesian_coordinates_2 BUG: only finds the circumcenter in t...
"The intersection of the median perpendicular bisectors, Point.\n\n The center of the circumscribed circle, which is the circle that\n passes through all vertices of the triangle.\n\n https://en.wikipedia.org/wiki/Circumscribed_circle#Cartesian_coordinates_2\n\n BUG: only finds the circumcen...
184
false
JnyJny/Geometry
circumcenter
10,904
LDU_FT/textbook/atmdb/from_env
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 from_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a service instance from an environment variable.
"Create a service instance from an environment variable."
70
false
textbook/atmdb
from_env
10,905
LDU_FT/bionikspoon/pureyaml/_lt_from_ge
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 _lt_from_ge API. 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 _lt_from_ge API. 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 < b. Computed by @total_ordering from (not a >= b).
"Return a < b. Computed by @total_ordering from (not a >= b)."
70
false
bionikspoon/pureyaml
_lt_from_ge
10,906
LDU_FT/phn/lineid_plot/plot_line_ids
LDU_FT
[ "<BEGIN>\n## `color_text_boxes`", "Color text boxes.", " Instead of this function, one can pass annotate_kwargs and plot_kwargs to\n plot_line_ids function.\n<END>", "<BEGIN>\n## `color_lines`", "Color lines.", " Instead of this function, one can pass annotate_kwargs and plot_kwargs to\n plot_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_line_ids API. 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 plot_line_ids API. 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...
Label features with automatic layout of labels. Parameters ---------- wave: list or array of floats Wave lengths of data. flux: list or array of floats Flux at each wavelength. line_wave: list or array of floats Wave length of features to be labelled. line_label1: list o...
"Label features with automatic layout of labels.\n\n Parameters\n ----------\n wave: list or array of floats\n Wave lengths of data.\n flux: list or array of floats\n Flux at each wavelength.\n line_wave: list or array of floats\n Wave length of features to be labelled.\n line_lab...
44
false
phn/lineid_plot
plot_line_ids
10,907
LDU_FT/cloudbase/python-hnvclient/process_raw_data
LDU_FT
[ "<BEGIN>\n## `register`", "Register the current options to the global ConfigOpts object.\n<END>", "<BEGIN>\n## `get_options`", "Collect all the options info from the other modules.\n<END>", "<BEGIN>\n## `run_once`", "A memoization decorator, whose purpose is to cache calls.\n<END>", "<BEGIN>\n## `get_cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw_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 ...
Create a new model using raw API response.
"Create a new model using raw API response."
89
false
cloudbase/python-hnvclient
process_raw_data
10,908
LDU_FT/Varkal/chuda/run
LDU_FT
[ "<BEGIN>\n## `enrich_app`", "Add a new property to the app (with setattr)", " Args:\n name (str): the name of the new property\n value (any): the value of the new property\n<END>", "<BEGIN>\n## `autorun`", "Call the run method of the decorated class if the current file is the ma...
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...
Run the shell command Returns: ShellCommand: return this ShellCommand instance for chaining
"Run the shell command\n\n Returns:\n ShellCommand: return this ShellCommand instance for chaining"
44
false
Varkal/chuda
run
10,909
LDU_FT/ambitioninc/django-query-builder/update_table
LDU_FT
[ "<BEGIN>\n## `get_sql`", "Generates the JOIN sql for the join tables and join condition", " :rtype: str\n :return: the JOIN sql for the join tables and join condition\n<END>", "<BEGIN>\n## `set_left_table`", "Sets the left table for this join clause. If no table is specified, the first table\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Bulk updates rows in a table :type table: str or dict or :class:`Table <querybuilder.tables.Table>` or :class:`Query <querybuilder.query.Query>` or :class:`ModelBase <django:django.db.models.base.ModelBase>` :param table: The table to select fields from. This can be a string of the table ...
"Bulk updates rows in a table\n\n :type table: str or dict or :class:`Table <querybuilder.tables.Table>`\n or :class:`Query <querybuilder.query.Query>` or :class:`ModelBase <django:django.db.models.base.ModelBase>`\n :param table: The table to select fields from. This can be a string of the tab...
251
false
ambitioninc/django-query-builder
update_table
10,910
LDU_FT/davebridges/mousedb/date_archive_year
LDU_FT
[ "<BEGIN>\n## `age`", "Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>", "<BEGIN>\n## `breeding_male_location_type`", "This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.", " This attri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_archive_year API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the date_archive_year API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This view will generate a table of the number of mice born on an annual basis. This view is associated with the url name archive-home, and returns an dictionary of a date and a animal count.
"This view will generate a table of the number of mice born on an annual basis.\n \n This view is associated with the url name archive-home, and returns an dictionary of a date and a animal count."
128
false
davebridges/mousedb
date_archive_year
10,911
LDU_FT/SuperCowPowers/chains/tls_meta_data
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tls_meta_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tls_meta_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 ext...
Pull out the TLS metadata for each flow in the input_stream
"Pull out the TLS metadata for each flow in the input_stream"
41
false
SuperCowPowers/chains
tls_meta_data
10,912
LDU_FT/ckan/ckan-service-provider/_validate_error
LDU_FT
[ "<BEGIN>\n## `init`", "Initialise and configure the app, database, scheduler, etc.", " This should be called once at application startup or at tests startup\n (and not e.g. called once for each test case).\n<END>", "<BEGIN>\n## `_init_login_manager`", "Initialise and configure the login manager.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Validate and return the given error object. Based on the given error object, return either None or a dict with a "message" key whose value is a string (the dict may also have any other keys that it wants). The given "error" object can be: - None, in which case None is returned - A string, in...
"Validate and return the given error object.\n\n Based on the given error object, return either None or a dict with a\n \"message\" key whose value is a string (the dict may also have any other\n keys that it wants).\n\n The given \"error\" object can be:\n\n - None, in which case None is returned\n\n ...
117
false
ckan/ckan-service-provider
_validate_error
10,913
LDU_FT/globality-corp/microcosm-postgres/patch_script_directory
LDU_FT
[ "<BEGIN>\n## `create_temporary_table`", "Create a new temporary table from another table.\n<END>", "<BEGIN>\n## `get_current_head`", "Get the current database head revision, if any.\n<END>", "<BEGIN>\n## `flushing`", "Flush the current session, handling common errors.\n<END>", "<BEGIN>\n## `retrieve`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_script_directory 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 patch_script_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Monkey patch the `ScriptDirectory` class, working around configuration assumptions. Changes include: - Using a generated, temporary directory (with a generated, temporary `script.py.mako`) instead of the assumed script directory. - Using our `make_script_directory` function instead of the defau...
"Monkey patch the `ScriptDirectory` class, working around configuration assumptions.\n\n Changes include:\n - Using a generated, temporary directory (with a generated, temporary `script.py.mako`)\n instead of the assumed script directory.\n - Using our `make_script_directory` function instead of the...
110
false
globality-corp/microcosm-postgres
patch_script_directory
10,914
LDU_FT/HewlettPackard/python-hpOneView/storage_pools
LDU_FT
[ "<BEGIN>\n## `get_visual_content`", "Gets a list of visual content objects describing each rack within the data center. The response aggregates data\n center and rack data with a specified metric (peak24HourTemp) to provide simplified access to display data for\n the data center.", " Args:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage_pools API. 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 storage_pools API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Gets the StoragePools API client. Returns: StoragePools:
"Gets the StoragePools API client.\n\n Returns:\n StoragePools:"
1,297
true
HewlettPackard/python-hpOneView
storage_pools
10,915
LDU_FT/GiulioRossetti/ndlib/iteration
LDU_FT
[ "<BEGIN>\n## `set_initial_status`", "Override behaviour of methods in class DiffusionModel.\n Overwrites initial status using random real values.\n Generates random node profiles.\n<END>", "<BEGIN>\n## `iteration`", "Execute a single model iteration", " :return: Iteration_id, Incrementa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteration API. 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 iteration API. 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...
Execute a single model iteration :return: Iteration_id, Incremental node status (dictionary node->status)
"Execute a single model iteration\n\n :return: Iteration_id, Incremental node status (dictionary node->status)"
56
false
GiulioRossetti/ndlib
iteration
10,916
LDU_FT/paramono/duration/to_tuple
LDU_FT
[ "<BEGIN>\n## `safe_int`", "Tries to convert a value to int; returns 0 if conversion failed\n<END>", "<BEGIN>\n## `_parse`", "Preliminary duration value parser", " strict=True (by default) raises StrictnessError if either hours,\n minutes or seconds in duration value exceed allowed values\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_tuple API. 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 to_tuple API. 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...
converts duration value to tuple of integers strict=True (by default) raises StrictnessError if either hours, minutes or seconds in duration value exceed allowed values
"converts duration value to tuple of integers\n\n strict=True (by default) raises StrictnessError if either hours,\n minutes or seconds in duration value exceed allowed values"
17
false
paramono/duration
to_tuple
10,917
LDU_FT/mcs07/PubChemPy/to_dict
LDU_FT
[ "<BEGIN>\n## `request`", "Construct API request from parameters and return the response.", " Full specification at http://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html\n<END>", "<BEGIN>\n## `get`", "Request wrapper that automatically handles async requests.\n<END>", "<BEGIN>\n## `get_json`", "Reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a dictionary containing Atom data.
"Return a dictionary containing Atom data."
83
false
mcs07/PubChemPy
to_dict
10,918
LDU_FT/IBMStreams/pypi.streamsx/sink
LDU_FT
[ "<BEGIN>\n## `get_application_configuration`", "Get a named application configuration.", " An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.", " An application configuration object is used to store information tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sink API. 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 sink API. 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...
Creates an SPL operator with a single input port. A SPL operator with a single input port and no output ports. For each tuple on the input port the decorated function is called passing the contents of the tuple. .. deprecated:: 1.8 Recommended to use :py:class:`@spl.for_each <for_each>` instea...
"Creates an SPL operator with a single input port.\n\n A SPL operator with a single input port and no output ports.\n For each tuple on the input port the decorated function\n is called passing the contents of the tuple.\n\n .. deprecated:: 1.8\n Recommended to use :py:class:`@spl.for_each <for_each>...
651
false
IBMStreams/pypi.streamsx
sink
10,919
LDU_FT/google/pyringe/Reinit
LDU_FT
[ "<BEGIN>\n## `StartExecServer`", "Opens a socket in /tmp, execs data from it and writes results back.\n<END>", "<BEGIN>\n## `ThreadsWithRunningExecServers`", "Returns a list of tids of inferior threads with open exec servers.\n<END>", "<BEGIN>\n## `Backtrace`", "Get a backtrace of the current position.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Reinit API. 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 Reinit API. 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 ...
Reinitializes the object with a new pid. Since all modes might need access to this object at any time, this object needs to be long-lived. To make this clear in the API, this shorthand is supplied. Args: pid: the pid of the target process auto_symfile_loading: whether the symbol file should...
"Reinitializes the object with a new pid.\n\n Since all modes might need access to this object at any time, this object\n needs to be long-lived. To make this clear in the API, this shorthand is\n supplied.\n Args:\n pid: the pid of the target process\n auto_symfile_loading: whether the symbol fil...
142
false
google/pyringe
Reinit
10,920
LDU_FT/lpantano/seqcluster/Shift
LDU_FT
[ "<BEGIN>\n## `add_exp`", "Function to add the counts for each sample", " :param gr: name of the sample\n :param exp: counts of sample **gr**", " :returns: dict with key,values equally to name,counts.\n<END>", "<BEGIN>\n## `MakeJoint`", "Joint distribution of values from pmf1 and pmf2....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Shift API. 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 Shift API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Adds a term to the xs. term: how much to add
"Adds a term to the xs.\n\n term: how much to add"
491
false
lpantano/seqcluster
Shift
10,921
LDU_FT/refnode/liquid/getch
LDU_FT
[ "<BEGIN>\n## `text_coords`", "r\"\"\"\n Transform a simple index into a human-readable position in a string.", " This function accepts a string and an index, and will return a triple of\n `(lineno, columnno, line)` representing the position through the text. It's\n useful for displaying a string ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getch API. 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 getch API. 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...
Get a single character and advance the scan pointer. >>> s = Scanner("abc") >>> s.getch() 'a' >>> s.getch() 'b' >>> s.getch() 'c' >>> s.pos 3
"Get a single character and advance the scan pointer.\n\n >>> s = Scanner(\"abc\")\n >>> s.getch()\n 'a'\n >>> s.getch()\n 'b'\n >>> s.getch()\n 'c'\n >>> s.pos\n 3"
54
false
refnode/liquid
getch
10,922
LDU_FT/jantman/awslimitchecker/_update_usage_for_alb
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_usage_for_alb 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 _update_usage_for_alb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Update usage for a single ALB. :param conn: elbv2 API connection :type conn: :py:class:`ElasticLoadBalancing.Client` :param alb_arn: Load Balancer ARN :type alb_arn: str :param alb_name: Load Balancer Name :type alb_name: str
"Update usage for a single ALB.\n\n :param conn: elbv2 API connection\n :type conn: :py:class:`ElasticLoadBalancing.Client`\n :param alb_arn: Load Balancer ARN\n :type alb_arn: str\n :param alb_name: Load Balancer Name\n :type alb_name: str"
372
false
jantman/awslimitchecker
_update_usage_for_alb
10,923
LDU_FT/hph/mov/play
LDU_FT
[ "<BEGIN>\n## `get_size`", "Return the size of path in bytes if it exists and can be determined.\n<END>", "<BEGIN>\n## `local_data`", "Return tuples of names, directories, total sizes and files. Each\n directory represents a single film and the files are the files contained\n in the directory, such...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play API. 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 play API. 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...
Open the matched movie with a media player.
"Open the matched movie with a media player."
12
false
hph/mov
play
10,924
LDU_FT/chrisspen/dtree/_read_header
LDU_FT
[ "<BEGIN>\n## `normalize`", "Scales each number in the sequence so that the sum of all numbers equals 1.\n<END>", "<BEGIN>\n## `normcdf`", "Describes the probability that a real-valued random variable X with a given\n probability distribution will be found at a value less than or equal to X\n in a normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_header API. 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...
When a CSV file is given, extracts header information the file. Otherwise, this header data must be explicitly given when the object is instantiated.
"When a CSV file is given, extracts header information the file.\n Otherwise, this header data must be explicitly given when the object\n is instantiated."
100
false
chrisspen/dtree
_read_header
10,925
LDU_FT/ECRL/ecabc/args
LDU_FT
[ "<BEGIN>\n## `add_argument`", "Add an additional argument to be passed to the fitness function\n via additional arguments dictionary; this argument/value is not tuned", " Args:\n arg_name (string): name/dictionary key of argument\n arg_value (any): dictionary value of argumen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Set additional arguments to be passed to the fitness function Args: args (dict): additional arguments
"Set additional arguments to be passed to the fitness function\n\n Args:\n args (dict): additional arguments"
67
false
ECRL/ecabc
args
10,926
LDU_FT/slightlynybbled/tk_tools/to_red
LDU_FT
[ "<BEGIN>\n## `to_absolute`", "Converts coordinates provided with reference to the center \\\n of the canvas (0, 0) to absolute coordinates which are used \\\n by the canvas object in which (0, 0) is located in the top \\\n left of the object.", " :param x: x value in pixels\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_red API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_red API. 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 ...
Change the LED to red (on or off) :param on: True or False :return: None
"Change the LED to red (on or off)\n :param on: True or False\n :return: None"
106
false
slightlynybbled/tk_tools
to_red
10,927
LDU_FT/raphaelm/python-fints/get_transactions_xml
LDU_FT
[ "<BEGIN>\n## `parse_message`", "Takes a FinTS 3.0 message as byte array, and returns a parsed segment sequence\n<END>", "<BEGIN>\n## `serialize_message`", "Serialize a message (as SegmentSequence, list of FinTS3Segment, or FinTS3Segment) into a byte array\n<END>", "<BEGIN>\n## `terminal_flicker_unix`", "R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.02 XML files. :param account: SEPA :param start_date: First day to fetch :param end_date: Last day to fetch :return: A list of bytestrings containing XML documents
"Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.02 XML files.\n\n :param account: SEPA\n :param start_date: First day to fetch\n :param end_date: Last day to fetch\n :return: A list of bytestrings containing XML documents"
79
false
raphaelm/python-fints
get_transactions_xml
10,928
LDU_FT/danbradham/scrim/get_scrim
LDU_FT
[ "<BEGIN>\n## `get_scrim`", "Get a :class:`Scrim` instance. Each instance is cached so if you call\n get_scrim again with the same arguments you get the same instance.", " See also:\n :class:`Scrim`\n<END>", "<BEGIN>\n## `_add`", "Appends a command to the scrims list of commands. You should not\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scrim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scrim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a :class:`Scrim` instance. Each instance is cached so if you call get_scrim again with the same arguments you get the same instance. See also: :class:`Scrim`
"Get a :class:`Scrim` instance. Each instance is cached so if you call\n get_scrim again with the same arguments you get the same instance.\n\n See also:\n :class:`Scrim`"
21
false
danbradham/scrim
get_scrim
10,929
LDU_FT/nschloe/orthopy/tree
LDU_FT
[ "<BEGIN>\n## `clenshaw`", "Clenshaw's algorithm for evaluating", " S(t) = \\\\sum a_k P_k(alpha, beta)(t)", " where P_k(alpha, beta) is the kth orthogonal polynomial defined by the\n recurrence coefficients alpha, beta.", " See <https://en.wikipedia.org/wiki/Clenshaw_algorithm> for details.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree API. 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 tree API. 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...
Evaluates the entire tree of orthogonal polynomials on the unit disk. The return value is a list of arrays, where `out[k]` hosts the `2*k+1` values of the `k`th level of the tree (0, 0) (0, 1) (1, 1) (0, 2) (1, 2) (2, 2) ... ... ...
"Evaluates the entire tree of orthogonal polynomials on the unit disk.\n\n The return value is a list of arrays, where `out[k]` hosts the `2*k+1`\n values of the `k`th level of the tree\n\n (0, 0)\n (0, 1) (1, 1)\n (0, 2) (1, 2) (2, 2)\n ... ... ..."
47
false
nschloe/orthopy
tree
10,930
LDU_FT/dvdotsenko/jsonrpc.py/clean_dict_keys
LDU_FT
[ "<BEGIN>\n## `clean_dict_keys`", "Convert all keys of the dict 'd' to (ascii-)strings.", " :Raises: UnicodeEncodeError\n<END>", "<BEGIN>\n## `json_dumps`", "A rewrap of json.dumps done for one reason - to inject a custom `cls` kwarg", " :param obj:\n :param kwargs:\n :return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_dict_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_dict_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Convert all keys of the dict 'd' to (ascii-)strings. :Raises: UnicodeEncodeError
"Convert all keys of the dict 'd' to (ascii-)strings.\n\n :Raises: UnicodeEncodeError"
58
false
dvdotsenko/jsonrpc.py
clean_dict_keys
10,931
LDU_FT/yolothreat/utilitybelt/is_rfc1918
LDU_FT
[ "<BEGIN>\n## `ip_between`", "Checks to see if IP is between start and finish\n<END>", "<BEGIN>\n## `is_rfc1918`", "Checks to see if an IP address is used for local communications within\n a private network as specified by RFC 1918\n<END>", "<BEGIN>\n## `is_reserved`", "Checks to see if an IP address is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_rfc1918 API. 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 is_rfc1918 API. 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...
Checks to see if an IP address is used for local communications within a private network as specified by RFC 1918
"Checks to see if an IP address is used for local communications within\n a private network as specified by RFC 1918"
25
false
yolothreat/utilitybelt
is_rfc1918
10,932
LDU_FT/googleapis/protoc-java-resource-names-plugin/p_bound_segments
LDU_FT
[ "<BEGIN>\n## `render`", "Renders a string from a path template using the provided bindings.", " Args:\n bindings (dict): A dictionary of var names to binding strings.", " Returns:\n str: The rendered instantiation of this path template.", " Raises:\n Val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_bound_segments API. 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 p_bound_segments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
bound_segments : bound_segment FORWARD_SLASH bound_segments | bound_segment
"bound_segments : bound_segment FORWARD_SLASH bound_segments\n | bound_segment"
19
false
googleapis/protoc-java-resource-names-plugin
p_bound_segments
10,933
LDU_FT/etcher-be/epab/list_branches
LDU_FT
[ "<BEGIN>\n## `cli`", "This is a tool that handles all the tasks to build a Python application", " This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>", "<BEGIN>\n## `sort`", "Runs iSort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_branches API. 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: branches names :rtype: list of str
":return: branches names\n :rtype: list of str"
133
false
etcher-be/epab
list_branches
10,934
LDU_FT/totalgood/twip/nonnull_fields
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nonnull_fields API. 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 nonnull_fields API. 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...
Generate `.values()` dict from a table record, removing non-informative values Noninformative values include: date < 1970 date > 2100 False None 0 0.0 '0' '0.0' '0.0000'
"Generate `.values()` dict from a table record, removing non-informative values\n\n Noninformative values include:\n date < 1970\n date > 2100\n False\n None\n 0\n 0.0\n '0'\n '0.0'\n '0.0000'"
144
false
totalgood/twip
nonnull_fields
10,935
LDU_FT/jtwhite79/pyemu/get_removed_obs_importance
LDU_FT
[ "<BEGIN>\n## `_calc_delta`", "calc the scaled ensemble differences from the mean\n<END>", "<BEGIN>\n## `_calc_obs_local`", "propagate the ensemble forward using sweep.\n<END>", "<BEGIN>\n## `save_coo`", "write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_removed_obs_importance 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 get_removed_obs_importance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
get a dataframe the posterior uncertainty as a result of losing some observations Parameters ---------- obslist_dict : dict dictionary of groups of observations that are to be treated as lost. key values become row labels in returned dataframe. If No...
"get a dataframe the posterior uncertainty\n as a result of losing some observations\n\n Parameters\n ----------\n obslist_dict : dict\n dictionary of groups of observations\n that are to be treated as lost. key values become\n row labels in returned datafra...
1,496
true
jtwhite79/pyemu
get_removed_obs_importance
10,936
LDU_FT/Kortemme-Lab/klab/problem_with_codon
LDU_FT
[ "<BEGIN>\n## `retrieve`", "Creates a PDBML object by using a cached copy of the files if they exists or by retrieving the files from the RCSB.\n<END>", "<BEGIN>\n## `parse_deprecation`", "Checks to see if the PDB file has been deprecated and, if so, what the new ID is.\n<END>", "<BEGIN>\n## `parse_atoms`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the problem_with_codon 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 problem_with_codon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return true if the given codon overlaps with a bad sequence.
"Return true if the given codon overlaps with a bad sequence."
725
false
Kortemme-Lab/klab
problem_with_codon
10,937
LDU_FT/espressif/esptool/endian_swap_words
LDU_FT
[ "<BEGIN>\n## `decrypt`", "Decrypt a block of cipher text using the AES block cipher.\n<END>", "<BEGIN>\n## `increment`", "Increment the counter (overflow rolls back to 0).\n<END>", "<BEGIN>\n## `summary`", "Print a human-readable summary of efuse contents\n<END>", "<BEGIN>\n## `write_efuses`", "Write ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the endian_swap_words API. 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 endian_swap_words API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Endian-swap each word in 'source' bitstring
"Endian-swap each word in 'source' bitstring"
199
false
espressif/esptool
endian_swap_words
10,938
LDU_FT/garenchan/policy/parse
LDU_FT
[ "<BEGIN>\n## `from_dict`", "Allow loading of rule data from a dictionary.\n<END>", "<BEGIN>\n## `_set_rules`", "Created a new Rules object based on the provided dict of rules.\n<END>", "<BEGIN>\n## `enforce`", "Checks authorization of a rule against the target and credentials.\n<END>", "<BEGIN>\n## `rea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parses policy to tree. Translate a policy written in the policy language into a tree of Check objects.
"Parses policy to tree.\n\n Translate a policy written in the policy language into a tree of\n Check objects."
35
false
garenchan/policy
parse
10,939
LDU_FT/honzamach/pynspect/jpath_parse_c
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jpath_parse_c API. 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 jpath_parse_c API. 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...
Caching variant of :py:func:`jpath_parse` function. Same arguments and return value. For performance reasons thee is no copying and all returned values are references to internal cache. Treat the returned values as read only, or suffer the consequences.
"Caching variant of :py:func:`jpath_parse` function. Same arguments and return\n value.\n\n For performance reasons thee is no copying and all returned values are\n references to internal cache. Treat the returned values as read only, or\n suffer the consequences."
143
false
honzamach/pynspect
jpath_parse_c
10,940
LDU_FT/eXamadeus/godaddypy/update_record
LDU_FT
[ "<BEGIN>\n## `_request_submit`", "A helper function that will wrap any requests we make.", " :param func: a function reference to the requests method to invoke\n :param kwargs: any extra arguments that requests.request takes", " :type func: (url: Any, data: Any, json: Any, kwargs: Dict)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_record API. 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_record API. 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...
Call to GoDaddy API to update a single DNS record :param name: only required if the record is None (deletion) :param record_type: only required if the record is None (deletion) :param domain: the domain where the DNS belongs to (eg. 'example.com') :param record: dict with record info (e...
"Call to GoDaddy API to update a single DNS record\n\n :param name: only required if the record is None (deletion)\n :param record_type: only required if the record is None (deletion)\n :param domain: the domain where the DNS belongs to (eg. 'example.com')\n :param record: dict with record i...
42
false
eXamadeus/godaddypy
update_record
10,941
LDU_FT/dariusbakunas/rawdisk/register_mbr_plugin
LDU_FT
[ "<BEGIN>\n## `get_entry`", "Get mft entry by index. If entry is not already loaded it will load \\\n it from file specified during :class:`MftTable` initialization.", " Returns:\n MftEntry: initialized :class:`~.mft_entry.MftEntry`.\n<END>", "<BEGIN>\n## `do_list`", "Enumerate resou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_mbr_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_mbr_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Used in plugin's registration routine, to associate it's detection method with given filesystem id Args: fs_id: filesystem id that is read from MBR partition entry plugin: plugin that supports this filesystem
"Used in plugin's registration routine,\n to associate it's detection method with given filesystem id\n\n Args:\n fs_id: filesystem id that is read from MBR partition entry\n plugin: plugin that supports this filesystem"
75
false
dariusbakunas/rawdisk
register_mbr_plugin
10,942
LDU_FT/pyQode/pyqode.core/_get_color
LDU_FT
[ "<BEGIN>\n## `on_install`", "Add the folding menu to the editor, on install.", " :param editor: editor instance on which the mode has been installed to.\n<END>", "<BEGIN>\n## `_draw_rect`", "Draw the background rectangle using the current style primitive color\n or foldIndicatorBackground if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a QColor built from a Pygments color string.
"Returns a QColor built from a Pygments color string."
697
false
pyQode/pyqode.core
_get_color
10,943
LDU_FT/mardiros/pyshop/user_packages
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_packages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Retrieve a list of [role_name, package_name] for a given username. Role is either 'Maintainer' or 'Owner'.
"Retrieve a list of [role_name, package_name] for a given username.\n Role is either 'Maintainer' or 'Owner'."
135
false
mardiros/pyshop
user_packages
10,944
LDU_FT/Karaage-Cluster/karaage/login_required
LDU_FT
[ "<BEGIN>\n## `_gen_project_trend_graph`", "Generates a bar graph for a project", " Keyword arguments:\n project -- Project\n start -- start date\n end -- end date\n<END>", "<BEGIN>\n## `synchronise`", "If task already queued, running, or finished, don't restart.\n<END>", "<BEGIN>\n## `send_bou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_required API. 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 login_required API. 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...
Decorator for views that checks that the user is logged in, redirecting to the log-in page if necessary.
"Decorator for views that checks that the user is logged in, redirecting\n to the log-in page if necessary."
214
false
Karaage-Cluster/karaage
login_required
10,945
LDU_FT/mardiros/pyshop/by_filename
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_filename API. 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 by_filename API. 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 a release file for a given release and a given filename. :param session: SQLAlchemy session :type session: :class:`sqlalchemy.Session` :param release: release :type release: :class:`pyshop.models.Release` :param filename: filename of the release file :type filename...
"Get a release file for a given release and a given filename.\n\n :param session: SQLAlchemy session\n :type session: :class:`sqlalchemy.Session`\n\n :param release: release\n :type release: :class:`pyshop.models.Release`\n\n :param filename: filename of the release file\n :typ...
135
false
mardiros/pyshop
by_filename
10,946
LDU_FT/JoseAntFer/pyny3d/iplot
LDU_FT
[ "<BEGIN>\n## `run`", "Run the shadowing computation with the values stored in \r\n ``self.arg_``. Precomputed information is stored in:\r", " * **.diff_t** (*ndarray*): ``np.diff(t)``\r\n * **.integral** (*ndarray*): Trapezoidal data integration \r\n over time.\r", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iplot API. 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 iplot API. 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...
Improved plot that allows to plot polygons and holes in different colors. :param c_poly: Polygons color. :type c_poly: matplotlib color, 'default' or 't' (transparent) :param c_holes: Holes color. :type c_holes: matplotlib color, 'default' or 't' (transparent) ...
"Improved plot that allows to plot polygons and holes in\r\n different colors.\r\n \r\n :param c_poly: Polygons color.\r\n :type c_poly: matplotlib color, 'default' or 't' (transparent)\r\n :param c_holes: Holes color.\r\n :type c_holes: matplotlib color, 'default' or 't' (tran...
298
false
JoseAntFer/pyny3d
iplot
10,947
LDU_FT/openpaperwork/paperwork-backend/destroy_label
LDU_FT
[ "<BEGIN>\n## `examine_rootdir`", "Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>", "<BEGIN>\n## `reload_index`", "Read the index, and load the document list from it", " Arguments...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_label API. 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 destroy_label API. 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...
Remove the label 'label' from all the documents. Takes care of updating the index.
"Remove the label 'label' from all the documents. Takes care of updating\n the index."
171
false
openpaperwork/paperwork-backend
destroy_label
10,948
LDU_FT/yatiml/yatiml/__type_to_tag
LDU_FT
[ "<BEGIN>\n## `class_subobjects`", "Find the aggregated subobjects of an object.", " These are the public attributes.", " Args:\n class_: The class whose subobjects to return.", " Yields:\n Tuples (name, type, required) describing subobjects.\n<END>", "<BEGIN>\n## `__sweeten`", "Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __type_to_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __type_to_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Convert a type to the corresponding YAML tag. Args: type_: The type to convert Returns: A string containing the YAML tag.
"Convert a type to the corresponding YAML tag.\n\n Args:\n type_: The type to convert\n\n Returns:\n A string containing the YAML tag."
224
false
yatiml/yatiml
__type_to_tag
10,949
LDU_FT/matthew-brett/delocate/stripped_lib_dict
LDU_FT
[ "<BEGIN>\n## `back_tick`", "Run command `cmd`, return stdout, or stdout, stderr if `ret_err`", " Roughly equivalent to ``check_output`` in Python 2.7", " Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stripped_lib_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stripped_lib_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return `lib_dict` with `strip_prefix` removed from start of paths Use to give form of `lib_dict` that appears relative to some base path given by `strip_prefix`. Particularly useful for analyzing wheels where we unpack to a temporary path before analyzing. Parameters ---------- lib_dict : dic...
"Return `lib_dict` with `strip_prefix` removed from start of paths\n\n Use to give form of `lib_dict` that appears relative to some base path\n given by `strip_prefix`. Particularly useful for analyzing wheels where we\n unpack to a temporary path before analyzing.\n\n Parameters\n ----------\n lib_d...
157
false
matthew-brett/delocate
stripped_lib_dict
10,950
LDU_FT/flyingrub/scdl/already_downloaded
LDU_FT
[ "<BEGIN>\n## `size_in_bytes`", "Returns the size in bytes from strings such as '5 mb' into 5242880.", " >>> size_in_bytes('1m')\n 1048576\n >>> size_in_bytes('1.5m')\n 1572864\n >>> size_in_bytes('2g')\n 2147483648\n >>> size_in_bytes(None)\n Traceback (most recent call last):\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the already_downloaded 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 already_downloaded 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...
Returns True if the file has already been downloaded
"Returns True if the file has already been downloaded"
27
false
flyingrub/scdl
already_downloaded
10,951
LDU_FT/spotify/gordon-gcp/publish_changes
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate a message given a schema.", " Args:\n message (dict): Loaded JSON of pulled message from Google\n PubSub.\n schema_name (str): Name of schema to validate ``message``\n against. ``schema_name`` will be used to look up\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish_changes API. 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 publish_changes API. 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...
Post changes to a zone. Args: zone (str): DNS zone of the change. changes (dict): JSON compatible dict of a `Change <https://cloud.google.com/dns/api/v1/changes>`_. Returns: string identifier of the change.
"Post changes to a zone.\n\n Args:\n zone (str): DNS zone of the change.\n changes (dict): JSON compatible dict of a `Change\n <https://cloud.google.com/dns/api/v1/changes>`_.\n Returns:\n string identifier of the change."
72
false
spotify/gordon-gcp
publish_changes
10,952
LDU_FT/mgedmin/findimports/findModuleOfName
LDU_FT
[ "<BEGIN>\n## `adjust_lineno`", "Adjust the line number of an import.", " Needed because import statements can span multiple lines, and our lineno\n is always the first line number.\n<END>", "<BEGIN>\n## `find_imports`", "Find all imported names in a given file.", " Returns a list of ImportInfo ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findModuleOfName API. 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 findModuleOfName API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a fully qualified name, find what module contains it.
"Given a fully qualified name, find what module contains it."
29
false
mgedmin/findimports
findModuleOfName
10,953
LDU_FT/malinoff/structures/build_stream
LDU_FT
[ "<BEGIN>\n## `build`", "Build bytes from the python object.", " :param obj: Python object to build bytes from.\n :param context: Optional context dictionary.\n<END>", "<BEGIN>\n## `parse`", "Parse some python object from the data.", " :param data: Data to be parsed.\n :param co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_stream API. 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 build_stream API. 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...
Build bytes from the python object into the stream. :param obj: Python object to build bytes from. :param stream: A ``io.BytesIO`` instance to write bytes into. :param context: Optional context dictionary.
"Build bytes from the python object into the stream.\n\n :param obj: Python object to build bytes from.\n :param stream: A ``io.BytesIO`` instance to write bytes into.\n :param context: Optional context dictionary."
15
false
malinoff/structures
build_stream
10,954
LDU_FT/wgnet/webium/select_by_visible_text
LDU_FT
[ "<BEGIN>\n## `click`", "Click by WebElement, if not, JQuery click\n<END>", "<BEGIN>\n## `convert_cookie_to_dict`", "Converts an instance of Cookie class from cookielib to a dict.\n The names of attributes can be changed according to keys_map:.\n For example, this method can be used to create a cookie wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_visible_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_visible_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....
Performs search of selected item from Web List @params text - string visible text
"Performs search of selected item from Web List\n\n @params text - string visible text"
20
false
wgnet/webium
select_by_visible_text
10,955
LDU_FT/rhelmot/nclib/send
LDU_FT
[ "<BEGIN>\n## `launch`", "A static method for launching a process that is connected to a given\n socket. Same rules from the Process constructor apply.\n<END>", "<BEGIN>\n## `respond`", "Send a message back to a peer.", " :param packet: The data to send\n :param peer: The add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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...
Sends all the given data to the socket. Aliases: write, put, sendall, send_all
"Sends all the given data to the socket.\n\n Aliases: write, put, sendall, send_all"
44
false
rhelmot/nclib
send
10,956
LDU_FT/allianceauth/allianceauth/_unescape_str
LDU_FT
[ "<BEGIN>\n## `register`", "Decorator to register a function as a hook", " Register hook for ``hook_name``. Can be used as a decorator::\n @register('hook_name')\n def my_hook(...):\n pass", " or as a function call::\n def my_hook(...):\n pass\n register(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unescape_str API. 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 _unescape_str API. 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...
Unescape a TS3 compatible string into a normal string @param value: Value @type value: string/int
"Unescape a TS3 compatible string into a normal string\n @param value: Value\n @type value: string/int"
57
false
allianceauth/allianceauth
_unescape_str
10,957
LDU_FT/rtfd/sphinx-autoapi/map
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. 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 map API. 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...
Trigger find of serialized sources and build objects
"Trigger find of serialized sources and build objects"
169
false
rtfd/sphinx-autoapi
map
10,958
LDU_FT/tjcsl/ion/absence_count
LDU_FT
[ "<BEGIN>\n## `student_visible`", "Return a list of groups that are student-visible.\n<END>", "<BEGIN>\n## `stdev`", "r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the absence_count API. 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 absence_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the user's absence count. If the user has no absences or is not a signup user, returns 0.
"Return the user's absence count.\n\n If the user has no absences\n or is not a signup user, returns 0."
407
false
tjcsl/ion
absence_count
10,959
LDU_FT/ArduPilot/MAVProxy/_onMenuItemSelected
LDU_FT
[ "<BEGIN>\n## `child_task`", "child process - this holds all the GUI elements\n<END>", "<BEGIN>\n## `load_tile_lowres`", "load a lower resolution tile from cache to fill in a\n map while waiting for a higher resolution tile\n<END>", "<BEGIN>\n## `area_to_image`", "return an RGB image for an area of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _onMenuItemSelected 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 _onMenuItemSelected 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...
Called whenever one of the specific axis menu items is selected
"Called whenever one of the specific axis menu items is selected"
404
false
ArduPilot/MAVProxy
_onMenuItemSelected
10,960
LDU_FT/pytest-dev/pytest-xdist/add_node
LDU_FT
[ "<BEGIN>\n## `has_pending`", "Return True if there are pending test items.", " This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>", "<BEGIN>\n## `add_node`", "Add a new node to the s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a new node to the scheduler. From now on the node will be assigned work units to be executed. Called by the ``DSession.worker_workerready`` hook when it successfully bootstraps a new node.
"Add a new node to the scheduler.\n\n From now on the node will be assigned work units to be executed.\n\n Called by the ``DSession.worker_workerready`` hook when it successfully\n bootstraps a new node."
92
false
pytest-dev/pytest-xdist
add_node
10,961
LDU_FT/atmos-python/atmos/d_x
LDU_FT
[ "<BEGIN>\n## `assumes`", "Stores a function's assumptions as an attribute.\n<END>", "<BEGIN>\n## `overridden_by_assumptions`", "Stores what assumptions a function is overridden by as an attribute.\n<END>", "<BEGIN>\n## `equation_docstring`", "Creates a decorator that adds a docstring to an equation functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the d_x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the d_x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Calculates a second-order centered finite difference of data along the specified axis. Parameters ---------- data : ndarray Data on which we are taking a derivative. axis : int Index of the data array on which to take the difference. boundary : string, optional Boundary condition. If 'periodic', assume pe...
"Calculates a second-order centered finite difference of data along the\nspecified axis.\n\nParameters\n----------\n\ndata : ndarray\n Data on which we are taking a derivative.\naxis : int\n Index of the data array on which to take the difference.\nboundary : string, optional\n Boundary condition. If 'periodic...
126
false
atmos-python/atmos
d_x
10,962
LDU_FT/bukun/TorCMS/fail_if_not_removed
LDU_FT
[ "<BEGIN>\n## `view_or_add`", "To judge if there is a post of the title.\n Then, to show, or to add.\n<END>", "<BEGIN>\n## `gen_array_crud`", "Return the dictionay of the switcher form XLXS file.\n if valud of the column of the row is `1`, it will be added to the array.\n<END>", "<BEGIN>\n## `__ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fail_if_not_removed 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 fail_if_not_removed 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...
Decorate a test method to track removal of deprecated code This decorator catches :class:`~deprecation.UnsupportedWarning` warnings that occur during testing and causes unittests to fail, making it easier to keep track of when code should be removed. :raises: :class:`AssertionError` if an ...
"Decorate a test method to track removal of deprecated code\n\n This decorator catches :class:`~deprecation.UnsupportedWarning`\n warnings that occur during testing and causes unittests to fail,\n making it easier to keep track of when code should be removed.\n\n :raises: :class:`AssertionError` if an\n ...
189
false
bukun/TorCMS
fail_if_not_removed
10,963
LDU_FT/ellmetha/django-machina/decrease_posts_count_after_post_deletion
LDU_FT
[ "<BEGIN>\n## `recurseforumcontents`", "Iterates over the content nodes and renders the contained forum block for each node.\n<END>", "<BEGIN>\n## `forum_list`", "Renders the considered forum list.", " This will render the given list of forums by respecting the order and the depth of each\n forum in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrease_posts_count_after_post_deletion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrease_posts_count_after_post_deletion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Decreases the member's post count after a post deletion. This receiver handles the deletion of a forum post: the posts count related to the post's author is decreased.
"Decreases the member's post count after a post deletion.\n\n This receiver handles the deletion of a forum post: the posts count related to the post's\n author is decreased."
293
false
ellmetha/django-machina
decrease_posts_count_after_post_deletion
10,964
LDU_FT/openp2pdesign/makerlabs/get_labs
LDU_FT
[ "<BEGIN>\n## `get_lab_text`", "Gets text description in English or Italian from a single lab from makeinitaly.foundation.\n<END>", "<BEGIN>\n## `get_single_lab`", "Gets data from a single lab from makeinitaly.foundation.\n<END>", "<BEGIN>\n## `get_labs`", "Gets data from all labs from makeinitaly.foundati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_labs API. 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_labs API. 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...
Gets Repair Cafe data from repairecafe.org.
"Gets Repair Cafe data from repairecafe.org."
20
false
openp2pdesign/makerlabs
get_labs
10,965
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/set_kind
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_kind API. 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 set_kind API. 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...
Set the kind constraint for the given datastore.Query proto message.
"Set the kind constraint for the given datastore.Query proto message."
94
false
GoogleCloudPlatform/google-cloud-datastore
set_kind
10,966
LDU_FT/nugget/python-insteonplm/hex
LDU_FT
[ "<BEGIN>\n## `data_received`", "Receive data from the protocol.", " Called when asyncio.Protocol detects received data from network.\n<END>", "<BEGIN>\n## `connection_lost`", "Reestablish the connection to the transport.", " Called when asyncio.Protocol loses the network connection.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex API. 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 hex API. 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...
Hexideciaml representation of the message in bytes.
"Hexideciaml representation of the message in bytes."
375
false
nugget/python-insteonplm
hex
10,967
LDU_FT/wtsi-hgi/python-baton-wrapper/_path_to_baton_json
LDU_FT
[ "<BEGIN>\n## `validate_baton_binaries_location`", "Validates that the given directory contains the baton binaries required to use the runner.\n :param baton_binaries_directory: the directory to check\n :return: exception that describes the issue else `None` if no issues\n<END>", "<BEGIN>\n## `_rai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _path_to_baton_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _path_to_baton_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Converts a path to the type of iRODS entity the mapper deals with, to its JSON representation. :param path: the path to convert :return: the JSON representation of the path
"Converts a path to the type of iRODS entity the mapper deals with, to its JSON representation.\n :param path: the path to convert\n :return: the JSON representation of the path"
71
false
wtsi-hgi/python-baton-wrapper
_path_to_baton_json
10,968
LDU_FT/osilkin98/PyBRY/make_request
LDU_FT
[ "<BEGIN>\n## `make_request`", "Makes a cURL POST request to the given URL, specifying the data to be passed in as\n {\"method\": method, \"params\": parameters}", " :param str url: URL to connect to.\n :param str method: The API method to call.\n :param dict params: Dictionary objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_request API. 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 make_request API. 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...
Makes a cURL POST request to the given URL, specifying the data to be passed in as {"method": method, "params": parameters} :param str url: URL to connect to. :param str method: The API method to call. :param dict params: Dictionary object of the parameters associated with the `method`...
"Makes a cURL POST request to the given URL, specifying the data to be passed in as\n {\"method\": method, \"params\": parameters}\n\n :param str url: URL to connect to.\n :param str method: The API method to call.\n :param dict params: Dictionary object of the parameters associated with th...
18
false
osilkin98/PyBRY
make_request
10,969
LDU_FT/grundic/yagocd/stages
LDU_FT
[ "<BEGIN>\n## `urljoin`", "Joins given arguments into a url. Trailing but not leading slashes are\n stripped for each argument.\n<END>", "<BEGIN>\n## `server_version`", "Special method for getting server version.", " Because of different behaviour on different versions of\n server, we ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Property for accessing :class:`StageManager` instance, which is used to manage stages. :rtype: yagocd.resources.stage.StageManager
"Property for accessing :class:`StageManager` instance, which is used to manage stages.\n\n :rtype: yagocd.resources.stage.StageManager"
164
false
grundic/yagocd
stages
10,970
LDU_FT/shexSpec/grammar/prefixedname_to_str
LDU_FT
[ "<BEGIN>\n## `visitNodeConstraintLiteral`", "nodeConstraint: KW_LITERAL xsFacet* # nodeConstraintLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintNonLiteral`", "nodeConstraint: nonLiteralKind stringFacet* # nodeConstraintNonLiteral\n<END>", "<BEGIN>\n## `visitNodeConstraintDatatype`", "nodeConstraint: d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prefixedname_to_str 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 prefixedname_to_str 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...
prefixedName: PNAME_LN | PNAME_NS PNAME_NS: PN_PREFIX? ':' ; PNAME_LN: PNAME_NS PN_LOCAL ;
"prefixedName: PNAME_LN | PNAME_NS\n PNAME_NS: PN_PREFIX? ':' ;\n PNAME_LN: PNAME_NS PN_LOCAL ;"
93
false
shexSpec/grammar
prefixedname_to_str
10,971
LDU_FT/bdcht/grandalf/_rank_optimize
LDU_FT
[ "<BEGIN>\n## `_meanvalueattr`", "find new position of vertex v according to adjacency in prevlayer.\n position is given by the mean value of adjacent positions.\n experiments show that meanvalue heuristic performs better than median.\n<END>", "<BEGIN>\n## `_medianindex`", "find new position of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rank_optimize API. 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 _rank_optimize API. 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...
optimize ranking by pushing long edges toward lower layers as much as possible. see other interersting network flow solver to minimize total edge length (http://jgaa.info/accepted/2005/EiglspergerSiebenhallerKaufmann2005.9.3.pdf)
"optimize ranking by pushing long edges toward lower layers as much as possible.\n see other interersting network flow solver to minimize total edge length\n (http://jgaa.info/accepted/2005/EiglspergerSiebenhallerKaufmann2005.9.3.pdf)"
41
false
bdcht/grandalf
_rank_optimize
10,972