text
string
label
int64
{'name': 'Unit.__new__@unyt/unit_object.py', 'description': "Create a new unit. May be an atomic unit (like a gram) or combinations\nof atomic units (like g / cm**3).\n\nParameters\n----------\nunit_expr : Unit object, sympy.core.expr.Expr object, or str\n The symbolic unit expression.\nbase_value : float\n The u...
0
{'name': 'pipe.__gt__@syntax_sugar/_pipe.py', 'description': "pipe > 'filename'", 'signature': 'def __gt__(self, rhs):'}</s>{'name': 'End@syntax_sugar/_pipe.py', 'description': 'mark end of pipe', 'base_classes': [], 'methods': []}
0
{'name': '_build_ssd_model@object_detection/builders/model_builder.py', 'description': 'Builds an SSD detection model based on the model config.\n\nArgs:\n ssd_config: A ssd.proto object containing the config for the desired\n SSDMetaArch.\n is_training: True if this model is being built for training purposes.\n ...
0
{'name': 'ensure_tf_input@agents/bdq/common/tf_util.py', 'description': 'Takes either tf.placeholder of TfInput and outputs equivalent TfInput', 'signature': 'def ensure_tf_input(thing):'}</s>{'name': 'topsorted@agents/bdq/common/tf_util.py', 'description': 'Topological sort via non-recursive depth-first search', 'code...
0
{'name': 'arcball_map_to_sphere@DenseFusion/lib/transformations.py', 'description': 'Return unit sphere coordinates from window coordinates.', 'signature': 'def arcball_map_to_sphere(point, center, radius):'}</s>{'name': 'quaternion_about_axis@DenseFusion/lib/transformations.py', 'description': 'Return quaternion for r...
0
{'name': 'NonDestructiveBasicTokenizer.tokenize@baseline/tokenization.py', 'description': 'Tokenizes a piece of `text` and returns a list of `SubToken`s.', 'signature': 'def tokenize(self, text):'}</s>{'name': 'NonDestructiveFullTokenizer@baseline/tokenization.py', 'description': 'Runs end-to-end tokenziation.', 'base_...
0
{'name': 'FEM.save@code/poisson2d_square_slit.py', 'description': 'Save the model and results.\n\n ', 'signature': 'def save(self, dirname):'}</s>{'name': '_vtu2data@code/poisson2d_square_slit.py', 'description': 'DOCSTRING', 'code': 'def _vtu2data(fname):\n src = mlab.pipeline.open(fname, figure=False)\n ...
1
{'name': 'Number.__call__@voluptuous/validators.py', 'description': ':param v: is a number enclosed with string\n:return: Decimal number', 'signature': 'def __call__(self, v):'}</s>USER_REGEX = re.compile( # start anchor, because fullmatch is not available in python 2.7 "(?:" # dot-atom r"(^[-!#$%&'*+/=...
0
{'name': 'find_all_links@boltons/urlutils.py', 'description': "This function uses heuristics to searches plain text for strings\nthat look like URLs, returning a :class:`list` of :class:`URL`\nobjects. It supports limiting the accepted schemes, and returning\ninterleaved text as well.\n\n>>> find_all_links('Visit https...
0
{'name': '_dump_float@src/betterproto/__init__.py', 'description': 'Dump the given float to JSON\n\nParameters\n----------\nvalue: float\n Value to dump\n\nReturns\n-------\nUnion[float, str]\n Dumped value, either a float or the strings', 'signature': 'def _dump_float(value: float) -> Union[float, str]:'}</s>{'n...
0
{'name': 'ExporterURDF.add_shape@onshape_to_robot/exporter_urdf.py', 'description': 'Add shapes (box, sphere and cylinder) nodes to the URDF.', 'signature': 'def add_shape(self, part: Part, node: str, T_world_link: np.ndarray, shape: Shape):'}</s>{'name': 'Part@onshape_to_robot/robot.py', 'description': 'A part is a si...
1
{'name': 'ValidationContext.retrieve_crls@certvalidator/context.py', 'description': ':param cert:\n An asn1crypto.x509.Certificate object\n\n:param path:\n A certvalidator.path.ValidationPath object for the cert\n\n:return:\n A list of asn1crypto.crl.CertificateList objects', 'signature': 'def retrieve_crls(se...
0
{'name': 'fsn2text@Monika After Story/game/python-packages/mutagen/_senf/_fsnative.py', 'description': 'Args:\n path (fsnative): The path to convert\n strict (bool): Fail in case the conversion is not reversible\nReturns:\n `text`\nRaises:\n TypeError: In case no `fsnative` has been passed\n ValueError: ...
0
{'name': 'InitializerListTestCase.test@lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py', 'description': 'Test that that file and class static variables display correctly.', 'signature': 'def test(self):'}</s>{'name': 'RecursiveDecentFor...
0
{'name': 'authenticate@src/server/server.py', 'description': 'Sends a 401 response that enables basic auth.', 'signature': 'def authenticate():'}</s>{'name': 'emit_led_effects@src/server/server.py', 'description': 'DOCSTRING', 'code': "def emit_led_effects(**_params):\n if RaceContext.led_manager.isEnabled() or (Rac...
0
{'name': 'create_reduced_sets@datasets/make_files/generate_datasets.py', 'description': 'Create reduced single-label train/validation/test sets.', 'signature': 'def create_reduced_sets(save: bool = False) -> None:'}</s>FACTOR_REDUCTION = 0.1
0
{'name': 'from_jd@src/convertdate/positivist.py', 'description': 'Convert a Julian day count to Positivist date.', 'signature': 'def from_jd(jd):'}</s>DAY_NAMES_LEAP = [leap_day_replacements.get(i, x) for i, x in enumerate(DAY_NAMES)]
0
{'name': 'initialize_ad_tracking_db@core/friendly_organizer.py', 'description': 'Initializes the AdTracker table with the default list of trackers. Ran only once at startup.', 'signature': 'def initialize_ad_tracking_db():'}</s>{'name': 'update_network_info@core/networking.py', 'description': 'Updates the network info ...
0
{'name': 'ResNetBuilder.conv7x7@Chapter10/10_deep_learning/04_framework_profile/pytorch/RN50v1.5/image_classification/resnet.py', 'description': '7x7 convolution with padding', 'signature': 'def conv7x7(self, in_planes, out_planes, stride=1):'}</s>__all__ = ['ResNet', 'build_resnet', 'resnet_versions', 'resnet_configs'...
0
{'name': 'TestAuditLogsEnterprise.test_get_params@backend-tests/tests/test_auditlogs.py', 'description': 'Mix up some audiltog events, check GET with various params', 'signature': 'def test_get_params(self, tenant_users):'}</s>{'name': 'TestAuditLogsEnterprise@backend-tests/tests/test_auditlogs.py', 'description': 'DOC...
1
{'name': 'Topic.__init__@code/pymqi/__init__.py', 'description': "Associate a Topic instance with the QueueManager object 'queue_manager'\nand optionally open the Topic.\n\nIf topic_desc is passed ignore topic_string and topic_name.\n\nIf open_opts is passed, it specifies topic open options, and\nthe topic is opened im...
0
{'name': 'sign@flask_unsign/session.py', 'description': "Signs a custom session value with a known secret\n:param value: Raw Python object (generally a dictionary) to serialize\n:param secret: Server secret key\n:param salt: Salt (default: 'cookie-session')\n:param legacy: Should the legacy timestamp generator be used?...
0
{'name': 'Product._load@eoreader/products/product.py', 'description': 'Core function loading optical data bands\n\nArgs:\n bands (list): Band list\n pixel_size (float): Pixel size of the band, in meters\n size (Union[tuple, list]): Size of the array (width, height). Not used if pixel_size is provided.\n kwa...
0
{'name': 'TestModel.test_simple@tests/test_models.py', 'description': "Tests if Field behaves just like Django's ImageField.", 'signature': 'def test_simple(self, db):'}</s>{'name': 'ThumbnailWithoutDirectoryModel@tests/models.py', 'description': "Save into a generated filename that does not contain any '/' char", 'bas...
0
{'name': 'Connection.ready@runner/tez/apache-hive-0.13.0.2.1.0.0-92-bin/lib/py/thrift/server/TNonblockingServer.py', 'description': 'Callback function for switching state and waking up main thread.\n\nThis function is the only function witch can be called asynchronous.\n\nThe ready can switch Connection to three states...
0
{'name': 'ArrowFactory.now@arrow/factory.py', 'description': 'Returns an :class:`Arrow <arrow.arrow.Arrow>` object, representing "now" in the given\ntimezone.\n\n:param tz: (optional) A :ref:`timezone expression <tz-expr>`. Defaults to local time.\n\nUsage::\n\n >>> import arrow\n >>> arrow.now()\n <Arrow [20...
1
{'name': 'PCFExecute.__init__@code/pymqi/__init__.py', 'description': "PCFExecute(name = '')\n\nConnect to the Queue Manager 'name' (default value '') ready\nfor a PCF command. If name is a QueueManager instance, it is\nused for the connection, otherwise a new connection is made ", 'signature': 'def __init__(self, name...
0
{'name': 'Bootstrap.compute_children_sql@operations.py', 'description': 'Compute the children on resampled data in SQL.', 'signature': 'def compute_children_sql('}</s>{'name': 'Sum@metrics.py', 'description': 'Sum estimator.\n\nAttributes:\n var: Column to compute on.\n name: Name of the Metric.\n where: A string or...
0
{'name': 'skew@pymeteo/skewt.py', 'description': 'Puts the skew in skew-T\n\n:parameter p: pressure level of the point.\n\nThis calculates the skew of the T axis for a point to plot. \nThis assumes a logarithmic y axes and uses the variable\n:py:data:skew_angle to determine the skew. This is the \nmagic that turns a ...
0
{'name': 'test_sorting@voluptuous/tests/tests.py', 'description': 'Expect alphabetic sorting', 'signature': 'def test_sorting():'}</s>{'name': 'test_any_error_has_path@voluptuous/tests/tests.py', 'description': 'https://github.com/alecthomas/voluptuous/issues/347', 'code': 'def test_any_error_has_path():\n """https:...
0
{'name': 'DescriptorPool._SetFieldType@third_party/dawn/third_party/protobuf/python/google/protobuf/descriptor_pool.py', 'description': "Sets the field's type, cpp_type, message_type and enum_type.\n\nArgs:\n field_proto: Data about the field in proto format.\n field_desc: The descriptor to modify.\n package: The pa...
0
{'name': 'test_create_with_duplicate_dimensions@unyt/tests/test_units.py', 'description': 'Create units with overlapping dimensions. Ex: km/Mpc.', 'signature': 'def test_create_with_duplicate_dimensions():'}</s>{'name': 'test_simplify@unyt/tests/test_units.py', 'description': 'DOCSTRING', 'code': 'def test_simplify():\...
0
{'name': 'Router.add@src/back/kite/bottle.py', 'description': 'Add a new rule or replace the target for an existing rule. ', 'signature': 'def add(self, rule, method, target, name=None):'}</s>{'name': 'FormsDict@src/back/kite/bottle.py', 'description': "This :class:`MultiDict` subclass is used to store request form dat...
0
{'name': 'fpToFP@src/api/python/z3/z3.py', 'description': 'Create a Z3 floating-point conversion expression from other term sorts\nto floating-point.\n\nFrom a bit-vector term in IEEE 754-2008 format:\n>>> x = FPVal(1.0, Float32())\n>>> x_bv = fpToIEEEBV(x)\n>>> simplify(fpToFP(x_bv, Float32()))\n1\n\nFrom a floating-p...
0
{'name': 'set_group_and_perms@scripts/llnl_scripts/llnl_lc_build_tools.py', 'description': 'Sets the proper group and access permissions of given input directory.', 'signature': 'def set_group_and_perms(directory):'}</s>{'name': 'get_uberenv_path@scripts/llnl_scripts/llnl_lc_build_tools.py', 'description': 'DOCSTRING',...
0
{'name': 'BaseResponse.add_header@3rdparty/mongo-c-driver-1.26.2/build/bottle.py', 'description': 'Add an additional response header, not removing duplicates. ', 'signature': 'def add_header(self, name, value):'}</s>NORUN = False
0
{'name': 'parse_1dplot_args@src/python_scripts/afnipy/lib_apqc_io.py', 'description': 'Parse arguments for Pythony 1dplotter.\n\nInput\n-----\nargv : list of args (not including prog name)\n\nReturn\n------\n\niopts : an object with the argument values stored, including a\n self-"check_req()" method, as well.', 'sig...
0
{'name': 'NestingState.Update@scripts/cpplint.py', 'description': 'Update nesting state with current line.\n\nArgs:\n filename: The name of the current file.\n clean_lines: A CleansedLines instance containing the file.\n linenum: The number of the line to check.\n error: The function to call with any errors found.'...
0
{'name': 'parse_return_val@disdat/hyperframe.py', 'description': 'Interpret the return values and create an HFrame to wrap them.\nThis means setting the correct presentation bit in the HFrame so that\nwe call downstream tasks with parameters as the author intended.\n\nPOLICY / NOTE: An non-HF output is a Presentable.\...
0
{'name': 'GelfHttpHandler.__init__@pygelf/handlers.py', 'description': "Logging handler that transforms each record into GELF (graylog extended log format) and sends it over HTTP.\n\n:param host: GELF HTTP input host\n:param port: GELF HTTP input port\n:param compress: compress message before sending it to the server o...
1
{'name': 'must_be_called@tests/tasks.py', 'description': "This function is patched in tests to see the caller is doing it's job.\n ", 'signature': 'def must_be_called():'}</s>{'name': 'loop_forever@tests/tasks.py', 'description': 'DOCSTRING', 'code': "def loop_forever():\n while 1:\n print('looping forever...
0
{'name': 'on_set_race_format@src/server/server.py', 'description': 'set current race_format ', 'signature': 'def on_set_race_format(data):'}</s>IMDTABLER_JAR_NAME = "static/IMDTabler.jar"
0
{'name': 'QueueManager.connect_tcp_client@code/pymqi/__init__.py', 'description': "Connect immediately to the remote Queue Manager 'name', using\na TCP Client connection, with channnel 'channel' and the\nTCP connection string 'conn_name'. All other connection\noptons come from 'cd'.", 'signature': 'def connect_tcp_clie...
0
{'name': 'IUSequence.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load sequence data from the configuration', 'signature': 'def load(self, config: OrderedDict) -> "IUSequence":'}</s>{'name': 'IUTester@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description'...
0
{'name': 'NVMeOFConnectorTestCase.test_extend_volume_unreplicated_nvme_fails@os_brick/tests/initiator/connectors/test_nvmeof.py', 'description': 'nvme command fails, so it rescans, waits, and reads size.', 'signature': 'def test_extend_volume_unreplicated_nvme_fails('}</s>VOL_UUID = "c20aba21-6ef6-446b-b374-45733b4883b...
0
{'name': 'attrib@vendor/attr/_make.py', 'description': "Create a new attribute on a class.\n\n.. warning::\n\n Does *not* do anything unless the class is also decorated with\n `attr.s`!\n\n:param default: A value that is used if an ``attrs``-generated ``__init__``\n is used and no value is passed while instan...
0
{'name': 'type_inference@06_prepare/data-wrangler/data_wrangler_antje.py', 'description': 'Core type inference logic\n\nArgs:\n df: spark dataframe\n\nReturns: dict a schema that maps from column name to mohave datatype', 'signature': 'def type_inference(df): # noqa: C901 # pylint: disable=R0912'}</s>_collect_set_d...
0
{'name': 'append@src/Rammbock/decorator.py', 'description': 'Append ``a`` to the list of the virtual ancestors, unless it is already\nincluded.', 'signature': 'def append(a, vancestors):'}</s>DEF = re.compile('\s*def\s*([_\w][_\w\d]*)\s*\(')
0
{'name': 'NormalizedConfiguration.apply_defaults_in@config/parse.py', 'description': 'Apply defaults and produce a result suitible for writing the generated files. ', 'signature': 'def apply_defaults_in(self, branch_context, btb_context, prefetcher_context, replacement_context, verbose=False):'}</s>{'name': 'int_or_pre...
1
{'name': 'wrap_deepmind@examples/utils/openai/atari_wrappers.py', 'description': 'Configure environment for DeepMind-style Atari.\n ', 'signature': 'def wrap_deepmind(env, episode_life=True, clip_rewards=True, frame_stack=False, scale=False, max_frames=18000):'}</s>{'name': 'make_atari@examples/utils/openai/atari_wr...
0
{'name': 'DescriptorBase.GetOptions@python/google/protobuf/descriptor.py', 'description': 'Retrieves descriptor options.\n\nReturns:\n The options set on this descriptor.', 'signature': 'def GetOptions(self):'}</s>{'name': '_Deprecated@python/google/protobuf/descriptor.py', 'description': 'DOCSTRING', 'code': "def _De...
0
{'name': 'PFAddr._to_string@pf/rule.py', 'description': 'Return the string representation of the address.', 'signature': 'def _to_string(self):'}</s>PFR_FLAG_ALLMASK = 127
0
{'name': 'PCFExecute.__init__@code/pymqi/__init__.py', 'description': "PCFExecute(name = '')\n\nConnect to the Queue Manager 'name' (default value '') ready\nfor a PCF command. If name is a QueueManager instance, it is\nused for the connection, otherwise a new connection is made ", 'signature': 'def __init__(self, name...
0
{'name': 'Pix2PixModel.backward_D@models/pix2pix_model.py', 'description': 'Calculate GAN loss for the discriminator', 'signature': 'def backward_D(self):'}</s>{'name': 'Pix2PixModel@models/pix2pix_model.py', 'description': 'DOCSTRING', 'base_classes': ['BaseModel'], 'methods': [{'name': 'Pix2PixModel.modify_commandlin...
1
{'name': 'QueueManager._is_connected@code/pymqi/__init__.py', 'description': "Try pinging the queue manager in order to see whether the application\nis connected to it. Note that the method is merely a convienece wrapper\naround MQCMD_PING_Q_MGR, in particular, there's still possibility that\nthe app will disconnect be...
0
{'name': 'predict_par@gns/train_multinode.py', 'description': 'Predict rollouts.\n\nArgs:\n simulator: Trained simulator if not will undergo training.', 'signature': 'def predict_par(rank):'}</s>{'name': 'rollout_par@gns/train_multinode.py', 'description': 'Rolls out a trajectory by applying the model in sequence.\n\n...
1
{'name': 'cli@toggl/cli/commands.py', 'description': 'CLI interface to interact with Toggl tracking application.\n\nMany of the options can be set through Environmental variables. The names of the variables\nare denoted in the option\'s helps with format "(ENV: <name of variable>)".\n\nThe authentication credentials ca...
0
{'name': 'BytesEncoder@third_party/include/protobuf-2.6.1/python/google/protobuf/internal/encoder.py', 'description': 'Returns an encoder for a bytes field.', 'signature': 'def BytesEncoder(field_number, is_repeated, is_packed):'}</s>EnumSizer = _SimpleSizer(_SignedVarintSize)
0
{'name': 'ProcessFileData@tools/cpplint.py', 'description': 'Performs lint checks and reports any errors to the given error function.\n\nArgs:\n filename: Filename of the file that is being processed.\n file_extension: The extension (dot not included) of the file.\n lines: An array of strings, each representing a li...
0
{'name': 'RequirementCommand._build_package_finder@venv/Lib/site-packages/pip-19.0.3-py3.8.egg/pip/_internal/cli/base_command.py', 'description': 'Create a package finder appropriate to this requirement command.', 'signature': 'def _build_package_finder('}</s>{'name': 'prefer_binary@venv/Lib/site-packages/pip-19.0.3-py...
1
{'name': 'get_settings@jupyterlab_server/settings_utils.py', 'description': 'Get settings.\n\nParameters\n----------\napp_settings_dir:\n Path to applications settings.\nschemas_dir: str\n Path to schemas.\nsettings_dir:\n Path to settings.\nschema_name str, optional\n Schema name. Default is "".\noverrides...
1
{'name': 'Retry.__call__@stream/clients/python/bookkeeper/common/retry.py', 'description': 'Wrap a callable with retry behavior.\nArgs:\n func (Callable): The callable to add retry behavior to.\n on_error (Callable): A function to call while processing a\n retryable exception. Any error raised by this fun...
0
{'name': 'DNSIncoming.readQuestions@stino/pyarduino/base/zeroconf.py', 'description': 'Reads questions section of packet', 'signature': 'def readQuestions(self):'}</s>{'name': 'DNSText@stino/pyarduino/base/zeroconf.py', 'description': 'A DNS text record', 'base_classes': ['DNSRecord'], 'methods': [{'name': 'DNSText.__i...
0
{'name': 'conv_2d_layer@nets/layers.py', 'description': 'kernel_shape = [H, W, input_channels, num_filters]', 'signature': 'def conv_2d_layer(input_tensor, kernel_shape, nonlinearity, padding, name, strides=(1,1,1,1), with_biases=True,'}</s>{'name': 'sample_truncated_normal@nets/layers.py', 'description': 'DOCSTRING', ...
0
{'name': 'toggle_fullscreen@soundrts/clientmedia.py', 'description': 'toggle full screen mode, and say it', 'signature': 'def toggle_fullscreen():'}</s>ENTER_NEW_LOGIN = [4235]
0
{'name': 'get@dwave/cloud/cli.py', 'description': 'Fetch Leap API token.', 'signature': 'def get(*, config_file, profile, token_type, json_output, raw_output, output):'}</s>{'name': 'load_config_from_files@dwave/cloud/config/loaders.py', 'description': "Load D-Wave Cloud Client configuration from a list of files.\n\n.....
0
{'name': 'format_date@utils/formatter.py', 'description': "This function doesn't manipulate the date itself at all, it just\nformats the date in the format that the API wants.", 'signature': 'def format_date('}</s>{'name': 'DateFormat@enums/date_format.py', 'description': 'DOCSTRING', 'base_classes': ['Enum'], 'methods...
1
{'name': 'OOXMLFile.encrypt@msoffcrypto/format/ooxml.py', 'description': '>>> from msoffcrypto.format.ooxml import OOXMLFile\n>>> from io import BytesIO; outfile = BytesIO()\n>>> with open("tests/outputs/example.docx", "rb") as f:\n... officefile = OOXMLFile(f)\n... officefile.encrypt("1234", outfile)', 'signat...
0
{'name': '_get_install_names@delocate/tools.py', 'description': 'Return install names from library named in `filename`.\n\nReturns tuple of install names.\n\ntuple will be empty if no install names, or if this is not an object file.\n\nParameters\n----------\nfilename : str or PathLike\n filename of library\n\nRetur...
0
{'name': 'find_gaps@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'Account for all the bits in the pattern\ndummy style just added as they got added', 'signature': 'def find_gaps(op):'}</s>{'name': 'match_srxi_as_c_srxi@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'DOCSTRING', 'code': 'def ...
0
{'name': 'Serial._update_dtr_state@serial/serialwin32.py', 'description': 'Set terminal status line: Data Terminal Ready', 'signature': 'def _update_dtr_state(self):'}</s>MS_RLSD_ON = 128
0
{'name': 'convert_reaction_to_valid_features_batch@chemprot/tokenization.py', 'description': 'Convert list of reaction SMILES into batch of input features.', 'signature': 'def convert_reaction_to_valid_features_batch('}</s>{'name': 'canonicalize_smi@chemprot/tokenization.py', 'description': 'Canonicalize SMILES', 'code...
0
{'name': 'Discriminator.__init__@layers/discriminator.py', 'description': 'Discriminator: cLSTM + output projection to probability', 'signature': 'def __init__(self, input_size, hidden_size, num_layers=2):'}</s>{'name': 'cLSTM@layers/discriminator.py', 'description': 'DOCSTRING', 'base_classes': ['nn.Module'], 'methods...
1
{'name': 'debug_dump_script@build.py', 'description': 'Debug dump mode', 'signature': 'def debug_dump_script(mod, name, args):'}</s>{'name': 'split_transform_deploy_mod@web_stable_diffusion/utils.py', 'description': 'DOCSTRING', 'code': 'def split_transform_deploy_mod(\n mod: tvm.IRModule, model_names: List[str], mo...
0
{'name': 'Task.from_requests@transformer/task.py', 'description': 'Generates a set of Tasks from a given set of Requests.', 'signature': 'def from_requests('}</s>{'name': 'Request@transformer/request.py', 'description': 'An HTTP request, as recorded in a HAR file (request__).\n\n__ http://www.softwareishard.com/blog/ha...
1
{'name': '_nested_lookup@src/libs/util.py', 'description': 'Lookup a key in a nested document, yield a value', 'signature': 'def _nested_lookup(key, values, document, wild=False, return_parent=False):'}</s>{'name': 'move_content_to_parent_folder@src/libs/util.py', 'description': 'DOCSTRING', 'code': 'def move_content_t...
0
{'name': 'Leopard.sample_rate@binding/python/_leopard.py', 'description': 'Audio sample rate accepted by `.process`.', 'signature': 'def sample_rate(self) -> int:'}</s>{'name': 'LeopardRuntimeError@binding/python/_leopard.py', 'description': 'DOCSTRING', 'base_classes': ['LeopardError'], 'methods': []}
0
{'name': 'create_overview_tile@auxiliary/gdal2customtiles/gdal2customtiles.py', 'description': 'Generating an overview tile from no more than 4 underlying tiles(base tiles)', 'signature': 'def create_overview_tile('}</s>{'name': 'get_tile_swne@auxiliary/gdal2customtiles/gdal2customtiles.py', 'description': 'DOCSTRING',...
1
{'name': 'KeycloakOpenID.introspect@ansible/roles/keycloak-deploy/files/python-keycloak-0.12.0/keycloak/keycloak_openid.py', 'description': 'The introspection endpoint is used to retrieve the active state of a token. It is can only be\ninvoked by confidential clients.\n\nhttps://tools.ietf.org/html/rfc7662\n\n:param to...
1
{'name': 'Client.publish@mqttools/client.py', 'description': "Publish given message :class:`Message` with QoS 0.\n\n>>> client.publish(Message('/my/topic', b'my-message'))", 'signature': 'def publish(self, message):'}</s>{'name': 'SessionResumeError@mqttools/client.py', 'description': 'DOCSTRING', 'base_classes': ['Err...
0
{'name': 'prepare_prior@bambi/model_components.py', 'description': 'Helper function to correctly set default priors and auto scaling\n\nParameters\n----------\nprior : Prior or None\n The prior.\nkind : string\n Accepted values are: `"intercept"`, `"common"`, or `"group_specific"`.\nauto_scale : bool\n Whether...
0
{'name': 'Topic.__init__@code/pymqi/__init__.py', 'description': "Associate a Topic instance with the QueueManager object 'queue_manager'\nand optionally open the Topic.\n\nIf topic_desc is passed ignore topic_string and topic_name.\n\nIf open_opts is passed, it specifies topic open options, and\nthe topic is opened im...
0
{'name': 'test_docker_build_fails@test/test_utils.py', 'description': 'Test for expected failure when a recipe fails to build', 'signature': 'def test_docker_build_fails(recipes_fixture, config_fixture):'}</s>SKIP_NOT_OSX = not sys.platform.startswith('darwin')
0
{'name': 'Empty@src/api/python/z3/z3.py', 'description': 'Create the empty sequence of the given sort\n>>> e = Empty(StringSort())\n>>> e2 = StringVal("")\n>>> print(e.eq(e2))\nTrue\n>>> e3 = Empty(SeqSort(IntSort()))\n>>> print(e3)\nEmpty(Seq(Int))\n>>> e4 = Empty(ReSort(SeqSort(IntSort())))\n>>> print(e4)\nEmpty(ReSo...
0
{'name': 'make_predictions@chemprop/train/make_predictions.py', 'description': 'Makes predictions. If smiles is provided, makes predictions on smiles. Otherwise makes predictions on args.test_data.\n\n:param args: Arguments.\n:param smiles: Smiles to make predictions on.\n:return: A list of lists of target predictions....
1
{'name': 'QueueManager.connect_tcp_client@code/pymqi/__init__.py', 'description': "Connect immediately to the remote Queue Manager 'name', using\na TCP Client connection, with channnel 'channel' and the\nTCP connection string 'conn_name'. All other connection\noptons come from 'cd'.", 'signature': 'def connect_tcp_clie...
0
{'name': 'find_versions@plecost_lib/libs/versions.py', 'description': 'Main function to run libs as version finder.\n\n:param args: PlecostOptions object\n:type args: `PlecostOptions`\n\n:return: PlecostResults object.\n:rtype: `PlecostResults`\n\n:raises: PlecostTargetNotAvailable, PlecostNotWordPressFound', 'signatur...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQXPT_LOCAL = 0
0
{'name': 'create_estimator_and_inputs@object_detection/model_lib.py', 'description': "Creates `Estimator`, input functions, and steps.\n\nArgs:\n run_config: A `RunConfig`.\n hparams: A `HParams`.\n pipeline_config_path: A path to a pipeline config file.\n config_override: A pipeline_pb2.TrainEvalPipelineConfig tex...
0
{'name': 'find_gaps@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'Account for all the bits in the pattern\ndummy style just added as they got added', 'signature': 'def find_gaps(op):'}</s>{'name': 'EXTRACT_ITYPE_IMM@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'DOCSTRING', 'code': 'def EXT...
0
{'name': 'rollapply@ffn/core.py', 'description': 'Apply a function fn over a rolling window of size window.\n\nArgs:\n * data (Series or DataFrame): Series or DataFrame\n * window (int): Window size\n * fn (function): Function to apply over the rolling window.\n For a series, the return value is expecte...
0
{'name': 'HkStack.error@rfpy/hk.py', 'description': "Method to determine the error on H and k estimates.\n\nFrom Walsh, JGR, 2013\n\nParameters\n----------\nq : float\n Confidence level for the error estimate\nerr_method : str\n How errors should be estimated. Options are ``err_method='amp'``\n to estimate err...
1
{'name': 'GetObjectsForUser.test_varchar_primary_key@guardian/testapp/tests/test_shortcuts.py', 'description': 'Verify that the function works when the objects that should be returned\nhave varchar primary keys.', 'signature': 'def test_varchar_primary_key(self):'}</s>{'name': 'GetGroupsWithPerms@guardian/testapp/tests...
0
{'name': 'MockPaginator.replay_events@test/test_poller.py', 'description': 'Pretends nothing has happened, returning the "last" PAGE_SIZE\nevents', 'signature': 'def replay_events(self):'}</s>{'name': 'MockPaginator@test/test_poller.py', 'description': 'DOCSTRING', 'base_classes': [], 'methods': [{'name': 'MockPaginato...
1
{'name': 'test_lex_line_counting_multi@tests/test_reader.py', 'description': 'Make sure we can do multi-line tokenization', 'signature': 'def test_lex_line_counting_multi():'}</s>{'name': 'test_lex_integers@tests/test_reader.py', 'description': 'DOCSTRING', 'code': 'def test_lex_integers():\n assert tokenize("42") =...
0
{'name': 'RandomInitializer.get_goal@python/rrc_simulation/gym_wrapper/envs/cube_env.py', 'description': 'Get a random goal depending on the difficulty.', 'signature': 'def get_goal(self):'}</s>{'name': 'validate_goal@python/rrc_simulation/tasks/move_cube.py', 'description': 'Validate that the given pose is a valid goa...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQRQ_SUB_DEST_NOT_AUTHORIZED = 18
0
{'name': 'noise_per_object_v3_@mmdetection3d/mmdet3d/datasets/pipelines/data_augment_utils.py', 'description': 'Random rotate or remove each groundtruth independently. use kitti viewer\nto test this function points_transform_\n\nArgs:\n gt_boxes (np.ndarray): Ground truth boxes with shape (N, 7).\n points (np.nda...
1
{'name': 'View._get_scroll_root@qt4a/andrcontrols.py', 'description': '获取当前控件可滚动区域的根控件\n ', 'signature': 'def _get_scroll_root(self):'}</s>{'name': 'func_wrap@qt4a/andrcontrols.py', 'description': '用于方法包装,主要作用是发现控件失效时能够更新控件\n ', 'code': 'def func_wrap(func):\n """用于方法包装,主要作用是发现控件失效时能够更新控件\n """\n\n d...
0
{'name': 'get_geo_data@emissionsapi/web.py', 'description': "Get data in GeoJSON format.\n\n:param session: SQLAlchemy session\n:type session: sqlalchemy.orm.session.Session\n:param wkt: Well-known text representation of geometry, defaults to None.\n\n:type wkt: string, optional\n:param distance: Distance as defined in...
0