text
string
label
int64
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQRFH_VERSION_1 = 1
0
{'name': 'render@versioneer.py', 'description': 'Render the given version pieces into the requested style.', 'signature': 'def render(pieces: dict[str, Any], style: str) -> dict[str, Any]:'}</s>{'name': 'render_pep440_pre@versioneer.py', 'description': 'TAG[.postN.devDISTANCE] -- No -dirty.\n\nExceptions:\n1: no tags. ...
1
{'name': '_stream_callback@jupylet/audio/device.py', 'description': 'Compute and set the sound data to be played in a few milliseconds.\n\nArgs:\n outdata (ndarray): The sound device output buffer.\n frames (int): The number of frames to compute and set into the output\n buffer.\n _time (struct): A bunc...
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': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQCA_SERVICE_DESC = 2078
0
{'name': 'LoadBalancerAction.create_loadbalancer@qingcloud/iaas/actions/loadbalancer.py', 'description': 'Create new load balancer.\n@param eips: the IDs of the eips that will be associated to load balancer.\n@param loadbalancer_name: the name of the loadbalancer.\n@param security_group: the id of the security_group yo...
0
{'name': 'RobotFileParser.can_fetch@src/future/backports/urllib/robotparser.py', 'description': 'using the parsed robots.txt decide if useragent can fetch url', 'signature': 'def can_fetch(self, useragent, url):'}</s>{'name': 'HTTPDefaultErrorHandler@src/future/backports/urllib/request.py', 'description': 'DOCSTRING', ...
0
{'name': 'Printer._print_hdr@tools/hadb.py', 'description': 'Print header.', 'signature': 'def _print_hdr(self) -> None:'}</s>{'name': 'event_factory@tools/hadb.py', 'description': 'Convert database row to Event object.', 'code': 'def event_factory(cur: sqlite3.Cursor, row: tuple) -> Event:\n """Convert database row...
0
{'name': 'run@onlinejudge_command/subcommand/submit.py', 'description': ':returns: whether the submission is succeeded or not.', 'signature': 'def run(args: argparse.Namespace) -> bool:'}</s>{'name': 'green_diff@onlinejudge_command/utils.py', 'description': 'green_diff(s) is deprecated.\n ', 'code': 'def green_diff(...
0
{'name': 'timeline@twtxt/cli.py', 'description': 'Retrieve your personal timeline.', 'signature': 'def timeline(ctx, pager, limit, twtfile, sorting, timeout, porcelain, source, cache, force_update):'}</s>{'name': 'get_remote_status@twtxt/twhttp.py', 'description': 'DOCSTRING', 'code': 'def get_remote_status(sources, ti...
0
{'name': 'ApiStub.put_file_from_url@python-sdk/pachyderm_sdk/api/pfs/extension.py', 'description': 'Uploads a PFS file from an url.\n\nParameters\n----------\ncommit : pfs.Commit\n An open commit to modify.\npath : str\n The path in the repo the data will be written to.\nurl : str\n The URL of the file to put....
0
{'name': 'sign2map@venv/Lib/site-packages/numpy/f2py/capi_maps.py', 'description': 'varname,ctype,atype\ninit,init.r,init.i,pytype\nvardebuginfo,vardebugshowvalue,varshowvalue\nvarrfromat\nintent', 'signature': 'def sign2map(a, var):'}</s>{'name': 'isfunction@venv/Lib/site-packages/numpy/f2py/auxfuncs.py', 'description...
1
{'name': 'get_configured_hrnet@mseg_semantic/model/seg_hrnet.py', 'description': 'Args:\n n_classes: integer representing number of output classes.\n load_imagenet_model: whether to initialize from ImageNet-pretrained model.\n imagenet_ckpt_fpath: string representing path to file with weights to\n initi...
0
{'name': 'loadSwagger@apim-traffic-tool/lib/traffic-tool/src/python/multi_tenant_create_scenario.py', 'description': 'This function will load and set the swagger definitions for APIs\n:return: None', 'signature': 'def loadSwagger():'}</s>logger = log.setLogger('multi_tenant_create_scenario')
0
{'name': 'Application._load_environment@robopianist/viewer/application.py', 'description': 'Loads a new environment.', 'signature': 'def _load_environment(self, zoom_to_scene):'}</s>_DEFAULT_RENDER_FLAGS = np.zeros(mujoco.mjtRndFlag.mjNRNDFLAG, dtype=np.ubyte)
0
{'name': 'Ava._images_and_boxes_preprocessing@models/SlowFast/slowfast/datasets/ava_dataset.py', 'description': 'This function performs preprocessing for the input images and\ncorresponding boxes for one clip.\n\nArgs:\n imgs (tensor): the images.\n boxes (ndarray): the boxes for the current clip.\n\nReturns:\n ...
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': 'parse_iso8601@script.module.youtube.dl/lib/youtube_dl/utils.py', 'description': 'Return a UNIX tim...
0
{'name': 'GeoDataset.set_roi@salem/datasets.py', 'description': "Set a region of interest for the dataset.\nIf set succesfully, a ROI is simply a mask of the same size as the\ndataset's grid, obtained with the .roi attribute.\nI haven't decided yet if the data should be masekd out when a ROI\nhas been set.\nParameters\...
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': 'edge_to_surface_pts@voxelmorph/py/utils.py', 'description': 'Converts edges to surface points.', 'signature': 'def edge_to_surface_pts(X_edges, nb_surface_pts=None):'}</s>{'name': 'load_labels@voxelmorph/py/utils.py', 'description': 'Load label maps, return a list of unique labels and the label maps. The labe...
0
{'name': 'node_spec@tests/validator20/validate_spec_test.py', 'description': 'Used in tests that have recursive $refs', 'signature': 'def node_spec():'}</s>{'name': 'test_complicated_refs@tests/validator20/validate_spec_test.py', 'description': 'DOCSTRING', 'code': 'def test_complicated_refs():\n # Split the swagger...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQQMDT_AUTO_EXP_CLUSTER_SENDER = 4
0
{'name': 'WindowsProjectTestCase.test_empty_xpsp3pro_project_config@tests/commands/project_creation/test_windows_project.py', 'description': 'Test empty Windows XP SP3 project creation.', 'signature': 'def test_empty_xpsp3pro_project_config(self):'}</s>WINDOWS_7SP1_X64_IMAGE_DESC = { 'path': os.path.join(gettempdir...
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>DEFAULT_OPTIONS = dict( origins="*", methods=ALL_METHODS, allow_headers="*", expose_headers=None, supports_crede...
0
{'name': '__reassign_times@librosa/core/spectrum.py', 'description': 'Time reassignments based on a spectrogram representation.\n\nThe reassignment vector is calculated using equation 5.23 in Flandrin,\nAuger, & Chassande-Mottin 2002::\n\n t_reassigned = t + np.real(S_th/S_h)\n\nwhere ``S_h`` is the complex STFT cal...
0
{'name': 'standardize_variables@aimacode/logic.py', 'description': 'Replace all the variables in sentence with new variables.', 'signature': 'def standardize_variables(sentence, dic=None):'}</s>{'name': 'tt_check_all@aimacode/logic.py', 'description': 'Auxiliary routine to implement tt_entails.', 'code': 'def tt_check_...
0
{'name': 'matchOnlyAtCol@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Helper method for defining parse actions that require matching at a specific\ncolumn in the input text.', 'signature': 'def matchOnlyAtCol(n):'}</s>upcaseTokens = tokenMap(lambda t: _ustr(t).upper())
0
{'name': 'DIETableModel.format_expr@dwex/die.py', 'description': 'expr is a list of parsed operations\n ', 'signature': 'def format_expr(self, expr, len_cutoff = None):'}</s>{'name': 'CodeLocationSimple@dwex/dwarfutil.py', 'description': 'DOCSTRING', 'base_classes': [], 'methods': [{'name': 'CodeLocationSimple._...
0
{'name': 'TestAllEntityManager.test_filter_manager_inactive@entity/tests/model_tests.py', 'description': 'Test filtering inactive entities directly from the manager.', 'signature': 'def test_filter_manager_inactive(self):'}</s>{'name': 'EntityGroupBulkAddEntitiesTest@entity/tests/model_tests.py', 'description': 'DOCSTR...
0
{'name': 'GlyphsBuilder._fake_designspace@Lib/glyphsLib/builder/builders.py', 'description': 'Build a fake designspace with the given UFOs as sources, so that all\nbuilder functions can rely on the presence of a designspace.', 'signature': 'def _fake_designspace(self, ufos):'}</s>{'name': 'GSAnchor@Lib/glyphsLib/classe...
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': 'reset_meters@fairseq/logging/metrics.py', 'description': 'Reset Meter instances aggregated under a given *name*.', 'signature': 'def reset_meters(name: str) -> None:'}</s>{'name': 'reset_meter@fairseq/logging/metrics.py', 'description': 'Reset Meter instance aggregated under a given *name* and *key*.', 'code'...
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': 'MergeJob.update_from_target_branch_and_push@marge/job.py', 'description': 'Updates `source_branch` on `target_branch`, optionally add trailers and push.\nThe update strategy can either be rebase or merge. The default is rebase.\n\nReturns\n-------\n(sha_of_target_branch, sha_after_update, sha_after_rewrite)',...
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': 'compute_dynamics@oqupy/system_dynamics.py', 'description': 'Compute the system dynamics for a given system Hamiltonian, accounting\n(optionally) for interaction with an environment using one or more\nprocess tensors.\n\nParameters\n----------\nsystem: Union[System, TimeDependentSystem]\n Object containing ...
1
{'name': 'ContainerVulViewSet.check_flag@vulfocus-api/dockerapi/views.py', 'description': '验证Flag是否正确\n:param request:\n:param pk:\n:return:', 'signature': 'def check_flag(self, request, pk=None):'}</s>{'name': 'SysConfig@vulfocus-api/dockerapi/models.py', 'description': '数据库字段内容禁止删除', 'base_classes': ['models.Model'],...
0
{'name': '_AddMessageMethods@python/google/protobuf/internal/python_message.py', 'description': 'Adds implementations of all Message methods to cls.', 'signature': 'def _AddMessageMethods(message_descriptor, cls):'}</s>{'name': 'DecodeTag@python/google/protobuf/internal/decoder.py', 'description': 'Decode a tag from th...
0
{'name': 'Connection.cursor@trino/dbapi.py', 'description': 'Return a new :py:class:`Cursor` object using the connection.', 'signature': 'def cursor(self, cursor_style: str = "row", legacy_primitive_types: bool = None):'}</s>{'name': 'TrinoAuthError@trino/exceptions.py', 'description': 'DOCSTRING', 'base_classes': ['Op...
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': '_smear@pyeit/eit/fem.py', 'description': 'Build smear matrix B for bp for one exitation [obsolete]\n\nused for the smear matrix computation by @ChabaneAmaury\n\nParameters\n----------\nf: np.ndarray\n potential on nodes\nfb: np.ndarray\n potential on adjacent electrodes\npairs: np.ndarray\n electrode...
0
{'name': 'demean@src/python_scripts/afnipy/afni_util.py', 'description': 'demean the vector (in place), from index ibot to index itop\n\n if ibot == -1, ibot will be 0\n if itop == -1, itop will be len-1\n\nreturn 0 on success, 1 on error', 'signature': 'def demean(vec, ibot=-1, itop=-1):'}</s>{'name': 'proj_onto_vec@s...
0
{'name': 'Color._match@lib/st_colormod.py', 'description': 'Match a color in a buffer and return a color object.\n\nThis must return the color space, not the Color object.', 'signature': 'def _match(cls, string, start=0, fullmatch=False, filters=None, variables=None):'}</s>{'name': 'Color@lib/st_colormod.py', 'descript...
1
{'name': 'update_startup_screen@displays/waveshare2in13v3.py', 'description': 'Show startup screen on eInk Display\n ', 'signature': 'def update_startup_screen():'}</s>thankyou_screen_2 = "satoshi!!"
0
{'name': 'TestFacebookWebMiddleware.test_application_authorization@tests/test_fandjango.py', 'description': 'Verify that the user is redirected to authorize the application\nupon querying a view decorated by ``facebook_authorization_required``\nsans code nor access token.', 'signature': 'def test_application_authorizat...
1
{'name': 'OrderFileTestCase.test@llvm-project/lldb/test/API/macosx/order/TestOrderFile.py', 'description': 'Test debug symbols follow the correct order by the order file.', 'signature': 'def test(self):'}</s>{'name': 'expectedFlakeyFreeBSD@llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py', 'description': ...
0
{'name': 'LndNode.__init__@lndmanage/lib/node.py', 'description': ':param config_file: path to the config file\n:param lnd_home: path to lnd home folder\n:param lnd_host: lnd host of format "127.0.0.1:9735"\n:param regtest: if the node is representing a regtest node', 'signature': 'def __init__(self, config_file: Optio...
0
{'name': 'PrintFormatCommand.do_invoke@gef.py', 'description': 'Default value for print-format command.', 'signature': 'def do_invoke(self, _: list[str], **kwargs: Any) -> None:'}</s>{'name': 'get_gef_setting@gef.py', 'description': 'DOCSTRING', 'code': 'def get_gef_setting(name: str) -> Any:\n return gef.config[nam...
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': 'PFDivert._to_struct@pf/rule.py', 'description': 'Convert a PFDivert object to a divert structure.', 'signature': 'def _to_struct(self):'}</s>PF_NORDR = 9
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRQ_CHANNEL_BLOCKED_NOACCESS = 23
0
{'name': 'DeviceThermalComfort.compute_states@custom_components/thermal_comfort/sensor.py', 'description': 'Compute states of configured sensors.', 'signature': 'def compute_states(self) -> dict[SensorType, ComputeState]:'}</s>{'name': 'compute_once_lock@custom_components/thermal_comfort/sensor.py', 'description': 'Onl...
0
{'name': 'includeme@pypicloud/__init__.py', 'description': 'Set up and configure the pypicloud app', 'signature': 'def includeme(config):'}</s>__version__ = "1.3.12"
1
{'name': 'Message.from_dict@src/betterproto/__init__.py', 'description': 'Parse the key/value pairs into the current message instance. This returns the\ninstance itself and is therefore assignable and chainable.\n\nParameters\n-----------\nvalue: Dict[:class:`str`, Any]\n The dictionary to parse from.\n\nReturns\n--...
0
{'name': 'TestFacebookMiddleware.test_authed_user_doesnt_get_redirected@tests/test_fandjango.py', 'description': 'Verify that authorizing the application will register a new user.', 'signature': 'def test_authed_user_doesnt_get_redirected(self):'}</s>{'name': 'FacebookWebMiddleware@fandjango/middleware.py', 'descriptio...
0
{'name': 'PerfectModelEnsemble._compute_climatology@src/climpred/classes.py', 'description': "Verify a climatology forecast.\n\nArgs:\n metric: Metric to apply for verification, see `metrics <../metrics.html>`_\n comparison: How to compare the climatology against itself, see\n `comparisons <../comparisons....
0
{'name': 'MHLHistory.load_from_path@ascmhl/history.py', 'description': 'finds all MHL files in the asc-mhl folder, returns the mhl_history instance with all mhl_hashlists', 'signature': 'def load_from_path(cls, root_path):'}</s>{'name': 'XXH3@ascmhl/hasher.py', 'description': 'xxh3 checksum generator.', 'base_classes':...
0
{'name': 'VerticalSwipe.rect@qt4a/andrcontrols.py', 'description': 'left, top, width, height\n ', 'signature': 'def rect(self):'}</s>{'name': 'EditText@qt4a/andrcontrols.py', 'description': '输入文本框\n ', 'base_classes': ['TextView'], 'methods': [{'name': 'EditText.send_keys@qt4a/andrcontrols.py', 'description':...
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': 'MempoolPackagesTest.run_test@test/functional/mempool_packages.py', 'description': 'Mine some blocks and have them mature. ', 'signature': 'def run_test(self):'}</s>{'name': 'str_to_b64str@test/functional/test_framework/util.py', 'description': 'DOCSTRING', 'code': "def str_to_b64str(string):\n return b64en...
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': 'ValidHour@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['ValidValue'], 'metho...
0
{'name': 'FancyPage.beforeDrawPage@rst2pdf/createpdf.py', 'description': 'Do adjustments to the page according to where we are in the document.\n\n* Gutter margins on left or right as needed', 'signature': 'def beforeDrawPage(self, canv, doc):'}</s>{'name': 'tablepadding@rst2pdf/flowables.py', 'description': 'DOCSTRING...
0
{'name': 'TrendAnalysis._calc_clearsky_poa@rdtools/analysis_chains.py', 'description': 'Calculate clearsky plane-of-array irradiance and stores in self.poa_global_clearsky\n\nParameters\n----------\ntimes : pandas.DateTimeIndex\n times on for which to calculate clearsky poa. If not provided then\n it will be sim...
0
{'name': 'Command.__is_valid_value_for_arg@sievelib/commands.py', 'description': 'Check if value is allowed for arg\n\nSome commands only allow a limited set of values. The method\nalways returns True for methods that do not provide such a\nset.\n\n:param arg: the argument\n:param value: the value to check\n:param chec...
1
{'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': 'TableBase.print_linear_hist@src/python/bcc/table.py', 'description': 'print_linear_hist(val_type="value", section_header="Bucket ptr",\n section_print_fn=None, bucket_fn=None,\n strip_leading_zero=None, bucket_sort_fn=None)\n\nPrints a table as a linear histogram. This is i...
0
{'name': 'Neo4jTest.get_type_of_neo_test@tests/run_all_tests.py', 'description': 'Determines the type of Neo4j test based on the test name.\n\nThis method uses regular expressions to match the test name against\npredefined patterns to determine the type of Neo4j test.\n\nParameters:\n- test_name (str): The name of the ...
0
{'name': 'merge_dungeonstatic@bcml/mergers/mubin.py', 'description': 'Merges all changes to the CDungeon Static.smubin', 'signature': 'def merge_dungeonstatic(diffs: dict = None):'}</s>{'name': 'set_site_meta@bcml/util.py', 'description': 'DOCSTRING', 'code': 'def set_site_meta(site_meta: str):\n settings = get_sett...
0
{'name': 'extract_data@ytmdl/main.py', 'description': 'Extract the arguments and act accordingly.', 'signature': 'def extract_data():'}</s>{'name': 'get_new_meta_search_by@ytmdl/utility.py', 'description': 'Ask the user to enter a new title to search the metadata with.\n\nThis function will be called when the user expl...
0
{'name': 'ProcessLine@tools/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 wi...
0
{'name': 'prophet_copy@python/prophet/diagnostics.py', 'description': "Copy Prophet object\n\nParameters\n----------\nm: Prophet model.\ncutoff: pd.Timestamp or None, default None.\n cuttoff Timestamp for changepoints member variable.\n changepoints are only retained if 'changepoints <= cutoff'\n\nReturns\n------...
0
{'name': 'CheckForNonConstReference@third_party/cpplint/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 clean_lines: A CleansedLines instance conta...
0
{'name': 'FluoroFlowCalculatorTest.setUp@FluoroFlowCalculator/FluoroFlowCalculator.py', 'description': 'Do whatever is needed to reset the state - typically a scene clear will be enough.\n ', 'signature': 'def setUp(self):'}</s>{'name': 'ZeroSegmentsFoundError@FluoroFlowCalculator/FluoroFlowCalculator.py', 'descript...
0
{'name': 'DastUnparser.enter@da/compiler/pseudo.py', 'description': "Print ':', and increase the indentation.", 'signature': 'def enter(self):'}</s>{'name': 'TrueExpr@da/compiler/dast.py', 'description': 'DOCSTRING', 'base_classes': ['ConstantExpr'], 'methods': []}
0
{'name': 'RidgeLogisticRegression.fit@parsimony/estimators.py', 'description': 'Fit the estimator to the data.\n ', 'signature': 'def fit(self, X, y, beta=None, sample_weight=None):'}</s>{'name': 'LogisticRegression@parsimony/estimators.py', 'description': 'Logistic regression (re-weighted log-likelihood aka. cr...
0
{'name': 'FeedlyUser.get_category@feedly/api_client/data.py', 'description': ':param key: the name or UUID of the tag (dash separated hex numbers), or a stream ID object\n:return: the category', 'signature': 'def get_category(self, key: Union[str, UserStreamId]) -> UserCategory:'}</s>{'name': 'LazyStreams@feedly/api_cl...
0
{'name': 'to_lonlat@tilemapbase/mapping.py', 'description': 'Inverse project from "web mercator" coords back to longitude, latitude.\n\n:param x: The x coordinate, between 0 and 1.\n:param y: The y coordinate, between 0 and 1.\n\n:return: A pair `(longitude, latitude)` in degrees.', 'signature': 'def to_lonlat(x, y):'}...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRCCF_WRONG_CHLAUTH_TYPE = 3336
0
{'name': 'Serial._update_dtr_state@serial/serialwin32.py', 'description': 'Set terminal status line: Data Terminal Ready', 'signature': 'def _update_dtr_state(self):'}</s>RTS_CONTROL_HANDSHAKE = 2
0
{'name': 'Config.load_config@hues/console.py', 'description': 'Find and load configuration params.\nConfig files are loaded in the following order:\n- Beginning from current working dir, all the way to the root.\n- User home (~).\n- Module dir (defaults).', 'signature': 'def load_config(force_default=False):'}</s>{'nam...
1
{'name': 'ServersBase.send_power_action@pydactyl/api/client/servers/base.py', 'description': 'Sends a console command to the specified server.\n\nThe server must be online, otherwise API will return a HTTP 412 error.\nIf successful, there will be an empty response body.\n\nArgs:\n server_id(str): Server identifier (...
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>__all__ = ["ServiceCurve", "FlowQueue", "PFQueue", "PFQueueStats"]
0
{'name': 'main@freezer/main.py', 'description': 'freezer-agent binary main execution', 'signature': 'def main():'}</s>{'name': 'shield@freezer/utils/utils.py', 'description': 'Remove try except boilerplate code from functions', 'code': 'def shield(func):\n """Remove try except boilerplate code from functions"""\n ...
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': 'SamlAuthservice@infoblox_client/objects.py', 'description': "SamlAuthservice: ...
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': 'ZiGate.write_attribute_request@zigate/core.py', 'description': 'Write Attribute request\nattribute could be a tuple of (attribute_id, attribute_type, data)\nor a list of tuple (attribute_id, attribute_type, data)', 'signature': 'def write_attribute_request(self, addr, endpoint, cluster, attributes,'}</s>TYPE_...
0
{'name': 'create_index@whoosh_search.py', 'description': "Creates a whoosh index directory for the MSD\n\n:parameters:\n - index_path : str\n where to create the whoosh index\n - track_list : list of list of str\n list of dicts, each dict should have keys 'id', 'path', 'artist',\n and 'title'...
1
{'name': 'BitBoxCommonAPI.get_info@py/bitbox02/bitbox02/communication/bitbox_api_protocol.py', 'description': 'Returns (version, platform, edition, unlocked, initialized).\nThis is useful to get the version of the firmware or the device unlocked/initialized status\nwhen a usb descriptor is not available (via BitBoxBrid...
1
{'name': 'normalize_url@cachet_url_monitor/client.py', 'description': "If passed url doesn't include schema return it with default one - http.", 'signature': 'def normalize_url(url: str) -> str:'}</s>{'name': 'ConfigurationValidationError@cachet_url_monitor/exceptions.py', 'description': "Exception raised when there's ...
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_finite_domain_sort@src/api/python/z3/z3.py', 'description': "Return True if `s` is a Z3 finite-domain sort.\n\n>>> is_finite...
0
{'name': 'get_hhh_investigator@website/web/__init__.py', 'description': 'Returns all the captures related to a cookie name entry, used in the web interface.', 'signature': 'def get_hhh_investigator(hhh: str, offset: int | None=None, limit: int | None=None, search: str | None=None) -> tuple[int, list[tuple[str, str, str...
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': 'aghead...
0
{'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': 'consume_cpu_ram@tests/utils/text.py', 'description': 'DOCSTRING', 'code': 'def consume_cpu_ram(n): return np.ones((n, n))'}
0
{'name': 'field_psf@grizli/pipeline/auto_script.py', 'description': 'Generate PSFs for the available filters in a given field', 'signature': "def field_psf(root='j020924-044344', PREP_PATH='../Prep', RAW_PATH='../RAW', EXTRACT_PATH='../Extractions', factors=[1, 2, 4], get_drizzle_scale=True, subsample=256, size=6, get_...
0
{'name': 'dump_encoding@src/freetype/src/tools/glnames.py', 'description': 'dump a given encoding', 'signature': 'def dump_encoding(file, encoding_name, encoding_list):'}</s>mac_standard_names = [ # 0 ".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl", "numbersign", "dollar", ...
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': 'followers@friendship/views.py', 'description': "List this user's followers", 'signature': 'def followers(request, username, template_name="friendship/follow/followers_list.html"):'}</s>{'name': 'block_remove@friendship/views.py', 'description': 'Remove a following relationship', 'code': 'def block_remove(\n ...
0
{'name': 'test_parse_uri_invalid_uri@cheroot/test/test_core.py', 'description': 'Check that server responds with Bad Request to invalid GET queries.\n\nInvalid request line test case: it should only contain US-ASCII.', 'signature': 'def test_parse_uri_invalid_uri(test_client):'}</s>{'name': 'Request@cheroot/test/helper...
0
{'name': 'keyError@chryswoods.com/python_and_data/testing/mypkg/mymodule_answer.py', 'description': 'A function that raises a KeyError. ', 'signature': 'def keyError():'}</s>{'name': 'isLucky@chryswoods.com/python_and_data/testing/mypkg/mymodule_answer.py', 'description': 'Return whether x is lucky number 7. ', 'code':...
0
{'name': 'PULP_CBC_CMDTest.test_cuts_off@pulp/tests/test_pulp.py', 'description': 'Test if setting cuts=False adds cuts off to the command line.', 'signature': 'def test_cuts_off(self):'}</s>LpConstraintGE = 1
0