text
string
label
int64
{'name': 'galah@gaia_tools/load/__init__.py', 'description': "NAME:\n galah\nPURPOSE:\n Load the GALAH data\nINPUT:\n dr= (2) data release\n ages= (False; DR >= 3) if True, add ages and other info from VAC\n ages_join_type= ('inner') type of table join to do between the main catalog and the ages VAC: 'inner' ...
0
{'name': 'QuicGraphicalLassoCV.fit@inverse_covariance/quic_graph_lasso.py', 'description': 'Fits the GraphLasso covariance model to X.\n\nClosely follows sklearn.covariance.graph_lasso.GraphLassoCV.\n\nParameters\n----------\nX : ndarray, shape (n_samples, n_features)\n Data from which to compute the covariance esti...
1
{'name': 'SingleSubjectWindow.CB_line_text@src/python_scripts/afnipy/gui_uber_subj.py', 'description': 'call-back for text updates in the level 3 gbox', 'signature': 'def CB_line_text(self):'}</s>{'name': 'which@src/python_scripts/afnipy/afni_util.py', 'description': "like unix which command: return the first 'pname' i...
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>{'name': 'RawNodeList@shingetsu/node.py', 'description': 'File includes list.\n\nOne element par one line.', 'base_classes': ['list']...
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': 'nestedExpr@venv/Lib/site-packages/pkg_resources/_vendor/pyparsing.py', 'description': 'Helper method for defining nested lists enclosed in opening and closing\ndelimiters ("(" and ")" are the default).\n\nParameters:\n - opener - opening character for a nested list (default=C{"("}); can also be a pyparsing ex...
0
{'name': 'ap_per_class@yolov3/utils/utils.py', 'description': 'Compute the average precision, given the recall and precision curves.\nSource: https://github.com/rafaelpadilla/Object-Detection-Metrics.\n# Arguments\n tp: True positives (nparray, nx1 or nx10).\n conf: Objectness value from 0-1 (nparray).\n p...
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': 'main@run.py', 'description': 'Main function ', 'signature': 'def main():'}</s>{'name': 'lynda_folder@module/save.py', 'description': 'Create lynda folder ', 'code': "def lynda_folder():\n ''' Create lynda folder '''\n path = read.settings_json('preferences', 'location')\n if not os.path.exists(path):...
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': 'ValidatingClientMixin.challenge_response_valid@xled/auth.py', 'description': "Verifies server with hardware address returned correct challenge response\n\nCreates challenge-response for server's hardware address, challenge and\nshared password and compares it with stored challenge-response.\n\n:param str hw_a...
0
{'name': 'DNSIncoming.readOthers@stino/pyarduino/base/zeroconf.py', 'description': 'Reads the answers, authorities and additionals section of the\npacket', 'signature': 'def readOthers(self):'}</s>_MDNS_PORT = 5353
0
{'name': 'populate_objects@tests/functional/common.py', 'description': 'Create a disdat context with count bundles.\nReturn the list of UUIDs and the list of objects\n(list[uuid], list[paths])', 'signature': 'def populate_objects(run_module_test, moto_boto, count: int) -> dict:'}</s>TEST_CONTEXT = "___test_context___"
1
{'name': 'is_mutibyte_string@qt4a/androiddriver/util.py', 'description': '判断是否是多字节字符串', 'signature': 'def is_mutibyte_string(data):'}</s>{'name': 'get_file_md5@qt4a/androiddriver/util.py', 'description': '计算文件md5', 'code': 'def get_file_md5(file_path):\n """计算文件md5"""\n import hashlib\n\n if six.PY2 and (not i...
0
{'name': 'PFOp._to_string@pf/rule.py', 'description': 'Return the string representation of the operation.', 'signature': 'def _to_string(self):'}</s>ICMP_REDIRECT_HOST = 1
0
{'name': 'parse_tcsh_args@src/python_scripts/afnipy/lib_apqc_io.py', 'description': 'Parse arguments for tcsh scripter.\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.', 'signature...
0
{'name': 'test_linkauth_rw_pb@tests/bundles/test_hframe.py', 'description': 'Write LINKAUTH PBs to disk and back.\n:return:', 'signature': 'def test_linkauth_rw_pb():'}</s>{'name': 'delete_hfr_db@disdat/hyperframe.py', 'description': 'Delete HFrame row from a table where\nuuid= && owner= && human_name= && processing_na...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQ_CERT_LABEL_LENGTH = 64
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': 'Diagram.normal_form@discopy/grammar/pregroup.py', 'description': 'Applies normal form to a pregroup diagram of the form\n``word @ ... @ word >> wires`` by normalising words and wires\nseperately before combining them, so it can be drawn with :meth:`draw`.', 'signature': 'def normal_form(diagram, **params):'}<...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRC_SSL_NOT_ALLOWED = 2396
0
{'name': 'draw_water_mix_ratio@pymeteo/skewt.py', 'description': 'Plot lines of constant water vapor mixing ratio on axes\n\n:parameter axes: The axes to draw on\n:type axes: :py:class:`matplotlib.axes`\n\nThis function calculates isolines of constant water vapor\nmixing ratio and plots these lines. Values of w calcul...
0
{'name': 'Glome.__init__@python/pyglome/glome.py', 'description': "Initialize Glome class.\n\nPerforms the handshake and generates keys.\n\nArgs:\n peer_key: Your peer's public key.\n my_private_key: Your private key.\n min_peer_tag_len: Desired length (in bytes) for the tag.\n Must be an integer in range...
0
{'name': 'register_websocket_handlers@custom_components/nodered/websocket.py', 'description': 'Register the websocket handlers.', 'signature': 'def register_websocket_handlers(hass: HomeAssistant):'}</s>NODERED_ENTITY = "nodered_entity_{}_{}"
0
{'name': 'A1DInterface.process_data@src/python_scripts/scripts/1d_tool.py', 'description': 'return None on completion, else error code (0 being okay)', 'signature': 'def process_data(self):'}</s>{'name': 'numerical_resolution@src/python_scripts/afnipy/afni_util.py', 'description': 'return the apparent resolution of val...
0
{'name': 'download_setuptools@ez_setup.py', 'description': "Download setuptools from a specified location and return its filename.\n\n`version` should be a valid setuptools version number that is available\nas an sdist for download under the `download_base` URL (which should end\nwith a '/'). `to_dir` is the directory ...
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': 'azure_user@backend-tests/tests/test_azure_iothub.py', 'description': 'Create Mender user and create an Azure IoT Hub integration in iot-manager using the connection string.', 'signature': 'def azure_user(clean_mongo) -> Optional[User]:'}</s>HOST = "mender-useradm:8080"
0
{'name': 'update_startup_screen@displays/waveshare2in13v3.py', 'description': 'Show startup screen on eInk Display\n ', 'signature': 'def update_startup_screen():'}</s>nocoin_screen_3 = "coins first"
0
{'name': 'WallSetter.get_setter@QuickWall/setter.py', 'description': 'Return the setter.', 'signature': 'def get_setter(self):'}</s>{'name': 'get_desktop_environment@QuickWall/utility.py', 'description': 'DOCSTRING', 'code': 'def get_desktop_environment():\n # From http://stackoverflow.com/questions/2035657/what-is-...
0
{'name': 'StaffProfileAdminForm.clean_nhif@small_small_hr/forms.py', 'description': 'Check if NHIF number is unique.', 'signature': 'def clean_nhif(self):'}</s>{'name': 'OverTime@small_small_hr/models.py', 'description': 'Overtime model class.', 'base_classes': ['BaseStaffRequest'], 'methods': [{'name': 'OverTime.__str...
0
{'name': 'CalculateNumRotatableBonds@scopy/ScoDruglikeness/molproperty.py', 'description': 'Calculation of the number of rotatableBonds\n--->nRot\n\nNote:\n In some situaion Amide C-N bonds are not considered \n because of their high rotational energy barrier\n\n:param mol: molecule\n:type mol: rdkit.Chem.rdchem....
0
{'name': '_default_value@swagger_to/py_client.py', 'description': 'Determine the default value of the given type definition.\n\n:param typedef: type definition in Python representation.\n:return: Python code', 'signature': 'def _default_value(typedef: Typedef) -> str:'}</s>{'name': 'Swagger@swagger_to/swagger.py', 'des...
0
{'name': 'format@src/convertdate/french_republican.py', 'description': 'Convert a FR date into a string with the format DD MONTH YYYY.', 'signature': 'def format(an, mois, jour):'}</s>LEAP_CYCLE_DAYS = 1461.0
0
{'name': 'process@src/ptpapi/scripts/ptp_reseed.py', 'description': 'The entrypoint', 'signature': 'def process(cli_args):'}</s>{'name': 'define_parser@src/ptpapi/scripts/ptp_reseed.py', 'description': 'Define the arguments for the CLI', 'code': 'def define_parser():\n """Define the arguments for the CLI"""\n par...
1
{'name': 'process_line@scripts/pdns/lib/python2.7/site-packages/pip/req/req_file.py', 'description': 'Process a single requirements line; This can result in creating/yielding\nrequirements, or updating the finder.\n\nFor lines that contain requirements, the only options that have an effect\nare from SUPPORTED_OPTIONS_R...
1
{'name': 'RTCTest.teardown@src/htrun/host_tests/rtc_auto.py', 'description': 'Tear down the test.', 'signature': 'def teardown(self):'}</s>{'name': 'RTCTest@src/htrun/host_tests/rtc_auto.py', 'description': 'Test RTC.', 'base_classes': ['BaseHostTest'], 'methods': [{'name': 'RTCTest._callback_timestamp@src/htrun/host_t...
1
{'name': '_build_classification_loss@object_detection/builders/losses_builder.py', 'description': 'Builds a classification loss based on the loss config.\n\nArgs:\n loss_config: A losses_pb2.ClassificationLoss object.\n\nReturns:\n Loss based on the config.\n\nRaises:\n ValueError: On invalid loss_config.', 'signatu...
1
{'name': 'PtTebdBackend.apply_nn_gate_layer@oqupy/backends/pt_tebd_backend.py', 'description': 'Apply a nearest neighbor gate layer to the augmented MPS. ', 'signature': 'def apply_nn_gate_layer(self, gate_layer: GateLayer):'}</s>{'name': '_apply_nn_gate@oqupy/backends/pt_tebd_backend.py', 'description': 'Apply a neare...
0
{'name': 'K@src/api/python/z3/z3.py', 'description': "Return a Z3 constant array expression.\n\n>>> a = K(IntSort(), 10)\n>>> a\nK(Int, 10)\n>>> a.sort()\nArray(Int, Int)\n>>> i = Int('i')\n>>> a[i]\nK(Int, 10)[i]\n>>> simplify(a[i])\n10", 'signature': 'def K(dom, v):'}</s>{'name': 'BVSDivNoOverflow@src/api/python/z3/z...
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.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': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIACF_OPEN_INQUIRE = 1101
0
{'name': 'TestParseTagInput.test_tags_with_double_quotes_can_contain_commas@tagging/tests/tests.py', 'description': 'Double quotes can contain commas ', 'signature': 'def test_tags_with_double_quotes_can_contain_commas(self):'}</s>{'name': 'TestTagUsageForModelBaseCase@tagging/tests/tests.py', 'description': 'DOCSTRING...
0
{'name': 'QnliProcessor._create_examples@examples/utils_sequence_level_task.py', 'description': 'Creates examples for the training and dev sets.', 'signature': 'def _create_examples(self, lines, set_type):'}</s>{'name': 'ColaProcessor@examples/utils_sequence_level_task.py', 'description': 'Processor for the CoLA data s...
0
{'name': 'scale_matrix@utils/transformations.py', 'description': 'Return matrix to scale by factor around origin in direction.\n\nUse factor -1 for point symmetry.\n\n>>> v = (numpy.random.rand(4, 5) - 0.5) * 20\n>>> v[3] = 1\n>>> S = scale_matrix(-1.234)\n>>> numpy.allclose(numpy.dot(S, v)[:3], -1.234*v[:3])\nTrue\n>>...
0
{'name': 'Serial._reconfigure_port@serial/serialwin32.py', 'description': 'Set communication parameters on opened port.', 'signature': 'def _reconfigure_port(self):'}</s>DTR_CONTROL_DISABLE = 0
1
{'name': 'BinFile.read@wntr/epanet/io.py', 'description': 'Read a binary file and create a results object.\n\nParameters\n----------\nfilename : str\n An EPANET BIN output file\nconvergence_error: bool (optional)\n If convergence_error is True, an error will be raised if the\n simulation does not converge. If ...
0
{'name': 'TransformerDecoder.output_layer@fairseq/models/hubert/hubert_asr.py', 'description': 'Project features to the vocabulary size.', 'signature': 'def output_layer(self, features, **kwargs):'}</s>{'name': 'load_align_dict@fairseq/utils.py', 'description': 'DOCSTRING', 'code': 'def load_align_dict(replace_unk):\n ...
0
{'name': 'Connection.get@memsql/common/database.py', 'description': 'Returns the first row returned for the given query.', 'signature': 'def get(self, query, *parameters, **kwparameters):'}</s>{'name': 'SelectResult@memsql/common/database.py', 'description': 'DOCSTRING', 'base_classes': ['list'], 'methods': [{'name': '...
0
{'name': 'device_added@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'A device is added or updated', 'signature': 'def device_added(notification):'}</s>{'name': 'extcap_dlts@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'List DLTs for the given interface', 'code': 'def extcap_dlts(interfac...
0
{'name': 'ParserElement.runTests@venv/Lib/site-packages/pkg_resources/_vendor/pyparsing.py', 'description': 'Execute the parse expression on a series of test strings, showing each\ntest, the parsed results or where the parse failed. Quick and easy way to\nrun a parse expression against a list of sample strings.\n \nP...
0
{'name': 'format@libs/sqlparse/__init__.py', 'description': 'Format *sql* according to *options*.\n\nAvailable options are documented in :ref:`formatting`.\n\nIn addition to the formatting options this function accepts the\nkeyword "encoding" which determines the encoding of the statement.\n\n:returns: The formatted SQ...
0
{'name': 'MidiStatus.get_columns@robopianist/viewer/application.py', 'description': 'Returns the text to display in two columns.', 'signature': 'def get_columns(self):'}</s>PRESS = 1
0
{'name': 'S5SSM.setup@s5/ssm.py', 'description': 'Initializes parameters once and performs discretization each time\nthe SSM is applied to a sequence', 'signature': 'def setup(self):'}</s>{'name': 'discretize_bilinear@s5/ssm.py', 'description': 'Discretize a diagonalized, continuous-time linear SSM\nusing bilinear tran...
1
{'name': 'test_wifi_throughput_vs_rssi@examples/wifi/iperf/iperf_test.py', 'description': 'steps: |\n 1. build with best performance config\n 2. switch on one router\n 3. set attenuator value from 0-60 for each router\n 4. test TCP tx rx and UDP tx rx throughput', 'signature': 'def test_wifi_throughput_vs_rssi(env,...
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': '_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': 'decode_logs@eth_event/main.py', 'description': 'Decode a list of event logs from a transaction receipt.\n\nIf `allow_undecoded` is `True`, an undecoded event is returned with the\nfollowing structure:\n\n{\n \'name\': None,\n \'decoded\': False,\n \'data\': "", # raw data hexstring\n \'topics\': ...
0
{'name': 'import_graphite_dashboards@tessera-server/tasks.py', 'description': 'Import dashboards from a Graphite vanilla dashboard.', 'signature': 'def import_graphite_dashboards('}</s>MIGRATION_DIR = "migrations"
0
{'name': 'ThreadedConnectionPool.__init__@psycopg2/pool.py', 'description': 'Initialize the threading lock.', 'signature': 'def __init__(self, minconn, maxconn, *args, **kwargs):'}</s>{'name': 'ThreadedConnectionPool@psycopg2/pool.py', 'description': 'A connection pool that works with the threading module.', 'base_clas...
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': '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': '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_bipolar_formatter_logger@vermouth/tests/test_logging.py', 'description': 'Make sure the bipolar logger picks the correct logger if none is given.', 'signature': 'def test_bipolar_formatter_logger():'}</s>{'name': 'test_counter@vermouth/tests/test_logging.py', 'description': 'Make sure the CountingHandler...
0
{'name': 'A1DInterface.process_data@src/python_scripts/scripts/1d_tool.py', 'description': 'return None on completion, else error code (0 being okay)', 'signature': 'def process_data(self):'}</s>MTYPE_AMP = 1
0
{'name': 'calculatePatterns@examples/SpongeRollProblem3.py', 'description': "Recursively calculates the list of options lists for a cutting stock problem. The input\n'tlist' is a pointer, and will be the output of the function call.\n\nThe inputs are:\ntotalRollLength - the length of the roll\nlenOpts - a list of the s...
0
{'name': 'cfg_from_list@config.py', 'description': 'Set config keys via list (e.g., from command line).', 'signature': 'def cfg_from_list(cfg_list, config):'}</s>{'name': 'log_config_to_file@config.py', 'description': 'DOCSTRING', 'code': "def log_config_to_file(cfg, pre='cfg', logger=None):\n for key, val in cfg.it...
0
{'name': 'Machine.wait_for_unit@nixos/lib/test-driver/test-driver.py', 'description': 'Wait for a systemd unit to get into "active" state.\nThrows exceptions on "failed" and "inactive" states as well as\nafter timing out.', 'signature': 'def wait_for_unit(self, unit: str, user: Optional[str] = None) -> None:'}</s>{'nam...
0
{'name': 'BareValidator._validate_max@cerberus/validator.py', 'description': "{'nullable': False }", 'signature': 'def _validate_max(self, max_value, field, value):'}</s>{'name': 'ErrorTreeNode@cerberus/errors.py', 'description': 'DOCSTRING', 'base_classes': ['MutableMapping'], 'methods': [{'name': 'ErrorTreeNode.__ini...
0
{'name': 'GefRemoteSessionManager.connect@gef.py', 'description': 'Connect to remote target. If in extended mode, also attach to the given PID.', 'signature': 'def connect(self, pid: int) -> bool:'}</s>{'name': 'gef_on_unload_objfile_hook@gef.py', 'description': 'DOCSTRING', 'code': 'def gef_on_unload_objfile_hook(func...
0
{'name': 'NVMeOFConnectorTestCase.test_connect_volume_not_replicated_fails@os_brick/tests/initiator/connectors/test_nvmeof.py', 'description': 'Single vol attach fails and disconnects on failure.', 'signature': 'def test_connect_volume_not_replicated_fails('}</s>TARGET_NQN = "target.nqn"
0
{'name': 'ClickHouseSyncModel.get_clickhouse_sync_models@src/django_clickhouse/models.py', 'description': 'Returns all clickhouse models, listening to this class\n:return: A set of model classes to sync', 'signature': "def get_clickhouse_sync_models(cls) -> Set['ClickHouseModel']: # noqa: F821"}</s>qs_bases = [ClickHo...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQCACF_REG_STREAM_NAME = 3041
0
{'name': 'extend_pandas@ffn/core.py', 'description': "Extends pandas' PandasObject (Series, Series,\nDataFrame) with some functions defined in this file.\n\nThis facilitates common functional composition used in quant\nfinance.\n\nEx:\n prices.to_returns().dropna().calc_clusters()\n (where prices would be a DataF...
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': 'PrettyTable._get_int_format@SyntaxParser/SLR/prettytable.py', 'description': 'Controls formatting of integer data\nArguments:\n\nint_format - integer format string', 'signature': 'def _get_int_format(self):'}</s>{'name': 'from_csv@SyntaxParser/SLR/prettytable.py', 'description': 'DOCSTRING', 'code': 'def from...
0
{'name': 'test_sorting@voluptuous/tests/tests.py', 'description': 'Expect alphabetic sorting', 'signature': 'def test_sorting():'}</s>{'name': 'test_repr@voluptuous/tests/tests.py', 'description': 'Verify that __repr__ returns valid Python expressions', 'code': 'def test_repr():\n """Verify that __repr__ returns val...
0
{'name': '_fit@diffxpy/testing/tests.py', 'description': ':param noise_model: str, noise model to use in model-based unit_test. Possible options:\n\n - \'nb\': default\n:param design_loc: Design matrix of location model.\n:param design_loc: Design matrix of scale model.\n:param constraints_loc: : Constraints for loc...
0
{'name': 'window@tests/conftest.py', 'description': 'Single blank window.', 'signature': 'def window() -> Generator[Window, None, None]:'}</s>{'name': 'StubServer@tests/helpers.py', 'description': 'A server socket which receives a hunk of data and stores it in a list.\n\nUsed to test that clients are making correct req...
0
{'name': 'lanuch_app@cfgexplorer/utils.py', 'description': ':param prompt: whether lannuch a browser immediately\n:type prompt: true\n:param port: port to host the flask app\n:type port: int\n:return: None\n:rtype: None', 'signature': 'def lanuch_app(prompt=False, port=5000):'}</s>{'name': 'CFGExplorer@cfgexplorer/expl...
0
{'name': 'dict_to_csv@enzynet/tools.py', 'description': 'Saves Python dictionary to a csv file.', 'signature': 'def dict_to_csv(dictionary: Dict[Any, Any], path: Text) -> None:'}</s>MAKE_FILES_DIR = os.path.join(ROOT_DIR, 'datasets/make_files/')
0
{'name': 'drop_fields@peewee_migrate/auto.py', 'description': 'Generate migrations to remove fields.', 'signature': 'def drop_fields(model_type: TModelType, *fields: pw.Field, **kwargs) -> str:'}</s>{'name': 'field_to_code@peewee_migrate/auto.py', 'description': 'Generate field description.', 'code': 'def field_to_code...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQ_CF_STRUC_DESC_LENGTH = 64
0
{'name': '_FixPath@gyp/pylib/gyp/generator/msvs.py', 'description': 'Convert paths to a form that will make sense in a vcproj file.\n\nArguments:\n path: The path to convert, may contain / etc.\nReturns:\n The path with all slashes made into backslashes.', 'signature': 'def _FixPath(path, separator="\\\\"):'}</s>{'na...
0
{'name': 'run@pretf/pretf/cli.py', 'description': 'This is the pretf CLI tool entrypoint.', 'signature': 'def run() -> Union[CompletedProcess, int]:'}</s>{'name': 'custom@pretf/pretf/workflow.py', 'description': 'Calls the pretf_workflow() function from the specified Python file.\nThis is useful for having a custom wor...
1
{'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>USE_POSTGRES = False
0
{'name': 'upgrade@modulemd_tools/modulemd_tools/yaml.py', 'description': "Upgrade the input module YAML from an older version to a newer one.\nDowngrades aren't supported even in case where it would be possible.", 'signature': 'def upgrade(mod_yaml, version):'}</s>{'name': '_generate_filename@modulemd_tools/modulemd_to...
0
{'name': 'predict_query@ddparser/run.py', 'description': 'Predict one query', 'signature': 'def predict_query(env):'}</s>{'name': 'Metric@ddparser/parser/data_struct/metric.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'methods': [{'name': 'Metric.__init__@ddparser/parser/data_struct/metric.py', 'descrip...
0
{'name': 'TestStrictWrapper.test_strict_wrapper@responses/tests/test_responses.py', 'description': 'Test that assert_all_requests_are_fired could be applied to the decorator.', 'signature': 'def test_strict_wrapper(self):'}</s>{'name': 'test_legacy_adding_headers_with_content_type@responses/tests/test_responses.py', 'd...
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>_user_prop_decide = Z3_decide_eh(user_prop_decide)
0
{'name': '_save_code@d2lbook/library.py', 'description': 'get the code blocks (import, class, def) that will be saved', 'signature': "def _save_code(input_fn, save_mark='@save', tab=None,"}</s>{'name': 'get_tab_notebook@d2lbook/notebook.py', 'description': "Returns a notebook with code/markdown cells that doesn't match...
1
{'name': 'hive@nxviz/layouts.py', 'description': 'Hive plot node layout.\n\n## Parameters\n\n- `inner_radius`: The inner', 'signature': 'def hive('}</s>{'name': 'item_theta@nxviz/geometry.py', 'description': 'Maps node to an angle in radians.\n\n:param itemlist: Item list from the graph.\n:param item: The item of inter...
1
{'name': 'DocumentClassification._compile_hans@neural_networks/lmtc_networks/document_classification.py', 'description': 'Compiles a Hierarchical Attention Network based on the given parameters\n:param shape: The shape of the sequence, i.e. (number of sections, number of tokens)\n:param hidden_units_size: size of hidde...
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': 'UFOBuilder.__init__@Lib/glyphsLib/builder/builders.py', 'description': 'Create a builder that goes from Glyphs to UFO + designspace.\n\nKeyword arguments:\nfont -- The GSFont object to transform into UFOs. We expect this GSFont\n object to have been pre-processed with\n ``glyphsLib.builder.prefl...
0
{'name': 'FilesystemConnection._get_containers@cloud_browser/cloud/fs.py', 'description': 'Return available containers.', 'signature': 'def _get_containers(self):'}</s>{'name': 'FilesystemObject@cloud_browser/cloud/fs.py', 'description': 'Filesystem object wrapper.', 'base_classes': ['base.CloudObject'], 'methods': [{'...
0
{'name': 'Fragment.from_config@config/filewrite.py', 'description': 'Produce a sequence of Fragments from the result of parse.parse_config().\n\n:param parsed_config: the result of parsing a configuration file\n:param bindir_name: the directory in which to place the binaries\n:param srcdir_name: the directory to search...
1
{'name': 'make_tokenizer_module@sqlitefts/fts3.py', 'description': 'tokenizer module', 'signature': 'def make_tokenizer_module(tokenizer):'}</s>{'name': 'register_tokenizer@sqlitefts/fts3.py', 'description': 'register tokenizer module with SQLite connection.', 'code': 'def register_tokenizer(conn, name, tokenizer_modul...
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