text string | label int64 |
|---|---|
{'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': 'PreviewManager.__init__@preview_generator/manager.py', 'description': ':param cache_folder_path: path to the cache folder.\nThis is where previews will be stored\n:param create_folder: if True, then create the cache folder\nif it does not exist', 'signature': 'def __init__(self, cache_folder_path: str, create... | 1 |
{'name': 'ZiGate.write_attribute_request@zigate/core.py', 'description': 'Write Attribute request\nattribute could be a tuple of (attribute_id, attribute_type, data)\nor a list of tuple (attribute_id, attribute_type, data)', 'signature': 'def write_attribute_request(self, addr, endpoint, cluster, attributes,'}</s>ACTIO... | 0 |
{'name': 'get_credentials@linodecli/plugins/obj/__init__.py', 'description': 'Get access_key and secret_key of the object storage.', 'signature': 'def get_credentials(cli: CLI):'}</s>{'name': '_denominate@linodecli/plugins/obj/helpers.py', 'description': 'Coverts bucket size to human readable bytes.', 'code': 'def _den... | 0 |
{'name': 'Bottle.mount@3rdparty/mongo-c-driver-1.26.2/build/bottle.py', 'description': "Mount an application (:class:`Bottle` or plain WSGI) to a specific\nURL prefix. Example::\n\n root_app.mount('/admin/', admin_app)\n\n:param prefix: path prefix or `mount-point`. If it ends in a slash,\n that slash is mandator... | 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': 'idejs_static@ide/routes.py', 'description': 'ide.js is a special file in that it has the `approved` webserver name embedded in it.\n(e.g., "glowscript.org"). Since we\'re deploying on development/test servers as well\nwe need to be able to swap out the approved name at runtime. This scheme let\'s us\nswap it ... | 1 |
{'name': 'DatetimeWithNanoseconds.rfc3339@stream/clients/python/bookkeeper/common/datetime_helpers.py', 'description': 'Return an RFC 3339-compliant timestamp.\nReturns:\n (str): Timestamp string according to RFC 3339 spec.', 'signature': 'def rfc3339(self):'}</s>{'name': 'to_rfc3339@stream/clients/python/bookkeeper... | 1 |
{'name': 'cli_status@peewee_moves.py', 'description': 'Show information about migration status.', 'signature': 'def cli_status(ctx):'}</s>LOG_HANDLER = logging.StreamHandler() | 0 |
{'name': 'build_pspnet_ade20k_prior@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', 'signature': "def build_pspnet_ade20k_prior(nb_classes, inputs, activation='softmax', is_training=True):"}</s>{'name': 'build_pspnet_basic_101@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', '... | 0 |
{'name': 'nestedExpr@venv/Lib/site-packages/pip-19.0.3-py3.8.egg/pip/_vendor/pyparsing.py', 'description': 'Helper method for defining nested lists enclosed in opening and\nclosing delimiters ("(" and ")" are the default).\n\nParameters:\n - opener - opening character for a nested list\n (default= ``"("``); can also ... | 0 |
{'name': 'Paragraph.breakLines@xhtml2pdf/reportlab_paragraph.py', 'description': 'Returns a broken line structure. There are two cases.\n\nA) For the simple case of a single formatting input fragment the output is\n A fragment specifier with\n - kind = 0\n - fontName, fontSize, leading, textColor\n ... | 0 |
{'name': 'to_download@app/tasks/__init__.py', 'description': 'Check to see if we need to download.', 'signature': 'def to_download():'}</s>{'name': 'fetch_geoip@app/tasks/__init__.py', 'description': 'Process the maxmind geoip database.', 'code': 'def fetch_geoip(force=False):\n """Process the maxmind geoip database... | 0 |
{'name': 'Simplifier.using_params@src/api/python/z3/z3.py', 'description': 'Return a simplifier that uses the given configuration options', 'signature': 'def using_params(self, *args, **keys):'}</s>{'name': 'UDiv@src/api/python/z3/z3.py', 'description': "Create the Z3 expression (unsigned) division `self / other`.\n\nU... | 0 |
{'name': 'opcode_map_c@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'CR |funct4 | cr0711 | cr0206 | op |\nCI |funct3 | cop1212 | cr0711 | cop0206 | op |\nCSS |funct3 | cop0712 | cr0206 | op |\nCIW |funct3 | cop0512 | cr0204s | op |\nCL |funct3 | cop1012 | cs0709s | cop0506 | cr0204s | op |\nCS ... | 0 |
{'name': 'ResidualUnit._skip_connection@model.py', 'description': 'Implement skip connection.', 'signature': 'def _skip_connection(self, y, downsample, n_filters_in):'}</s>{'name': 'get_model@model.py', 'description': 'DOCSTRING', 'code': "def get_model(n_classes, last_layer='sigmoid'):\n kernel_size = 16\n kerne... | 0 |
{'name': 'Linker.__init__@bleach/linkifier.py', 'description': "Creates a Linker instance\n\n:arg list callbacks: list of callbacks to run when adjusting tag attributes;\n defaults to ``bleach.linkifier.DEFAULT_CALLBACKS``\n\n:arg set skip_tags: set of tags that you don't want to linkify the\n contents of; for ex... | 0 |
{'name': 'TopLevelMixin.transform_fold@altair/vegalite/v5/api.py', 'description': 'Add a FoldTransform to the spec.\n\nParameters\n----------\nfold : List(string)\n An array of data fields indicating the properties to fold.\nas : [string, string]\n The output field names for the key and value properties produced ... | 0 |
{'name': 'pre_checks@ytmdl/main.py', 'description': 'Run some checks in order to make sure the basic things are\nworking all right.', 'signature': 'def pre_checks(args):'}</s>{'name': 'retDefault@ytmdl/setupConfig.py', 'description': 'Return the DEFAULT value of keyword.', 'code': 'def retDefault(keyword):\n """Retu... | 0 |
{'name': 'assert_a@pydifact/syntax/common.py', 'description': 'checks if s consists of only alphabetical characters, and has a given length.', 'signature': 'def assert_a(s, length):'}</s>{'name': 'assert_an@pydifact/syntax/common.py', 'description': 'checks if s is alphanumeric and has a given length.', 'code': 'def as... | 0 |
{'name': 'community_str@test/lib/base.py', 'description': 'Converts integer in to colon separated two bytes decimal strings like\nBGP Community or Large Community representation.\n\nFor example, this function converts 13107300 = ((200 << 16) | 100)\ninto "200:100".', 'signature': 'def community_str(i):'}</s>{'name': 'O... | 0 |
{'name': 'ViewRotation.load_locs@picasso/gui/rotation.py', 'description': 'Loads localizations from a pick in the main window.\n\nCalled when updating rotation window from there or when \nshifting the pick from rotation window.\n\nParameters\n----------\nupdate_window : boolean (default=False)\n If True, load attrib... | 0 |
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQCA_TOPIC_STRING = 2094 | 0 |
{'name': 'BreakpointConditionsTestCase.breakpoint_conditions@tools/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py', 'description': "Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.", 'signature': 'def breakpoint_conditions(self, inlin... | 0 |
{'name': 'RPCBindTest.run_bind_test@qa/rpc-tests/rpcbind_test.py', 'description': 'Start a node with requested rpcallowip and rpcbind parameters,\nthen try to connect, and check if the set of bound addresses\nmatches the expected set.', 'signature': 'def run_bind_test(self, allow_ips, connect_to, addresses, expected):'... | 0 |
{'name': 'IUSequence.icon@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Return the icon to use in the frontend.', 'signature': 'def icon(self) -> str:'}</s>STATUS_DELAY = "delay" | 0 |
{'name': 'deploy@hokusai/cli/review_app.py', 'description': "Update the project's deployment(s) to reference the given image tag", 'signature': 'def deploy(app_name, tag, migration, constraint, git_remote, timeout, update_config, verbose):'}</s>{'name': 'update@hokusai/cli/review_app.py', 'description': 'Updates the Ku... | 1 |
{'name': 'Queue.get@code/pymqi/__init__.py', 'description': "Return a message from the queue. If the queue is not already\nopen, it is opened now with the option 'MQOO_INPUT_AS_Q_DEF'.\n\nmaxLength, if present, specifies the maximum length for the\nmessage. If the message received exceeds maxLength, then the\nbehavior ... | 0 |
{'name': 'evaluate@examples/task_sequence_labeling_ner_crf.py', 'description': '评测函数\n ', 'signature': 'def evaluate(data):'}</s>bert_layers = 12 | 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': 'ReceiptQuerySet.validate@django_afip/models.py', 'description': "Validate all receipts matching this queryset.\n\nNote that, due to how AFIP implements its numbering, this method is not\nthread-safe, or even multiprocess-safe. You MAY however, call this method\nconcurrently for receipts from different :class:... | 0 |
{'name': 'DistributedCheckpointSaver.restore_with_id@torchtnt/framework/callbacks/dcp_saver.py', 'description': 'Utility method to restore dcp checkpoint from a checkpoint_id.\n\nThere are additional flags offered should the user want to skip loading the train and eval progress.\nBy default, the train and eval progress... | 0 |
{'name': 'check_target_label@self_paced_ensemble/utils/_validation_param.py', 'description': 'check parameter `target_label`.', 'signature': 'def check_target_label(y, target_label, sampling_type):'}</s>{'name': '_check_eval_metric_func@self_paced_ensemble/utils/_validation_param.py', 'description': 'DOCSTRING', 'code'... | 0 |
{'name': 'GSComponent.drawPoints@Lib/glyphsLib/classes.py', 'description': 'Draws points of component with given point pen.', 'signature': 'def drawPoints(self, pointPen: AbstractPointPen) -> None:'}</s>GSSHARP = 0 | 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': 'create_train_input_fn@object_detection/inputs.py', 'description': 'Creates a train `input` function for `Estimator`.\n\nArgs:\n train_config: A train_pb2.TrainConfig.\n train_input_config: An input_reader_pb2.InputReader.\n model_config: A model_pb2.DetectionModel.\n\nReturns:\n `input_fn` for `Estimator`... | 1 |
{'name': 'EmptyChunk.set_block@anvil/empty_chunk.py', 'description': 'Sets block at given coordinates\n\nParameters\n----------\nint x, z\n In range of 0 to 15\ny\n In range of 0 to 255\n\nRaises\n------\nanvil.OutOfBoundCoordidnates\n If X, Y or Z are not in the proper range', 'signature': 'def set_block(self... | 1 |
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQSECCOMM_YES = 1 | 0 |
{'name': 'PacketFilter.set_limit@pf/filter.py', 'description': "Set hard limits on the memory pools used by Packet Filter.\n\n'limit' can be either one of the PF_LIMIT_* constants or a string; a\n'value' of UINT_MAX means unlimited. Raise PFError if the current pool\nsize exceeds the requested hard limit.", 'signature'... | 0 |
{'name': 'Widget.handle_comm_opened@python/ipywidgets/ipywidgets/widgets/widget.py', 'description': 'Static method, called when a widget is constructed.', 'signature': 'def handle_comm_opened(comm, msg):'}</s>{'name': 'Widget@python/ipywidgets/ipywidgets/widgets/widget.py', 'description': 'DOCSTRING', 'base_classes': [... | 1 |
{'name': 'AmcrestCam._enable_recording@custom_components/amcrest/camera.py', 'description': 'Turn recording on or off.', 'signature': 'def _enable_recording(self, enable):'}</s>SERVICE_STOP_TOUR = "amcrest_tour_off" | 0 |
{'name': 'display_result@onlinejudge_command/subcommand/test.py', 'description': 'display_result prints the result of the test and its statistics.\n\nThis function prints many logs and does some I/O.', 'signature': 'def display_result(proc: subprocess.Popen, answer: str, memory: Optional[float], test_input_path: pathli... | 0 |
{'name': 'Differ._report_dir_diffs@tests/integration/differ.py', 'description': 'Returns a string listing the paths that exist in folder 1 but not in 2,\nand vice-versa.', 'signature': 'def _report_dir_diffs(self, all_paths1, all_paths2):'}</s>{'name': '_split_linenumber_sequence@tests/integration/differ.py', 'descript... | 0 |
{'name': 'prepare_dataset_prefix@packnet_sfm/utils/logging.py', 'description': 'Concatenates dataset path and split for metrics logging\n\nParameters\n----------\nconfig : CfgNode\n Dataset configuration\ndataset_idx : int\n Dataset index for multiple datasets\n\nReturns\n-------\nprefix : str\n Dataset prefix... | 0 |
{'name': 'Device.close@src/LabJackPython.py', 'description': 'close()\n\nCloses the device.\n\nOn Windows, this method only sets the device handle to None but does\nnot close the device. Instead use the Close function from the\nLabJackPython module which closes all devices in the program, and is\nthe only device close ... | 0 |
{'name': 'test_genetic_operations@gplearn/tests/test_genetic.py', 'description': "Check all genetic operations are stable and don't change programs", 'signature': 'def test_genetic_operations():'}</s>{'name': 'test_program_init_depth@gplearn/tests/test_genetic.py', 'description': "Check 'full' creates constant depth pr... | 0 |
{'name': 'Queue.get@code/pymqi/__init__.py', 'description': "Return a message from the queue. If the queue is not already\nopen, it is opened now with the option 'MQOO_INPUT_AS_Q_DEF'.\n\nmaxLength, if present, specifies the maximum length for the\nmessage. If the message received exceeds maxLength, then the\nbehavior ... | 0 |
{'name': 'test_input_validation@gplearn/tests/test_genetic.py', 'description': 'Check that guarded input validation raises errors', 'signature': 'def test_input_validation():'}</s>{'name': 'test_pickle@gplearn/tests/test_genetic.py', 'description': 'Check pickability', 'code': 'def test_pickle():\n """Check pickabil... | 0 |
{'name': 'TestUnicodeReader.test_wrong_encoding_detection_windows@tests/test_io.py', 'description': 'Test for detecting the encoding of a windows file opened in ascii', 'signature': 'def test_wrong_encoding_detection_windows(self):'}</s>{'name': '_remove_bom_from_list@meza/io.py', 'description': 'Remove a byte order ma... | 0 |
{'name': 'doc8@tasks.py', 'description': 'Check documentation with doc8', 'signature': 'def doc8(context):'}</s>{'name': 'pypi@tasks.py', 'description': 'Build and upload a distribution to pypi', 'code': 'def pypi(context):\n "Build and upload a distribution to pypi"\n context.run("twine upload dist/*")'} | 0 |
{'name': 'TemplateCreation.set_atlas@voxelmorph/tf/networks.py', 'description': 'Sets the atlas weights.', 'signature': 'def set_atlas(self, atlas):'}</s>{'name': 'DrawAffineParams@voxelmorph/tf/layers.py', 'description': 'Draw translation, rotation, scaling and shearing parameters defining an affine transform in\nN-di... | 0 |
{'name': 'INFO@lib/charliecloud.py', 'description': 'Note: Use print() for output; this function is for logging.', 'signature': 'def INFO(msg, hint=None, **kwargs):'}</s>FILENAME_MAX_CHARS = 192 | 0 |
{'name': 'show_settings@versions/speed-cam_12.06.py', 'description': 'Initialize and Display program variable settings from config.py', 'signature': 'def show_settings():'}</s>align_filename = os.path.join(imageRecentDir, "align_cam.jpg") | 0 |
{'name': 'inherit_signature_from@weather@mockturtl/files/weather@mockturtl/3.8/AlertsWindow.py', 'description': 'Set the signature checked by pyright/vscode to the signature of another function.', 'signature': 'def inherit_signature_from('}</s>_P = ParamSpec("_P") | 1 |
{'name': 'CheckHeaderFileIncluded@third_party/cpplint/cpplint.py', 'description': 'Logs an error if a source file does not include its header.', 'signature': 'def CheckHeaderFileIncluded(filename, include_state, error):'}</s>{'name': 'IsOutOfLineMethodDefinition@third_party/cpplint/cpplint.py', 'description': 'Check if... | 0 |
{'name': 'Bn.from_hex@petlib/bn.py', 'description': 'Creates a Big Number from a hexadecimal string.\n\nArgs:\n shex (string): hex (0-F) string possibly starting with minus.\n\nSee Also:\n hex() produces a hexadecimal representation of a big number.\n\nExample:\n >>> Bn.from_hex("FF")\n 255', 'signature': '... | 0 |
{'name': 'MessageSetItemEncoder@python/google/protobuf/internal/encoder.py', 'description': 'Encoder for extensions of MessageSet.\n\nThe message set message looks like this:\n message MessageSet {\n repeated group Item = 1 {\n required int32 type_id = 2;\n required string message = 3;\n }\n }', 'sign... | 0 |
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQPL_MVS = 1 | 0 |
{'name': 'column_type_eq@graphene_sqlalchemy/utils.py', 'description': 'A simple function that makes the equality based matcher functions for\nSingleDispatchByMatchFunction prettier', 'signature': 'def column_type_eq(value: Any) -> Callable[[Any], bool]:'}</s>{'name': 'is_mapped_instance@graphene_sqlalchemy/utils.py', ... | 0 |
{'name': 'parse_info@parseoutput.py', 'description': 'Parses result of :i <name> command of ghci and returns derived Symbols.Declaration', 'signature': 'def parse_info(name, contents):'}</s>{'name': 'Import@symbols.py', 'description': 'Haskell import of module', 'base_classes': ['object'], 'methods': [{'name': 'Import.... | 0 |
{'name': 'GreeterStub.__init__@grpc-mate-python/grpc_mate/helloworld_pb2_grpc.py', 'description': 'Constructor.\n\nArgs:\n channel: A grpc.Channel.', 'signature': 'def __init__(self, channel):'}</s>_HELLOREQUEST = _descriptor.Descriptor(
name='HelloRequest',
full_name='HelloRequest',
filename=None,
file=DESCRI... | 0 |
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQZAD_VERSION_1 = 1 | 0 |
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQIACH_DISPS_STARTED = 1585 | 0 |
{'name': 'check_and_process_entry@code/utils/osg.py', 'description': ':param entry:\n:return:', 'signature': 'def check_and_process_entry(entry):'}</s>{'name': 'read_developers@code/utils/osg.py', 'description': ':return:', 'code': 'def read_developers():\n """\n\n :return:\n """\n grammar_file = c.code_pat... | 0 |
{'name': 'Builtins.from_defaults@lib/rule_engine/builtins.py', 'description': 'Initialize a :py:class:`Builtins` instance with a set of default values.', 'signature': 'def from_defaults(cls, values=None, **kwargs):'}</s>{'name': 'ContainsExpression@lib/rule_engine/ast.py', 'description': 'An expression used to test whe... | 0 |
{'name': 'MainWindows.closeEvent@FrameScan-GUI.py', 'description': '重写closeEvent方法,实现dialog窗体关闭时执行一些代码\n:param event: close()触发的事件\n:return: None', 'signature': 'def closeEvent(self, event):'}</s>{'name': 'Vuln_Scanner@Modules/Vuln_Scanner.py', 'description': 'DOCSTRING', 'base_classes': ['QThread'], 'methods': [{'name... | 0 |
{'name': 'Serial._update_dtr_state@serial/serialwin32.py', 'description': 'Set terminal status line: Data Terminal Ready', 'signature': 'def _update_dtr_state(self):'}</s>ResetEvent = _stdcall_libraries['kernel32'].ResetEvent | 0 |
{'name': 'update_retention_date@databricks-adx-integration/src/code/tools/ADXProvisionTool/create_dataexplorer_database.py', 'description': 'update table retention date\n:param number_of_companies: number_of_companies\n:type number_of_companies: int', 'signature': 'def update_retention_date(number_of_companies):'}</s>M... | 0 |
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQIACF_USAGE_PERSIST_PAGES = 1161 | 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': 'IPDatabase.generate_makefile@ipstools/ipstools/IPDatabase.py', 'description': "Exports the mid-level Makefiles for simulation.\n\n :param filename: Output Makefile file name.\n :type filename: str\n\n :param target_tech: Target silicon or FPGA technology.\n :type target_te... | 0 |
{'name': 'accuracy@training/train_imagenet_nv.py', 'description': 'Computes the accuracy@k for the specified values of k', 'signature': 'def accuracy(output, target, topk=(1,)):'}</s>{'name': 'network_to_half@training/fp16util.py', 'description': 'Convert model to half precision in a batchnorm-safe way.', 'code': 'def ... | 0 |
{'name': '_AdbIOManager.connect@adb_shell/adb_device.py', 'description': "Establish an ADB connection to the device.\n\n1. Use the transport to establish a connection\n2. Send a ``b'CNXN'`` message\n3. Read the response from the device\n4. If ``cmd`` is not ``b'AUTH'``, then authentication is not necesary and so we are... | 0 |
{'name': 'ObjectDetectionEvaluation.evaluate@alphaction/dataset/datasets/evaluation/ava/pascal_evaluation/object_detection_evaluation.py', 'description': 'Compute evaluation result.\n\nReturns:\n A named tuple with the following fields -\n average_precision: float numpy array of average precision for\n each ... | 0 |
{'name': '_extract_labels@datasets/download_and_convert_mnist.py', 'description': 'Extract the labels into a vector of int64 label IDs.\n\nArgs:\n filename: The path to an MNIST labels file.\n num_labels: The number of labels in the file.\n\nReturns:\n A numpy array of shape [number_of_labels]', 'signature': 'def _e... | 0 |
{'name': 'get_area_from_geometry@web_tool/DataLoader.py', 'description': 'Semi-accurately calculates the area for an input GeoJSON shape in km^2 by reprojecting it into a local UTM coordinate system.\n\nArgs:\n geom (dict): A polygon (or multipolygon) in GeoJSON format\n src_crs (str, optional): The CRS of `geom`... | 0 |
{'name': 'match_works@python/tests/test_model.py', 'description': 'Hack for Python < 3.10 compatibility', 'signature': 'def match_works(test: unittest.TestCase, matched_value: str, constraint: str) -> None:'}</s>{'name': 'TestLiteral@python/tests/test_model.py', 'description': 'DOCSTRING', 'base_classes': ['unittest.Te... | 0 |
{'name': 'CheckBraces@tools/cpplint.py', 'description': 'Looks for misplaced braces (e.g. at the end of 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 fou... | 0 |
{'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': '_validate_args@kayobe/kolla_ansible.py', 'description': 'Validate Kayobe Ansible arguments.', 'signature': 'def _validate_args(parsed_args, inventory_filename):'}</s>{'name': 'add_args@kayobe/kolla_ansible.py', 'description': 'Add arguments required for running Kolla Ansible to a parser.', 'code': 'def add_ar... | 0 |
{'name': 'text_error_template@mako/exceptions.py', 'description': 'Provides a template that renders a stack trace in a similar format to\nthe Python interpreter, substituting source template filenames, line\nnumbers and code for that of the originating source template, as\napplicable.', 'signature': 'def text_error_tem... | 0 |
{'name': 'QueueManager.backout@code/pymqi/__init__.py', 'description': 'Backout any outstanding gets/puts in the current unit of work.\n ', 'signature': 'def backout(self):'}</s>MQCNO_ALL_CONVS_SHARE = 262144 | 0 |
{'name': 'sub_df@char60/rvar_mean.py', 'description': ":param start: the quantile to start cutting, usually it should be 0\n:param end: the quantile to end cutting, usually it should be 1\n:param step: quantile step\n:return: a dictionary including all the 'firm_list' dataframe and 'stock data' dataframe", 'signature':... | 1 |
{'name': 'aprint@art/functions.py', 'description': 'Print 1-line art.\n\n:param artname: art name\n:type artname : str\n:param number: number of repeats\n:type number: int\n:param space: space between arts\n:type space: int\n:return: None', 'signature': 'def aprint(artname, number=1, space=1):'}</s>{'name': 'art_list@a... | 0 |
{'name': 'ChainstateWriteCrashTest.restart_node@test/functional/feature_dbcrash.py', 'description': 'Start up a given node id, wait for the tip to reach the given block hash, and calculate the utxo hash.\n\nExceptions on startup should indicate node crash (due to -dbcrashratio), in which case we try again. Give up\naft... | 0 |
{'name': 'SystemTest.test_get_active_mode_hot_water_no_hotwater@tests/test_system.py', 'description': 'Test active mode without hot water.', 'signature': 'def test_get_active_mode_hot_water_no_hotwater(self) -> None:'}</s>{'name': 'HotWater@pymultimatic/model/dhw.py', 'description': 'This is representing the hot water ... | 0 |
{'name': 'aioredis1_hash@ring/func/asyncio.py', 'description': "Redis interface for :mod:`asyncio`.\n\nExpected client package is aioredis_.\n\nThis implements HASH commands in aioredis.\n\naioredis expect `Redis` client or dev package is installed on your\nmachine. If you are new to Memcached, check how to install it ... | 0 |
{'name': 'S3ToGCSCopyTest.testProcessFromParams@tests/lib/exporters/s3_to_gcs.py', 'description': "Tests the exporter's Process() function when the list comes from\npassed in parameters.", 'signature': 'def testProcessFromParams(self,'}</s>{'name': 'GRRArtifact@dftimewolf/lib/containers/containers.py', 'description': '... | 0 |
{'name': 'optimize_png@optimize_images/img_optimize_png.py', 'description': 'Try to reduce file size of a PNG image.\n\nExpects a Task object containing all the parameters for the image processing.\n\nIf file reduction is successful, this function will replace the original\nfile with the optimized version and return so... | 1 |
{'name': 'ReplaceByFeeTest.test_too_many_replacements@qa/rpc-tests/replace-by-fee.py', 'description': 'Replacements that evict too many transactions are rejected', 'signature': 'def test_too_many_replacements(self):'}</s>OP_NOP4 = CScriptOp(0xb3) | 0 |
{'name': 'weighted_impurity@chapter4/decision_tree_implementation.py', 'description': "Calculate weighted impurity of children after a split\n@param groups: list of children, and a child consists a list of class labels\n@param criterion: metric to measure the quality of a split, 'gini' for Gini Impurity or 'entropy' fo... | 0 |
{'name': 'keypoints_ui@Pose2Sim/synchronization.py', 'description': 'Step 1: Initializes the UI for selecting keypoints.\n\nThis function creates an interactive GUI for selecting keypoints. It displays\na human figure with selectable keypoints, allows users to toggle keypoint names,\nselect all or none, and confirm the... | 0 |
{'name': 'Controller.yank_msgs@tg/controllers.py', 'description': 'Copy msgs to clipboard and internal buffer to forward', 'signature': 'def yank_msgs(self) -> None:'}</s>{'name': 'get_duration@tg/utils.py', 'description': 'DOCSTRING', 'code': 'def get_duration(file_path: str) -> int:\n cmd = f"ffprobe -v error -i \... | 0 |
{'name': 'PFRule._to_string@pf/rule.py', 'description': 'Return the string representation of the rule.', 'signature': 'def _to_string(self):'}</s>{'name': 'azero@pf/rule.py', 'description': "Return True if all numbers in 'seq' are 0s.", 'code': 'def azero(seq):\n """Return True if all numbers in \'seq\' are 0s."""\n... | 0 |
{'name': 'build_pspnet_ade20k_prior@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', 'signature': "def build_pspnet_ade20k_prior(nb_classes, inputs, activation='softmax', is_training=True):"}</s>{'name': 'ResNet@model_util/pspnet/layers_builder.py', 'description': 'DOCSTRING', 'code': 'def ResNet(i... | 0 |
{'name': 'db@tests/test_facebook.py', 'description': 'Creates a temporary database.', 'signature': 'def db(tmp_db_str):'}</s>{'name': 'setup_db@collect_social/facebook/utils.py', 'description': 'DOCSTRING', 'code': "def setup_db(connection_string):\n db = dataset.connect(connection_string)\n\n pages = db['page']\... | 1 |
{'name': 'RawVectorizer.unvectorize@vectorizers.py', 'description': ':param np.ndarray color: A vectorized color in the internal color space\n:param hsv: If `True`, return colors in HSV format [0 <= hue <= 360,\n 0 <= sat <= 100, 0 <= val <= 100]; if `False`, RGB\n [0 <= r/g/b <= 256]. `None` (def... | 0 |
{'name': 'adjust_learning_rate@train_trades_cifar10.py', 'description': 'decrease the learning rate', 'signature': 'def adjust_learning_rate(optimizer, epoch):'}</s>{'name': 'test@models/resnet.py', 'description': 'DOCSTRING', 'code': 'def test():\n net = ResNet18()\n y = net(torch.randn(1, 3, 32, 32))\n print... | 0 |
{'name': 'AutoConfig.from_pretrained@small_nocls/pytorch_transformers/configuration_auto.py', 'description': "Instantiate a one of the configuration classes of the library\nfrom a pre-trained model configuration.\n\nThe configuration class to instantiate is selected as the first pattern matching\nin the `pretrained_mod... | 1 |
{'name': 'FairseqTask.build_generator@fairseq/tasks/fairseq_task.py', 'description': 'Build a :class:`~fairseq.SequenceGenerator` instance for this\ntask.\n\nArgs:\n models (List[~fairseq.models.FairseqModel]): ensemble of models\n args (fairseq.dataclass.configs.GenerationConfig):\n configuration object (... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.