text
string
label
int64
{'name': 'set_key_value@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'Send key value to device', 'signature': 'def set_key_value(sniffer, payload):'}</s>{'name': 'listToString@tools/ble_sniffer/extcap/SnifferAPI/Devices.py', 'description': 'DOCSTRING', 'code': 'def listToString(list):\n str = ""\n ...
0
{'name': 'opcode_map_c@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'CR |funct4 | cr0711 | cr0206 | op |\nCI |funct3 | cop1212 | cr0711 | cop0206 | op |\nCSS |funct3 | cop0712 | cr0206 | op |\nCIW |funct3 | cop0512 | cr0204s | op |\nCL |funct3 | cop1012 | cs0709s | cop0506 | cr0204s | op |\nCS ...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQCMDI_CMDSCOPE_GENERATED = 2
0
{'name': 'plot_xyc@project_sample/2019-2ProjectSamples_Code/11조-수강과목을 통한 전공 예측 프로그램/joy.py', 'description': 'plots training input data x and its class label y as well as the the linear \ndecision boundary and the value W[-1] or w in the first subplot if clf is given.\nIn the second subplot, it displays the traning resu...
0
{'name': 'HostRecordV6.ipv6addrs@infoblox_client/objects.py', 'description': ':meta private:', 'signature': 'def ipv6addrs(self):'}</s>{'name': 'CiscoiseEndpoint@infoblox_client/objects.py', 'description': "CiscoiseEndpoint: Cisco ISE Endpoint object.\nCorresponds to WAPI object 'ciscoise:endpoint'\n\nThe object contai...
0
{'name': '_TestAWSIoTCoreDeviceLifecycleBase.test_device_accept_and_reject_or_dismiss@backend-tests/tests/test_aws_iotcore.py', 'description': 'Test how accepted-rejected and accepted-dismissed Mender flow affects AWS IoT Core devices.', 'signature': 'def test_device_accept_and_reject_or_dismiss('}</s>URL_LIMITS_MAX_DE...
0
{'name': 'User.get_full_name@tests/SampleApps/python/django-realworld-example-app/conduit/apps/authentication/models.py', 'description': "This method is required by Django for things like handling emails.\nTypically, this would be the user's first and last name. Since we do\nnot store the user's real name, we return th...
1
{'name': 'Preventive.get_advisory@core/Defense.py', 'description': 'callable method - return bulletins and advisories data ', 'signature': 'def get_advisory(self):'}</s>{'name': 'create_json@common/utils.py', 'description': 'create and move JSON file to the export repository', 'code': 'def create_json(response, file):\...
0
{'name': 'Simplifier.using_params@src/api/python/z3/z3.py', 'description': 'Return a simplifier that uses the given configuration options', 'signature': 'def using_params(self, *args, **keys):'}</s>{'name': 'is_eq@src/api/python/z3/z3.py', 'description': "Return `True` if `a` is a Z3 equality expression.\n\n>>> x, y = ...
0
{'name': 'show_workflow@director/commands/workflows.py', 'description': 'Display details of a workflow', 'signature': 'def show_workflow(ctx, name):'}</s>{'name': 'cancel_workflow@director/commands/workflows.py', 'description': 'Cancel a workflow', 'code': 'def cancel_workflow(ctx, id):\n """Cancel a workflow"""\n ...
0
{'name': 'TestMommyCreatesAssociatedModels.test_create_many_to_many_with_through_option@tests/test_mommy.py', 'description': 'This does not works', 'signature': 'def test_create_many_to_many_with_through_option(self):'}</s>{'name': 'prepare_recipe@model_mommy/mommy.py', 'description': 'DOCSTRING', 'code': 'def prepare_...
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': 'Chromatogram.peaks@pymzml/spec.py', 'description': 'Return the list of peaks of the spectrum as tuples (time, intensity).\n\nReturns:\n peaks (list): list of time, intensity tuples\n\nExample:\n\n>>> import pymzml\n>>> run = pymzml.run.Reader(\n... spectra.mzMl.gz,\n... MS_precisions = {\n... ...
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': 'TransformerDecoderEmbedding@fairseq/model_parallel/models/pipeline_parallel...
0
{'name': 'Win32Serial._reconfigurePort@stino/pyarduino/base/pyserial/serialwin32.py', 'description': 'Set communication parameters on opened port.', 'signature': 'def _reconfigurePort(self):'}</s>DTR_CONTROL_ENABLE = 1
0
{'name': 'test_docker_push_target_ref@tests/integration/test_docker_push.py', 'description': 'Test that shipwright push includes the target ref of every image.\nOtherwise --pull-cache will not work.', 'signature': 'def test_docker_push_target_ref(tmpdir, docker_client, registry):'}</s>{'name': 'highlight@shipwright/_li...
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': '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 => ...
1
{'name': 'compute_prediction@chapter5/logistic_regression_from_scratch.py', 'description': 'Compute the prediction y_hat based on current weights', 'signature': 'def compute_prediction(X, weights):'}</s>{'name': 'train_logistic_regression_sgd@chapter5/logistic_regression_from_scratch.py', 'description': 'Train a logist...
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': 'experimental_feature@gef.py', 'description': 'Decorator to add a warning when a feature is experimental.', '...
0
{'name': 'prettyArray@boxx/ylimg/ylimgTool.py', 'description': 'return str of pretty discrib for array, include nan inf (shape type max min) ', 'signature': 'def prettyArray(array):'}</s>sysi = SystemInfo()
0
{'name': '_SimpleDecoder@python/google/protobuf/internal/decoder.py', 'description': "Return a constructor for a decoder for fields of a particular type.\n\nArgs:\n wire_type: The field's wire type.\n decode_value: A function which decodes an individual value, e.g.\n _DecodeVarint()", 'signature': 'def _Si...
0
{'name': 'azero@pf/rule.py', 'description': "Return True if all numbers in 'seq' are 0s.", 'signature': 'def azero(seq):'}</s>PF_ADDR_NOROUTE = 1
0
{'name': 'request@src/workflow/web.py', 'description': "Initiate an HTTP(S) request. Returns :class:`Response` object.\n\n:param method: 'GET' or 'POST'\n:type method: unicode\n:param url: URL to open\n:type url: unicode\n:param params: mapping of URL parameters\n:type params: dict\n:param data: mapping of form data ``...
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...
0
{'name': 'learn_continuous_tasks@agents/bdq/deepq/procedure_continuous_tasks.py', 'description': "Train a branching deepq model to solve continuous control tasks via discretization.\nCurrent assumptions in the implementation: \n- for solving continuous control domains via discretization (can be adjusted to be compatibl...
0
{'name': 'circulation_configuration@pymultimatic/api/urls.py', 'description': 'Url to handle :class:`~pymultimatic.model.component.Circulation`\nconfiguration.', 'signature': 'def circulation_configuration(**kwargs: Any) -> str:'}</s>_CIRCULATION_TIMEPROGRAM = _CIRCULATION_CONFIGURATION + "/timeprogram"
0
{'name': 'run@utils/data_preparation_rdf_type.py', 'description': ' Main script which calls and does everything.\n:return: nothing', 'signature': 'def run():'}</s>{'name': 'relations_lookup@utils/data_preparation_rdf_type.py', 'description': ":param core_chain: corechain\n:return: converts core chain surface for...
0
{'name': 'Scheduler.__init__@spider/core/scheduler.py', 'description': '@summary: 调度器\n---------\n@param table_folder: 爬虫request及item存放reis中的文件夹\n@param parser_count: 线程数,默认为配置文件中的线程数\n@param begin_callback: 爬虫开始回调函数\n@param end_callback: 爬虫结束回调函数\n@param delete_tabs: 爬虫启动时删除的表,类型: 元组/bool/string。 支持正则\n@param process_...
0
{'name': 'AioConnection.__init__@aioprocessing/connection.py', 'description': 'Initialize the AioConnection.\n\nobj - a multiprocessing.Connection object.', 'signature': 'def __init__(self, obj):'}</s>__all__ = ["AioConnection"]
0
{'name': 'NodeRedSwitch.is_on@custom_components/nodered/switch.py', 'description': 'Return the state of the switch.', 'signature': 'def is_on(self) -> bool:'}</s>EVENT_TRIGGER_NODE = "automation_triggered"
0
{'name': 'Tag.decode@bs4/element.py', 'description': "Returns a Unicode representation of this tag and its contents.\n\n:param eventual_encoding: The tag is destined to be\n encoded into this encoding. This method is _not_\n responsible for performing that encoding. This information\n is passed in so that it can ...
0
{'name': 'process_log@tools/warn/warn_common.py', 'description': 'Function that handles processing of a log.\n\nThis is isolated into its own function (rather than just taking place in main)\nso that it can be used by both warn.py and the borg job process_gs_logs.py, to\navoid duplication of code.\nNote that if the arg...
0
{'name': 'test_get_gtts@tests/unit/test_connect.py', 'description': 'Test all gtts fetch.', 'signature': 'def test_get_gtts(kiteconnect):'}</s>{'name': 'test_orders@tests/unit/test_connect.py', 'description': 'Test orders.', 'code': 'def test_orders(kiteconnect):\n """Test orders."""\n responses.add(\n res...
0
{'name': 'skosify@skosify/skosify.py', 'description': 'Convert, extend, and check SKOS vocabulary.', 'signature': 'def skosify(*sources, **config):'}</s>{'name': 'localname@skosify/rdftools/access.py', 'description': 'Determine the presumable local name (after namespace) of an URI.', 'code': 'def localname(uri):\n "...
0
{'name': 'refine_detections_graph@Mask_RCNN/mrcnn/model.py', 'description': 'Refine classified proposals and filter overlaps and return final\ndetections.\n\nInputs:\n rois: [N, (y1, x1, y2, x2)] in normalized coordinates\n probs: [N, num_classes]. Class probabilities.\n deltas: [N, num_classes, (dy, dx, log(d...
0
{'name': 'CheckLanguage@ament_cpplint/ament_cpplint/cpplint.py', 'description': "Checks rules from the 'C++ language rules' section of cppguide.html.\n\nSome of these rules are hard to test (function overloading, using\nuint32 inappropriately), but we do the best we can.\n\nArgs:\n filename: The name of the current fi...
0
{'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...
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._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': 'get_root@versioneer.py', 'description': 'Get the project root directory.\n\nWe require that all commands are run from the project root, i.e. the\ndirectory that contains setup.py, setup.cfg, and versioneer.py .', 'signature': 'def get_root():'}</s>{'name': 'versions_from_file@versioneer.py', 'description': 'T...
0
{'name': 'PrePostChange.get_change_raw_sql@operations.py', 'description': "Generates PrePost-adjusted values for PercentChange computation.\n\nThis function generates subqueries like\nWITH PrePostRaw AS (SELECT\n split_by,\n stratified_by,\n condition_column,\n child_metric,\n covariate\nFROM T\nGROUP BY split_by,...
0
{'name': 'CreateDatatypes@src/api/python/z3/z3.py', 'description': "Create mutually recursive Z3 datatypes using 1 or more Datatype helper objects.\n\nIn the following example we define a Tree-List using two mutually recursive datatypes.\n\n>>> TreeList = Datatype('TreeList')\n>>> Tree = Datatype('Tree')\n>>> # Tre...
0
{'name': 'Product.copy_default_variation@cartridge/shop/models.py', 'description': 'Copies the price and image fields from the default variation\nwhen the product is updated via the change view.', 'signature': 'def copy_default_variation(self):'}</s>{'name': 'BaseProduct@cartridge/shop/models.py', 'description': "Exist...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIAMO_STATS = 773
0
{'name': 'ToggleCommand.open_list@todo/commands/toggle.py', 'description': 'Opens the interactive menu to toggle the items', 'signature': 'def open_list(self, data, name):'}</s>{'name': 'ToggleCommand@todo/commands/toggle.py', 'description': 'DOCSTRING', 'base_classes': ['Command'], 'methods': [{'name': 'ToggleCommand....
1
{'name': 'mach_o_change@python/virtualenv/virtualenv.py', 'description': "Replace a given name (what) in any LC_LOAD_DYLIB command found in\nthe given binary with a new name (value), provided it's shorter.", 'signature': 'def mach_o_change(path, what, value):'}</s>FAT_MAGIC = 3405691582
1
{'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': 'ewma@stock_pandas/commands/over_bought_or_sold.py', 'description': 'Exponentially weighted moving average\nhttps://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average\n\nwith\n- init value as `50.0`\n- alpha as `1 / period`', 'signature': 'def ewma('}</s>arg_init = (50., init_to_float)
0
{'name': 'test_cloze@tests/test_cloze.py', 'description': 'Test Cloze model', 'signature': 'def test_cloze(write_to_test_apkg=False):'}</s>CSS = ".card { font-family: arial; font-size: 20px; text-align: center; color: black; background-color: white; } .cloze { font-weight: bold; color: blue; } .nightMode .cloze...
0
{'name': 'GroupFLT.subtract_median_filter@grizli/multifit.py', 'description': 'Remove a median filter calculated along the dispersion axis.\n\nParameters\n----------\nfilter_size : int\n Size of the median filter.\n\nfilter_central : int\n Mask the central `filter_central` pixels of the filter.\n\nrevert : bool\n...
0
{'name': 'perm_argmin@app/ops.py', 'description': "This Op finds permutation that gives smallest sum, in a batched manner.\n\nArgs:\n s_x: tensor\n axes: 2-tuple of int, tensor shape on the two axes must be the same\n perm_size: size of permutation, infer from tensor shape by default\n name: string\n _ca...
1
{'name': 'ObjectTracker._get_objects@pyFileFixity/lib/profilers/visual/pympler/tracker.py', 'description': 'Get all currently existing objects.\n\nXXX - ToDo: This method is a copy&paste from muppy.get_objects, but\nsome modifications are applied. Specifically, it allows to ignore\nobjects (which includes the current f...
0
{'name': 'ProcessFile@tools/cpplint.py', 'description': 'Does google-lint on a single file.\n\nArgs:\n filename: The name of the file to parse.\n\n vlevel: The level of errors to report. Every error of confidence\n >= verbose_level will be reported. 0 is a good default.\n\n extra_check_functions: An array of addi...
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...
1
{'name': 'CheckForNonConstReference@llvm-12.0.0-project/compiler-rt/lib/sanitizer_common/scripts/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 cl...
0
{'name': 'safe_run2@amptk/process_illumina_folder.py', 'description': 'Call run(), catch exceptions.', 'signature': 'def safe_run2(*args, **kwargs):'}</s>{'name': 'checkRversion@amptk/amptklib.py', 'description': 'DOCSTRING', 'code': "def checkRversion():\n #need to have R version > 3.2\n cmd = ['Rscript', '--van...
0
{'name': 'TestMessage_BruteForce.test_Mandatory2@tests/python/runtime/messaging/test_brute_force.py', 'description': 'Ensures messages are correct on 2nd step', 'signature': 'def test_Mandatory2(self): '}</s>{'name': 'AssertEvenOutputOnly@tests/python/runtime/messaging/test_brute_force.py', 'description': 'DOCSTRING', ...
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': 'ConsoleWriter.console_writer_before_each_scenario@radish/extensions/formatters/gherkin.py', 'description': 'Writes the scenario header to the console\n\n:param Scenario scenario: the scenario to write to the console', 'signature': 'def console_writer_before_each_scenario(self, scenario):'}</s>{'name': 'consol...
0
{'name': 'simple_search@MurrCard/views.py', 'description': 'Filter murrs by search query and pass queryser to murr_list view ', 'signature': 'def simple_search(request):'}</s>User = get_user_model()
0
{'name': 'create_autospec@Contents/Libraries/Shared/mock.py', 'description': "Create a mock object using another object as a spec. Attributes on the\nmock will use the corresponding attribute on the `spec` object as their\nspec.\n\nFunctions or methods being mocked will have their arguments checked\nto check that they ...
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': 'opcode_map_c@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'CR |funct4 | cr0711 | cr0206 | op |\nCI |funct3 | cop1212 | cr0711 | cop0206 | op |\nCSS |funct3 | cop0712 | cr0206 | op |\nCIW |funct3 | cop0512 | cr0204s | op |\nCL |funct3 | cop1012 | cs0709s | cop0506 | cr0204s | op |\nCS ...
0
{'name': 'View._repr_mimebundle_@src/higlass/api.py', 'description': '"Displays the view in an IPython environment.', 'signature': 'def _repr_mimebundle_(self, include=None, exclude=None):'}</s>{'name': 'combine@src/higlass/api.py', 'description': 'A utility to create a CombinedTrack from two other tracks.\n\nParameter...
0
{'name': 'mat2d.set_row_strlabs@src/python_scripts/afnipy/lib_mat2d_base.py', 'description': 'input a list of strings; must match number of mat rows', 'signature': 'def set_row_strlabs(self, L):'}</s>{'name': 'get_default_polort@src/python_scripts/afnipy/afni_util.py', 'description': 'compute a default run polort, as d...
0
{'name': 'write_numeric@nbtlib/tag.py', 'description': 'Write a numeric value to a file-like object.', 'signature': 'def write_numeric(fmt, value, fileobj, byteorder="big"):'}</s>{'name': 'ByteArray@nbtlib/tag.py', 'description': 'Nbt tag representing an array of signed bytes.', 'base_classes': ['Array'], 'methods': []...
0
{'name': 'apply_along_axis@venv/Lib/site-packages/numpy/ma/extras.py', 'description': '(This docstring should be overwritten)', 'signature': 'def apply_along_axis(func1d, axis, arr, *args, **kwargs):'}</s>{'name': 'MaskedArray@venv/Lib/site-packages/numpy/ma/core.py', 'description': "An array class with possibly masked...
0
{'name': 'PatchUserDetailsParameters.replace@app/modules/users/parameters.py', 'description': 'Some fields require extra permissions to be changed.\n\nChanging `is_active` and `is_regular_user` properties, current user\nmust be a supervisor of the changing user, and `current_password` of\nthe current user should be pro...
1
{'name': 'Runtime.__init__@robopianist/viewer/runtime.py', 'description': 'Instance initializer.\n\nArgs:\n environment: An instance of dm_control.rl.control.Environment.\n policy: Either a callable that accepts a `TimeStep` and returns a numpy\n array of actions conforming to `environment.action_spec()`, or None,...
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': 'main@databricks-adx-integration/src/code/functions/adxingestp2/__app__/dataingest/__init__.py', 'description': 'Main function, triggered by Azure Storage Queue, parsed queue content and call ingest_to_ADX\n:param msg: func.QueueMessage\n:return: None', 'signature': 'def main(msg: func.QueueMessage) -> None:'}...
1
{'name': 'ReplaceByFeeTest.test_new_unconfirmed_inputs@qa/rpc-tests/replace-by-fee.py', 'description': 'Replacements that add new unconfirmed inputs are rejected', 'signature': 'def test_new_unconfirmed_inputs(self):'}</s>OP_MIN = CScriptOp(0xa3)
0
{'name': '_der_to_sig@py/u2f/u2f.py', 'description': 'Convert from DER to raw signature', 'signature': 'def _der_to_sig(der: bytes) -> Tuple[int, bytes]:'}</s>{'name': 'AuthenticationResponse@py/u2f/u2f.py', 'description': 'Reponse to an authentication request', 'base_classes': [], 'methods': [{'name': 'AuthenticationR...
0
{'name': 'add_sharpening@ldm/modules/image_degradation/bsrgan_light.py', 'description': 'USM sharpening. borrowed from real-ESRGAN\nInput image: I; Blurry image: B.\n1. K = I + weight * (I - B)\n2. Mask = 1 if abs(I - B) > threshold, else: 0\n3. Blur mask:\n4. Out = Mask * K + (1 - Mask) * I\nArgs:\n img (Numpy arra...
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': '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': 'RMLAttribute.get@src/z3c/rml/attr.py', 'description': 'See zope.schema.interfaces.IField', 'signature': 'def get(self):'}</s>ALIGN_CHOICES = { 'left': reportlab.lib.enums.TA_LEFT, 'right': reportlab.lib.enums.TA_RIGHT, 'center': reportlab.lib.enums.TA_CENTER, 'centre': reportlab.lib.enums.TA_C...
0
{'name': 'get_versions@versioneer.py', 'description': "Get the project version from whatever source is available.\n\nReturns dict with two keys: 'version' and 'full'.", 'signature': 'def get_versions(verbose=False):'}</s>OLD_SNIPPET = " from ._version import get_versions __version__ = get_versions()['version'] del get_...
0
{'name': 'send_messages@examples/socket_example.py', 'description': 'Send messages (client side)\n:param server_address: (str)', 'signature': 'def send_messages(server_address):'}</s>{'name': 'write_i8@robust_serial/robust_serial.py', 'description': ':param f: file handler or serial file\n:param value: (int8_t)', 'code...
1
{'name': 'Struct.field@python/taichi/lang/struct.py', 'description': 'Creates a :class:`~taichi.StructField` with each element\nhas this struct as its type.\n\nArgs:\n members (dict): a dict, each item is like `name: type`.\n methods (dict): a dict of methods that should be included with\n the field. Each...
0
{'name': 'SensorHandler.start_arm_timer@custom_components/alarmo/sensors.py', 'description': 'start timer for automatical arming', 'signature': 'def start_arm_timer(self, entity):'}</s>PANEL_FILENAME = "dist/alarm-panel.js"
0
{'name': 'send_datapoints_to_stackdriver@alertlib/stackdriver.py', 'description': 'A low-level function used by send_to_stackdriver.', 'signature': 'def send_datapoints_to_stackdriver(timeseries_data,'}</s>{'name': 'maybe_from_utf8@alertlib/base.py', 'description': 'Convert utf-8 input to unicode, leaving all other inp...
0
{'name': 'update_all@pkgs/applications/version-management/gitlab/update.py', 'description': 'Update all gitlab components to the latest stable release', 'signature': 'def update_all(ctx, rev: str):'}</s>logger = logging.getLogger(__name__)
0
{'name': 'get@plugin.video.realizerx/resources/lib/modules/cache.py', 'description': ':param function: Function to be executed\n:param duration: Duration of validity of cache in hours\n:param args: Optional arguments for the provided function', 'signature': 'def get(function, duration, *args):'}</s>metacacheFile = os.p...
0
{'name': 'run@src/back/kite/bottle.py', 'description': 'Start a server instance. This method blocks until the server terminates.\n\n:param app: WSGI application or target string supported by\n :func:`load_app`. (default: :func:`default_app`)\n:param server: Server adapter to use. See :data:`server_names` keys\n ...
0
{'name': 'python_2_unicode_compatible@docs/3rd-party-py3k-compat-code/django_utils_encoding.py', 'description': 'A decorator that defines __unicode__ and __str__ methods under Python 2.\nUnder Python 3 it does nothing.\n\nTo support Python 2 and 3 with a single code base, define a __str__ method\nreturning text and app...
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': 'APIConnection.__init__@qingcloud/iaas/connection.py', 'description': '@param qy_access_key_id - the access key id\n@param qy_secret_access_key - the secret access key\n@param zone - the zone id to access\n@param host - the host to make the connection to\n@param port - the port to use when connect to host\n@pa...
0
{'name': 'MacroParser.parseArgs@main/toolkit/src2xml/source/macroparser.py', 'description': "Parse arguments.\n\nThe buffer is expected to be formatted like '(a, b, c)' where the first\ncharacter is the open paren.", 'signature': 'def parseArgs (self, buffer):'}</s>{'name': 'MacroParser@main/toolkit/src2xml/source/macr...
1
{'name': 'load_key_pubkey@src/M2Crypto/EVP.py', 'description': 'Load an M2Crypto.EVP.PKey from a public key as a file.\n\n:param file: Name of file containing the key in PEM format.\n\n:param callback: A Python callable object that is invoked\n to acquire a passphrase with which to protect the\n ...
0
{'name': '_EpanetRule.add_action_on_false@wntr/epanet/io.py', 'description': 'Add an "else" action from an IfThenElseControl', 'signature': "def add_action_on_false(self, action, prefix=' ELSE'):"}</s>{'name': 'Pipe@wntr/network/elements.py', 'description': 'Pipe class, inherited from Link.\n\n.. rubric:: Constructor\n...
0
{'name': 'WebSocket.close@vertx-web/src/test/sockjs-protocol/websocket/_core.py', 'description': 'Close Websocket object\n\nstatus: status code to send. see STATUS_XXX.\n\nreason: the reason to close. This must be string.\n\ntimeout: timeout until receive a close frame.\n If None, it will wait forever until receive ...
0
{'name': 'LocalRepositoryWatcher._handle_move_pair@onedrive_client/od_watcher.py', 'description': ':param [[inotify_simple.Event, inotify_simple.flags], [inotify_simple.Event, inotify_simple.flags]] move_pair:', 'signature': 'def _handle_move_pair(self, move_pair):'}</s>{'name': 'DeleteRemoteItemTask@onedrive_client/od...
0
{'name': '_NamespaceInfo.CheckEnd@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'Check end of namespace comments.', 'signature': 'def CheckEnd(self, filename, clean_lines, linenum, error):'}</s>{'name': 'IsInitializerList@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'Check if current line is inside...
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': 'eran_resnet_dense@tf_verify/eranlayers.py', 'description': "Adds a specified number of dense layers to the graph. Each layer maps to the same number of neurons as inputs has. If inputs doesn't have a fitting shape it will be reshaped.\nAdditionally there will be an add connection. The information in inputs wi...
0
{'name': 'BL3Profile.get_sdus@bl3save/bl3profile.py', 'description': 'Returns a dict containing the SDU type and the number purchased. The SDU\ntype key will be a constant by default, or an English label if `eng` is `True`', 'signature': 'def get_sdus(self, eng=False):'}</s>profile_emotes_defaults = set([ '/Game/P...
0
{'name': 'BaseCtx.__init__@persia/ctx.py', 'description': 'Arguments:\n threadpool_worker_size (int): rpc threadpool worker size.\n device_id (int, optional): the CUDA device to use for this process.', 'signature': 'def __init__('}</s>_logger = get_default_logger()
1
{'name': 'test_repair_by_hamming@pyFileFixity/tests/test_repair_ecc.py', 'description': 'recc: tamper ecc file and repair by hamming distance ', 'signature': 'def test_repair_by_hamming():'}</s>{'name': 'find_next_entry@pyFileFixity/tests/aux_tests.py', 'description': 'Find the next position of a marker in a file', 'co...
1