text
string
label
int64
{'name': 'buildmodule@venv/Lib/site-packages/numpy/f2py/rules.py', 'description': 'Return', 'signature': 'def buildmodule(m, um):'}</s>cformat_map = {'double': '%g', 'float': '%g', 'long_double': '%Lg', 'char': '%d', 'signed_char': '%d', 'unsign...
0
{'name': 'BaseQuerySet.paginate@flask_mongoengine/documents.py', 'description': 'Paginate the QuerySet with a certain number of docs per page\nand return docs for a given page.', 'signature': 'def paginate(self, page, per_page):'}</s>{'name': 'EmbeddedDocument@flask_mongoengine/documents.py', 'description': 'Abstract E...
0
{'name': 'TestWithCollection.test_card_isEmpty__with_2_fields__succeeds@tests/test_genanki.py', 'description': 'Tests for a bug in an early version of genanki where notes with <4 fields were not supported.', 'signature': 'def test_card_isEmpty__with_2_fields__succeeds(self):'}</s>CUSTOM_LATEX_POST = "% here is a great ...
0
{'name': 'Numeral.__rgt__@src/api/python/z3/z3num.py', 'description': 'Return True if `other > self`.\n\n>>> 2 > Numeral(Sqrt(2))\nTrue', 'signature': 'def __rgt__(self, other):'}</s>{'name': 'is_bv_value@src/api/python/z3/z3.py', 'description': "Return `True` if `a` is a Z3 bit-vector numeral value.\n\n>>> b = BitVec(...
0
{'name': 'YoutubeDL._load_cookies@script.module.youtube.dl/lib/youtube_dl/YoutubeDL.py', 'description': 'Loads cookies from a `Cookie` header\n\nThis tries to work around the security vulnerability of passing cookies to every domain.\n\n@param data The Cookie header as a string to load the cookies from\n@param ...
0
{'name': 'test_https_h2_tls_context_configuration_rsa@test/integration/test_integration_basics.py', 'description': 'Test that specifying RSA compatible tls cipher suites works with the h2 pool.', 'signature': 'def test_https_h2_tls_context_configuration_rsa(https_test_server_fixture):'}</s>{'name': 'http_test_server_fi...
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>MQMODE_QUIESCE = 1
0
{'name': '_get_parsed_spec@tests/conftest.py', 'description': 'Returns an OpenAPI object loaded from a file in the tests/fixtures directory\n\n:param filename: The filename to load. Must exist in tests/fixtures and\n include extension.\n:type filename: str', 'signature': 'def _get_parsed_spec(filename)...
1
{'name': 'PFRule._to_string@pf/rule.py', 'description': 'Return the string representation of the rule.', 'signature': 'def _to_string(self):'}</s>PF_MATCH = 12
1
{'name': 'PFGid._str_to_num@pf/rule.py', 'description': 'Convert a string to a numeric group ID.', 'signature': 'def _str_to_num(self, s):'}</s>PFTM_FRAG = 14
0
{'name': 'term_to_binary@src/api/python/erlang.py', 'description': 'Encode Python types into Erlang terms in binary data', 'signature': 'def term_to_binary(term, compressed=False):'}</s>{'name': '_string_to_binary@src/api/python/erlang.py', 'description': 'DOCSTRING', 'code': "def _string_to_binary(term):\n length =...
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': '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': 'FormatCode@tools/yapf/yapf/yapflib/yapf_api.py', 'description': 'Format a string of Python code.\n\nThis provides an alternative entry point to YAPF.\n\nArguments:\n unformatted_source: (unicode) The code to format.\n filename: (unicode) The name of the file being reformatted.\n remaining arguments: see co...
1
{'name': 'TestManager.test_custom_manager2@modeltranslation/tests/tests.py', 'description': 'Test if user-defined queryset is still working', 'signature': 'def test_custom_manager2(self):'}</s>{'name': 'UniqueNullableTranslationOptions@modeltranslation/tests/translation.py', 'description': 'DOCSTRING', 'base_classes': ...
0
{'name': 'AbstractCodeEditorView._format@airflow_code_editor/code_editor_view.py', 'description': 'Sort imports and format code', 'signature': 'def _format(cls):'}</s>{'name': 'AbstractCodeEditorView@airflow_code_editor/code_editor_view.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'methods': [{'name': '...
1
{'name': 'conv_2d_layer@nets/layers.py', 'description': 'kernel_shape = [H, W, input_channels, num_filters]', 'signature': 'def conv_2d_layer(input_tensor, kernel_shape, nonlinearity, padding, name, strides=(1,1,1,1), with_biases=True,'}</s>{'name': 'add_l2_loss@nets/layers.py', 'description': 'DOCSTRING', 'code': "def...
1
{'name': 'check_undefined@tests/utils/text.py', 'description': 'check whether the global var names are not defined ', 'signature': 'def check_undefined(var_names):'}</s>{'name': 'print_output@tests/utils/text.py', 'description': 'DOCSTRING', 'code': 'def print_output(output):\n if output:\n print("Captured ou...
0
{'name': 'watch_stacks@static/Cost/300_Optimization_Data_Collection/Test/test-from-scratch.py', 'description': 'watch stacks while they are IN_PROGRESS and/or until they are deleted', 'signature': 'def watch_stacks(stack_names = []):'}</s>{'name': 'teardown@static/Cost/300_Optimization_Data_Collection/Test/test-from-sc...
0
{'name': 'initialize_jwst_image@grizli/jwst_utils.py', 'description': 'Make copies of some header keywords to make the headers look like\nand HST instrument\n\n1) Apply gain correction [*NOT PERFORMED*]\n2) Clip DQ bits\n3) Copy header keywords\n4) Apply exposure-level 1/f correction\n5) Apply flat field if necessary\n...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQCACF_TO_PROCESS_NAME = 3004
0
{'name': 'main_config_show@signac/__main__.py', 'description': 'Handle config show subcommand.', 'signature': 'def main_config_show(args):'}</s>{'name': 'main_statepoint@signac/__main__.py', 'description': 'Handle statepoint subcommand.', 'code': 'def main_statepoint(args):\n """Handle statepoint subcommand."""\n ...
0
{'name': 'ConsistentHashNew.getNode@examples/huya/tars/__util.py', 'description': '返回这个字符串应该对应的node,这里先求出字符串的hash值,然后找到第一个小于等于的虚拟节点,然后返回node\n如果hash值大于所有的节点,那么用第一个虚拟节点\n:param : hashNum or keyStr\n:return:', 'signature': 'def getNode(self, key):'}</s>{'name': 'configParse@examples/huya/tars/__util.py', 'description': '...
0
{'name': 'Grid.from_dataset@uxarray/grid/grid.py', 'description': 'Constructs a ``Grid`` object from a dataset.\n\nParameters\n----------\ndataset : xr.Dataset or path-like\n ``xarray.Dataset`` containing unstructured grid coordinates and connectivity variables or a directory\n containing ASCII files represents...
0
{'name': 'FeatureTrack.get_subtrack@src/pygenomeviz/track/feature.py', 'description': 'Get subtrack by name\n\nIf no subtrack found, raise error.\n\nParameters\n----------\nname : str | None, optional\n Target subtrack name. If None, first subtrack is returned.\n\nReturns\n-------\nsubtrack : FeatureSubTrack\n Ta...
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': 'Cache.search@shingetsu/cache.py', 'description': 'Search node from network and get records.', 'signature': 'def search(self, searchlist=None, myself4=None, myself6=None):'}</s>friend_net = _get_value(_extconf, 'Gateway', 'friend_net', '::1, 127.0.0.1')
0
{'name': 'WSCTask.load_dataset@examples/roberta/wsc/wsc_task.py', 'description': 'Load a given dataset split.\n\nArgs:\n split (str): name of the split (e.g., train, valid, test)', 'signature': 'def load_dataset('}</s>{'name': 'strip_pad@fairseq/utils.py', 'description': 'DOCSTRING', 'code': 'def strip_pad(tensor, p...
0
{'name': 'DebugCmd.complete_keywords@DebugLibrary/debugcmd.py', 'description': 'Complete keywords command.', 'signature': 'def complete_keywords(self, text, line, begin_idx, end_idx):'}</s>{'name': 'get_keywords@DebugLibrary/robotkeyword.py', 'description': 'Get all keywords of libraries.', 'code': 'def get_keywords():...
0
{'name': 'voc_ap@utils/utils_map.py', 'description': '--- Official matlab code VOC2012---\nmrec=[0 ; rec ; 1];\nmpre=[0 ; prec ; 0];\nfor i=numel(mpre)-1:-1:1\n mpre(i)=max(mpre(i),mpre(i+1));\nend\ni=find(mrec(2:end)~=mrec(1:end-1))+1;\nap=sum((mrec(i)-mrec(i-1)).*mpre(i));', 'signature': 'def voc_ap(rec, prec)...
0
{'name': 'QueueManager._is_connected@code/pymqi/__init__.py', 'description': "Try pinging the queue manager in order to see whether the application\nis connected to it. Note that the method is merely a convienece wrapper\naround MQCMD_PING_Q_MGR, in particular, there's still possibility that\nthe app will disconnect be...
0
{'name': 'QueueManager.connect_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': 'test_kitti_3d_kalman_boxes@lib/rpn_util.py', 'description': 'Test the KITTI framework for object detection in 3D', 'signature': "def test_kitti_3d_kalman_boxes(dataset_test, net, rpn_conf, bbox_measure_val, p2s, p2_invs, scales, results_path, test_path, dataset_type='validation', fast=False, report_stats=Fals...
0
{'name': 'Model.__setattr__@wntr/sim/aml/aml.py', 'description': 'Override built in __setattr__ so that params, vars, etc. get put in the appropriate dictionary\n\nParameters\n----------\nname: str\n name of the attribute\nval: object\n value of the attribute\n\nReturns\n-------\nNone', 'signature': 'def __setatt...
1
{'name': 'worker_status@gedgo/views/dashboard.py', 'description': 'XHR view for whether the celery worker is up', 'signature': 'def worker_status(request):'}</s>USE_I18N = True
0
{'name': 'routing@Chapter10/helper_functions.py', 'description': 'This function performs the routing algorithm as mentioned in the paper\n:parameter u: Input tensor with [batch_size, num_caps_input_layer=1152, 1, caps_dim_input_layer=8, 1] shape.\n NCAPS_CAPS1: num capsules in the PrimaryCaps layer l\n ...
0
{'name': 'GelfHttpHandler.__init__@pygelf/handlers.py', 'description': "Logging handler that transforms each record into GELF (graylog extended log format) and sends it over HTTP.\n\n:param host: GELF HTTP input host\n:param port: GELF HTTP input port\n:param compress: compress message before sending it to the server o...
0
{'name': 'init@python/taichi/lang/misc.py', 'description': 'Initializes the Taichi runtime.\n\nThis should always be the entry point of your Taichi program. Most\nimportantly, it sets the backend used throughout the program.\n\nArgs:\n arch: Backend to use. This is usually :const:`~taichi.lang.cpu` or :const:`~taich...
0
{'name': 'ImportNode.modules@redbaron/nodes.py', 'description': 'return a list of string of modules imported', 'signature': 'def modules(self):'}</s>{'name': 'NameAsNameNode@redbaron/nodes.py', 'description': 'DOCSTRING', 'base_classes': ['Node'], 'methods': [{'name': 'NameAsNameNode.__setattr__@redbaron/nodes.py', 'de...
0
{'name': 'FiniteDomainSort@src/api/python/z3/z3.py', 'description': 'Create a named finite domain sort of a given size sz', 'signature': 'def FiniteDomainSort(name, sz, ctx=None):'}</s>{'name': 'BV2Int@src/api/python/z3/z3.py', 'description': "Return the Z3 expression BV2Int(a).\n\n>>> b = BitVec('b', 3)\n>>> BV2Int(b)...
0
{'name': 'ParseArguments@tools/cpplint.py', 'description': 'Parses the command line arguments.\n\nThis may set the output format and verbosity level as side-effects.\n\nArgs:\n args: The command line arguments:\n\nReturns:\n The list of filenames to lint.', 'signature': 'def ParseArguments(args):'}</s>{'name': '_Quie...
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': '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': 'SendClient.send_message@uamqp/client.py', 'description': 'Send a single message or batched message.\n\n:param messages: A message to send. This can either be a single instance\n of `Message`, or multiple messages wrapped in an instance of `BatchMessage`.\n:type message: ~uamqp.message.Message\n:param close_on...
0
{'name': 'device_removed@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'A device is removed', 'signature': 'def device_removed(notification):'}</s>CTRL_CMD_DISABLE = 5
0
{'name': 'MobileNet@train/mobilenet_sipeed/mobilenet.py', 'description': "Instantiates the MobileNet architecture.\n\n# Arguments\n input_shape: optional shape tuple, only to be specified\n if `include_top` is False (otherwise the input shape\n has to be `(224, 224, 3)`\n (with `channels_last` d...
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': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQRC_NEGATIVE_OFFSET = 6118
0
{'name': 'aioredis1_hash@ring/func/asyncio.py', 'description': "Redis interface for :mod:`asyncio`.\n\nExpected client package is aioredis_.\n\nThis implements HASH commands in aioredis.\n\naioredis expect `Redis` client or dev package is installed on your\nmachine. If you are new to Memcached, check how to install it ...
0
{'name': 'RequestsMock.add_passthru@responses/__init__.py', 'description': "Register a URL prefix or regex to passthru any non-matching mock requests to.\n\nFor example, to allow any request to 'https://example.com', but require\nmocks for the remainder, you would add the prefix as so:\n\n>>> import responses\n>>> resp...
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': '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': 'LessParser.p_property_decl_arguments@lesscpy/lessc/parser.py', 'description': 'property_decl : prop_open less_arguments t_semicolon\n ', 'signature': 'def p_property_decl_arguments(self, p):'}</s>{'name': 'PrintErrorRegister@lesscpy/lessc/parser.py', 'description': 'Colored error output to st...
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': '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': 'EmbeddingCtx.get_embedding_size@persia/ctx.py', 'description': 'Get number of ids on all embedding servers.', 'signature': 'def get_embedding_size(self) -> List[int]:'}</s>{'name': 'EmbeddingCtx@persia/ctx.py', 'description': 'Provides the embedding-related functionality. :class:`EmbeddingCtx` can run offline...
1
{'name': 'on_download_logs@src/server/server.py', 'description': 'Download logs (as .zip file).', 'signature': 'def on_download_logs(data):'}</s>{'name': 'on_set_scan@src/server/server.py', 'description': 'DOCSTRING', 'code': "def on_set_scan(data):\n global HEARTBEAT_DATA_RATE_FACTOR\n node_index = data['node']\...
0
{'name': 'Circuit.eval@discopy/quantum/circuit.py', 'description': "Evaluate a circuit on a backend, or simulate it with numpy.\n\nParameters\n----------\nothers : :class:`discopy.quantum.circuit.Circuit`\n Other circuits to process in batch.\nbackend : pytket.Backend, optional\n Backend on which to run the circu...
0
{'name': 'XRasterBase.write_grid_mapping@rioxarray/rioxarray.py', 'description': 'Write the CF grid_mapping attribute to the encoding.\n\nParameters\n----------\ngrid_mapping_name: str, optional\n Name of the grid_mapping coordinate.\ninplace: bool, optional\n If True, it will write to the existing dataset. Defau...
0
{'name': 'takePano@source/pi-timolo.py', 'description': 'Take a series of overlapping images using pantilt at specified PANO_CAM_STOPS\nthen attempt to stitch the images into one panoramic image. Note this\nwill take time so depending on number of cpu cores and speed. The PANO_TIMER\nshould be set to avoid multiple sti...
0
{'name': 'ParseArguments@tools/cpplint.py', 'description': 'Parses the command line arguments.\n\nThis may set the output format and verbosity level as side-effects.\n\nArgs:\n args: The command line arguments:\n\nReturns:\n The list of filenames to lint.', 'signature': 'def ParseArguments(args):'}</s>_LEGACY_ERROR_C...
0
{'name': 'test_subclass@tests/test_collection_abc.py', 'description': 'Test that all appropriate collections are subclasses of Collection.', 'signature': 'def test_subclass(klass):'}</s>{'name': 'CountsView@collections_extended/bags.py', 'description': 'A view for the unique items and their counts in a bag.\n\n.. versi...
0
{'name': 'decode_and_plot_events1D@nelpy/plotting/decoding.py', 'description': "bst : BinnedSpikeTrainArray\ntc : TuningCurve1D\nraster : bool\nst : SpikeTrainArray, optional\nst_order : string, optional\n = ['track', 'first', 'random']\nevt_subset : list, optional\n List of integer indices. If the list is not so...
0
{'name': 'consecutive_nights@camping.py', 'description': 'Returns a list of dates from which you can start that have\nenough consecutive nights.\n\nIf there is one or more entries in this list, there is at least one\ndate range for this site that is available.', 'signature': 'def consecutive_nights(available, nights):'...
0
{'name': 'CheckStyle@scripts/cpplint.py', 'description': "Checks rules from the 'C++ style rules' section of cppguide.html.\n\nMost of these rules are hard to test (naming, comment style), but we\ndo what we can. In particular we check for 2-space indents, line lengths,\ntab usage, spaces inside code, etc.\n\nArgs:\n ...
0
{'name': '_skip_whitespace@fips-files/generators/sjson/__init__.py', 'description': 'skip whitespace. Returns the next character if a new position within the\nstream was found; returns None if the end of the stream was hit.', 'signature': 'def _skip_whitespace(stream):'}</s>{'name': '_encode@fips-files/generators/sjson...
0
{'name': 'common_main@tools/warn/warn_common.py', 'description': 'Shared main function for Google3 and non-Google3 versions of warn.py.', 'signature': 'def common_main(use_google3, create_launch_subprocs_fn, classify_warnings_fn,'}</s>{'name': 'get_project_names@tools/warn/warn_common.py', 'description': 'Get project_n...
1
{'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 ...
0
{'name': 'COCO.getCatIds@src/data/pycocotools/coco.py', 'description': 'filtering parameters. default skips that filter.\n:param catNms (str array) : get cats for given cat names\n:param supNms (str array) : get cats for given supercategory names\n:param catIds (int array) : get cats for given cat ids\n:return: ids ...
0
{'name': 'HttpCrawler._add_etag_to_report@PFERD/crawl/http_crawler.py', 'description': "Adds an entity tag for a given path to the report's custom values.", 'signature': 'def _add_etag_to_report(self, path: PurePath, etag: Optional[str]) -> None:'}</s>{'name': 'HttpCrawler@PFERD/crawl/http_crawler.py', 'description': '...
1
{'name': 'BaseImage.range_threshold@wand/image.py', 'description': "Applies soft & hard thresholding.\n\nFor a soft thresholding, parameters should be monotonically increasing:\n\n with Image(filename='text.png') as img:\n img.range_threshold(0.2, 0.4, 0.6, 0.8)\n\nFor a hard thresholding, parameters should b...
0
{'name': 'readState@MRT_FUNC_PY4_influxDB.py', 'description': 'Initialize the dictionary, unless a previous state is passed in', 'signature': 'def readState(ser,init=None):'}</s>REPORT_STATE = b'X'
0
{'name': 'CheckStyle@ament_cpplint/ament_cpplint/cpplint.py', 'description': "Checks rules from the 'C++ style rules' section of cppguide.html.\n\nMost of these rules are hard to test (naming, comment style), but we\ndo what we can. In particular we check for 2-space indents, line lengths,\ntab usage, spaces inside co...
0
{'name': 'takeVideo@source/pi-timolo.py', 'description': 'Take a short motion video if required', 'signature': 'def takeVideo(filename, duration, vidW=1280, vidH=720, fps=25):'}</s>daymode = False
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': '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': 'nestedExpr@SneakerBot 2019/venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/pyparsing.py', 'description': 'Helper method for defining nested lists enclosed in opening and\nclosing delimiters ("(" and ")" are the default).\n\nParameters:\n - opener - opening character for a nested list\n (de...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIA_ADOPTNEWMCA_TYPE = 103
0
{'name': '_AddMessageMethods@third_party/dawn/third_party/protobuf/python/google/protobuf/internal/python_message.py', 'description': 'Adds implementations of all Message methods to cls.', 'signature': 'def _AddMessageMethods(message_descriptor, cls):'}</s>{'name': 'ParseInteger@third_party/dawn/third_party/protobuf/py...
0
{'name': 'eval_one_epoch@sem_seg/train.py', 'description': 'ops: dict mapping from string to tf ops ', 'signature': 'def eval_one_epoch(sess, ops, test_writer):'}</s>data_batches = np.concatenate(data_batch_list, 0)
0
{'name': '_test_core@ci/on_push/test_stac_items.py', 'description': 'Core function testing all data\n\nArgs:\n url (str): Pattern of the satellite\n prod_dir (str): Product directory\n debug (bool): Debug option', 'signature': 'def _test_core('}</s>{'name': 'PlaProduct@eoreader/products/optical/pla_product.py'...
0
{'name': 'main._generate_dos@mcu/crystal/crystal.py', 'description': "Processing/collecting the DOS data before the plotting function\n\nTDOS dimensions: [spin , [E(eV), tdos(E)]]\n\nspin : spin of DOS.\nlm : string or a list of string, e.g. 'Ni:s' or ['Ni:s','C:s,px,pz']", 'signature': 'def _ge...
0
{'name': 'BallQuery_score.forward@pointnet2/utils/pointnet2_utils.py', 'description': 'Parameters\n----------\nradius : float\n radius of the balls\nnsample : int\n maximum number of features in the balls\nxyz : torch.Tensor\n (B, N, 3) xyz coordinates of the features\nnew_xyz : torch.Tensor\n (B, npoint, 3...
0
{'name': 'test_https_h1@test/integration/test_integration_basics.py', 'description': 'Test h1 over https.\n\nRuns the CLI configured to use HTTP/1 over https against our test server, and sanity\nchecks statistics from both client and server.', 'signature': 'def test_https_h1(https_test_server_fixture):'}</s>{'name': 't...
0
{'name': 'render_pep440@nfp/_version.py', 'description': 'Build up version string, with post-release "local version identifier".\n\nOur goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you\nget a tagged build and then dirty it, you\'ll get TAG+0.gHEX.dirty\n\nExceptions:\n1: no tags. git_describe was just HEX. 0+untagg...
0
{'name': 'Decoder.greedy_search@models/asr/transformer.py', 'description': 'Greedy search, decode 1-best utterance\nargs:\n encoder_padded_outputs: B x T x H\noutput:\n batch_ids_nbest_hyps: list of nbest in ids (size B)\n batch_strs_nbest_hyps: list of nbest in strings (size B)', 'signature': 'def greedy_sear...
0
{'name': 'process_assignments_and_deletions@da/compiler/incgen.py', 'description': 'Generate stub and hook for assignments and deletions.\n\nThis should be called after the query parameters have been accumulated.', 'signature': 'def process_assignments_and_deletions(state):'}</s>{'name': 'pyFunctionDef@da/compiler/pyge...
0
{'name': 'PFRule._to_string@pf/rule.py', 'description': 'Return the string representation of the rule.', 'signature': 'def _to_string(self):'}</s>ICMP6_ROUTER_RENUMBERING = 138
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>GEF_RC = pathlib.Path(os.getenv("GEF_RC", "")).absolute() if os.getenv("GEF_...
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': 'PerfectModelEnsemble.verify@src/climpred/classes.py', 'description': 'Verify initialized predictions against a configuration of its members.\n\n.. note::\n The configuration of the other ensemble members is based off of the\n ``comparison`` keyword argument.\n\nArgs:\n metric: Metric to apply for ver...
0
{'name': 'get_precision@pyrgg/functions.py', 'description': 'Return precision of input number.\n\n:param input_number: input number\n:type input_number: float\n:return: precision as int', 'signature': 'def get_precision(input_number):'}</s>{'name': '_update_using_menu@pyrgg/functions.py', 'description': 'Update result_...
0
{'name': 'CalculateTestLists@security/nss/external_tests/google_test/gtest/test/gtest_shuffle_test.py', 'description': 'Calculates the list of tests run under different flags.', 'signature': 'def CalculateTestLists():'}</s>COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_shuffle_test_')
0
{'name': 'spike_directionality_matrix@pyspike/spike_directionality.py', 'description': 'Computes the spike directionality matrix for the given spike trains.\n\n:param spike_trains: List of spike trains.\n:type spike_trains: List of :class:`pyspike.SpikeTrain`\n:param normalize: Normalize by the number of spikes (multip...
0
{'name': 'TestError.test_from_raw_error@test/test_response.py', 'description': 'Can identify an error type', 'signature': 'def test_from_raw_error(self):'}</s>{'name': 'ConnectionClosedException@nsq/exceptions.py', 'description': "Trying to use a closed connection as if it's alive", 'base_classes': ['NSQException'], 'm...
0
{'name': 'CustomMainWidget.runTheGame@src/gui/main_widget.py', 'description': 'Runs the game', 'signature': 'def runTheGame(self):'}</s>{'name': 'getConfigFolderName@src/util/util.py', 'description': 'DOCSTRING', 'code': 'def getConfigFolderName() -> str:\n if platform == "linux" or platform == "darwin":\n re...
0
{'name': 'KubeSpawner._options_from_form@kubespawner/spawner.py', 'description': 'Called by jupyterhub when processing a request to spawn a server, where\nthe user either have submitted a POST request via a form or submitted a\nGET request with query parameters.\n\nThis only constructs the user_options dict,\nit should...
0
{'name': '_ctypes.strides_as@venv/Lib/site-packages/numpy/core/_internal.py', 'description': 'Return the strides tuple as an array of some other\nc-types type. For example: ``self.strides_as(ctypes.c_longlong)``.', 'signature': 'def strides_as(self, obj):'}</s>{'name': '_add_trailing_padding@venv/Lib/site-packages/nump...
0
{'name': 'run@juniper_official/Chassis/netsvc.py', 'description': 'core of program. not called main() because iAgent sensor config uses\nSalt which requires run()', 'signature': 'def run():'}</s>{'name': 'verify_model@juniper_official/Chassis/netsvc.py', 'description': 'Determines whether model string is a supported mo...
1
{'name': 'GeneratedProtocolMessageType.__init__@third_party/dawn/third_party/protobuf/python/google/protobuf/internal/python_message.py', 'description': "Here we perform the majority of our work on the class.\nWe add enum getters, an __init__ method, implementations\nof all Message methods, and properties for all field...
0