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/BlueBrain/hpcbench/_sequence_map
LDU_FT
[ "<BEGIN>\n## `arguments`", "Dictionary providing the list of arguments for every\n benchmark\n<END>", "<BEGIN>\n## `run`", "Execute benchmarks on every node specified in arguments.\n If none are given, then execute benchmarks on every nodes\n specified in the ``network.nodes`` campaign co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sequence_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sequence_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 ext...
Apply a kwargsql expression to every item of a sequence, and returns it. :param seq: the list to transform :param path: kwargsql expression to apply to every elements of the given sequence.
"Apply a kwargsql expression to every item of a sequence,\n and returns it.\n\n :param seq: the list to transform\n :param path: kwargsql expression to apply to every elements of\n the given sequence."
216
false
BlueBrain/hpcbench
_sequence_map
141,473
LDU_FT/fakedrake/overlay_parse/offset_overlays
LDU_FT
[ "<BEGIN>\n## `rx_int_extra`", "We didn't just match an int but the int is what we need.\n<END>", "<BEGIN>\n## `offset_overlays`", "Generate overlays after offset.\n :param text: The text to be searched.\n :param offset: Match starting that index. If none just search.\n :returns: An overla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset_overlays API. 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 offset_overlays API. 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...
The heavy lifting is done by fit_overlays. Override just that for alternatie implementation.
"The heavy lifting is done by fit_overlays. Override just that for\n alternatie implementation."
35
false
fakedrake/overlay_parse
offset_overlays
141,474
LDU_FT/danpoland/pyramid-restful-framework/perform_create
LDU_FT
[ "<BEGIN>\n## `parse_requested_expands`", "Extracts the value of the expand query string parameter from a request.\n Supports comma separated lists.", " :param query_key: The name query string parameter.\n :param request: Request instance.\n :return: List of strings representing the values of the exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Hook for controlling the creation of an model instance. Override this if you need to do more with your data before saving your object than just mapping the deserialized data to a new instance of ``self.model``.
"Hook for controlling the creation of an model instance. Override this if you need to do more with your\n data before saving your object than just mapping the deserialized data to a new instance of ``self.model``."
70
false
danpoland/pyramid-restful-framework
perform_create
141,475
LDU_FT/prymitive/bootstrap-breadcrumbs/breadcrumb_raw_safe
LDU_FT
[ "<BEGIN>\n## `breadcrumb`", "Add link to list of breadcrumbs, usage:", " {% load bubbles_breadcrumbs %}\n {% breadcrumb \"Home\" \"index\" %}", " Remember to use it inside {% block %} with {{ block.super }} to get all\n parent breadcrumbs.", " :param label: Breadcrumb link label.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the breadcrumb_raw_safe 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 breadcrumb_raw_safe 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...
Same as breadcrumb but label is not escaped and translated.
"Same as breadcrumb but label is not escaped and translated."
13
false
prymitive/bootstrap-breadcrumbs
breadcrumb_raw_safe
141,476
LDU_FT/abw333/dominoes/_add_left
LDU_FT
[ "<BEGIN>\n## `_randomized_hands`", ":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>", "<BEGIN>\n## `_validate_player`", "Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.", " :param int ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_left API. 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 _add_left API. 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...
Adds the provided domino to the left end of the board. :param Domino d: domino to add :return: None :raises EndsMismatchException: if the values do not match
"Adds the provided domino to the left end of the board.\n\n :param Domino d: domino to add\n :return: None\n :raises EndsMismatchException: if the values do not match"
70
false
abw333/dominoes
_add_left
141,477
LDU_FT/carsonyl/pypac/weekdayRange
LDU_FT
[ "<BEGIN>\n## `proxy_urls_from_dns`", "Generate URLs from which to look for a PAC file, based on a hostname.\r\n Fully-qualified hostnames are checked against the Mozilla Public Suffix List to ensure that\r\n generated URLs don't go outside the scope of the organization.\r\n If the fully-qualified hostnam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weekdayRange API. 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 weekdayRange API. 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...
Accepted forms: * ``weekdayRange(wd1)`` * ``weekdayRange(wd1, gmt)`` * ``weekdayRange(wd1, wd2)`` * ``weekdayRange(wd1, wd2, gmt)`` If only one parameter is present, the function yields a true value on the weekday that the parameter represents. If the string "GMT" is specified as a second para...
"Accepted forms:\n\n * ``weekdayRange(wd1)``\n * ``weekdayRange(wd1, gmt)``\n * ``weekdayRange(wd1, wd2)``\n * ``weekdayRange(wd1, wd2, gmt)``\n\n If only one parameter is present, the function yields a true value on the weekday that the parameter represents.\n If the string \"GMT\" is specified as a ...
88
false
carsonyl/pypac
weekdayRange
141,478
LDU_FT/nickstenning/tagalog/fields
LDU_FT
[ "<BEGIN>\n## `fields`", "Add a set of fields to each item in ``iterable``. The set of fields have a\n key=value format. '@' are added to the front of each key.\n<END>", "<BEGIN>\n## `tag`", "Add tags to each dict or dict-like object in ``iterable``. Tags are added\n to each dict with a key set by ``key`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Add a set of fields to each item in ``iterable``. The set of fields have a key=value format. '@' are added to the front of each key.
"Add a set of fields to each item in ``iterable``. The set of fields have a\n key=value format. '@' are added to the front of each key."
17
false
nickstenning/tagalog
fields
141,479
LDU_FT/pypa/setuptools/_encode_auth
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_auth API. 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 _encode_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
A function compatible with Python 2.3-3.3 that will encode auth from a URL suitable for an HTTP header. >>> str(_encode_auth('username%3Apassword')) 'dXNlcm5hbWU6cGFzc3dvcmQ=' Long auth strings should not cause a newline to be inserted. >>> long_auth = 'username:' + 'password'*10 >>> chr(10) in...
"A function compatible with Python 2.3-3.3 that will encode\n auth from a URL suitable for an HTTP header.\n >>> str(_encode_auth('username%3Apassword'))\n 'dXNlcm5hbWU6cGFzc3dvcmQ='\n\n Long auth strings should not cause a newline to be inserted.\n >>> long_auth = 'username:' + 'password'*10\n >>> ch...
565
false
pypa/setuptools
_encode_auth
141,480
LDU_FT/adrn/gala/eval_mean_error_functions
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_mean_error_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_mean_error_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Calculates sqrt(mean(E)) and sqrt(mean(F))
"Calculates sqrt(mean(E)) and sqrt(mean(F))"
465
false
adrn/gala
eval_mean_error_functions
141,481
LDU_FT/esterhui/pypu/UpdateStatus
LDU_FT
[ "<BEGIN>\n## `_connectToWP`", "Establish the actual TCP connection to Flickr\n<END>", "<BEGIN>\n## `_readMetaAndContent`", "Reads meta data and content from file into WordPressPost() class.\n Returns the class", " If error, returns None\n<END>", "<BEGIN>\n## `GetStatus`", "Scans through al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UpdateStatus API. 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 UpdateStatus API. 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...
Given a list of files in a certain directory, updates to the given status If status is ST_UPTODATE, and no files given will go through current DB and push files with the "A" flag service: If none, assumes all services, looks for matching service
"Given a list of files in a certain directory,\n updates to the given status\n If status is ST_UPTODATE, and no files given\n will go through current DB and push files\n with the \"A\" flag\n service: If none, assumes all services, looks for matching service"
113
false
esterhui/pypu
UpdateStatus
141,482
LDU_FT/HumanCellAtlas/cloud-blobstore/get_size
LDU_FT
[ "<BEGIN>\n## `list`", "Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the\n prefix.\n<END>", "<BEGIN>\n## `delete`", "Deletes an object in a bucket. If the operation definitely did not delete anything, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Retrieves the filesize :param bucket: the bucket the object resides in. :param key: the key of the object for which size is being retrieved. :return: integer equal to filesize in bytes
"Retrieves the filesize\n :param bucket: the bucket the object resides in.\n :param key: the key of the object for which size is being retrieved.\n :return: integer equal to filesize in bytes"
59
false
HumanCellAtlas/cloud-blobstore
get_size
141,483
LDU_FT/blackecho/Deep-Learning-TensorFlow/salt_and_pepper_noise
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model to the given data.", " :param train_set: training data\n :param test_set: test data\n<END>", "<BEGIN>\n## `_run_train_step`", "Run a single training step.", " :param data: input data\n :param mode: 'train' or 'test'.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the salt_and_pepper_noise 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 salt_and_pepper_noise API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Apply salt and pepper noise to data in X. In other words a fraction v of elements of X (chosen at random) is set to its maximum or minimum value according to a fair coin flip. If minimum or maximum are not given, the min (max) value in X is taken. :param X: array_like, Input data :param v: int,...
"Apply salt and pepper noise to data in X.\n\n In other words a fraction v of elements of X\n (chosen at random) is set to its maximum or minimum value according to a\n fair coin flip.\n If minimum or maximum are not given, the min (max) value in X is taken.\n :param X: array_like, Input data\n :param...
284
false
blackecho/Deep-Learning-TensorFlow
salt_and_pepper_noise
141,484
LDU_FT/habnabit/panglery/subscribe
LDU_FT
[ "<BEGIN>\n## `subscribe`", "Add a hook to a pangler.", " This method can either be used as a decorator for a function or method,\n or standalone on a callable.", " * `needs` is an iterable of parameters that this hook operates on.\n * `returns` is an iterable of parameters that t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. 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 subscribe API. 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...
Add a hook to a pangler. This method can either be used as a decorator for a function or method, or standalone on a callable. * `needs` is an iterable of parameters that this hook operates on. * `returns` is an iterable of parameters that this hook will modify and then pas...
"Add a hook to a pangler.\n\n This method can either be used as a decorator for a function or method,\n or standalone on a callable.\n\n * `needs` is an iterable of parameters that this hook operates on.\n * `returns` is an iterable of parameters that this hook will modify\n and ...
22
false
habnabit/panglery
subscribe
141,485
LDU_FT/RI-imaging/nrefocus/autofocus_stack
LDU_FT
[ "<BEGIN>\n## `_get_pad_left_right`", "Compute left and right padding values.", " Here we use the convention that if the padding\n size is odd, we pad the odd part to the right\n and the even part to the left.", " Parameters\n ----------\n small : int\n Old size of original 1D array\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autofocus_stack API. 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 autofocus_stack API. 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...
Numerical autofocusing of a stack using the Helmholtz equation. Parameters ---------- fieldstack : 2d or 3d ndarray Electric field is BG-Corrected, i.e. Field = EX/BEx nm : float Refractive index of medium. res : float Size of wavelength in pixels. ival : tuple of float...
"Numerical autofocusing of a stack using the Helmholtz equation.\n\n\n Parameters\n ----------\n fieldstack : 2d or 3d ndarray\n Electric field is BG-Corrected, i.e. Field = EX/BEx\n nm : float\n Refractive index of medium.\n res : float\n Size of wavelength in pixels.\n ival : tu...
71
false
RI-imaging/nrefocus
autofocus_stack
141,486
LDU_FT/satellogic/telluric/to_raster
LDU_FT
[ "<BEGIN>\n## `join`", "This method takes a list of rasters and returns a raster that is constructed of all of them\n<END>", "<BEGIN>\n## `merge_all`", "Merge a list of rasters, cropping by a region of interest.\n There are cases that the roi is not precise enough for this cases one can use,\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_raster API. 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 to_raster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the vector in pixel coordinates, as shapely.Geometry.
"Return the vector in pixel coordinates, as shapely.Geometry."
261
false
satellogic/telluric
to_raster
141,487
LDU_FT/talkincode/txradius/ReadDictionary
LDU_FT
[ "<BEGIN>\n## `CreateReply`", "Create a new packet as a reply to this one. This method\n makes sure the authenticator and secret are copied over\n to the new instance.\n<END>", "<BEGIN>\n## `AddAttribute`", "Add an attribute to the packet.", " :param key: attribute name or identificati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ReadDictionary API. 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 ReadDictionary API. 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...
Parse a dictionary file. Reads a RADIUS dictionary file and merges its contents into the class instance. :param file: Name of dictionary file to parse or a file-like object :type file: string or file-like object
"Parse a dictionary file.\n Reads a RADIUS dictionary file and merges its contents into the\n class instance.\n\n :param file: Name of dictionary file to parse or a file-like object\n :type file: string or file-like object"
61
false
talkincode/txradius
ReadDictionary
141,488
LDU_FT/pyrogram/pyrogram/close_poll
LDU_FT
[ "<BEGIN>\n## `request_callback_answer`", "Use this method to request a callback answer from bots.\n This is the equivalent of clicking an inline button containing callback data.", " Args:\n chat_id (``int`` | ``str``):\n Unique identifier (int) or username (str) of the ta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_poll API. 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 close_poll API. 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...
Use this method to close (stop) a poll. Closed polls can't be reopened and nobody will be able to vote in it anymore. Args: chat_id (``int`` | ``str``): Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) yo...
"Use this method to close (stop) a poll.\n\n Closed polls can't be reopened and nobody will be able to vote in it anymore.\n\n Args:\n chat_id (``int`` | ``str``):\n Unique identifier (int) or username (str) of the target chat.\n For your personal cloud (Saved Mess...
1,097
true
pyrogram/pyrogram
close_poll
141,489
LDU_FT/HPCC-Cloud-Computing/CAL/Client
LDU_FT
[ "<BEGIN>\n## `delete`", "This is bad delete function\n because one vpc can have more than one subnet.\n It is Ok if user only use CAL for manage cloud resource\n We will update ASAP.\n<END>", "<BEGIN>\n## `create_container`", "Create container", " :param container(string): contai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Client API. 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 Client API. 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 ...
Initialize client object based on given version. :params version: version of CAL, define at setup.cfg :params resource: resource type (network, compute, object_storage, block_storage) :params provider: provider object :params cloud_config: cloud auth config :params **kwargs: sp...
"Initialize client object based on given version.\n\n :params version: version of CAL, define at setup.cfg\n :params resource: resource type\n (network, compute, object_storage, block_storage)\n :params provider: provider object\n :params cloud_config: cloud auth config\n :params **kw...
68
false
HPCC-Cloud-Computing/CAL
Client
141,490
LDU_FT/laf/russound/set_power
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the tcp gateway\n Allow for this function to be keypad agnostic\n If keypad value is omitted, then set it to the hex value of 70 which is the recommended value for an external\n device controlling the system (top of pg 3 of cav6.6_rnet_protocol_v1.01.00.pd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_power API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_power API. 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...
Switch power on/off to a zone :param controller: Russound Controller ID. For systems with one controller this should be a value of 1. :param zone: The zone to be controlled. Expect a 1 based number. :param power: 0 = off, 1 = on
"Switch power on/off to a zone\n :param controller: Russound Controller ID. For systems with one controller this should be a value of 1.\n :param zone: The zone to be controlled. Expect a 1 based number.\n :param power: 0 = off, 1 = on"
24
false
laf/russound
set_power
141,491
LDU_FT/daskol/nls/getDampingIntegral
LDU_FT
[ "<BEGIN>\n## `model`", "Piority of Arguments: Arguments passed in `kwargs` has the most piority, 'param' key in `kwargs` has less\n piority than `kwargs` and dictionary arguments in `args` have the least piority. Other arguments are ignored.\n Argument List:\n model - set model type, defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDampingIntegral 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 getDampingIntegral 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...
Calculate integral of damping terms of hamiltonian using rectangular method.
"Calculate integral of damping terms of hamiltonian using rectangular method."
18
false
daskol/nls
getDampingIntegral
141,492
LDU_FT/facebookresearch/fastText/get_words
LDU_FT
[ "<BEGIN>\n## `cpp_flag`", "Return the -std=c++[0x/11/14] compiler flag.\n The c++14 is preferred over c++0x/11 (when it is available).\n<END>", "<BEGIN>\n## `find_nearest_neighbor`", "query is a 1d numpy array corresponding to the vector to which you want to\n find the closest vector\n vectors is a 2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
Get the entire list of words of the dictionary optionally including the frequency of the individual words. This does not include any subwords. For that please consult the function get_subwords.
"Get the entire list of words of the dictionary optionally\n including the frequency of the individual words. This\n does not include any subwords. For that please consult\n the function get_subwords."
32
false
facebookresearch/fastText
get_words
141,493
LDU_FT/kensho-technologies/graphql-compiler/compile_graphql_to_sql
LDU_FT
[ "<BEGIN>\n## `lower_ir`", "Lower the IR into an IR form that can be represented in Gremlin queries.", " Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_graphql_to_sql 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 compile_graphql_to_sql API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Compile the GraphQL input using the schema into a SQL query and associated metadata. Args: schema: GraphQL schema object describing the schema of the graph to be queried graphql_string: the GraphQL query to compile to SQL, as a string compiler_metadata: SQLAlchemy metadata containing tables...
"Compile the GraphQL input using the schema into a SQL query and associated metadata.\n\n Args:\n schema: GraphQL schema object describing the schema of the graph to be queried\n graphql_string: the GraphQL query to compile to SQL, as a string\n compiler_metadata: SQLAlchemy metadata containing ...
786
false
kensho-technologies/graphql-compiler
compile_graphql_to_sql
141,494
LDU_FT/CumulusNetworks/netshow-core/iface
LDU_FT
[ "<BEGIN>\n## `get_version`", ":return: hash of versions of various netshow components.\n<END>", "<BEGIN>\n## `run`", "Executes ``run()`` function from netshow plugin identified\n from the provider check.\n<END>", "<BEGIN>\n## `i18n_app`", "import this function at the top of each provider netshow compon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iface API. 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 iface API. 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...
| **Interface Discovery ** calls into ``netshowlib.[provider].iface.iface()`` to get the correct interface type :return: Iface object that best matches interface characteristics
"| **Interface Discovery **\n calls into ``netshowlib.[provider].iface.iface()`` to get the correct\n interface type\n\n :return: Iface object that best matches interface characteristics"
21
false
CumulusNetworks/netshow-core
iface
141,495
LDU_FT/intake/intake/load_user_catalog
LDU_FT
[ "<BEGIN>\n## `expand_defaults`", "Compile env, client_env, shell and client_shell commands\n<END>", "<BEGIN>\n## `get`", "Instantiate the DataSource for the given parameters\n<END>", "<BEGIN>\n## `_load`", "Load text of fcatalog file and pass to parse", " Will do nothing if autoreload is off and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_user_catalog API. 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 load_user_catalog API. 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 a catalog for the platform-specific user Intake directory
"Return a catalog for the platform-specific user Intake directory"
280
false
intake/intake
load_user_catalog
141,496
LDU_FT/honeybadger-io/honeybadger-python/_initialize_honeybadger
LDU_FT
[ "<BEGIN>\n## `supports`", "Check whether this is a django request or not.\n :param config: honeybadger configuration.\n :param context: current honeybadger configuration.\n :return: True if this is a django request, False else.\n<END>", "<BEGIN>\n## `generate_payload`", "Generate payload ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_honeybadger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_honeybadger API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Initializes honeybadger using the given config object. :param dict config: a dict or dict-like object that contains honeybadger configuration properties.
"Initializes honeybadger using the given config object.\n :param dict config: a dict or dict-like object that contains honeybadger configuration properties."
23
false
honeybadger-io/honeybadger-python
_initialize_honeybadger
141,497
LDU_FT/dtmilano/AndroidViewClient/getXY
LDU_FT
[ "<BEGIN>\n## `takeScreenshotAndShowItOnWindow`", "Takes the current screenshot and shows it on the main window.\n It also:\n - sizes the window\n - create the canvas\n - set the focus\n - enable the events\n - create widgets\n - finds the targets (as explaine...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getXY API. 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 getXY API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the I{screen} coordinates of this C{View}. WARNING: Don't call self.getX() or self.getY() inside this method or it will enter an infinite loop @return: The I{screen} coordinates of this C{View}
"Returns the I{screen} coordinates of this C{View}.\n\n WARNING: Don't call self.getX() or self.getY() inside this method\n or it will enter an infinite loop\n\n @return: The I{screen} coordinates of this C{View}"
197
false
dtmilano/AndroidViewClient
getXY
141,498
LDU_FT/openspending/os-package-registry/get_raw
LDU_FT
[ "<BEGIN>\n## `save_model`", "Save a model in the registry\n :param name: name for the model\n :param datapackage_url: origin URL for the datapackage which is the\n source for this model\n :param datapackage: datapackage object from which this model was\n derived\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get all data for a package in the registry :returns tuple of: name: name for the model datapackage_url: origin URL for the datapackage which is the source for this model datapackage: datapackage object from which this model was derived dataset_name: Ti...
"Get all data for a package in the registry\n :returns tuple of:\n name: name for the model\n datapackage_url: origin URL for the datapackage which is the source\n for this model\n datapackage: datapackage object from which this model was derived\n dataset_n...
16
false
openspending/os-package-registry
get_raw
141,499
LDU_FT/KeplerGO/K2fov/plot_campaign_outline
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_campaign_outline 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 plot_campaign_outline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plot the outline of a campaign as a contiguous gray patch. Parameters ---------- campaign : int K2 Campaign number. facecolor : str Color of the patch.
"Plot the outline of a campaign as a contiguous gray patch.\n\n Parameters\n ----------\n campaign : int\n K2 Campaign number.\n\n facecolor : str\n Color of the patch."
185
false
KeplerGO/K2fov
plot_campaign_outline
141,500
LDU_FT/textX/textX/load_models_in_model_repo
LDU_FT
[ "<BEGIN>\n## `needs_to_be_resolved`", "This function determines, if a reference (CrossReference) needs to be\n resolved or not (while creating the model, while resolving references).", " Args:\n parent_obj: the object containing the attribute to be resolved.\n attr_name: the attribute identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_models_in_model_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_models_in_model_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
load all registered models (called explicitly from the user and not as an automatic activity). Normally this is done automatically while reference resolution of one loaded model. However, if you wish to load all models you can call this and get a model repository. The m...
"load all registered models (called explicitly from\n the user and not as an automatic activity).\n Normally this is done automatically while\n reference resolution of one loaded model.\n\n However, if you wish to load all models\n you can call this and get a model repository.\n\n ...
140
false
textX/textX
load_models_in_model_repo
141,501
LDU_FT/BerkeleyAutomation/autolab_core/datapoint
LDU_FT
[ "<BEGIN>\n## `copy`", "Returns a copy of the RigidTransform.", " Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>", "<BEGIN>\n## `_check_valid_rotation`", "Checks that the given rotation matrix is valid.\n<END>", "<BEGIN>\n## `_check_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datapoint API. 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 datapoint API. 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...
Returns the datapoint at the given index.
"Returns the datapoint at the given index."
518
false
BerkeleyAutomation/autolab_core
datapoint
141,502
LDU_FT/django-admin-tools/django-admin-tools/admin_tools_render_menu_item
LDU_FT
[ "<BEGIN>\n## `set_preferences`", "This view serves and validates a preferences form.\n<END>", "<BEGIN>\n## `admin_tools_render_menu`", "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the admin_tools_render_menu_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the admin_tools_render_menu_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Template tag that renders a given menu item, it takes a ``MenuItem`` instance as unique parameter.
"Template tag that renders a given menu item, it takes a ``MenuItem``\n instance as unique parameter."
60
false
django-admin-tools/django-admin-tools
admin_tools_render_menu_item
141,503
LDU_FT/Gandi/gandi.cli/info
LDU_FT
[ "<BEGIN>\n## `mkpassword`", "Generates a random ascii string - useful to generate authinfos", " :param length: string wanted length\n :type length: ``int``", " :param chars: character population,\n defaults to alphabet (lower & upper) + numbers\n :type chars: ``str``, ``list``, ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Display information about a PaaS instance. Resource can be a vhost, a hostname, or an ID Cache statistics are based on 24 hours data.
"Display information about a PaaS instance.\n\n Resource can be a vhost, a hostname, or an ID\n Cache statistics are based on 24 hours data."
357
false
Gandi/gandi.cli
info
141,504
LDU_FT/carpedm20/ndrive/put
LDU_FT
[ "<BEGIN>\n## `login`", "Log in Naver and get cookie", " Agrs:\n user_id: Naver account's login id\n password: Naver account's login password", " Returns:\n True: Login success\n False: Login failed", " Remarks:\n self.cookie is a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
PUT Args: file_path: Full path for a file you want to upload upload_path: Ndrive path where you want to upload file ex) /Picture/ Returns: True: Upload success False: Upload failed
"PUT\n\n Args:\n file_path: Full path for a file you want to upload\n upload_path: Ndrive path where you want to upload file\n ex) /Picture/\n\n Returns:\n True: Upload success\n False: Upload failed"
170
false
carpedm20/ndrive
put
141,505
LDU_FT/codenerix/django-codenerix/remove_getdisplay
LDU_FT
[ "<BEGIN>\n## `get_groups`", "<--------------------------------------- 12 columns ------------------------------------>\n <--- 6 columns ---> <--- 6 columns --->\n ------------------------------------------ ------------------------------------------\n |...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_getdisplay API. 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 remove_getdisplay API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
for string 'get_FIELD_NAME_display' return 'FIELD_NAME'
"for string 'get_FIELD_NAME_display' return 'FIELD_NAME'"
82
false
codenerix/django-codenerix
remove_getdisplay
141,506
LDU_FT/casebeer/audiogen/crop
LDU_FT
[ "<BEGIN>\n## `arcfour`", "Return a generator for the ARCFOUR/RC4 pseudorandom keystream for the \n\t key provided. Keys should be byte strings or sequences of ints.\n<END>", "<BEGIN>\n## `arcfour_drop`", "Return a generator for the RC4-drop pseudorandom keystream given by \n\t the key and number of bytes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crop API. 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 crop API. 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...
Crop the generator to a finite number of frames Return a generator which outputs the provided generator limited to enough samples to produce seconds seconds of audio (default 5s) at the provided frame rate.
"Crop the generator to a finite number of frames\n\n\tReturn a generator which outputs the provided generator limited\n\tto enough samples to produce seconds seconds of audio (default 5s)\n\tat the provided frame rate."
44
false
casebeer/audiogen
crop
141,507
LDU_FT/harlowja/failure/match_modules
LDU_FT
[ "<BEGIN>\n## `match_modules`", "Creates a matcher that matches a list/set/tuple of allowed modules.\n<END>", "<BEGIN>\n## `match_classes`", "Creates a matcher that matches a list/tuple of allowed classes.\n<END>", "<BEGIN>\n## `combine_or`", "Combines more than one matcher together (first that matches win...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_modules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a matcher that matches a list/set/tuple of allowed modules.
"Creates a matcher that matches a list/set/tuple of allowed modules."
39
false
harlowja/failure
match_modules
141,508
LDU_FT/base4sistemas/pyescpos/write
LDU_FT
[ "<BEGIN>\n## `ean8`", "Render given ``data`` as **JAN-8/EAN-8** barcode symbology.\n<END>", "<BEGIN>\n## `ean13`", "Render given ``data`` as **JAN-13/EAN-13** barcode symbology.\n<END>", "<BEGIN>\n## `code128`", "Renders given ``data`` as **Code 128** barcode symbology.", " :param str codeset: Op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Print any command sent in raw format. :param bytes data: arbitrary code to be printed.
"Print any command sent in raw format.\n\n :param bytes data: arbitrary code to be printed."
83
false
base4sistemas/pyescpos
write
141,509
LDU_FT/eyurtsev/FlowCytometryTools/from_dir
LDU_FT
[ "<BEGIN>\n## `get_tag_value`", "Extracts the value of a tag from a string.", " Parameters\n -----------------", " pre : str\n regular expression to match before the the tag value", " post : str | list | tuple\n regular expression to match after the the tag value", " if lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a Collection of measurements from data files contained in a directory. Parameters ---------- ID : hashable Collection ID datadir : str Path of directory containing the data files. pattern : str Only files matching the pattern will be us...
"Create a Collection of measurements from data files contained in a directory.\n\n Parameters\n ----------\n ID : hashable\n Collection ID\n datadir : str\n Path of directory containing the data files.\n pattern : str\n Only files matching the pattern ...
330
false
eyurtsev/FlowCytometryTools
from_dir
141,510
LDU_FT/jay-johnson/network-pipeline/send_arp_msg
LDU_FT
[ "<BEGIN>\n## `publish_processed_network_packets`", "# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_arp_msg API. 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 send_arp_msg API. 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...
send_arp_msg Send an ``ARP`` message to the network device (``enp0s3`` by default).
"send_arp_msg\n\n Send an ``ARP`` message to the network device (``enp0s3`` by default)."
140
false
jay-johnson/network-pipeline
send_arp_msg
141,511
LDU_FT/flowroute/txjason/_man_args
LDU_FT
[ "<BEGIN>\n## `addToService`", "Add this Handler's exported methods to an RPC Service instance.\n<END>", "<BEGIN>\n## `add`", "Adds a new method to the jsonrpc service.", " Arguments:\n f -- the remote function\n name -- name of the method in the jsonrpc service\n types -- list or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _man_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _man_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 extract...
Returns number of mandatory arguments required by given function.
"Returns number of mandatory arguments required by given function."
40
false
flowroute/txjason
_man_args
141,512
LDU_FT/mesosphere/deimos/argv
LDU_FT
[ "<BEGIN>\n## `dirs`", "Provider a generator of container state directories.", " If exited is None, all are returned. If it is False, unexited\n containers are returned. If it is True, only exited containers are\n returned.\n<END>", "<BEGIN>\n## `methods`", "Names of operations provided ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argv API. 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 argv API. 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...
Produces an argument vector from its array of arguments and keyword options. First, the options are unpacked. When the value is a ``bool``, the option is passed without an argument if it is true and skipped if it is ``false``. When the option is one of the flat built-in types -- a ``string`` or ``unicod...
"Produces an argument vector from its array of arguments and keyword\n options. First, the options are unpacked. When the value is a ``bool``,\n the option is passed without an argument if it is true and skipped if it\n is ``false``. When the option is one of the flat built-in types -- a\n ``string`` or ``u...
23
false
mesosphere/deimos
argv
141,513
LDU_FT/relekang/python-semantic-release/get_new_version
LDU_FT
[ "<BEGIN>\n## `parse_commit_message`", "Parses a commit message according to the 1.0 version of python-semantic-release. It expects\n a tag of some sort in the commit message and will use the rest of the first line as changelog\n content.", " :param message: A string of a commit message.\n :raises Un...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Calculates the next version based on the given bump level with semver. :param current_version: The version the package has now. :param level_bump: The level of the version number that should be bumped. Should be a `'major'`, `'minor'` or `'patch'`. :return: A string with the next ver...
"Calculates the next version based on the given bump level with semver.\n\n :param current_version: The version the package has now.\n :param level_bump: The level of the version number that should be bumped. Should be a `'major'`,\n `'minor'` or `'patch'`.\n :return: A string with the ne...
103
false
relekang/python-semantic-release
get_new_version
141,514
LDU_FT/JonathanRaiman/pytreebank/to_dict
LDU_FT
[ "<BEGIN>\n## `uproot`", "Take a subranch of a tree and deep-copy the children\n of this subbranch into a new LabeledTree\n<END>", "<BEGIN>\n## `lowercase`", "Lowercase all strings in this tree.\n Works recursively and in-place.\n<END>", "<BEGIN>\n## `to_dict`", "Dict format for use in Javasc...
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...
Dict format for use in Javascript / Jason Chuang's display technology.
"Dict format for use in Javascript / Jason Chuang's display technology."
46
false
JonathanRaiman/pytreebank
to_dict
141,515
LDU_FT/wdecoster/nanoplotter/make_layout
LDU_FT
[ "<BEGIN>\n## `check_valid_color`", "Check if the color provided by the user is valid.", " If color is invalid the default is returned.\n<END>", "<BEGIN>\n## `check_valid_format`", "Check if the specified figure format is valid.", " If format is invalid the default is returned.\n Probably installa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_layout API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Make the physical layout of the MinION flowcell. based on https://bioinformatics.stackexchange.com/a/749/681 returned as a numpy array
"Make the physical layout of the MinION flowcell.\n based on https://bioinformatics.stackexchange.com/a/749/681\n returned as a numpy array"
36
false
wdecoster/nanoplotter
make_layout
141,516
LDU_FT/j3ffhubb/pymarshal/marshal_dict
LDU_FT
[ "<BEGIN>\n## `factory`", "desc: >\n Creates a DocStringArg and recursively includes child\n docstrings if they are not JSON types.\n args:\n - name: name\n desc: The name of the argument\n type: str\n - name: desc\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshal_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshal_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Recursively marshal a Python object to a dict that can be passed to json.{dump,dumps}, a web client, or a web server, document database, etc... Args: obj: object, It's members can be nested Python objects which will be converted to dictionaries types: tuple...
"Recursively marshal a Python object to a dict\n that can be passed to json.{dump,dumps}, a web client,\n or a web server, document database, etc...\n\n Args:\n obj: object, It's members can be nested Python\n objects which will be converted to dictionaries\n types: ...
63
false
j3ffhubb/pymarshal
marshal_dict
141,517
LDU_FT/elehcimd/pynb/git_push
LDU_FT
[ "<BEGIN>\n## `get_func`", "Get function from module\n :param func_name: function name\n :param module_pathname: pathname to module\n :return:\n<END>", "<BEGIN>\n## `cell_hash`", "Compute cell hash based on cell index and cell content\n :param cell: cell to be hashed\n :param cell_index...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_push API. 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 git_push API. 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...
Push new version and corresponding tag to origin :return:
"Push new version and corresponding tag to origin\n :return:"
39
false
elehcimd/pynb
git_push
141,518
LDU_FT/nagius/snmp_passpersist/set
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the given string as an OID.", "\t\t>>> import snmp_passpersist as snmp\n\t\t>>> snmp.PassPersist.encode(\"hello\")\n\t\t'5.104.101.108.108.111'\n\t\t>>>\n<END>", "<BEGIN>\n## `cut_oid`", "Remove the base OID from the given string.", "\t\t>>> import snmp_passpersist as snmp\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Call the default or user setter function if available
"Call the default or user setter function if available"
38
false
nagius/snmp_passpersist
set
141,519
LDU_FT/fishtown-analytics/dbt/expect_comment_end
LDU_FT
[ "<BEGIN>\n## `patch`", "Given a ParsedNodePatch, add the new information to the node.\n<END>", "<BEGIN>\n## `build_edges`", "Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expect_comment_end 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 expect_comment_end 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...
Expect a comment end and return the match object.
"Expect a comment end and return the match object."
419
false
fishtown-analytics/dbt
expect_comment_end
141,520
LDU_FT/guaix-ucm/pyemir/overplot_boundaries_from_bounddict
LDU_FT
[ "<BEGIN>\n## `merge2images`", "Merge 2 EMIR images, averaging the common region.", " Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overplot_boundaries_from_bounddict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overplot_boundaries_from_bounddict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Overplot boundaries on current plot. Parameters ---------- ax : matplotlib axes Current plot axes. bounddict : JSON structure Structure employed to store bounddict information. micolors : list of char List with two characters corresponding to alternating colors for o...
"Overplot boundaries on current plot.\n\n Parameters\n ----------\n ax : matplotlib axes\n Current plot axes.\n bounddict : JSON structure\n Structure employed to store bounddict information.\n micolors : list of char\n List with two characters corresponding to alternating colors\n ...
282
false
guaix-ucm/pyemir
overplot_boundaries_from_bounddict
141,521
LDU_FT/wind-python/windpowerlib/plot_or_print
LDU_FT
[ "<BEGIN>\n## `reduce_wind_speed`", "r\"\"\"\n Reduces wind speed by a wind efficiency curve.", " The wind efficiency curves are provided in the windpowerlib and were\n calculated in the dena-Netzstudie II and in the work of Knorr\n (see [1]_ and [2]_).", " Parameters\n ----------\n wind_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_or_print API. 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_or_print API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
r""" Plots or prints power output and power (coefficient) curves. Parameters ---------- example_farm : WindFarm WindFarm object. example_farm_2 : WindFarm WindFarm object constant wind farm efficiency and coordinates.
"r\"\"\"\n Plots or prints power output and power (coefficient) curves.\n\n Parameters\n ----------\n example_farm : WindFarm\n WindFarm object.\n example_farm_2 : WindFarm\n WindFarm object constant wind farm efficiency and coordinates."
249
false
wind-python/windpowerlib
plot_or_print
141,522
LDU_FT/OCA/vertical-hotel/default_get
LDU_FT
[ "<BEGIN>\n## `_offset_format_timestamp1`", "Convert a source timeStamp string into a destination timeStamp string,\n attempting to apply the correct offset if both the server and local\n timeZone are recognized,or no offset at all if they aren't or if\n tz_offset is false (i.e. assuming they are both in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
To get default values for the object. @param self: The object pointer. @param fields: List of fields for which we want default values @return: A dictionary which of fields with values.
"To get default values for the object.\n @param self: The object pointer.\n @param fields: List of fields for which we want default values\n @return: A dictionary which of fields with values."
71
false
OCA/vertical-hotel
default_get
141,523
LDU_FT/kipe/enocean/set_values
LDU_FT
[ "<BEGIN>\n## `_get_raw`", "Get raw data as integer, based on offset and size\n<END>", "<BEGIN>\n## `_get_enum`", "Get enum value, based on the data in XML\n<END>", "<BEGIN>\n## `_get_boolean`", "Get boolean value, based on the data in XML\n<END>", "<BEGIN>\n## `_set_value`", "set given numeric value t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Update data based on data contained in properties
"Update data based on data contained in properties"
38
false
kipe/enocean
set_values
141,524
LDU_FT/SectorLabs/django-localized-fields/formfield
LDU_FT
[ "<BEGIN>\n## `save`", "Saves this model instance to the database.\n<END>", "<BEGIN>\n## `to_python`", "Converts the value from a database value into a Python value.\n<END>", "<BEGIN>\n## `get_prep_value`", "Gets the value in a format to store into the database.\n<END>", "<BEGIN>\n## `formfield`", "Get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formfield API. 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 formfield API. 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...
Gets the form field associated with this field.
"Gets the form field associated with this field."
117
false
SectorLabs/django-localized-fields
formfield
141,525
LDU_FT/jjjake/iamine/mine_items
LDU_FT
[ "<BEGIN>\n## `get_global_rate_limit`", "Get the global rate limit per client.", " :rtype: int\n :returns: The global rate limit for each client.\n<END>", "<BEGIN>\n## `_rate_limited`", "A rate limit decorator for limiting the number of times the\n decorated :class:`Miner` method can be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mine_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mine_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Mine metadata from Archive.org items. :param identifiers: Archive.org identifiers to be mined. :type identifiers: iterable :param params: URL parameters to send with each metadata request. :type params: dict :param callback: A callback function to be cal...
"Mine metadata from Archive.org items.\n\n :param identifiers: Archive.org identifiers to be mined.\n :type identifiers: iterable\n\n :param params: URL parameters to send with each metadata\n request.\n :type params: dict\n\n :param callback: A callback function...
48
false
jjjake/iamine
mine_items
141,526
LDU_FT/kdeldycke/maildir-deduplicate/validate_regexp
LDU_FT
[ "<BEGIN>\n## `check_differences`", "In-depth check of mail differences.", " Compare all mails of the duplicate set with each other, both in size\n and content. Raise an error if we're not within the limits imposed by\n the threshold setting.\n<END>", "<BEGIN>\n## `diff`", "Return differ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_regexp API. 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_regexp API. 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 compile regular expression.
"Validate and compile regular expression."
68
false
kdeldycke/maildir-deduplicate
validate_regexp
141,527
LDU_FT/roaet/eh/make_sample
LDU_FT
[ "<BEGIN>\n## `make_sample`", "Generate the theme roller sample markdown\n<END>", "<BEGIN>\n## `col`", "print col('foo', 124) -> red 'foo' on the terminal\n c = color, s the value to colorize\n<END>", "<BEGIN>\n## `rewrap`", "Reasonably smart rewrapping checking punctuations\n<END>", "<BEGIN>\n## `spl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_sample API. 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 make_sample API. 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...
Generate the theme roller sample markdown
"Generate the theme roller sample markdown"
35
false
roaet/eh
make_sample
141,528
LDU_FT/phodge/homely/run
LDU_FT
[ "<BEGIN>\n## `clonetopath`", "Clone the repo at <self.pushablepath> into <dest>\n Note that if self.pushablepath is None, then self.path will be used\n instead.\n<END>", "<BEGIN>\n## `_removecleaner`", "Remove the cleaner from the list if it already exists. Returns True if\n the cleaner w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
A blocking wrapper around subprocess.Popen(), but with a simpler interface for the stdout/stderr arguments: stdout=False / stderr=False stdout/stderr will be redirected to /dev/null (or discarded in some other suitable manner) stdout=True / stderr=True stdout/stderr will be captured...
"A blocking wrapper around subprocess.Popen(), but with a simpler interface\n for the stdout/stderr arguments:\n\n stdout=False / stderr=False\n stdout/stderr will be redirected to /dev/null (or discarded in some\n other suitable manner)\n stdout=True / stderr=True\n stdout/stderr will be ...
49
false
phodge/homely
run
141,529
LDU_FT/tobami/littlechef/_synchronize_node
LDU_FT
[ "<BEGIN>\n## `save_config`", "Saves node configuration\n if no nodes/hostname.json exists, or force=True, it creates one\n it also saves to tmp_node.json\n<END>", "<BEGIN>\n## `_get_ipaddress`", "Adds the ipaddress attribute to the given node object if not already\n present and it is correctly given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _synchronize_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _synchronize_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...
Performs the Synchronize step of a Chef run: Uploads all cookbooks, all roles and all databags to a node and add the patch for data bags Returns the node object of the node which is about to be configured, or None if this node object cannot be found.
"Performs the Synchronize step of a Chef run:\n Uploads all cookbooks, all roles and all databags to a node and add the\n patch for data bags\n\n Returns the node object of the node which is about to be configured,\n or None if this node object cannot be found."
96
false
tobami/littlechef
_synchronize_node
141,530
LDU_FT/pypa/setuptools/include_feature
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include_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 e...
Request inclusion of feature named 'name
"Request inclusion of feature named 'name"
565
false
pypa/setuptools
include_feature
141,531
LDU_FT/Godley/MuseParse/GetNotation
LDU_FT
[ "<BEGIN>\n## `get`", "method to fetch all contents as a list", " :return: list\n<END>", "<BEGIN>\n## `toLily`", "Method which converts the object instance and its attributes to a string of lilypond code", " :return: str of lilypond code\n<END>", "<BEGIN>\n## `Find`", "method for finding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetNotation API. 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 GetNotation API. 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...
method which searches for notation from <type> list at position <id> :param id: the number to look for - i.e if you're looking for the first one in wrap notation, id will be 0 :param type: post, pre or wrap :return: the notation class searched for or none
"method which searches for notation from <type> list at position <id>\n :param id: the number to look for - i.e if you're looking for the first one in wrap notation, id will be 0\n :param type: post, pre or wrap\n :return: the notation class searched for or none"
113
false
Godley/MuseParse
GetNotation
141,532
LDU_FT/aalireza/SimpleAudioIndexer/index_audio
LDU_FT
[ "<BEGIN>\n## `set_username_ibm`", "Parameters\n ----------\n username_ibm : str", " Raises\n ------\n Exception\n If mode is not `ibm`\n<END>", "<BEGIN>\n## `set_password_ibm`", "Parameters\n ----------\n password_ibm : str", " Raises\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_audio API. 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 index_audio API. 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...
Calls the correct indexer function based on the mode. If mode is `ibm`, _indexer_audio_ibm is called which is an interface for Watson. Note that some of the explaination of _indexer_audio_ibm's arguments is from [1]_ If mode is `cmu`, _indexer_audio_cmu is called which is an interface ...
"Calls the correct indexer function based on the mode.\n\n If mode is `ibm`, _indexer_audio_ibm is called which is an interface\n for Watson. Note that some of the explaination of _indexer_audio_ibm's\n arguments is from [1]_\n\n If mode is `cmu`, _indexer_audio_cmu is called which is an int...
159
false
aalireza/SimpleAudioIndexer
index_audio
141,533
LDU_FT/gmr/helper/_get_pidfile_path
LDU_FT
[ "<BEGIN>\n## `operating_system`", "Return a string identifying the operating system the application\n is running on.", " :rtype: str\n<END>", "<BEGIN>\n## `start`", "Daemonize if the process is not already running.\n<END>", "<BEGIN>\n## `gid`", "Return the group id that the daemon will run with", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_pidfile_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_pidfile_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return the normalized path for the pidfile, raising an exception if it can not written to. :return: str :raises: ValueError :raises: OSError
"Return the normalized path for the pidfile, raising an\n exception if it can not written to.\n\n :return: str\n :raises: ValueError\n :raises: OSError"
77
false
gmr/helper
_get_pidfile_path
141,534
LDU_FT/WZBSocialScienceCenter/tmtoolkit/get_most_salient_words
LDU_FT
[ "<BEGIN>\n## `compute_models_parallel`", "Compute several Topic Models in parallel using the \"lda\" package. Use a single or multiple document term matrices\n `data` and optionally a list of varying parameters `varying_parameters`. Pass parameters in `constant_parameters`\n dict to each model calculation. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_salient_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_salient_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....
Order the words from `vocab` by "saliency score" (Chuang et al. 2012) from most to least salient. Optionally only return the `n` most salient words. J. Chuang, C. Manning, J. Heer 2012: "Termite: Visualization Techniques for Assessing Textual Topic Models"
"Order the words from `vocab` by \"saliency score\" (Chuang et al. 2012) from most to least salient. Optionally only\n return the `n` most salient words.\n\n J. Chuang, C. Manning, J. Heer 2012: \"Termite: Visualization Techniques for Assessing Textual Topic Models\""
135
false
WZBSocialScienceCenter/tmtoolkit
get_most_salient_words
141,535
LDU_FT/melizalab/arf/append_data
LDU_FT
[ "<BEGIN>\n## `open_file`", "Open an ARF file, creating as necessary.", " Use this instead of h5py.File to ensure that root-level attributes and group\n creation property lists are set correctly.\n<END>", "<BEGIN>\n## `create_entry`", "Create a new ARF entry under group, setting required attributes.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
Append data to dset along axis 0. Data must be a single element or a 1D array of the same type as the dataset (including compound datatypes).
"Append data to dset along axis 0. Data must be a single element or\n a 1D array of the same type as the dataset (including compound datatypes)."
45
false
melizalab/arf
append_data
141,536
LDU_FT/amanusk/s-tui/invoke
LDU_FT
[ "<BEGIN>\n## `get_label_scale`", "Dynamically change the scale of the graph (y lable)\n<END>", "<BEGIN>\n## `calculate_bar_widths`", "Return a list of bar widths, one for each bar in data.", " If self.bar_width is None this implementation will stretch\n the bars across the available space spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke API. 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 invoke API. 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 ...
Run callback, optionally passing a variable number of arguments `callback_args`
"Run callback, optionally passing a variable number\n of arguments `callback_args`"
70
false
amanusk/s-tui
invoke
141,537
LDU_FT/GuyAllard/markov_clustering/modularity
LDU_FT
[ "<BEGIN>\n## `is_undirected`", "Determine if the matrix reprensents a directed graph", " :param matrix: The matrix to tested\n :returns: boolean\n<END>", "<BEGIN>\n## `convert_to_adjacency_matrix`", "Converts transition matrix into adjacency matrix", " :param matrix: The matrix to be converted\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modularity API. 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 modularity API. 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...
Compute the modularity :param matrix: The adjacency matrix :param clusters: The clusters returned by get_clusters :returns: modularity value
"Compute the modularity\n\n :param matrix: The adjacency matrix\n :param clusters: The clusters returned by get_clusters\n :returns: modularity value"
41
false
GuyAllard/markov_clustering
modularity
141,538
LDU_FT/Knio/pynmea2/readline
LDU_FT
[ "<BEGIN>\n## `next`", "consume `data` (if given, or calls `stream.read()` if `stream` was given\r\n in the constructor) and yield a list of `NMEASentence` objects parsed\r\n from the stream (may be empty)\n<END>", "<BEGIN>\n## `parse`", "parse(line)\r", " Parses a string representing a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readline API. 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 readline API. 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...
Return the next NMEASentence in the file object :return: NMEASentence
"Return the next NMEASentence in the file object\n :return: NMEASentence"
16
false
Knio/pynmea2
readline
141,539
LDU_FT/sio2project/filetracker/_read_stream_for_size
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream_for_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_stream_for_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reads a stream discarding the data read and returns its size.
"Reads a stream discarding the data read and returns its size."
84
false
sio2project/filetracker
_read_stream_for_size
141,540
LDU_FT/ChristianTremblay/BAC0/backup_histories_df
LDU_FT
[ "<BEGIN>\n## `sim`", "Simulate I/O points by setting the Out_Of_Service property, then doing a \r\n WriteProperty to the point's Present_Value.\r", " :param args: String with <addr> <type> <inst> <prop> <value> [ <indx> ] [ <priority> ]\n<END>", "<BEGIN>\n## `out_of_service`", "Set the Out_Of_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup_histories_df 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 backup_histories_df 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...
Build a dataframe of the point histories
"Build a dataframe of the point histories"
73
false
ChristianTremblay/BAC0
backup_histories_df
141,541
LDU_FT/blockcypher/blockcypher-python/_long_to_bytes
LDU_FT
[ "<BEGIN>\n## `script_to_address`", "Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>", "<BEGIN>\n## `get_address_details`", "Takes an address and coin_symbol...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _long_to_bytes API. 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 _long_to_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Convert a long to a bytestring For use in python version prior to 3.2 Source: http://bugs.python.org/issue16580#msg177208
"Convert a long to a bytestring\n For use in python version prior to 3.2\n Source:\n http://bugs.python.org/issue16580#msg177208"
163
false
blockcypher/blockcypher-python
_long_to_bytes
141,542
LDU_FT/ChristianTremblay/BAC0/update_log_level
LDU_FT
[ "<BEGIN>\n## `sim`", "Simulate I/O points by setting the Out_Of_Service property, then doing a \r\n WriteProperty to the point's Present_Value.\r", " :param args: String with <addr> <type> <inst> <prop> <value> [ <indx> ] [ <priority> ]\n<END>", "<BEGIN>\n## `out_of_service`", "Set the Out_Of_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_log_level API. 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 update_log_level API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Typical usage : Normal BAC0.log_level(file='warning', stdout='warning', stderr='error') Info on console....but not in file BAC0.log_level(file='warning', stdout='info', stderr='error') Debug BAC0.log_level(file='debug', stdout='info', stderr='error')
"Typical usage : \n Normal\n BAC0.log_level(file='warning', stdout='warning', stderr='error')\n Info on console....but not in file\n BAC0.log_level(file='warning', stdout='info', stderr='error')\n Debug\n BAC0.log_level(file='debug', stdout='info', stderr='error')"
73
false
ChristianTremblay/BAC0
update_log_level
141,543
LDU_FT/bububa/pyTOP/update
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
xxxxx.xxxxx.adgroup.update =================================== 更新一个推广组的信息,可以设置默认出价、是否上线、非搜索出价、非搜索是否使用默认出价
"xxxxx.xxxxx.adgroup.update\n ===================================\n 更新一个推广组的信息,可以设置默认出价、是否上线、非搜索出价、非搜索是否使用默认出价"
619
false
bububa/pyTOP
update
141,544
LDU_FT/campbellr/smashrun-client/delete_activity
LDU_FT
[ "<BEGIN>\n## `to_timestamp`", "Convert a datetime object to a unix timestamp.", " Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.", " If the passed in object is already a timestamp, then that value is\n simply returned unmodified.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_activity API. 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 delete_activity API. 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...
Delete an activity (run). :param id_num: The activity ID to delete
"Delete an activity (run).\n\n :param id_num: The activity ID to delete"
41
false
campbellr/smashrun-client
delete_activity
141,545
LDU_FT/nuagenetworks/bambou/get_default_value
LDU_FT
[ "<BEGIN>\n## `start`", "Starts listening to events.", " Args:\n timeout (int): number of seconds before timeout. Used for testing purpose only.\n root_object (bambou.NURESTRootObject): NURESTRootObject object that is listening. Used for testing purpose only.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get a default value of the attribute_type
"Get a default value of the attribute_type"
177
false
nuagenetworks/bambou
get_default_value
141,546
LDU_FT/stephantul/somber/_grid_distance
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _grid_distance API. 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 _grid_distance API. 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...
Calculate the distance grid for a single index position. This is pre-calculated for fast neighborhood calculations later on (see _calc_influence).
"Calculate the distance grid for a single index position.\n\n This is pre-calculated for fast neighborhood calculations\n later on (see _calc_influence)."
123
false
stephantul/somber
_grid_distance
141,547
LDU_FT/hvishwanath/libpaas/getInstance
LDU_FT
[ "<BEGIN>\n## `getInstance`", "Returns a singleton instance of the class\n<END>", "<BEGIN>\n## `_verify_or_create_domain`", "Verify that a domain with the name self.domain exists. Else create it.\n :return:\n<END>", "<BEGIN>\n## `getInstance`", "Returns a singleton instance of the class\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getInstance API. 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 getInstance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a singleton instance of the class
"Returns a singleton instance of the class"
10
false
hvishwanath/libpaas
getInstance
141,548
LDU_FT/onnx/onnx/save_model
LDU_FT
[ "<BEGIN>\n## `run_node`", "Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Saves the ModelProto to the specified path. @params proto should be a in-memory ModelProto f can be a file-like object (has "write" function) or a string containing a file name format is for future use
"Saves the ModelProto to the specified path.\n\n @params\n proto should be a in-memory ModelProto\n f can be a file-like object (has \"write\" function) or a string containing a file name\n format is for future use"
72
false
onnx/onnx
save_model
141,549
LDU_FT/shad7/tvrenamer/_iter_log_inner
LDU_FT
[ "<BEGIN>\n## `execute`", "Renames a file based on the name generated using metadata.", " :param str filename: absolute path and filename of original file\n :param str formatted_name: absolute path and new filename\n<END>", "<BEGIN>\n## `get_series_by_name`", "Perform lookup for series", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _iter_log_inner API. 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 _iter_log_inner API. 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...
Iterate over --oneline log entries. This parses the output intro a structured form but does not apply presentation logic to the output - making it suitable for different uses. :return: An iterator of (hash, tags_set, 1st_line) tuples.
"Iterate over --oneline log entries.\n\n This parses the output intro a structured form but does not apply\n presentation logic to the output - making it suitable for different\n uses.\n\n :return: An iterator of (hash, tags_set, 1st_line) tuples."
135
false
shad7/tvrenamer
_iter_log_inner
141,550
LDU_FT/architv/soccer-cli/league_scores
LDU_FT
[ "<BEGIN>\n## `get_team_scores`", "Queries the API and gets the particular team scores\n<END>", "<BEGIN>\n## `get_standings`", "Queries the API and gets the standings for a particular league\n<END>", "<BEGIN>\n## `get_league_scores`", "Queries the API and fetches the scores for fixtures\n based upon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the league_scores API. 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 league_scores API. 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...
Store output of fixtures based on league and time to a CSV file
"Store output of fixtures based on league and time to a CSV file"
50
false
architv/soccer-cli
league_scores
141,551
LDU_FT/emencia/emencia-django-forum/save_model
LDU_FT
[ "<BEGIN>\n## `get_first_post`", "Retourne le premier post en date, celui créé lors de la création du fil\n<END>", "<BEGIN>\n## `save`", "Fill 'created' and 'modified' attributes on first create\n<END>", "<BEGIN>\n## `get_paginated_urlargs`", "Return url arguments to retrieve the Post in a paginated list\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Surclasse la méthode de sauvegarde de l'admin du modèle pour y rajouter automatiquement l'auteur qui créé l'objet
"Surclasse la méthode de sauvegarde de l'admin du modèle pour y \n rajouter automatiquement l'auteur qui créé l'objet"
23
false
emencia/emencia-django-forum
save_model
141,552
LDU_FT/kmike/port-for/port_ranges
LDU_FT
[ "<BEGIN>\n## `_write_unassigned_ranges`", "Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>", "<BEGIN>\n## `_unassigned_ports`", "Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the port_ranges API. 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 port_ranges API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a list of ephemeral port ranges for current machine.
"Returns a list of ephemeral port ranges for current machine."
31
false
kmike/port-for
port_ranges
141,553
LDU_FT/jaegertracing/jaeger-client-python/_create_new_thread_loop
LDU_FT
[ "<BEGIN>\n## `_set_client_id`", "Method for tracer to set client ID of throttler.\n<END>", "<BEGIN>\n## `_init_polling`", "Bootstrap polling for throttler.", " To avoid spiky traffic from throttler clients, we use a random delay\n before the first poll.\n<END>", "<BEGIN>\n## `local_ip`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_new_thread_loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_new_thread_loop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create a daemonized thread that will run Tornado IOLoop. :return: the IOLoop backed by the new thread.
"Create a daemonized thread that will run Tornado IOLoop.\n :return: the IOLoop backed by the new thread."
46
false
jaegertracing/jaeger-client-python
_create_new_thread_loop
141,554
LDU_FT/stitchfix/fauxtograph/load
LDU_FT
[ "<BEGIN>\n## `calc_fc_size`", "Calculates shape of data after encoding.", " Parameters\n ----------\n img_height : int\n Height of input image.\n img_width : int\n Width of input image.", " Returns\n -------\n encoded_shape : tuple(int)\n Gives back 3-tuple with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Loads in model as a class instance with with the specified model and optimizer states. Parameters ---------- enc : str Path to the encoder state file. dec : str Path to the decoder/generator state file. disc : str Path to the discri...
"Loads in model as a class instance with with the specified\n model and optimizer states.\n\n Parameters\n ----------\n enc : str\n Path to the encoder state file.\n dec : str\n Path to the decoder/generator state file.\n disc : str\n Path to...
61
false
stitchfix/fauxtograph
load
141,555
LDU_FT/MoseleyBioinformaticsLab/ctfile/_build
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "A lexical analyzer for the `CTfile` formatted files.", " :param str text: `CTfile` formatted text.\n :return: Tuples of data.\n :rtype: py:class:`~collections.namedtuple`\n<END>", "<BEGIN>\n## `_molfile`", "Process ``Molfile``.", " :param stream: Queue containing li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build API. 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 _build API. 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 ...
Build :class:`~ctfile.ctfile.Molfile` instance. :return: :class:`~ctfile.ctfile.Molfile` instance. :rtype: :class:`~ctfile.ctfile.Molfile`.
"Build :class:`~ctfile.ctfile.Molfile` instance.\n\n :return: :class:`~ctfile.ctfile.Molfile` instance.\n :rtype: :class:`~ctfile.ctfile.Molfile`."
93
false
MoseleyBioinformaticsLab/ctfile
_build
141,556
LDU_FT/annayqho/TheCannon/_cont_norm_running_quantile_mp
LDU_FT
[ "<BEGIN>\n## `gen_cannon_grad_spec`", "Generate Cannon gradient spectra", " Parameters\n ----------\n labels: default values for [teff, logg, feh, cfe, nfe, afe, ak]\n choose: val of cfe or nfe, whatever you're varying\n low: lowest val of cfe or nfe, whatever you're varying\n high: highest va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cont_norm_running_quantile_mp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cont_norm_running_quantile_mp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
The same as _cont_norm_running_quantile() above, but using multi-processing. Bo Zhang (NAOC)
"The same as _cont_norm_running_quantile() above,\n but using multi-processing.\n\n Bo Zhang (NAOC)"
188
false
annayqho/TheCannon
_cont_norm_running_quantile_mp
141,557
LDU_FT/xtream1101/cutil/norm_path
LDU_FT
[ "<BEGIN>\n## `cprint`", "Clear line, then reprint on same line\n :param cstr: string to print on current line\n<END>", "<BEGIN>\n## `_check_values`", "Check if values need to be converted before they get mogrify'd\n<END>", "<BEGIN>\n## `insert`", "Create a bulk insert statement which is much faster...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:return: Proper path for os with vars expanded out
":return: Proper path for os with vars expanded out"
45
false
xtream1101/cutil
norm_path
141,558
LDU_FT/danielhrisca/asammdf/get_text_v3
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_v3 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_text_v3 API. 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...
faster way to extract strings from mdf versions 2 and 3 TextBlock Parameters ---------- address : int TextBlock address stream : handle file IO handle Returns ------- text : str unicode string
"faster way to extract strings from mdf versions 2 and 3 TextBlock\n\n Parameters\n ----------\n address : int\n TextBlock address\n stream : handle\n file IO handle\n\n Returns\n -------\n text : str\n unicode string"
381
false
danielhrisca/asammdf
get_text_v3
141,559
LDU_FT/marrow/mailer/_build_date_header_string
LDU_FT
[ "<BEGIN>\n## `validate_or_raise`", "Some people would condemn this whole module screaming:\n \"Don't return success codes, use exceptions!\"\n This method allows them to be happy, too.\n<END>", "<BEGIN>\n## `_apply_common_rules`", "This method contains the rules that must be applied to both the\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_date_header_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_date_header_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Gets the date_value (may be None, basestring, float or datetime.datetime instance) and returns a valid date string as per RFC 2822.
"Gets the date_value (may be None, basestring, float or\n\t\tdatetime.datetime instance) and returns a valid date string as per\n\t\tRFC 2822."
28
false
marrow/mailer
_build_date_header_string
141,560
LDU_FT/EliotBerriot/django-dynamic-preferences/get_object
LDU_FT
[ "<BEGIN>\n## `by_name`", "Return a dictionary with preferences identifiers and values, but without the section name in the identifier\n<END>", "<BEGIN>\n## `get_cache_key`", "Return the cache key corresponding to a given preference\n<END>", "<BEGIN>\n## `from_cache`", "Return a preference raw_value from c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the object the view is displaying. You may want to override this if you need to provide non-standard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf.
"Returns the object the view is displaying.\n You may want to override this if you need to provide non-standard\n queryset lookups. Eg if objects are referenced using multiple\n keyword arguments in the url conf."
64
false
EliotBerriot/django-dynamic-preferences
get_object
141,561
LDU_FT/ssato/python-anyconfig/parse_list
LDU_FT
[ "<BEGIN>\n## `_load_plugins_itr`", ".. seealso:: the doc of :func:`load_plugins`\n<END>", "<BEGIN>\n## `select_by_key`", ":param items: A list of tuples of keys and values, [([key], val)]\n :return: A list of tuples of key and values, [(key, [val])]", " >>> select_by_key([([\"a\", \"aaa\"], 1), ([\"b\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Simple parser to parse expressions reprensent some list values. :param str_: a string to parse :param sep: Char to separate items of list :return: [Int | Bool | String] >>> parse_list("") [] >>> parse_list("1") [1] >>> parse_list("a,b") ['a', 'b'] >>> parse_list("1,2") [1, ...
"Simple parser to parse expressions reprensent some list values.\n\n :param str_: a string to parse\n :param sep: Char to separate items of list\n :return: [Int | Bool | String]\n\n >>> parse_list(\"\")\n []\n >>> parse_list(\"1\")\n [1]\n >>> parse_list(\"a,b\")\n ['a', 'b']\n >>> parse_l...
534
false
ssato/python-anyconfig
parse_list
141,562
LDU_FT/recurly/recurly-client-python/create_usage
LDU_FT
[ "<BEGIN>\n## `error_class_for_http_status`", "Return the appropriate `ResponseError` subclass for the given\n HTTP status code.\n<END>", "<BEGIN>\n## `response_doc`", "The XML document received from the service.\n<END>", "<BEGIN>\n## `transaction_error_code`", "The machine-readable error code for a tra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_usage API. 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 create_usage API. 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...
Record the usage on the given subscription add on and update the usage object with returned xml
"Record the usage on the given subscription add on and update the\n usage object with returned xml"
103
false
recurly/recurly-client-python
create_usage
141,563
LDU_FT/abingham/docopt-subcommands/add_command
LDU_FT
[ "<BEGIN>\n## `command`", "A decorator to register a subcommand with the global `Subcommands` instance.\n<END>", "<BEGIN>\n## `main`", "Top-level driver for creating subcommand-based programs.", " Args:\n program: The name of your program.\n version: The version string for your program.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add a subcommand `name` which invokes `handler`.
"Add a subcommand `name` which invokes `handler`."
14
false
abingham/docopt-subcommands
add_command
141,564
LDU_FT/Nic30/hwtGraph/countDirectlyConnected
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 countDirectlyConnected 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 countDirectlyConnected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Count how many ports are directly connected to other nodes :return: cumulative sum of port counts
"Count how many ports are directly connected to other nodes\n\n :return: cumulative sum of port counts"
65
false
Nic30/hwtGraph
countDirectlyConnected
141,565
LDU_FT/saulshanabrook/django-simpleimages/transform_field
LDU_FT
[ "<BEGIN>\n## `track_model`", "Perform designated transformations on model, when it saves.", " Calls :py:func:`~simpleimages.utils.perform_transformation`\n on every model saves using\n :py:data:`django.db.models.signals.post_save`.", " It uses the ``update_fields`` kwarg to tell what fields it sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Does an image transformation on a instance. It will get the image from the source field attribute of the instnace, then call the transformation function with that instance, and finally save that transformed image into the destination field attribute of the instance. .. note:: If the source...
"Does an image transformation on a instance. It will get the image\n from the source field attribute of the instnace, then call\n the transformation function with that instance, and finally\n save that transformed image into the destination field attribute\n of the instance.\n\n .. note::\n\n If t...
37
false
saulshanabrook/django-simpleimages
transform_field
141,566
LDU_FT/quikmile/trellio/log
LDU_FT
[ "<BEGIN>\n## `publish`", "publish the return value of this function as a message from this endpoint\n<END>", "<BEGIN>\n## `xsubscribe`", "Used to listen for publications from a specific endpoint of a service. If multiple instances\n subscribe to an endpoint, only one of them receives the event. And the pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. 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 log API. 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...
logs parameters and result - takes no arguments
"logs parameters and result - takes no arguments"
47
false
quikmile/trellio
log
141,567
LDU_FT/twosigma/marbles/assertFileTypeEqual
LDU_FT
[ "<BEGIN>\n## `get_stack_info`", "Capture locals, module name, filename, and line number from the\n stacktrace to provide the source of the assertion error and\n formatted note.\n<END>", "<BEGIN>\n## `assertBetween`", "Fail if ``obj`` is not between ``lower`` and ``upper``.", " If ``strict=True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertFileTypeEqual 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 assertFileTypeEqual 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...
Fail if ``filename`` does not have the given ``extension`` as determined by the ``==`` operator. Parameters ---------- filename : str, bytes, file-like extension : str, bytes msg : str If not provided, the :mod:`marbles.mixins` or :mod:`unittest` ...
"Fail if ``filename`` does not have the given ``extension``\n as determined by the ``==`` operator.\n\n Parameters\n ----------\n filename : str, bytes, file-like\n extension : str, bytes\n msg : str\n If not provided, the :mod:`marbles.mixins` or\n :mod:`...
199
false
twosigma/marbles
assertFileTypeEqual
141,568
LDU_FT/jcrist/skein/get_nodes
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes API. 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_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get the status of nodes in the cluster. Parameters ---------- states : sequence of NodeState, optional If provided, nodes will be filtered to these node states. Default is all states. Returns ------- reports : list of NodeReport Examples...
"Get the status of nodes in the cluster.\n\n Parameters\n ----------\n states : sequence of NodeState, optional\n If provided, nodes will be filtered to these node states. Default\n is all states.\n\n Returns\n -------\n reports : list of NodeReport\n\n ...
153
false
jcrist/skein
get_nodes
141,569
LDU_FT/KeplerGO/K2fov/plotSpacecraftYAxis
LDU_FT
[ "<BEGIN>\n## `angSepVincenty`", "Vincenty formula for distances on a sphere\n<END>", "<BEGIN>\n## `parse_file`", "Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>", "<BEGIN>\n## `K2onSilicon`", "Checks whether targets are on silicon during a given campaign.", " This function wil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plotSpacecraftYAxis 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 plotSpacecraftYAxis 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...
Plot a line pointing in the direction of the spacecraft y-axis (i.e normal to the solar panel
"Plot a line pointing in the direction of the spacecraft\n y-axis (i.e normal to the solar panel"
185
false
KeplerGO/K2fov
plotSpacecraftYAxis
141,570
LDU_FT/santosjorge/cufflinks/add_macd
LDU_FT
[ "<BEGIN>\n## `to_df`", "Extracts the data from a Plotly Figure", " Parameters\n ----------\n figure : plotly_figure\n Figure from which data will be \n extracted", " Returns a DataFrame or list of DataFrame\n<END>", "<BEGIN>\n## `to_rgba`", "Converts from hex|rgb ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_macd API. 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_macd API. 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 Moving Average Convergence Divergence (MACD) study to QuantFigure.studies Parameters: fast_period : int MACD Fast Period slow_period : int MACD Slow Period signal_period : int MACD Signal Period column :string Defines the data column name that contains the data over which the stu...
"Add Moving Average Convergence Divergence (MACD) study to QuantFigure.studies\n\n\t\tParameters:\n\t\t\tfast_period : int\n\t\t\t\tMACD Fast Period\n\t\t\tslow_period : int\n\t\t\t\tMACD Slow Period\n\t\t\tsignal_period : int\n\t\t\t\tMACD Signal Period\n\t\t\tcolumn :string\n\t\t\t\tDefines the data column name that ...
328
false
santosjorge/cufflinks
add_macd
141,571
LDU_FT/AshleySetter/optoanalysis/calc_temp
LDU_FT
[ "<BEGIN>\n## `InterpretWaveform`", "Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_temp API. 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 calc_temp API. 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...
Calculates the temperature of a data set relative to a reference. The reference is assumed to be at 300K. Parameters ---------- Data_ref : DataObject Reference data set, assumed to be 300K Data : DataObject Data object to have the temperature calculated for Returns ------- ...
"Calculates the temperature of a data set relative to a reference.\n The reference is assumed to be at 300K.\n\n Parameters\n ----------\n Data_ref : DataObject\n Reference data set, assumed to be 300K\n Data : DataObject\n Data object to have the temperature calculated for\n\n Returns\n...
402
false
AshleySetter/optoanalysis
calc_temp
141,572