text
string
label
int64
{'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': 'scnym_api@scnym/api.py', 'description': 'scNym: Semi-supervised adversarial neural networks for\nsingle cell classification [Kimmel2020]_.\n\nscNym is a cell identity classifier that transfers annotations from one\nsingle cell experiment to another. The model is implemented as a neural\nnetwork that employs M...
0
{'name': 'Contract.make_asts@panoramix/contract.py', 'description': 'we need to do ast creation from the contract, not function level,\nbecause some simplifications (type/field removal) require insight to all the functions,\nnot just a single one', 'signature': 'def make_asts(self):'}</s>TERMINATING = ( "return", ...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQOPER_SYSTEM_LAST = 65535
0
{'name': 'ECMA376Agile.generate_encryption_parameters@msoffcrypto/method/ecma376_agile.py', 'description': 'Generates encryption parameters used to encrypt a payload.\n\nReturns the information + a secret key.', 'signature': 'def generate_encryption_parameters(key, salt_value=None, spin_count=100000):'}</s>{'name': '_g...
1
{'name': 'check_for_formatting_issues@tor/validation/formatting_validation.py', 'description': 'Check the transcription for common formatting issues.', 'signature': 'def check_for_formatting_issues(transcription: str) -> Set[FormattingIssue]:'}</s>HEADING_WITH_DASHES_PATTERN = re.compile(r"[\w][:*_ ]*\n[ ]{,3}([-][ ]*)...
0
{'name': 'Mommy.create@model_mommy/mommy.py', 'description': 'Factory which creates the mommy class defined by the MOMMY_CUSTOM_CLASS setting', 'signature': 'def create(cls, _model, make_m2m=False, create_files=False):'}</s>{'name': 'gen_uuid@model_mommy/random_gen.py', 'description': 'DOCSTRING', 'code': 'def gen_uuid...
0
{'name': 'FileInfo.BaseName@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'File base name - text after the final slash, before the final period.', 'signature': 'def BaseName(self):'}</s>{'name': 'CheckLanguage@ament_cpplint/ament_cpplint/cpplint.py', 'description': "Checks rules from the 'C++ language rules' ...
0
{'name': 'search@ytmdl/core.py', 'description': 'Search the song on YouTube, ask the user for an input and accordingly\nreturn a selected song.\n\nThe song can be extracted either from an URL or the name. If the name is\npresent, we will search on YouTube for the name, ask the user for a choice\nand accordingly return ...
0
{'name': 'render_pep440_pre@versioneer.py', 'description': 'TAG[.post.devDISTANCE] -- No -dirty.\n\nExceptions:\n1: no tags. 0.post.devDISTANCE', 'signature': 'def render_pep440_pre(pieces):'}</s>{'name': 'scan_setup_py@versioneer.py', 'description': "Validate the contents of setup.py against Versioneer's expectations....
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': 'Tempo.__init__@oqupy/tempo.py', 'description': 'Create a Tempo object. ', 'signature': 'def __init__('}</s>MAX_SYS_SAMPLES_MSG = "Reached maximal recommend sample points "\ + f"MAX_SYS_SAMPLES = {MAX_SYS_SAMPLES} when attempting to resolve "\ + "maximum system frequency. Please choose a lower toleranc...
0
{'name': 'Request.get_response@spider/network/request.py', 'description': '获取带有selector功能的response\n@param save_cached: 保存缓存 方便调试时不用每次都重新下载\n@return:', 'signature': 'def get_response(self, save_cached=False):'}</s>{'name': 'Request@spider/network/request.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'met...
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>MQADOPT_TYPE_ALL = 1
0
{'name': 'DeepEmbeddingClusterModel.pre_train@sqlflow_models/deep_embedding_cluster.py', 'description': 'Used for preparing encoder part by loading ready-to-go model or training one.\n:param x:\n:return:', 'signature': 'def pre_train(self, x):'}</s>_default_loss = kld
0
{'name': 'ScrollingTest.testScrolly@reversibility/pycolab/pycolab/tests/scrolling_test.py', 'description': 'Verify correct interoperation of `Scrolly` and `MazeWalker`.', 'signature': 'def testScrolly(self):'}</s>{'name': '_check_scrolling_group@reversibility/pycolab/pycolab/protocols/scrolling.py', 'description': "Rai...
0
{'name': 'MakeDescriptor@third_party/include/protobuf-2.6.1/python/google/protobuf/descriptor.py', 'description': 'Make a protobuf Descriptor given a DescriptorProto protobuf.\n\nHandles nested descriptors. Note that this is limited to the scope of defining\na message inside of another message. Composite fields can cur...
0
{'name': 'get_local_part@src/future/backports/email/_header_value_parser.py', 'description': 'local-part = dot-atom / quoted-string / obs-local-part\n\n ', 'signature': 'def get_local_part(value):'}</s>{'name': 'DotAtom@src/future/backports/email/_header_value_parser.py', 'description': 'DOCSTRING', 'base_classes': ...
0
{'name': 'dashboard_list_tagged@tessera-server/tessera/views_api.py', 'description': 'Listing for a set of dashboards with a tag applied. Returns just\nthe metadata, not the definitions.', 'signature': 'def dashboard_list_tagged(tag):'}</s>{'name': '_delattr@tessera-server/tessera/client/api/model.py', 'description': '...
0
{'name': 'CheckTrailingSemicolon@third_party/cpplint/cpplint.py', 'description': 'Looks for redundant trailing semicolon.\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...
0
{'name': 'RestApi.update_deck@tinycards/networking/rest_api.py', 'description': 'Update an existing deck.\n\nArgs:\n deck (Deck): The Deck object to update.\n\nReturns:\n Deck: The updated Deck object if update was successful.', 'signature': 'def update_deck(self, deck, user_id):'}</s>{'name': 'as_obj_or_json_str...
0
{'name': 'Data._apply_axis@verif/data.py', 'description': 'Slice an array along a certain axis and return an extract array\n\nArguments:\narray 3D numpy array\naxis Of type verif.axis.Axis\naxis_index Index along the axis to slice', 'signature': 'def _apply_axis(self, array, axis, axis_index):'}</s>{'name...
1
{'name': 'CheckJsonFormat.check_format@tests/validate_json_format.py', 'description': 'Initiate the check.', 'signature': 'def check_format(self, file_name):'}</s>RE_COMMENT = re.compile( r'''(?x) (?P<comments> /\*[^*]*\*+(?:[^/*][^*]*\*+)*/ # multi-line comments | [ \t]*//(?:[^\r\n])...
0
{'name': 'TLP.get_lower_address@fpga/lib/pcie/tb/pcie.py', 'description': 'Compute lower address field from address and first byte enable', 'signature': 'def get_lower_address(self):'}</s>TLP_MSG_LOCAL = (FMT_4DW, 0x14)
0
{'name': 'dashboard_export@api/project/__init__.py', 'description': 'Uses the opensearch dashboards API to export a dashboard. Also handles the _REPLACER strings\nas described in "Adding new visualizations and dashboards" at\nhttps://idaholab.github.io/Malcolm/docs/contributing-dashboards.html#DashboardsNewViz\n\nParam...
0
{'name': 'GTestFilterUnitTest.RunAndVerify@Engine/lib/gtest/googletest/test/googletest-filter-unittest.py', 'description': 'Checks that the binary runs correct set of tests for a given filter.', 'signature': 'def RunAndVerify(self, gtest_filter, tests_to_run):'}</s>{'name': 'RunAndReturnOutput@Engine/lib/gtest/googlete...
0
{'name': 'overwrite_existing@tools/flecsit/flecsit/services/service_utils.py', 'description': 'Query the user before overwrite an existing file.', 'signature': 'def overwrite_existing(filename):'}</s>{'name': 'tab_spaces@tools/flecsit/flecsit/services/service_utils.py', 'description': 'Replace tabs with spaces.', 'code...
0
{'name': 'optimize_if01@libc/kernel/tools/cpp.py', 'description': 'Remove the code between #if 0 .. #endif in a list of CppBlocks.', 'signature': 'def optimize_if01(blocks):'}</s>top = os.getenv('ANDROID_BUILD_TOP')
0
{'name': 'AutoCluster.fit@autocluster/autocluster.py', 'description': "---------------------------------------------------------------------------\nArguments\n---------------------------------------------------------------------------\ndf: a DataFrame\nn_folds: number of folds used in k-fold cross validation\npreproces...
0
{'name': 'HTTP2ClientConnection.__init__@th2c/connection.py', 'description': ':param host: address host\n:type host: str\n:param port: address port\n:type port: int\n:param tcp_client: tcp client factory\n:type tcp_client: tornado.tcpclient.TCPClient\n:param secure: Boolean flag indicating whether this connection\nshou...
0
{'name': 'IREP.fit@build/lib/wittgenstein/irep.py', 'description': "Fit a Ruleset model.\n\nParameters\n----------\ntrainset : DataFrame, numpy array, or other iterable\n Training dataset. Optional whether to include or exclude class labels column.\ny : iterable of str, int, bool\n Class labels corresponding to t...
0
{'name': 'git_pieces_from_vcs@versioneer.py', 'description': "Get version from 'git describe' in the root of the source tree.\n\nThis only gets called if the git-archive 'subst' keywords were *not*\nexpanded, and _version.py hasn't already been rewritten with a short\nversion string, meaning we're inside a checked out ...
0
{'name': 'matchOnlyAtCol@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Helper method for defining parse actions that require matching at a specific\ncolumn in the input text.', 'signature': 'def matchOnlyAtCol(n):'}</s>{'name': '_flatten@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', ...
0
{'name': 'WorkerTestCase.test_another_queue@tests/integration/test_worker.py', 'description': 'Task is run on another queue', 'signature': 'def test_another_queue(self):'}</s>{'name': 'discard@tests/tasks.py', 'description': 'DOCSTRING', 'code': 'def discard():\n raise Discard'}
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': 'SearchList.search@shingetsu/node.py', 'description': 'Search node which has the file.', 'signature': 'def search(self, cache=None, myself4=None, myself6=None, nodes=None):'}</s>_init_node = None
0
{'name': 'dump@json_tricks/nonp.py', 'description': 'Convert a nested data structure to a json string.\n\n:param fp: File handle or path to write to.\n:param compression: The gzip compression level, or None for no compression.\n:param force_flush: If True, flush the file handle used, when possibly also in the operating...
0
{'name': 'load@source-builder/sb/options.py', 'description': 'Copy the defaults, get the host specific values and merge them overriding\nany matching defaults, then create an options object to handle the command\nline merging in any command line overrides. Finally post process the\ncommand line.', 'signature': "def loa...
0
{'name': '_lookup_module@dill/session.py', 'description': 'lookup name or id of obj if module is imported', 'signature': 'def _lookup_module(modmap, name, obj, main_module):'}</s>{'name': '_setitems@dill/_dill.py', 'description': 'DOCSTRING', 'code': 'def _setitems(dest, source):\n for k, v in source.items():\n ...
0
{'name': 'main@gget/main.py', 'description': 'Function containing argparse parsers and arguments to allow the use of gget from the terminal.', 'signature': 'def main():'}</s>OPENTARGETS_RESOURCES = list(_RESOURCES.keys())
0
{'name': 'dashboard_list_tagged@tessera-server/tessera/views_api.py', 'description': 'Listing for a set of dashboards with a tag applied. Returns just\nthe metadata, not the definitions.', 'signature': 'def dashboard_list_tagged(tag):'}</s>{'name': '_set_dashboard_hrefs@tessera-server/tessera/views_api.py', 'descriptio...
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>{'name': 'map_...
0
{'name': 'load_schemas@scripts/schema/loader.py', 'description': 'Loads ECS and custom schemas. They are returned deeply nested and merged.', 'signature': 'def load_schemas('}</s>{'name': 'yaml_dump@scripts/generators/ecs_helpers.py', 'description': 'DOCSTRING', 'code': "def yaml_dump(\n filename: str,\n data: Di...
0
{'name': 'DefinitionInitializer.initialize@behave_restful/_definitions.py', 'description': 'Initializes the specified definition, if exists, into the execution\ncontext.\n\n:param context:\n Context object to initialize.', 'signature': 'def initialize(self, context):'}</s>py_version = sys.version_info
0
{'name': 'combine4Role@code/parseJsontoFeatures.py', 'description': 'find features for role identification and add into dict', 'signature': 'def combine4Role(tokens,arglist,deptree,enh):'}</s>perlist = ['party','group','target','patient', 'staff', 'woman', 'person', 'customer', 'worker', 'employee', 'volunteer', 'stude...
0
{'name': 'register_captcha@小红书/shumei_slide.py', 'description': '注册验证码', 'signature': 'def register_captcha(organization):'}</s>{'name': 'get_distance@小红书/shumei_slide.py', 'description': '计算滑动距离', 'code': 'def get_distance(fg, bg):\n """\n 计算滑动距离\n """\n target = cv2.imdecode(np.asarray(bytearray(fg.read()...
0
{'name': '_ClassifyInclude@tools/cpplint.py', 'description': 'Figures out what kind of header \'include\' is.\n\nArgs:\n fileinfo: The current file cpplint is running over. A FileInfo instance.\n include: The path to a #included file.\n is_system: True if the #include used <> rather than "".\n\nReturns:\n One of th...
0
{'name': 'Dispatch.__getattr__@comtypes/client/lazybind.py', 'description': 'Get a COM attribute.', 'signature': 'def __getattr__(self, name):'}</s>VT_DISPATCH = 9
0
{'name': 'pspnet.load_pretrained_model@ptsemseg/models/pspnet.py', 'description': 'Load weights from caffemodel w/o caffe dependency\nand plug them in corresponding modules', 'signature': 'def load_pretrained_model(self, model_path):'}</s>TransformationParameter = _reflection.GeneratedProtocolMessageType('Transformatio...
0
{'name': 'OpponentMoveResultsTestCase.test_capture@tests/test_game.py', 'description': 'r n b q k b n r\np p p . . p p p\n. . . . . . . .\n. . . p p . . .\n. . . P P . . .\n. . . . . . . .\nP P P . . P P P\nR N B Q K B N R', 'signature': 'def test_capture(self):'}</s>{'name': 'LocalGameTimeTest@tests/test_game.py', 'de...
0
{'name': 'get_domain_literal@src/future/backports/email/_header_value_parser.py', 'description': 'domain-literal = [CFWS] "[" *([FWS] dtext) [FWS] "]" [CFWS]\n\n ', 'signature': 'def get_domain_literal(value):'}</s>_non_atom_end_matcher = re.compile(r"[^{}]+".format( ''.join(ATOM_ENDS).replace('\\','\\\\').repla...
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': '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': 'split_on_phrase_rgx@preprocessing/pipes/tokenizers.py', 'description': 'Split sentence on phrase regex\n\n:param sentences:\n:param doc:\n:param rgx:\n:param threshold:\n:return:', 'signature': 'def split_on_phrase_rgx(sentences, doc, rgx, threshold=250):'}</s>{'name': 'ct_tokenizer@preprocessing/pipes/tokeni...
0
{'name': 'Migrator.add_column@peewee_moves.py', 'description': 'Add the given column to the given table.\n\n:param table: Table name to add column to.\n:param name: Name of the column field to add.\n:param coltype: Column type (from FIELD_TO_PEEWEE).\n:param kwargs: Arguments for the given column type.\n:return: None',...
0
{'name': 'Distinct@src/api/python/z3/z3.py', 'description': "Create a Z3 distinct expression.\n\n>>> x = Int('x')\n>>> y = Int('y')\n>>> Distinct(x, y)\nx != y\n>>> z = Int('z')\n>>> Distinct(x, y, z)\nDistinct(x, y, z)\n>>> simplify(Distinct(x, y, z))\nDistinct(x, y, z)\n>>> simplify(Distinct(x, y, z), blast_distinct=...
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': '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': 'Flask.run@SneakerBot 2019/venv/lib/python3.7/site-packages/flask/app.py', 'description': "Runs the application on a local development server.\n\nDo not use ``run()`` in a production setting. It is not intended to\nmeet security and performance requirements for a production server.\nInstead, see :ref:`deployme...
0
{'name': 'training_loop@tensor2tensor_envi/rl/trainer_model_based.py', 'description': 'Run the main training loop.', 'signature': 'def training_loop(hparams, output_dir, report_fn=None, report_metric=None):'}</s>{'name': 'train_agent@tensor2tensor_envi/rl/trainer_model_based.py', 'description': 'Train the PPO agent in ...
1
{'name': 'R_wz_sc@mcu/wannier90/pywannier90_vasp.py', 'description': 'TODO: document it\nRef: This is the replication of the R_wz_sc function of ws_distance.F90', 'signature': 'def R_wz_sc(w90, R_in, R0, ws_search_size=[2,2,2], ws_distance_tol=1e-6):'}</s>AUTOA5 = AUTOA3 * AUTOA2
0
{'name': 'CScriptOp.decode_op_n@test/functional/test_framework/script.py', 'description': 'Decode a small integer opcode, returning an integer', 'signature': 'def decode_op_n(self):'}</s>OP_CHECKSIG = CScriptOp(0xac)
0
{'name': 'ParameterTestCase.test_parameter_init@tests/installer/test_setup_params.py', 'description': 'Test packstack.installer.core.parameters.Parameter\ninitialization', 'signature': 'def test_parameter_init(self):'}</s>{'name': 'Parameter@packstack/installer/core/parameters.py', 'description': 'DOCSTRING', 'base_cla...
1
{'name': 'test_internal_flows_elsewhere@test/test_dataset.py', 'description': 'Internal flows should not be included in to/from Elsewhere bundles.\n\n ', 'signature': 'def test_internal_flows_elsewhere():'}</s>{'name': 'Dataset@floweaver/dataset.py', 'description': 'DOCSTRING', 'base_classes': [], 'methods': [{'name...
1
{'name': 'condition@altair/vegalite/v3/api.py', 'description': 'A conditional attribute or encoding\n\nParameters\n----------\npredicate: Selection, LogicalOperandPredicate, expr.Expression, dict, or string\n the selection predicate or test predicate for the condition.\n if a string is passed, it will be treated ...
0
{'name': 'darknet_mish.forward@model.py', 'description': 'In the forward pass we receive a Tensor containing the input and return\na Tensor containing the output. ctx is a context object that can be used\nto stash information for backward computation. You can cache arbitrary\nobjects for use in the backward pass using ...
0
{'name': 'write@code/html/generate_static_website.py', 'description': 'Writes a generated HTML page to a file, but checks with a HTML parser before.\n:param text:\n:param file:', 'signature': 'def write(text, path):'}</s>{'name': 'write_text@code/utils/utils.py', 'description': 'Writes a whole text file (UTF-8 encoded)...
1
{'name': 'Model.transform@plda/model.py', 'description': "Potential_spaces: 'D' <---> 'X' <---> 'U' <---> 'U_model'.\n\nDESCRIPTION\n There are 6 basic transformations to move back and forth\n between the data space, 'D', and the model's space, 'U_model':\n\n 1. From D to X.\n (i.e. from data space to preprocessed...
0
{'name': 'PDFDocument.read_xref_from@pdfminer3/pdfdocument.py', 'description': 'Reads XRefs from the given location.', 'signature': 'def read_xref_from(self, parser, start, xrefs):'}</s>{'name': 'PDFDocument@pdfminer3/pdfdocument.py', 'description': 'PDFDocument object represents a PDF document.\n\nSince a PDF file can...
1
{'name': 'ClockSkewDaemon.__init__@packages/python-google-compute-engine/google_compute_engine/clock_skew/clock_skew_daemon.py', 'description': 'Constructor.\n\nArgs:\n debug: bool, True if debug output should write to the console.', 'signature': 'def __init__(self, debug=False):'}</s>CONFIG = constants.SYSCONFDIR + '...
0
{'name': 'decode_traceTransaction@eth_event/main.py', 'description': "Extract and decode a list of event logs from a transaction traceback.\n\nUseful for obtaining the events fired in a transaction that reverted.\n\nArguments\n---------\nstruct_logs : List\n `structLogs` field from Geth's `debug_traceTransaction` RP...
0
{'name': 'WorkingSet.resolve@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/pkg_resources/__init__.py', 'description': 'List all distributions needed to (recursively) meet `requirements`\n\n`requirements` must be a sequence of ``Requirement`` objects. `env`,\nif supplied, should be an ``Environment`` instance...
0
{'name': 'TestDecode.testDecodeBadUTF8@src/tests/testXmlEncodingDecode.py', 'description': 'Ensure bad UTF-8 is flagged as such, but still decoded.', 'signature': 'def testDecodeBadUTF8(self):'}</s>{'name': 'DuplicateSemantics@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['Warning'], 'meth...
0
{'name': 'PBES2.encrypt@blockchain-env/lib/python3.7/site-packages/Cryptodome/IO/_PBES.py', 'description': "Encrypt a piece of data using a passphrase and *PBES2*.\n\n:Parameters:\n data : byte string\n The piece of data to encrypt.\n passphrase : byte string\n The passphrase to use for encrypting the data.\n ...
0
{'name': '_htmlentity_transform@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'Transforms an HTML entity to a character.', 'signature': 'def _htmlentity_transform(entity_with_semicolon):'}</s>{'name': 'shell_quote@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'DOCSTRING', 'code':...
0
{'name': 'make_server@src-python/lab-service/traffexam/kilda/traffexam/rest.py', 'description': 'Create a new WSGI server listening on `host` and `port` for `app`', 'signature': 'def make_server(host, port, app, thread_count=None,'}</s>{'name': 'IdMixin@src-python/lab-service/traffexam/kilda/traffexam/model.py', 'descr...
0
{'name': 'test_eeg_rpsd@mne_icalabel/iclabel/tests/test_features.py', 'description': 'Test eeg_rpsd function that extract the PSD feature from the IC.', 'signature': 'def test_eeg_rpsd(fname, constants_fname, step_by_step_fname, psd_fname, type_):'}</s>{'name': 'test_compute_ica_activations@mne_icalabel/iclabel/tests/t...
0
{'name': 'squad_convert_examples_to_features@third_party/processors/squad.py', 'description': "Converts a list of examples into a list of features that can be directly given as input to a model.\nIt is model-dependant and takes advantage of many of the tokenizer's features to create the model's inputs.\n\nArgs:\n ex...
0
{'name': '_ClassifyInclude@tools/cpplint.py', 'description': 'Figures out what kind of header \'include\' is.\n\nArgs:\n fileinfo: The current file cpplint is running over. A FileInfo instance.\n include: The path to a #included file.\n is_system: True if the #include used <> rather than "".\n\nReturns:\n One of th...
0
{'name': 'have_qstring@labelImg.py', 'description': 'p3/qt5 get rid of QString wrapper as py3 has native unicode str type', 'signature': 'def have_qstring():'}</s>SETTING_AUTO_SAVE = "autosave"
0
{'name': 'read_file@ocr_utils.py', 'description': "Reads the .csv file containing the labeled data images.\n\nParameters\n------------\n pathName :path name of the zip file containing all the training data\n \n input_filters_dict: ['font', font_name] \n a font_name is a string or tuple containing a list...
0
{'name': 'WorkerTestCase.test_sigusr1@tests/integration/test_worker.py', 'description': 'Print stacktrace on SIGUSR1', 'signature': 'def test_sigusr1(self):'}</s>{'name': 'raise_exception@tests/tasks.py', 'description': 'DOCSTRING', 'code': 'def raise_exception():\n return 1 / 0'}
0
{'name': 'geticmptypebynumber@pf/_utils.py', 'description': 'Return the ICMP type as a string.', 'signature': 'def geticmptypebynumber(type, af):'}</s>PF_OP_XRG = 8
0
{'name': 'getShutterSetting@source/pi-timolo.py', 'description': 'Calculate a shutter speed based on image pixel average', 'signature': 'def getShutterSetting(pxAve):'}</s>camResult = camResult.decode("utf-8")
0
{'name': 'decode_to_string@lib/symbioticpy/symbiotic/benchexec/util.py', 'description': 'This function is needed for Python 3,\nbecause a subprocess can return bytes instead of a string.', 'signature': 'def decode_to_string(toDecode):'}</s>{'name': 'common_base_dir@lib/symbioticpy/symbiotic/benchexec/util.py', 'descrip...
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': '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': 'WhatHappenedToTheWeirdAdditionP1.play_farey_addition_animations@ford_circles_explained.py', 'description': "Returns a series of animations showing 'a/b oplus c/d equals (a+c)/(b+d)'", 'signature': 'def play_farey_addition_animations(self, a, b, c, d):'}</s>{'name': 'ConjecturesAndProofsAboutFareyMediantP1@for...
0
{'name': 'MHLHistory.load_from_path@ascmhl/history.py', 'description': 'finds all MHL files in the asc-mhl folder, returns the mhl_history instance with all mhl_hashlists', 'signature': 'def load_from_path(cls, root_path):'}</s>{'name': '_ignore_xml_element@ascmhl/hashlist_xml_parser.py', 'description': 'builds and ret...
0
{'name': 'bisect_good@nix_bisect/bisect_runner.py', 'description': 'Mark a commit as good.\n\nThe same disclaimer as for `bisect_bad` applies.', 'signature': 'def bisect_good(commit):'}</s>{'name': 'git_dir@nix_bisect/git.py', 'description': 'Returns the path to the .git directory (works with worktrees)', 'code': 'def ...
0
{'name': '_makeTags@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/pyparsing.py', 'description': 'Internal helper to construct opening and closing tag expressions, given a tag name', 'signature': 'def _makeTags(tagStr, xml):'}</s>{'name': 'pyparsing_unicode@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vend...
0
{'name': 'make_river_map@src/Utility/Grid_Scripts/Compound_flooding/RiverMapper/RiverMapper/make_river_map.py', 'description': '[Core routine for making river maps]\n\ntif_fnames: a list of TIF file names. These TIFs should cover the area of interest and be arranged by priority (higher priority ones in front)\n\nthalwe...
0
{'name': 'on_shutdown_pi@src/server/server.py', 'description': 'Shutdown the raspberry pi.', 'signature': 'def on_shutdown_pi(*args):'}</s>{'name': 'log_error_callback_fn@src/server/server.py', 'description': 'DOCSTRING', 'code': 'def log_error_callback_fn(*args):\n if not is_ui_message_set("errors-logged"):\n ...
0
{'name': 'Console.preloop@src/python/codequestion/console.py', 'description': 'Loads initial configuration.', 'signature': 'def preloop(self):'}</s>{'name': 'main@src/python/codequestion/console.py', 'description': 'Console execution loop.', 'code': 'def main():\n """\n Console execution loop.\n """\n\n Con...
0
{'name': 'getSubArrays@training_codes/utils/utils_model.py', 'description': "We want to split the array A=[start:end] in numSubArrays arrays of \nequal length so that all the elements in A are included in at least one of \nthe created sub-arrays.\n\nReturns the starting (s) and ending points (e) of each sub-array.\n\n...
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': 'TestAdminTreeList.test_result_tree_list_escapes_labels@treebeard/tests/test_treebeard.py', 'description': 'Verifies that inclusion tag result_list generates a table when with\ndefault ModelAdmin settings.', 'signature': 'def test_result_tree_list_escapes_labels(self, model_with_unicode):'}</s>RELATED_MODELS =...
0
{'name': 'remove_y@test/test_utils.py', 'description': 'Quadruplets and triplets learners have no y in fit, but to write test for\nall estimators, it is convenient to have this function, that will return X\nand y if the estimator needs a y to fit on, and just X otherwise.', 'signature': 'def remove_y(estimator, X, y):'...
0
{'name': 'make_schema_and_word_copying_data_provider@baselines/seq2seq_attention_copy/seq2seq/data/copying_data_provider.py', 'description': 'Builds a copying data provider for schema and word copying.\nArgs:\n data_sources_source: A list of data sources for the source text\n files.\n data_sources_target: A list o...
1
{'name': 'Plant.pick_petal@src/astrobotany/models.py', 'description': "Pick a petal from a flowering plant.\n\nArgs:\n user: The user picking the petal, if not the plant's owner.\n\nReturns: A string with a description of the resulting action.", 'signature': 'def pick_petal(self, user: User | None = None) -> str:'}<...
0