text
string
label
int64
{'name': 'PyTablesStorageBackend.load_fps@FPSim2/io/backends/pytables.py', 'description': 'Loads FP db file into memory.\n\nParameters\n----------\nfps_sort: bool\n Whether if the FPs should be sorted or not.\n\nReturns\n-------\nfps: numpy array\n Numpy array with the fingerprints.', 'signature': 'def load_fps(s...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQCA_LDAP_BASE_DN_USERS = 2126
0
{'name': 'TestRaspisump.test_water_reading@tests/test_sump.py', 'description': 'Test that a proper reading is being returned.', 'signature': 'def test_water_reading(self):'}</s>{'name': 'get_last_alert_time@raspisump/heartbeat.py', 'description': 'Retrieve the last alert time string from logfile', 'code': 'def get_last...
0
{'name': 'transform_npc@src/dsl/src/dsl_parser/transformers.py', 'description': "S contains several objects of the form ('type', <value>), where\nvalue is dependent upon the type. This function creates a dictionary\nbased on the key or type, and also places all items into their own list\nfor convenience.", 'signature':...
0
{'name': 'DASourceFileLoader.get_code@da/importer/py36.py', 'description': 'Concrete implementation of InspectLoader.get_code.\n\nReading of bytecode requires path_stats to be implemented. To write\nbytecode, set_data must also be implemented.', 'signature': 'def get_code(self, fullname):'}</s>{'name': '_set_node@da/co...
0
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>PFRULE_FRAGMENT = 2
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIACF_ORIGINAL_LENGTH = 1251
0
{'name': 'Test.test_gen_enum_element@tools/InterfaceGenerator/test/generator/generators/test_SmartFactoryBase.py', 'description': 'Test generation of the single enum element.\n\nVerifies correct generation of the single enum element.', 'signature': 'def test_gen_enum_element(self):'}</s>DESCRIPTION = [u"Description Lin...
1
{'name': 'build_pspnet_ade20k_prior@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', 'signature': "def build_pspnet_ade20k_prior(nb_classes, inputs, activation='softmax', is_training=True):"}</s>{'name': 'build_pspnet_prior@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', 'code...
0
{'name': '_lookup_module@dill/session.py', 'description': 'lookup name or id of obj if module is imported', 'signature': 'def _lookup_module(modmap, name, obj, main_module):'}</s>IMPORTED_AS_TYPES = (ModuleType, TypeType, FunctionType, MethodType, BuiltinMethodType)
1
{'name': 'FileInfo.RepositoryName@third_party/cpplint/cpplint.py', 'description': 'FullName after removing the local path to the repository.\n\nIf we have a real absolute path name here we can try to do something smart:\ndetecting the root of the checkout and truncating /path/to/checkout from\nthe name so that we get h...
0
{'name': 'FollowingManager.add_follower@friendship/models.py', 'description': "Create 'follower' follows 'followee' relationship", 'signature': 'def add_follower(self, follower, followee):'}</s>AUTH_USER_MODEL = getattr(settings, "AUTH_USER_MODEL", "auth.User")
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': 'EncoderDecoderTests._test_pipeline@baselines/seq2seq_attention_copy/seq2seq/test/models_test.py', 'description': 'Helper function to test the full model pipeline.\n ', 'signature': 'def _test_pipeline(self, mode, params=None):'}</s>{'name': 'ParallelTextAndMaskCopyingPipeline@baselines/seq2seq_attention_co...
0
{'name': 'MidiStatus.get_columns@robopianist/viewer/application.py', 'description': 'Returns the text to display in two columns.', 'signature': 'def get_columns(self):'}</s>_NEXT_LABELING_MODE = user_input.KEY_F7
0
{'name': 'default_frequencies@config/parse.py', 'description': 'Get frequencies as the maximum of the upper levels.\n\n:param cores: the list of cpu cores\n:param caches: the dictionary of caches', 'signature': 'def default_frequencies(cores, caches):'}</s>{'name': 'parse_config@config/parse.py', 'description': 'This i...
0
{'name': 'PCFExecute.__init__@code/pymqi/__init__.py', 'description': "PCFExecute(name = '')\n\nConnect to the Queue Manager 'name' (default value '') ready\nfor a PCF command. If name is a QueueManager instance, it is\nused for the connection, otherwise a new connection is made ", 'signature': 'def __init__(self, name...
0
{'name': 'DiscreteFunc.__init__@pyspike/DiscreteFunc.py', 'description': 'Constructs the discrete function.\n\n:param x: array of length N defining the points at which the values are\n defined.\n:param y: array of length N degining the values at the points x.\n:param multiplicity: array of length N defining th...
1
{'name': 'AGraph.remove_node@pygraphviz/agraph.py', 'description': 'Remove the single node n.\n\nAttempting to remove a node that isn\'t in the graph will produce\nan error.\n\n>>> import pygraphviz as pgv\n>>> G = pgv.AGraph()\n>>> G.add_node("a")\n>>> G.remove_node("a")', 'signature': 'def remove_node(self, n):'}</s>...
0
{'name': 'main@tools/yapf/yapf/__init__.py', 'description': 'Main program.\n\nArguments:\n argv: command-line arguments, such as sys.argv (including the program name\n in argv[0]).\n\nReturns:\n 0 if there were no changes, non-zero otherwise.\n\nRaises:\n YapfError: if none of the supplied files were Python files...
0
{'name': 'write_entry@code/utils/osg.py', 'description': ':param entry:\n:return:', 'signature': 'def write_entry(entry, overwrite=True):'}</s>{'name': 'write_entries@code/utils/osg.py', 'description': ':return:', 'code': 'def write_entries(entries):\n """\n\n :return:\n """\n\n # iterate over all entries\n...
0
{'name': 'TestAlgorithmsRFC7520.test_rsapss_verify_should_return_true_for_test_vector@tests/test_algorithms.py', 'description': 'This test verifies that RSA-PSS verification works with a known good\nsignature and key.\n\nReference: https://tools.ietf.org/html/rfc7520#section-4.2', 'signature': 'def test_rsapss_verify_s...
0
{'name': 'main@tor/cli/main.py', 'description': 'Run ToR.', 'signature': 'def main(ctx: Context, debug: bool, noop: bool) -> None:'}</s>__version__ = "?????"
0
{'name': 'test_rewrite_image@geetest_online/test/testgeetestjs.py', 'description': 'load image from file, recombined to new image by offset array', 'signature': 'def test_rewrite_image(image_name, offset_array):'}</s>{'name': 'adjust_distance@geetest_online/test/testgeetestjs.py', 'description': '滑块slice图片的尺寸:59*50,上下左...
0
{'name': 'get_similar_image_from_query@6_AI-ML/2_gemini_LLM/notebooks/gemini-course/utils/intro_multimodal_rag_utils.py', 'description': 'Finds the top N most similar images from a metadata DataFrame based on a text query or an image query.\n\nArgs:\n project_id: The Project ID of the embedding model used for text o...
0
{'name': 'MemoryFindTestCase.test_memory_find@llvm-project/lldb/test/API/functionalities/memory/find/TestMemoryFind.py', 'description': "Test the 'memory find' command.", 'signature': 'def test_memory_find(self):'}</s>{'name': 'skipUnlessWindows@llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py', 'descript...
0
{'name': 'apply_along_axis@venv/Lib/site-packages/numpy/ma/extras.py', 'description': '(This docstring should be overwritten)', 'signature': 'def apply_along_axis(func1d, axis, arr, *args, **kwargs):'}</s>{'name': 'apply_over_axes@venv/Lib/site-packages/numpy/ma/extras.py', 'description': '(This docstring will be overw...
0
{'name': 'draw_isobars@pymeteo/skewt.py', 'description': 'Plot isobars on axes\n\n:parameter axes: The axes to draw on\n:type axes: :py:class:`matplotlib.axes`\n\nThis function draws isobars at intervals of 2*dp.', 'signature': 'def draw_isobars(axes):'}</s>dry_adiabats = np.arange(-40,210,10)
0
{'name': 'ConsoleWidget._set_completion_widget@qtconsole/console_widget.py', 'description': 'Set gui completion widget.\n ', 'signature': 'def _set_completion_widget(self, gui_completion):'}</s>{'name': 'is_letter_or_number@qtconsole/console_widget.py', 'description': 'Returns whether the specified unicode chara...
0
{'name': 'BaseRequest.POST@src/back/kite/bottle.py', 'description': 'The values of :attr:`forms` and :attr:`files` combined into a single\n:class:`FormsDict`. Values are either strings (form values) or\ninstances of :class:`cgi.FieldStorage` (file uploads).', 'signature': 'def POST(self):'}</s>{'name': '_lscmp@src/back...
0
{'name': 'TrainableIvectorExtractor.add_config@montreal_forced_aligner/ivector/trainer.py', 'description': 'Add a trainer to the pipeline\n\nParameters\n----------\ntrain_type: str\n Type of trainer to add, one of "dubm", "ivector", or "plda"\nparams: dict[str, Any]\n Parameters to initialize trainer\n\nRaises\n-...
0
{'name': 'Pattern.__init__@svgwrite/pattern.py', 'description': ':param 2-tuple insert: base point of the pattern (**x**, **y**)\n:param 2-tuple size: size of the pattern (**width**, **height**)\n:param inherit: pattern inherits properties from `inherit` see: **xlink:href**', 'signature': 'def __init__(self, insert=Non...
1
{'name': 'User.email@marge/user.py', 'description': "Only visible to admins and 'self'. Sigh.", 'signature': 'def email(self):'}</s>{'name': '_prepare_params@marge/gitlab.py', 'description': 'DOCSTRING', 'code': "def _prepare_params(params):\n def process(val):\n if isinstance(val, bool):\n return ...
0
{'name': 'CalrissianCommandLineJob.report@calrissian/job.py', 'description': 'Convert the k8s-specific completion result into a report and submit it\n:param completion_result: calrissian.k8s.CompletionResult', 'signature': 'def report(self, completion_result: CompletionResult, disk_bytes):'}</s>{'name': 'k8s_safe_name@...
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': 'get_iclabel_features@mne_icalabel/iclabel/features.py', 'description': 'Generate the features for ICLabel neural network.\n\nParameters\n----------\ninst : Raw | Epochs\n MNE Raw/Epoch instance with data array in Volts.\nica : ICA\n MNE ICA decomposition.\n\nReturns\n-------\ntopo : array of shape (32, ...
1
{'name': 'BPF.__init__@src/python/bcc/__init__.py', 'description': 'Create a new BPF module with the given source code.\n\nNote:\n All fields are marked as optional, but either `src_file` or `text`\n must be supplied, and not both.\n\nArgs:\n src_file (Optional[str]): Path to a source file for the module\n ...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQQMF_CLUSSDR_USER_DEFINED = py23long(0x00000008)
0
{'name': 'environmental_contours@mhkit/wave/contours.py', 'description': "Returns a Dictionary of x1 and x2 components for each contour\nmethod passed. A method may be one of the following:\nPrincipal Component Analysis, Gaussian, Gumbel, Clayton, Rosenblatt,\nnonparametric Gaussian, nonparametric Clayton,\nnonparamet...
1
{'name': 'set_recall_param@mmdet/core/evaluation/recall.py', 'description': 'Check proposal_nums and iou_thrs and set correct format.\n ', 'signature': 'def set_recall_param(proposal_nums, iou_thrs):'}</s>{'name': '_recalls@mmdet/core/evaluation/recall.py', 'description': 'DOCSTRING', 'code': 'def _recalls(all_ious,...
0
{'name': 'scope_vars@agents/bdq/common/tf_util.py', 'description': 'Get variables inside a scope\nThe scope can be specified as a string\n\nParameters\n----------\nscope: str or VariableScope\n scope in which the variables reside.\ntrainable_only: bool\n whether or not to return only the variables that were marke...
0
{'name': 'ProcessFileData@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: An array...
0
{'name': 'SingleSubjectWindow.CB_line_text@src/python_scripts/afnipy/gui_uber_subj.py', 'description': 'call-back for text updates in the level 3 gbox', 'signature': 'def CB_line_text(self):'}</s>{'name': 'num_leading_line_spaces@src/python_scripts/afnipy/afni_util.py', 'description': "count the number of leading non-w...
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': 'intersect_dow...
0
{'name': 'predict_par@gns/train_multinode.py', 'description': 'Predict rollouts.\n\nArgs:\n simulator: Trained simulator if not will undergo training.', 'signature': 'def predict_par(rank):'}</s>{'name': 'train@gns/train_multinode.py', 'description': 'Train the model.\n\nArgs:\n rank: local rank\n world_size: total ...
0
{'name': 'check_conditions@07_train/privacy/research/pate_2018/smooth_sensitivity.py', 'description': 'Checks conditions C5 and C6 (Section B.4.2 in Appendix).', 'signature': 'def check_conditions(sigma, m, order):'}</s>_logq0_cache = {}
0
{'name': 'patterns@eval/enumerate.py', 'description': 'Takes a numerical pattern and generates actual patterns from it.', 'signature': 'def patterns('}</s>{'name': 'log_all_exceptions@utils.py', 'description': 'Decorator to log all local and wrapped worker exceptions to given logger.\n\nUseful to wrap your main functio...
0
{'name': 'test@analysis/mmd.py', 'description': 'Kernel two-sample test.\n\nThis is a convenience wrapper function to compute the MMD estimate and perform the asymptotic\nlinear test (if `linear=True`), with human-readable output. It is equivalent to calling `mmd2()`\nfollowed by `asymptotic_linear_test()`. See their d...
0
{'name': '_AddMessageMethods@third_party/dawn/third_party/protobuf/python/google/protobuf/internal/python_message.py', 'description': 'Adds implementations of all Message methods to cls.', 'signature': 'def _AddMessageMethods(message_descriptor, cls):'}</s>{'name': 'StringEncoder@third_party/dawn/third_party/protobuf/p...
0
{'name': 'apply@tools/cloud_functions/gcs_event_based_ingest/gcs_ocn_bq_ingest/common/utils.py', 'description': 'Apply an incremental batch to the target BigQuery table via an asynchronous\nload job or external query.\n\nArgs:\n gcs_client: storage.Client\n bq_client: bigquery.Client\n success_blob: storage.Bl...
0
{'name': 'detect_classifier@sklearn_pmml_model/auto_detect/base.py', 'description': 'Detect the type of classifier 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_cl...
0
{'name': 'circulation_configuration@pymultimatic/api/urls.py', 'description': 'Url to handle :class:`~pymultimatic.model.component.Circulation`\nconfiguration.', 'signature': 'def circulation_configuration(**kwargs: Any) -> str:'}</s>_HOT_WATER_TIMEPROGRAM = _HOT_WATER_CONFIGURATION + "/timeprogram"
0
{'name': '_CommitPicker_from_uri@python-sdk/pachyderm_sdk/api/pfs/_additions.py', 'description': 'Parses the following format:\n [project/]repo@branch-or-commit\nwhere @branch-or-commit can take the form:\n @branch\n @branch=commit\n @commit\nAdditionally @branch-or-commit can be augmented in the following ...
0
{'name': 'send_confirmation@flask_security/views.py', 'description': 'View function which sends confirmation instructions.', 'signature': 'def send_confirmation():'}</s>_datastore = LocalProxy(lambda: _security.datastore)
0
{'name': 'MaskedArray.__imul__@venv/Lib/site-packages/numpy/ma/core.py', 'description': 'Multiply self by other in-place.', 'signature': 'def __imul__(self, other):'}</s>tanh = _MaskedUnaryOperation(umath.tanh)
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': 'MachoUnwindInfo.__init__@dwex/machounwind.py', 'description': 'section_data:\n A bytes or a Buffer-compatible object with the unwind_info section contents\n\ncputype:\n The machine architecture code from the MachO file or fat slice header\n\nbig_endian:\n True for a big-endian MachO file or fat slice...
0
{'name': '_search_coarse@source/tomopy/recon/rotation.py', 'description': 'Coarse search for finding the rotation center.', 'signature': 'def _search_coarse(sino, smin, smax, ratio, drop, ncore=None):'}</s>{'name': 'write_center@source/tomopy/recon/rotation.py', 'description': "Save images reconstructed with a range of...
0
{'name': 'DTSExperiment.__init__@dts/utils/experiments.py', 'description': ':param ex_name: Name of the experiment\n:param db_name: Name of the db where the results will be stored\n:param kwargs:', 'signature': 'def __init__(self, ex_name, db_name, **kwargs):'}</s>{'name': 'main_wrapper@dts/utils/experiments.py', 'desc...
0
{'name': 'generate_config@gcp/deployment-packages/single-byol/check-point-vsec--byol.py', 'description': 'Creates the gateway.', 'signature': 'def generate_config(context):'}</s>LICENSE = "byol"
1
{'name': 'init_pairing_fock@doc/LectureNotes/_build/jupyter_execute/cc.py', 'description': 'initializes the Fock matrix of the pairing model\n\nparam delta: Single-particle spacing, as in Eq. (8.41)\nparam g: pairing strength, as in eq. (8.42)\nparam pnum: number of particle states\nparam hnum: number of hole states\n\...
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': 'make_utxo@qa/rpc-tests/replace-by-fee.py', 'description': 'Create a txout with a given amount and scriptPubKey\n\nMines coins as needed.\n\nconfirmed - txouts created will be confirmed in the blockchain;\n unconfirmed otherwise.', 'signature': 'def make_utxo(node, amount, confirmed=True, scriptPubK...
0
{'name': 'PFDivert._to_struct@pf/rule.py', 'description': 'Convert a PFDivert object to a divert structure.', 'signature': 'def _to_struct(self):'}</s>{'name': 'hfsc_class_stats@pf/_struct.py', 'description': 'DOCSTRING', 'base_classes': ['Structure'], 'methods': []}
0
{'name': 'TestForms.test_one_day_leave@tests/test_forms.py', 'description': 'Test application for one day leave.', 'signature': 'def test_one_day_leave(self):'}</s>{'name': 'StaffProfile@small_small_hr/models.py', 'description': 'StaffProfile model class.\n\nExtends auth.User and adds more fields', 'base_classes': ['Ti...
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': 'save_class_activation_images@src/misc_functions.py', 'description': ' Saves cam activation map and activation map on the original image\n\nArgs:\n org_img (PIL img): Original image\n activation_map (numpy arr): Activation map (grayscale) 0-255\n file_name (str): File name of the exported image', '...
0
{'name': 'Status.__init__@robopianist/viewer/application.py', 'description': 'Instance initializer.\n\nArgs:\n time_multiplier: Instance of util.TimeMultiplier.\n pause: An observable pause subject, instance of util.ObservableFlag.\n frame_timer: A Timer instance counting duration of frames.', 'signature': 'def __in...
1
{'name': 'get_hostname_from_ip_addr@core/friendly_organizer.py', 'description': 'Returns the hostname associated with an IP address.\n\nReturns an empty string if the hostname is not found.', 'signature': 'def get_hostname_from_ip_addr(ip_addr: str, in_memory_only=False) -> str:'}</s>DATA_DONATION_URL = INSPECTOR_DATA_...
0
{'name': 'PFGid._str_to_num@pf/rule.py', 'description': 'Convert a string to a numeric group ID.', 'signature': 'def _str_to_num(self, s):'}</s>PFSYNC_FLAG_SRCNODE = 4
0
{'name': 'self_generate@django_countries/data.py', 'description': 'The following code can be used for self-generation of this file.\n\nIt requires a UTF-8 CSV file containing the short ISO name and two letter\ncountry code as the first two columns.', 'signature': 'def self_generate('}</s>{'name': 'check_flags@django_co...
0
{'name': 'generation_step_callback@gp_learner.py', 'description': 'Called after each generation step cycle in train().\n\n:param run: number of the current run\n:param gtp_scores: gtp_scores as of start of this run\n:param user_callback_per_generation: a user provided callback that is called\n after each training ge...
0
{'name': 'dashboard_list_tagged@tessera-server/tessera/views_api.py', 'description': 'Listing for a set of dashboards with a tag applied. Returns just\nthe metadata, not the definitions.', 'signature': 'def dashboard_list_tagged(tag):'}</s>{'name': 'EntityEncoder@tessera-server/tessera/client/api/model.py', 'descriptio...
0
{'name': 'CrashDuringStepTestCase.test_step_inst_with@llvm-12.0.0-project/lldb/test/API/functionalities/thread/crash_during_step/TestCrashDuringStep.py', 'description': 'Test thread creation during step-inst handling.', 'signature': 'def test_step_inst_with(self):'}</s>SOURCE_DISPLAYED_CORRECTLY = "Source code displaye...
0
{'name': 'get_cmdclass@versioneer.py', 'description': 'Get the custom setuptools/distutils subclasses used by Versioneer.', 'signature': 'def get_cmdclass():'}</s>CONFIG_ERROR = " setup.cfg is missing the necessary Versioneer configuration. You need a section like: [versioneer] VCS = git style = pep440 versionfile...
0
{'name': 'getleak@2018/Pwn/feedback/Admin/exploit.py', 'description': 'Heap Leak ', 'signature': 'def getleak():'}</s>ct_p = ct[15]
0
{'name': 'second_pass_threshold@avgn/segment_song/wav_to_syllables.py', 'description': 'The first pass threshold finds bouts based upon silences. The second pass, sets a more liberal threshold, based upon stretches of audio\nwhich are controlled for the expected bout rate', 'signature': 'def second_pass_threshold(onset...
0
{'name': 'TestPraetorian.test_refresh_jwt_token@tests/test_base.py', 'description': "This test::\n * verifies that the refresh_jwt_token properly generates\n a refreshed jwt token.\n * ensures that a token who's access permission has not expired may\n not be refreshed.\n * ensures that a token who's ...
0
{'name': 'DetectionNetwork.postprocess_fastrcnn@libs/networks/build_whole_network.py', 'description': ':param rois:[-1, 4]\n:param bbox_ppred: [-1, (cfgs.Class_num+1) * 4]\n:param scores: [-1, cfgs.Class_num + 1]\n:return:', 'signature': 'def postprocess_fastrcnn(self, rois, bbox_ppred, scores, img_shape):'}</s>FAST_RC...
0
{'name': 'read_cif_scaled@Tutorial ImageStream/cif_to_rtdc_v07.py', 'description': 'Read the images from an Amnis ImageStream file (.cif)\n\nParameters\n----------\nreader: reader object (reader = bioformats.formatreader.get_image_reader("tmp", path=path_cif))\nnumber_cells: int or np.inf\n Maximum number of images ...
1
{'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': 'precond_grad_kron@preconditioned_stochastic_gradient_descent.py', 'description': 'return preconditioned gradient using Kronecker product preconditioner P = kron_prod(Qr^T*Qr, Ql^T*Ql)\nEither Ql or Qr can be sparse, and the code can choose the right way to precondition the gradient\nGrad: (matrix) gradient', ...
0
{'name': 'clean_merged_flowlines@oggm/core/flowline.py', 'description': 'Order and cut merged flowlines to size.\n\nAfter matching flowlines were found and merged to one glacier directory\nthis function makes them nice:\nThere should only be one flowline per bed, so overlapping lines have to be\ncut, attributed to a an...
0
{'name': 'Race.is_battlegrounds_pool@hearthstone/enums.py', 'description': 'Whether this Race appears as a minion pool in Battlegrounds matches.', 'signature': 'def is_battlegrounds_pool(self):'}</s>{'name': 'Faction@hearthstone/enums.py', 'description': 'TAG_FACTION', 'base_classes': ['IntEnum'], 'methods': []}
0
{'name': '_get_tuple_type_str_and_dims@eth_utils/abi.py', 'description': 'Takes a JSON ABI type string. For tuple type strings, returns the separated\nprefix and array dimension parts. For all other strings, returns ``None``.', 'signature': 'def _get_tuple_type_str_and_dims(s: str) -> Optional[Tuple[str, Optional[str...
0
{'name': 'ParserElement.setDebugActions@tests/_lib_vendors/pkg_resources/_vendor/pyparsing.py', 'description': 'Enable display of debugging messages while doing pattern matching.', 'signature': 'def setDebugActions( self, startAction, successAction, exceptionAction ):'}</s>empty = Empty().setName("empty")
0
{'name': 'WandbLogger.log_epoch_metrics@utils.py', 'description': 'Log train/test metrics onto W&B.', 'signature': 'def log_epoch_metrics(self, metrics, commit=True):'}</s>{'name': '_get_momenta@utils.py', 'description': 'DOCSTRING', 'code': 'def _get_momenta(module, momenta):\n if issubclass(module.__class__, torch...
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': 'Rail.Zero@tools/calibration-96tof1/core/rail2.py', 'description': 'Moves toward from actual position in mm.\n:param steps: distance to move in mm.\n:type steps: int', 'signature': 'def Zero(self): '}</s>{'name': 'Rail@tools/calibration-96tof1/core/rail2.py', 'description': 'This class is used to provide c...
1
{'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': 'API.authenticate@mygeotab/api.py', 'description': 'Authenticates against the API server.\n\n:raise AuthenticationException: Raises if there was an issue with authenticating or logging in.\n:raise MyGeotabException: Raises when an exception occurs on the MyGeotab server.\n:raise TimeoutException: Raises when t...
1
{'name': 'Queue.get@code/pymqi/__init__.py', 'description': "Return a message from the queue. If the queue is not already\nopen, it is opened now with the option 'MQOO_INPUT_AS_Q_DEF'.\n\nmaxLength, if present, specifies the maximum length for the\nmessage. If the message received exceeds maxLength, then the\nbehavior ...
0
{'name': 'localhost@jupyter_client/localinterfaces.py', 'description': 'return ip for localhost (almost always 127.0.0.1)', 'signature': 'def localhost() -> str:'}</s>{'name': '_load_ips_netifaces@jupyter_client/localinterfaces.py', 'description': 'load ip addresses with netifaces', 'code': 'def _load_ips_netifaces() -...
0
{'name': 'pad_image@tools/visualization.py', 'description': 'Pad an image up to the target size.', 'signature': 'def pad_image(img, target_size):'}</s>{'name': 'visualize_prediction@tools/visualization.py', 'description': 'Visualize prediction.', 'code': 'def visualize_prediction(prediction):\n """Visualize predicti...
0
{'name': 'check_inbox@tor/core/inbox.py', 'description': 'Go through all the unread messages in the inbox.\n\nIt deliberately leaves mail which does not fit into either category so that it can\nbe read manually at a later point.\n\n:return: None.', 'signature': 'def check_inbox(cfg: Config) -> None:'}</s>UNCLAIM_PHRASE...
0
{'name': 'FPVal@src/api/python/z3/z3.py', 'description': 'Return a floating-point value of value `val` and sort `fps`.\nIf `ctx=None`, then the global context is used.\n\n>>> v = FPVal(20.0, FPSort(8, 24))\n>>> v\n1.25*(2**4)\n>>> print("0x%.8x" % v.exponent_as_long(False))\n0x00000004\n>>> v = FPVal(2.25, FPSort(8, 24...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRC_SELECTOR_ERROR = 2067
0
{'name': 'rule_name_from_k8s_source@k8s_snapshots/rule.py', 'description': 'Generates a name for a rule based on a kubernetes resource,\nwill consider:', 'signature': 'def rule_name_from_k8s_source('}</s>{'name': 'get_resource_or_none_sync@k8s_snapshots/kube.py', 'description': 'DOCSTRING', 'code': 'def get_resource_or...
0
{'name': '_AppHandler.__init__@jupyterlab/commands.py', 'description': 'Create a new _AppHandler object', 'signature': 'def __init__(self, options):'}</s>{'name': 'build_check@jupyterlab/commands.py', 'description': 'Determine whether JupyterLab should be built.\n\nReturns a list of messages.', 'code': 'def build_check...
0
{'name': 'mat2d.set_row_strlabs@src/python_scripts/afnipy/lib_mat2d_base.py', 'description': 'input a list of strings; must match number of mat rows', 'signature': 'def set_row_strlabs(self, L):'}</s>{'name': 'show_process_stack@src/python_scripts/afnipy/afni_util.py', 'description': 'print stack of processes up to ini...
0