text
string
label
int64
{'name': 'get_color@tg/colors.py', 'description': 'Returns the curses color pair for the given fg/bg combination.', 'signature': 'def get_color(fg: int, bg: int) -> int:'}</s>invisible = curses.A_INVIS
0
{'name': 'PostArticleCtrl.new_post_action@back/controller/posts.py', 'description': '添加博文\n:param author_id: int,\n:param category_id: int,\n:param all_tags_for_new_post: list\n:param title: str,\n:param raw_slug: str,\n:param body_id: int\n:param weight:\n:return: post对象', 'signature': 'def new_post_action(self, autho...
0
{'name': 'QueueManager.connect_with_options@code/pymqi/__init__.py', 'description': "connect_with_options(name [, opts=cnoopts][ ,cd=mqcd][ ,sco=mqsco])\n connect_with_options(name, cd, [sco])\n\nConnect immediately to the Queue Manager 'name', using the\noptional MQCNO Options opts, the optional MQCD connection\ndes...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQSTAT_TYPE_ASYNC_ERROR = 0
0
{'name': '_Polynomial.loess@pybaselines/polynomial.py', 'description': 'Locally estimated scatterplot smoothing (LOESS).\n\nPerforms polynomial regression at each data point using the nearest points.\n\nParameters\n----------\ndata : array-like, shape (N,)\n The y-values of the measured data, with N data points.\nfr...
0
{'name': 'MultispeakerDictionaryMixin.dictionary_setup@montreal_forced_aligner/dictionary/multispeaker.py', 'description': 'Set up the dictionary for processing', 'signature': 'def dictionary_setup(self) -> Tuple[typing.Set[str], collections.Counter]:'}</s>GITHUB_TOKEN = None
0
{'name': 'read_out@mcu/crystal/crystal_io.py', 'description': 'Read prefix.out file', 'signature': 'def read_out(filename):'}</s>primitive_cell_MATCH = re.compile(r''' [\w\W]* LATTICE [ ]* PARAMETERS [ ]* \( [ ]* ANGSTROMS [ ]* AND [ ]* DEGREES [ ]* \) [ ]* - [ ]* BOHR [ ]* = [ ]* (?P<BOHR>\S+) [ ]* ANGSTROM (?P<conte...
1
{'name': 'GeneratedProtocolMessageType.__init__@third_party/dawn/third_party/protobuf/python/google/protobuf/internal/python_message.py', 'description': "Here we perform the majority of our work on the class.\nWe add enum getters, an __init__ method, implementations\nof all Message methods, and properties for all field...
0
{'name': 'trainval@RULSTM/main.py', 'description': 'Training/Validation code', 'signature': 'def trainval(model, loaders, optimizer, epochs, start_epoch, start_best_perf):'}</s>{'name': 'load_checkpoint@RULSTM/main.py', 'description': 'DOCSTRING', 'code': "def load_checkpoint(model, best=False):\n if best:\n ...
0
{'name': 'MacroExpander.parseValues@main/toolkit/src2xml/source/srcparser.py', 'description': "Parse tokens to get macro function variable values.\n\nBe aware that there is an implicit quotes around the text between the open\nparen, the comma(s), and the close paren. For instance, if a macro is defined\nas FOO(a, b) a...
1
{'name': 'takePano@source/pi-timolo.py', 'description': 'Take a series of overlapping images using pantilt at specified PANO_CAM_STOPS\nthen attempt to stitch the images into one panoramic image. Note this\nwill take time so depending on number of cpu cores and speed. The PANO_TIMER\nshould be set to avoid multiple sti...
0
{'name': 'Client.set_api_version@SalesforcePy/sfdc.py', 'description': 'Sets the api version to be used by the client. If not provided, it will get the latest version\navailable\n\n:return: set version kwarg on client if not defined', 'signature': 'def set_api_version(self, **kwargs):'}</s>{'name': 'Chatter@SalesforceP...
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>MQCD_VERSION_1 = py23long(1)
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>CONF_SEQUENCES = "sequences"
0
{'name': 'TestObjectsE2E.test_create_alias_a_record@e2e_tests/test_objects.py', 'description': 'Create two A records with different names, but pointing to the same\nipv4addr', 'signature': 'def test_create_alias_a_record(self):'}</s>{'name': 'GridFiledistribution@infoblox_client/objects.py', 'description': "GridFiledis...
0
{'name': 'PipelineParallelTransformerModel.build_model_base@fairseq/model_parallel/models/pipeline_parallel_transformer/model.py', 'description': 'Build a new model instance.', 'signature': 'def build_model_base(cls, args, task):'}</s>{'name': 'make_positions@fairseq/utils.py', 'description': 'Replace non-padding symbo...
0
{'name': '_AppHandler.build@jupyterlab/commands.py', 'description': 'Build the application.', 'signature': 'def build('}</s>{'name': 'gt@jupyterlab/semver.py', 'description': 'DOCSTRING', 'code': 'def gt(a, b, loose):\n return compare(a, b, loose) > 0'}
0
{'name': 'Parser.parcel@armatis/parser.py', 'description': 'Store the information of the found parcel\n\n:param Parcel parcel: The information of the parcel', 'signature': 'def parcel(self, parcel):'}</s>{'name': 'RequestManager@armatis/parser.py', 'description': 'Provide the additional HTTP request information for bro...
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': 'QueueManager.connect_with_options@code/pymqi/__init__.py', 'description': "connect_with_options(name [, opts=cnoopts][ ,cd=mqcd][ ,sco=mqsco])\n connect_with_options(name, cd, [sco])\n\nConnect immediately to the Queue Manager 'name', using the\noptional MQCNO Options opts, the optional MQCD connection\ndes...
0
{'name': 'TestRemoveDeclaration.testNotRemoved@src/tests/testXmlEncodingDecode.py', 'description': "Make sure that invalid, or missing, declarations aren't affected.", 'signature': 'def testNotRemoved(self):'}</s>{'name': 'InvalidMetaContent@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['I...
0
{'name': '_GetTextInside@scripts/cpplint.py', 'description': "Retrieves all the text between matching open and close parentheses.\n\nGiven a string of lines and a regular expression string, retrieve all the text\nfollowing the expression and between opening punctuation symbols like\n(, [, or {, and the matching close-p...
0
{'name': 'CheckForNonConstReference@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'Check for non-const references.\n\nSeparate from CheckLanguage since it scans backwards from current\nline, instead of scanning forward.\n\nArgs:\n filename: The name of the current file.\n clean_lines: A CleansedLines instan...
0
{'name': 'build_datetime@yaql/standard_library/date_time.py', 'description': ':yaql:datetime\n\nReturns datetime object built on year, month, day, hour, minute, second,\nmicrosecond, offset.\n\n:signature: datetime(year, month, day, hour => 0, minute => 0, second => 0,\n microsecond => 0, offset => ...
0
{'name': '_ParseConfigSteps.__init__@mne_bids_pipeline/_docs.py', 'description': 'Build a mapping from config options to tuples of steps that use each option.\n\nThe mapping is stored in `self.steps`.', 'signature': 'def __init__(self, force_empty: tuple[str, ...] | None = None) -> None:'}</s>_FORCE_EMPTY = _EXECUTION_...
1
{'name': 'CV_score@src/SparseSC/cross_validation.py', 'description': 'Cross fold validation for 1 or more v Penalties, holding the w penalty fixed.', 'signature': 'def CV_score('}</s>{'name': 'score_train_test_sorted_v_pens@src/SparseSC/cross_validation.py', 'description': "a wrapper which calls score_train_test() for...
1
{'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>MQ_OPERATOR_MESSAGE_LENGTH = 4
0
{'name': 'install_ngrok@pyngrok/ngrok.py', 'description': 'Download, install, and initialize ``ngrok`` for the given config. If ``ngrok`` and its default\nconfig is already installed, calling this method will do nothing.\n\n:param pyngrok_config: A ``pyngrok`` configuration to use when interacting with the ``ngrok`` bi...
0
{'name': 'dictOf@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Helper to easily and clearly define a dictionary by specifying the respective patterns\nfor the key and value. Takes care of defining the C{L{Dict}}, C{L{ZeroOrMore}}, and C{L{Group}} tokens\nin the proper order. The key pattern ...
0
{'name': 'LinearExpression.size@linopy/expressions.py', 'description': 'Get the total size of the linear expression.', 'signature': 'def size(self) -> int:'}</s>ExpressionLike = Union[ "ScalarLinearExpression", "LinearExpression", "QuadraticExpression", ]
0
{'name': 'Project._generate_output_dir@project_generator/project.py', 'description': 'This is a separate function, so that it can be more easily tested ', 'signature': 'def _generate_output_dir(settings, path):'}</s>logger = logging.getLogger('progen.project')
0
{'name': 'Enforcer._record_file_rules@oslo_policy/policy.py', 'description': 'Store a copy of rules loaded from a file.\n\nIt is useful to be able to distinguish between rules loaded from a file\nand those registered by a consuming service. In order to do so we keep\na record of rules loaded from a file.\n\n:param data...
1
{'name': 'GetNormalizedOutputAndLeakyTests@src/3rd_party-static/gmock-1.7.0/test/gmock_output_test.py', 'description': 'Normalizes the output of gmock_output_test_.\n\nArgs:\n output: The test output.\n\nReturns:\n A tuple (the normalized test output, the list of test names that have\n leaked mocks).', 'signature': ...
1
{'name': 'Task.apply@kuyruk/task.py', 'description': 'Called by workers to run the wrapped function.\nYou may call it yourself if you want to run the task in current process\nwithout sending to the queue.\n\nIf task has a `retry` property it will be retried on failure.\n\nIf task has a `max_run_time` property the task ...
0
{'name': 'libmain@da/__main__.py', 'description': "Main program entry point.\n\nParses command line options, sets up global variables, and calls the 'main'\nfunction of the DistAlgo program.", 'signature': 'def libmain():'}</s>ObjectDumper = pickle.Pickler
0
{'name': 'minimal_init@soundrts/clientmedia.py', 'description': 'initialize sound, voice, screen, window title, keyboard', 'signature': 'def minimal_init():'}</s>fullscreen = False
1
{'name': 'ValidateIPTests.test_ip_whitelist_blacklist_conflict@test/test_advocate.py', 'description': 'Manual whitelist should take precedence over manual blacklist', 'signature': 'def test_ip_whitelist_blacklist_conflict(self):'}</s>{'name': 'HostnameTests@test/test_advocate.py', 'description': 'DOCSTRING', 'base_clas...
0
{'name': 'SendClient.send_message@uamqp/client.py', 'description': 'Send a single message or batched message.\n\n:param messages: A message to send. This can either be a single instance\n of `Message`, or multiple messages wrapped in an instance of `BatchMessage`.\n:type message: ~uamqp.message.Message\n:param close_on...
0
{'name': 'theta@py_vollib/black_scholes/greeks/analytical.py', 'description': "Return Black-Scholes theta of an option.\n\n:param S: underlying asset price\n:type S: float\n:param K: strike price\n:type K: float\n:param sigma: annualized standard deviation, or volatility\n:type sigma: float\n:param t: time to expiratio...
1
{'name': 'Wheel.install@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/distlib/wheel.py', 'description': 'Install a wheel to the specified paths. If kwarg ``warner`` is\nspecified, it should be a callable, which will be called with two\ntuples indicating the wheel version of this software and the wheel\nversio...
1
{'name': 'calc_validate@geetest_offline/geetest_offline.py', 'description': '计算validate值', 'signature': 'def calc_validate(challenge):'}</s>{'name': 'get_validate@geetest_offline/geetest_offline.py', 'description': '循环进行validate验证', 'code': "def get_validate(session, keyword):\n '''循环进行validate验证'''\n for _ in ra...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQCMD_LOGGER_EVENT = 91
0
{'name': 'PG.begin@asyncpgsa/pgsingleton.py', 'description': 'alias for transaction', 'signature': 'def begin(self, **kwargs):'}</s>{'name': 'NotInitializedError@asyncpgsa/pgsingleton.py', 'description': 'DOCSTRING', 'base_classes': ['Exception'], 'methods': []}
0
{'name': 'RunningScore.get_scores@utils/metrics.py', 'description': 'Returns accuracy score evaluation result.\n- overall accuracy\n- mean accuracy\n- mean IU\n- fwavacc', 'signature': 'def get_scores(self, ignored_classes=None):'}</s>{'name': 'AverageMeter@utils/metrics.py', 'description': 'DOCSTRING', 'base_classes':...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQAUTH_CREATE = 6
0
{'name': 'parse_argv@support/docopt.py', 'description': "Parse command-line argument vector.\n\nIf options_first:\n argv ::= [ long | shorts ]* [ argument ]* [ '--' [ argument ]* ] ;\nelse:\n argv ::= [ long | shorts | argument ]* [ '--' [ argument ]* ] ;", 'signature': 'def parse_argv(tokens, options, options_fi...
0
{'name': 'upload_file@sleepypuppy/upload/upload.py', 'description': 'Store filename by timestamp and resize file for thumbnail.', 'signature': 'def upload_file():'}</s>{'name': '_upload_to_s3@sleepypuppy/upload/upload.py', 'description': 'DOCSTRING', 'code': 'def _upload_to_s3(filename):\n if not app.config.get(\'UP...
1
{'name': 'main@travis_pypi_setup.py', 'description': 'Add a PyPI password to .travis.yml so that Travis can deploy to PyPI.\n\nFetch the Travis public key for the repo, and encrypt the PyPI password\nwith it before adding, so that only Travis can decrypt and use the PyPI\npassword.', 'signature': 'def main(args):'}</s>...
0
{'name': 'SegWitTest.test_witness_sigops@test/functional/p2p_segwit.py', 'description': 'Ensure sigop counting is correct inside witnesses.', 'signature': 'def test_witness_sigops(self):'}</s>OP_16 = CScriptOp(0x60)
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQIACF_CALL_TYPE = 1361
0
{'name': 'QueueManager.connect_with_options@code/pymqi/__init__.py', 'description': "connect_with_options(name [, opts=cnoopts][ ,cd=mqcd][ ,sco=mqsco])\n connect_with_options(name, cd, [sco])\n\nConnect immediately to the Queue Manager 'name', using the\noptional MQCNO Options opts, the optional MQCD connection\ndes...
0
{'name': 'Paragraph.drawPara@xhtml2pdf/reportlab_paragraph.py', 'description': 'Draws a paragraph according to the given style.\nReturns the final y position at the bottom. Not safe for\nparagraphs without spaces e.g. Japanese; wrapping\nalgorithm will go infinite.', 'signature': 'def drawPara(self, debug=0):'}</s>LEAD...
1
{'name': 'openLabJack@src/LabJackPython.py', 'description': 'openLabJack(deviceType, connectionType, firstFound = True, pAddress = 1, LJSocket = None)\n\nNote: On Windows, UE9 over Ethernet, pAddress MUST be the IP address. ', 'signature': 'def openLabJack(deviceType, connectionType, firstFound = True, pAddress = None,...
0
{'name': 'convert_v05x_to_v06x@echopype/echodata/sensor_ep_version_mapping/v05x_to_v06x.py', 'description': 'This function converts the EchoData structure created in echopype\nversion 0.5.x to the EchoData structure created in echopype version\n0.6.x. Specifically, the following items are completed:\n\n1. Rename the co...
0
{'name': 'QueueManager.connect_with_options@code/pymqi/__init__.py', 'description': "connect_with_options(name [, opts=cnoopts][ ,cd=mqcd][ ,sco=mqsco])\n connect_with_options(name, cd, [sco])\n\nConnect immediately to the Queue Manager 'name', using the\noptional MQCNO Options opts, the optional MQCD connection\ndes...
0
{'name': 'FRRNABuilder.build@model_util/FRRNs.py', 'description': 'Builds the network graph.\n\nArgs:\n input_var: The input variable.\n input_shape: The input shape.\n\nReturns:\n The resulting network.', 'signature': 'def build(self, inputs):'}</s>{'name': 'FRRNBuilderBase@model_util/FRRNs.py', 'description'...
0
{'name': 'make_visit_mosaic@grizli/aws/visit_processor.py', 'description': "Make a mosaic of the exposures from a visit with a tangent point selected\nfrom the sky tile grid\n\nParameters\n----------\nassoc : str\n grizli association name\n\nbase_path : str\n Base working directory. Working directory will be\n ...
0
{'name': '_opt2@graph/tsp.py', 'description': 'Iterative improvement based on 2 exchange.', 'signature': 'def _opt2(graph, tour):'}</s>{'name': '_opt1@graph/tsp.py', 'description': 'Iterative improvement based on relocation.', 'code': 'def _opt1(graph, tour):\n """Iterative improvement based on relocation."""\n\n ...
0
{'name': 'test_kitti_3d_kalman_boxes@lib/rpn_util.py', 'description': 'Test the KITTI framework for object detection in 3D', 'signature': "def test_kitti_3d_kalman_boxes(dataset_test, net, rpn_conf, bbox_measure_val, p2s, p2_invs, scales, results_path, test_path, dataset_type='validation', fast=False, report_stats=Fals...
0
{'name': 'CDF._write_vxr@cdflib/cdfwrite.py', 'description': 'Creates a VXR at the end of the file.\nReturns byte location of the VXR\nThe First, Last, and Offset fields will need to be filled in later', 'signature': 'def _write_vxr(self, f: io.BufferedWriter, numEntries: Optional[int] = None) -> int:'}</s>{'name': 'is...
0
{'name': 'generate_anchors@lib/rpn_util.py', 'description': 'Generates the anchors according to the configuration and\n(optionally) based on the imdb properties.', 'signature': 'def generate_anchors(conf, imdb, cache_folder):'}</s>{'name': 'ConvertColor@lib/augmentations.py', 'description': 'Converts color spaces to/fr...
0
{'name': 'If@src/api/python/z3/z3.py', 'description': "Create a Z3 if-then-else expression.\n\n>>> x = Int('x')\n>>> y = Int('y')\n>>> max = If(x > y, x, y)\n>>> max\nIf(x > y, x, y)\n>>> simplify(max)\nIf(x <= y, y, x)", 'signature': 'def If(a, b, c, ctx=None):'}</s>{'name': 'fpToFPUnsigned@src/api/python/z3/z3.py', '...
0
{'name': 'triangle_silk@scripts/build_mod_chip.py', 'description': 'Draw a triangle silkscreen pointing to pin 1.', 'signature': 'def triangle_silk(conf):'}</s>{'name': '_3d@scripts/build_mod_chip.py', 'description': 'Add 3d model.', 'code': 'def _3d(conf):\n """Add 3d model."""\n if "model" in conf:\n ret...
0
{'name': 'BIDSLayoutIndexer._index_metadata@src/bids/layout/index.py', 'description': 'Index metadata for all files in the BIDS dataset.\n ', 'signature': 'def _index_metadata(self):'}</s>{'name': '_create_tag_dict@src/bids/layout/models.py', 'description': 'DOCSTRING', 'code': 'def _create_tag_dict(file, entity...
1
{'name': 'fill_filter_mosaics@grizli/pipeline/auto_script.py', 'description': 'Fill field mosaics with the average value taken from other filters so that all images have the same coverage\n\nParameters\n----------\nfield_root : str', 'signature': 'def fill_filter_mosaics(field_root):'}</s>{'name': 'fetch_hst_calib@griz...
0
{'name': 'Datasets.add_dataset@testrail_api/_category.py', 'description': 'Creates a new dataset.\n:param project_id: int\n The ID of the project to which the dataset should be added\n:param id: int\n The database ID of the dataset\n:param name: str\n Name of the dataset as provided\n:param variables: List[dic...
0
{'name': 'RMLAttribute.get@src/z3c/rml/attr.py', 'description': 'See zope.schema.interfaces.IField', 'signature': 'def get(self):'}</s>VALIGN_TEXT_CHOICES = { 'top': 'TOP', 'middle': 'MIDDLE', 'bottom': 'BOTTOM'}
0
{'name': 'my_style_from_pygments_dict@python/ipython_config.py', 'description': 'Monkey patch prompt toolkit style function to fix completion colors.', 'signature': 'def my_style_from_pygments_dict(pygments_dict):'}</s>green = "#98c379"
0
{'name': 'EntriesMaintainer.update_readme_tocs@code/maintenance_entries.py', 'description': 'Recounts entries in sub categories and writes them to the readme.\nAlso updates the _toc files in the categories directories.\n\nNote: The Readme must have a specific structure at the beginning, starting with "# Open Source Gam...
0
{'name': 'post_processing@ytmdl/main.py', 'description': 'Handle all the activities post search of the song.\n\nThis function will handle the following:\nConvert, Trim, Metadata, Cleaning up.', 'signature': 'def post_processing('}</s>{'name': 'is_present_in_archive@ytmdl/utils/archive.py', 'description': 'Check if the ...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQSMPO_LENGTH_1 = 20
0
{'name': 'load@robopianist/music/__init__.py', 'description': 'Make a MidiFile object from a path or name.\n\nArgs:\n path_or_name: Path or name of the midi file.\n stretch: Temporal stretch factor. Values greater than 1.0 slow down a song, and\n values less than 1.0 speed it up.\n shift: Number of semi...
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': 'Display.grab_server@Monika After Story/game/python-packages/Xlib/display.py', 'description': 'Disable processing of requests on all other client connections\nuntil the server is ungrabbed. Server grabbing should be avoided\nas much as possible.', 'signature': 'def grab_server(self, onerror = None):'}</s>{'nam...
0
{'name': 'docopt@classes/docopt.py', 'description': 'Parse `argv` based on command-line interface described in `doc`.\n\n`docopt` creates your command-line interface based on its\ndescription that you pass as `doc`. Such description can contain\n--options, <positional-argument>, commands, which could be\n[optional], (r...
0
{'name': 'batch_norm_relu@resnet.py', 'description': 'Performs a batch normalization followed by a ReLU.\n\nArgs:\n inputs: `Tensor` of shape `[batch, channels, ...]`.\n is_training: `bool` for whether the model is training.\n relu: `bool` if False, omits the ReLU operation.\n init_zero: `bool` if True, initializes...
0
{'name': 'Camera.load@cameratransform/camera.py', 'description': 'Load the camera parameters from a json file.\n\nParameters\n----------\nfilename : str\n the filename of the file to load.', 'signature': 'def load(self, filename: str):'}</s>{'name': 'intersectionOfTwoLines@cameratransform/ray.py', 'description': 'Ge...
0
{'name': 'NeuralClassifierTrainer.fit@quapy/classification/neural.py', 'description': 'Fits the model according to the given training data.\n\n:param instances: list of lists of indexed tokens\n:param labels: array-like of shape `(n_samples, n_classes)` with the class labels\n:param val_split: proportion of training do...
1
{'name': '_get_prediction@run/patch_prediction_extractor.py', 'description': 'Get prediction of models on different backends', 'signature': 'def _get_prediction(bk, x, y, model_path,batch_size):'}</s>{'name': 'custom_objects@run/patch_prediction_extractor.py', 'description': 'DOCSTRING', 'code': "def custom_objects():\...
1
{'name': 'ParseArguments@tools/cpplint.py', 'description': 'Parses the command line arguments.\n\nThis may set the output format and verbosity level as side-effects.\n\nArgs:\n args: The command line arguments:\n\nReturns:\n The list of filenames to lint.', 'signature': 'def ParseArguments(args):'}</s>{'name': '_SetQ...
1
{'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': 'array2records@meza/convert.py', 'description': "Converts either a numpy.r...
0
{'name': 'AttributeErrorTests.test_set_dict_comprehension@didyoumean/didyoumean_sugg_tests.py', 'description': '{} creates a dict and not an empty set leading to errors.', 'signature': 'def test_set_dict_comprehension(self):'}</s>LONG_REMOVED_MSG = "to use "int" (since Python 3, there is only one integer type: `int`)"
0
{'name': 'IULogger.log_service_call@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Message that we have received a service call', 'signature': 'def log_service_call('}</s>ICON_SEQUENCE_DELAY = "mdi:timer-sand"
0
{'name': 'PacketFilter.get_queues@pf/filter.py', 'description': 'Retrieve the currently loaded queues.\n\nReturn a tuple of PFQueue objects.', 'signature': 'def get_queues(self):'}</s>PFTM_FRAG = 14
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': 'gis_prepro_tasks@oggm/workflow.py', 'description': 'Run all flowline preprocessing tasks on a list of glaciers.\n\nParameters\n----------\ngdirs : list of :py:class:`oggm.GlacierDirectory` objects\n the glacier directories to process', 'signature': 'def gis_prepro_tasks(gdirs):'}</s>SEC_IN_YEAR = 365*24*36...
0
{'name': 'Dense.__init__@pygad/cnn/cnn.py', 'description': 'num_neurons: Number of neurons in the dense layer.\nprevious_layer: Reference to the previous layer.\nactivation_function: Name of the activation function to be used in the current layer.\nlogger=None: Reference to the instance of the logging.Logger class.', '...
0
{'name': 'IsDerivedFunction@tools/cpplint.py', 'description': 'Check if current line contains an inherited function.\n\nArgs:\n clean_lines: A CleansedLines instance containing the file.\n linenum: The number of the line to check.\nReturns:\n True if current line contains a function with "override"\n virt-specifier...
0
{'name': 'logs@hokusai/cli/review_app.py', 'description': 'Get container logs', 'signature': 'def logs(app_name, timestamps, follow, tail, previous, label, verbose):'}</s>{'name': 'create_yaml@hokusai/cli/review_app.py', 'description': 'Create Review App Yaml', 'code': 'def create_yaml(app_name, verbose, source_file):\...
0
{'name': 'Ngtcp2TestCA.create_credentials@examples/tests/ngtcp2test/certs.py', 'description': 'Create a certificate signed by this CA for the given domains.\n:returns: the certificate and private key PEM file paths', 'signature': 'def create_credentials(spec: CertificateSpec, issuer: Credentials, key_type: Any,'}</s>{'...
1
{'name': 'test_testosterone@permute/data/tests/test_data.py', 'description': 'Test that "testosterone" data can be loaded. ', 'signature': 'def test_testosterone():'}</s>{'name': 'test_confocal@permute/data/tests/test_data.py', 'description': 'Test that "confocal" data can be loaded. ', 'code': 'def test_confocal():\n ...
0
{'name': 'FPVal@src/api/python/z3/z3.py', 'description': 'Return a floating-point value of value `val` and sort `fps`.\nIf `ctx=None`, then the global context is used.\n\n>>> v = FPVal(20.0, FPSort(8, 24))\n>>> v\n1.25*(2**4)\n>>> print("0x%.8x" % v.exponent_as_long(False))\n0x00000004\n>>> v = FPVal(2.25, FPSort(8, 24...
0
{'name': 'QueueManager.put1@code/pymqi/__init__.py', 'description': "Put the single message in string buffer 'msg' on the queue\nusing the MQI PUT1 call. This encapsulates calls to MQOPEN,\nMQPUT and MQCLOSE. put1 is the optimal way to put a single\nmessage on a queue.\n\nqDesc identifies the Queue either by name (if i...
0
{'name': 'verify_crl@certvalidator/validate.py', 'description': "Verifies a certificate against a list of CRLs, checking to make sure the\ncertificate has not been revoked. Uses the algorithm from\nhttps://tools.ietf.org/html/rfc5280#section-6.3 as a basis, but the\nimplementation differs to allow CRLs from unrecorded ...
0
{'name': 'list_to_carray@language-bindings/python/src/wamr/wasmcapi/ffi.py', 'description': 'Converts a python list into a C array', 'signature': 'def list_to_carray(elem_type, *args):'}</s>{'name': 'wasm_func_as_extern@language-bindings/python/src/wamr/wasmcapi/binding.py', 'description': 'DOCSTRING', 'code': 'def was...
0
{'name': 'CacheList.remove_removed@shingetsu/cache.py', 'description': 'Remove removed record from disk.', 'signature': 'def remove_removed(self):'}</s>__all__ = ['cut_key', 'key_pair', 'sign', 'verify']
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>MQ_SHORT_CONN_NAME_LENGTH = 20
0
{'name': 'YoutubeDL.process_info@script.module.youtube.dl/lib/youtube_dl/YoutubeDL.py', 'description': 'Process a single resolved IE result.', 'signature': 'def process_info(self, info_dict):'}</s>{'name': 'args_to_str@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'DOCSTRING', 'code': "def args_to_s...
0
{'name': 'QueueManager.put1@code/pymqi/__init__.py', 'description': "Put the single message in string buffer 'msg' on the queue\nusing the MQI PUT1 call. This encapsulates calls to MQOPEN,\nMQPUT and MQCLOSE. put1 is the optimal way to put a single\nmessage on a queue.\n\nqDesc identifies the Queue either by name (if i...
0
{'name': 'MainInterface.process_options@src/python_scripts/scripts/uber_ttest.py', 'description': 'return 1 on valid and exit\n 0 on valid and continue\n-1 on invalid', 'signature': 'def process_options(self):'}</s>{'name': '_dt_nest_conds@src/python_scripts/afnipy/lib_subjects.py', 'description': 'recursive: if done,...
0