text
string
label
int64
{'name': 'generate_js_data_file@FastProject/HtmlViewer.py', 'description': ':param filename: (String) name of file to write. Should end in .js\n:param projections: dictionary with key = (String) name of projection, value = (2xN_samples) numpy.ndarray\n:param sig_scores: dictionary with key= (String) name of signature...
0
{'name': '_makeTags@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Internal helper to construct opening and closing tag expressions, given a tag name', 'signature': 'def _makeTags(tagStr, xml):'}</s>dblQuotedString = Combine(Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\(?:[^x]|x[0-9a-fA-F]+)))*')+'"').se...
1
{'name': 'to_band@eoreader/bands/__init__.py', 'description': 'Convert a string (or real value) to any alias, band or index.\n\nYou can pass the name or the value of the bands.\n\nArgs:\n to_convert (Union[list, BandNames, str]): Values to convert into band objects\n as_list (bool): Return the result as a list\n\...
0
{'name': 'extract_features@cbert_utils.py', 'description': 'extract features from tokens', 'signature': 'def extract_features(tokens_a, tokens_label, max_seq_length, tokenizer):'}</s>{'name': 'create_masked_lm_predictions@cbert_utils.py', 'description': 'Creates the predictions for the masked LM objective.', 'code': 'd...
1
{'name': 'Scene.draw@jupylet/model.py', 'description': 'Render scene to canvas.\n\nArgs:\n shader (moderngl.program.Program, optional): OpenGL shader program\n to use for rendering.', 'signature': 'def draw(self, shader=None):'}</s>{'name': 'moderngl_release@jupylet/model.py', 'description': 'DOCSTRING', 'cod...
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': 'skip_by_py_version@test/conftest.py', 'description': 'This will cause tests to be skipped w/ py3 containers if "py-version" flag is not set\nand pytest is running from py2. We can rely on this when py2 is deprecated, but for now\nwe must use "skip_py2_containers"', 'signature': 'def skip_by_py_version(request...
0
{'name': 'SparseRWGraph.get_extended_normalized_probs@src/pecanpy/rw/sparse_rw.py', 'description': 'Calculate node2vec+ transition probabilities.', 'signature': 'def get_extended_normalized_probs('}</s>{'name': 'SparseRWGraph@src/pecanpy/rw/sparse_rw.py', 'description': 'Sparse Graph equipped with random walk computati...
1
{'name': 'User.christmas_mode@src/astrobotany/models.py', 'description': 'Return if the user is in "christmas" mode.\n\nCache the results because this is a relatively expensive query that\nwill be checked multiple times per request.', 'signature': 'def christmas_mode(self) -> bool:'}</s>badge_242 = Badge("vampire", ser...
0
{'name': 'player_params@resources/site-packages/seasonvar/parser.py', 'description': 'extract parameters for player.php to retrieve playlists\nif parameters not found return None', 'signature': 'def player_params(season_page_html):'}</s>{'name': 'seasons@resources/site-packages/seasonvar/parser.py', 'description': 'tak...
0
{'name': 'test_linkauth_rw_pb@tests/bundles/test_hframe.py', 'description': 'Write LINKAUTH PBs to disk and back.\n:return:', 'signature': 'def test_linkauth_rw_pb():'}</s>{'name': 'detect_s3_fs_path@disdat/hyperframe.py', 'description': 'Given a series, check whether all entries appear to be real files on S3\n\nRaise ...
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': 'RotateLogStressTester.getLogHandler@tests/other/stresstest.py', 'description': 'Override this method if you want to test a different logging handler\nclass.', 'signature': 'def getLogHandler(self, fn):'}</s>PY2 = False
0
{'name': 'handle_control_command@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'Handle command from control channel', 'signature': 'def handle_control_command(sniffer, arg, typ, payload):'}</s>GLOBAL_HEADER = struct.pack("<LHHIILL", 0xa1b2c3d4, # PCAP magic number ...
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': 'prim_generate_maze_wall@Perfect Maze/Maze_AnFany_Wall.py', 'description': '根据Prim算法,遍历墙生成a*b大小的迷宫,动态展示迷宫的生成过程\n:param a: 迷宫的行数\n:param b: 迷宫的列数\n:param path: 是否在最终的迷宫中添加路径,默认添加\n:return: 表示迷宫内所有墙的状态的字典', 'signature': 'def prim_generate_maze_wall(a, b, path=False):'}</s>Enter_Color = "tab:red"
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>MQIA_CLWL_Q_RANK = 95
0
{'name': 'create_train_input_fn@object_detection/inputs.py', 'description': 'Creates a train `input` function for `Estimator`.\n\nArgs:\n train_config: A train_pb2.TrainConfig.\n train_input_config: An input_reader_pb2.InputReader.\n model_config: A model_pb2.DetectionModel.\n\nReturns:\n `input_fn` for `Estimator`...
0
{'name': 'SearchList.search@shingetsu/node.py', 'description': 'Search node which has the file.', 'signature': 'def search(self, cache=None, myself4=None, myself6=None, nodes=None):'}</s>initnode_list = _get_value(_extconf, 'Path', 'initnode_list', '../file/initnode.txt', 'path')
0
{'name': 'bytes_to_unicode@versions/2023/multimodal/python/models/multimodal_preprocessors.py', 'description': "Returns list of utf-8 byte and a corresponding list of unicode strings.\nThe reversible bpe codes work on unicode strings.\nThis means you need a large # of unicode characters in your vocab if you want to avo...
0
{'name': 'TestUnicodeReader.test_wrong_encoding_detection_windows@tests/test_io.py', 'description': 'Test for detecting the encoding of a windows file opened in ascii', 'signature': 'def test_wrong_encoding_detection_windows(self):'}</s>{'name': '_remove_bom_from_dict@meza/io.py', 'description': 'Remove a byte order ma...
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': 'protected_operator_accepted@example/basic_with_sqlalchemy_mixin.py', 'description': 'A protected endpoint that accepts any of the listed roles. The\nroles_accepted decorator will require that the supplied JWT includes at\nleast one of the accepted roles\n.. example::\n $ curl http://localhost/protected_oper...
0
{'name': 'SegWitTest.test_max_witness_push_length@test/functional/p2p_segwit.py', 'description': 'Test that witness stack can only allow up to MAX_SCRIPT_ELEMENT_SIZE byte pushes.', 'signature': 'def test_max_witness_push_length(self):'}</s>OP_2 = CScriptOp(0x52)
0
{'name': 'build_datetime@yaql/standard_library/date_time.py', 'description': ':yaql:datetime\n\nReturns datetime object built on year, month, day, hour, minute, second,\nmicrosecond, offset.\n\n:signature: datetime(year, month, day, hour => 0, minute => 0, second => 0,\n microsecond => 0, offset => ...
0
{'name': 'TcpServer.request_termination@cli/rpc2socks/utils/tcpserver.py', 'description': "Request this server's own I/O handling thread to leave gracefully.", 'signature': 'def request_termination(self):'}</s>FATAL = loggex.FATAL
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQOD_VERSION_4 = 4
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>{'name': 'create_ssl_context@src/ahip/util/ssl_.py', 'description': 'All arguments have the same mean...
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': 'frac_gene_coverage@bioframe/extras.py', 'description': 'Calculate number and fraction of overlaps by predicted and verified\nRNA isoforms for a set of intervals stored in a dataframe.\n\nParameters\n----------\ndf : pd.DataFrame\n Set of genomic intervals stored as a dataframe.\n\nucsc_mrna: str or DataFra...
0
{'name': 'RIPPER.fit@build/lib/wittgenstein/ripper.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 ...
0
{'name': 'parseState@Deprecated/mrtf_test.py', 'description': 'Take the raw string returned by the Arduino ("buffer") for the current state,\nand parse it into the state dictionary defined by the state_vars ', 'signature': 'def parseState(buffer,state):'}</s>{'name': 'PrintState@Deprecated/mrtf_test.py', 'description':...
0
{'name': 'ModuleRouter.__init__@peewee_migrate/router.py', 'description': 'Initialize the router.', 'signature': 'def __init__(self, database, migrate_module="migrations", **kwargs):'}</s>{'name': 'MigrateHistory@peewee_migrate/models.py', 'description': 'Presents the migrations in database.', 'base_classes': ['pw.Mode...
0
{'name': 'rdk.init@rdk/rdk.py', 'description': 'This is a test.', 'signature': 'def init(self):'}</s>parameter_file_name = "parameters.json"
0
{'name': 'EncodingParser.get_attribute@src/html5_parser/encoding_parser.py', 'description': 'Return a name,value pair for the next attribute in the stream,\nif one is found, or None', 'signature': 'def get_attribute(self):'}</s>space_chars_bytes = frozenset(item.encode("ascii") for item in space_chars)
1
{'name': 'prometheus_metrics@emissionsapi/web.py', 'description': 'Return metrics in OpenMetrics format for Prometheus.\nMetrics are collected using the collectors from `emissionsapi.metrics`.\n\n:return: OpenMetrics data\n:rtype: werkzeug.wrappers.response.Response', 'signature': 'def prometheus_metrics():'}</s>{'name...
0
{'name': 'gis_prepro_tasks@oggm/workflow.py', 'description': 'Run all flowline preprocessing tasks on a list of glaciers.\n\nParameters\n----------\ngdirs : list of :py:class:`oggm.GlacierDirectory` objects\n the glacier directories to process', 'signature': 'def gis_prepro_tasks(gdirs):'}</s>{'name': 'reset_working...
0
{'name': 'NormalMappedMaterial.shade@pyrt/material/normalmappedmaterial.py', 'description': 'Shade method: Texture\n\ntexture shader', 'signature': 'def shade(self, camera: Camera, ray: Ray, hitrecord: HitRecord, lights: list) -> Vec3:'}</s>{'name': 'TextureMaterial@pyrt/material/texturematerial.py', 'description': 'Te...
0
{'name': 'do_release@extra/release_tool.py', 'description': 'Handles the interactive menu for doing a release.', 'signature': 'def do_release(release_state_file, args):'}</s>{'name': 'init_gitlab_creds@extra/release_tool.py', 'description': 'DOCSTRING', 'code': 'def init_gitlab_creds():\n global GITLAB_TOKEN\n GI...
0
{'name': 'plot_xyc@project_sample/2019-2ProjectSamples_Code/11조-수강과목을 통한 전공 예측 프로그램/joy.py', 'description': 'plots training input data x and its class label y as well as the the linear \ndecision boundary and the value W[-1] or w in the first subplot if clf is given.\nIn the second subplot, it displays the traning resu...
0
{'name': 'create_codes_index_of_exchanges_matrix@premise/export.py', 'description': 'Create a dictionary with row/column indices of the A matrix\nas key and the activity code as value.\n:return: a dictionary to map indices to activity codes\n:rtype: dict', 'signature': 'def create_codes_index_of_exchanges_matrix(databa...
0
{'name': 'do_setup@versioneer.py', 'description': 'Main VCS-independent setup function for installing Versioneer.', 'signature': 'def do_setup():'}</s>{'name': 'NotThisMethod@versioneer.py', 'description': 'Exception raised if a method is not valid for the current scenario.', 'base_classes': ['Exception'], 'methods': [...
0
{'name': 'TestRegression.setUpClass@tests/test_regression.py', 'description': 'Create necessary directories for testing.', 'signature': 'def setUpClass(cls):'}</s>{'name': 'Learner@skll/learner/__init__.py', 'description': 'A simpler interface around scikit-learn classification and regression estimators.\n\nParameters\...
0
{'name': 'DagBuilder._init_task_group_callback_param@dagfactory/dagbuilder.py', 'description': '_init_task_group_callback_param\n\nHandle configuring callbacks for TaskGroups in this method in this helper-method\n\n:param task_group_conf: dict containing the configuration of the TaskGroup', 'signature': 'def _init_task...
0
{'name': 'validate@fairseq_cli/train.py', 'description': 'Evaluate the model on the validation set(s) and return the losses.', 'signature': 'def validate('}</s>{'name': 'reset_meter@fairseq/logging/metrics.py', 'description': 'Reset Meter instance aggregated under a given *name* and *key*.', 'code': 'def reset_meter(na...
0
{'name': 'Path.asGameModRelative@ValveFileSystem/path.py', 'description': "Returns a path instance that is relative to the mod if the path is under the game tree.\nIf the path doesn't match the game tree, the original filepath is returned.", 'signature': 'def asGameModRelative(self):'}</s>sz_MEGABYTES = 2
0
{'name': 'Window.initUI@picasso/gui/render.py', 'description': 'Initializes the main window. Builds dialogs and menu bar.\n\nParameters\n----------\nplugins_loaded : boolean\n If True, plugins have been loaded before.', 'signature': 'def initUI(self, plugins_loaded):'}</s>{'name': 'localization_precision@picasso/pos...
0
{'name': 'post_search@geetest_offline/geetest_offline_nm.py', 'description': 'POST /CheckEntContext/showCheck.html', 'signature': 'def post_search(session, textfield, page):'}</s>HOST = ""
1
{'name': 'Blog.page_id@src/ablog/blog.py', 'description': 'Return pagename, trimming :file:`index` from end when found.\n\nReturn value is used as disqus page identifier.', 'signature': 'def page_id(self, pagename):'}</s>{'name': 'slugify@src/ablog/blog.py', 'description': 'Slugify *s*.', 'code': 'def slugify(string):\...
0
{'name': '_check_is_used@code/corpus/mapTagWorksResult2TEI.py', 'description': 'return true if the annotations contain a positive "used"', 'signature': 'def _check_is_used(annotations):'}</s>{'name': '_parse_tagworks_result_cvs@code/corpus/mapTagWorksResult2TEI.py', 'description': 'DOCSTRING', 'code': 'def _parse_tagwo...
0
{'name': 'Subscription._add_plan_entries@silver/models/subscriptions.py', 'description': 'Adds to the document the cost of the plan.\n:returns: A tuple consisting of:\n - The plan cost after proration and PER ENTRY discounts have been applied.\n - A list of entries that have been added to the documents. The first...
0
{'name': 'get_cmdclass@versioneer.py', 'description': 'Get the custom setuptools/distutils subclasses used by Versioneer.', 'signature': 'def get_cmdclass():'}</s>{'name': 'register_vcs_handler@versioneer.py', 'description': 'Decorator to mark a method as the handler for a particular VCS.', 'code': 'def register_vcs_ha...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQPA_ONLY_MCA = py23long(3)
0
{'name': 'Standardizer.__init__@scopy/ScoPretreat/pretreatutil.py', 'description': 'Initialize a Standardizer with optional custom parameters.\n\n:param normalizations: A list of Normalizations to apply (default: :data:`~molvs.normalize.NORMALIZATIONS`).\n:param acid_base_pairs: A list of AcidBasePairs for competitive ...
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': 'LoggerPlugin.call@osquery/logger_plugin.py', 'description': 'Internal routing for this plugin type.\n\nDo not override this method.', 'signature': 'def call(self, context):'}</s>{'name': 'ExtensionResponse@osquery/extensions/ttypes.py', 'description': 'Attributes:\n - status\n - response', 'base_classes': ['o...
1
{'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': 'rpyFromMat@utils/mc_log_gui/mc_log_ui/mc_log_plotcanvas.py', 'description': 'Same as mc_rbdyn::rpyFromMat.', 'signature': 'def rpyFromMat(E):'}</s>{'name': 'PlotPolygonAxis@utils/mc_log_gui/mc_log_ui/mc_log_plotcanvas.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'methods': [{'name': 'PlotPolyg...
0
{'name': 'replace_string@yaql/standard_library/regex.py', 'description': ':yaql:replace\n\nReturns the string obtained by replacing the leftmost non-overlapping\nmatches of regexp in string by the replacement repl, where the latter is\nonly string-type.\n\n:signature: string.replace(regexp, repl, count => 0)\n:receiver...
0
{'name': 'PropKB.retract@Projects/2_Classical Planning/aimacode/logic.py', 'description': "Remove the sentence's clauses from the KB.", 'signature': 'def retract(self, sentence):'}</s>{'name': 'PropKB@Projects/2_Classical Planning/aimacode/logic.py', 'description': 'A KB for propositional logic. Inefficient, with no in...
1
{'name': 'getShutterSetting@source/pi-timolo.py', 'description': 'Calculate a shutter speed based on image pixel average', 'signature': 'def getShutterSetting(pxAve):'}</s>{'name': 'shut2sec@source/pi-timolo.py', 'description': 'Convert camera shutter speed setting to string', 'code': 'def shut2sec(shutspeed):\n """...
0
{'name': 'TestObjectsE2E.test_create_alias_a_record@e2e_tests/test_objects.py', 'description': 'Create two A records with different names, but pointing to the same\nipv4addr', 'signature': 'def test_create_alias_a_record(self):'}</s>{'name': 'Filtermac@infoblox_client/objects.py', 'description': "Filtermac: DHCP MAC Ad...
0
{'name': 'HTTPAdapter.send@Retired Content/MimeCast/SumoLogic-Mimecast-Data-Collection/requests/adapters.py', 'description': 'Sends PreparedRequest object. Returns Response object.\n\n:param request: The :class:`PreparedRequest <PreparedRequest>` being sent.\n:param stream: (optional) Whether to stream the request cont...
0
{'name': 'tag_approved@src/oca_github_bot/tasks/tag_approved.py', 'description': 'Add the ``approved`` tag to the given PR if conditions are met.\n\nRemove it if conditions are not met.', 'signature': 'def tag_approved(org, repo, pr, dry_run=False):'}</s>{'name': 'BranchNotFoundError@src/oca_github_bot/github.py', 'des...
0
{'name': 'start_extension@osquery/management.py', 'description': 'Start your extension by communicating with osquery core and starting\na thrift server.\n\nKeyword arguments:\nname -- the name of your extension\nversion -- the version of your extension\nsdk_version -- the version of the osquery SDK used to build this e...
0
{'name': 'createEntity@code/wikibase/api/load_csv.py', 'description': 'dataDict = {\n "labels":{\n "en":{"language":"en","value":"Fred Pig"},\n "es":{"language":"es","value":"Puerco Frederico"}\n },\n "descriptions":{\n "en":{"language":"en","value":"a fake superhero character"}\n ...
0
{'name': 'CScript.raw_iter@test/functional/test_framework/script.py', 'description': 'Raw iteration\n\nYields tuples of (opcode, data, sop_idx) so that the different possible\nPUSHDATA encodings can be accurately distinguished, as well as\ndetermining the exact opcode byte indexes. (sop_idx)', 'signature': 'def raw_ite...
0
{'name': 'train@ddparser/run.py', 'description': 'Train', 'signature': 'def train(env):'}</s>bos = "<bos>"
0
{'name': 'Client.login_via_device_flow@SalesforcePy/sfdc.py', 'description': 'Performs OAuth device flow end-to-end and returns final authentication response if successful. Raises `SFDCRequestException` otherwise.\n\n:param: **kwargs: kwargs\n:type: **kwargs: dict\n:return: Authentication response\n:rtype: (dict, devic...
0
{'name': 'Record.remove@shingetsu/cache.py', 'description': 'Remove record.\n\nThe record is removed from cache,\nbut do not removed from file-system.', 'signature': 'def remove(self):'}</s>{'name': 'SocketIO@shingetsu/node.py', 'description': 'Wrapper for SimpleGzipFile and URLopener.\n ', 'base_classes': [], 'meth...
0
{'name': 'Workflow.last_version_run@src/workflow/workflow.py', 'description': 'Return version of last version to run (or ``None``).\n\n.. versionadded:: 1.9.10\n\n:returns: :class:`~workflow.update.Version` instance\n or ``None``', 'signature': 'def last_version_run(self):'}</s>{'name': 'JSONSerializer@src/workflow/...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIACF_CALL_TYPE = 1361
0
{'name': 'filter_decimate_chirp@echopype/calibrate/ek80_complex.py', 'description': 'Filter and decimate the transmit replica for one channel.\n\nParameters\n----------\ncoeff_ch : dict\n a dictionary containing filter coefficients and decimation factors for ``ch_id``\ny_ch : np.array\n chirp from _tapered_chirp\...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQQMOPT_REPLY = 2
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': 'View.pick_areas@picasso/gui/render.py', 'description': 'Finds the areas of all current picks in um^2.\n\nReturns\n-------\nareas : np.1darray\n Areas of all picks.', 'signature': 'def pick_areas(self):'}</s>{'name': 'point_intersect_2d@picasso/aim.py', 'description': 'Converts target coordinates into a 1D ...
0
{'name': 'run@run_prediction.py', 'description': 'Loads model from checkpoint or from model name and runs inference on the input_obj.\nDisplays results as a pandas DataFrame object.\nIf a dest_file is given, it saves the results to a txt file.', 'signature': 'def run(model_name, input_obj, dest_file, from_ckpt, device=...
1
{'name': 'PFOp._from_string@pf/rule.py', 'description': 'Initalize a new instance from a string.', 'signature': 'def _from_string(self, operation):'}</s>{'name': 'PFObject@pf/_base.py', 'description': 'Base class for wrapper objects around Structures.', 'base_classes': ['object'], 'methods': [{'name': 'PFObject.__init_...
0
{'name': 'PumpEvents@comtypes/client/_events.py', 'description': "This following code waits for 'timeout' seconds in the way\nrequired for COM, internally doing the correct things depending\non the COM appartment of the current thread. It is possible to\nterminate the message loop by pressing CTRL+C, which will raise\...
0
{'name': 'inception_resnet_v1@facetool/resnet.py', 'description': "Creates the Inception Resnet V1 model.\nArgs:\n inputs: a 4-D tensor of size [batch_size, height, width, 3].\n num_classes: number of predicted classes.\n is_training: whether is training or not.\n dropout_keep_prob: float, the fraction to keep befo...
0
{'name': 'PretrainingModel._get_masked_lm_output@araelectra/run_pretraining.py', 'description': 'Masked language modeling softmax layer.', 'signature': 'def _get_masked_lm_output(self, inputs: pretrain_data.Inputs, model):'}</s>{'name': 'AdamWeightDecayOptimizer@araelectra/model/optimization.py', 'description': 'A basi...
0
{'name': 'TestDecode.testDecodeBadUTF8@src/tests/testXmlEncodingDecode.py', 'description': 'Ensure bad UTF-8 is flagged as such, but still decoded.', 'signature': 'def testDecodeBadUTF8(self):'}</s>{'name': 'InvalidMediaRestriction@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['Error'], 'm...
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>{'name': 'validate_answer_file_options@packstack/installer/run_setup.py', 'description': 'DOCSTRING', 'code': "def validat...
0
{'name': 'athena_source@05_explore/data-wrangler/99_GENERATED_Python_Code.py', 'description': 'Represents a source that handles Athena.\n\nNote: Input dataset_definition is a Mohave specific dataset definition and is different from Processing Job\ndataset definition.', 'signature': 'def athena_source(spark, mode, datas...
0
{'name': 'noncritical@PFERD/crawl/crawler.py', 'description': "Catches and logs a few noncritical exceptions occurring during the function\ncall, mainly CrawlWarning.\n\nIf any exception occurs during the function call, the crawler's error_free\nvariable is set to False. This includes noncritical exceptions.\n\nWarning...
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>MQMCEV_DEST_INTERFACE_FAILURE = 120
0
{'name': 'lava_cell_op@self_organising_systems/biomakerca/extensions/eruption.py', 'description': 'Create the exclusive function of LAVA cells.\n\nLAVA expires after a minimum age.\nLAVA has a falling-sand property. But, if it cannot fall, it then may\nburn nearby burnable cells (making them FIRE).', 'signature': 'def ...
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': 'b_index@tksheet/functions.py', 'description': 'Designed to be a faster way of finding the index of an int\nin a sorted list of ints than list.index()', 'signature': 'def b_index(sorted_seq: Sequence[int], num_to_index: int) -> int:'}</s>{'name': 'span_dict@tksheet/functions.py', 'description': 'DOCSTRING', 'c...
0
{'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...
1
{'name': 'pca@16.PCA/PCA.py', 'description': 'given a normlized matrix X, each of whose column is a sample\nthe dimension of the principle component, k\nreturn the principle component matrix', 'signature': 'def pca(X, k=5):'}</s>{'name': 'entropy@utils.py', 'description': 'DOCSTRING', 'code': 'def entropy(p):\n s = ...
0
{'name': 'Slabel.cutpic@jamscreenshot.py', 'description': '裁剪图片,0:正常截图保存模式, 1:另存为模式, 2:内部调用保存图片, 3:内部调用,直接返回图片', 'signature': 'def cutpic(self, save_as=0): # 裁剪图片'}</s>{'name': 'OcrimgThread@jampublic.py', 'description': '文字识别线程', 'base_classes': ['QThread'], 'methods': [{'name': 'OcrimgThread.__init__@jampublic.py', ...
0
{'name': 'NodeList.tell_update@shingetsu/node.py', 'description': 'Tell update other nodes.\n\nIf node is None, node is myself.', 'signature': 'def tell_update(self, cache, stamp="", id="", node=None):'}</s>rss = "1"
0
{'name': 'Annotation.get_available_label_stores@wfdb/io/annotation.py', 'description': "Get the label store values that may be used\nfor writing this annotation.\n\nAvailable store values include:\n- the undefined values in the standard WFDB labels\n- the store values not used in the current\n annotation object.\n- th...
0
{'name': 'BaseUserInterface.update@ring/func/base.py', 'description': 'Execute the original function and `set` the result as the value.\n\nThis action is comprehensible as a concatenation of\n:meth:`ring.func.base.BaseUserInterface.execute` and\n:meth:`ring.func.base.BaseUserInterface.set`.\n\n:see: :meth:`ring.func.ba...
0
{'name': 'ProblemCache.__enter__@cameo/util.py', 'description': 'Allows problem cache to be used with a _with_ statement.\n\nExamples\n--------\nYou want to run room/lmoma for every single knockout.\n>>> with ProblemCache(model) as cache:\n>>> for reaction in reactions:\n>>> reaction.knock_out()\n>>> ...
0
{'name': 'InstallerManager.setup_installers@colcon_bundle/verb/_installer_manager.py', 'description': "Initialize all of the installer extension points.\n\nThis will initialize all\ninstaller extension points registered under\n'colcon_bundle.installer'\n\n:param context: Context from the calling verb", 'signature': 'de...
0
{'name': 'train_model@experiments/train.py', 'description': 'Starts appropriate training ', 'signature': 'def train_model(args, dataset, model, simulator):'}</s>{'name': 'create_scalar_dough@experiments/architectures/create_model.py', 'description': 'DOCSTRING', 'code': 'def create_scalar_dough(args, simulator):\n l...
0
{'name': 'EncoderLayer.forward@code/BeliefTrackerSlotQueryMultiSlotTransformer.py', 'description': 'Follow Figure 1 (left) for connections.', 'signature': 'def forward(self, x, mask):'}</s>{'name': 'PositionalEncoding@code/BeliefTrackerSlotQueryMultiSlotTransformer.py', 'description': 'Implement the PE function.', 'bas...
0
{'name': 'fill_filter_mosaics@grizli/pipeline/auto_script.py', 'description': 'Fill field mosaics with the average value taken from other filters so that all images have the same coverage\n\nParameters\n----------\nfield_root : str', 'signature': 'def fill_filter_mosaics(field_root):'}</s>{'name': 'fetch_wfpc2_calib@gr...
0