text
string
label
int64
{'name': 'PFDivert._to_struct@pf/rule.py', 'description': 'Convert a PFDivert object to a divert structure.', 'signature': 'def _to_struct(self):'}</s>PF_LIMIT_PKTDELAY_PKTS = 5
0
{'name': 'DealsChecker.get_best_deal@scrapy_price_monitor/bin/monitor.py', 'description': 'Returns the item with the best overall price. self.price_threshold can be set to avoid\nconsidering minor price drops.', 'signature': 'def get_best_deal(self):'}</s>BOT_NAME = "price_monitor"
0
{'name': 'sniffPossibleFeed@src/feedvalidator/__init__.py', 'description': 'Use wild heuristics to detect something that might be intended as a feed.', 'signature': 'def sniffPossibleFeed(rawdata):'}</s>{'name': 'InvalidFloatUnit@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['InvalidValue'...
0
{'name': 'convert_date@plugin.video.realizerx/resources/lib/api/tvdbapi.py', 'description': 'Convert a thetvdb date string into a datetime.date object.', 'signature': 'def convert_date(date_string):'}</s>remote_background = setting('remote.background')
0
{'name': 'fix_stdout@flask_unsign/helpers.py', 'description': 'Decorator which ensures stdout is put back in place after run', 'signature': 'def fix_stdout(func):'}</s>{'name': 'info@flask_unsign/logger.py', 'description': 'DOCSTRING', 'code': "def info(message):\n write(f'[*] {message}')"}
0
{'name': 'AGraph.to_string@pygraphviz/agraph.py', 'description': 'Return a string representation of graph in dot format.\n\n`to_string()` uses "agwrite" to produce "dot" format w/o rendering.\nThe function `string_nop()` layouts with "nop" and renders to "dot".', 'signature': 'def to_string(self):'}</s>{'name': 'agidno...
0
{'name': 'HTTPConnectionPool._make_request@Retired Content/MimeCast/SumoLogic-Mimecast-Data-Collection/requests/packages/urllib3/connectionpool.py', 'description': 'Perform a request on a given urllib connection object taken from our\npool.\n\n:param conn:\n a connection from one of our connection pools\n\n:param ti...
0
{'name': 'get_gpu_tempfunc@server/info.py', 'description': 'Return GPU temperature as a character string', 'signature': 'def get_gpu_tempfunc():'}</s>{'name': 'get_swap_info@server/info.py', 'description': 'Return swap memory usage using psutil ', 'code': 'def get_swap_info():\n """ Return swap memory usage using ...
0
{'name': 'TestObjectsE2E.test_host_record_ea_inheritance@e2e_tests/test_objects.py', 'description': 'Checks if EA inheritance for record:host object\nworks as expected', 'signature': 'def test_host_record_ea_inheritance(self):'}</s>{'name': 'Awsrte53Taskgroup@infoblox_client/objects.py', 'description': "Awsrte53Taskgro...
0
{'name': 'excape@spider/utils/tools.py', 'description': '转译', 'signature': 'def excape(str):'}</s>{'name': 'get_ip@spider/utils/tools.py', 'description': 'DOCSTRING', 'code': 'def get_ip(domain):\n ip = socket.getaddrinfo(domain, "http")[0][4][0]\n return ip'}
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>{'name': 'render_git_describe_long@versioneer.py', 'description': "TAG-DISTANCE-gHEX[-dirty].\n\nLi...
0
{'name': 'get_versions@nfp/_version.py', 'description': 'Get version information or return default if unable to do so.', 'signature': 'def get_versions():'}</s>{'name': 'register_vcs_handler@nfp/_version.py', 'description': 'Create decorator to mark a method as the handler of a VCS.', 'code': 'def register_vcs_handler(...
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': 'get_global_filter@utils.py', 'description': 'Collects the filters that can be applied globa...
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.__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': 'BreakpointConditionsTestCase.breakpoint_conditions@tools/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py', 'description': "Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.", 'signature': 'def breakpoint_conditions(self, inlin...
0
{'name': 'write@code/html/generate_static_website.py', 'description': 'Writes a generated HTML page to a file, but checks with a HTML parser before.\n:param text:\n:param file:', 'signature': 'def write(text, path):'}</s>games_web_path = games_path + ['web.html']
0
{'name': 'FancyPage.draw_background@rst2pdf/createpdf.py', 'description': 'Draws a background and/or foreground image\non each page which uses the template.\n\nCalculates the image one time, and caches\nit for reuse on every page in the template.\n\nHow the background is drawn depends on the\n--fit-background-mode opti...
0
{'name': 'PVPCData.update_active_sensors@aiopvpc/pvpc_data.py', 'description': 'Update enabled API indicators to download.', 'signature': 'def update_active_sensors(self, data_id: str, enabled: bool):'}</s>REFERENCE_TZ = zoneinfo.ZoneInfo("Europe/Madrid")
0
{'name': 'TypeAndTypeListTestCase.test@tools/lldb/packages/Python/lldbsuite/test/python_api/type/TestTypeList.py', 'description': 'Exercise SBType and SBTypeList API.', 'signature': 'def test(self):'}</s>{'name': 'skip_if_library_missing@tools/lldb/packages/Python/lldbsuite/test/lldbutil.py', 'description': 'DOCSTRING'...
0
{'name': 'document_plugins_tokens_list@docs/source/conf.py', 'description': 'Generate the plugins list documentation page from application extraction.', 'signature': 'def document_plugins_tokens_list(list_path: Path, output_path: Path) -> None:'}</s>{'name': 'copy_code_files@docs/source/conf.py', 'description': 'Copy f...
0
{'name': 'GTestHelpTest.TestHelpFlag@Engine/lib/assimp/contrib/googletest/googletest/test/gtest_help_test.py', 'description': 'Verifies correct behavior when help flag is specified.\n\nThe right message must be printed and the tests must\nskipped when the given flag is specified.\n\nArgs:\n flag: A flag to pass to th...
1
{'name': 'test_eigen_return_references@bindings/python/ext/pybind11/tests/test_eigen_matrix.py', 'description': 'Tests various ways of returning references and non-referencing copies', 'signature': 'def test_eigen_return_references():'}</s>{'name': 'assign_both@bindings/python/ext/pybind11/tests/test_eigen_matrix.py', ...
1
{'name': 'PoolerEndLogits.forward@albert/albert_zh/modeling_utils.py', 'description': 'Args:\nOne of ``start_states``, ``start_positions`` should be not None.\nIf both are set, ``start_positions`` overrides ``start_states``.\n\n**start_states**: ``torch.LongTensor`` of shape identical to hidden_states\n hidden state...
0
{'name': 'textureAsGameTexture@ValveFileSystem/valve.py', 'description': 'returns a resolved game texture filepath given some sort of texture path', 'signature': 'def textureAsGameTexture(texturePath):'}</s>{'name': 'parseLine@ValveFileSystem/valve.py', 'description': 'Line parser that extracts key value pairs from a l...
0
{'name': 'LocalstackEndpointResolver.valid_regions@pytest_localstack/contrib/botocore.py', 'description': 'Return a list of regions we can resolve endpoints for.', 'signature': 'def valid_regions(self):'}</s>{'name': 'contribute_to_module@pytest_localstack/hookspecs.py', 'description': 'Hook to add additional functiona...
0
{'name': 'collect_oracle_results_at_res@mseg_semantic/scripts/collect_results.py', 'description': 'For all test datasets (except WildDash), aggregate the results of the corresponding\noracle models at a specific evaluation resolution (from resolution-specific .txt files in subfolders).\n\nArgs:\n resolution: either ...
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': 'loadPlugins@packstack/installer/run_setup.py', 'description': 'Load All plugins from ./plugins', 'signature': 'def loadPlugins():'}</s>{'name': '_handleGroupCondition@packstack/installer/run_setup.py', 'description': 'handle params group pre/post condition\nchecks if a group has a pre/post condition\nand vali...
0
{'name': 'aprint@art/functions.py', 'description': 'Print 1-line art.\n\n:param artname: art name\n:type artname : str\n:param number: number of repeats\n:type number: int\n:param space: space between arts\n:type space: int\n:return: None', 'signature': 'def aprint(artname, number=1, space=1):'}</s>{'name': 'lprint@art...
0
{'name': 'get_config_vars@scripts/pdns/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.py', 'description': "With no arguments, return a dictionary of all configuration\nvariables relevant for the current platform.\n\nOn Unix, this means every variable defined in Python's installed Makefile;\nOn Wind...
0
{'name': 'nim_handler@cogs/results/ctr_support.py', 'description': 'Parses 3ds nim error codes in the following ranges:\n005-2000 to 005-3023:\n - NIM got a result of its own. Took description and added by 52000.\n005-4200 to 005-4399:\n - NIM got an HTTP result. Took description and added by 54200, cutting out at 5439...
0
{'name': 'page_shrink_higher_coordinate_levels@ocrd_tesserocr/common.py', 'description': 'Project the coordinate hull of all PAGE-XML hierarchy levels above ``minlevel`` up to ``maxlevel``.\n\nStarting with the lowest hierarchy level chosen for processing,\njoin all segments into a convex hull for the next higher level...
1
{'name': '_conj_actions@tulip/synth.py', 'description': 'Conjunction of multiple action types.\n\nIncludes solver expression substitution.\nSee also `_conj_action`.', 'signature': 'def _conj_actions('}</s>{'name': 'mutex@tulip/synth.py', 'description': 'Mutual exclusion for all time.', 'code': 'def mutex(iterable) -> l...
0
{'name': 'DistModel.initialize@libs/PerceptualSimilarity/models/dist_model.py', 'description': "INPUTS\n model - ['net-lin'] for linearly calibrated network\n ['net'] for off-the-shelf network\n ['L2'] for L2 distance in Lab colorspace\n ['SSIM'] for ssim in RGB colorspace\n net -...
1
{'name': 'pspnet.load_pretrained_model@ptsemseg/models/pspnet.py', 'description': 'Load weights from caffemodel w/o caffe dependency\nand plug them in corresponding modules', 'signature': 'def load_pretrained_model(self, model_path):'}</s>{'name': 'pspnet@ptsemseg/models/pspnet.py', 'description': "Pyramid Scene Parsin...
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': 'TokenList.token_first@sqlparse/sql.py', 'description': 'Returns the first child token.\n\nIf *skip_ws* is ``True`` (the default), whitespace\ntokens are ignored.\n\nif *skip_cm* is ``True`` (default: ``False``), comments are\nignored too.', 'signature': 'def token_first(self, skip_ws=True, skip_cm=False):'}</...
1
{'name': 'main@emissionsapi/preprocess.py', 'description': 'Entrypoint for running this as a module or from the binary.\nTriggers the preprocessing of the data.', 'signature': 'def main():'}</s>{'name': 'File@emissionsapi/db.py', 'description': 'ORM object for the nc files.\n ', 'base_classes': ['Base'], 'methods': ...
0
{'name': 'MainFrame.update_textlist_from_xmat@src/python_scripts/afnipy/gui_xmat.py', 'description': 'given the X matrix and columns, fill screen data list', 'signature': 'def update_textlist_from_xmat(self):'}</s>{'name': 'argmax@src/python_scripts/afnipy/afni_util.py', 'description': 'DOCSTRING', 'code': 'def argmax(...
0
{'name': '_value_owner_pair@skein/kv.py', 'description': 'Build a ValueOwnerPair from a KeyValue object', 'signature': 'def _value_owner_pair(kv):'}</s>{'name': 'discard_range@skein/kv.py', 'description': 'A request to discard a range of keys.\n\nReturns either the number of keys discarded or a list of those keys,\ndep...
0
{'name': 'fpToFP@src/api/python/z3/z3.py', 'description': 'Create a Z3 floating-point conversion expression from other term sorts\nto floating-point.\n\nFrom a bit-vector term in IEEE 754-2008 format:\n>>> x = FPVal(1.0, Float32())\n>>> x_bv = fpToIEEEBV(x)\n>>> simplify(fpToFP(x_bv, Float32()))\n1\n\nFrom a floating-p...
0
{'name': 'test_novalidate_noerrors@cerberus/tests/test_validation.py', 'description': 'In v0.1.0 and below `self.errors` raised an exception if no\nvalidation had been performed yet.', 'signature': 'def test_novalidate_noerrors(validator):'}</s>{'name': 'test_type_error_aborts_validation@cerberus/tests/test_validation....
0
{'name': 'main@bin/train_model.py', 'description': 'Main block of code, which runs the training', 'signature': 'def main():'}</s>{'name': 'CNN@bff_positioning/models/cnn.py', 'description': 'Convolutional Neural Network class\n\n:param model_settings: a dictionary containing the model settings', 'base_classes': ['BaseM...
1
{'name': 'DECIMER_Predictor.__init__@DECIMER/Repack_model.py', 'description': 'Load the tokenizers, the maximum input and output length and the\nmodel.\n\nArgs:\n encoder (tf.keras.model): The encoder model\n tokenizer (tf.keras.tokenizer): Output tokenizer, defines which character is assigned to what token\n ...
0
{'name': 'initialize_ad_tracking_db@core/friendly_organizer.py', 'description': 'Initializes the AdTracker table with the default list of trackers. Ran only once at startup.', 'signature': 'def initialize_ad_tracking_db():'}</s>{'name': 'get_network_ip_range@core/networking.py', 'description': 'Gets network IP range fo...
0
{'name': 'And@src/api/python/z3/z3.py', 'description': "Create a Z3 and-expression or and-probe.\n\n>>> p, q, r = Bools('p q r')\n>>> And(p, q, r)\nAnd(p, q, r)\n>>> P = BoolVector('p', 5)\n>>> And(P)\nAnd(p__0, p__1, p__2, p__3, p__4)", 'signature': 'def And(*args):'}</s>{'name': 'is_real@src/api/python/z3/z3.py', 'de...
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': 'wait_on_db_update@grizli/aws/db.py', 'description': 'Wait for db to stop updating on root', 'signature': 'def wait_on_db_update(root, t0=60, dt=30, n_iter=60, engine=None):'}</s>{'name': 'detect_with_photutils@grizli/utils.py', 'description': 'Use `~photutils` to detect objects and make segmentation map\n\n.....
0
{'name': 'ParseNolintSuppressions@tools/caffe-sphereface/scripts/cpp_lint.py', 'description': 'Updates the global list of 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: st...
0
{'name': 'ProxyPool.get_proxy_item@spider/network/proxy_pool.py', 'description': '获取代理对象\n:param proxy_id:\n:param proxies:\n:return:', 'signature': 'def get_proxy_item(self, proxy_id="", proxies=None):'}</s>{'name': 'get_proxy_from_http@spider/network/proxy_pool.py', 'description': '从指定 http 地址获取代理\n:param proxy_sourc...
0
{'name': 'LiteralSpace._update_objects_from_state@pddlgym/spaces.py', 'description': 'Given a state, extract the objects and if they have changed, \nrecompute all ground literals', 'signature': 'def _update_objects_from_state(self, state):'}</s>{'name': 'ground_literal@pddlgym/structs.py', 'description': 'Given a lifte...
0
{'name': 'convert_sqlalchemy_relationship@graphene_sqlalchemy/converter.py', 'description': ':param sqlalchemy.RelationshipProperty relationship_prop:\n:param SQLAlchemyObjectType obj_type:\n:param function|None connection_field_factory:\n:param bool batching:\n:param str orm_field_name:\n:param dict field_kwargs:\n:rt...
0
{'name': 'write_row@django_tables2_reports/csv_to_xls/pyexcelerator_converter.py', 'description': 'Write a non-header row into the worksheet ', 'signature': "def write_row(worksheet, lno, columns, encoding='utf-8'):"}</s>{'name': 'get_content@django_tables2_reports/csv_to_xls/base.py', 'description': 'DOCSTRING', 'code...
0
{'name': 'get_cuda_arch@compilelib.py', 'description': 'Determine currently installed NVIDIA GPU cards by PCI device ID\nand match them with the predefined GPU model lists.\nIt tries to detect all GPUs and include cubins suitable for all GPU\narchitectures detected.\nIf your GPU is not detected correctly, update *_DEVI...
0
{'name': 'xy_from_points@geovoronoi/plotting.py', 'description': 'Helper function to get x and y coordinates from NumPy array or list of Shapely Points `points` especially used\nfor plotting.\n\n:param points: NumPy array or list of Shapely Points with length N\n:return: tuple with (NumPy array of N x-coordinates, NumP...
0
{'name': 'TPUEstimator._call_model_fn_for_inference@baselines/models/xlnet/tpu_estimator.py', 'description': 'Wraps `_call_model_fn` for `export_savedmodel`.', 'signature': 'def _call_model_fn_for_inference(self, features, labels, mode, config):'}</s>_USE_TPU_KEY = "use_tpu"
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': 'to_cartesian@icesat2_toolkit/spatial.py', 'description': 'Converts geodetic coordinates to Cartesian coordinates\n\nParameters\n----------\nlon: np.ndarray\n longitude (degrees east)\nlat: np.ndarray\n latitude (degrees north)\nh: float or np.ndarray, default 0.0\n height above ellipsoid (or sphere)\...
0
{'name': 'Normalizer.__init__@PyBioMed/PyPretreat/PyPretreatMolutil.py', 'description': 'Initialize a Normalizer with an optional custom list of :class:`~molvs.normalize.Normalization` transforms.\n\n:param normalizations: A list of :class:`~molvs.normalize.Normalization` transforms to apply.\n:param int max_restarts:...
0
{'name': 'prep_im_for_blob@lib/utils/blob.py', 'description': 'Mean subtract and scale an image for use in a blob.', 'signature': 'def prep_im_for_blob(im, pixel_means, target_size, max_size):'}</s>cfg = __C
1
{'name': 'IUSequence.icon@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Return the icon to use in the frontend.', 'signature': 'def icon(self) -> str:'}</s>STATUS_BLOCKED = "blocked"
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': '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_last_history_version@src/python_scripts/afnipy/afni_util.py', 'description': 'get_last_history_version(DSE...
0
{'name': 'CheckComment@tools/caffe-sphereface/scripts/cpp_lint.py', 'description': 'Checks for common mistakes in TODO comments.\n\nArgs:\n comment: The text of the comment from the line in question.\n filename: The name of the current file.\n linenum: The number of the line to check.\n error: The function to call ...
0
{'name': 'StatementSplitter.process@sqlparse/engine/statement_splitter.py', 'description': 'Process the stream', 'signature': 'def process(self, stream):'}</s>Comment = Token.Comment
1
{'name': 'PacketFilter.get_queues@pf/filter.py', 'description': 'Retrieve the currently loaded queues.\n\nReturn a tuple of PFQueue objects.', 'signature': 'def get_queues(self):'}</s>ICMP6_FQDN_QUERY = 139
0
{'name': 'GDBInstance.delete_breakpoints@tools/gdb_compare/gdb_compare.py', 'description': 'Deletes all breakpoints.', 'signature': 'def delete_breakpoints(self) -> None:'}</s>RE_HEX = re.compile(r"0x[0-9A-Fa-f]+")
0
{'name': 'MainWindow.loadFile@labelImg.py', 'description': 'Load the specified file, or the last opened file if None.', 'signature': 'def loadFile(self, filePath=None):'}</s>{'name': 'HashableQListWidgetItem@libs/hashableQListWidgetItem.py', 'description': 'DOCSTRING', 'base_classes': ['QListWidgetItem'], 'methods': [{...
0
{'name': 'get_reader@meza/io.py', 'description': "Gets the appropriate reader for a given file extension.\n\nArgs:\n extension (str): The file extension.\n\nReturns:\n func: The file reading function\n\nSee also:\n `meza.io.read`\n\nRaises:\n TypeError: If unable to find a suitable reader.\n\nExamples:\n ...
0
{'name': 'ProcessFileData@tools/cpplint.py', 'description': 'Performs lint checks and reports any errors to the given error function.\n\nArgs:\n filename: Filename of the file that is being processed.\n file_extension: The extension (dot not included) of the file.\n lines: An array of strings, each representing a li...
0
{'name': 'FakeFount._actuallyResume@tubes/test/util.py', 'description': 'Resume the flow (decrementing flowIsPaused).\n\n@note: this is overridden in subclasses to modify behavior.', 'signature': 'def _actuallyResume(self):'}</s>{'name': 'Pauser@tubes/kit.py', 'description': 'Multiple parties may be interested in suppr...
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': '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_PROMPT_ON = f"\001\033[1;32m\002{GEF_PROMPT}\001\033[0m\002"
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQ_SUITE_B_NOT_AVAILABLE = 0
0
{'name': 'pointer_image@datoviz/__init__.py', 'description': 'Return a NumPy array of uint8 with shape (height, width, n_channels=3) from an ndpointer\nreferring to a C pointer to a buffer of RGB uint8 values.', 'signature': 'def pointer_image(rgb, width, height, n_channels=3):'}</s>box_center = dvz.dvz_box_center
0
{'name': 'plot_fit@src/naima/plot.py', 'description': 'Plot data with fit confidence regions.\n\nParameters\n----------\nsampler : `emcee.EnsembleSampler`\n Sampler with a stored chain.\nmodelidx : int, optional\n Model index to plot.\nlabel : str, optional\n Label for the title of the plot.\nsed : bool, optio...
1
{'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': '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': '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': 'follow_device@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'Follow the selected device', 'code': 'def follow_device(sniffer, ...
0
{'name': 'render@versioneer.py', 'description': 'Render the given version pieces into the requested style.', 'signature': 'def render(pieces, style):'}</s>OLD_SNIPPET = " from ._version import get_versions __version__ = get_versions()['version'] del get_versions "
0
{'name': 'TraktDataUpdateCoordinator.days@custom_components/trakt/coordinator.py', 'description': 'Return number of days to look forward for shows.', 'signature': 'def days(self) -> int:'}</s>DOMAIN = "trakt"
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': 'CheckCommaSpacing@tools/cpplint.py', 'description': 'Checks for horizontal spacing near commas and semicolons.\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': 'Device.open@src/LabJackPython.py', 'description': 'Device.open(devType, Ethernet=False, firstFound = True, serial = None, localId = None, devNumber = None, ipAddress = None, handleOnly = False, LJSocket = None)\n\nOpen a device of type devType. ', 'signature': 'def open(self, devType, Ethernet=False, firstFou...
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': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQIA_DEF_BIND = 61
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': 'Camera.getObjectLength@cameratransform/camera.py', 'description': 'Calculate the length of objects in the image, assuming the Z position of the objects is known, e.g. they are\nassumed to lie flat on the Z=0 plane.\n\nParameters\n----------\npoint_front : ndarray\n the positions of the front end, dimension...
0
{'name': 'Instruction.encode@riscvmodel/isa.py', 'description': 'TODO: document', 'signature': 'def encode(self) -> int:'}</s>RV32I = Variant("RV32I")
0
{'name': 'ProcessLine@scripts/cpplint.py', 'description': 'Processes a single line in the file.\n\nArgs:\n filename: Filename of the file that is being processed.\n file_extension: The extension (dot not included) of the file.\n clean_lines: An array of strings, each representing a line of the file,\n ...
0
{'name': 'toggleManager@BlendNet/addon.py', 'description': "Running the manager instance if it's not already started or stopping it", 'signature': 'def toggleManager():'}</s>{'name': 'managerTaskMessages@BlendNet/addon.py', 'description': 'DOCSTRING', 'code': 'def managerTaskMessages(task):\n return ManagerClient(ge...
0
{'name': 'build_transformer_model_for_pretraining@pretraining/pretraining.py', 'description': '构建训练模型,通用于TPU/GPU\n注意全程要用keras标准的层写法,一些比较灵活的“移花接木”式的\n写法可能会在TPU上训练失败。此外,要注意的是TPU并非支持所有\ntensorflow算子,尤其不支持动态(变长)算子,因此编写相应运算\n时要格外留意。', 'signature': 'def build_transformer_model_for_pretraining():'}</s>{'name': 'build_transfor...
0
{'name': 'ISmoothingSpline.__call__@csaps/_base.py', 'description': 'Evaluates spline on the data sites', 'signature': 'def __call__(self, xi: TXi, nu: Optional[TNu] = None, extrapolate: Optional[TExtrapolate] = None) -> np.ndarray:'}</s>TSpline = TypeVar('TSpline')
0
{'name': 'Model._predict_loop@modified_keras/keras/models.py', 'description': 'Abstract method to loop over some data in batches.', 'signature': 'def _predict_loop(self, f, ins, batch_size=128, verbose=0):'}</s>RMSE = root_mean_squared_error
0
{'name': 'IUController.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load config data for the controller', 'signature': 'def load(self, config: OrderedDict) -> "IUController":'}</s>{'name': 'IUZone@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'I...
0
{'name': 'InfobloxObject.fetch@infoblox_client/objects.py', 'description': 'Fetch object from NIOS by _ref or searchfields\n\nUpdate existent object with fields returned from NIOS\n\nReturns:\n True if object successfully fetched. False otherwise.\nRaises:\n InfobloxFetchGotMultipleObjects:\n If fetch got ...
0
{'name': 'FPVal@src/api/python/z3/z3.py', 'description': 'Return a floating-point value of value `val` and sort `fps`.\nIf `ctx=None`, then the global context is used.\n\n>>> v = FPVal(20.0, FPSort(8, 24))\n>>> v\n1.25*(2**4)\n>>> print("0x%.8x" % v.exponent_as_long(False))\n0x00000004\n>>> v = FPVal(2.25, FPSort(8, 24...
0
{'name': 'auto_populate@pelicun/resources/auto/Hazus_Earthquake_IM.py', 'description': 'Automatically creates a performance model for PGA-based Hazus EQ analysis.\n\nParameters\n----------\nAIM: dict\n Asset Information Model - provides features of the asset that can be\n used to infer attributes of the performan...
1
{'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