text
string
label
int64
{'name': 'get_version@setup.py', 'description': 'Return package version as listed in `__version__` in `init.py`.', 'signature': 'def get_version(package):'}</s>tests_require = ['django']
0
{'name': 'Image._preamble_read@wand/image.py', 'description': 'Set-up MagickWand properties before reading an image file. The\nproperties are unique to the image decoder.\n\n:param background: Defines the default background color.\n:type background: :class:`Color`, :class:`str`\n:param colorspace: Defines what colorspa...
0
{'name': 'env_perform_reproduce_update@self_organising_systems/biomakerca/env_logic.py', 'description': "Perform reproduce operations in the environment.\n\nThis is the function that should be used for high level step_env design.\n\nArguments:\n key: a jax random number generator.\n env: the input environment to be m...
0
{'name': 'CheckForNonConstReference@ament_cpplint/ament_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 instan...
0
{'name': '_windows_fname@pylibdmtx/dmtx_library.py', 'description': 'For convenience during development and to aid debugging, the DLL name is\nspecific to the bit depth of interpreter.\n\nThis logic has its own function to make testing easier', 'signature': 'def _windows_fname():'}</s>{'name': 'load@pylibdmtx/dmtx_libr...
0
{'name': 'NestingState.Update@scripts/cpplint.py', 'description': 'Update nesting state with current line.\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 errors found.'...
0
{'name': 'TestConnection.test_identify@test/test_connection.py', 'description': 'The connection sends the identify commands', 'signature': 'def test_identify(self):'}</s>{'name': 'PubFailedException@nsq/exceptions.py', 'description': 'Exception for E_PUB_FAILED', 'base_classes': ['NSQException'], 'methods': []}
0
{'name': 'PosixSerial.read@stino/pyarduino/base/pyserial/serialposix.py', 'description': 'Read size bytes from the serial port. If a timeout is set it may\nreturn less characters as requested. With no timeout it will block\nuntil the requested number of bytes is read.', 'signature': 'def read(self, size=1):'}</s>{'name...
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': 'NotSufficientlyUnique@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ...
0
{'name': 'DutTestThread.test_start@examples/protocols/modbus/tcp/example_test.py', 'description': 'The method to initialize and handle test stages\n ', 'signature': 'def test_start(self, timeout_value):'}</s>{'name': 'test_check_mode@examples/protocols/modbus/tcp/example_test.py', 'description': 'Check communica...
0
{'name': 'prepare_prior@bambi/model_components.py', 'description': 'Helper function to correctly set default priors and auto scaling\n\nParameters\n----------\nprior : Prior or None\n The prior.\nkind : string\n Accepted values are: `"intercept"`, `"common"`, or `"group_specific"`.\nauto_scale : bool\n Whether...
0
{'name': 'QuantifierRef.sort@src/api/python/z3/z3.py', 'description': 'Return the Boolean sort or sort of Lambda.', 'signature': 'def sort(self):'}</s>_z3_unary = [Z3_OP_UMINUS, Z3_OP_BNOT, Z3_OP_BNEG]
0
{'name': 'on_set_race_format@src/server/server.py', 'description': 'set current race_format ', 'signature': 'def on_set_race_format(data):'}</s>__ = RaceContext.language.__
1
{'name': 'html_escape@src/back/kite/bottle.py', 'description': 'Escape HTML special characters ``&<>`` and quotes ``\'"``. ', 'signature': 'def html_escape(string):'}</s>{'name': 'BaseResponse@src/back/kite/bottle.py', 'description': "Storage class for a response body as well as headers and cookies.\n\nThis class does ...
0
{'name': 'MetarTest.test_030_parseTime_legal@test/test_metar.py', 'description': 'Check parsing of the time stamp.', 'signature': 'def test_030_parseTime_legal(self):'}</s>TEMP_6HR_RE = re.compile(r"""^(?P<type>1|2) (?P<sign>0|1) (?P<temp>\d\d\d)\s+""", ...
0
{'name': 'ReplaceByFeeTest.test_doublespend_chain@qa/rpc-tests/replace-by-fee.py', 'description': 'Doublespend of a long chain', 'signature': 'def test_doublespend_chain(self):'}</s>OP_SIZE = CScriptOp(0x82)
0
{'name': 'BasicGEModel.link_predict@python/dglke/models/ke_model.py', 'description': "Predicts missing entities or relations in a triplet.\n\nGiven head_id, relation_id and tail_id, return topk most relevent triplet.\n\nParameters\n----------\nhead: th.Tensor\n A tensor of head entity id.\n\nrel: th.Tensor\n A te...
0
{'name': 'xgseedArchiveExport@scripts/appleseedMaya/xgenseed.py', 'description': 'Main archive export callback.\nArguments are passed in self.invokeArgs', 'signature': 'def xgseedArchiveExport(selfid):'}</s>{'name': 'appleseedExportFrame@scripts/appleseedMaya/xgenseed.py', 'description': 'Export a single appleseed arch...
0
{'name': 'Printer.overall_coverage_stat@docstr_coverage/printers.py', 'description': 'Getting full coverage statistic.\n\nFor `verbosity` with value:\n * `0` - Only `total_coverage` value returning.\n * `1` - All fields, except `files_info`.\n * `2` - All fields.', 'signature': 'def overall_coverage_stat(self)...
0
{'name': '_IncludeState.CheckNextIncludeOrder@ament_cpplint/ament_cpplint/cpplint.py', 'description': "Returns a non-empty error message if the next header is out of order.\n\nThis function also updates the internal state to be ready to check\nthe next include.\n\nArgs:\n header_type: One of the _XXX_HEADER constants ...
0
{'name': 'cmd_base@lib/charliecloud.py', 'description': 'Run a command to completion. If not fail_ok, exit with a fatal error if\nthe command fails (i.e., doesn’t exit with code zero). Return the\nCompletedProcess object.\n\nThe command’s stderr is suppressed unless (1) logging is DEBUG or higher\nor (2) fail_ok is Fal...
0
{'name': 'to_checksum_address@eth_utils/address.py', 'description': 'Makes a checksum address given a supported format.', 'signature': 'def to_checksum_address(value: Union[AnyAddress, str, bytes]) -> ChecksumAddress:'}</s>{'name': 'is_hex_address@eth_utils/address.py', 'description': 'Checks if the given string of tex...
0
{'name': 'parse_1dplot_args@src/python_scripts/afnipy/lib_apqc_io.py', 'description': 'Parse arguments for Pythony 1dplotter.\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.', 'sig...
0
{'name': 'OpenMapLocal.found_tiles@tilemapbase/ordnancesurvey.py', 'description': 'A list of the "grid codes" we have tiles for.', 'signature': 'def found_tiles():'}</s>{'name': '_coords_to_code_grid_residual@tilemapbase/ordnancesurvey.py', 'description': 'DOCSTRING', 'code': 'def _coords_to_code_grid_residual(x, y):\n...
0
{'name': 'test_raising_failed_validation@tests/test_models.py', 'description': 'Test validating valid receipts.', 'signature': 'def test_raising_failed_validation(populated_db: None) -> None:'}</s>{'name': 'default_expires@django_afip/models.py', 'description': 'The default expiration date for new tickets.', 'code': 'd...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQGMO_NO_SYNCPOINT = 4
0
{'name': 'IterationTimeLoggerTest.test_comparing_step_logging_time@tests/framework/callbacks/test_iteration_time_logger.py', 'description': 'Test IterationTimeLogger callback and compare reported time to collected time', 'signature': 'def test_comparing_step_logging_time(self) -> None:'}</s>{'name': 'PhaseState@torchtn...
1
{'name': 'GroupStats.plot_correlation@ffn/core.py', 'description': "Utility function to plot correlations.\n\nArgs:\n * freq (str): Pandas data frequency alias string\n * title (str): Plot title\n * figsize (tuple (x,y)): figure size\n * kwargs: passed to Pandas' plot_corr_heatmap function", 'signature': 'd...
0
{'name': 'IREP.fit@build/lib/wittgenstein/irep.py', 'description': "Fit a Ruleset model.\n\nParameters\n----------\ntrainset : DataFrame, numpy array, or other iterable\n Training dataset. Optional whether to include or exclude class labels column.\ny : iterable of str, int, bool\n Class labels corresponding to t...
0
{'name': 'proc_form@filterpy/kalman/tests/test_kf.py', 'description': 'This is for me to run against the class_form() function to see which,\nif either, runs faster. They within a few ms of each other on my machine\nwith Python 3.5.1', 'signature': 'def proc_form():'}</s>{'name': 'predict@filterpy/kalman/kalman_filter....
1
{'name': 'type_inference@06_prepare/data-wrangler/data_wrangler_antje.py', 'description': 'Core type inference logic\n\nArgs:\n df: spark dataframe\n\nReturns: dict a schema that maps from column name to mohave datatype', 'signature': 'def type_inference(df): # noqa: C901 # pylint: disable=R0912'}</s>{'name': 'sche...
0
{'name': 'simxGetVisionSensorImage@7_Demo_youBotPickAndPlace/code/vrep/VREP_RemoteAPIs/sim.py', 'description': 'Please have a look at the function description/documentation in the CoppeliaSim user manual', 'signature': 'def simxGetVisionSensorImage(clientID, sensorHandle, options, operationMode):'}</s>{'name': 'simxGet...
0
{'name': 'import_graphite_dashboards@tessera-server/tasks.py', 'description': 'Import dashboards from a Graphite vanilla dashboard.', 'signature': 'def import_graphite_dashboards('}</s>DEFAULT_GRAPHITE_URL = config['GRAPHITE_URL']
1
{'name': 'Metar._handleWind@metar/Metar.py', 'description': 'Parse the wind and variable-wind groups.\n\nThe following attributes are set:\n wind_dir [direction]\n wind_speed [speed]\n wind_gust [speed]\n wind_dir_from [int]\n wind_dir_to [int]', 'signature': 'def _...
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': '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': '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': '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': 'ConfigFixture.start_fixture@gnocchi/tests/functional/fixtures.py', 'description': 'Create necessary temp files and do the config dance.', 'signature': 'def start_fixture(self):'}</s>{'name': 'QueryInvalidOperator@gnocchi/indexer/__init__.py', 'description': 'DOCSTRING', 'base_classes': ['QueryError'], 'method...
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': 'TestProblemLabel.test_label_is_sent@tests/test_mock_unstructured_submission.py', 'description': 'Problem label is set on problem submit.', 'signature': 'def test_label_is_sent(self, name, label):'}</s>{'name': 'TestAnswerDownloadFromBinaryRef@tests/test_mock_unstructured_submission.py', 'description': 'DOCSTR...
0
{'name': 'PacketFilter.set_limit@pf/filter.py', 'description': "Set hard limits on the memory pools used by Packet Filter.\n\n'limit' can be either one of the PF_LIMIT_* constants or a string; a\n'value' of UINT_MAX means unlimited. Raise PFError if the current pool\nsize exceeds the requested hard limit.", 'signature'...
0
{'name': 'Message._postprocess_single@src/betterproto/__init__.py', 'description': 'Adjusts values after parsing.', 'signature': 'def _postprocess_single('}</s>{'name': 'fixed32_field@src/betterproto/__init__.py', 'description': 'DOCSTRING', 'code': 'def fixed32_field(\n number: int, group: Optional[str] = None, opt...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQNXP_CURRENT_VERSION = 2
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': '_getInputFromUser@packstack/installer/run_setup.py', 'description': 'this private func reads the data from the user\nfor the given param', 'signature': 'def _getInputFromUser(param):'}</s>DIR_PROJECT_DIR = os.environ.get('INSTALLER_PROJECT_DIR', os.path.abspath(os.path.join(os.path.split(__file__)[0], '..')))
0
{'name': 'getShutterSetting@source/pi-timolo.py', 'description': 'Calculate a shutter speed based on image pixel average', 'signature': 'def getShutterSetting(pxAve):'}</s>BASE_FILENAME = os.path.splitext(os.path.basename(MY_PATH))[0]
0
{'name': 'process_lookup_path@gef.py', 'description': 'Look up for a path in the process memory mapping.\nReturn a Section object if found, None otherwise.', 'signature': 'def process_lookup_path(name: str, perm: Permission = Permission.ALL) -> Section | None:'}</s>{'name': 'AliasesAddCommand@gef.py', 'description': 'C...
0
{'name': 'InstanceGroupsAction.delete_instance_groups@qingcloud/iaas/actions/instance_groups.py', 'description': 'Delete the specific instance group.\n@param instance_groups: An id list contains the group(s) id which will be deleted.', 'signature': 'def delete_instance_groups(self, instance_groups,'}</s>ACTION_ADD_GROU...
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': 'convert_inspirations@code/html/generate_static_website.py', 'description': ':param inspirations:\n:param entries:\n:return:', 'signature': 'def convert_inspirations(inspirations, entries):'}</s>web_css_path = web_path / 'css'
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQRC_SELECTOR_INVALID_FOR_TYPE = 2516
0
{'name': 'excape@spider/utils/tools.py', 'description': '转译', 'signature': 'def excape(str):'}</s>{'name': 'rows2json@spider/utils/tools.py', 'description': '将行数据转为json\n@param rows: 每一行的数据\n@param keys: json的key,空时将rows的第一行作为key\n@return:', 'code': 'def rows2json(rows, keys=None):\n """\n 将行数据转为json\n @param ...
0
{'name': 'ShelveryEngine.delete_backup@shelvery/engine.py', 'description': 'Remove given backup from system', 'signature': 'def delete_backup(self, backup_resource: BackupResource):'}</s>S3_DATA_PREFIX = "backups"
0
{'name': 'SyncAPIMixIn.sync@src/qbittorrentapi/sync.py', 'description': 'Allows for transparent interaction with ``Sync`` endpoints.\n\nSee Sync class for usage.', 'signature': 'def sync(self) -> Sync:'}</s>{'name': 'SyncTorrentPeersDictionary@src/qbittorrentapi/sync.py', 'description': 'Response for :meth:`~SyncAPIMix...
0
{'name': 'safe_dump_all@strictyaml/ruamel/main.py', 'description': 'Serialize a sequence of Python objects into a YAML stream.\nProduce only basic YAML tags.\nIf stream is None, return the produced string instead.', 'signature': 'def safe_dump_all(documents, stream=None, **kwds):'}</s>{'name': 'FlowMappingEndToken@stri...
0
{'name': 'main@ncbitax2lin/ncbitax2lin.py', 'description': 'Main function, entry point', 'signature': 'def main() -> None:'}</s>{'name': '_calc_rank_key@ncbitax2lin/fmt.py', 'description': 'Calcluates a key for the lineage representation in a dictionary.\n\nDefaults to the rank itself, e.g. no rank, superkingdom, phylu...
0
{'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>ICMP_UNREACH_TOSHOST = 12
0
{'name': 'serialize@strictyaml/ruamel/main.py', 'description': 'Serialize a representation tree into a YAML stream.\nIf stream is None, return the produced string instead.', 'signature': 'def serialize(node, stream=None, Dumper=Dumper, **kwds):'}</s>{'name': 'YAMLError@strictyaml/ruamel/error.py', 'description': 'DOCST...
0
{'name': 'View.scale_contrast@picasso/gui/render.py', 'description': 'Scales image based on contrast values from Display Settings\nDialog.\n\nParameters\n----------\nimage : np.array or list of np.arrays\n Array with rendered locs (grayscale)\nautoscale : boolean (default=False)\n If True, finds optimal contrast\...
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': 'AutoWeightedSparseThreshold._auto_thresh@src/mri/operators/proximity/weighted.py', 'description': 'Compute the best weights for the input_data.\n\nParameters\n----------\ninput_data: numpy.ndarray\n Array of sparse coefficient.\nSee Also\n--------\nwavelet_threshold_estimate', 'signature': 'def _auto_thres...
1
{'name': 'MatchListener.exitPropTestLike@stix2matcher/matcher.py', 'description': "Consumes an observation data map, {obs_id: {...}, ...}, representing\n selected values from Cyber Observable objects in each observation\n (grouped by observation index and root Cyber Observable object ID).\n See exitObjectPath().\nPr...
0
{'name': '_spectrogram@librosa/core/spectrum.py', 'description': 'Retrieve a magnitude spectrogram.\n\nThis is primarily used in feature extraction functions that can operate on\neither audio time-series or spectrogram input.\n\nParameters\n----------\ny : None or np.ndarray\n If provided, an audio time series\n\nS ...
0
{'name': 'test_imputer_duplicate_encoder_output_columns@test/test_imputer.py', 'description': 'Tests Imputer with sequential, bag-of-words and categorical variables as inputs\nthis could be run as part of integration test suite.', 'signature': 'def test_imputer_duplicate_encoder_output_columns(test_dir, data_frame):'}<...
1
{'name': '_soffice_process@droppdf/apps/apps/annotator/views.py', 'description': 'create processed file,upload to s3, store ref', 'signature': 'def _soffice_process(tempfile_path, filename, md5_hash, process_type):'}</s>{'name': 'upload@droppdf/apps/apps/annotator/views.py', 'description': 'DOCSTRING', 'code': 'def upl...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQDCC_SOURCE_ENC_UNDEFINED = py23long(0x00000000)
0
{'name': 'execute_notebook@papermill/execute.py', 'description': 'Executes a single notebook locally.\n\nParameters\n----------\ninput_path : str or Path or nbformat.NotebookNode\n Path to input notebook or NotebookNode object of notebook\noutput_path : str or Path or None\n Path to save executed notebook. If Non...
0
{'name': 'train_model@chapter02-cnn-in-detail/transfer_learning_tf_keras.py', 'description': 'Train the model. This function is shared for both FE and FT modes', 'signature': 'def train_model(model, epochs=5):'}</s>{'name': 'build_ft_model@chapter02-cnn-in-detail/transfer_learning_tf_keras.py', 'description': '"Create ...
0
{'name': 'detect_regressor@sklearn_pmml_model/auto_detect/base.py', 'description': 'Detect the type of regressor in line if present.\n\nParameters\n----------\nline : str, bytes\n Line of a PMML file as a string.\n\npmml : str, object\n Filename or file object containing PMML data.', 'signature': 'def detect_regr...
0
{'name': 'GefHelpCommand.__rebuild@gef.py', 'description': 'Rebuild the documentation.', 'signature': 'def __rebuild(self) -> None:'}</s>{'name': 'ArchSetCommand@gef.py', 'description': 'Set the current loaded architecture.', 'base_classes': ['GenericCommand'], 'methods': [{'name': 'ArchSetCommand.do_invoke@gef.py', 'd...
0
{'name': 'euclidean_distance@examples/clustering/example_clustering_3.py', 'description': 'Calculate the euclidean distance between X and Y. It accepts:\n:X should be a matrix of size (N, f) where N is the number of samples and f is the number of features for each sample.\n:Y should be of size f. In other words, it is ...
0
{'name': 'GtkydInfo.read_all_hdrs@src/python_scripts/afnipy/lib_gtkyd.py', 'description': 'go through all infiles and get header info. This populates a list\nof headers, one-for-one with the infiles', 'signature': 'def read_all_hdrs(self):'}</s>{'name': 'argmax@src/python_scripts/afnipy/afni_util.py', 'description': 'D...
0
{'name': 'PFOp._from_string@pf/rule.py', 'description': 'Initalize a new instance from a string.', 'signature': 'def _from_string(self, operation):'}</s>PF_ADDR_TABLE = 3
0
{'name': 'user_timeline@twitter_to_sqlite/cli.py', 'description': 'Save tweets posted by specified user', 'signature': 'def user_timeline('}</s>{'name': 'lists@twitter_to_sqlite/cli.py', 'description': 'Fetch lists belonging to specified users', 'code': 'def lists(db_path, identifiers, attach, sql, auth, ids, members):...
0
{'name': 'process_direct_grism_visit@grizli/prep.py', 'description': 'Full processing of a direct (+grism) image visit.\n\nParameters\n----------\ndirect : dict\n Dictionary with keys \'files\' and \'product\' for the direct images.\n\ngrism : dict\n Dictionary with keys \'files\' and \'product\' for the grism im...
0
{'name': 'dashboard_get_definition@tessera-server/tessera/views_api.py', 'description': 'Fetch the definition for a dashboard. This returns the\nrepresentation to use when modifiying a dashboard.', 'signature': 'def dashboard_get_definition(id):'}</s>{'name': 'DashboardDefinition@tessera-server/tessera/client/api/model...
0
{'name': 'MathField.formatOutput@source/fieldformat.py', 'description': 'Return formatted output text from stored text for this field.\n\nArguments:\n storedText -- the source text to format\n oneLine -- if True, returns only first line of output (for titles)\n noHtml -- if True, removes all HTML markup (for t...
1
{'name': 'Gurobi._solve@linopy/solvers.py', 'description': 'Solve a linear problem from a Gurobi object.\n\n\nParameters\n----------\nm\n Gurobi object.\nsolution_fn : Path, optional\n Path to the solution file.\nlog_fn : Path, optional\n Path to the log file.\nwarmstart_fn : Path, optional\n Path to the wa...
0
{'name': 'Sharpe@riskfolio/src/RiskFunctions.py', 'description': "Calculate the Risk Adjusted Return Ratio from a portfolio returns series.\n\n.. math::\n \\text{Sharpe}(X) = \\frac{\\mathbb{E}(X) -\n r_{f}}{\\phi(X)}\n\nWhere:\n\n:math:`X` is the vector of portfolio returns.\n\n:math:`r_{f}` is the risk free ra...
0
{'name': 'test_RunningSession_endpoint_url@tests/unit/test_session.py', 'description': 'Test pytest_localstack.session.RunningSession.endpoint_url.', 'signature': 'def test_RunningSession_endpoint_url(use_ssl, service_name, not_service_name):'}</s>{'name': 'TimeoutError@pytest_localstack/exceptions.py', 'description': ...
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': 'SciQuery.get_constraint_names@py3/SciServer/SciQuery.py', 'description': 'Gets a list of the names of table constraints in a particular database belonging to an RDBComputeDomain.', 'signature': 'def get_constraint_names(self, table_name, database=None, rdb_compute_domain=None):'}</s>{'name': 'waitForJob@py3/S...
0
{'name': 'ProcessFileData@runtimes/compiler-rt/lib/sanitizer_common/scripts/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:...
0
{'name': 'DepthImage.open@autolab_core/image.py', 'description': 'Creates a DepthImage from a file.\n\nParameters\n----------\nfilename : :obj:`str`\n The file to load the data from. Must be one of .png, .jpg,\n .npy, or .npz.\n\nframe : :obj:`str`\n A string representing the frame of reference in which the ne...
0
{'name': 'SelectMultipleField.formfield@select_multiple_field/models.py', 'description': 'This returns the correct formclass without calling super\n\nReturns select_multiple_field.forms.SelectMultipleFormField', 'signature': 'def formfield(self, **kwargs):'}</s>DEFAULT_DELIMITER = ","
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': 'populate_subreddit_lists@tor/core/initialize.py', 'description': 'Get the list of subreddits to monitor and loads it into memory.\n\n:return: None.', 'signature': 'def populate_subreddit_lists(cfg: Config) -> None:'}</s>{'name': 'get_wiki_page@tor/core/helpers.py', 'description': 'Return the contents of a giv...
1
{'name': '_AppHandler._read_build_config@jupyterlab/commands.py', 'description': 'Get the build config data for the app dir.', 'signature': 'def _read_build_config(self):'}</s>{'name': '_tarsum@jupyterlab/commands.py', 'description': 'Compute the recursive sha sum of a tar file.', 'code': 'def _tarsum(input_file):\n ...
0
{'name': 'd4_image_deaugment@pytorch_toolbelt/inference/tta.py', 'description': 'Deaugment input tensor (output of the model) assuming the input was D4-augmented image (See d4_augment).\nArgs:\n image: Tensor of [B * 8, C, H, W] shape\n reduction: Reduction model for aggregating outputs. Default is taking mean.\n...
0
{'name': 'StandardRun.run_pipeline@selection_pipeline/standard_run.py', 'description': 'Run pipeline runs the pipeline for a standard run\n\n ', 'signature': 'def run_pipeline(self):'}</s>{'name': 'StandardRun@selection_pipeline/standard_run.py', 'description': 'DOCSTRING', 'base_classes': ['CommandTemplate'], '...
1
{'name': 'PSBaseParser.nextline@pdfminer3/psparser.py', 'description': 'Fetches a next line that ends either with \\r or \\n.\n ', 'signature': 'def nextline(self):'}</s>NONSPC = re.compile(br'\S')
0
{'name': 'PingBinarySensor.available@cfg/hass/custom_components/ping_en/binary_sensor.py', 'description': 'Return if we have done the first ping.', 'signature': 'def available(self) -> bool:'}</s>ATTR_LOSS = "loss"
0
{'name': 'IntelHex._decode_record@nordicsemi/dfu/intelhex/__init__.py', 'description': 'Decode one record of HEX file.\n\n@param s line with HEX record.\n@param line line number (for error messages).\n\n@raise EndOfFile if EOF record encountered.', 'signature': 'def _decode_record(self, s, line=0):'}</s>{...
1
{'name': 'load_key_string@src/M2Crypto/RSA.py', 'description': 'Load an RSA key pair from a string.\n\n:param string: String containing RSA key pair in PEM format.\n\n:param callback: A Python callable object that is invoked\n to acquire a passphrase with which to unlock the\n key. The d...
0
{'name': 'AlarmoBaseEntity.device_info@custom_components/alarmo/alarm_control_panel.py', 'description': 'Return info for device registry.', 'signature': 'def device_info(self) -> dict:'}</s>ATTR_USER_ID = "user_id"
0
{'name': 'main@mne_bids_pipeline/steps/sensor/_01_make_evoked.py', 'description': 'Run evoked.', 'signature': 'def main(*, config: SimpleNamespace) -> None:'}</s>{'name': '_sanitize_callable@mne_bids_pipeline/_run.py', 'description': 'DOCSTRING', 'code': 'def _sanitize_callable(val: Any) -> Any:\n # Callables are no...
0
{'name': 'HTTPConnectionPool.is_same_host@src/ahip/connectionpool.py', 'description': 'Check if the given ``url`` is a member of the same host as this\nconnection pool.', 'signature': 'def is_same_host(self, url):'}</s>__path__ = []
0
{'name': 'MssqlCompleter.find_matches@mssqlcli/mssqlcompleter.py', 'description': "Find completion matches for the given text.\n\nGiven the user's input text and a collection of available\ncompletions, find completions matching the last word of the\ntext.\n\n`collection` can be either a list of strings or a list of Can...
1
{'name': 'run@TDScanner/sqlmap/thirdparty/bottle/bottle.py', 'description': 'Start a server instance. This method blocks until the server terminates.\n\n:param app: WSGI application or target string supported by\n :func:`load_app`. (default: :func:`default_app`)\n:param server: Server adapter to use. See :data:`s...
0