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/taddeus/wspy/connect
LDU_FT
[ "<BEGIN>\n## `conflicts`", "Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Equivalent to socket.connect(), but sends an client handshake request after connecting. `address` is a (host, port) tuple of the server to connect to.
"Equivalent to socket.connect(), but sends an client handshake request\n after connecting.\n\n `address` is a (host, port) tuple of the server to connect to."
72
false
taddeus/wspy
connect
21,673
LDU_FT/ramses-tech/ramses/validate_permissions
LDU_FT
[ "<BEGIN>\n## `get_existing_model`", "Try to find existing model class named `model_name`.", " :param model_name: String name of the model class.\n<END>", "<BEGIN>\n## `prepare_relationship`", "Create referenced model if it doesn't exist.", " When preparing a relationship, we check to see if the mode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validate :perms: contains valid permissions. :param perms: List of permission names or ALL_PERMISSIONS.
"Validate :perms: contains valid permissions.\n\n :param perms: List of permission names or ALL_PERMISSIONS."
180
false
ramses-tech/ramses
validate_permissions
21,674
LDU_FT/rliebz/whoswho/seq_ratio
LDU_FT
[ "<BEGIN>\n## `deep_compare`", "Compares each field of the name one at a time to see if they match.\n Each name field has context-specific comparison logic.", " :param Name other: other Name for comparison\n :return bool: whether the two names are compatible\n<END>", "<BEGIN>\n## `ratio_de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns sequence match ratio for two words
"Returns sequence match ratio for two words"
38
false
rliebz/whoswho
seq_ratio
21,675
LDU_FT/ipfs/py-ipfs-api/add_str
LDU_FT
[ "<BEGIN>\n## `parse`", "Returns a Python object decoded from the bytes of this encoding.", " Raises\n ------\n ~ipfsapi.exceptions.DecodingError", " Parameters\n ----------\n raw : bytes\n Data to be parsed", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Adds a Python string as a file to IPFS. .. code-block:: python >>> c.add_str(u"Mary had a little lamb") 'QmZfF6C9j4VtoCsTp4KSrhYH47QMd3DNXVZBKaxJdhaPab' Also accepts and will stream generator objects. Parameters ---------- string : str Cont...
"Adds a Python string as a file to IPFS.\n\n .. code-block:: python\n\n >>> c.add_str(u\"Mary had a little lamb\")\n 'QmZfF6C9j4VtoCsTp4KSrhYH47QMd3DNXVZBKaxJdhaPab'\n\n Also accepts and will stream generator objects.\n\n Parameters\n ----------\n string : str\n ...
499
false
ipfs/py-ipfs-api
add_str
21,676
LDU_FT/Hackerfleet/hfos/get_tile
LDU_FT
[ "<BEGIN>\n## `_augment_book`", "Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.", " :param uuid: uuid of book to augment\n :param client: requesting client\n<END>", "<BEGIN>\n## `serial_ports`", "Lists serial por...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tile API. 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...
Threadable function to retrieve map tiles from the internet :param url: URL of tile to get
"Threadable function to retrieve map tiles from the internet\n :param url: URL of tile to get"
344
false
Hackerfleet/hfos
get_tile
21,677
LDU_FT/kaste/mockito-python/get_function_host
LDU_FT
[ "<BEGIN>\n## `verify`", "Central interface to verify interactions.", " `verify` uses a fluent interface::", " verify(<obj>, times=2).<method_name>(<args>)", " `args` can be as concrete as necessary. Often a catch-all is enough,\n especially if you're working with strict mocks, bc they throw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_function_host API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_function_host API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Destructure a given function into its host and its name. The 'host' of a function is a module, for methods it is usually its instance or its class. This is safe only for methods, for module wide, globally declared names it must be considered experimental. For all reasonable fn: ``getattr(*get_function...
"Destructure a given function into its host and its name.\n\n The 'host' of a function is a module, for methods it is usually its\n instance or its class. This is safe only for methods, for module wide,\n globally declared names it must be considered experimental.\n\n For all reasonable fn: ``getattr(*get_f...
106
false
kaste/mockito-python
get_function_host
21,678
LDU_FT/openstax/cnx-archive/add_url
LDU_FT
[ "<BEGIN>\n## `redirect_legacy_content`", "Redirect from legacy /content/id/version to new /contents/uuid@version.", " Handles collection context (book) as well.\n<END>", "<BEGIN>\n## `robots`", "Return a simple \"don't index me\" robots.txt file.\n<END>", "<BEGIN>\n## `_get_sql`", "Returns the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracted...
Add a new url to the sitemap. This function can either be called with a :class:`UrlEntry` or some keyword and positional arguments that are forwarded to the :class:`UrlEntry` constructor.
"Add a new url to the sitemap.\n\n This function can either be called with a :class:`UrlEntry`\n or some keyword and positional arguments that are forwarded to\n the :class:`UrlEntry` constructor."
208
false
openstax/cnx-archive
add_url
21,679
LDU_FT/royi1000/py-libhdate/_holiday_entry
LDU_FT
[ "<BEGIN>\n## `gdate_to_jdn`", "Compute Julian day from Gregorian day, month and year.", " Algorithm from wikipedia's julian_day article.\n Return: The julian day number\n<END>", "<BEGIN>\n## `hdate_to_jdn`", "Compute Julian day from Hebrew day, month and year.", " Return: julian day number,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _holiday_entry API. 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 _holiday_entry API. 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 abstract holiday information from holidays table.
"Return the abstract holiday information from holidays table."
70
false
royi1000/py-libhdate
_holiday_entry
21,680
LDU_FT/stephantul/somber/forward
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Perform a forward pass through the network. The forward pass in recursive som is based on a combination between the activation in the last time-step and the current time-step. Parameters ---------- x : numpy array The input data. prev_activation : numpy arra...
"Perform a forward pass through the network.\n\n The forward pass in recursive som is based on a combination between\n the activation in the last time-step and the current time-step.\n\n Parameters\n ----------\n x : numpy array\n The input data.\n prev_activation : ...
123
false
stephantul/somber
forward
21,681
LDU_FT/jochym/Elastic/read_results
LDU_FT
[ "<BEGIN>\n## `regular`", "Equation matrix generation for the regular (cubic) lattice.\n The order of constants is as follows:", " .. math::\n C_{11}, C_{12}, C_{44}", " :param u: vector of deformations:\n [ :math:`u_{xx}, u_{yy}, u_{zz}, u_{yz}, u_{xz}, u_{xy}` ]", " :returns: Symme...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_results API. 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...
Read energy, forces, ... from output file(s).
"Read energy, forces, ... from output file(s)."
76
false
jochym/Elastic
read_results
21,682
LDU_FT/chaoss/grimoirelab-manuscripts/__get_metrics
LDU_FT
[ "<BEGIN>\n## `overview`", "Compute metrics in the overview section for enriched github issues\n indexes.\n Returns a dictionary. Each key in the dictionary is the name of\n a metric, the value is the value of that metric. Value can be\n a complex object (eg, a time series).", " :param index: inde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_metrics API. 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_metrics API. 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...
Each metric must have its own filters copy to modify it freely
"Each metric must have its own filters copy to modify it freely"
271
false
chaoss/grimoirelab-manuscripts
__get_metrics
21,683
LDU_FT/bjmorgan/lattice_mc/coordination_number_delta_E
LDU_FT
[ "<BEGIN>\n## `collective_dr_squared`", "Squared sum of total displacements for these atoms.", " Args:\n None", " Returns:\n (Float): The square of the summed total displacements for these atoms.\n<END>", "<BEGIN>\n## `occupations`", "Number of these atoms occupying a sp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coordination_number_delta_E 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 coordination_number_delta_E API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Coordination-number dependent energy conrtibution to the change in system energy if this jump were accepted. Args: None Returns: (Float): delta E (coordination-number)
"Coordination-number dependent energy conrtibution to the change in system energy if this jump were accepted.\n\n Args:\n None\n\n Returns:\n (Float): delta E (coordination-number)"
213
false
bjmorgan/lattice_mc
coordination_number_delta_E
21,684
LDU_FT/tisimst/pyDOE/pbdesign
LDU_FT
[ "<BEGIN>\n## `pbdesign`", "Generate a Plackett-Burman design\r", " Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r", " Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pbdesign API. 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 pbdesign API. 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...
Generate a Plackett-Burman design Parameter --------- n : int The number of factors to create a matrix for. Returns ------- H : 2d-array An orthogonal design matrix with n columns, one for each factor, and the number of rows being the next multiple of...
"Generate a Plackett-Burman design\r\n \r\n Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r\n \r\n Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n the number of rows bei...
96
false
tisimst/pyDOE
pbdesign
21,685
LDU_FT/skymill/automated-ebs-snapshots/connect_to_ec2
LDU_FT
[ "<BEGIN>\n## `connect_to_ec2`", "Connect to AWS ec2", " :type region: str\n :param region: AWS region to connect to\n :type access_key: str\n :param access_key: AWS access key id\n :type secret_key: str\n :param secret_key: AWS secret access key\n :returns: boto.ec2.connection.EC2Connection...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_to_ec2 API. 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 connect_to_ec2 API. 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...
Connect to AWS ec2 :type region: str :param region: AWS region to connect to :type access_key: str :param access_key: AWS access key id :type secret_key: str :param secret_key: AWS secret access key :returns: boto.ec2.connection.EC2Connection -- EC2 connection
"Connect to AWS ec2\n\n :type region: str\n :param region: AWS region to connect to\n :type access_key: str\n :param access_key: AWS access key id\n :type secret_key: str\n :param secret_key: AWS secret access key\n :returns: boto.ec2.connection.EC2Connection -- EC2 connection"
42
false
skymill/automated-ebs-snapshots
connect_to_ec2
21,686
LDU_FT/mongolab/mongoctl/get_working_login
LDU_FT
[ "<BEGIN>\n## `ensure_dir`", "If DIR_PATH does not exist, makes it. Failing that, raises Exception.\n Returns True if dir already existed; False if it had to be made.\n<END>", "<BEGIN>\n## `is_same_host`", "Returns true if host1 == host2 OR map to the same host (using DNS)\n<END>", "<BEGIN>\n## `is_same_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_working_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_working_login API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
authenticate to the specified database starting with specified username/password (if present), try to return a successful login within 3 attempts
"authenticate to the specified database starting with specified\n username/password (if present), try to return a successful login\n within 3 attempts"
46
false
mongolab/mongoctl
get_working_login
21,687
LDU_FT/pytroll/pyspectral/_band_calculations
LDU_FT
[ "<BEGIN>\n## `radiance2tb`", "Get the Tb from the radiance using the Planck function", " rad:\n Radiance in SI units\n wavelength:\n Wavelength in SI units (meter)\n<END>", "<BEGIN>\n## `_get_rsr`", "Get the relative spectral responses from file, find the bandname, and\n convert t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _band_calculations 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 _band_calculations 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...
Derive the inband solar flux or inband solar irradiance for a given instrument relative spectral response valid for an earth-sun distance of one AU. rsr: Relative Spectral Response (one detector only) Dictionary with two members 'wavelength' and 'response' options: detec...
"Derive the inband solar flux or inband solar irradiance for a given\n instrument relative spectral response valid for an earth-sun distance\n of one AU.\n\n rsr: Relative Spectral Response (one detector only)\n Dictionary with two members 'wavelength' and 'response'\n options:\n ...
129
false
pytroll/pyspectral
_band_calculations
21,688
LDU_FT/nschloe/meshplex/control_volumes
LDU_FT
[ "<BEGIN>\n## `create_cell_volumes`", "Computes the volumes of the \"cells\" in the mesh.\n<END>", "<BEGIN>\n## `create_control_volumes`", "Compute the control volumes of all nodes in the mesh.\n<END>", "<BEGIN>\n## `get_signed_simplex_volumes`", "Signed volume of a simplex in nD. Note that signing only ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the control_volumes API. 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 control_volumes API. 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...
Compute the control volumes of all nodes in the mesh.
"Compute the control volumes of all nodes in the mesh."
44
false
nschloe/meshplex
control_volumes
21,689
LDU_FT/cdgriffith/Reusables/datetime_from_iso
LDU_FT
[ "<BEGIN>\n## `datetime_format`", "Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.", " .. code :: python", " reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"", " :param desired_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_from_iso API. 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 datetime_from_iso API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a DateTime object from a ISO string .. code :: python reusables.datetime_from_iso('2017-03-10T12:56:55.031863') datetime.datetime(2017, 3, 10, 12, 56, 55, 31863) :param iso_string: string of an ISO datetime :return: DateTime object
"Create a DateTime object from a ISO string\n\n .. code :: python\n\n reusables.datetime_from_iso('2017-03-10T12:56:55.031863')\n datetime.datetime(2017, 3, 10, 12, 56, 55, 31863)\n\n :param iso_string: string of an ISO datetime\n :return: DateTime object"
320
false
cdgriffith/Reusables
datetime_from_iso
21,690
LDU_FT/crs4/hl7apy/get_structure
LDU_FT
[ "<BEGIN>\n## `check_encoding_chars`", "Validate the given encoding chars", " :type encoding_chars: ``dict``\n :param encoding_chars: the encoding chars (see :func:`hl7apy.set_default_encoding_chars`)\n :raises: :exc:`hl7apy.exceptions.InvalidEncodingChars` if the given encoding chars are not valid\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_structure API. 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_structure API. 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 the element structure :type element: :class:`Element <hl7apy.core.Element>` :param element: element having the given reference structure :param reference: the element structure from :func:`load_reference <hl7apy.load_reference>` or from a message profile :return: a dic...
"Get the element structure\n\n :type element: :class:`Element <hl7apy.core.Element>`\n :param element: element having the given reference structure\n\n :param reference: the element structure from :func:`load_reference <hl7apy.load_reference>` or from a\n message profile\n\n :retu...
289
false
crs4/hl7apy
get_structure
21,691
LDU_FT/richardkiss/pycoin/spendables_for_address
LDU_FT
[ "<BEGIN>\n## `parse_as_header`", "Parse the Block header from the file-like object\n<END>", "<BEGIN>\n## `stream_header_legacy`", "Stream the block header in the standard way to the file-like object f.\n<END>", "<BEGIN>\n## `stream_header`", "Stream the block header in the standard way to the file-like ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spendables_for_address 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 spendables_for_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a list of Spendable objects for the given bitcoin address.
"Return a list of Spendable objects for the\n given bitcoin address."
336
false
richardkiss/pycoin
spendables_for_address
21,692
LDU_FT/erget/StereoVision/find_files
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_files API. 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_files API. 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...
Discover stereo photos and return them as a pairwise sorted list.
"Discover stereo photos and return them as a pairwise sorted list."
83
false
erget/StereoVision
find_files
21,693
LDU_FT/rbuffat/pyepw/calc_horizontal_infrared_radiation_intensity
LDU_FT
[ "<BEGIN>\n## `read`", "Read values.", " Args:\n vals (list): list of strings representing values\n<END>", "<BEGIN>\n## `city`", "Corresponds to IDD Field `city`", " Args:\n value (str): value for IDD Field `city`\n if `value` is None it will not be checke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_horizontal_infrared_radiation_intensity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_horizontal_infrared_radiation_intensity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ind...
Estimates the global horizontal infrared radiation intensity based on drybulb, dewpoint and opaque sky cover. References: Walton, G. N. 1983. Thermal Analysis Research Program Reference Manual. NBSSIR 83- 2655. National Bureau of Standards, p. 21. Clark, G. and C. Allen, "The Estimation of Atmospher...
"Estimates the global horizontal infrared radiation intensity based\n on drybulb, dewpoint and opaque sky cover.\n References:\n Walton, G. N. 1983. Thermal Analysis Research Program Reference Manual. NBSSIR 83-\n 2655. National Bureau of Standards, p. 21.\n Clark, G. and C. Allen, \"The Estimation of At...
675
false
rbuffat/pyepw
calc_horizontal_infrared_radiation_intensity
21,694
LDU_FT/BlueBrain/hpcbench/command
LDU_FT
[ "<BEGIN>\n## `arguments`", "Dictionary providing the list of arguments for every\n benchmark\n<END>", "<BEGIN>\n## `run`", "Execute benchmarks on every node specified in arguments.\n If none are given, then execute benchmarks on every nodes\n specified in the ``network.nodes`` campaign co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
:return command to execute inside the generated shell-script
":return command to execute inside the generated shell-script"
216
false
BlueBrain/hpcbench
command
21,695
LDU_FT/CiscoUcs/UcsPythonSDK/ImportUcsSession
LDU_FT
[ "<BEGIN>\n## `get_boot_device`", "Get the current boot device for the node.\r", " Provides the current boot device of the node. Be aware that not\r\n all drivers support this.\r", " :raises: InvalidParameterValue if any connection parameters are\r\n incorrect.\r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ImportUcsSession API. 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 ImportUcsSession API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This operation will do a login to each UCS which is present in credential file. - filePath specifies the path of the credential file. - key specifies string used for secure encryption while ExportUcsSession operation.
"This operation will do a login to each UCS which is present in credential file.\n\n - filePath specifies the path of the credential file.\n - key specifies string used for secure encryption while ExportUcsSession operation."
179
false
CiscoUcs/UcsPythonSDK
ImportUcsSession
21,696
LDU_FT/PaloAltoNetworks/pancloud/delete
LDU_FT
[ "<BEGIN>\n## `_credentials_found_in_envars`", "Check for credentials in envars.", " Returns:\n bool: ``True`` if at least one is found, otherwise ``False``.\n<END>", "<BEGIN>\n## `_resolve_credential`", "Resolve credential from envars or credentials store.", " Args:\n c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Delete a query job. Uses the DELETE HTTP method to delete a query job. After calling this endpoint, it is an error to poll for query results using the queryId specified here. Args: query_id (str): Specifies the ID of the query job. **kwargs: Supported :meth:`~pa...
"Delete a query job.\n\n Uses the DELETE HTTP method to delete a query job. After calling\n this endpoint, it is an error to poll for query results using\n the queryId specified here.\n\n Args:\n query_id (str): Specifies the ID of the query job.\n **kwargs: Supported :...
129
false
PaloAltoNetworks/pancloud
delete
21,697
LDU_FT/CI-WATER/mapkit/getAsKmlPng
LDU_FT
[ "<BEGIN>\n## `getAsKmlGrid`", "Creates a KML file with each cell in the raster represented by a polygon. The result is a vector grid representation of the raster.\n Note that pixels with values between -1 and 0 are omitted as no data values. Also note that this method only works on the first band.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAsKmlPng API. 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 getAsKmlPng API. 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...
Creates a KML wrapper and PNG represent of the raster. Returns a string of the kml file contents and a binary string of the PNG contents. The color ramp used to generate the PNG is embedded in the ExtendedData tag of the GroundOverlay. IMPORTANT: The PNG image is referenced in the kml as 'raster...
"Creates a KML wrapper and PNG represent of the raster. Returns a string of the kml file contents and\n a binary string of the PNG contents. The color ramp used to generate the PNG is embedded in the ExtendedData\n tag of the GroundOverlay.\n IMPORTANT: The PNG image is referenced in the kml as 'ra...
62
false
CI-WATER/mapkit
getAsKmlPng
21,698
LDU_FT/Riparo/nougat/run
LDU_FT
[ "<BEGIN>\n## `is_middleware`", "test whether it is a middleware\n :return: Boolean\n<END>", "<BEGIN>\n## `set_header`", "set response header\n :param key: the key of header\n :param value: the value of header\n<END>", "<BEGIN>\n## `send_http_response`", "generate http response payload and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
start the http server :param host: The listening host :param port: The listening port :param debug: whether it is in debug mod or not
"start the http server\n :param host: The listening host\n :param port: The listening port\n :param debug: whether it is in debug mod or not"
16
false
Riparo/nougat
run
21,699
LDU_FT/fedora-infra/fedmsg/_load_certificate
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 _load_certificate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_certificate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Load a certificate from the given location. Args: location (str): The location to load. This can either be an HTTPS URL or an absolute file path. This is intended to be used with PEM-encoded certificates and therefore assumes ASCII encoding. Returns: str: The PEM-encode...
"Load a certificate from the given location.\n\n Args:\n location (str): The location to load. This can either be an HTTPS URL or an absolute file\n path. This is intended to be used with PEM-encoded certificates and therefore assumes\n ASCII encoding.\n\n Returns:\n str: The P...
248
false
fedora-infra/fedmsg
_load_certificate
21,700
LDU_FT/MakerReduxCorp/MARDS/schema_match_up
LDU_FT
[ "<BEGIN>\n## `rst`", "Given the data and type information, generate a list of strings for\n insertion into a RST document.\n<END>", "<BEGIN>\n## `split_number_unit`", "takes a string and grabs the leading number and the following unit \n both the number and unit returned are simple strings\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schema_match_up API. 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 schema_match_up API. 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...
SCHEMA mini-recompile for: each SEARCH then MATCH function each TYPE then CHOICE function given the doc, it returns a schema copy that implements the match
"SCHEMA mini-recompile for:\n\n each SEARCH then MATCH function\n each TYPE then CHOICE function\n \n given the doc, it returns a schema copy that implements the match"
20
false
MakerReduxCorp/MARDS
schema_match_up
21,701
LDU_FT/scalative/haas/discover_by_directory
LDU_FT
[ "<BEGIN>\n## `run`", "Run the haas test runner.", " This will load and configure the selected plugins, set up the\n environment and begin test discovery, loading and running.", " Parameters\n ----------\n plugin_manager : haas.plugin_manager.PluginManager\n [Optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_by_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_by_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Run test discovery in a directory. Parameters ---------- start_directory : str The package directory in which to start test discovery. top_level_directory : str The path to the top-level directoy of the project. This is the parent directory of the pr...
"Run test discovery in a directory.\n\n Parameters\n ----------\n start_directory : str\n The package directory in which to start test discovery.\n top_level_directory : str\n The path to the top-level directoy of the project. This is\n the parent directory ...
66
false
scalative/haas
discover_by_directory
21,702
LDU_FT/secdev/scapy/_read_routes_c_v1
LDU_FT
[ "<BEGIN>\n## `_get_npcap_config`", "Get a Npcap parameter matching key in the registry.", " List:\n AdminOnly, DefaultFilterSettings, DltNull, Dot11Adapters, Dot11Support\n LoopbackAdapter, LoopbackSupport, NdisImPlatformBindingOptions, VlanSupport\n WinPcapCompatible\n<END>", "<BEGIN>\n## `_exec_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_routes_c_v1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_routes_c_v1 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Retrieve Windows routes through a GetIpForwardTable call. This is compatible with XP but won't get IPv6 routes.
"Retrieve Windows routes through a GetIpForwardTable call.\n\n This is compatible with XP but won't get IPv6 routes."
1,329
true
secdev/scapy
_read_routes_c_v1
21,703
LDU_FT/codeinn/vcs/get_nodes
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns combined ``DirNode`` and ``FileNode`` objects list representing state of changeset at the given ``path``. If node at the given ``path`` is not instance of ``DirNode``, ChangesetError would be raised.
"Returns combined ``DirNode`` and ``FileNode`` objects list representing\n state of changeset at the given ``path``. If node at the given ``path``\n is not instance of ``DirNode``, ChangesetError would be raised."
326
false
codeinn/vcs
get_nodes
21,704
LDU_FT/JukeboxPipeline/jukebox-core/get_name
LDU_FT
[ "<BEGIN>\n## `restrictable`", "Decorator for :class:`Reftrack` methods.\n A decorated method will check if its restriction with :meth:`Reftrack.is_restricted`\n and raises a :class:`RestrictionError` if it is restricted.", " :param m: The :class:`Reftrack` method to wrap\n :type m: :class:`Reftrack`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the filename :param obj: the fileinfo with information. If None, this will use the stored object of JB_File :type obj: :class:`FileInfo` :param withext: If True, return with the fileextension. :type withext: bool :returns: the filename, default is with fileextension ...
"Return the filename\n\n :param obj: the fileinfo with information. If None, this will use the stored object of JB_File\n :type obj: :class:`FileInfo`\n :param withext: If True, return with the fileextension.\n :type withext: bool\n :returns: the filename, default is with fileextensio...
1,529
true
JukeboxPipeline/jukebox-core
get_name
21,705
LDU_FT/castelao/oceansdb/crop
LDU_FT
[ "<BEGIN>\n## `cropIndices`", "Return the indices to crop dataset", " Assuming that the dataset have the dimensions given by\n dims, this function return the indices to conform with\n the given coordinates (lat, lon, ...)\n<END>", "<BEGIN>\n## `dbsource`", "Return which file(s) to us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crop API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Crop a subset of the dataset for each var Given doy, depth, lat and lon, it returns the smallest subset that still contains the requested coordinates inside it. It handels special cases like a region around greenwich and the international date line. Accep...
"Crop a subset of the dataset for each var\n\n Given doy, depth, lat and lon, it returns the smallest subset\n that still contains the requested coordinates inside it.\n\n It handels special cases like a region around greenwich and\n the international date line.\n\n ...
39
false
castelao/oceansdb
crop
21,706
LDU_FT/coghost/izen/get_domain_home_from_url
LDU_FT
[ "<BEGIN>\n## `encrypt`", "简单封装系统加密", " :param plain: 待加密内容\n :type plain: ``str/bytes``\n :param algorithm: 加密算法\n :type algorithm: str\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `aes_obj`", "生成aes加密所需要的 ``key, iv``", " .. warning:: 每个AES.new对象, 只能使用一次", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_domain_home_from_url 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 get_domain_home_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
parse url for domain and homepage :param url: the req url :type url: str :return: (homepage, domain) :rtype:
"parse url for domain and homepage\n\n :param url: the req url\n :type url: str\n :return: (homepage, domain)\n :rtype:"
273
false
coghost/izen
get_domain_home_from_url
21,707
LDU_FT/BeyondTheClouds/enoslib/run_play
LDU_FT
[ "<BEGIN>\n## `_build_g5k_conf`", "Build the conf of the g5k provider from the vmong5k conf.\n<END>", "<BEGIN>\n## `cached`", "Decorator for caching/retrieving api calls request.", " Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_play API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_play API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Run a play. Args: pattern_hosts (str): pattern to describe ansible hosts to target. see https://docs.ansible.com/ansible/latest/intro_patterns.html play_source (dict): ansible task inventory_path (str): inventory to use extra_vars (dict): extra_vars to use on_err...
"Run a play.\n\n Args:\n pattern_hosts (str): pattern to describe ansible hosts to target.\n see https://docs.ansible.com/ansible/latest/intro_patterns.html\n play_source (dict): ansible task\n inventory_path (str): inventory to use\n extra_vars (dict): extra_vars to use\n ...
229
false
BeyondTheClouds/enoslib
run_play
21,708
LDU_FT/ajslater/picopt/_comic_archive_write_zipfile
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comic_archive_write_zipfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comic_archive_write_zipfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Zip up the files in the tempdir into the new filename.
"Zip up the files in the tempdir into the new filename."
86
false
ajslater/picopt
_comic_archive_write_zipfile
21,709
LDU_FT/xingjiepan/cylinder_fitting/skew_matrix
LDU_FT
[ "<BEGIN>\n## `direction`", "Return the direction vector of a cylinder defined\n by the spherical coordinates theta and phi.\n<END>", "<BEGIN>\n## `projection_matrix`", "Return the projection matrix of a direction w.\n<END>", "<BEGIN>\n## `skew_matrix`", "Return the skew matrix of a direction w.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the skew_matrix API. 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 skew_matrix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the skew matrix of a direction w.
"Return the skew matrix of a direction w."
30
false
xingjiepan/cylinder_fitting
skew_matrix
21,710
LDU_FT/chemlab/chemlab/load_trajectory
LDU_FT
[ "<BEGIN>\n## `molecular_orbital`", "Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.", " The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_trajectory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_trajectory API. 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...
Load a trajectory file into chemlab. You should call this command after you load a `~chemlab.core.System` through load_system or load_remote_system.
"Load a trajectory file into chemlab. You should call this\n command after you load a `~chemlab.core.System` through\n load_system or load_remote_system."
665
false
chemlab/chemlab
load_trajectory
21,711
LDU_FT/shidenggui/easytrader/follow
LDU_FT
[ "<BEGIN>\n## `prepare`", "登录的统一接口\n :param config_file 登录数据文件,若无则选择参数登录模式\n :param user: 各家券商的账号或者雪球的用户名\n :param password: 密码, 券商为加密后的密码,雪球为明文密码\n :param account: [雪球登录需要]雪球手机号(邮箱手机二选一)\n :param portfolio_code: [雪球登录需要]组合代码\n :param portfolio_market: [雪球登录需要]交易市场,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the follow API. 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 follow API. 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 ...
跟踪ricequant对应的模拟交易,支持多用户多策略 :param users: 支持easytrader的用户对象,支持使用 [] 指定多个用户 :param run_id: ricequant 的模拟交易ID,支持使用 [] 指定多个模拟交易 :param track_interval: 轮训模拟交易时间,单位为秒 :param trade_cmd_expire_seconds: 交易指令过期时间, 单位为秒 :param cmd_cache: 是否读取存储历史执行过的指令,防止重启时重复执行已经交易过的指令 :param entr...
"跟踪ricequant对应的模拟交易,支持多用户多策略\n :param users: 支持easytrader的用户对象,支持使用 [] 指定多个用户\n :param run_id: ricequant 的模拟交易ID,支持使用 [] 指定多个模拟交易\n :param track_interval: 轮训模拟交易时间,单位为秒\n :param trade_cmd_expire_seconds: 交易指令过期时间, 单位为秒\n :param cmd_cache: 是否读取存储历史执行过的指令,防止重启时重复执行已经交易过的指令\n :par...
93
false
shidenggui/easytrader
follow
21,712
LDU_FT/rushter/heamy/blend
LDU_FT
[ "<BEGIN>\n## `concat`", "Concatenate a sequence of pandas or numpy objects into one entity.\n<END>", "<BEGIN>\n## `reshape_1d`", "If parameter is 1D row vector then convert it into 2D matrix.\n<END>", "<BEGIN>\n## `idx`", "Universal indexing for numpy and pandas objects.\n<END>", "<BEGIN>\n## `xgb_progr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blend API. 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 blend API. 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...
Blends sequence of models. Parameters ---------- proportion : float, default 0.2 stratify : bool, default False seed : int, default False indices : list(np.ndarray,np.ndarray), default None Two numpy arrays that contain indices for train/test slicing. ...
"Blends sequence of models.\n\n Parameters\n ----------\n proportion : float, default 0.2\n stratify : bool, default False\n seed : int, default False\n indices : list(np.ndarray,np.ndarray), default None\n Two numpy arrays that contain indices for train/test slicing...
91
false
rushter/heamy
blend
21,713
LDU_FT/limix/limix-core/cached_idxs
LDU_FT
[ "<BEGIN>\n## `addFixedEffect`", "set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>", "<BEGIN>\n## `removeFixedEffect`", "set sample and tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cached_idxs API. 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 cached_idxs API. 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...
this function is used as a decorator for caching
"this function is used as a decorator for caching"
61
false
limix/limix-core
cached_idxs
21,714
LDU_FT/NiklasRosenstein-Python/nr-deprecated/match
LDU_FT
[ "<BEGIN>\n## `skip`", "Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.", " > Important: This functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Match the specified *filename*. If *isdir* is False, directory-only patterns will be ignored. Returns one of - #MATCH_DEFAULT - #MATCH_IGNORE - #MATCH_INCLUDE
"Match the specified *filename*. If *isdir* is False, directory-only\n patterns will be ignored.\n\n Returns one of\n\n - #MATCH_DEFAULT\n - #MATCH_IGNORE\n - #MATCH_INCLUDE"
305
false
NiklasRosenstein-Python/nr-deprecated
match
21,715
LDU_FT/nabetama/slacky/set_purpose
LDU_FT
[ "<BEGIN>\n## `create`", "https://api.slack.com/methods/channels.create\n<END>", "<BEGIN>\n## `history`", "https://api.slack.com/methods/channels.history\n<END>", "<BEGIN>\n## `info`", "https://api.slack.com/methods/channels.info\n<END>", "<BEGIN>\n## `invite`", "https://api.slack.com/methods/channels....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_purpose API. 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 set_purpose API. 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...
https://api.slack.com/methods/groups.setPurpose
"https://api.slack.com/methods/groups.setPurpose"
60
false
nabetama/slacky
set_purpose
21,716
LDU_FT/googlefonts/glyphsLib/to_glyphs_glyph
LDU_FT
[ "<BEGIN>\n## `to_ufo_font_attributes`", "Generate a list of UFOs with metadata loaded from .glyphs data.", " Modifies the list of UFOs in the UFOBuilder (self) in-place.\n<END>", "<BEGIN>\n## `to_glyphs_font_attributes`", "Copy font attributes from `ufo` either to `self.font` or to `master`.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_glyphs_glyph API. 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 to_glyphs_glyph API. 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...
Add UFO glif metadata, paths, components, and anchors to a GSGlyph. If the matching GSGlyph does not exist, then it is created, else it is updated with the new data. In all cases, a matching GSLayer is created in the GSGlyph to hold paths.
"Add UFO glif metadata, paths, components, and anchors to a GSGlyph.\n If the matching GSGlyph does not exist, then it is created,\n else it is updated with the new data.\n In all cases, a matching GSLayer is created in the GSGlyph to hold paths."
235
false
googlefonts/glyphsLib
to_glyphs_glyph
21,717
LDU_FT/wylee/runcommands/parse_optional
LDU_FT
[ "<BEGIN>\n## `confirm`", "Prompt for confirmation.", " Confirmation can be aborted by typing in a no value instead of one\n of the yes values or with Ctrl-C.", " Args:\n prompt (str): Prompt to present user [\"Really?\"]\n color (string|Color|bool) Color to print prompt string; can be\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_optional API. 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 parse_optional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Parse string into name, option, and value (if possible). If the string is a known option name, the string, the corresponding option, and ``None`` will be returned. If the string has the form ``--option=<value>`` or ``-o=<value>``, it will be split on equals into an option name ...
"Parse string into name, option, and value (if possible).\n\n If the string is a known option name, the string, the\n corresponding option, and ``None`` will be returned.\n\n If the string has the form ``--option=<value>`` or\n ``-o=<value>``, it will be split on equals into an option name\n...
111
false
wylee/runcommands
parse_optional
21,718
LDU_FT/genepattern/genepattern-python/get_recent_jobs
LDU_FT
[ "<BEGIN>\n## `GCT`", "Create a Dataframe with the contents of the GCT file\n<END>", "<BEGIN>\n## `ODF`", "Create a Dataframe with the contents of the ODF file", " For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide", " :o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recent_jobs API. 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_recent_jobs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the user's N most recently submitted jobs on the GenePattern server. Args: If not specified, n_jobs = 10. Returns: An array of GPJob objects.
"Returns the user's N most recently submitted jobs on the GenePattern server.\n\n Args: If not specified, n_jobs = 10.\n\n Returns: An array of GPJob objects."
156
false
genepattern/genepattern-python
get_recent_jobs
21,719
LDU_FT/pjmark/NIMPA/find_cuda
LDU_FT
[ "<BEGIN>\n## `trimim`", "Trim and upsample PET image(s), e.g., for GPU execution,\n PVC correction, ROI sampling, etc.\n The input images 'fims' can be passed in multiple ways:\n 1. as a string of the folder containing NIfTI files\n 2. as a string of a NIfTI file path (this way a 4D image can be loade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_cuda API. 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 find_cuda API. 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...
Locate the CUDA environment on the system.
"Locate the CUDA environment on the system."
78
false
pjmark/NIMPA
find_cuda
21,720
LDU_FT/cihai/cihai/with_fields
LDU_FT
[ "<BEGIN>\n## `run`", "Wrapped so we can test in tests/test_examples.py\n<END>", "<BEGIN>\n## `reflect_db`", "No-op to reflect db info.", " This is available as a method so the database can be reflected\n outside initialization (such bootstrapping unihan during CLI usage).\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns list of characters with information for certain fields. Parameters ---------- *fields : list of str fields for which information should be available Returns ------- :class:`sqlalchemy.orm.query.Query` : list of matches
"Returns list of characters with information for certain fields.\n\n Parameters\n ----------\n *fields : list of str\n fields for which information should be available\n\n Returns\n -------\n :class:`sqlalchemy.orm.query.Query` :\n list of matches"
77
false
cihai/cihai
with_fields
21,721
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 export service :return ads-classic formatted export string
"Execute the http request to the export service\n :return ads-classic formatted export string"
30
false
andycasey/ads
execute
21,722
LDU_FT/adewes/blitzdb/exists_query
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit all pending transactions to the database.", " .. admonition:: Warning", " This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists_query API. 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 exists_query API. 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...
Check that documents have a key that satisfies expression.
"Check that documents have a key that satisfies expression."
141
false
adewes/blitzdb
exists_query
21,723
LDU_FT/jeremymcrae/denovonear/minimise_transcripts
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimise_transcripts 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 minimise_transcripts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
get a set of minimal transcripts to contain all the de novos. We identify the minimal number of transcripts to contain all de novos. This allows for de novos on mutually exclusive transcripts. The transcripts are selected on the basis of containing the most number of de novos, while also being the ...
"get a set of minimal transcripts to contain all the de novos.\n \n We identify the minimal number of transcripts to contain all de novos. This\n allows for de novos on mutually exclusive transcripts. The transcripts are\n selected on the basis of containing the most number of de novos, while also\n bein...
112
false
jeremymcrae/denovonear
minimise_transcripts
21,724
LDU_FT/greenelab/django-genes/import_gene_history
LDU_FT
[ "<BEGIN>\n## `chk_col_numbers`", "Check that none of the input column numbers is out of range.\n (Instead of defining this function, we could depend on Python's built-in\n IndexError exception for this issue, but the IndexError exception wouldn't\n include line number information, which is helpful for us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_gene_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_gene_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. T...
Read input gene history file into the database. Note that the arguments tax_id_col, id_col and symbol_col have been converted into 0-based column indexes.
"Read input gene history file into the database.\n Note that the arguments tax_id_col, id_col and symbol_col have been\n converted into 0-based column indexes."
15
false
greenelab/django-genes
import_gene_history
21,725
LDU_FT/mapbox/mapbox-cli-py/create_tileset
LDU_FT
[ "<BEGIN>\n## `match`", "Mapbox Map Matching API lets you use snap your GPS traces\nto the OpenStreetMap road and path network.", " $ mapbox mapmatching trace.geojson", "An access token is required, see `mapbox --help`.\n<END>", "<BEGIN>\n## `staticmap`", "Generate static map images from existing Mapb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tileset API. 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_tileset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a vector tileset from a dataset. $ mapbox datasets create-tileset dataset-id username.data Note that the tileset must start with your username and the dataset must be one that you own. To view processing status, visit https://www.mapbox.com/data/. You may not generate another tilesets f...
"Create a vector tileset from a dataset.\n\n $ mapbox datasets create-tileset dataset-id username.data\n\n Note that the tileset must start with your username and the dataset\n must be one that you own. To view processing status, visit\n https://www.mapbox.com/data/. You may not generate another tileset...
81
false
mapbox/mapbox-cli-py
create_tileset
21,726
LDU_FT/crate/crate-python/_get_server
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get server to use for request. Also process inactive server list, re-add them after given interval.
"Get server to use for request.\n Also process inactive server list, re-add them after given interval."
81
false
crate/crate-python
_get_server
21,727
LDU_FT/robotools/fontMath/matrixToMathTransform
LDU_FT
[ "<BEGIN>\n## `_openTypeOS2WidthClassFormatter`", ">>> _openTypeOS2WidthClassFormatter(-2)\n 1\n >>> _openTypeOS2WidthClassFormatter(0)\n 1\n >>> _openTypeOS2WidthClassFormatter(5.4)\n 5\n >>> _openTypeOS2WidthClassFormatter(9.6)\n 9\n >>> _openTypeOS2WidthClassFormatter(12)\n 9\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matrixToMathTransform 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 matrixToMathTransform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Take a 6-tuple and return a ShallowTransform object.
"Take a 6-tuple and return a ShallowTransform object."
25
false
robotools/fontMath
matrixToMathTransform
21,728
LDU_FT/ronniedada/tabula/add_cell
LDU_FT
[ "<BEGIN>\n## `size`", "Return the viewable size of the Table as @tuple (x,y)\n<END>", "<BEGIN>\n## `get_ftr`", "Process footer and return the processed string\n<END>", "<BEGIN>\n## `conv_units`", "Format and convert units to be more human readable", " @return new val with converted units\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cell API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add/update a val on cell [row, col] Create new rows or columns accordingly @param row : row header name @param col : column header name @param meta: meta data to control data display
"Add/update a val on cell [row, col]\n\n Create new rows or columns accordingly\n\n @param row : row header name\n @param col : column header name\n @param meta: meta data to control data display"
25
false
ronniedada/tabula
add_cell
21,729
LDU_FT/tensorflow/tensorboard/get_unique_tags
LDU_FT
[ "<BEGIN>\n## `add_event`", "Adds an event to the event file.", " Args:\n event: An `Event` protocol buffer.\n<END>", "<BEGIN>\n## `write`", "Enqueue the given bytes to be written asychronously\n<END>", "<BEGIN>\n## `flush`", "Write all the enqueued bytestring before this flush call to di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a dictionary of tags that a user could query over. Args: field_to_obs: Dict that maps string field to `Observation` list. Returns: A dict that maps keys in `TAG_FIELDS` to a list of string tags present in the event files. If the dict does not have any observations of the type, maps to an e...
"Returns a dictionary of tags that a user could query over.\n\n Args:\n field_to_obs: Dict that maps string field to `Observation` list.\n\n Returns:\n A dict that maps keys in `TAG_FIELDS` to a list of string tags present in\n the event files. If the dict does not have any observations of the type,\n map...
1,768
true
tensorflow/tensorboard
get_unique_tags
21,730
LDU_FT/EconForge/dolo/state_perturb
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state_perturb API. 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 state_perturb API. 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...
Computes a Taylor approximation of decision rules, given the supplied derivatives. The original system is assumed to be in the the form: .. math:: E_t f(s_t,x_t,s_{t+1},x_{t+1}) s_t = g(s_{t-1},x_{t-1}, \\lambda \\epsilon_t) where :math:`\\lambda` is a scalar scaling down the risk. the...
"Computes a Taylor approximation of decision rules, given the supplied derivatives.\n\n The original system is assumed to be in the the form:\n\n .. math::\n\n E_t f(s_t,x_t,s_{t+1},x_{t+1})\n\n s_t = g(s_{t-1},x_{t-1}, \\\\lambda \\\\epsilon_t)\n\n where :math:`\\\\lambda` is a scalar scaling do...
221
false
EconForge/dolo
state_perturb
21,731
LDU_FT/rbaier/python-urltools/split_host
LDU_FT
[ "<BEGIN>\n## `_get_public_suffix_list`", "Return a set containing all Public Suffixes.", " If the env variable PUBLIC_SUFFIX_LIST does not point to a local copy of the\n public suffix list it is downloaded into memory each time urltools is\n imported.\n<END>", "<BEGIN>\n## `normalize`", "Normalize ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_host API. 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 split_host API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Use the Public Suffix List to split host into subdomain, domain and tld. >>> split_host('foo.bar.co.uk') ('foo', 'bar', 'co.uk')
"Use the Public Suffix List to split host into subdomain, domain and tld.\n\n >>> split_host('foo.bar.co.uk')\n ('foo', 'bar', 'co.uk')"
37
false
rbaier/python-urltools
split_host
21,732
LDU_FT/wright-group/WrightTools/subplots_adjust
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subplots_adjust API. 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 subplots_adjust API. 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...
Enforce margin to be equal around figure, starting at subplots. .. note:: You probably should be using wt.artists.create_figure instead. See Also -------- wt.artists.plot_margins Visualize margins, for debugging / layout. wt.artists.create_figure Convinience method for crea...
"Enforce margin to be equal around figure, starting at subplots.\n\n .. note::\n You probably should be using wt.artists.create_figure instead.\n\n See Also\n --------\n wt.artists.plot_margins\n Visualize margins, for debugging / layout.\n wt.artists.create_figure\n Convinience meth...
603
false
wright-group/WrightTools
subplots_adjust
21,733
LDU_FT/widdowquinn/pyani/split_seq
LDU_FT
[ "<BEGIN>\n## `clean_axis`", "Remove ticks, tick labels, and frame from axis\n<END>", "<BEGIN>\n## `get_seaborn_colorbar`", "Return a colorbar representing classes, for a Seaborn plot.", " The aim is to get a pd.Series for the passed dataframe columns,\n in the form:\n 0 colour for class in col 0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_seq API. 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 split_seq API. 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...
Splits a passed iterable into chunks of a given size.
"Splits a passed iterable into chunks of a given size."
244
false
widdowquinn/pyani
split_seq
21,734
LDU_FT/lemieuxl/pyplink/next
LDU_FT
[ "<BEGIN>\n## `next`", "Returns the next marker.", " Returns:\n tuple: The marker name as a string and its genotypes as a\n :py:class:`numpy.ndarray`.\n<END>", "<BEGIN>\n## `_read_current_marker`", "Reads the current marker and returns its genotypes.\n<END>", "<BEGIN>\n## `seek...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API. 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 next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the next marker. Returns: tuple: The marker name as a string and its genotypes as a :py:class:`numpy.ndarray`.
"Returns the next marker.\n\n Returns:\n tuple: The marker name as a string and its genotypes as a\n :py:class:`numpy.ndarray`."
34
false
lemieuxl/pyplink
next
21,735
LDU_FT/locationlabs/mockredis/_range_func
LDU_FT
[ "<BEGIN>\n## `_execute_lua`", "Sets KEYS and ARGV alongwith redis.call() function in lua globals\n and executes the lua redis script\n<END>", "<BEGIN>\n## `_import_lua`", "Import lua and dependencies.", " :param load_dependencies: should Lua library dependencies be loaded?\n :raises: Ru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _range_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _range_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 extra...
Return a suitable function from (score, member)
"Return a suitable function from (score, member)"
76
false
locationlabs/mockredis
_range_func
21,736
LDU_FT/aquatix/ns-api/list_same
LDU_FT
[ "<BEGIN>\n## `simple_time`", "Format a datetime or timedelta object to a string of format HH:MM\n<END>", "<BEGIN>\n## `is_dst`", "Find out whether it's Daylight Saving Time in this timezone\n<END>", "<BEGIN>\n## `list_to_json`", "Serialise all the items in source_list to json\n<END>", "<BEGIN>\n## `list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_same API. 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 list_same API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the items from list_b that are also on list_a
"Return the items from list_b that are also on list_a"
32
false
aquatix/ns-api
list_same
21,737
LDU_FT/JasonKessler/scattertext/get_p_vals
LDU_FT
[ "<BEGIN>\n## `coarse_tag_str`", "Convert POS sequence to our coarse system, formatted as a string.\n<END>", "<BEGIN>\n## `extract_finditer`", "The \"GreedyFSA\" method in Handler et al. 2016.\n\tReturns token position spans of valid ngrams.\n<END>", "<BEGIN>\n## `extract_ngram_filter`", "The \"FilterFSA\"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_p_vals API. 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_p_vals API. 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...
Parameters ---------- X : np.array Array of word counts, shape (N, 2) where N is the vocab size. X[:,0] is the positive class, while X[:,1] is the negative class. None by default Returns ------- np.array of p-values
"Parameters\n\t\t----------\n\t\tX : np.array\n\t\t\tArray of word counts, shape (N, 2) where N is the vocab size. X[:,0] is the\n\t\t\tpositive class, while X[:,1] is the negative class. None by default\n\n\t\tReturns\n\t\t-------\n\t\tnp.array of p-values"
419
false
JasonKessler/scattertext
get_p_vals
21,738
LDU_FT/pycontribs/pyrax/copy
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
Copies this object to the new container, optionally giving it a new name. If you copy to the same container, you must supply a different name.
"Copies this object to the new container, optionally giving it a new\n name. If you copy to the same container, you must supply a different\n name."
1,326
true
pycontribs/pyrax
copy
21,739
LDU_FT/spotify/ulogger/_setup_default_handler
LDU_FT
[ "<BEGIN>\n## `get_handler`", "Helper function to create a Stackdriver handler.", " See `ulogger.stackdriver.CloudLoggingHandlerBuilder` for arguments\n and supported keyword arguments.", " Returns:\n (obj): Instance of `google.cloud.logging.handlers.\n CloudLoggingHa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_default_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_default_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....
Create a Stream handler (default handler). Args: progname (str): Name of program. fmt (:obj:`str`, optional): Desired log format if different than the default; uses the same formatting string options supported in the stdlib's `logging` module. datefmt (:obj:`str`, op...
"Create a Stream handler (default handler).\n\n Args:\n progname (str): Name of program.\n fmt (:obj:`str`, optional): Desired log format if different than\n the default; uses the same formatting string options\n supported in the stdlib's `logging` module.\n datefmt (:obj:`...
37
false
spotify/ulogger
_setup_default_handler
21,740
LDU_FT/tilezen/tilequeue/_orient
LDU_FT
[ "<BEGIN>\n## `merge`", "Retrieve a list of OSciMap4 tile responses and merge them into one.", " get_tiles() retrieves data and performs basic integrity checks.\n<END>", "<BEGIN>\n## `_make_valid_if_necessary`", "attempt to correct invalid shapes if necessary", " After simplification, even when p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _orient API. 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 _orient API. 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...
The Shapely version of the orient function appears to only work on Polygons, and fails on MultiPolygons. This is a quick wrapper to allow orienting of either.
"The Shapely version of the orient function appears to only work on\n Polygons, and fails on MultiPolygons. This is a quick wrapper to allow\n orienting of either."
135
false
tilezen/tilequeue
_orient
21,741
LDU_FT/byt3bl33d3r/CrackMapExec/options
LDU_FT
[ "<BEGIN>\n## `add_computer`", "Check if this host has already been added to the database, if not add it in.\n<END>", "<BEGIN>\n## `remove_credentials`", "Removes a credential ID from the database\n<END>", "<BEGIN>\n## `options`", "SERVER IP of the SMB server\n NAME LNK file name\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API. 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 options API. 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...
THREADS Max numbers of threads to execute on target (defaults to 20) COLLECTIONMETHOD Method used by BloodHound ingestor to collect data (defaults to 'Default') CSVPATH (optional) Path where csv files will be written on target (defaults to C:\) NEO4JURI (opt...
"THREADS Max numbers of threads to execute on target (defaults to 20)\n COLLECTIONMETHOD Method used by BloodHound ingestor to collect data (defaults to 'Default')\n CSVPATH (optional) Path where csv files will be written on target (defaults to C:\\)\n NEO4JURI ...
77
false
byt3bl33d3r/CrackMapExec
options
21,742
LDU_FT/candango/firenado/log_level_from_string
LDU_FT
[ "<BEGIN>\n## `get_handlers`", "Returns the handlers defined on the static_maps.yml file located\n at the app config directory.", " Returns: An array of static handlers to be added to the app.\n<END>", "<BEGIN>\n## `sig_handler`", "Handle the signal sent to the process\n :param sig: Sig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_level_from_string 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 log_level_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the proper log level core based on a given string :param str_level: Log level string :return: The log level code
"Returns the proper log level core based on a given string\n\n :param str_level: Log level string\n :return: The log level code"
66
false
candango/firenado
log_level_from_string
21,743
LDU_FT/untwisted/untwisted/add_map
LDU_FT
[ "<BEGIN>\n## `lose`", "It is used to close TCP connection and unregister\n the Spin instance from untwisted reactor.", " Diagram:", " lose -> (int:err | socket.error:err) -> CLOSE_ERR\n<END>", "<BEGIN>\n## `create_server`", "Set up a TCP server and installs the basic handles Stdin, Stdout in the\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a mapping like event -(arg0, arg1, arg2, ...)-> handle.
"Add a mapping like event -(arg0, arg1, arg2, ...)-> handle."
31
false
untwisted/untwisted
add_map
21,744
LDU_FT/SolutionsCloud/apidoc/get_comparable_values_for_ordering
LDU_FT
[ "<BEGIN>\n## `_init_config`", "return command's configuration from call's arguments\n<END>", "<BEGIN>\n## `_merge_files`", "Combine the input files to a big output file\n<END>", "<BEGIN>\n## `create_from_name_and_dictionary`", "Return a populated object Object from dictionary datas\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_comparable_values_for_ordering 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 get_comparable_values_for_ordering API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Return a tupple of values representing the unicity of the object
"Return a tupple of values representing the unicity of the object"
42
false
SolutionsCloud/apidoc
get_comparable_values_for_ordering
21,745
LDU_FT/titusz/epubcheck/create_parser
LDU_FT
[ "<BEGIN>\n## `validate`", "Minimal validation.", " :return bool: True if valid else False\n<END>", "<BEGIN>\n## `create_parser`", "Creat a commandline parser for epubcheck", " :return Argumentparser:\n<END>", "<BEGIN>\n## `main`", "Command line app main function.", " :param list | None argv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_parser API. 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 create_parser API. 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...
Creat a commandline parser for epubcheck :return Argumentparser:
"Creat a commandline parser for epubcheck\n\n :return Argumentparser:"
20
false
titusz/epubcheck
create_parser
21,746
LDU_FT/prajwalkr/track-it/Extract_Checkpoints
LDU_FT
[ "<BEGIN>\n## `Extract_Checkpoints`", "Extract the checkpoints and store in self.tracking_data\n<END>", "<BEGIN>\n## `Get_Page`", "Fetches raw HTML data from the site for a given tracking_no\n<END>", "<BEGIN>\n## `Extract_Checkpoints`", "Extract the checkpoints and store in self.tracking_data\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Extract_Checkpoints 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 Extract_Checkpoints 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...
Extract the checkpoints and store in self.tracking_data
"Extract the checkpoints and store in self.tracking_data"
20
false
prajwalkr/track-it
Extract_Checkpoints
21,747
LDU_FT/ulfalizer/Kconfiglib/custom_str
LDU_FT
[ "<BEGIN>\n## `oldconfig`", "Prompts the user for a value if node.item is a visible symbol/choice with\n no user value.\n<END>", "<BEGIN>\n## `all_arch_srcarch_pairs`", "Generates all valid (ARCH, SRCARCH) tuples for the kernel, corresponding to\n different architectures. SRCARCH holds the arch/ subdirec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Works like MenuNode.__str__(), but allows a custom format to be used for all symbol/choice references. See expr_str().
"Works like MenuNode.__str__(), but allows a custom format to be used\n for all symbol/choice references. See expr_str()."
139
false
ulfalizer/Kconfiglib
custom_str
21,748
LDU_FT/madisona/django-image-helper/contribute_to_class
LDU_FT
[ "<BEGIN>\n## `_get_thumbnail_filename`", "Returns a thumbnail version of the file name.\n<END>", "<BEGIN>\n## `_get_resize_options`", ":param dimensions:\n A tuple of (width, height, force_size).\n 'force_size' can be left off and will default to False.\n<END>", "<BEGIN>\n## `contribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contribute_to_class 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 contribute_to_class 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...
Makes sure thumbnail gets set when image field initialized.
"Makes sure thumbnail gets set when image field initialized."
17
false
madisona/django-image-helper
contribute_to_class
21,749
LDU_FT/rodluger/everest/season
LDU_FT
[ "<BEGIN>\n## `Download`", "Submits a cluster job to the build queue to download all TPFs for a given\n campaign.", " :param int campaign: The `K2` campaign to run\n :param str queue: The name of the queue to submit to. Default `build`\n :param str email: The email to send job status notifications to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the season API. 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 season API. 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 current observing season. For *K2*, this is the observing campaign, while for *Kepler*, it is the current quarter.
"Return the current observing season.\n\n For *K2*, this is the observing campaign, while for *Kepler*,\n it is the current quarter."
364
false
rodluger/everest
season
21,750
LDU_FT/jaumebonet/libconfig/show_options
LDU_FT
[ "<BEGIN>\n## `_get_repo`", "Identify the path to the repository origin.\n<END>", "<BEGIN>\n## `_entry_must_exist`", "Evaluate key-subkey existence.", " Checks that the key-subkey combo exists in the\n configuration options.\n<END>", "<BEGIN>\n## `_entry_must_not_exist`", "Evaluate key-subkey non-e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_options API. 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 show_options API. 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...
Returns a copy the options :class:`~pandas.DataFrame`. Called on jupyter notebook, it will print them in pretty :class:`~pandas.DataFrame` format. :param str key: First identifier of the option. If not provided, all options are returned. :return: :class:`~pandas.DataFrame`
"Returns a copy the options :class:`~pandas.DataFrame`.\n\n Called on jupyter notebook, it will print them in pretty\n :class:`~pandas.DataFrame` format.\n\n :param str key: First identifier of the option. If not provided,\n all options are returned.\n\n :return: :class:`~pandas.D...
104
false
jaumebonet/libconfig
show_options
21,751
LDU_FT/opengisch/pum/get_type
LDU_FT
[ "<BEGIN>\n## `pg_backup`", "Call the pg_dump command to create a db backup", " Parameters\n ----------\n pg_dump_exe: str\n the pg_dump command path\n exclude_schema: str[]\n list of schemas to be skipped\n<END>", "<BEGIN>\n## `pg_restore`", "Call the pg_res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the type of the delta file. Returns ------- type: int
"Return the type of the delta file.\n\n Returns\n -------\n type: int"
71
false
opengisch/pum
get_type
21,752
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/print_str
LDU_FT
[ "<BEGIN>\n## `set_pixel`", "Set pixel at position x, y to the given value. X and Y should be values\n of 0 to 8. Value should be OFF, GREEN, RED, or YELLOW.\n<END>", "<BEGIN>\n## `set_image`", "Set display buffer to Python Image Library image. Red pixels (r=255,\n g=0, b=0) will map to red LE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Print a 4 character long string of values to the display. Characters in the string should be any ASCII value 32 to 127 (printable ASCII).
"Print a 4 character long string of values to the display. Characters\n in the string should be any ASCII value 32 to 127 (printable ASCII)."
57
false
adafruit/Adafruit_Python_LED_Backpack
print_str
21,753
LDU_FT/codelv/enaml-native/load
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load the object defined by the plugin entry point
"Load the object defined by the plugin entry point"
573
false
codelv/enaml-native
load
21,754
LDU_FT/jdrumgoole/mongodbshell/count_documents
LDU_FT
[ "<BEGIN>\n## `database`", "Set the default database for this Proxy object.\n :param database_name: A string naming the database\n<END>", "<BEGIN>\n## `find`", "Run the pymongo find command against the default database and collection\n and paginate the output to the screen.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_documents API. 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 count_documents API. 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...
Count all the documents in a collection accurately
"Count all the documents in a collection accurately"
33
false
jdrumgoole/mongodbshell
count_documents
21,755
LDU_FT/Laufire/ec/member
LDU_FT
[ "<BEGIN>\n## `registerExitCall`", "r\"\"\"Registers an exit call to start the core.", " The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>", "<BEGIN>\n## `run`", "Excecutes the given command while transfering control, till the execution is complete.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the member API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the member API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
r"""Helps with adding imported members to Scripts. Note: Config depends upon the Imported. It could be that of a **task** or a **group**.
"r\"\"\"Helps with adding imported members to Scripts.\n\n Note:\n Config depends upon the Imported. It could be that of a **task** or a **group**."
64
false
Laufire/ec
member
21,756
LDU_FT/ebroecker/canmatrix/copy_ecu_with_frames
LDU_FT
[ "<BEGIN>\n## `unpack_bitstring`", "returns a value calculated from bits\n :param length: length of signal in bits\n :param is_float: value is float\n :param bits: value as bits (array/iterable)\n :param is_signed: value is signed\n :return:\n<END>", "<BEGIN>\n## `pack_bitstring`", "returns a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_ecu_with_frames 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 copy_ecu_with_frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Copy ECU(s) identified by Name or as Object from source CAN matrix to target CAN matrix. This function additionally copy all relevant Frames and Defines. :param ecu_or_glob: Ecu instance or glob pattern for Ecu name :param source_db: Source CAN matrix :param target_db: Destination CAN matrix
"Copy ECU(s) identified by Name or as Object from source CAN matrix to target CAN matrix.\n This function additionally copy all relevant Frames and Defines.\n\n :param ecu_or_glob: Ecu instance or glob pattern for Ecu name\n :param source_db: Source CAN matrix\n :param target_db: Destination CAN matrix"
51
false
ebroecker/canmatrix
copy_ecu_with_frames
21,757
LDU_FT/lambdamusic/Ontospy/_buildGraph
LDU_FT
[ "<BEGIN>\n## `main_cli`", "Ontospy allows to extract and visualise ontology information included in RDF data. Use one of the commands listed below to find out more, or visit http://lambdamusic.github.io/ontospy\n<END>", "<BEGIN>\n## `scan`", "SCAN: get ontology data from RDF source and print out a report.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _buildGraph API. 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 _buildGraph API. 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...
transforms the triples list into a proper rdflib graph (which can be used later for querying)
"transforms the triples list into a proper rdflib graph\n (which can be used later for querying)"
360
false
lambdamusic/Ontospy
_buildGraph
21,758
LDU_FT/rdussurget/py-altimetry/get_kx
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kx API. 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_kx API. 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_KX :summary: Returns the frequencies to be used with FFT analysis :parameter N: number of samples in data :parameter dx: sampling step :return: Returns * k: frequency * L: length * imx: index of maximum frequency (for separating positive and negative frequencies)...
"GET_KX\r\n :summary: Returns the frequencies to be used with FFT analysis\r\n \r\n :parameter N: number of samples in data\r\n :parameter dx: sampling step\r\n \r\n :return: Returns\r\n * k: frequency\r\n * L: length\r\n * imx: index of maximum frequency (for separating positive and ne...
320
false
rdussurget/py-altimetry
get_kx
21,759
LDU_FT/ayust/kitnirc/_parse_whois
LDU_FT
[ "<BEGIN>\n## `on_line`", "Default handling for incoming lines.", " This handler will automatically manage the following IRC messages:", " PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_whois API. 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 _parse_whois API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Parse the content responses from a WHOIS query. Individual response lines are parsed and used to fill in data in a buffer, the full contents of which are then sent as the argument to the WHOIS event dispatched when an ENDOFWHOIS line is received from the server.
"Parse the content responses from a WHOIS query.\n\n Individual response lines are parsed and used to fill in data in a buffer,\n the full contents of which are then sent as the argument to the WHOIS\n event dispatched when an ENDOFWHOIS line is received from the server."
151
false
ayust/kitnirc
_parse_whois
21,760
LDU_FT/SeabornGames/Table/insert
LDU_FT
[ "<BEGIN>\n## `list_to_obj`", ":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This will insert a new column at index and then set the value unless compute_value is provided :param index: int index of where to insert the column :param column: str of the name of the column :param default_value: obj of the default value :param values: obj of the column va...
"This will insert a new column at index and then set the value\n unless compute_value is provided\n :param index: int index of where to insert the column\n :param column: str of the name of the column\n :param default_value: obj of the default value\n :param values: obj of the col...
93
false
SeabornGames/Table
insert
21,761
LDU_FT/internetarchive/brozzler/_remember_videos
LDU_FT
[ "<BEGIN>\n## `elapsed`", "Returns elapsed crawl time as a float in seconds.", " This metric includes all the time that a site was in active rotation,\n including any time it spent waiting for its turn to be brozzled.", " In contrast `Site.active_brozzling_time` only counts time when a\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remember_videos API. 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 _remember_videos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Saves info about videos captured by youtube-dl in `page.videos`.
"Saves info about videos captured by youtube-dl in `page.videos`."
110
false
internetarchive/brozzler
_remember_videos
21,762
LDU_FT/sosreport/sos/_check_path
LDU_FT
[ "<BEGIN>\n## `build_query_cmd`", "Builds the command needed to invoke the pgsql query as the postgres\n user.\n The query requires significant quoting work to satisfy both the\n shell and postgres parsing requirements. Note that this will generate\n a large amount of quoting in sos log...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_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 extra...
Check a new destination path in the archive. Since it is possible for multiple plugins to collect the same paths, and since plugins can now run concurrently, it is possible for two threads to race in archive methods: historically the archive class only needed to test for...
"Check a new destination path in the archive.\n\n Since it is possible for multiple plugins to collect the same\n paths, and since plugins can now run concurrently, it is possible\n for two threads to race in archive methods: historically the\n archive class only needed to te...
286
false
sosreport/sos
_check_path
21,763
LDU_FT/barrust/pyspellchecker/load_text_file
LDU_FT
[ "<BEGIN>\n## `export`", "Export the word frequency list for import in the future", " Args:\n filepath (str): The filepath to the exported dictionary\n encoding (str): The encoding of the resulting output\n gzipped (bool): Whether to gzip the dictionary or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_text_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_text_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 ex...
Load in a text file from which to generate a word frequency list Args: filename (str): The filepath to the text file to be loaded encoding (str): The encoding of the text file tokenizer (function): The function to use to tokenize a string
"Load in a text file from which to generate a word frequency list\n\n Args:\n filename (str): The filepath to the text file to be loaded\n encoding (str): The encoding of the text file\n tokenizer (function): The function to use to tokenize a string"
57
false
barrust/pyspellchecker
load_text_file
21,764
LDU_FT/humangeo/rawes/mark_dead
LDU_FT
[ "<BEGIN>\n## `_dict_to_map_str_str`", "Thrift requires the params and headers dict values to only contain str values.\n<END>", "<BEGIN>\n## `_get_connection_from_url`", "Returns a connection object given a string url\n<END>", "<BEGIN>\n## `mark_dead`", "Mark the connection as dead (failed). Remove it from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_dead API. 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 mark_dead API. 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...
Mark the connection as dead (failed). Remove it from the live pool and put it on a timeout. :arg connection: the failed instance
"Mark the connection as dead (failed). Remove it from the live pool and\n put it on a timeout.\n\n :arg connection: the failed instance"
14
false
humangeo/rawes
mark_dead
21,765
LDU_FT/python-bugzilla/python-bugzilla/getproducts
LDU_FT
[ "<BEGIN>\n## `_request_helper`", "A helper method to assist in making a request and provide a parsed\n response.\n<END>", "<BEGIN>\n## `open_without_clobber`", "Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getproducts API. 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 getproducts API. 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...
Query all products and return the raw dict info. Takes all the same arguments as product_get. On first invocation this will contact bugzilla and internally cache the results. Subsequent getproducts calls or accesses to self.products will return this cached data only. :param for...
"Query all products and return the raw dict info. Takes all the\n same arguments as product_get.\n\n On first invocation this will contact bugzilla and internally\n cache the results. Subsequent getproducts calls or accesses to\n self.products will return this cached data only.\n\n :p...
184
false
python-bugzilla/python-bugzilla
getproducts
21,766
LDU_FT/rigetti/rpcq/_call_async
LDU_FT
[ "<BEGIN>\n## `call_async`", "Send JSON RPC request to a backend socket and receive reply (asynchronously)", " :param method_name: Method name\n :param args: Args that will be passed to the remote function\n :param float rpc_timeout: Timeout in seconds for Server response, set to None to dis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_async API. 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 _call_async API. 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...
Sends a request to the socket and then wait for the reply. To deal with multiple, asynchronous requests we do not expect that the receive reply task scheduled from this call is the one that receives this call's reply and instead rely on Events to signal across multiple _async_call/_recv_reply t...
"Sends a request to the socket and then wait for the reply.\n\n To deal with multiple, asynchronous requests we do not expect that the receive reply task\n scheduled from this call is the one that receives this call's reply and instead rely on\n Events to signal across multiple _async_call/_recv_re...
63
false
rigetti/rpcq
_call_async
21,767
LDU_FT/aio-libs/yarl/raw_parts
LDU_FT
[ "<BEGIN>\n## `is_default_port`", "A check for default port.", " Return True if port is default for specified scheme,\n e.g. 'http://python.org' or 'http://python.org:80', False\n otherwise.\n<END>", "<BEGIN>\n## `origin`", "Return an URL with scheme, host and port parts only.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_parts API. 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 raw_parts API. 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...
A tuple containing encoded *path* parts. ('/',) for absolute URLs if *path* is missing.
"A tuple containing encoded *path* parts.\n\n ('/',) for absolute URLs if *path* is missing."
62
false
aio-libs/yarl
raw_parts
21,768
LDU_FT/sendgrid/sendgrid-python/from_email
LDU_FT
[ "<BEGIN>\n## `threshold`", "Threshold used to determine if your content qualifies as spam.\n On a scale from 1 to 10, with 10 being most strict, or most likely to\n be considered as spam.", " :param value: Threshold used to determine if your content qualifies as\n spam....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac...
The email address of the sender :param value: The email address of the sender :type value: From, str, tuple
"The email address of the sender\n\n :param value: The email address of the sender\n :type value: From, str, tuple"
229
false
sendgrid/sendgrid-python
from_email
21,769
LDU_FT/aiortc/aioice/parse_message
LDU_FT
[ "<BEGIN>\n## `create_turn_endpoint`", "Create datagram connection relayed over TURN.\n<END>", "<BEGIN>\n## `refresh`", "Periodically refresh the TURN allocation.\n<END>", "<BEGIN>\n## `request`", "Execute a STUN transaction and return the response.\n<END>", "<BEGIN>\n## `send_data`", "Send data to a r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 ext...
Parses a STUN message. If the ``integrity_key`` parameter is given, the message's HMAC will be verified.
"Parses a STUN message.\n\n If the ``integrity_key`` parameter is given, the message's HMAC will be verified."
61
false
aiortc/aioice
parse_message
21,770
LDU_FT/tyarkoni/pliers/mahalanobis_distances
LDU_FT
[ "<BEGIN>\n## `load_stims`", "Load one or more stimuli directly from file, inferring/extracting\n metadata as needed.", " Args:\n source (str or list): The location to load the stim(s) from. Can be\n the path to a directory, to a single file, or a list of filenames.\n dtype (str): ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mahalanobis_distances 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 mahalanobis_distances API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a pandas Series with Mahalanobis distances for each sample on the axis. Note: does not work well when # of observations < # of dimensions Will either return NaN in answer or (in the extreme case) fail with a Singular Matrix LinAlgError Args: df: pandas DataFrame with columns to run...
"Returns a pandas Series with Mahalanobis distances for each sample on the\n axis.\n\n Note: does not work well when # of observations < # of dimensions\n Will either return NaN in answer\n or (in the extreme case) fail with a Singular Matrix LinAlgError\n\n Args:\n df: pandas DataFrame with colum...
137
false
tyarkoni/pliers
mahalanobis_distances
21,771
LDU_FT/limix/limix-core/covar_rescaling_factor_efficient
LDU_FT
[ "<BEGIN>\n## `addFixedEffect`", "set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>", "<BEGIN>\n## `removeFixedEffect`", "set sample and tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the covar_rescaling_factor_efficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the covar_rescaling_factor_efficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Returns the rescaling factor for the Gower normalizion on covariance matrix C the rescaled covariance matrix has sample variance of 1
"Returns the rescaling factor for the Gower normalizion on covariance matrix C\n the rescaled covariance matrix has sample variance of 1"
61
false
limix/limix-core
covar_rescaling_factor_efficient
21,772