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/ozgurgunes/django-manifest/clean_email
LDU_FT
[ "<BEGIN>\n## `create_user`", "A simple wrapper that creates a new :class:`User`.", " :param username:\n String containing the username of the new user.", " :param email:\n String containing the email address of the new user.", " :param password:\n String...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Validate that the email is not already registered with another user.
"Validate that the email is not already registered with another user."
121
false
ozgurgunes/django-manifest
clean_email
22,273
LDU_FT/PyCQA/pylint-django/foreign_key_sets
LDU_FT
[ "<BEGIN>\n## `register`", "Required method to auto register this checker.\n<END>", "<BEGIN>\n## `ignore_import_warnings_for_related_fields`", "Replaces the leave_module method on the VariablesChecker class to\n prevent unused-import warnings which are caused by the ForeignKey\n and OneToOneField transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the foreign_key_sets API. 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 foreign_key_sets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
When a Django model has a ForeignKey to another model, the target of the foreign key gets a '<modelname>_set' attribute for accessing a queryset of the model owning the foreign key - eg: class ModelA(models.Model): pass class ModelB(models.Model): a = models.ForeignKey(ModelA) Now...
"When a Django model has a ForeignKey to another model, the target\n of the foreign key gets a '<modelname>_set' attribute for accessing\n a queryset of the model owning the foreign key - eg:\n\n class ModelA(models.Model):\n pass\n\n class ModelB(models.Model):\n a = models.ForeignKey(ModelA)...
32
false
PyCQA/pylint-django
foreign_key_sets
22,274
LDU_FT/fulfilio/fulfil-python-api/get
LDU_FT
[ "<BEGIN>\n## `refresh_context`", "Get the default context of the user and save it\n<END>", "<BEGIN>\n## `login`", "Attempts a login to the remote server\n and on success returns user id and session\n or None", " Warning: Do not depend on this. This will be deprecated\n with SSO."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return an instance based on the given primary key identifier, or None if not found. This returns a record whether active or not.
"Return an instance based on the given primary key identifier,\n or None if not found.\n\n This returns a record whether active or not."
79
false
fulfilio/fulfil-python-api
get
22,275
LDU_FT/viveksck/changepoint/parallelize_func
LDU_FT
[ "<BEGIN>\n## `estimate_cp`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `estimate_cp_pval`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `get_ts_stats_significance`", "Returns the statistics, pvalues and the actual number of bootstrap\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallelize_func API. 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 parallelize_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parallelize a function over each element of an iterable.
"Parallelize a function over each element of an iterable."
28
false
viveksck/changepoint
parallelize_func
22,276
LDU_FT/tango-controls/pytango/is_bool
LDU_FT
[ "<BEGIN>\n## `get_object_executor`", "Returns the proper executor for the given object.", " If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_bool API. 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 is_bool API. 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...
Tells if the given tango type is boolean :param tg_type: tango type :type tg_type: :class:`tango.CmdArgType` :param inc_array: (optional, default is False) determines if include array in the list of checked types :type inc_array: :py:obj:`bool` :return: True if the given tang...
"Tells if the given tango type is boolean\n\n :param tg_type: tango type\n :type tg_type: :class:`tango.CmdArgType`\n :param inc_array: (optional, default is False) determines if include array\n in the list of checked types\n :type inc_array: :py:obj:`bool`\n\n :return: True if the g...
577
false
tango-controls/pytango
is_bool
22,277
LDU_FT/LuminosoInsight/wordfreq/casefold_with_i_dots
LDU_FT
[ "<BEGIN>\n## `simple_tokenize`", "Tokenize the given text using a straightforward, Unicode-aware token\n expression.", " The expression mostly implements the rules of Unicode Annex #29 that\n are contained in the `regex` module's word boundary matching, including\n the refinement that splits words b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the casefold_with_i_dots 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 casefold_with_i_dots API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert capital I's and capital dotted İ's to lowercase in the way that's appropriate for Turkish and related languages, then case-fold the rest of the letters.
"Convert capital I's and capital dotted İ's to lowercase in the way\n that's appropriate for Turkish and related languages, then case-fold\n the rest of the letters."
139
false
LuminosoInsight/wordfreq
casefold_with_i_dots
22,278
LDU_FT/farshidce/touchworks-python/search_patients
LDU_FT
[ "<BEGIN>\n## `get_token`", "get the security token by connecting to TouchWorks API\n<END>", "<BEGIN>\n## `_token_valid`", "checks if the token cached is valid or has expired by comparing\n the time token was created with current time\n :return: True if token has not expired yet and False is toke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_patients API. 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 search_patients API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
invokes TouchWorksMagicConstants.ACTION_SEARCH_PATIENTS action :return: JSON response
"invokes TouchWorksMagicConstants.ACTION_SEARCH_PATIENTS action\n :return: JSON response"
72
false
farshidce/touchworks-python
search_patients
22,279
LDU_FT/koriakin/binflakes/sgt
LDU_FT
[ "<BEGIN>\n## `to_sint`", "Converts the word to a BinInt, treating it as a signed number.\n<END>", "<BEGIN>\n## `sar`", "Performs an arithmetic right-shift of a BinWord by the given number\n of bits. Bits shifted out of the word are lost. The word is\n filled on the left with copies of the top ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sgt API. 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 sgt API. 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...
Compares two equal-sized BinWords, treating them as signed integers, and returning True if the first is bigger.
"Compares two equal-sized BinWords, treating them as signed\n integers, and returning True if the first is bigger."
59
false
koriakin/binflakes
sgt
22,280
LDU_FT/CodyKochmann/generators/function_arg_count
LDU_FT
[ "<BEGIN>\n## `first`", "first is essentially the next() function except it's second argument\n determines how many of the first items you want. If items is more than\n 1 the output is an islice of the generator. If items is 1, the first\n item is returned\n<END>", "<BEGIN>\n## `timed_pipe`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_arg_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the function_arg_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
returns how many arguments a funciton has
"returns how many arguments a funciton has"
71
false
CodyKochmann/generators
function_arg_count
22,281
LDU_FT/MinchinWeb/colourettu/contrast
LDU_FT
[ "<BEGIN>\n## `other_dependancies`", "Installs things that need to be in place before installing the main package\n<END>", "<BEGIN>\n## `update_version_number`", "Update version number", " Returns a semantic_version object\n<END>", "<BEGIN>\n## `add_release_to_changelog`", "Add release line at the top...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contrast API. 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 contrast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
r"""Determines the contrast between two colours. Args: colour1 (colourettu.Colour): a colour colour2 (colourettu.Colour): a second colour Contrast the difference in (perceived) brightness between colours. Values vary between 1:1 (a given colour on itself) and 21:1 (white on black). ...
"r\"\"\"Determines the contrast between two colours.\n\n Args:\n colour1 (colourettu.Colour): a colour\n colour2 (colourettu.Colour): a second colour\n\n Contrast the difference in (perceived) brightness between colours.\n Values vary between 1:1 (a given colour on itself) and 21:1 (white on\n ...
90
false
MinchinWeb/colourettu
contrast
22,282
LDU_FT/Yipit/eventlib/handler
LDU_FT
[ "<BEGIN>\n## `listen_for_events`", "Pubsub event listener", " Listen for events in the pubsub bus and calls the process function\n when somebody comes to play.\n<END>", "<BEGIN>\n## `get_ip`", "Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.", " The ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Decorator that associates a handler to an event class This decorator works for both methods and functions. Since it only registers the callable object and returns it without evaluating it. The name param should be informed in a dotted notation and should contain two informations: the django app name a...
"Decorator that associates a handler to an event class\n\n This decorator works for both methods and functions. Since it only\n registers the callable object and returns it without evaluating it.\n\n The name param should be informed in a dotted notation and should\n contain two informations: the django app...
57
false
Yipit/eventlib
handler
22,283
LDU_FT/rshk/python-libxdo/wait_for_window_active
LDU_FT
[ "<BEGIN>\n## `_errcheck`", "Error checker for functions returning an integer indicating\n success (0) / failure (1).", " Raises a XdoException in case of error, otherwise just\n returns ``None`` (returning the original code, 0, would be\n useless anyways..)\n<END>", "<BEGIN>\n## `move_mouse`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_window_active 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 wait_for_window_active API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Wait for a window to be active or not active. Requires your window manager to support this. Uses _NET_ACTIVE_WINDOW from the EWMH spec. :param window: the window to wait on :param active: If 1, wait for active. If 0, wait for inactive.
"Wait for a window to be active or not active.\n\n Requires your window manager to support this.\n Uses _NET_ACTIVE_WINDOW from the EWMH spec.\n\n :param window: the window to wait on\n :param active: If 1, wait for active. If 0, wait for inactive."
125
false
rshk/python-libxdo
wait_for_window_active
22,284
LDU_FT/3ll3d00d/vibe/_clashes
LDU_FT
[ "<BEGIN>\n## `get`", "Analyses the measurement with the given parameters\n :param measurementId:\n :return:\n<END>", "<BEGIN>\n## `start`", "Initialises the device if required then enters a read loop taking data from the provider and passing it to the\n handler. It will continue until ei...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clashes API. 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 _clashes API. 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...
verifies that this measurement does not clash with an already scheduled measurement. :param startTime: the start time. :param duration: the duration. :return: true if the measurement is allowed.
"verifies that this measurement does not clash with an already scheduled measurement.\n :param startTime: the start time.\n :param duration: the duration.\n :return: true if the measurement is allowed."
240
false
3ll3d00d/vibe
_clashes
22,285
LDU_FT/Falkonry/falkonry-python-client/upstream
LDU_FT
[ "<BEGIN>\n## `exception_handler`", "Function that takes exception Object(<Byte>,<str>) as a parameter and returns the error message<str>\n<END>", "<BEGIN>\n## `get`", "To make a GET request to Falkonry API server\n :param url: string\n<END>", "<BEGIN>\n## `post`", "To make a POST request to Falkonr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upstream API. 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 upstream API. 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...
To make a form-data POST request to Falkonry API server using stream :param url: string :param form_data: form-data
"To make a form-data POST request to Falkonry API server using stream\n :param url: string\n :param form_data: form-data"
52
false
Falkonry/falkonry-python-client
upstream
22,286
LDU_FT/zagfai/webtul/display
LDU_FT
[ "<BEGIN>\n## `get`", "get() -> {'id': 32-byte-md5, 'body': msg-body}\n<END>", "<BEGIN>\n## `browser_cache`", "Decorator for browser cache. Only for webpy\n @browser_cache( seconds ) before GET/POST function.\n<END>", "<BEGIN>\n## `display`", "display(level='DEBUG') forwards logs to stdout\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API. 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 display API. 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...
display(level='DEBUG') forwards logs to stdout
"display(level='DEBUG') forwards logs to stdout"
10
false
zagfai/webtul
display
22,287
LDU_FT/panzarino/mlbgame/get_scoreboard
LDU_FT
[ "<BEGIN>\n## `setobjattr`", "Sets an object attribute with the correct data type.\n<END>", "<BEGIN>\n## `get_scoreboard`", "Return the game file for a certain day matching certain criteria.\n<END>", "<BEGIN>\n## `get_box_score`", "Return the box score file of a game with matching id.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scoreboard API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scoreboard API. 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...
Return the game file for a certain day matching certain criteria.
"Return the game file for a certain day matching certain criteria."
66
false
panzarino/mlbgame
get_scoreboard
22,288
LDU_FT/openearth/bmi-python/colorlogs
LDU_FT
[ "<BEGIN>\n## `colorlogs`", "Append a rainbow logging handler and a formatter to the root logger\n<END>", "<BEGIN>\n## `create_string_buffer`", "create_string_buffer(aString) -> character array\n create_string_buffer(anInteger) -> character array\n create_string_buffer(aString, anInteger) -> character ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colorlogs API. 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 colorlogs API. 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...
Append a rainbow logging handler and a formatter to the root logger
"Append a rainbow logging handler and a formatter to the root logger"
39
false
openearth/bmi-python
colorlogs
22,289
LDU_FT/ioos/compliance-checker/find_coord_vars
LDU_FT
[ "<BEGIN>\n## `is_opendap`", "Returns True if the URL is a valid OPeNDAP URL", " :param str url: URL for a remote OPeNDAP endpoint\n<END>", "<BEGIN>\n## `datetime_is_iso`", "Attempts to parse a date formatted in ISO 8601 format\n<END>", "<BEGIN>\n## `kvp_convert`", "Converts a list of string attribute...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_coord_vars API. 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 find_coord_vars API. 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...
Finds all coordinate variables in a dataset. A variable with the same name as a dimension is called a coordinate variable.
"Finds all coordinate variables in a dataset.\n\n A variable with the same name as a dimension is called a coordinate variable."
624
false
ioos/compliance-checker
find_coord_vars
22,290
LDU_FT/TracyWebTech/django-revproxy/get_request_headers
LDU_FT
[ "<BEGIN>\n## `should_stream`", "Function to verify if the proxy_response must be converted into\n a stream.This will be done by checking the proxy_response content-length\n and verify if its length is bigger than one stipulated\n by MIN_STREAMING_LENGTH.", " :param proxy_response: An Instance of url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_headers 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...
Return request headers that will be sent to upstream. The header REMOTE_USER is set to the current user if AuthenticationMiddleware is enabled and the view's add_remote_user property is True. .. versionadded:: 0.9.8
"Return request headers that will be sent to upstream.\n\n The header REMOTE_USER is set to the current user\n if AuthenticationMiddleware is enabled and\n the view's add_remote_user property is True.\n\n .. versionadded:: 0.9.8"
41
false
TracyWebTech/django-revproxy
get_request_headers
22,291
LDU_FT/cons3rt/pycons3rt/disassociate_elastic_ips
LDU_FT
[ "<BEGIN>\n## `getdict`", "Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>", "<BEGIN>\n## `get_ec2_client`", "Gets an EC2 client", " :return: boto3.client object\n :raises: AWSAPIError\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disassociate_elastic_ips API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disassociate_elastic_ips API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
For each attached Elastic IP, disassociate it :return: None :raises AWSAPIError
"For each attached Elastic IP, disassociate it\n\n :return: None\n :raises AWSAPIError"
386
false
cons3rt/pycons3rt
disassociate_elastic_ips
22,292
LDU_FT/pallets/flask-sqlalchemy/create_session
LDU_FT
[ "<BEGIN>\n## `should_set_tablename`", "Determine whether ``__tablename__`` should be automatically generated\n for a model.", " * If no class in the MRO sets a name, one should be generated.\n * If a declared attr is found, it should be used instead.\n * If a name is found, it should be used if the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create the session factory used by :meth:`create_scoped_session`. The factory **must** return an object that SQLAlchemy recognizes as a session, or registering session events may raise an exception. Valid factories include a :class:`~sqlalchemy.orm.session.Session` class or a :class:`~...
"Create the session factory used by :meth:`create_scoped_session`.\n\n The factory **must** return an object that SQLAlchemy recognizes as a session,\n or registering session events may raise an exception.\n\n Valid factories include a :class:`~sqlalchemy.orm.session.Session`\n class or a :c...
73
false
pallets/flask-sqlalchemy
create_session
22,293
LDU_FT/costastf/toonlib/thermostat
LDU_FT
[ "<BEGIN>\n## `get_arguments`", "This get us the cli arguments.", " Returns the args as parsed from the argsparser.\n<END>", "<BEGIN>\n## `setup_logging`", "This sets up the logging.", " Needs the args to get the log level supplied\n :param args: The command line arguments\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thermostat API. 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 thermostat API. 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...
A temperature to set the thermostat to. Requires a float. :param temperature: A float of the desired temperature to change to.
"A temperature to set the thermostat to. Requires a float.\n\n :param temperature: A float of the desired temperature to change to."
46
false
costastf/toonlib
thermostat
22,294
LDU_FT/siznax/wptools/_pop_entities
LDU_FT
[ "<BEGIN>\n## `_add_members`", "Adds category members and subcategories to data\n<END>", "<BEGIN>\n## `_set_data`", "Set category member data from API response\n<END>", "<BEGIN>\n## `get_members`", "GET Mediawiki:API (action=query) category members\n https://www.mediawiki.org/wiki/API:Categorymember...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pop_entities API. 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 _pop_entities API. 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...
returns up to limit entities and pops them off the list
"returns up to limit entities and pops them off the list"
179
false
siznax/wptools
_pop_entities
22,295
LDU_FT/wbond/asn1crypto/_urlquote
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _urlquote API. 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 _urlquote API. 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...
Quotes a unicode string for use in a URL :param string: A unicode string :param safe: A unicode string of character to not encode :return: None (if string is None) or an ASCII byte string of the quoted string
"Quotes a unicode string for use in a URL\n\n :param string:\n A unicode string\n\n :param safe:\n A unicode string of character to not encode\n\n :return:\n None (if string is None) or an ASCII byte string of the quoted string"
739
false
wbond/asn1crypto
_urlquote
22,296
LDU_FT/hotdoc/hotdoc/dump
LDU_FT
[ "<BEGIN>\n## `connect`", "@slot: The method to be called on signal emission", " Connects to @slot\n<END>", "<BEGIN>\n## `connect_after`", "@slot: The method to be called at last stage of signal emission", " Connects to the signal after the signals has been handled by other\n connect c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API. 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 dump API. 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...
Dump the possibly updated config to a file. Args: conf_file: str, the destination, or None to overwrite the existing configuration.
"Dump the possibly updated config to a file.\n\n Args:\n conf_file: str, the destination, or None to overwrite the\n existing configuration."
266
false
hotdoc/hotdoc
dump
22,297
LDU_FT/erdc/RAPIDpy/demToStreamNetwork
LDU_FT
[ "<BEGIN>\n## `generate_single_return_period`", "This function calculates a single return period for a single reach\n<END>", "<BEGIN>\n## `generate_return_periods`", "Generate return period from RAPID Qout file\n<END>", "<BEGIN>\n## `get_poly_area_geo`", "Calculates the area in meters squared of the indivi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demToStreamNetwork 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 demToStreamNetwork 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...
This function will run all of the TauDEM processes to generate a stream network from an elevation raster. .. note:: For information about the stream reach and watershed process: http://hydrology.usu.edu/taudem/taudem5/help53/StreamReachAndWatershed.html .. note:: For informat...
"This function will run all of the TauDEM processes to generate\n a stream network from an elevation raster.\n\n .. note:: For information about the stream reach and watershed process:\n http://hydrology.usu.edu/taudem/taudem5/help53/StreamReachAndWatershed.html\n\n .. note:: For i...
502
false
erdc/RAPIDpy
demToStreamNetwork
22,298
LDU_FT/bblfsh/client-python/filter_int
LDU_FT
[ "<BEGIN>\n## `parse`", "Queries the Babelfish server and receives the UAST response for the specified\n file.", " :param filename: The path to the file. Can be arbitrary if contents \\\n is not None.\n :param language: The programming language of the file. Refer to \...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_int API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Filter and ensure that the returned value is of type int.
"Filter and ensure that the returned value is of type int."
25
false
bblfsh/client-python
filter_int
22,299
LDU_FT/glyph/automat/output
LDU_FT
[ "<BEGIN>\n## `isOriginalLocation`", "Attempt to discover if this appearance of a PythonAttribute\n representing a class refers to the module where that class was\n defined.\n<END>", "<BEGIN>\n## `findMachinesViaWrapper`", "Recursively yield L{MethodicalMachine}s and their FQPNs within a\n L{PythonMod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API. 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 output API. 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 ...
Declare an output. This is a decorator for methods. This method will be called when the state machine transitions to this state as specified in the decorated `output` method.
"Declare an output.\n\n This is a decorator for methods.\n\n This method will be called when the state machine transitions to this\n state as specified in the decorated `output` method."
60
false
glyph/automat
output
22,300
LDU_FT/googlemaps/google-maps-services-python/find_place
LDU_FT
[ "<BEGIN>\n## `directions`", "Get directions between an origin point and a destination point.", " :param origin: The address or latitude/longitude value from which you wish\n to calculate directions.\n :type origin: string, dict, list, or tuple", " :param destination: The address or latitude/lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_place API. 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 find_place API. 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...
A Find Place request takes a text input, and returns a place. The text input can be any kind of Places data, for example, a name, address, or phone number. :param input: The text input specifying which place to search for (for example, a name, address, or phone number). :type input: s...
"A Find Place request takes a text input, and returns a place.\n The text input can be any kind of Places data, for example,\n a name, address, or phone number.\n\n :param input: The text input specifying which place to search for (for\n example, a name, address, or phone number).\n :type i...
262
false
googlemaps/google-maps-services-python
find_place
22,301
LDU_FT/nikdon/pyEntropy/sample_entropy
LDU_FT
[ "<BEGIN>\n## `_embed`", "Time-delay embedding.", " Parameters\n ----------\n x : 1d-array, shape (n_times)\n Time series\n order : int\n Embedding dimension (order)\n delay : int\n Delay.", " Returns\n -------\n embedded : ndarray, shape (n_times - (order - 1) * de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_entropy API. 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 sample_entropy API. 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...
Calculates the sample entropy of degree m of a time_series. This method uses chebychev norm. It is quite fast for random data, but can be slower is there is structure in the input time series. Args: time_series: numpy array of time series sample_length: length of longest template vecto...
"Calculates the sample entropy of degree m of a time_series.\n\n This method uses chebychev norm.\n It is quite fast for random data, but can be slower is there is\n structure in the input time series.\n\n Args:\n time_series: numpy array of time series\n sample_length: length of longest templ...
47
false
nikdon/pyEntropy
sample_entropy
22,302
LDU_FT/fedora-infra/fedmsg/validate_policy
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_policy API. 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_policy API. 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...
Checks that the sender is allowed to emit messages for the given topic. Args: topic (str): The message topic the ``signer`` used when sending the message. signer (str): The Common Name of the certificate used to sign the message. Returns: bool: True if the policy defined in the setting...
"Checks that the sender is allowed to emit messages for the given topic.\n\n Args:\n topic (str): The message topic the ``signer`` used when sending the message.\n signer (str): The Common Name of the certificate used to sign the message.\n\n Returns:\n bool: True if the policy defined in the...
248
false
fedora-infra/fedmsg
validate_policy
22,303
LDU_FT/lvjiyong/configreset/_get_value
LDU_FT
[ "<BEGIN>\n## `reset`", "重置设置\n :param target:\n :param settings:\n :return:\n<END>", "<BEGIN>\n## `load_package`", "从目录中载入配置文件\n :param package_dir:\n :param package:\n :param exclude:\n :param default_section:\n :return:\n<END>", "<BEGIN>\n## `load`", "从混合类型组中读取配置\n :param defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac...
数据转化 :param first: :param second: :return: >>> _get_value(1,'2') 2 >>> _get_value([1,2],[2,3]) [1, 2, 3]
"数据转化\n :param first:\n :param second:\n :return:\n >>> _get_value(1,'2')\n 2\n >>> _get_value([1,2],[2,3])\n [1, 2, 3]"
26
false
lvjiyong/configreset
_get_value
22,304
LDU_FT/markovmodel/msmtools/stationary_distribution_from_backward_iteration
LDU_FT
[ "<BEGIN>\n## `flux_matrix`", "r\"\"\"Compute the TPT flux network for the reaction A-->B.", " Parameters\n ----------\n T : (M, M) ndarray\n transition matrix\n pi : (M,) ndarray\n Stationary distribution corresponding to T\n qminus : (M,) ndarray\n Backward comittor\n qpl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stationary_distribution_from_backward_iteration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stationary_distribution_from_backward_iteration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
r"""Fast computation of the stationary vector using backward iteration. Parameters ---------- P : (M, M) scipy.sparse matrix Transition matrix eps : float (optional) Perturbation parameter for the true eigenvalue. Returns ------- pi : (M,) ndarray Stationary vec...
"r\"\"\"Fast computation of the stationary vector using backward\n iteration.\n\n Parameters\n ----------\n P : (M, M) scipy.sparse matrix\n Transition matrix\n eps : float (optional)\n Perturbation parameter for the true eigenvalue.\n\n Returns\n -------\n pi : (M,) ndarray\n ...
1,330
true
markovmodel/msmtools
stationary_distribution_from_backward_iteration
22,305
LDU_FT/PySimpleGUI/PySimpleGUI/receive_one_ping
LDU_FT
[ "<BEGIN>\n## `read_mail`", "Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>", "<BEGIN>\n## `runCommand`", "run shell command", "\t@param cmd: command to execute\n\t@param timeout: timeout for command execution", "\t@re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_one_ping API. 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 receive_one_ping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Receive the ping from the socket. Timeout = in ms
"Receive the ping from the socket. Timeout = in ms"
110
false
PySimpleGUI/PySimpleGUI
receive_one_ping
22,306
LDU_FT/facelessuser/bracex/get_int_range
LDU_FT
[ "<BEGIN>\n## `set_expanding`", "Set that we are expanding a sequence, and return whether a release is required by the caller.\n<END>", "<BEGIN>\n## `squash`", "Returns a generator that squashes two iterables into one.", " ```\n ['this', 'that'], [[' and', ' or']] => ['this and', 'this or', 'th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_int_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_int_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get an integer range between start and end and increments of increment.
"Get an integer range between start and end and increments of increment."
20
false
facelessuser/bracex
get_int_range
22,307
LDU_FT/davidmcclure/textplot/set_pair
LDU_FT
[ "<BEGIN>\n## `build_graph`", "Tokenize a text, index a term matrix, and build out a graph.", " Args:\n path (str): The file path.\n term_depth (int): Consider the N most frequent terms.\n skim_depth (int): Connect each word to the N closest siblings.\n d_weights (bool): If true, g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_pair API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_pair API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Set the value for a pair of terms. Args: term1 (str) term2 (str) value (mixed)
"Set the value for a pair of terms.\n\n Args:\n term1 (str)\n term2 (str)\n value (mixed)"
71
false
davidmcclure/textplot
set_pair
22,308
LDU_FT/hapylestat/apputils/set
LDU_FT
[ "<BEGIN>\n## `start`", ":arg max_val Maximum value\n :type max_val int\n<END>", "<BEGIN>\n## `progress`", ":type value int\n :type new_status str\n<END>", "<BEGIN>\n## `stop`", ":arg hide_progress Hide progress bar\n :type hide_progress bool\n :type new_status str\n<END>", "<BEGIN>\n## `dese...
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...
Function to set or change particular property in the storage :param key: key name :param value: value to set :param expire_in: seconds to expire key :type key str :type expire_in int
"Function to set or change particular property in the storage\n\n :param key: key name\n :param value: value to set\n :param expire_in: seconds to expire key\n :type key str\n :type expire_in int"
54
false
hapylestat/apputils
set
22,309
LDU_FT/rchatterjee/pwmodels/create_model
LDU_FT
[ "<BEGIN>\n## `gen_n_random_num`", "Returns @n @unique random unsigned integers (4 bytes) \\\n between 0 and @MAX_NUM.\n<END>", "<BEGIN>\n## `sample_following_dist`", "Samples n passwords following the distribution from the handle\n @handle_iter is an iterator that gives (pw,f) @n is the total\n numbe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 extr...
:modelfunc: is a function that takes a word and returns its splits. for ngram model this function returns all the ngrams of a word, for PCFG it will return splits of the password. @modelfunc: func: string -> [list of strings] @fname: name of the file to read from @listw: list of passwords. Used pas...
":modelfunc: is a function that takes a word and returns its\n splits. for ngram model this function returns all the ngrams of a\n word, for PCFG it will return splits of the password.\n @modelfunc: func: string -> [list of strings]\n @fname: name of the file to read from\n @listw: list of passwords. Us...
48
false
rchatterjee/pwmodels
create_model
22,310
LDU_FT/objectrocket/python-client/parse_py_tree
LDU_FT
[ "<BEGIN>\n## `register_extension_class`", "Instantiate the given extension class and register as a public attribute of the given base.", " README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_py_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_py_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parse the given Python package tree. :param str pytree: The absolute path to the Python tree which is to be parsed. :rtype: dict :returns: A two-tuple. The first element is a dict where each key is the path of a parsed Python module (relative to the Python tree) and its value is the...
"Parse the given Python package tree.\n\n :param str pytree: The absolute path to the Python tree which is to be parsed.\n :rtype: dict\n :returns: A two-tuple. The first element is a dict where each key is the path of a parsed\n Python module (relative to the Python tree) and its value ...
118
false
objectrocket/python-client
parse_py_tree
22,311
LDU_FT/akfullfo/taskforce/appname
LDU_FT
[ "<BEGIN>\n## `_format`", "Returns the response tuple according to the selected format.\n A format is available if the method \"_format_xxx\" is callable.\n The default format is json.\n<END>", "<BEGIN>\n## `version`", "Return the taskforce version.", " Supports standard options.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the appname API. 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 appname API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a useful application name based on the program argument. A special case maps 'mod_wsgi' to a more appropriate name so web applications show up as our own.
"Return a useful application name based on the program argument.\nA special case maps 'mod_wsgi' to a more appropriate name so\nweb applications show up as our own."
290
false
akfullfo/taskforce
appname
22,312
LDU_FT/devopshq/artifactory/from_aql
LDU_FT
[ "<BEGIN>\n## `_create_and_update`", "Create or update request, re-read object from Artifactory\n :return: None\n<END>", "<BEGIN>\n## `read`", "Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>", "<BEGIN>\n## `_create_json`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_aql API. 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_aql API. 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...
Convert raw AQL result to pathlib object :param result: ONE raw result :return:
"Convert raw AQL result to pathlib object\n :param result: ONE raw result\n :return:"
104
false
devopshq/artifactory
from_aql
22,313
LDU_FT/Holzhaus/python-cmuclmtk/text2lm
LDU_FT
[ "<BEGIN>\n## `text2wfreq`", "List of every word which occurred in the text, along with its number of occurrences.\n Notes : Uses a hash-table to provide an efficient method of counting word occurrences. Output list is not sorted (due to \"randomness\" of the hash-table), but can be easily sorted into the u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text2lm API. 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 text2lm API. 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...
Convienience function to directly convert text (and vocabulary) into a language model.
"Convienience function to directly convert text (and vocabulary) into a language model."
25
false
Holzhaus/python-cmuclmtk
text2lm
22,314
LDU_FT/rosenbrockc/acorn/_load_package_config
LDU_FT
[ "<BEGIN>\n## `cascade`", "Restores a sequence of string definitions using the first entry as the\n original and then applying a series of :func:`~acorn.logging.diff.restore`\n calls.", " Args:\n sequence (list): of results returned by\n :func:`~acorn.logging.diff.compress`, except that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_package_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_package_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Loads the package configurations from the global `acorn.cfg` file.
"Loads the package configurations from the global `acorn.cfg` file."
263
false
rosenbrockc/acorn
_load_package_config
22,315
LDU_FT/xflr6/concepts/max_len
LDU_FT
[ "<BEGIN>\n## `lattice`", "Return graphviz source for visualizing the lattice graph.\n<END>", "<BEGIN>\n## `load`", "Load and parse serialized objects, properties, bools from file.\n<END>", "<BEGIN>\n## `dump`", "Write serialized objects, properties, bools to file.\n<END>", "<BEGIN>\n## `load_csv`", "L...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_len API. 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 max_len API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the len() of the longest item in ``iterable`` or ``minimum``. >>> max_len(['spam', 'ham']) 4 >>> max_len([]) 0 >>> max_len(['ham'], 4) 4
"Return the len() of the longest item in ``iterable`` or ``minimum``.\n\n >>> max_len(['spam', 'ham'])\n 4\n\n >>> max_len([])\n 0\n\n >>> max_len(['ham'], 4)\n 4"
56
false
xflr6/concepts
max_len
22,316
LDU_FT/brainiak/brainiak/export_epoch_file
LDU_FT
[ "<BEGIN>\n## `_generate_feature`", "Generate features corresponding to signal", " Generate a single feature, that can be inserted into the signal volume.\n A feature is a region of activation with a specific shape such as cube\n or ring", " Parameters\n ----------", " feature_type : str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_epoch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_epoch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Output an epoch file, necessary for some inputs into brainiak This takes in the time course of stimulus events and outputs the epoch file used in Brainiak. The epoch file is a way to structure the timing information in fMRI that allows you to flexibly input different stimulus sequences. This is a list ...
"Output an epoch file, necessary for some inputs into brainiak\n\n This takes in the time course of stimulus events and outputs the epoch\n file used in Brainiak. The epoch file is a way to structure the timing\n information in fMRI that allows you to flexibly input different stimulus\n sequences. This is a...
1,513
true
brainiak/brainiak
export_epoch_file
22,317
LDU_FT/CalebBell/ht/Cooper
LDU_FT
[ "<BEGIN>\n## `blackbody_spectral_radiance`", "r'''Returns the spectral radiance, in units of W/m^2/sr/µm.", " .. math::\n I_{\\lambda,blackbody,e}(\\lambda,T)=\\frac{2hc_o^2}\n {\\lambda^5[\\exp(hc_o/\\lambda k T)-1]}", " Parameters\n ----------\n T : float\n Temperature of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Cooper API. 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 Cooper API. 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 ...
r'''Calculates heat transfer coefficient for a evaporator operating in the nucleate boiling regime according to [2]_ as presented in [1]_. Either heat flux or excess temperature is required. With `Te` specified: .. math:: h = \left(55\Delta Te^{0.67} \frac{P}{P_c}^{(0.12 - 0.2\log_{10} R_p)} ...
"r'''Calculates heat transfer coefficient for a evaporator operating\n in the nucleate boiling regime according to [2]_ as presented in [1]_.\n\n Either heat flux or excess temperature is required.\n\n With `Te` specified:\n\n .. math::\n h = \\left(55\\Delta Te^{0.67} \\frac{P}{P_c}^{(0.12 - 0.2\\lo...
2,013
true
CalebBell/ht
Cooper
22,318
LDU_FT/ArchiveTeam/wpull/guess_datetime_format
LDU_FT
[ "<BEGIN>\n## `_update_exit_code_from_stats`", "Set the current exit code based on the Statistics.\n<END>", "<BEGIN>\n## `is_response`", "Return whether the document is likely to be a Sitemap.\n<END>", "<BEGIN>\n## `is_file`", "Return whether the file is likely a Sitemap.\n<END>", "<BEGIN>\n## `parse_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guess_datetime_format 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 guess_datetime_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Guess whether order of the year, month, day and 12/24 hour. Returns: tuple: First item is either str ``ymd``, ``dmy``, ``mdy`` or ``None``. Second item is either True for 12-hour time or False for 24-hour time or None.
"Guess whether order of the year, month, day and 12/24 hour.\n\n Returns:\n tuple: First item is either str ``ymd``, ``dmy``, ``mdy``\n or ``None``.\n Second item is either True for 12-hour time or False for 24-hour time\n or None."
896
false
ArchiveTeam/wpull
guess_datetime_format
22,319
LDU_FT/openclimatedata/pymagicc/_get_variable_from_filepath
LDU_FT
[ "<BEGIN>\n## `get_magicc_region_to_openscm_region_mapping`", "Get the mappings from MAGICC to OpenSCM regions.", " This is not a pure inverse of the other way around. For example, we never provide\n \"GLOBAL\" as a MAGICC return value because it's unnecesarily confusing when we also\n have \"World\". F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_variable_from_filepath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_variable_from_filepath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Determine the file variable from the filepath. Returns ------- str Best guess of variable name from the filepath
"Determine the file variable from the filepath.\n\n Returns\n -------\n str\n Best guess of variable name from the filepath"
245
false
openclimatedata/pymagicc
_get_variable_from_filepath
22,320
LDU_FT/klen/makesite/history
LDU_FT
[ "<BEGIN>\n## `migrate`", "Migration utils [create, run, undo, redo].\n<END>", "<BEGIN>\n## `update`", "Atomically update instance, setting field/value pairs from kwargs\n<END>", "<BEGIN>\n## `ls`", "List sites\n ----------", " Show list of installed sites.", " ::", " usage: makesite ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the history API. 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 history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an SQLAlchemy query of the object's history (previous versions). If the class does not support history/versioning, returns None.
"Returns an SQLAlchemy query of the object's history (previous\n versions). If the class does not support history/versioning,\n returns None."
54
false
klen/makesite
history
22,321
LDU_FT/EventRegistry/event-registry-python/initWithArticleUriWgtList
LDU_FT
[ "<BEGIN>\n## `compute`", "compute the list of most similar events for the given text\n<END>", "<BEGIN>\n## `getUpdates`", "Get the latest new or updated events from Event Registry\n NOTE: call this method exactly once per minute - calling it more frequently will return the same results multiple times,\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initWithArticleUriWgtList 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 initWithArticleUriWgtList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
instead of making a query, provide a list of article URIs manually, and then produce the desired results on top of them
"instead of making a query, provide a list of article URIs manually, and then produce the desired results on top of them"
89
false
EventRegistry/event-registry-python
initWithArticleUriWgtList
22,322
LDU_FT/alpha-xone/xone/cat_data
LDU_FT
[ "<BEGIN>\n## `trade_day`", "Latest trading day w.r.t given dt", " Args:\n dt: date of reference\n cal: trading calendar", " Returns:\n pd.Timestamp: last trading day", " Examples:\n >>> trade_day('2018-12-25').strftime('%Y-%m-%d')\n '2018-12-24'\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat_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 extracte...
Concatenate data with ticker as sub column index Args: data_kw: key = ticker, value = pd.DataFrame Returns: pd.DataFrame Examples: >>> start = '2018-09-10T10:10:00' >>> tz = 'Australia/Sydney' >>> idx = pd.date_range(start=start, periods=6, freq='min').tz_localize(...
"Concatenate data with ticker as sub column index\n\n Args:\n data_kw: key = ticker, value = pd.DataFrame\n\n Returns:\n pd.DataFrame\n\n Examples:\n >>> start = '2018-09-10T10:10:00'\n >>> tz = 'Australia/Sydney'\n >>> idx = pd.date_range(start=start, periods=6, freq='min')....
89
false
alpha-xone/xone
cat_data
22,323
LDU_FT/splitkeycoffee/pyhottop/_validate_checksum
LDU_FT
[ "<BEGIN>\n## `_generate_config`", "Generate a configuration that can be sent to the Hottop roaster.", " Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_checksum 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 _validate_checksum 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...
Validate the buffer response against the checksum. When reading the serial interface, data will come back in a raw format with an included checksum process. :returns: bool
"Validate the buffer response against the checksum.\n\n When reading the serial interface, data will come back in a raw format\n with an included checksum process.\n\n :returns: bool"
89
false
splitkeycoffee/pyhottop
_validate_checksum
22,324
LDU_FT/opendatateam/udata/mdstrip
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mdstrip API. 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 mdstrip API. 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...
Truncate and strip tags from a markdown source The markdown source is truncated at the excerpt if present and smaller than the required length. Then, all html tags are stripped.
"Truncate and strip tags from a markdown source\n\n The markdown source is truncated at the excerpt if present and\n smaller than the required length. Then, all html tags are stripped."
476
false
opendatateam/udata
mdstrip
22,325
LDU_FT/mdsol/rwslib/fromElement
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromElement API. 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 fromElement API. 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...
Read properties from an XML Element to build a StudyList Item :param lxml.etree.Element elem: The source Study XML Element .. code-block:: xml <Study OID="Fixitol(Dev)" mdsol:ProjectType="GlobalLibraryVolume"> <GlobalVariables> <StudyName>Fixitol (Dev)<...
"Read properties from an XML Element to build a StudyList Item\n\n :param lxml.etree.Element elem: The source Study XML Element\n\n .. code-block:: xml\n\n <Study OID=\"Fixitol(Dev)\" mdsol:ProjectType=\"GlobalLibraryVolume\">\n <GlobalVariables>\n <StudyName>F...
120
false
mdsol/rwslib
fromElement
22,326
LDU_FT/viatoriche/microservices/gevent_run
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish message to exchange", " :param message: message for publishing\n :type message: any serializable object\n :param routing_key: routing key for queue\n :return: None\n<END>", "<BEGIN>\n## `publish`", "Publish message to queue", " :param me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gevent_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gevent_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 extrac...
Run your app in gevent.wsgi.WSGIServer :param app: wsgi application, ex. Microservice instance :param port: int, listen port, default 5000 :param address: str, listen address, default: "" :param log: logger instance, default app.logger :param error_log: logger instance, default app.logger :para...
"Run your app in gevent.wsgi.WSGIServer\n\n :param app: wsgi application, ex. Microservice instance\n :param port: int, listen port, default 5000\n :param address: str, listen address, default: \"\"\n :param log: logger instance, default app.logger\n :param error_log: logger instance, default app.logger\...
27
false
viatoriche/microservices
gevent_run
22,327
LDU_FT/joesecurity/jbxapi/submit_sample_url
LDU_FT
[ "<BEGIN>\n## `get_version`", "Extract the version number from the code.\n<END>", "<BEGIN>\n## `submit_sample`", "Submit a sample and returns the submission id.", " Parameters:\n sample: The sample to submit. Needs to be a file-like object or a tuple in\n the shap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_sample_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_sample_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Submit a sample at a given URL for analysis.
"Submit a sample at a given URL for analysis."
44
false
joesecurity/jbxapi
submit_sample_url
22,328
LDU_FT/dailymuse/oz/_api_on_write_error
LDU_FT
[ "<BEGIN>\n## `db`", "Gets the SQLALchemy session for this request\n<END>", "<BEGIN>\n## `_sqlalchemy_on_finish`", "Closes the sqlalchemy transaction. Rolls back if an error occurred.\n<END>", "<BEGIN>\n## `_sqlalchemy_on_connection_close`", "Rollsback and closes the active session, since the client discon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _api_on_write_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _api_on_write_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Catches errors and renders it as a JSON message. Adds the traceback if debug is enabled.
"Catches errors and renders it as a JSON message. Adds the traceback if\n debug is enabled."
58
false
dailymuse/oz
_api_on_write_error
22,329
LDU_FT/ambitioninc/rabbitmq-admin/_get
LDU_FT
[ "<BEGIN>\n## `_api_get`", "A convenience wrapper for _get. Adds headers, auth and base url by\n default\n<END>", "<BEGIN>\n## `_get`", "A wrapper for getting things", " :returns: The response of your get\n :rtype: dict\n<END>", "<BEGIN>\n## `_api_put`", "A convenience wrapper for _p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
A wrapper for getting things :returns: The response of your get :rtype: dict
"A wrapper for getting things\n\n :returns: The response of your get\n :rtype: dict"
100
false
ambitioninc/rabbitmq-admin
_get
22,330
LDU_FT/fedora-infra/fedmsg/_prep_crypto_msg
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prep_crypto_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prep_crypto_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 ...
Split the signature and certificate in the same way M2Crypto does. M2Crypto is dropping newlines into its signature and certificate. This exists purely to maintain backwards compatibility. Args: message (dict): A message with the ``signature`` and ``certificate`` keywords. The values o...
"Split the signature and certificate in the same way M2Crypto does.\n\n M2Crypto is dropping newlines into its signature and certificate. This\n exists purely to maintain backwards compatibility.\n\n Args:\n message (dict): A message with the ``signature`` and ``certificate`` keywords.\n The ...
248
false
fedora-infra/fedmsg
_prep_crypto_msg
22,331
LDU_FT/Netflix-Skunkworks/historical/serialize_me
LDU_FT
[ "<BEGIN>\n## `handler`", "Historical security group event differ.", " Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>", "<BEGIN>\n## `serialize`", "Serializes the JSON for the Polling Event Model.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_me API. 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 serialize_me API. 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...
Dumps the proper JSON for the schema. If the event is too big, then don't include the item. :param arn: :param event_time: :param tech: :param item: :return:
"Dumps the proper JSON for the schema. If the event is too big, then don't include the item.\n\n :param arn:\n :param event_time:\n :param tech:\n :param item:\n :return:"
146
false
Netflix-Skunkworks/historical
serialize_me
22,332
LDU_FT/idlesign/django-admirarchy/hook_get_queryset
LDU_FT
[ "<BEGIN>\n## `action_checkbox`", "Renders checkboxes.", " Disable checkbox for parent item navigation link.\n<END>", "<BEGIN>\n## `hierarchy_nav`", "Renders hierarchy navigation elements (folders).\n<END>", "<BEGIN>\n## `get_queryset`", "Constructs a query set.", " :param request:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hook_get_queryset API. 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 hook_get_queryset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Triggered by `ChangeList.get_queryset()`.
"Triggered by `ChangeList.get_queryset()`."
31
false
idlesign/django-admirarchy
hook_get_queryset
22,333
LDU_FT/daviddrysdale/python-phonenumbers/supported_types_for_non_geo_entity
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supported_types_for_non_geo_entity 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 supported_types_for_non_geo_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Returns the types for a country-code belonging to a non-geographical entity which the library has metadata for. Will not include FIXED_LINE_OR_MOBILE (if numbers for this non-geographical entity could be classified as FIXED_LINE_OR_MOBILE, both FIXED_LINE and MOBILE would be present) and UNKNOWN. N...
"Returns the types for a country-code belonging to a non-geographical entity\n which the library has metadata for. Will not include FIXED_LINE_OR_MOBILE\n (if numbers for this non-geographical entity could be classified as\n FIXED_LINE_OR_MOBILE, both FIXED_LINE and MOBILE would be present) and\n UNKNOWN.\n...
501
false
daviddrysdale/python-phonenumbers
supported_types_for_non_geo_entity
22,334
LDU_FT/frnmst/md-toc/get_atx_heading
LDU_FT
[ "<BEGIN>\n## `main`", "Call the CLI interface and wait for the result.\n<END>", "<BEGIN>\n## `write_string_on_file_between_markers`", "r\"\"\"Write the table of contents on a single file.", " :parameter filename: the file that needs to be read or modified.\n :parameter string: the string that will be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_atx_heading API. 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_atx_heading API. 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...
r"""Given a line extract the link label and its type. :parameter line: the line to be examined. :parameter keep_header_levels: the maximum level of headers to be considered as such when building the table of contents. Defaults to ``3``. :parameter parser: decides rules on how to generate ...
"r\"\"\"Given a line extract the link label and its type.\n\n :parameter line: the line to be examined.\n :parameter keep_header_levels: the maximum level of headers to be\n considered as such when building the table of contents.\n Defaults to ``3``.\n :parameter parser: decides rules on how to...
63
false
frnmst/md-toc
get_atx_heading
22,335
LDU_FT/Shizmob/pydle/on_isupport_chanmodes
LDU_FT
[ "<BEGIN>\n## `on_ctcp_version`", "Built-in CTCP version as some networks seem to require it.\n<END>", "<BEGIN>\n## `on_raw_privmsg`", "Modify PRIVMSG to redirect CTCP messages.\n<END>", "<BEGIN>\n## `on_raw_notice`", "Modify NOTICE to redirect CTCP messages.\n<END>", "<BEGIN>\n## `_register`", "Hijack...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_isupport_chanmodes 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 on_isupport_chanmodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Valid channel modes and their behaviour.
"Valid channel modes and their behaviour."
96
false
Shizmob/pydle
on_isupport_chanmodes
22,336
LDU_FT/brunobord/tdaemon/get_cmd
LDU_FT
[ "<BEGIN>\n## `check_dependencies`", "Checks if the test program is available in the python environnement\n<END>", "<BEGIN>\n## `get_cmd`", "Returns the full command to be executed at runtime\n<END>", "<BEGIN>\n## `include`", "Returns `True` if the file is not ignored\n<END>", "<BEGIN>\n## `walk`", "Wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cmd API. 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_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the full command to be executed at runtime
"Returns the full command to be executed at runtime"
10
false
brunobord/tdaemon
get_cmd
22,337
LDU_FT/thetarkus/django-semanticui-forms/render_datefield
LDU_FT
[ "<BEGIN>\n## `render_form`", "Render an entire form with Semantic UI wrappers for each field\r", "\tArgs:\r\n\t\tform (form): Django Form\r\n\t\texclude (string): exclude fields by name, separated by commas\r\n\t\tkwargs (dict): other attributes will be passed to fields\r", "\tReturns:\r\n\t\tstring: HTML of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_datefield API. 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 render_datefield API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
DateField that uses wrappers.CALENDAR_WRAPPER.
"DateField that uses wrappers.CALENDAR_WRAPPER."
28
false
thetarkus/django-semanticui-forms
render_datefield
22,338
LDU_FT/sailthru/relay/load_obj_from_path
LDU_FT
[ "<BEGIN>\n## `create_ramp_plan`", "Formulate and execute on a plan to slowly add heat or cooling to the system", " `err` initial error (PV - SP)\n `ramp` the size of the ramp", " A ramp plan might yield MVs in this order at every timestep:\n [5, 0, 4, 0, 3, 0, 2, 0, 1]\n where err == 5 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_obj_from_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_obj_from_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. Th...
import a python object from an import path `import_path` - a python import path. For instance: mypackage.module.func or mypackage.module.class `prefix` (str) - a value to prepend to the import path if it isn't already there. For instance: load_obj_from_path...
"import a python object from an import path\n\n `import_path` - a python import path. For instance:\n mypackage.module.func\n or\n mypackage.module.class\n `prefix` (str) - a value to prepend to the import path\n if it isn't already there. For instance:\n load_obj_...
32
false
sailthru/relay
load_obj_from_path
22,339
LDU_FT/mjuenema/python-TSIP/unstuff
LDU_FT
[ "<BEGIN>\n## `unframe`", "Strip leading DLE and trailing DLE/ETX from packet.", " :param packet: TSIP packet with leading DLE and trailing DLE/ETX.\n :type packet: Binary string.\n :return: TSIP packet with leading DLE and trailing DLE/ETX removed.\n :raise: ``ValueError`` if `packet` does not start...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unstuff API. 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 unstuff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Remove byte stuffing from a TSIP packet. :param packet: TSIP packet with byte stuffing. The packet must already have been stripped or `ValueError` will be raised. :type packet: Binary string. :return: Packet without byte stuffing.
"Remove byte stuffing from a TSIP packet.\n\n :param packet: TSIP packet with byte stuffing. The packet must already\n have been stripped or `ValueError` will be raised.\n :type packet: Binary string.\n :return: Packet without byte stuffing."
15
false
mjuenema/python-TSIP
unstuff
22,340
LDU_FT/Crunch-io/crunch-cube/column_mask
LDU_FT
[ "<BEGIN>\n## `column_mask`", "ndarray, True where column margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `table_mask`", "ndarray, True where table margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `values`", "list of _ColumnPairwiseSignificance tests.", " Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column_mask API. 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 column_mask API. 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...
ndarray, True where column margin <= min_base_size, same shape as slice.
"ndarray, True where column margin <= min_base_size, same shape as slice."
334
false
Crunch-io/crunch-cube
column_mask
22,341
LDU_FT/niolabs/python-xbee/verify
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
verify: 1 byte -> boolean verify checksums the frame, adds the expected checksum, and determines whether the result is correct. The result should be 0xFF.
"verify: 1 byte -> boolean\n\n verify checksums the frame, adds the expected checksum, and\n determines whether the result is correct. The result should\n be 0xFF."
91
false
niolabs/python-xbee
verify
22,342
LDU_FT/stephenmcd/django-forms-builder/unique_slug
LDU_FT
[ "<BEGIN>\n## `email_to`", "Return the value entered for the first field of type EmailField.\n<END>", "<BEGIN>\n## `posted_data`", "Wrapper for self.cleaned_data that returns True on\n field_id_export fields when the form hasn't been posted to,\n to facilitate show/export URLs that export all ent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique_slug API. 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 unique_slug API. 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...
Ensure slug is unique for the given manager, appending a digit if it isn't.
"Ensure slug is unique for the given manager, appending a digit\n if it isn't."
17
false
stephenmcd/django-forms-builder
unique_slug
22,343
LDU_FT/bradmontgomery/django-redis-metrics/gauge
LDU_FT
[ "<BEGIN>\n## `categorize_metrics`", "Called only on a valid form, this method will place the chosen\n metrics in the given catgory.\n<END>", "<BEGIN>\n## `dedupe`", "Remove duplicates from a sequence (of hashable items) while maintaining\n order. NOTE: This only works if items in the list are hashab...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gauge API. 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 gauge API. 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...
Include a Donut Chart for the specified Gauge. * ``slug`` -- the unique slug for the Gauge. * ``maximum`` -- The maximum value for the gauge (default is 9000) * ``size`` -- The size (in pixels) of the gauge (default is 200) * ``coerce`` -- type to which gauge values should be coerced. The default ...
"Include a Donut Chart for the specified Gauge.\n\n * ``slug`` -- the unique slug for the Gauge.\n * ``maximum`` -- The maximum value for the gauge (default is 9000)\n * ``size`` -- The size (in pixels) of the gauge (default is 200)\n * ``coerce`` -- type to which gauge values should be coerced. The default...
122
false
bradmontgomery/django-redis-metrics
gauge
22,344
LDU_FT/shoeffner/cvloop/_draw_frame
LDU_FT
[ "<BEGIN>\n## `load_hat`", "Loads the hat from a picture at path.", " Args:\n path: The path to load from", " Returns:\n The hat data.\n<END>", "<BEGIN>\n## `find_faces`", "Uses a haarcascade to detect faces inside an image.", " Args:\n image: The ima...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_frame API. 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 _draw_frame API. 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...
Reads, processes and draws the frames. If needed for color maps, conversions to gray scale are performed. In case the images are no color images and no custom color maps are defined, the colormap `gray` is applied. This function is called by TimedAnimation. Args: f...
"Reads, processes and draws the frames.\n\n If needed for color maps, conversions to gray scale are performed. In\n case the images are no color images and no custom color maps are\n defined, the colormap `gray` is applied.\n\n This function is called by TimedAnimation.\n\n Args:\n ...
67
false
shoeffner/cvloop
_draw_frame
22,345
LDU_FT/carsonyl/pypac/add_proxy_auth
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 add_proxy_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_proxy_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 ex...
Add a username and password to a proxy URL, if the input value is a proxy URL. :param str possible_proxy_url: Proxy URL or ``DIRECT``. :param requests.auth.HTTPProxyAuth proxy_auth: Proxy authentication info. :returns: Proxy URL with auth info added, or ``DIRECT``. :rtype: str
"Add a username and password to a proxy URL, if the input value is a proxy URL.\n\n :param str possible_proxy_url: Proxy URL or ``DIRECT``.\n :param requests.auth.HTTPProxyAuth proxy_auth: Proxy authentication info.\n :returns: Proxy URL with auth info added, or ``DIRECT``.\n :rtype: str"
88
false
carsonyl/pypac
add_proxy_auth
22,346
LDU_FT/openstack/pymod2pkg/module2upstream
LDU_FT
[ "<BEGIN>\n## `default_rdo_tr`", "Default translation function for Fedora/RDO based systems\n<END>", "<BEGIN>\n## `default_ubuntu_tr`", "Default translation function for Ubuntu based systems\n<END>", "<BEGIN>\n## `default_suse_tr`", "Default translation function for openSUSE, SLES, and other\n SUSE base...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the module2upstream API. 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 module2upstream API. 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...
Return a corresponding OpenStack upstream name for a python module. mod -- python module name
"Return a corresponding OpenStack upstream name for a python module.\n\n mod -- python module name"
13
false
openstack/pymod2pkg
module2upstream
22,347
LDU_FT/andycasey/ads/execute
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute the http request to the export service\n :return ads-classic formatted export string\n<END>", "<BEGIN>\n## `_get_field`", "Queries the api for a single field for the record by `id`.\n This method should only be called indirectly by cached properties.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
Execute the http request to the metrics service
"Execute the http request to the metrics service"
30
false
andycasey/ads
execute
22,348
LDU_FT/keon/algorithms/counting_sort
LDU_FT
[ "<BEGIN>\n## `convert_to_list`", "converts a positive integer into a (reversed) linked list.\n for example: give 112\n result 2 -> 1 -> 1\n<END>", "<BEGIN>\n## `convert_to_str`", "converts the non-negative number list into a string.\n<END>", "<BEGIN>\n## `three_sum`", ":param array: List[int...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the counting_sort API. 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 counting_sort API. 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...
Counting_sort Sorting a array which has no element greater than k Creating a new temp_arr,where temp_arr[i] contain the number of element less than or equal to i in the arr Then placing the number i into a correct position in the result_arr return the result_arr Complexity: 0(n)
"Counting_sort\n Sorting a array which has no element greater than k\n Creating a new temp_arr,where temp_arr[i] contain the number of\n element less than or equal to i in the arr\n Then placing the number i into a correct position in the result_arr\n return the result_arr\n Complexity: 0(n)"
273
false
keon/algorithms
counting_sort
22,349
LDU_FT/ivknv/s3m/normalize_path
LDU_FT
[ "<BEGIN>\n## `normalize_path`", ">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_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 ex...
>>> normalize_path("/a/b/c/") '/a/b/c' >>> normalize_path("/a/b/c") '/a/b/c' >>> normalize_path("/a/b/c////////") '/a/b/c' >>> normalize_path("///a/b/c") '/a/b/c' >>> normalize_path("/a/././b/../b/c/") '/a/b/c' >>> normalize_path(":memory:") ':memory:'
">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normalize_path(\":memory:\")\n ':memory:'...
27
false
ivknv/s3m
normalize_path
22,350
LDU_FT/honeynet/beeswarm/prepare_environment
LDU_FT
[ "<BEGIN>\n## `setup_db`", "Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>", "<BEGIN>\n## `start_pty_request`", "Start a PTY - intended to run it a (green)th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_environment 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 prepare_environment 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...
Performs a few maintenance tasks before the Honeypot is run. Copies the data directory, and the config file to the cwd. The config file copied here is overwritten if the __init__ method is called with a configuration URL. :param work_dir: The directory to copy files to.
"Performs a few maintenance tasks before the Honeypot is run. Copies the data directory,\n and the config file to the cwd. The config file copied here is overwritten if\n the __init__ method is called with a configuration URL.\n\n :param work_dir: The directory to copy files to."
112
false
honeynet/beeswarm
prepare_environment
22,351
LDU_FT/myaooo/pysbrl/before_save
LDU_FT
[ "<BEGIN>\n## `print_rule`", "print the rule in a nice way\n :param rule: An instance of Rule\n :param feature_names: a list of n_features feature names,\n :param category_names: the names of the categories of each feature.\n :param label: Can take two values, 'label': just print the label as output, o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
make sure that the dedicated path exists (create if not exist) :param file_or_dir: :return: None
"make sure that the dedicated path exists (create if not exist)\n :param file_or_dir:\n :return: None"
29
false
myaooo/pysbrl
before_save
22,352
LDU_FT/emc-openstack/storops/copy_file_to_remote
LDU_FT
[ "<BEGIN>\n## `attach`", "Attaches lun, snap or member snap of cg snap to host.", " Don't pass cg snapshot in as `lun_or_snap`.", " :param lun_or_snap: the lun, snap, or a member snap of cg snap\n :param skip_hlu_0: whether to skip hlu 0\n :return: the hlu number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_file_to_remote 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 copy_file_to_remote 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...
scp the local file to remote folder. :param local_path: local path :param remote_path: remote path
"scp the local file to remote folder.\n\n :param local_path: local path\n :param remote_path: remote path"
222
false
emc-openstack/storops
copy_file_to_remote
22,353
LDU_FT/jmurty/xml4h/transplant_node
LDU_FT
[ "<BEGIN>\n## `ignore_whitespace_text_nodes`", "Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.", " This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transplant_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transplant_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Transplant a node from another document to become a child of this node, removing it from the source document. The node to be transplanted can be a :class:`Node` based on the same underlying XML library implementation and adapter, or a "raw" node from that implementation. :param node: t...
"Transplant a node from another document to become a child of this node,\n removing it from the source document. The node to be transplanted can\n be a :class:`Node` based on the same underlying XML library\n implementation and adapter, or a \"raw\" node from that implementation.\n\n :param...
155
false
jmurty/xml4h
transplant_node
22,354
LDU_FT/caseyjlaw/rtpipe/calcChebyshev
LDU_FT
[ "<BEGIN>\n## `get_metadata`", "Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calcChebyshev API. 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 calcChebyshev API. 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...
Given a set of coefficients, this method evaluates a Chebyshev approximation. Used for CASA bandpass reading. input coeffs and freqs are numpy arrays
"Given a set of coefficients,\n this method evaluates a Chebyshev approximation.\n Used for CASA bandpass reading.\n input coeffs and freqs are numpy arrays"
256
false
caseyjlaw/rtpipe
calcChebyshev
22,355
LDU_FT/inspirehep/plotextractor/process_tarball
LDU_FT
[ "<BEGIN>\n## `get_context`", "Get context.", " Given a relevant string from a TeX file, this function will extract text\n from it as far as it is deemed contextually relevant, either backwards or\n forwards in the text.\n The level of relevance allowed is configurable. When it reaches some\n poin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_tarball API. 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 process_tarball API. 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...
Process one tarball end-to-end. If output directory is given, the tarball will be extracted there. Otherwise, it will extract it in a folder next to the tarball file. The function returns a list of dictionaries: .. code-block:: python [{ 'url': '/path/to/tarball_files/d15-120f3d....
"Process one tarball end-to-end.\n\n If output directory is given, the tarball will be extracted there.\n Otherwise, it will extract it in a folder next to the tarball file.\n\n The function returns a list of dictionaries:\n\n .. code-block:: python\n\n [{\n 'url': '/path/to/tarball_files/...
80
false
inspirehep/plotextractor
process_tarball
22,356
LDU_FT/jalanb/pysyte/full_path
LDU_FT
[ "<BEGIN>\n## `get_caselessly`", "Find the sought key in the given dictionary regardless of case", " >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>", "<BEGIN>\n## `append_value`", "Append those items to the values for that key\n<END>", "<BEGIN>\n## `extend_values`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_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 full_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...
Get the real path, expanding links and bashisms
"Get the real path, expanding links and bashisms"
224
false
jalanb/pysyte
full_path
22,357
LDU_FT/nickmckay/LiPD-utilities/get_dsn
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dsn API. 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_dsn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the dataset name from a record :param dict d: Metadata :return str: Dataset name
"Get the dataset name from a record\n\n :param dict d: Metadata\n :return str: Dataset name"
796
false
nickmckay/LiPD-utilities
get_dsn
22,358
LDU_FT/klmitch/tendril/recv_framer
LDU_FT
[ "<BEGIN>\n## `send_frame`", "Sends a frame to the other end of the connection.\n<END>", "<BEGIN>\n## `start`", "Starts the TendrilManager.", " :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_framer API. 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 recv_framer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Set the framer in use for the receiving side of the connection. The framer state will be reset next time the framer is used.
"Set the framer in use for the receiving side of the\n connection. The framer state will be reset next time the\n framer is used."
92
false
klmitch/tendril
recv_framer
22,359
LDU_FT/ubleipzig/marcx/valuegetter
LDU_FT
[ "<BEGIN>\n## `valuegetter`", "Modelled after `operator.itemgetter`. Takes a variable\n number of specs and returns a function, which applied to\n any `pymarc.Record` returns the matching values.", " Specs are in the form `field` or `field.subfield`, e.g.\n `020` or `020.9`.", " Example:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valuegetter API. 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 valuegetter API. 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...
Modelled after `operator.itemgetter`. Takes a variable number of specs and returns a function, which applied to any `pymarc.Record` returns the matching values. Specs are in the form `field` or `field.subfield`, e.g. `020` or `020.9`. Example: >>> from marcx import Record, valuegetter >>>...
"Modelled after `operator.itemgetter`. Takes a variable\n number of specs and returns a function, which applied to\n any `pymarc.Record` returns the matching values.\n\n Specs are in the form `field` or `field.subfield`, e.g.\n `020` or `020.9`.\n\n Example:\n\n >>> from marcx import Record, valuegett...
44
false
ubleipzig/marcx
valuegetter
22,360
LDU_FT/cdumay/kser/_onsuccess
LDU_FT
[ "<BEGIN>\n## `check_required_params`", "Check if all required parameters are set\n<END>", "<BEGIN>\n## `_onsuccess`", "To execute on execution success", " :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _onsuccess API. 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 _onsuccess API. 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...
To execute on execution success :param cdumay_result.Result result: Execution result :return: Execution result :rtype: cdumay_result.Result
"To execute on execution success\n :param cdumay_result.Result result: Execution result\n :return: Execution result\n :rtype: cdumay_result.Result"
94
false
cdumay/kser
_onsuccess
22,361
LDU_FT/SylvanasSun/FishFishJump/nodes_simple_info
LDU_FT
[ "<BEGIN>\n## `hash`", "function hash() implement to acquire hash value that use simply method that weighted sum.", " Parameters:\n -----------\n value: string\n the value is param of need acquire hash\n Returns:\n --------\n result...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes_simple_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes_simple_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...
Return a dictionary of the nodes simple info that key is a column name, such as [{"http_address": "192.111.111.111", "name" : "test", ...}, ...]
"Return a dictionary of the nodes simple info that key is a column name,\n such as [{\"http_address\": \"192.111.111.111\", \"name\" : \"test\", ...}, ...]"
97
false
SylvanasSun/FishFishJump
nodes_simple_info
22,362
LDU_FT/vallis/libstempo/loglike
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loglike API. 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 loglike API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the Gaussian-process likelihood for 'pulsar'. The likelihood is evaluated at the current value of the pulsar parameters, as given by pulsar[parname].val. If efac, equad, and/or Ared are set, will compute the likelihood assuming the corresponding noise model. EFAC multiplies measurement noise; ...
"Returns the Gaussian-process likelihood for 'pulsar'.\n\n The likelihood is evaluated at the current value of the pulsar parameters,\n as given by pulsar[parname].val.\n\n If efac, equad, and/or Ared are set, will compute the likelihood assuming\n the corresponding noise model. EFAC multiplies measurement ...
160
false
vallis/libstempo
loglike
22,363
LDU_FT/projectatomic/osbs-client/get_build_logs
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_build_logs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_build_logs API. 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...
provide logs from build NOTE: Since atomic-reactor 1.6.25, logs are always in UTF-8, so if asked to decode, we assume that is the encoding in use. Otherwise, we return the bytes exactly as they came from the container. :param build_id: str :param follow: bool, fetch logs as the...
"provide logs from build\n\n NOTE: Since atomic-reactor 1.6.25, logs are always in UTF-8, so if\n asked to decode, we assume that is the encoding in use. Otherwise, we\n return the bytes exactly as they came from the container.\n\n :param build_id: str\n :param follow: bool, fetch log...
268
false
projectatomic/osbs-client
get_build_logs
22,364
LDU_FT/happyleavesaoc/python-orvibo/_discover_mac
LDU_FT
[ "<BEGIN>\n## `_setup`", "Set up module.", " Open a UDP socket, and listen in a thread.\n<END>", "<BEGIN>\n## `discover`", "Discover devices on the local network.", " :param timeout: Optional timeout in seconds.\n :returns: Set of discovered host addresses.\n<END>", "<BEGIN>\n## `_discover_mac`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _discover_mac API. 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 _discover_mac API. 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...
Discovers MAC address of device. Discovery is done by sending a UDP broadcast. All configured devices reply. The response contains the MAC address in both needed formats. Discovery of multiple switches must be done synchronously. :returns: Tuple of MAC address and reversed MAC...
"Discovers MAC address of device.\n\n Discovery is done by sending a UDP broadcast.\n All configured devices reply. The response contains\n the MAC address in both needed formats.\n\n Discovery of multiple switches must be done synchronously.\n\n :returns: Tuple of MAC address and rev...
31
false
happyleavesaoc/python-orvibo
_discover_mac
22,365
LDU_FT/ethereum/web3.py/default_middlewares
LDU_FT
[ "<BEGIN>\n## `solidityKeccak`", "Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>", "<BEGIN>\n## `gas_price_strategy_middleware`", "Includes a gas price using the ga...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_middlewares 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 default_middlewares 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...
List the default middlewares for the request manager. Leaving ens unspecified will prevent the middleware from resolving names.
"List the default middlewares for the request manager.\n Leaving ens unspecified will prevent the middleware from resolving names."
268
false
ethereum/web3.py
default_middlewares
22,366
LDU_FT/fhs/pyhdf/select
LDU_FT
[ "<BEGIN>\n## `end`", "Close the V interface.", " Args::", " No argument", " Returns::", " None", " C library equivalent : Vend\n<END>", "<BEGIN>\n## `attach`", "Open an existing vgroup given its name or its reference\n number, or create a new vgroup, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select API. 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 select API. 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 ...
Locate a dataset. Args:: name_or_index dataset name or index number Returns:: SDS instance for the dataset C library equivalent : SDselect
"Locate a dataset.\n\n Args::\n\n name_or_index dataset name or index number\n\n Returns::\n\n SDS instance for the dataset\n\n C library equivalent : SDselect"
605
false
fhs/pyhdf
select
22,367
LDU_FT/pazz/urwidtrees/expand_all
LDU_FT
[ "<BEGIN>\n## `_get`", "loads widget at given position; handling invalid arguments\n<END>", "<BEGIN>\n## `_next_of_kin`", "looks up the next sibling of the closest ancestor with not-None next\n siblings.\n<END>", "<BEGIN>\n## `_last_in_direction`", "move in the tree in given direction and return the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Expand all positions; works only if the underlying tree allows it.
"Expand all positions; works only if the underlying tree allows it."
60
false
pazz/urwidtrees
expand_all
22,368
LDU_FT/rapidpro/dash/sync_local_to_set
LDU_FT
[ "<BEGIN>\n## `intersection`", "Return the intersection of lists, using the first list to determine item order\n<END>", "<BEGIN>\n## `union`", "Return the union of lists, ordering by first seen in any list\n<END>", "<BEGIN>\n## `filter_dict`", "Creates a new dict from an existing dict that only has the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_local_to_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_local_to_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...
Syncs an org's set of local instances of a model to match the set of remote objects. Local objects not in the remote set are deleted. :param org: the org :param * syncer: the local model syncer :param remote_set: the set of remote objects :return: tuple of number of local objects created, updated, ...
"Syncs an org's set of local instances of a model to match the set of remote objects. Local objects not in the remote\n set are deleted.\n\n :param org: the org\n :param * syncer: the local model syncer\n :param remote_set: the set of remote objects\n :return: tuple of number of local objects created, up...
55
false
rapidpro/dash
sync_local_to_set
22,369
LDU_FT/python-visualization/branca/to_json
LDU_FT
[ "<BEGIN>\n## `legend_scaler`", "Downsamples the number of legend values so that there isn't a collision\n of text on the legend colorbar (within reason). The colorbar seems to\n support ~10 entries as a maximum.\n<END>", "<BEGIN>\n## `linear_gradient`", "Given a list of hexcode values, will return a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a JSON representation of the object.
"Returns a JSON representation of the object."
73
false
python-visualization/branca
to_json
22,370
LDU_FT/fopina/tgbotplug/forward_message
LDU_FT
[ "<BEGIN>\n## `print_commands`", "utility method to print commands\n and descriptions for @BotFather\n<END>", "<BEGIN>\n## `send_message`", "Use this method to send text messages.", " :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param text: Text of the me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward_message API. 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 forward_message API. 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...
Use this method to forward messages of any kind. :param chat_id: Unique identifier for the message recipient — User or GroupChat id :param from_chat_id: Unique identifier for the chat where the original message was sent — User or GroupChat id :param message_id: Unique message ident...
"Use this method to forward messages of any kind.\n\n :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param from_chat_id: Unique identifier for the chat where the original message was sent — User or\n GroupChat id\n :param message_id: Unique message...
41
false
fopina/tgbotplug
forward_message
22,371
LDU_FT/ttinies/sc2gameLobby/cancelMatchRequest
LDU_FT
[ "<BEGIN>\n## `addNew`", "Add a new version record to the database to be tracked\n VERSION RECORD EXAMPLE:\n \"base-version\": 55505, \n \"data-hash\": \"60718A7CA50D0DF42987A30CF87BCB80\", \n \"fixed-hash\": \"0189B2804E2F6BA4C4591222089E63B2\", \n \"label\": \"3.16\", \n \"r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancelMatchRequest 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 cancelMatchRequest 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...
obtain information housed on the ladder about playerName
"obtain information housed on the ladder about playerName"
76
false
ttinies/sc2gameLobby
cancelMatchRequest
22,372