text
string
label
int64
{'name': 'Attention.forward@model.py', 'description': 'PARAMS\n------\nattention_hidden_state: attention rnn last output\nmemory: encoder outputs\nprocessed_memory: processed encoder outputs\nattention_weights_cat: previous and cummulative attention weights\nmask: binary mask for padded data', 'signature': 'def forward...
0
{'name': 'MailChimp.__init__@mailchimp3/__init__.py', 'description': 'Initialize the class with your api_key and user_id and attach all of\nthe endpoints', 'signature': 'def __init__(self, *args, **kwargs):'}</s>{'name': 'ListSegmentMembers@mailchimp3/entities/listsegmentmembers.py', 'description': 'Manage list members...
1
{'name': 'validate_cmd@cjio/cjio.py', 'description': 'Validate the CityJSON: \n(1) against its schemas\n(2) against the (potential) Extensions schemas\n(3) extra validations\n\n(see https://github.com/cityjson/cjval#what-is-validated-exactly for details)\n\nThe Extensions in the files are fetched automatically.\n\n\x08...
0
{'name': 'TPUEstimator._augment_model_fn@baselines/models/xlnet/tpu_estimator.py', 'description': 'Returns a new model_fn, which wraps the TPU support.', 'signature': 'def _augment_model_fn(self, model_fn, train_cache_fn, eval_cache_fn, batch_axis):'}</s>{'name': '_verify_cross_hosts_transfer_size@baselines/models/xlne...
1
{'name': 'prim_generate_maze_cell@Perfect Maze/Maze_AnFay_Cell.py', 'description': '根据Prim算法,遍历网格生成迷宫,并且动态展示迷宫的生成过程\n开始时所有的网格(表示路的,和表示墙的)均看作墙,\n:param a: 迷宫的行数\n:param b: 迷宫的列数\n:param path: 是否添加路径,默认为Ture\n:return: 表示迷宫的数组', 'signature': 'def prim_generate_maze_cell(a, b, path=False):'}</s>Candidate_Wall_Color = "b"
1
{'name': 'executable_is_available@preview_generator/utils.py', 'description': 'Check if an executable is available in execution environment.\n\n:param executable_name: List or Tuple, or single command name\n:return: `True` if the exec if found, `False` otherwize', 'signature': 'def executable_is_available('}</s>{'name'...
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': 'write_recipe@bioconda_utils/bioconductor_skeleton.py', 'description': 'Write the meta.yaml and build.sh files. If the package is detected to be\na data package (bsed on the detected URL from Bioconductor), then also\ncreate a post-link.sh and pre-unlink.sh script that will download and\ninstall the package. I...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIA_SSL_FIPS_REQUIRED = 92
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': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIAMO_PUT_MAX_BYTES = 736
0
{'name': 'LambdaSupportTest.assert_contains_lambda_expression_in_m@baseline_tokenization/javalang/test/test_java_8_syntax.py', 'description': 'asserts that the given tree contains a method with the supplied\nmethod name containing a lambda expression.', 'signature': 'def assert_contains_lambda_expression_in_m('}</s>{'n...
0
{'name': 'initialize_chain@qa/rpc-tests/test_framework/util.py', 'description': 'Create a cache of a 200-block-long chain (with wallet) for MAX_NODES\nAfterward, create num_nodes copies from the cache', 'signature': 'def initialize_chain(test_dir, num_nodes, cachedir):'}</s>{'name': 'sync_mempools@qa/rpc-tests/test_fra...
0
{'name': '_export_polytope@contrib/xml/xmlio.py', 'description': 'Builds an XML tree from a polytope.\n\n@param poly:\n polytope to export\n@return:\n `None` (if parent is not `None`), or\n an xml tree', 'signature': 'def _export_polytope('}</s>__all__ = [ 'LtiSysDyn', 'PwaSysDyn', 'SwitchedSysDyn'...
0
{'name': 'PFOp._from_string@pf/rule.py', 'description': 'Initalize a new instance from a string.', 'signature': 'def _from_string(self, operation):'}</s>{'name': 'hfsc_class_stats@pf/_struct.py', 'description': 'DOCSTRING', 'base_classes': ['Structure'], 'methods': []}
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': 'ImputationKernel._get_candidate_preds_mice@miceforest/imputation_kernel.py', 'description': 'This function also records the candidate predictions', 'signature': 'def _get_candidate_preds_mice('}</s>{'name': 'stratified_continuous_folds@miceforest/utils.py', 'description': 'Create primitive stratified folds fo...
0
{'name': 'AddListView.get_queryset@ahmia/views.py', 'description': 'Retrieve the original queryset and filter it based on banned domains ', 'signature': 'def get_queryset(self):'}</s>{'name': 'xss_safe@ahmia/views.py', 'description': 'Validate that redirect URL is cross-site scripting safe ', 'code': 'def xss_safe(redi...
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': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQRC_RFH_PARM_ERROR = 2337
0
{'name': 'timolo@source/pi-timolo.py', 'description': 'Main motion and or motion tracking\ninitialization and logic loop', 'signature': 'def timolo():'}</s>bigImageWidth = int(stream_width * bigImage)
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': 'normalize_addr_str@scourgify/normalize.py', 'description': 'Normalize a complete or partial address string.\n\n:param addr_str: str containing address data.\n:type addr_str: str\n:param line2: optional str containing occupancy or sub-address data\n (eg: Unit, Apt, Lot).\n:type line2: str\n:param city: opti...
0
{'name': '_wanted_image_platforms@src/docker_python_nodejs/versions.py', 'description': 'Returns the supported image platforms for a distro\nFIXME: Enable linux/arm64 for alpine when:\n - https://github.com/nodejs/node/pull/45756 is fixed\n - https://github.com/nodejs/unofficial-builds adds builds for musl + arm64', ...
0
{'name': '_parse_config_file@pelicun/tools/DL_calculation.py', 'description': 'Parse and validate the config file for Pelicun.\n\nParameters\n----------\nconfig_path : str\n Path to the configuration file.\noutput_path : Path\n Directory for output files.\nauto_script_path : str\n Path to the auto-generation s...
0
{'name': 'Hub.handle_event@custom_components/hubitat/hub.py', 'description': 'Handle events received from the Hubitat hub.', 'signature': 'def handle_event(self, event: Event) -> None:'}</s>{'name': 'get_hub_short_id@custom_components/hubitat/util.py', 'description': 'DOCSTRING', 'code': 'def get_hub_short_id(hub: HasT...
0
{'name': '_NestingState.Update@runtimes/compiler-rt/lib/sanitizer_common/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: T...
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': 'Praetorian.authenticate@flask_praetorian/base.py', 'description': 'Verifies that a password matches the stored password for that username.\nIf verification passes, the matching user instance is returned', 'signature': 'def authenticate(self, username, password):'}</s>{'name': 'ConfigurationError@flask_praetor...
0
{'name': 'reduce_operand_types@codegen/x86_64.py', 'description': 'Combines operand types that differ only by a single operand together', 'signature': 'def reduce_operand_types(operand_types_list):'}</s>{'name': 'out_regs_init@codegen/x86_64.py', 'description': 'Generates initialization code for out_regs tuple', 'code'...
0
{'name': 'Afni1D.label_prefix_to_ints@src/python_scripts/afnipy/lib_afni1D.py', 'description': 'return a list of label indices, based on what is kept or dropped\n keep labels in their original order\n\n if keep_pre and one of keep_pre matches, keep\n if drop_pre and one of drop_pre matches, remove\n\nreturn 0 on ...
0
{'name': 'Message.to_pydict@src/betterproto/__init__.py', 'description': 'Returns a python dict representation of this object.\n\nParameters\n-----------\ncasing: :class:`Casing`\n The casing to use for key values. Default is :attr:`Casing.CAMEL` for\n compatibility purposes.\ninclude_default_values: :class:`bool...
0
{'name': '_LoadConfigModule@ml_collections/config_flags/config_flags.py', 'description': 'Loads a script from external file specified by path.\n\nUnprefixed path is looked for in the current working directory using\nregular file open operation. This should work with relative config paths.\n\nArgs:\n name: Name of the ...
0
{'name': 'cluster_anchors@lib/rpn_util.py', 'description': 'Clusters the anchors based on the imdb boxes (in 2D and/or 3D).\n\nGenerally, this method does a custom k-means clustering using 2D IoU\nas a distance metric.', 'signature': 'def cluster_anchors(feat_stride, anchors, test_scale, imdb, lbls, ilbls, anchor_ratio...
0
{'name': 'calibrate_extrinsics@Pose2Sim/calibration.py', 'description': 'Calibrates extrinsic parameters\nfrom an image or the first frame of a video\nof a checkerboard or of measured clues on the scene\n\nINPUTS:\n- calib_dir: directory containing intrinsic and extrinsic folders, each populated with camera directories...
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>{'name': 'Td@pymeteo/thermo.py', 'description': 'DOCSTRING', '...
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': 'MikrotikCoordinator.option_sensor_environment@custom_components/mikrotik_router/coordinator.py', 'description': 'Config entry option to not track ARP.', 'signature': 'def option_sensor_environment(self):'}</s>_LOGGER = logging.getLogger(__name__)
0
{'name': 'stop_flops_count@src/utils/flops_counter.py', 'description': 'A method that will be available after add_flops_counting_methods() is called\non a desired net object.\nStops computing the mean flops consumption per image.\nCall whenever you want to pause the computation.', 'signature': 'def stop_flops_count(sel...
0
{'name': 'BreakpointConditionsTestCase.breakpoint_conditions@llvm-project/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py', 'description': "Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.", 'signature': 'def breakpoint_conditions(self, inline=False):'}</s>...
0
{'name': 'Circuit.eval@discopy/quantum/circuit.py', 'description': "Evaluate a circuit on a backend, or simulate it with numpy.\n\nParameters\n----------\nothers : :class:`discopy.quantum.circuit.Circuit`\n Other circuits to process in batch.\nbackend : pytket.Backend, optional\n Backend on which to run the circu...
0
{'name': 'CalculateTestLists@third_party/include/protobuf-2.6.1/gtest/test/gtest_shuffle_test.py', 'description': 'Calculates the list of tests run under different flags.', 'signature': 'def CalculateTestLists():'}</s>{'name': 'GTestShuffleUnitTest@third_party/include/protobuf-2.6.1/gtest/test/gtest_shuffle_test.py', '...
0
{'name': 'attention_layer@baseline/bert/modeling.py', 'description': 'Performs multi-headed attention from `from_tensor` to `to_tensor`.\n\nThis is an implementation of multi-headed attention based on "Attention\nis all you Need". If `from_tensor` and `to_tensor` are the same, then\nthis is self-attention. Each timeste...
0
{'name': 'PythonModuleSourceFileGenerator._GenerateTypeSourceFileTypeObjectMethods@yaldevtools/source_generators/python_module.py', 'description': 'Generates the type object methods for a Python type source file.\n\nArgs:\n project_configuration (ProjectConfiguration): project configuration.\n template_mappings (dict...
0
{'name': 'PythonModuleSourceFileGenerator._GetSequenceType@yaldevtools/source_generators/python_module.py', 'description': 'Determines if the function prototype implies a sequence type.\n\nArgs:\n python_function_prototype (PythonTypeObjectFunctionPrototype): Python\n type object function prototype.\n\nReturns:\n...
0
{'name': 'Lexer.match@mako/lexer.py', 'description': 'compile the given regexp, cache the reg, and call match_reg().', 'signature': 'def match(self, regexp, flags=None):'}</s>{'name': 'Tag@mako/parsetree.py', 'description': 'abstract base class for tags.\n\n<%sometag/>\n\n<%someothertag>\n stuff\n</%someothertag>', ...
0
{'name': 'CharBasedSeq2SeqGenerator.__init__@shorttext/generators/seq2seq/charbaseS2S.py', 'description': 'Instantiate the class.\n\nIf no one-hot encoder passed in, no compilation will be performed.\n\n:param sent2charvec_encoder: the one-hot encoder\n:param latent_dim: number of latent dimension\n:param maxlen: maxim...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQCACH_SSL_PEER_NAME = 3545
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>sim_boolparam_sha...
0
{'name': 'Bottle._cast@TDScanner/sqlmap/thirdparty/bottle/bottle.py', 'description': 'Try to convert the parameter into something WSGI compatible and set\ncorrect HTTP headers when possible.\nSupport: False, str, unicode, dict, HTTPResponse, HTTPError, file-like,\niterable of strings and iterable of unicodes', 'signatu...
0
{'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>MQCMD_RECOVER_BSDS = 128
0
{'name': 'ParamikoSshConnection.Connect@pexpect_connection.py', 'description': 'Makes the connection.\n\nWe can have an instance of this class without being connected to the\ndevice, e.g. after a disconnect. Hence setting up the actual SSH connection\nshould happen in this method, not in the constructor.', 'signature':...
0
{'name': 'Reader.__init__@tools/gfx/png.py', 'description': 'Create a PNG decoder object.\n\nThe constructor expects exactly one keyword argument. If you\nsupply a positional argument instead, it will guess the input\ntype. You can choose among the following keyword arguments:\n\nfilename\n Name of input file (a PNG f...
0
{'name': 'download_official_website_layout@vulfocus-api/layout_image/views.py', 'description': '下载官网编排场景(社区)', 'signature': 'def download_official_website_layout(request):'}</s>{'name': 'update_images@vulfocus-api/tasks/tasks.py', 'description': '定时获取dockerhub上的镜像信息', 'code': 'def update_images():\n """\n 定时获取doc...
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': 'TrainingJob.start@loudml/server.py', 'description': 'Submit training job to worker pool', 'signature': 'def start(self, config):'}</s>{'name': 'BucketsResource@loudml/server.py', 'description': 'DOCSTRING', 'base_classes': ['Resource'], 'methods': [{'name': 'BucketsResource.get@loudml/server.py', 'description...
0
{'name': 'DebPkgToolsTestCase.test_collect_packages@deb_pkg_tools/tests.py', 'description': 'Test the command line interface for collection of related packages.', 'signature': 'def test_collect_packages(self):'}</s>{'name': 'dump_deb822@deb_pkg_tools/deb822.py', 'description': 'Format the given Debian control fields as...
0
{'name': 'Afni1D.label_prefix_to_ints@src/python_scripts/afnipy/lib_afni1D.py', 'description': 'return a list of label indices, based on what is kept or dropped\n keep labels in their original order\n\n if keep_pre and one of keep_pre matches, keep\n if drop_pre and one of drop_pre matches, remove\n\nreturn 0 on ...
0
{'name': 'test_docker_build_fails@test/test_utils.py', 'description': 'Test for expected failure when a recipe fails to build', 'signature': 'def test_docker_build_fails(recipes_fixture, config_fixture):'}</s>{'name': 'LoggingSourceRenameFilter@bioconda_utils/utils.py', 'description': 'Logging filter for abbreviating m...
0
{'name': 'get_sbom_fragments@tools/sbom/generate-sbom.py', 'description': 'Return SPDX fragment of source/prebuilt packages, which usually contains a SOURCE/PREBUILT\npackage, a UPSTREAM package and an external SBOM document reference if sbom_ref defined in its\nMETADATA file.\n\nSee go/android-spdx and go/android-sbom...
1
{'name': 'Viewer.initialize@robopianist/viewer/viewer.py', 'description': 'Initialize the viewer.\n\nArgs:\n physics: Physics instance.\n renderer_instance: A renderer.Base instance.\n touchpad: A boolean, use input dedicated to touchpad.', 'signature': 'def initialize(self, physics, renderer_instance, touchpad):'}<...
0
{'name': 'P2PConnection.disconnect_node@test/functional/test_framework/mininode.py', 'description': 'Disconnect the p2p connection.\n\nCalled by the test logic thread. Causes the p2p connection\nto be disconnected on the next iteration of the asyncore loop.', 'signature': 'def disconnect_node(self):'}</s>{'name': 'CScr...
0
{'name': 'test@examples/python/learning_pytorch.py', 'description': 'Runs a test_episodes_per_epoch episodes and prints the result', 'signature': 'def test(game, agent):'}</s>learning_rate = 0.00025
0
{'name': 'YoutubeDL._load_cookies@script.module.youtube.dl/lib/youtube_dl/YoutubeDL.py', 'description': 'Loads cookies from a `Cookie` header\n\nThis tries to work around the security vulnerability of passing cookies to every domain.\n\n@param data The Cookie header as a string to load the cookies from\n@param ...
0
{'name': 'IncInterfaceGenerator.do_table3_transformation@da/compiler/incgen.py', 'description': "Transformation defined in Table 3 of OOPSLA paper.\n\nThis transforms single quantifications over comparisons into min/max\naggregates. Returns None if table 3 can not be applied to 'node'.", 'signature': 'def do_table3_tra...
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQIAMO_Q_TIME_MAX = 742
0
{'name': 'TestsManagement.test_add_invites@pinax/invitations/tests/tests.py', 'description': 'Ensure correct number of invites after adding.', 'signature': 'def test_add_invites(self):'}</s>{'name': 'TestsJoinInvitation@pinax/invitations/tests/tests.py', 'description': 'DOCSTRING', 'base_classes': ['TestCase'], 'method...
0
{'name': 'Tag.decode@bs4/element.py', 'description': "Returns a Unicode representation of this tag and its contents.\n\n:param eventual_encoding: The tag is destined to be\n encoded into this encoding. This method is _not_\n responsible for performing that encoding. This information\n is passed in so that it can ...
0
{'name': 'get_enriched_lambda_log_tags@aws/logs_monitoring/steps/enrichment.py', 'description': 'Retrieves extra tags from lambda, either read from the function arn, or by fetching lambda tags from the function itself.\n\nArgs:\n log_event (dict<str, str | dict | int>): a log parsed from the event in the split metho...
0
{'name': 'ReplaceByFeeTest.test_doublespend_tree@test/functional/feature_rbf.py', 'description': 'Doublespend of a big tree of transactions', 'signature': 'def test_doublespend_tree(self):'}</s>OP_CHECKSIGVERIFY = CScriptOp(0xad)
0
{'name': 'TestDeploymentRetryEnterprise.test_deployment_retry_failed_update@tests/tests/test_deployment_retry.py', 'description': 'Tests that a client installing a deployment created with a retry limit\n\nThis is done through setting up a new tenant on the enterprise plan,\nwith a device bootstrapped to the tenant. The...
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': 'FreshFunction@src/api/python/z3/z3.py', 'description': 'Create a new fresh Z3 uninterpreted function with the given sorts.\n ...
0
{'name': 'Support.__init__@indeterminatebeam/indeterminatebeam.py', 'description': 'Constructs all the necessary attributes for the Support object.\n\nParameters:\n-----------\ncoord: float\n x coordinate of support on a beam (default unit m) (default 0)\nfixed: tuple of 3 booleans\n Degrees of freedom that are f...
1
{'name': 'RetroFig.make_plot@src/python_scripts/afnipy/lib_physio_plot.py', 'description': 'Create the plot', 'signature': 'def make_plot(self, do_show = False, do_interact = False, do_save = True):'}</s>{'name': 'python_ver_float@src/python_scripts/afnipy/afni_base.py', 'description': 'return the python version, as a ...
0
{'name': 'loads@json_tricks/nonp.py', 'description': 'Convert a nested data structure to a json string.\n\n:param string: The string containing a json encoded data structure.\n:param decode_cls_instances: True to attempt to decode class instances (requires the environment to be similar the the encoding one).\n:param pr...
0
{'name': 'test_get_cve_id_by_time_modified@test-http/src/test/cve_id_tests/cve_id.py', 'description': "we can get ids immediately after reserving them using the time they're\nreserved (noting that this may not work against a shared integration\nenvironment, we check that at least this many have been reserved) ", 'signa...
0
{'name': 'Cdf.__init__@reference/ThinkDSP/code/thinkstats2.py', 'description': 'Initializes.\n\nIf ps is provided, obj must be the corresponding list of values.\n\nobj: Hist, Pmf, Cdf, Pdf, dict, pandas Series, list of pairs\nps: list of cumulative probabilities\nlabel: string label', 'signature': 'def __init__(self, o...
0
{'name': 'FairseqTask.build_generator@fairseq/tasks/fairseq_task.py', 'description': 'Build a :class:`~fairseq.SequenceGenerator` instance for this\ntask.\n\nArgs:\n models (List[~fairseq.models.FairseqModel]): ensemble of models\n args (fairseq.dataclass.configs.GenerationConfig):\n configuration object (...
0
{'name': 'get_svg_size@make_bw_font.py', 'description': 'Takes a path to an SVG file and reads it.\nChecks for the existence of a \'viewBox\' property in the \'svg\' element.\nConfirms that the viewBox is square.\nReturns the viewBox dimension as an integer.\n\nThe regex match will contain 4 groups:\n 1. String from...
0
{'name': 'conv1x1@models/resnet.py', 'description': '1x1 convolution', 'signature': 'def conv1x1(in_planes, out_planes, stride=1):'}</s>{'name': 'resnet18@models/resnet.py', 'description': 'ResNet-18 model from\n`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_\n\nArgs:\n pretr...
0
{'name': 'detr_resnet101@hubconf.py', 'description': 'DETR-DC5 R101 with 6 encoder and 6 decoder layers.\n\nAchieves 43.5/63.8 AP/AP50 on COCO val5k.', 'signature': 'def detr_resnet101(pretrained=False, num_classes=91, return_postprocessor=False):'}</s>{'name': 'PostProcess@models/detr.py', 'description': "This module ...
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': 'AutoUnit.step_lr_scheduler@torchtnt/framework/auto_unit.py', 'description': 'LR step method extracted to a method in case the user wants to override', 'signature': 'def step_lr_scheduler(self) -> None:'}</s>{'name': 'get_timing_context@torchtnt/framework/utils.py', 'description': 'Returns a context manager th...
0
{'name': 'draw_lnurl_qr@displays/waveshare2in13v3.py', 'description': 'Draw a lnurl qr code on the e-ink screen\n ', 'signature': 'def draw_lnurl_qr(qr_img):'}</s>startup_screen_2 = "LightningATM"
0
{'name': 'Block._write@pcapng/blocks.py', 'description': 'Writes this block into the given output stream', 'signature': 'def _write(self, outstream):'}</s>LINKTYPE_FDDI = 10
0
{'name': 'trim@ytmdl/core.py', 'description': 'Trim the song of unwanted noise by making calls to the\ninternal functions.', 'signature': 'def trim(name: str, args) -> None:'}</s>{'name': 'extract_meta_from_yt@ytmdl/meta/yt.py', 'description': 'Extract the metadata from the passed video ID and return\nit accordingly.',...
0
{'name': 'parse_tcsh_args@src/python_scripts/afnipy/lib_apqc_io.py', 'description': 'Parse arguments for tcsh scripter.\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.', 'signature...
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': 'gradient_descent@dask_glm/algorithms.py', 'description': "Michael Grant's implementation of Gradient Descent.\n\nParameters\n----------\nX : array-like, shape (n_samples, n_features)\ny : array-like, shape (n_samples,)\nmax_iter : int\n maximum number of iterations to attempt before declaring\n failure ...
0
{'name': 'KeyboardKeywords.hold_special_key@src/WhiteLibrary/keywords/keyboard.py', 'description': 'Hold down a special key.\n\n``key`` must be one of the accepted special keys, see documentation of\n`Press Special Key`', 'signature': 'def hold_special_key(self, key):'}</s>SPECIAL_KEYS = ["SHIFT", "CONTROL", "ALT", "LE...
1
{'name': 'auth@twitter_to_sqlite/cli.py', 'description': 'Save authentication credentials to a JSON file', 'signature': 'def auth(auth):'}</s>{'name': 'list_members@twitter_to_sqlite/cli.py', 'description': 'Fetch lists - accepts one or more screen_name/list_slug identifiers', 'code': 'def list_members(db_path, identif...
0
{'name': '_TestResult.complete_output@util/HTMLTestRunner.py', 'description': 'Disconnect output redirection and return buffer.\nSafe to call multiple times.', 'signature': 'def complete_output(self):'}</s>stderr_redirector = OutputRedirector(sys.stderr)
0
{'name': 'default_if_empty@yaql/standard_library/queries.py', 'description': ':yaql:defaultIfEmpty\n\nReturns default value if collection is empty.\n\n:signature: collection.defaultIfEmpty(default)\n:receiverArg collection: input collection\n:argType collection: iterable\n:arg default: value to be returned if collectio...
1
{'name': 'render@lib/svtplay_dl/__version__.py', 'description': 'Render the given version pieces into the requested style.', 'signature': 'def render(pieces, style):'}</s>{'name': 'get_config@lib/svtplay_dl/__version__.py', 'description': 'Create, populate and return the VersioneerConfig() object.', 'code': 'def get_co...
0
{'name': 'cmd@lib/charliecloud.py', 'description': 'Run command using cmd_base(). If fail_ok, return the exit code whether\nor not the process succeeded; otherwise, return (zero) only if the\nprocess succeeded and exit with fatal error if it failed.', 'signature': 'def cmd(argv, fail_ok=False, **kwargs):'}</s>FILENAME_...
0
{'name': 'rollapply@ffn/core.py', 'description': 'Apply a function fn over a rolling window of size window.\n\nArgs:\n * data (Series or DataFrame): Series or DataFrame\n * window (int): Window size\n * fn (function): Function to apply over the rolling window.\n For a series, the return value is expecte...
0
{'name': 'probit_assignment@Criticality/PCS/Criticality/network_lib/weighted_betweenness.py', 'description': "Function to do stochastic probit assignment on transport network. The weight of the transport network\nis sampled by normal distribution with the original link weight as the mean.\n\nParameters\n------------\nG...
0
{'name': 'SublayerConnection.forward@chapter08-seq2seq-attn/transformer.py', 'description': 'Apply residual connection to any sublayer with the same size.', 'signature': 'def forward(self, x, sublayer):'}</s>{'name': 'MultiHeadedAttention@chapter08-seq2seq-attn/transformer.py', 'description': 'DOCSTRING', 'base_classes...
0
{'name': 'graph2binary@modisco/cluster/phenograph/core.py', 'description': 'Write (weighted) graph to binary file filename.bin\n:param filename:\n:param graph:\n:return None: graph is written to filename.bin', 'signature': 'def graph2binary(filename, graph):'}</s>{'name': 'jaccard_kernel@modisco/cluster/phenograph/core...
0
{'name': 'get_domain_literal@src/future/backports/email/_header_value_parser.py', 'description': 'domain-literal = [CFWS] "[" *([FWS] dtext) [FWS] "]" [CFWS]\n\n ', 'signature': 'def get_domain_literal(value):'}</s>{'name': 'len_q@src/future/backports/email/_encoded_words.py', 'description': 'DOCSTRING', 'code': 'de...
0