text
string
label
int64
{'name': '_AppHandler.build@jupyterlab/commands.py', 'description': 'Build the application.', 'signature': 'def build('}</s>{'name': '_rmtree_star@jupyterlab/commands.py', 'description': 'Remove all files/trees within a dir, logging errors', 'code': 'def _rmtree_star(path, logger):\n """Remove all files/trees within...
0
{'name': '_populate_edge_centroids@uxarray/grid/coordinates.py', 'description': 'Finds the centroids using cartesian averaging of the edges based off the\nvertices. The centroid is defined as the average of the x, y, z\ncoordinates, normalized.\n\nParameters\n----------\nrepopulate : bool, optional\n Bool used to tu...
0
{'name': 'test_get_cve_id_by_time_modified@test-http/src/test/cve_id_tests/cve_id.py', 'description': "we can get ids immediately after reserving them using the time they're\nreserved (noting that this may not work against a shared integration\nenvironment, we check that at least this many have been reserved) ", 'signa...
0
{'name': 'Field.is_point_cloud@phi/field/_field.py', 'description': 'A Field represents graph data if its `geometry` is not a set of connected elements, but rather individual geometric objects.', 'signature': 'def is_point_cloud(self):'}</s>{'name': 'BaseBox@phi/geom/_box.py', 'description': 'Abstract base type for box...
1
{'name': 'ProjectBuilder.check_dependencies@src/build/_builder.py', 'description': 'Return the dependencies which are not satisfied from the combined set of\n:attr:`build_system_requires` and :meth:`get_requires_for_build` for a given\ndistribution.\n\n:param distribution: Distribution to check (``sdist`` or ``wheel``)...
0
{'name': 'Logger.__init__@pelicun/base.py', 'description': "Initialize a Logger object.\n\nParameters\n----------\nverbose: bool\n If True, the pelicun echoes more information throughout the\n assessment. This can be useful for debugging purposes. The\n value is specified in the user's configuration dictionar...
0
{'name': 'add_commands@sievelib/commands.py', 'description': 'Adds one or more commands to the module namespace.\nCommands must end in "Command" to be added.\nExample (see tests/parser.py):\nsievelib.commands.add_commands(MytestCommand)\n\n:param cmds: a single Command Object or list of Command Objects', 'signature': '...
0
{'name': 'setup_devices_and_management_st@backend-tests/tests/test_deployments.py', 'description': 'Sets up user creates authorized devices.', 'signature': 'def setup_devices_and_management_st(nr_devices=100, deploy_to_group=None):'}</s>{'name': 'TestDynamicDeploymentsEnterprise@backend-tests/tests/test_deployments.py'...
0
{'name': 'Network.get_current@spicepy/netlist.py', 'description': '"get_current" computes a current in components/branches\n\n:param arg:\n * can be a string in the form \'R1 C1 (1) (0)\'\n * can be a list of branch-index in the form [1, 3, 0]\n:return: currents (numpy.array)', 'signature': 'def get_current(self,...
0
{'name': 'socksocket._SOCKS5_request@nova/proxy/socks.py', 'description': 'Send SOCKS5 request with given command (CMD field) and\naddress (DST field). Returns resolved DST address that was used.', 'signature': 'def _SOCKS5_request(self, conn, cmd, dst):'}</s>getdefaultproxy = get_default_proxy
0
{'name': 'Response.from_raw@nsq/response.py', 'description': 'Return a new response from a raw buffer', 'signature': 'def from_raw(conn, raw):'}</s>{'name': 'ConnectionClosedException@nsq/exceptions.py', 'description': "Trying to use a closed connection as if it's alive", 'base_classes': ['NSQException'], 'methods': []...
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': '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': 'build_match_function@onlinejudge_command/subcommand/test.py', 'description': "build_match_function builds the function to compare actual outputs and expected outputs.\n\nThis function doesn't any I/O.", 'signature': 'def build_match_function(*, compare_mode: CompareMode, error: Optional[float], judge_command:...
0
{'name': 'configure_vxlan@src/vxlan.py', 'description': 'Configure a VXLAN tunnel\n:param url: base url\n:param values: List of Informations needed for VXLAN configuration\n:param cookie: Cookie value\n:return: Request Status Code\n.. note: A configuration template in Jinja2 format needs to be used.\n:Example:\n\nresul...
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>ART_NAMES = sorted(a...
0
{'name': 'compute_ap@yolov3/utils/utils.py', 'description': 'Compute the average precision, given the recall and precision curves.\nSource: https://github.com/rbgirshick/py-faster-rcnn.\n# Arguments\n recall: The recall curve (list).\n precision: The precision curve (list).\n# Returns\n The average precisio...
0
{'name': 'submit_run@models/stylegan_tf_official/dnnlib/submission/submit.py', 'description': 'Create a run dir, gather files related to the run, copy files to the run dir, and launch the run in appropriate place.', 'signature': 'def submit_run(submit_config: SubmitConfig, run_func_name: str, **run_func_kwargs) -> None...
0
{'name': 'setup@jupyter_sphinx/__init__.py', 'description': 'A temporary setup function so that we can use it here and in execute.\n\nThis should be removed and converted into `setup` after a deprecation\ncycle.', 'signature': 'def setup(app: Sphinx):'}</s>{'name': 'builder_inited@jupyter_sphinx/__init__.py', 'descript...
1
{'name': 'read_archived_xml@eoreader/utils.py', 'description': 'Overload of sertit.files.read_archived_xml to cache its reading:\nthis operation is expensive when done with large archives (especially tars) stored on the cloud (and thus better done only once)', 'signature': 'def read_archived_xml(archive_path: AnyPathSt...
0
{'name': 'runBody@cxxtest/cxxtestgen.py', 'description': 'Body of TestDescription::run()', 'signature': 'def runBody( suite, test ):'}</s>{'name': 'staticRun@cxxtest/cxxtestgen.py', 'description': 'Body of TestDescription::run() for test in a non-dynamic suite', 'code': "def staticRun( suite, test ):\n '''Body of Te...
1
{'name': 'generate_problem_data@tests/utils/codegen_utils.py', 'description': 'Generate test problem data.\n\nThe additional structure sols_data defines the additional vectors/scalars\nwe need to perform the tests', 'signature': 'def generate_problem_data(P, q, A, l, u, problem_name, sols_data={}):'}</s>{'name': 'clean...
1
{'name': 'PPOTrainer.train@ss_baselines/savi/ppo/ppo_trainer.py', 'description': 'Main method for training PPO.\n\nReturns:\n None', 'signature': 'def train(self) -> None:'}</s>{'name': 'save_interrupted_state@ss_baselines/savi/ppo/slurm_utils.py', 'description': 'Saves the interrupted job state to the specified fil...
1
{'name': 'formatColor@rst2pdf/styles.py', 'description': 'Convert a color like "gray" or "0xf" or "ffff"\nto something ReportLab will like.', 'signature': 'def formatColor(value, numeric=True):'}</s>fontMappings = {}
0
{'name': 'GroupFitter.xfit_redshift@grizli/fitting.py', 'description': 'Two-step procedure for fitting redshifts\n\n1. polynomial, spline template fits\n2. redshift grids\n3. ...\n\nParameters\n----------\nprior : None, (array, array)\n Redshift prior (z, pz). Will be interpolated to the redshift\n fit grid\n\nt...
0
{'name': 'get_spacegroup@python/spglib/spglib.py', 'description': 'Return space group in international table symbol and number as a string.\n\nWith ``symbol_type=1``, Schoenflies symbol is given instead of international symbol.\n\n:rtype: str | None\n:return:\n If it fails, None is returned.', 'signature': 'def get_...
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': '_htmlentity_transform@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'Transforms an HTML entity to a character.', 'signature': 'def _htmlentity_transform(entity_with_semicolon):'}</s>{'name': 'determine_ext@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'DOCSTRING', 'code...
0
{'name': 'model_init@analyze.py', 'description': 'init model\n\ninit model for template matching\n\nArgs:\n video_type (int): movie resolution type\n\nReturns:', 'signature': 'def model_init(video_type):'}</s>{'name': 'analyze_score_frame@analyze.py', 'description': 'check score\n\nfound score for end analyze\n\nArg...
0
{'name': 'pool@src/pyannote/core/utils/hierarchy.py', 'description': '\'pool\' linkage\n\nParameters\n----------\nX : np.ndarray\n (n_samples, dimension) obversations.\nmetric : {"euclidean", "cosine", "angular"}, optional\n Distance metric. Defaults to "euclidean"\npooling_func: callable, optional\n Defaults ...
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': 'S2Product._open_clouds_gt_4_0@eoreader/products/optical/s2_product.py', 'description': 'Load cloud files as xarrays.\n\nRead S2 cloud mask .JP2 files (both valid for L2A and L1C products).\nhttps://sentinels.copernicus.eu/documents/247904/685211/Sentinel-2-Products-Specification-Document-14_8.pdf\n\nArgs:\n ...
0
{'name': 'preprocess@grizli/pipeline/auto_script.py', 'description': 'Preprocessing script\n\nParameters\n----------\nfield_root : str\n Basename of the exposure group processed together\n\nHOME_PATH : str\n Base path for file processing\n\nmaster_radec : str\n Force use this radec file for astrometric alignme...
0
{'name': 'TaprootTest.gen_test_vectors@test/functional/feature_taproot.py', 'description': 'Run a scenario that corresponds (and optionally produces) to BIP341 test vectors.', 'signature': 'def gen_test_vectors(self):'}</s>{'name': 'TaprootTest@test/functional/feature_taproot.py', 'description': 'DOCSTRING', 'base_clas...
1
{'name': 'Watchdog._read_config_file@.ci/watchdog/Watchdog.py', 'description': "Read Watchdog config file stored on the system.\n\nThe file stores every fail already reported along with timestamp. This\nmechanism is used to prevent Watchdog from reporting same failure\nmultiple times. In case there's no config under th...
0
{'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': 'main@lookatme/__main__.py', 'description': 'lookatme - An interactive, terminal-based markdown presentation tool.\n\nSee https://lookatme.readthedocs.io/en/v{{VERSION}} for documentation', 'signature': 'def main(tutorial, debug, log_path, theme, code_style, dump_styles,'}</s>{'name': 'tutor@lookatme/tutorial....
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>directory = xbmcplug...
0
{'name': 'ContinuousWaveformClient._request_cont_waveform@HinetPy/client.py', 'description': 'Request continuous waveform.\n\nParameters\n----------\ncode: str\n Network code.\nstarttime: :py:class:`datetime.datetime`\n Starttime of data request.\nspan: int\n Time span in minutes.\n\nReturns\n-------\nid: str\...
0
{'name': 'plot_results@utils/utils.py', 'description': "Plot YOLO training results from the file 'results.txt'\nExample of what this is trying to plot can be found at: \nhttps://user-images.githubusercontent.com/26833433/63258271-fe9d5300-c27b-11e9-9a15-95038daf4438.png\nAn example results.txt file:\nimport os; os.syst...
0
{'name': '_https_resolve@local/common/dns.py', 'description': '此函数功能实现仅限于解析为 A、AAAA 记录', 'signature': 'def _https_resolve(server, qname, qtype, query_data):'}</s>NXDOMAIN = dnslib.RCODE.NXDOMAIN
1
{'name': 'masked_area_interpolate@tobler/dasymetric/masked_area_interpolate.py', 'description': 'Interpolate data between two polygonal datasets using an auxiliary raster to mask out uninhabited land.\n\nParameters\n----------\nsource_df : geopandas.GeoDataFrame\n source data to be converted to another geometric rep...
0
{'name': 'CheckLanguage@tools/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 file.\n clean_lines: A ...
0
{'name': 'SendClient._on_message_sent@uamqp/client.py', 'description': "Callback run on a message send operation. If message\nhas a user defined callback, it will be called here. If the result\nof the operation is failure, the message state will be reverted\nto 'pending' up to the maximum retry count.\n\n:param message...
0
{'name': 'MountainCar.getScore@Chapter10/mountain_car.py', 'description': 'calculates the score of a given solution, represented by the list of actions, for the Moutain-Car environment,\nby initiating an episode of the Mountain-Car environment and running it with the provided actions.\nLower score is better.\n:param ac...
1
{'name': 'map_misp_attribute_to_zeek@shared/bin/zeek_threat_feed_utils.py', 'description': 'Maps a MISP attribute to Zeek intel items\n@see https://docs.zeek.org/en/current/scripts/base/frameworks/intel/main.zeek.html#type-Intel::Type\n@param attribute The MISPAttribute to convert\n@return a list containing the Zeek in...
1
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQCAMO_FIRST = 2701
0
{'name': 'FormatDecisionState.MustSplit@tools/yapf/yapf/yapflib/format_decision_state.py', 'description': 'Returns True if the line must split before the next token.', 'signature': 'def MustSplit(self):'}</s>OR_TEST = 1000
0
{'name': 'SignatureHash@qa/rpc-tests/test_framework/script.py', 'description': 'Consensus-correct SignatureHash\n\nReturns (hash, err) to precisely match the consensus-critical behavior of\nthe SIGHASH_SINGLE bug. (inIdx is *not* checked for validity)', 'signature': 'def SignatureHash(script, txTo, inIdx, hashtype):'}<...
0
{'name': 'K@src/api/python/z3/z3.py', 'description': "Return a Z3 constant array expression.\n\n>>> a = K(IntSort(), 10)\n>>> a\nK(Int, 10)\n>>> a.sort()\nArray(Int, Int)\n>>> i = Int('i')\n>>> a[i]\nK(Int, 10)[i]\n>>> simplify(a[i])\n10", 'signature': 'def K(dom, v):'}</s>{'name': 'PatternRef@src/api/python/z3/z3.py',...
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': 'cli@blogger_cli/commands/cmd_config.py', 'description': 'Change a blogs configurations.\n\nExamples:\n\n blogger config -b <blogname> html_dir C:Users/foldername/\n\n blogger config -b <blogname> txt_dir ~/foldername/\n\nTip: You can set a defalut blog to avoid using -b option everytime!', 'signature': ...
1
{'name': 'TestExcelGeneration.test_excel_simple_input@django_tables2_reports/tests.py', 'description': 'Test ability to generate excel output with simple input data.', 'signature': "def test_excel_simple_input(self, extension='xls'):"}</s>{'name': 'ReportTableView@django_tables2_reports/views.py', 'description': 'DOCST...
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 ...
0
{'name': 'XMTransformerModel.build_model@fairseq/models/speech_to_text/xm_transformer.py', 'description': 'Build a new model instance.', 'signature': 'def build_model(cls, args, task):'}</s>{'name': 'buffered_arange@fairseq/utils.py', 'description': 'DOCSTRING', 'code': 'def buffered_arange(max):\n if not hasattr(bu...
0
{'name': 'GenerateOutput@gyp/pylib/gyp/generator/msvs.py', 'description': "Generate .sln and .vcproj files.\n\nThis is the entry point for this generator.\nArguments:\n target_list: List of target pairs: 'base/base.gyp:base'.\n target_dicts: Dict of target properties keyed on target pair.\n data: Dictionary containi...
0
{'name': 'PFOp._to_string@pf/rule.py', 'description': 'Return the string representation of the operation.', 'signature': 'def _to_string(self):'}</s>{'name': 'geticmpcodebynumber@pf/_utils.py', 'description': 'Return the ICMP code as a string.', 'code': 'def geticmpcodebynumber(type, code, af):\n """Return the ICMP ...
0
{'name': 'Block.update_status_information@pyShelly/block.py', 'description': 'Update the status information.', 'signature': 'def update_status_information(self):'}</s>INFO_VALUE_CLOUD_CONNECTED = "cloud_connected"
0
{'name': 'prettyFrameStack@boxx/tool/toolLog.py', 'description': 'get frame return pretty str of stack\n\n>>> prettyFrameLocation(frame)\n__init__ <-f <-ff <-demo.py\n\nParameters\n----------\nframe : frame or int, default 0\n if int:相对于调用此函数frame的 int 深度的对应frame\nendByMain : bool, default True\n 为 True 则在第一个 fra...
0
{'name': 'netbox_site@pyats-to-netbox/netbox_utils.py', 'description': 'Get or Create a netbox site object.', 'signature': 'def netbox_site(name):'}</s>netbox_url = os.getenv("NETBOX_URL")
0
{'name': 'BusinessLogic.list@coal_mine/business_logic.py', 'description': 'N.B.: Returns an iterator.', 'signature': 'def list(self, *, verbose=False, paused=None, late=None, search=None):'}</s>{'name': 'AlreadyUnpausedError@coal_mine/business_logic.py', 'description': 'DOCSTRING', 'base_classes': ['Exception'], 'metho...
0
{'name': 'db_open@versions/speed-cam_11.26.py', 'description': 'Insert speed data into database table', 'signature': 'def db_open(db_file):'}</s>{'name': 'log_to_csv@versions/speed-cam_11.26.py', 'description': 'Store date to a comma separated value file', 'code': 'def log_to_csv(data_to_append):\n """Store date to ...
0
{'name': 'get_tool_template@project_generator/tools/tool.py', 'description': 'Internal project data\n\na dict with the following keys is returned:\nsource_paths - a list of source paths derived from s\ninclude_paths - a list of include paths derived from sources\ninclude_files - a dict of include files used in the copy...
0
{'name': 'generate_assignment_stub_and_hook@da/compiler/incgen.py', 'description': "Generate assignment stub and hook node for 'nameobj'.\n\nAssignment stubs notifies the incrementalizer of changes to value of\nvariables, and gives the incrementalizer a chance to perform necessary\nhousekeeping.", 'signature': 'def gen...
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': 'Message.to_pydict@src/betterproto/__init__.py', 'description': 'Returns a python dict representation of this object.\n\nParameters\n-----------\ncasing: :class:`Casing`\n The casing to use for key values. Default is :attr:`Casing.CAMEL` for\n compatibility purposes.\ninclude_default_values: :class:`bool...
0
{'name': 'parse_commit@gitrisky/parsing.py', 'description': 'Extract features from the text of a commit log entry.\n\nParameters\n----------\ncommit_str: str\n The text of a commit log entry.\n\nReturns\n-------\nfeats: defaultdict\n A dictionary of feature values.', 'signature': 'def parse_commit(commit_str):'}<...
0
{'name': 'try_match@flask_cors/core.py', 'description': 'Safely attempts to match a pattern or string to a request origin.', 'signature': 'def try_match(request_origin, maybe_regex):'}</s>{'name': 'get_allow_headers@flask_cors/core.py', 'description': 'DOCSTRING', 'code': 'def get_allow_headers(options, acl_request_hea...
0
{'name': 'DocumentDisplay.create_child@3rdparty/mongo-c-driver-1.26.2/lldb_bson.py', 'description': 'Generate the child elements for LLDB to walk through', 'signature': 'def create_child(cls, parent: SBValue, elem: DocumentElement) -> SBValue:'}</s>{'name': 'CodeDisplay@3rdparty/mongo-c-driver-1.26.2/lldb_bson.py', 'de...
1
{'name': 'AGraph.subgraph_parent@pygraphviz/agraph.py', 'description': 'Return parent graph of subgraph or None if graph is root graph.', 'signature': 'def subgraph_parent(self, nbunch=None, name=None):'}</s>Agdirected = cvar.Agdirected
0
{'name': 'Task.from_requests@transformer/task.py', 'description': 'Generates a set of Tasks from a given set of Requests.', 'signature': 'def from_requests('}</s>{'name': 'Line@transformer/python.py', 'description': 'A line of text and its associated indentation level.\n\nThis class allows not to constantly copy string...
0
{'name': 'genModelInput@boxx/ylth/__init__.py', 'description': "Auto generate a Tensor that could as model's input\n\nUsage\n-----\n>>> inp = genModelInput(model)\n>>> result = model(inp)\n>>> tree(result)\n\nParameters\n----------\nmodel: nn.Module\n nn.Module\ninputShape: tuple or list, default None\n By defaul...
0
{'name': 'HumanRTSPlayer._manage_input@rts/RTSPlayers.py', 'description': 'Manages click and keyboard selections on PyGame canvas\n:param board: game state\n:return: /', 'signature': 'def _manage_input(self, board: np.ndarray) -> list:'}</s>{'name': 'init_visuals@rts/visualization/rts_pygame.py', 'description': 'Create...
1
{'name': 'replace@yaql/standard_library/date_time.py', 'description': ':yaql:replace\n\nReturns datetime object with applied replacements.\n\n:signature: dt.replace(year => null, month => null, day => null,\n hour => null, minute => null, second => null,\n microsecond => null...
0
{'name': 'test_keys@tests/unit/featurizers/test_cgr.py', 'description': 'Test that the keys function returns the correct set of modes.', 'signature': 'def test_keys(expected_aliases):'}</s>{'name': 'invalid_alias@tests/unit/featurizers/test_cgr.py', 'description': 'DOCSTRING', 'code': 'def invalid_alias(request):\n ...
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': 'pi@diffcp/cones.py', 'description': 'Projects x onto product of cones (or their duals)\nArgs:\n x: NumPy array (with PSD data formatted in SCS convention)\n cones: list of (cone name, size)\n dual: whether to project onto the dual cone\nReturns:\n NumPy array that is the projection of `x` onto the...
0
{'name': '_AdbIOManager.send@adb_shell/adb_device.py', 'description': 'Send a message to the device.\n\nParameters\n----------\nmsg : AdbMessage\n The data that will be sent\nadb_info : _AdbTransactionInfo\n Info and settings for this ADB transaction', 'signature': 'def send(self, msg, adb_info):'}</s>AUTH_TOKEN ...
0
{'name': 'TestRemoveDeclaration.testNotRemoved@src/tests/testXmlEncodingDecode.py', 'description': "Make sure that invalid, or missing, declarations aren't affected.", 'signature': 'def testNotRemoved(self):'}</s>{'name': 'DuplicateAtomLink@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['Er...
0
{'name': 'wind_deg_to_uv@pymeteo/dynamics.py', 'description': 'Converts direction and speed into u,v wind\n\n:param direction: wind direction (mathmatical angle)\n:param speed: wind magnitude\n:returns: u and v wind components', 'signature': 'def wind_deg_to_uv(direction, speed):'}</s>eps = epsilon
0
{'name': 'make_class@vendor/attr/_make.py', 'description': 'A quick way to create a new class called *name* with *attrs*.\n\n:param str name: The name for the new class.\n\n:param attrs: A list of names or a dictionary of mappings of names to\n attributes.\n\n If *attrs* is a list or an ordered dict (`dict` on Py...
0
{'name': 'AdbDevice._filesync_send@adb_shell/adb_device.py', 'description': 'Send/buffer FileSync packets.\n\nPackets are buffered and only flushed when this connection is read from. All\nmessages have a response from the device, so this will always get flushed.\n\nParameters\n----------\ncommand_id : bytes\n Comman...
0
{'name': 'get_token_status@flask_security/utils.py', 'description': 'Get the status of a token.\n\n:param token: The token to check\n:param serializer: The name of the seriailzer. Can be one of the\n following: ``confirm``, ``login``, ``reset``\n:param max_age: The name of the max age config option. C...
0
{'name': 'RGBTiler.run@rio_rgbify/mbtiler.py', 'description': 'Warp, encode, and tile', 'signature': 'def run(self, processes=4):'}</s>{'name': 'data_to_rgb@rio_rgbify/encoders.py', 'description': 'Given an arbitrary (rows x cols) ndarray,\nencode the data into uint8 RGB from an arbitrary\nbase and interval\n\nParamete...
0
{'name': 'GetKappa@PyBioMed/PyMolecule/kappa.py', 'description': '#################################################################\nCalculation of all kappa values.\n\nUsage:\n\n result=GetKappa(mol)\n\n Input: mol is a molecule object.\n\n Output: result is a dcit form containing 6 kappa values.\n###########...
1
{'name': 'BareValidator._validate_max@cerberus/validator.py', 'description': "{'nullable': False }", 'signature': 'def _validate_max(self, max_value, field, value):'}</s>READONLY_FIELD = ErrorDefinition(0x63, 'readonly')
0
{'name': 'createHub@assemblyHub/halGenerateComparisonHub.py', 'description': 'Main method that organizes the creation of the meta-compartive hub.', 'signature': 'def createHub(target, genomes, opts):'}</s>{'name': 'writeHubFile@assemblyHub/halGenerateComparisonHub.py', 'description': 'Write the hub.txt file.', 'code': ...
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>MQCIH_SYNC_ON_RETURN = 4
0
{'name': 'TetherTask.configure@lang/py/avro/tether/tether_task.py', 'description': 'Parameters\n-------------------------------------------------------------------\ntaskType - What type of task (e.g map, reduce)\n - This is an enumeration which is specified in the input protocol\ninSchemaText - string containi...
0
{'name': 'test_list_validation_messages@voluptuous/tests/tests.py', 'description': 'Make sure useful error messages are available', 'signature': 'def test_list_validation_messages():'}</s>{'name': 'test_schema_decorator_partial_unmatch_called_with_args@voluptuous/tests/tests.py', 'description': 'DOCSTRING', 'code': 'de...
0
{'name': 'FairseqTask.build_generator@fairseq/tasks/fairseq_task.py', 'description': 'Build a :class:`~fairseq.SequenceGenerator` instance for this\ntask.\n\nArgs:\n models (List[~fairseq.models.FairseqModel]): ensemble of models\n args (fairseq.dataclass.configs.GenerationConfig):\n configuration object (...
1
{'name': 'flatten_probas@solver/lov_softmax.py', 'description': 'Flattens predictions in the batch', 'signature': 'def flatten_probas(probas, labels, ignore=None):'}</s>{'name': 'lovasz_hinge_flat@solver/lov_softmax.py', 'description': 'Binary Lovasz hinge loss\n logits: [P] Variable, logits at each prediction (betwee...
0
{'name': '_LowLevelParser.getExpressionParts@Cheetah/Parser.py', 'description': 'Get a Cheetah expression that includes $CheetahVars and break at\ndirective end tokens, the end of an enclosure, or at a specified\npyToken.', 'signature': 'def getExpressionParts(self,'}</s>unaryArithOps = ('+', '-', '~')
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>bigImageWidth = int(stream_width * bigImage)
0
{'name': 'Monitor.decode_json@wideq/client.py', 'description': 'Decode a bytestring that encodes JSON status data.', 'signature': 'def decode_json(data: bytes) -> Dict[str, Any]:'}</s>{'name': 'Session@wideq/core.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'methods': [{'name': 'Session.__init__@wideq/c...
0
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>PFTM_ADAPTIVE_END = 17
0
{'name': 'IUCoordinator.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load config data for the system', 'signature': 'def load(self, config: OrderedDict) -> "IUCoordinator":'}</s>CONF_CHECK_BACK = "check_back"
0
{'name': 'CosS3Client.ci_auditing_image_batch@qcloud_cos/cos_client.py', 'description': "图片同步批量审核接口 https://cloud.tencent.com/document/product/436/63593\n\n:param Bucket(string): 存储桶名称.\n:param Input(dict array): 需要审核的图片信息,每个array元素为dict类型,支持的参数如下:\n Object: 存储在 COS 存储桶中的图片文件名称,例如在目录 test 中的文件 image....
0
{'name': 'urlsplit@bleach/_vendor/parse.py', 'description': "Parse a URL into 5 components:\n<scheme>://<netloc>/<path>?<query>#<fragment>\nReturn a 5-tuple: (scheme, netloc, path, query, fragment).\nNote that we don't break the components up in smaller bits\n(e.g. netloc is a single string) and we don't expand % escap...
0
{'name': 'IULogger.log_service_call@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Message that we have received a service call', 'signature': 'def log_service_call('}</s>CONF_START = "start"
0