text string | label int64 |
|---|---|
{'name': 'test_repr@voluptuous/tests/tests.py', 'description': 'Verify that __repr__ returns valid Python expressions', 'signature': 'def test_repr():'}</s>{'name': 'Extra@voluptuous/schema_builder.py', 'description': 'Allow keys in the data that are not present in the schema.', 'code': 'def Extra(_) -> None:\n """A... | 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': '__listAllUE9Unix@src/LabJackPython.py', 'description': 'Private listAll function for use on unix and mac machines to find UE9s.\n ', 'signature': 'def __listAllUE9Unix(connectionType):'}</s>LJE_SHT_ACK = 54 | 0 |
{'name': 'scvelo@pipelines/pipeline_scxl.py', 'description': 'Plot the RNA velocity.\nThis analysis is highly parameterised and different configurations can\nsuggest different interpretations of the data.', 'signature': 'def scvelo(infile, outfile):'}</s>{'name': 'topMarkerHeatmap@pipelines/pipeline_scxl.py', 'descript... | 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': 'run_prospect@prosail/prospect_d.py', 'description': 'The PROSPECT model, versions 5, D and PRO.\nThis function runs PROSPECT. You can select the version using the\n`prospect_version` argument, and you can also set some of the spectra\nused for model calculations.\n\nParameters\n-----------\nn: float\n The ... | 0 |
{'name': 'plot_graph@osmnx/plot.py', 'description': "Visualize a graph.\n\nParameters\n----------\nG\n Input graph.\nax\n If not None, plot on this pre-existing axes instance.\nfigsize\n If `ax` is None, create new figure with size `(width, height)`.\nbgcolor\n Background color of the figure.\nnode_color\n ... | 0 |
{'name': 'ChainstateWriteCrashTest.restart_node@test/functional/feature_dbcrash.py', 'description': 'Start up a given node id, wait for the tip to reach the given block hash, and calculate the utxo hash.\n\nExceptions on startup should indicate node crash (due to -dbcrashratio), in which case we try again. Give up\naft... | 0 |
{'name': 'main@oaiharvest/registry.py', 'description': 'Process command line options, hand off to appropriate function.', 'signature': 'def main(argv=None):'}</s>appdir = os.path.expanduser("~/.oai-harvest") | 0 |
{'name': 'Configuration.__init__@python-build-with-qt/sip-4.11.2/sipconfig.py', 'description': 'Initialise an instance of the class.\n\nsub_cfg is the list of sub-class configurations. It should be None\nwhen called normally.', 'signature': 'def __init__(self, sub_cfg=None):'}</s>{'name': 'ProgramMakefile@python-build... | 0 |
{'name': 'IUClock.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load config data', 'signature': 'def load(self, config: OrderedDict) -> "IUClock":'}</s>ICON_BLOCKED = "mdi:alert-octagon-outline" | 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': 'CirqSimulateStateTest.test_state_empty_circuit@tensorflow_quantum/core/ops/cirq_ops_test.py', 'description': 'Test empty circuits', 'signature': 'def test_state_empty_circuit(self):'}</s>{'name': 'CirqSimulateStateTest@tensorflow_quantum/core/ops/cirq_ops_test.py', 'description': 'Tests get_cirq_simulate_stat... | 1 |
{'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_dlgstyle_yes_... | 0 |
{'name': 'BareValidator._validate_max@cerberus/validator.py', 'description': "{'nullable': False }", 'signature': 'def _validate_max(self, max_value, field, value):'}</s>{'name': 'InspectedValidator@cerberus/validator.py', 'description': 'Metaclass for all validators', 'base_classes': ['type'], 'methods': [{'name': 'In... | 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': 'PostDetail.delete@back/api_1_0/posts.py', 'description': '删除指定文章\n:param post_id: int\n:return:json', 'signature': 'def delete(self, post_id):'}</s>{'name': 'DelPostCtrl@back/controller/posts.py', 'description': '删除文章操作', 'base_classes': [], 'methods': [{'name': 'DelPostCtrl.delete_body@back/controller/posts.... | 0 |
{'name': 'Receipt.formatted_number@django_afip/models.py', 'description': "This receipt's number in the usual format: ``0001-00003087``.", 'signature': 'def formatted_number(self) -> str | None:'}</s>{'name': 'serialize_vat@django_afip/serializers.py', 'description': 'DOCSTRING', 'code': 'def serialize_vat(vat: Vat): ... | 0 |
{'name': 'NamespaceLookupTestCase.test_scope_ambiguity_after_using_lookup_with_run_command@tools/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py', 'description': 'Test scope lookup ambiguity after using in lldb.', 'signature': 'def test_scope_ambiguity_after_using_lookup_with_run_command(s... | 0 |
{'name': 'ImputationKernel._mean_match_binary_fast@miceforest/imputation_kernel.py', 'description': 'Chooses 0/1 randomly weighted by probability obtained from prediction.\nIf mean_match_candidates is 0, choose class with highest probability.\n\nReturns a np.ndarray, because these get set to categorical later on.', 'si... | 0 |
{'name': 'load_grayscale_images@Chapter08/Code/utils.py', 'description': 'Converts the data to grayscale as we only care of classification and not the color of the traffic sign for now\n:param data: image data to be converted to grayscale\n:return: grayscale image/images', 'signature': "def load_grayscale_images(data, ... | 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': 'dumpsource@dill/source.py', 'description': "'dump to source', where the code includes a pickled object.\n\nIf new=True and object is a class instance, then create a new\ninstance using the unpacked class source code. If enclose, then\ncreate the object inside a function enclosure (thus minimizing\nany global ... | 0 |
{'name': 'XCSAlgorithm.cover@xcs/algorithms/xcs.py', 'description': 'Return a new classifier rule that can be added to the match set,\nwith a condition that matches the situation of the match set and an\naction selected to avoid duplication of the actions already\ncontained therein. The match_set argument is a MatchSet... | 0 |
{'name': 'list_to_carray@language-bindings/python/src/wamr/wasmcapi/ffi.py', 'description': 'Converts a python list into a C array', 'signature': 'def list_to_carray(elem_type, *args):'}</s>{'name': 'wasm_importtype_vec_new@language-bindings/python/src/wamr/wasmcapi/binding.py', 'description': 'DOCSTRING', 'code': 'def... | 0 |
{'name': 'Video.get_audio_idx@plex_mpv_shim/media.py', 'description': 'Returns the index of the selected stream', 'signature': 'def get_audio_idx(self):'}</s>{'name': 'MediaType@plex_mpv_shim/media.py', 'description': 'DOCSTRING', 'base_classes': ['Enum'], 'methods': []} | 0 |
{'name': 'main@consulate/cli.py', 'description': 'Entrypoint for the consulate cli application', 'signature': 'def main():'}</s>{'name': 'UnixSocketRequest@consulate/adapters.py', 'description': 'Use to communicate with Consul over a Unix socket', 'base_classes': ['Request'], 'methods': [{'name': 'UnixSocketRequest.__i... | 1 |
{'name': 'on_download_logs@src/server/server.py', 'description': 'Download logs (as .zip file).', 'signature': 'def on_download_logs(data):'}</s>Server_secondary_mode = None | 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_RESERVED = CScriptOp(0x50) | 0 |
{'name': 'RasterArray.clip_box@rioxarray/raster_array.py', 'description': 'Clip the :obj:`xarray.DataArray` by a bounding box.\n\n.. versionadded:: 0.12 crs\n.. versionadded:: 0.16 allow_one_dimensional_raster\n\nParameters\n----------\nminx: float\n Minimum bound for x coordinate.\nminy: float\n Minimum bound fo... | 0 |
{'name': 'Options.get_raw@pcapng/structs.py', 'description': 'Get raw value for the given option', 'signature': 'def get_raw(self, name):'}</s>{'name': 'unpack_euiaddr@pcapng/utils.py', 'description': 'DOCSTRING', 'code': 'def unpack_euiaddr(data):\n return unpack_macaddr(data)'} | 0 |
{'name': 'CSSParser.selector_iter@SneakerBot 2019/venv/lib/python3.7/site-packages/soupsieve/css_parser.py', 'description': 'Iterate selector tokens.', 'signature': 'def selector_iter(self, pattern):'}</s>RANGES = ct.SEL_IN_RANGE | ct.SEL_OUT_OF_RANGE | 0 |
{'name': 'test_hframe_rw_pb@tests/bundles/test_hframe.py', 'description': 'Write HyperFrame PBs to disk and back.\n:return:', 'signature': 'def test_hframe_rw_pb():'}</s>{'name': 'RecordState@disdat/hyperframe.py', 'description': 'Database records of hyperframes can be valid or deleted.\nA check of the db may result in... | 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': 'split_stdout_lines@mhctools/parsing.py', 'description': 'Given the standard output from NetMHC/NetMHCpan/NetMHCcons tools,\ndrop all {comments, lines of hyphens, empty lines} and split the\nremaining lines by whitespace.', 'signature': 'def split_stdout_lines(stdout):'}</s>{'name': 'parse_netmhcpan3_stdout@mh... | 0 |
{'name': 'format_table@aegea/util/printing.py', 'description': 'Table pretty printer. Expects tables to be given as arrays of arrays::\n\n print(format_table([[1, "2"], [3, "456"]], column_names=[\'A\', \'B\']))', 'signature': 'def format_table(table, column_names=None, column_specs=None, max_col_width=32, auto_col_... | 0 |
{'name': '_configure_host_iface@kuryr/lib/binding/drivers/veth.py', 'description': 'Configures the interface that is placed on the default net ns\n\n:param ifname: the name of the interface to configure\n:param endpoint_id: the identifier of the endpoint\n:param port_id: the Neutron uuid of the port to which t... | 1 |
{'name': 'GefHelpCommand.__rebuild@gef.py', 'description': 'Rebuild the documentation.', 'signature': 'def __rebuild(self) -> None:'}</s>{'name': 'register@gef.py', 'description': 'DOCSTRING', 'code': 'def register(cls: Type["ValidCommandType"] | Type["ValidFunctionType"]) -> Type["ValidCommandType"] | Type["ValidFun... | 0 |
{'name': '_strict_random_crop_image@object_detection/core/preprocessor.py', 'description': 'Performs random crop.\n\nNote: Keypoint coordinates that are outside the crop will be set to NaN, which\nis consistent with the original keypoint encoding for non-existing keypoints.\nThis function always crops the image and is ... | 0 |
{'name': 'Record.body_string@shingetsu/cache.py', 'description': 'Remove attach field.', 'signature': 'def body_string(self):'}</s>template_dir = _get_value(_extconf, 'Path', 'template_dir',
'../template', 'path') | 0 |
{'name': 'test_snake_gridlock@tests/test_traffic_scheduling_problem.py', 'description': 'A bad route was given to train abcd, and now the train has gridlocked itself.\n\n 9 - 10 - 11 - 12\n |\n1 - 2 - 3 - 4 - 5d-> 6c\n ^ |\n | v\n 8a - 7b\... | 0 |
{'name': 'writeFileTree@fwtool.py', 'description': 'Writes a list of UnixFiles to the disk, unpacking known archive files', 'signature': 'def writeFileTree(files, path):'}</s>{'name': 'isDat@fwtool/sony/dat.py', 'description': 'Returns true if the data provided is a dat file', 'code': 'def isDat(file):\n """Returns tru... | 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': 'DescriptorPoolTestBase.testEnumDefaultValue@python/google/protobuf/internal/descriptor_pool_test.py', 'description': "Test the default value of enums which don't start at zero.", 'signature': 'def testEnumDefaultValue(self):'}</s>{'name': 'FieldDescriptor@python/google/protobuf/descriptor.py', 'description': ... | 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': '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': 'get_instantiation_lines@config/instantiation_file.py', 'description': 'Generate the lines for a C++ file that instantiates a configuration.', 'signature': 'def get_instantiation_lines(cores, caches, ptws, pmem, vmem, build_id):'}</s>cache_builder_parts = {
'size': '.size(champsim::data::bytes{{{size}}})',... | 0 |
{'name': 'If@src/api/python/z3/z3.py', 'description': "Create a Z3 if-then-else expression.\n\n>>> x = Int('x')\n>>> y = Int('y')\n>>> max = If(x > y, x, y)\n>>> max\nIf(x > y, x, y)\n>>> simplify(max)\nIf(x <= y, y, x)", 'signature': 'def If(a, b, c, ctx=None):'}</s>{'name': 'ModelObj@src/api/python/z3/z3types.py', 'd... | 0 |
{'name': 'get_GLM_HRRR_contingency_stats@BB_HRRR/GLM_and_HRRR/GLM_events_HRRR.py', 'description': "Inputs:\n validDATE - A datetime that represents the end of the hour.\n fxx - List of forecasts. Deafult starts at 0 because\n the F00 LTNG forecast doesn't have any output.\n GOES - Num... | 0 |
{'name': 'Response.iter_content@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/requests/models.py', 'description': 'Iterates over the response data. When stream=True is set on the\nrequest, this avoids reading the content at once into memory for\nlarge responses. The chunk size is the number of bytes it shou... | 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': 'FiniteDomainSort@src/api/python/z3/z3.py', 'description': 'Create a named finite domain sort of a given size sz', 'signature': 'def FiniteDomainSort(name, sz, ctx=None):'}</s>{'name': 'AtMost@src/api/python/z3/z3.py', 'description': "Create an at-most Pseudo-Boolean k constraint.\n\n>>> a, b, c = Bools('a b c... | 0 |
{'name': 'SOCAInstall._storage_build_fsx_lustre_filesystem@installer/resources/src/cdk_construct.py', 'description': 'Build an FSx filesystem.', 'signature': 'def _storage_build_fsx_lustre_filesystem(self, fs_key: str):'}</s>{'name': 'create_ingress_rule@installer/resources/src/helpers/security_groups.py', 'description... | 1 |
{'name': 'replication@ExplanationEvaluation/tasks/replication.py', 'description': 'Perform the replication study.\nFirst load a pre-trained model.\nThen we train our expainer.\nFollowed by obtaining the generated explanations.\nAnd saving the obtained AUC score in a json file.\n:param config: a dict containing the conf... | 0 |
{'name': 'MCMCMetropoliHastings.sample@abcpy/inferences.py', 'description': 'Samples from the posterior distribution of the model parameter given the observed\ndata observations. The MCMC is run for burnin + n_samples steps, and n_samples_per_param are used at each step\nto estimate the approximate loglikelihood. The b... | 0 |
{'name': 'create_yoy_chart@src/fitly/pages/performance.py', 'description': ':param metric: Allowed values from strava summary table [hrss, tss, trimp, distance, elapsed_time, high_intensity_seconds, mod_intensity_seconds, low_intensity_seconds]\n:return:', 'signature': "def create_yoy_chart(metric, sport='all'):"}</s>f... | 0 |
{'name': 'HTML.retrieve_pdf@paper2remarkable/providers/html.py', 'description': 'Turn the HTML article in a clean pdf file\n\nThis function takes the following steps:\n\n1. Pull the HTML page using requests, if not done in Informer\n2. Extract the article part of the page using readability/readabiliPy\n3. Convert the a... | 1 |
{'name': 'predict_query@ddparser/run.py', 'description': 'Predict one query', 'signature': 'def predict_query(env):'}</s>{'name': 'epoch_train@ddparser/parser/model.py', 'description': 'Train in one epoch', 'code': 'def epoch_train(args, model, optimizer, loader, epoch):\n """Train in one epoch"""\n model.train()... | 0 |
{'name': 'degradation_bsrgan@ldm/modules/image_degradation/bsrgan.py', 'description': 'This is the degradation model of BSRGAN from the paper\n"Designing a Practical Degradation Model for Deep Blind Image Super-Resolution"\n----------\nimg: HXWXC, [0, 1], its size should be large than (lq_patchsizexsf)x(lq_patchsizexsf... | 0 |
{'name': '_NestingState.UpdatePreprocessor@compiler-rt/lib/sanitizer_common/scripts/cpplint.py', 'description': 'Update preprocessor stack.\n\nWe need to handle preprocessors due to classes like this:\n #ifdef SWIG\n struct ResultDetailsPageElementExtensionPoint {\n #else\n struct ResultDetailsPageElementExtensionP... | 0 |
{'name': 'And@src/api/python/z3/z3.py', 'description': "Create a Z3 and-expression or and-probe.\n\n>>> p, q, r = Bools('p q r')\n>>> And(p, q, r)\nAnd(p, q, r)\n>>> P = BoolVector('p', 5)\n>>> And(P)\nAnd(p__0, p__1, p__2, p__3, p__4)", 'signature': 'def And(*args):'}</s>{'name': 'is_const@src/api/python/z3/z3.py', 'd... | 0 |
{'name': 'ContainerVulViewSet.check_flag@vulfocus-api/dockerapi/views.py', 'description': '验证Flag是否正确\n:param request:\n:param pk:\n:return:', 'signature': 'def check_flag(self, request, pk=None):'}</s>{'name': 'layout_image_download@vulfocus-api/tasks/tasks.py', 'description': '环境编排相关镜像下载\n:return:', 'code': 'def layo... | 0 |
{'name': 'opcode_map_c@Ghidra/Processors/RISCV/scripts/binutil.py', 'description': 'CR |funct4 | cr0711 | cr0206 | op |\nCI |funct3 | cop1212 | cr0711 | cop0206 | op |\nCSS |funct3 | cop0712 | cr0206 | op |\nCIW |funct3 | cop0512 | cr0204s | op |\nCL |funct3 | cop1012 | cs0709s | cop0506 | cr0204s | op |\nCS ... | 0 |
{'name': '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': 'find@src/civis/response.py', 'description': "Filter :class:`civis.Response` objects.\n\nParameters\n----------\nobject_list : iterable\n An iterable of arbitrary objects, particularly those with attributes\n that can be targeted by the filters in `kwargs`. A major use case is\n an iterable of :class:... | 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': 'ValidMIMEAttribute@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['ValidValue'], 'm... | 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': 'ReservedPrefix@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['Warni... | 0 |
{'name': 'Distinct@src/api/python/z3/z3.py', 'description': "Create a Z3 distinct expression.\n\n>>> x = Int('x')\n>>> y = Int('y')\n>>> Distinct(x, y)\nx != y\n>>> z = Int('z')\n>>> Distinct(x, y, z)\nDistinct(x, y, z)\n>>> simplify(Distinct(x, y, z))\nDistinct(x, y, z)\n>>> simplify(Distinct(x, y, z), blast_distinct=... | 0 |
{'name': 'TestDefiningRecipes.test_prepare_recipes_with_args@tests/test_recipes.py', 'description': 'Overriding some fields values at recipe execution', 'signature': 'def test_prepare_recipes_with_args(self):'}</s>recipes = None | 0 |
{'name': 'ReplaceByFeeTest.test_too_many_replacements@qa/rpc-tests/replace-by-fee.py', 'description': 'Replacements that evict too many transactions are rejected', 'signature': 'def test_too_many_replacements(self):'}</s>{'name': 'CTxIn@qa/rpc-tests/test_framework/mininode.py', 'description': 'DOCSTRING', 'base_classes... | 1 |
{'name': '_AddInitMethod@python/google/protobuf/internal/python_message.py', 'description': 'Adds an __init__ method to cls.', 'signature': 'def _AddInitMethod(message_descriptor, cls):'}</s>{'name': 'EnumValueDescriptor@python/google/protobuf/descriptor.py', 'description': "Descriptor for a single value within an enum... | 0 |
{'name': 'loadPlugins@packstack/installer/run_setup.py', 'description': 'Load All plugins from ./plugins', 'signature': 'def loadPlugins():'}</s>VAR_DIR = tempfile.mkdtemp(prefix=_tmpdirprefix, dir=PACKSTACK_VAR_DIR) | 0 |
{'name': 'RobotFileParser.can_fetch@src/future/backports/urllib/robotparser.py', 'description': 'using the parsed robots.txt decide if useragent can fetch url', 'signature': 'def can_fetch(self, useragent, url):'}</s>{'name': 'unwrap@src/future/backports/urllib/parse.py', 'description': "unwrap('<URL:type://host/path>'... | 0 |
{'name': 'CreateAction.post@src/pinnwand/handler/website.py', 'description': "POST handler for the 'web' side of things.", 'signature': 'def post(self) -> None: # type: ignore'}</s>{'name': 'ratelimit@src/pinnwand/defensive.py', 'description': "A ratelimiting decorator for tornado's request handlers.", 'code': 'def ra... | 0 |
{'name': 'test_unbound_method_handler@tests/test_event.py', 'description': 'Test failure mode for unbound method handlers.', 'signature': 'def test_unbound_method_handler():'}</s>{'name': 'test_handler_callback_failure@tests/test_event.py', 'description': 'Test failure mode for inappropriate handlers.', 'code': 'def 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>MQXR_INIT = py23long(11) | 0 |
{'name': 'SignatureHash@qa/rpc-tests/test_framework/script.py', 'description': 'Consensus-correct SignatureHash\n\nReturns (hash, err) to precisely match the consensus-critical behavior of\nthe SIGHASH_SINGLE bug. (inIdx is *not* checked for validity)', 'signature': 'def SignatureHash(script, txTo, inIdx, hashtype):'}<... | 1 |
{'name': 'Function.simplify_string_getter_from_storage@panoramix/function.py', 'description': 'a heuristic for finding string getters and replacing them\nwith a simplified version\n\ntest cases: unicorn\n 0xF7dF66B1D0203d362D7a3afBFd6728695Ae22619 name\n 0xf8e386EDa857484f5a12e4B5DAa9984E06E73705 ... | 0 |
{'name': 'ProcessLine@scripts/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 ... | 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': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQRC_TRUNCATED_MSG_FAILED = 2080 | 0 |
{'name': '_parabolic_bed_from_topo@oggm/core/centerlines.py', 'description': 'this returns the parabolic bedshape for all points on idl', 'signature': 'def _parabolic_bed_from_topo(gdir, idl, interpolator):'}</s>{'name': 'entity_task@oggm/utils/_workflow.py', 'description': 'Decorator for common job-controlling logic.\... | 0 |
{'name': 'TruthedCharacters.dump_values@ocr_utils.py', 'description': "prints out the feature names and a short sample of the data in each feature\n\nexample:\n-------------------------------------\n ds = ocr_utils.read_data(input_filters_dict = input_filters_dict, \n output_feature_list=outpu... | 0 |
{'name': 'extract_data@ytmdl/main.py', 'description': 'Extract the arguments and act accordingly.', 'signature': 'def extract_data():'}</s>{'name': 'post_processing@ytmdl/main.py', 'description': 'Handle all the activities post search of the song.\n\nThis function will handle the following:\nConvert, Trim, Metadata, Cl... | 0 |
{'name': 'MetadataManager.AddSshKey@daisy_workflows/linux_common/utils/common.py', 'description': 'Generate and add an ssh key to the metadata\n\nArgs:\n md_key: string, SSH_KEYS or SSHKEYS_LEGACY, defines where to add the key.\n level: enum, INSTANCE_LEVEL (default) or PROJECT_LEVEL to fetch the\n metadata.\n ... | 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': 'ZiGate.__haddr@zigate/core.py', 'description': 'convert int addr to hex ', 'signature': 'def __haddr(self, int_addr, length=4):'}</s>{'name': 'dispatch_signal@zigate/core.py', 'description': 'Dispatch signal with exception proof', 'code': "def dispatch_signal(signal=dispatcher.Any, sender=dispatcher.Anonymous... | 0 |
{'name': 'PortManager._telnet_process_subnegotiation@serial/rfc2217.py', 'description': 'Process subnegotiation, the data between IAC SB and IAC SE.', 'signature': 'def _telnet_process_subnegotiation(self, suboption):'}</s>SERVER_SET_BAUDRATE = b'e' | 1 |
{'name': 'InputsTest.test_error_with_bad_eval_model_config@object_detection/inputs_test.py', 'description': 'Tests that a TypeError is raised with improper eval model config.', 'signature': 'def test_error_with_bad_eval_model_config(self):'}</s>{'name': 'get_spatial_image_size@object_detection/utils/config_util.py', 'd... | 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_objfloatparam... | 0 |
{'name': 'MCMCMetropoliHastings.sample@abcpy/inferences.py', 'description': 'Samples from the posterior distribution of the model parameter given the observed\ndata observations. The MCMC is run for burnin + n_samples steps, and n_samples_per_param are used at each step\nto estimate the approximate loglikelihood. The b... | 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>MQFMT_EVENT_ARRAY = [b"M", b"Q", b"E", b"V", b"E", b"N", b"T", b" "] | 0 |
{'name': 'Double_DQN_target_func@example/dqn-her.py', 'description': 'Double DQN: https://arxiv.org/abs/1509.06461', 'signature': 'def Double_DQN_target_func(model,target,next_obs,rew,done,gamma,act_shape):'}</s>obs = env.reset() | 0 |
{'name': 'main@bert_downstream/train_multi_learning.py', 'description': '训练主入口 ', 'signature': 'def main():'}</s>flags = tf.flags | 0 |
{'name': 'IoManager._get_responses_list@pygdbmi/IoManager.py', 'description': 'Get parsed response list from string output\nArgs:\n raw_output (unicode): gdb output to parse\n stream (str): either stdout or stderr', 'signature': 'def _get_responses_list('}</s>{'name': '_parse_mi_notify@pygdbmi/gdbmiparser.py', 'd... | 0 |
{'name': 'TLP.get_size@fpga/lib/pcie/tb/pcie.py', 'description': 'Return size of TLP in bytes', 'signature': 'def get_size(self):'}</s>MSG_VENDOR_0 = 126 | 0 |
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>ICMP_SKIP = 39 | 0 |
{'name': 'writeSuites@cxxtest/cxxtestgen.py', 'description': 'Write all TestDescriptions and SuiteDescriptions', 'signature': 'def writeSuites(output):'}</s>{'name': 'writeDynamicDescription@cxxtest/cxxtestgen.py', 'description': 'Write SuiteDescription for a dynamic suite', 'code': 'def writeDynamicDescription( output... | 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': 'LogmeLogger._set_handlers_from_conf@logme/providers.py', 'description': 'Iterate through the config dict, set the active handlers', 'signature': 'def _set_handlers_from_conf(self, reconfig=False):'}</s>{'name': 'ColorFormatter@logme/color_provider.py', 'description': 'DOCSTRING', 'base_classes': ['logging.For... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.