text
string
label
int64
{'name': 'lineno@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Returns current line number within a string, counting newlines as line separators.\nThe first line is number 1.\n\nNote: the default parsing behavior is to expand tabs in the input string\nbefore starting the parsing process. See ...
0
{'name': 'make_events@lib/event.py', 'description': 'Controls event creation and writing for each gene', 'signature': 'def make_events(events, my_genome, input_name, output_name, edge_len, logger, b_type, th):'}</s>{'name': 'ALTL@lib/event.py', 'description': "Alternative on 'left' side of the gene", 'base_classes': ['...
0
{'name': 'list_datasets@muspy/datasets/wrapper.py', 'description': 'Return all supported dataset classes as a list.\n\nReturns\n-------\nA list of all supported dataset classes.', 'signature': 'def list_datasets():'}</s>{'name': 'LakhMIDIDataset@muspy/datasets/lmd.py', 'description': 'Lakh MIDI Dataset.', 'base_classes...
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>MQXF_CALLBACK = 21
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': 'ArvadosBackend.GetRunLog@wes_service/arvados_wes.py', 'description': 'Get the log for a particular workflow run.', 'signature': 'def GetRunLog(self, run_id: str) -> dict[str, str]:'}</s>{'name': 'get_api@wes_service/arvados_wes.py', 'description': 'Retrieve an Arvados API object.', 'code': 'def get_api(authto...
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': 'up_to_climate@oggm/tests/test_workflow.py', 'description': 'Run the tasks you want.', 'signature': 'def up_to_climate(reset=False, use_mp=None):'}</s>{'name': 'clean_merged_flowlines@oggm/core/flowline.py', 'description': 'Order and cut merged flowlines to size.\n\nAfter matching flowlines were found and merg...
0
{'name': 'datetime.tzname@src/future/backports/datetime.py', 'description': 'Return the timezone name.\n\nNote that the name is 100% informational -- there\'s no requirement that\nit mean anything in particular. For example, "GMT", "UTC", "-500",\n"-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.'...
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': 'Device._buildReadRegisterPacket@src/LabJackPython.py', 'description': 'self._buildReadRegisterPacket(addr, numReg)\n\nBuilds a raw modbus "Read Register" packet to be written to a device\n\nReturns a tuple:\n(<Packet as a list>, <number of bytes to read>)', 'signature': 'def _buildReadRegisterPacket(self, add...
0
{'name': 'get_list_of_tutorial_files@python/infra/GeneratePyChasteTutorials.py', 'description': "Scans the PYCHASTE_SRC_DIR directory recursively to find all files with a name\nmatching 'TestPy*Tutorial.py', and returns a list of their resolved paths.\n\n:return: List of resolved Path objects of tutorial source files."...
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': 'Architecture.__get_register@gef.py', 'description': "Return a register's value.", 'signature': 'def __get_register(self, regname: str) -> int:'}</s>{'name': 'lookup_address@gef.py', 'description': 'Try to find the address in the process address space.\nReturn an Address object, with validity flag set based on...
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': 'QueueManager.backout@code/pymqi/__init__.py', 'description': 'Backout any outstanding gets/puts in the current unit of work.\n ', 'signature': 'def backout(self):'}</s>MQDCC_TARGET_ENC_NATIVE = 512
0
{'name': 'create_yoy_chart@src/fitly/pages/performance.py', 'description': ':param metric: Allowed values from strava summary table [hrss, tss, trimp, distance, elapsed_time, high_intensity_seconds, mod_intensity_seconds, low_intensity_seconds]\n:return:', 'signature': "def create_yoy_chart(metric, sport='all'):"}</s>{...
0
{'name': 'CheckJsonFormat.check_format@tests/validate_json_format.py', 'description': 'Initiate the check.', 'signature': 'def check_format(self, file_name):'}</s>{'name': 'CheckJsonFormat@tests/validate_json_format.py', 'description': 'Test JSON for format irregularities.\n\n - Trailing spaces.\n - Inconsistent ...
1
{'name': 'TestUnusualSocketConditions.test_handle_recv_eagain_download@test/test_sync_connection.py', 'description': 'When a socket is marked readable during response body download but\nreturns EAGAIN when read from, the code simply retries the read.', 'signature': 'def test_handle_recv_eagain_download(self):'}</s>RAIS...
0
{'name': 'validateURL@src/feedvalidator/__init__.py', 'description': 'validate RSS from URL, returns events list, or (events, rawdata) tuple', 'signature': 'def validateURL(url, firstOccurrenceOnly=1, wantRawData=0):'}</s>{'name': 'NeedDescriptionBeforeContent@src/feedvalidator/logging.py', 'description': 'DOCSTRING', ...
0
{'name': 'BL3Save.import_protobuf@bl3save/bl3save.py', 'description': 'Given raw protobuf data, load it into ourselves so\nthat we can work with it. This also sets up a few\nconvenience vars for our later use', 'signature': 'def import_protobuf(self, data):'}</s>{'name': 'BL3Item@bl3save/bl3save.py', 'description': "P...
1
{'name': 'load_mnist@Chapter13/ch13.py', 'description': 'Load MNIST data from `path`', 'signature': "def load_mnist(path, kind='train'):"}</s>correct_preds = np.sum(y_test == y_test_pred, axis=0)
0
{'name': 'Rules.load@oslo_policy/policy.py', 'description': 'Allow loading of YAML/JSON rule data.\n\n.. versionadded:: 1.5.0', 'signature': 'def load(cls, data, default_rule=None):'}</s>{'name': 'list_opts@oslo_policy/opts.py', 'description': "Return a list of oslo.config options available in the library.\n\nThe retur...
0
{'name': 'PageAdmin.get_form@pages/admin/__init__.py', 'description': 'Get a :class:`Page <pages.admin.forms.PageForm>` for the\n:class:`Page <pages.models.Page>` and modify its fields depending on\nthe request.', 'signature': 'def get_form(self, request, obj=None, **kwargs):'}</s>registry = []
0
{'name': 'from_ftp@icesat2_toolkit/utilities.py', 'description': "Download a file from a ftp host\n\nParameters\n----------\nHOST: str or list\n remote ftp host path\nusername: str or NoneType\n ftp username\npassword: str or NoneType\n ftp password\ntimeout: int or NoneType, default None\n timeout in secon...
0
{'name': 'Empty@src/api/python/z3/z3.py', 'description': 'Create the empty sequence of the given sort\n>>> e = Empty(StringSort())\n>>> e2 = StringVal("")\n>>> print(e.eq(e2))\nTrue\n>>> e3 = Empty(SeqSort(IntSort()))\n>>> print(e3)\nEmpty(Seq(Int))\n>>> e4 = Empty(ReSort(SeqSort(IntSort())))\n>>> print(e4)\nEmpty(ReSo...
0
{'name': 'differential@phi/physics/advect.py', 'description': 'Computes the differential advection term using the differentiation Scheme indicated by `order`, ´implicit´ and `upwind`.\n\nFor a velocity field u, the advection term as it appears on the right-hand-side of a PDE is -u·∇u, including the negative sign.\n\nFo...
0
{'name': 'PFAddr._from_string@pf/rule.py', 'description': 'Initalize a new instance from a string.', 'signature': 'def _from_string(self, a):'}</s>IPTOS_THROUGHPUT = 8
0
{'name': 'construct_fields_and_filters@graphene_sqlalchemy/types.py', 'description': 'Construct all the fields for a SQLAlchemyObjectType.\nThe main steps are:\n - Gather all the relevant attributes from the SQLAlchemy model\n - Gather all the ORM fields defined on the type\n - Merge in overrides and build up all th...
0
{'name': 'create_sampler@rulematrix/surrogate/sample.py', 'description': 'We treat the sampling of categorical values as a multivariate categorical distribution.\nWe sample categorical values first, then sample the continuous and integer variables\nusing the conditional distribution w.r.t. to the categorical vector.\n\...
0
{'name': 'list_dfu_devices@tools/pydfu.py', 'description': 'Prints a lits of devices detected in DFU mode.', 'signature': 'def list_dfu_devices(*args, **kwargs):'}</s>__DFU_STATE_DFU_MANIFEST_SYNC = 6
0
{'name': 'rot_by_axis@python/taichi/math/mathimpl.py', 'description': 'Returns the 4x4 matrix representation of a 3d rotation with given axis `axis` and angle `ang`.\n\nArgs:\n axis (vec3): rotation axis\n ang (float): angle in radians unit\n\nReturns:\n :class:`~taichi.math.mat4`: rotation matrix', 'signature...
0
{'name': 'TileMatrixSet.tiles@morecantile/models.py', 'description': 'Get the tiles overlapped by a geographic bounding box\n\nOriginal code from https://github.com/mapbox/mercantile/blob/master/mercantile/__init__.py#L424\n\nParameters\n----------\nwest, south, east, north : sequence of float\n Bounding values in d...
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': 'scan_setup_py@versioneer.py', 'description': "Validate the contents of setup.py against Versioneer's expectations.", 'signature': 'def scan_setup_py() -> int:'}</s>{'name': 'versions_from_parentdir@versioneer.py', 'description': 'Try to determine the version from the parent directory name.\n\nSource tarballs ...
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': 'shelve@ring/func/sync.py', 'description': "Python :mod:`shelve` based cache.\n\n:param shelve.Shelf shelf: A shelf storage. See :mod:`shelve` to create\n a shelf.\n\n >>> shelf = shelve.open('shelve')\n >>> @ring.shelve(shelf, ...)\n ... ...\n\n:see: :mod:`shelve` for the backend.\n:see: :func...
0
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>PFR_TFLAG_CONST = 2
0
{'name': 'parseState@Deprecated/mrtf_test.py', 'description': 'Take the raw string returned by the Arduino ("buffer") for the current state,\nand parse it into the state dictionary defined by the state_vars ', 'signature': 'def parseState(buffer,state):'}</s>eloff = 35.5
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': 'BIDSLayout.add_derivatives@src/bids/layout/layout.py', 'description': 'Add BIDS-Derivatives datasets to tracking.\n\nParameters\n----------\npath : str or list\n One or more paths to BIDS-Derivatives datasets.\n Each path can point to either a derivatives/ directory\n containing one or more pipeline ...
0
{'name': 'construct_model@src/experiments.py', 'description': 'Construct NN graph.', 'signature': 'def construct_model(args):'}</s>{'name': 'ComplEx@src/emb/fact_network.py', 'description': 'DOCSTRING', 'base_classes': ['nn.Module'], 'methods': [{'name': 'ComplEx.__init__@src/emb/fact_network.py', 'description': 'DOCST...
1
{'name': 'addresses@n26/cli.py', 'description': 'Show account addresses ', 'signature': 'def addresses():'}</s>{'name': 'cards@n26/cli.py', 'description': 'Shows a list of cards ', 'code': 'def cards():\n """ Shows a list of cards """\n cards_data = API_CLIENT.get_cards()\n if JSON_OUTPUT:\n _print_json...
0
{'name': 'prepare_structure@kinoml/modeling/OEModeling.py', 'description': 'Prepare an OpenEye molecule holding a protein ligand complex for docking.\n\nParameters\n----------\nstructure: oechem.OEMolBase\n An OpenEye molecule holding a structure with protein and optionally a ligand.\nhas_ligand: bool\n If struct...
0
{'name': 'ConfTests.test_custom_config_class@tests/test_conf.py', 'description': 'Tests MICROSOFT_AUTH_CONFIG_CLASS set to another class', 'signature': 'def test_custom_config_class(self):'}</s>no_default_test_conf = SimpleTestNoDefaultConfig()
0
{'name': 'check_input_settings@sounddevice.py', 'description': 'Check if given input device settings are supported.\n\nAll parameters are optional, `default` settings are used for any\nunspecified parameters. If the settings are supported, the function\ndoes nothing; if not, an exception is raised.\n\nParameters\n----...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQSECSW_PROCESS = 1
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': 'FormatStringSearchCommand@gef.py', 'description': 'Exploitable format-string helper: this command will set u...
0
{'name': 'RenderCar._resize@car/render_car.py', 'description': 'Parameters\n----------\npil_img: pil image\n input image\nmin_scale: float\n minimum ratio of resize\nmax_scale: float\n maximum ratio of resize\nr1: float\n resize ratio of height to width\n\nReturns\n----------\nresize: float\n resize ratio\nresize_...
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>MQZAO_CONTROL = 2097152
0
{'name': 'relocate_BZ_grid_address@python/spglib/spglib.py', 'description': 'Grid addresses are relocated to be inside first Brillouin zone.\n\nNumber of ir-grid-points inside Brillouin zone is returned.\nIt is assumed that the following arrays have the shapes of\n\nNote that the shape of grid_address is (prod(mesh), 3...
0
{'name': 'process_client_hello@core/packet_processor.py', 'description': 'Extracts the SNI field from the ClientHello packet.', 'signature': 'def process_client_hello(pkt):'}</s>{'name': 'get_reg_domain@core/friendly_organizer.py', 'description': 'DOCSTRING', 'code': "def get_reg_domain(full_domain):\n\n if not full...
0
{'name': 'BuildTest.parse_buildspecs@buildtest/cli/build.py', 'description': 'Parse all buildspecs by passing buildspec file to :class:`buildtest.buildsystem.parser.BuildspecParser` class.\nIf buildspec fails validation we skip the buildspec and print all skipped buildspecs.\nIf buildspec passes validation we get all b...
0
{'name': 'Metric.compute_on_sql_sql_mode@metrics.py', 'description': 'Executes the query from to_sql() and process the result.', 'signature': 'def compute_on_sql_sql_mode(self, table, split_by=None, execute=None):'}</s>{'name': 'add_suffix@sql.py', 'description': 'Adds an int suffix to alias.', 'code': 'def add_suffix(...
0
{'name': 'GetCompute@daisy_workflows/linux_common/utils/common.py', 'description': 'Get google compute api cli object.\n\nArgs:\n discovery: object, from googleapiclient.\n credentials: object, from google.auth.\n\nReturns:\n compute: object, the google compute api object.', 'signature': 'def GetCompute(discovery, c...
0
{'name': 'geticmptypebynumber@pf/_utils.py', 'description': 'Return the ICMP type as a string.', 'signature': 'def geticmptypebynumber(type, af):'}</s>PFR_OP_XPASS = PFR_OP_ADDR_MAX
0
{'name': 'Client.sql@pymarketstore/client.py', 'description': 'execute SQL to MarketStore server\n:param statements: List of SQL statements in a string\n:return: QueryReply object', 'signature': 'def sql(self, statements: Union[str, List[str]]) -> QueryReply:'}</s>{'name': 'Params@pymarketstore/params.py', 'description...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQMCEV_REPAIR_ALERT_OFF = 30
0
{'name': 'GaussianDiffusion.ddim_reverse_sample@point_e/diffusion/gaussian_diffusion.py', 'description': 'Sample x_{t+1} from the model using DDIM reverse ODE.', 'signature': 'def ddim_reverse_sample('}</s>{'name': '_WrappedModel@point_e/diffusion/gaussian_diffusion.py', 'description': 'DOCSTRING', 'base_classes': [], ...
0
{'name': 'Options.get_raw@pcapng/structs.py', 'description': 'Get raw value for the given option', 'signature': 'def get_raw(self, name):'}</s>{'name': 'unpack_ipv4@pcapng/utils.py', 'description': 'DOCSTRING', 'code': 'def unpack_ipv4(data):\n return socket.inet_ntoa(data)'}
0
{'name': 'dpll@aimacode/logic.py', 'description': 'See if the clauses are true in a partial model.', 'signature': 'def dpll(clauses, symbols, model):'}</s>{'name': 'conjuncts@aimacode/logic.py', 'description': 'Return a list of the conjuncts in the sentence s.\n>>> conjuncts(A & B)\n[A, B]\n>>> conjuncts(A | B)\n[(A | ...
0
{'name': 'SpeechTextPreTrainCompoundCriterion.reduce_metrics@examples/speech_text_joint_to_text/criterions/multi_modality_compound.py', 'description': 'Aggregate logging outputs from data parallel training.', 'signature': 'def reduce_metrics(logging_outputs) -> None:'}</s>{'name': 'load_align_dict@fairseq/utils.py', 'd...
0
{'name': 'entrypoint@da/api.py', 'description': 'Entry point for running DistAlgo as the main module.\n\n ', 'signature': 'def entrypoint():'}</s>GlobalConfig = dict()
0
{'name': 'upload_image@Chapter03/Capabilities/app.py', 'description': 'processes file upload and saves file to storage service', 'signature': 'def upload_image():'}</s>storage_service = storage_service.StorageService(storage_location)
1
{'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': 'HarosAnalyseRunner._load_history@haros/haros.py', 'description': "Load analyis history from database file\nand add it to self.database.history, append the previously\n'current' analysis report to history.", 'signature': 'def _load_history(self):'}</s>{'name': 'HarosDatabase@haros/data.py', 'description': 'DOC...
1
{'name': 'TestFillingCustomFields.test_uses_generator_function_for_custom_foreignkey@tests/test_filling_fields.py', 'description': 'Should use the generator function passed as a value for the add method', 'signature': 'def test_uses_generator_function_for_custom_foreignkey(self, custom_cfg):'}</s>{'name': 'Mommy@model_...
0
{'name': 'env_perform_reproduce_update@self_organising_systems/biomakerca/env_logic.py', 'description': "Perform reproduce operations in the environment.\n\nThis is the function that should be used for high level step_env design.\n\nArguments:\n key: a jax random number generator.\n env: the input environment to be m...
0
{'name': 'getSetting@ide/auth.py', 'description': "Grab some setting from the datastore. If it's not a string, it should be stored as a JSON representation.\nSet returnObject to True to force a JSON load. Otherwise use the type of the default to trigger JSON conversion", 'signature': 'def getSetting(name, default=None,...
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': 'ProtocolTest.test_complete_packet@test/test_protocol.py', 'description': 'Protocol should assemble incoming lines into complete packet.', 'signature': 'def test_complete_packet(self):'}</s>INSTANTANEOUS_REACTIVE_POWER_L3_POSITIVE = "^\d-\d:63\.7\.0.+?\r\n"
0
{'name': 'CScriptOp.encode_op_n@qa/rpc-tests/test_framework/script.py', 'description': 'Encode a small integer op, returning an opcode', 'signature': 'def encode_op_n(n):'}</s>OP_NOT = CScriptOp(0x91)
0
{'name': 'ParseNolintSuppressions@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'Updates the global list of line error-suppressions.\n\nParses any NOLINT comments on the current line, updating the global\nerror_suppressions store. Reports an error if the NOLINT comment\nwas malformed.\n\nArgs:\n filename: s...
0
{'name': 'parse_errors@scripts/tests/libytest/parsers/error_parsers.py', 'description': 'Parses the provided StringIO text through the parsers\nspecified by \'error_types\'. The entire stdout buffer will be\nparsed, and then reset to its original position.\n\nFor a list of valid `error_type` strings, check this module\...
0
{'name': 'RDBComputeDomain.__init__@py3/SciServer/SciQuery.py', 'description': 'Creates an instance of an RDBComputeDomain, which defines a domain or environment with databases that users.\nare able to query.\n\n:param rdb_compute_domain: Parameter that identifies the domain. Could be either its name (string),\n ID ...
1
{'name': 'LiquidityHintMgr.badness_penalty@lndmanage/lib/liquidityhints.py', 'description': 'The badness penalty indicates how close a node was to the failing hop of\npayment routes in units of a fee rate. This fee rate can accumulate and may\nlead to complete ignoring of the node, which is why we let the badness penal...
0
{'name': 'read_pw_output@mcu/qe/qe_io.py', 'description': 'Read the output generated by pw.x', 'signature': 'def read_pw_output(filename): '}</s>tot_kdos_polarized = "# ik E (eV) dosup(E) dosdw(E) pdosup(E) pdosdw(E)"
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQXACT_INTERNAL = 2
0
{'name': 'f32_to_u32@tools/audio/extraction/util.py', 'description': 'Convert float to IEEE-754 binary rep', 'signature': 'def f32_to_u32(f):'}</s>{'name': 'list_is_in_order@tools/audio/extraction/util.py', 'description': 'DOCSTRING', 'code': 'def list_is_in_order(l):\n return all(l[i] <= l[i + 1] for i in range(len...
0
{'name': 'GroveI2cColorSensorV2.gain@grove/grove_i2c_color_sensor_v2.py', 'description': 'The gain control. Should be 1, 4, 16, or 60.\n ', 'signature': 'def gain(self):'}</s>_PERS = 12
0
{'name': 'xarray_to_cdf@cdflib/xarray/xarray_to_cdf.py', 'description': 'This function converts XArray Dataset objects into CDF files.\n\nParameters:\n xarray_dataset (xarray.Dataset): The XArray Dataset object that you\'d like to convert into a CDF file\n file_name (str): The path to the place the newly created...
1
{'name': 'MsxReactionSystem.add_variable@wntr/msx/model.py', 'description': "Add a variable object to the registry.\n\nThe appropriate group is determined by querying the object's\nvar_type attribute.\n\nParameters\n----------\nvariable\n Variable to add.\n\nRaises\n------\nTypeError\n If `variable` is not an Msx...
1
{'name': 'mock_internal_type@python/doc/source/conf.py', 'description': 'Fixes an autodoc error when mocking internal types as arguments.', 'signature': 'def mock_internal_type(qualname: str) -> mock.Mock:'}</s>pygments_style = "sphinx"
0
{'name': 'Assignment.__init__@lib/rule_engine/ast.py', 'description': ':param str name: The symbol name that the assignment is defining.\n:param value: The value of the assignment.\n:param value_type: The data type of the assignment.\n:type value_type: :py:class:`~.DataType`', 'signature': 'def __init__(self, name, *, ...
0
{'name': 'extract_from_coords@grizli/aws/sky_wfss.py', 'description': ' ', 'signature': "def extract_from_coords(ra=189.0706488, dec=62.2089502, grisms=['F356W-GRISMR','F410M-GRISMR','F444W-GRISMR'], size=48, grp=None, clean=False, get_cutout=True, cutout_filter='F444W-CLEAR', prefix='gdn-grism', verbose=True, mb_kw...
0
{'name': 'run_gradcheck@tests/test_elastic.py', 'description': "Run PyTorch's gradcheck to test the gradient.", 'signature': 'def run_gradcheck(mlamb,'}</s>{'name': 'test_forward_cpu_gpu_match@tests/test_elastic.py', 'description': 'Test propagation on CPU and GPU produce the same result.', 'code': 'def test_forward_cp...
0
{'name': 'select_hfr_db@disdat/hyperframe.py', 'description': 'Create an HFrame Record from a row in our DB.\nWhere uuid= && owner= && human_name= && processing_name=\n\nArgs:\n engine_g:\n uuid (str): add to where clause\n owner (str): add to where clause\n human_name (str): add to where clause\n proce...
0
{'name': 'get_hconfig_driver@hier_config/constructors.py', 'description': 'Create base options on an OS level.', 'signature': 'def get_hconfig_driver(platform: Platform) -> HConfigDriverBase: # noqa: PLR0911'}</s>{'name': '_load_from_string_lines@hier_config/constructors.py', 'description': 'DOCSTRING', 'code': 'def _...
0
{'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_w_pens@src/SparseSC/cross_validation.py', 'description': "a wrapper which calls score_train_test() for...
1
{'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>MQCHT_CLUSRCVR = py23long(8)
0
{'name': '_makeTags@scripts/pdns/lib/python2.7/site-packages/pkg_resources/_vendor/pyparsing.py', 'description': 'Internal helper to construct opening and closing tag expressions, given a tag name', 'signature': 'def _makeTags(tagStr, xml):'}</s>cStyleComment = Combine(Regex(r"/\*(?:[^*]|\*(?!/))*") + '*/').setName("C ...
0
{'name': 'MetricFormatter.__call__@confidence_interval_display.py', 'description': "Format elements in x - the metric column, for meaningful display.\n\nArgs:\n x: The metric column of result df. Each cell is a a tuple of (value,\n ratio, ci_lower, ci_upper).\n div: A function to wrap thing into a div.\n span: A...
0
{'name': 'ProductReadServiceStub.__init__@grpc-mate-python/grpc_mate/product_search_engine_pb2_grpc.py', 'description': 'Constructor.\n\nArgs:\n channel: A grpc.Channel.', 'signature': 'def __init__(self, channel):'}</s>_CALCULATEPRODUCTSCORERESPONSE = _descriptor.Descriptor( name='CalculateProductScoreResponse', ...
0
{'name': 'setup_T2_amplitudes@doc/LectureNotes/_build/jupyter_execute/cc.py', 'description': 'returns the t2 amplitudes and t2 channels\nparam sp_basis: a sp_basis\nparam NN: neutron number\nparam st_degen: 2 for the moment, spin-isospin degeneracy\nreturn: hh_channels, pp_channels, p_rel_hh, p_rel_pp, t2amp\n t...
0
{'name': 'SendMessage._setup_workflow@py/send_message.py', 'description': 'TODO: Document', 'signature': 'def _setup_workflow(self) -> None:'}</s>ERR_NONE = 0
0
{'name': 'MaxAndSkipEnv.reset@atari_zoo/atari_wrappers.py', 'description': 'Clear past frame buffer and init. to first obs. from inner env.', 'signature': 'def reset(self):'}</s>{'name': 'ScaledFloatFrame@atari_zoo/atari_wrappers.py', 'description': 'DOCSTRING', 'base_classes': ['gym.ObservationWrapper'], 'methods': [{...
0
{'name': 'follow_device@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'Follow the selected device', 'signature': 'def follow_device(sniffer, device):'}</s>{'name': 'initLog@tools/ble_sniffer/extcap/SnifferAPI/Sniffer.py', 'description': 'DOCSTRING', 'code': 'def initLog():\n Logger.initLogger()\n\n ...
0
{'name': 'Parser.p_expression_bytes@lib/rule_engine/parser/__init__.py', 'description': 'object : BYTES', 'signature': 'def p_expression_bytes(self, p):'}</s>{'name': 'BitwiseExpression@lib/rule_engine/ast.py', 'description': 'A class for representing bitwise arithmetic expressions from the grammar text such as XOR and...
0
{'name': 'define_G@SIM-CycleGAN/models/networks.py', 'description': "Create a generator\n\nParameters:\n input_nc (int) -- the number of channels in input images\n output_nc (int) -- the number of channels in output images\n ngf (int) -- the number of filters in the last conv layer\n netG (str) -- the archi...
0