text string | label int64 |
|---|---|
{'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': 'TestDockerBase.require_filenames_in_directory@test/test_docker.py', 'description': 'Check that filenames are found in the indicated directory.\n\nEach pattern in the list of patterns must match exactly one\nfile in the indicated directory.', 'signature': "def require_filenames_in_directory(self, patterns=None... | 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>MQRC_CCDT_URL_ERROR = 2600 | 0 |
{'name': 'uhstack@unyt/array.py', 'description': 'Stack arrays in sequence horizontally while preserving units\n\nThis is a wrapper around np.hstack that preserves units.\n\nExamples\n--------\n>>> from unyt import km\n>>> a = [1, 2, 3]*km\n>>> b = [2, 3, 4]*km\n>>> print(uhstack([a, b])) # doctest: +IGNORE_EXCEPTION_D... | 0 |
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQMCB_ENABLED = 1 | 0 |
{'name': '_BuildBootableImage@tools/releasetools/common.py', 'description': "Build a bootable image from the specified sourcedir.\n\nTake a kernel, cmdline, and optionally a ramdisk directory from the input (in\n'sourcedir'), and turn them into a boot image. 'two_step_image' indicates if\nwe are building a two-step spe... | 0 |
{'name': 'PFOp._to_string@pf/rule.py', 'description': 'Return the string representation of the operation.', 'signature': 'def _to_string(self):'}</s>PFI_AFLAG_PEER = 4 | 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': 'cached_download@gdown/cached_download.py', 'description': 'Cached download from URL.\n\nParameters\n----------\nurl: str\n URL. Google Drive URL is also supported.\npath: str, optional\n Output filename. Default is basename of URL.\nmd5: str, optional\n Expected MD5 for specified file. Deprecated in ... | 1 |
{'name': 'printb@src/python/bcc/utils.py', 'description': 'printb(s)\n\nprint a bytes object to stdout and flush', 'signature': 'def printb(s, file=sys.stdout, nl=1):'}</s>{'name': '_read_cpu_range@src/python/bcc/utils.py', 'description': 'DOCSTRING', 'code': "def _read_cpu_range(path):\n cpus = []\n with open(pa... | 0 |
{'name': 'CastState.playlist_next@resources/lib/tubecast/youtube/app.py', 'description': "Advance to the next video in the playlist.\n\nReturns:\n Whether the operation succeeded.\n `False` if there is no playlist or we're on the last video.", 'signature': 'def playlist_next(self): # type: () -> bool'}</s>{'name... | 0 |
{'name': 'get_topic_map@eth_event/main.py', 'description': 'Generate a dictionary of event topics from an ABI.\n\nThis dictionary is required by `decode_log`, `decode_logs`, and\n`decode_traceTransaction`.\n\nAnonymous events are ignored. The return data is formatted as follows:\n\n {\n \'encoded bytes32 topi... | 0 |
{'name': 'extcap_interfaces@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'List available interfaces to capture from', 'signature': 'def extcap_interfaces():'}</s>{'name': 'UARTPacketError@tools/ble_sniffer/extcap/SnifferAPI/Exceptions.py', 'description': 'DOCSTRING', 'base_classes': ['Exception'], 'meth... | 0 |
{'name': 'make_visit_mosaic@grizli/aws/visit_processor.py', 'description': "Make a mosaic of the exposures from a visit with a tangent point selected\nfrom the sky tile grid\n\nParameters\n----------\nassoc : str\n grizli association name\n\nbase_path : str\n Base working directory. Working directory will be\n ... | 0 |
{'name': 'check_multiple_rvt_shift_opts@src/python_scripts/afnipy/lib_physio_opts.py', 'description': "Can only use at most one '-rvt_shift*' opt. Simplest to check for\nthat at one time.\n\nParameters\n----------\nargs_dict : dict\n The dictionary of arguments and option values.\n\nReturns\n-------\nis_bad : int\n... | 1 |
{'name': 'asrgb@imgviz/color.py', 'description': 'Convert any array to rgb image.\n\nParameters\n----------\nimg: numpy.ndarray\n Input image.\n\nReturns\n-------\nrgb: numpy.ndarray, (H, W, 3), np.uint8\n Output gray image.', 'signature': 'def asrgb(img):'}</s>{'name': 'rgb2gray@imgviz/color.py', 'description': ... | 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>MQIA_TRIGGER_MSG_PRIORITY = 26 | 0 |
{'name': 'control_read_initial_values@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'Read initial control values', 'signature': 'def control_read_initial_values(sniffer):'}</s>CTRL_CMD_WARN_MSG = 8 | 0 |
{'name': 'authenticate@src/server/server.py', 'description': 'Sends a 401 response that enables basic auth.', 'signature': 'def authenticate():'}</s>{'name': 'on_add_pilot@src/server/server.py', 'description': 'Adds the next available pilot id number in the database.', 'code': "def on_add_pilot(*args):\n '''Adds the... | 0 |
{'name': 'BreakpointConditionsTestCase.breakpoint_conditions@tools/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py', 'description': "Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.", 'signature': 'def breakpoint_conditions(self, inlin... | 0 |
{'name': 'demean@src/python_scripts/afnipy/afni_util.py', 'description': 'demean the vector (in place), from index ibot to index itop\n\n if ibot == -1, ibot will be 0\n if itop == -1, itop will be len-1\n\nreturn 0 on success, 1 on error', 'signature': 'def demean(vec, ibot=-1, itop=-1):'}</s>{'name': 'random_merge@sr... | 0 |
{'name': 'BL3Profile.set_vaultcard3_keys@bl3save/bl3profile.py', 'description': 'Sets the number of Vault Card 3 keys to `num_keys`', 'signature': 'def set_vaultcard3_keys(self, num_keys):'}</s>psdu_to_eng = {
PSDU_LOSTLOOT: 'Lost Loot',
PSDU_BANK: 'Bank',
} | 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': 'IsPythonDefaultSerializationDeterministic@python/google/protobuf/inter... | 0 |
{'name': 'parseOptionsAndInitTestdirs@llvm-project/lldb/packages/Python/lldbsuite/test/dotest.py', 'description': "Initialize the list of directories containing our unittest scripts.\n\n'-h/--help as the first option prints out usage info and exit the program.", 'signature': 'def parseOptionsAndInitTestdirs():'}</s>tes... | 1 |
{'name': 'OAuthToken.get_token@rest_models/backend/auth.py', 'description': 'query the api to retrive a OAuth token\n:return: the token from the api\n:rtype: Token', 'signature': 'def get_token(self):'}</s>{'name': 'message_from_response@rest_models/backend/utils.py', 'description': 'DOCSTRING', 'code': 'def message_fr... | 1 |
{'name': 'test_sorting@voluptuous/tests/tests.py', 'description': 'Expect alphabetic sorting', 'signature': 'def test_sorting():'}</s>{'name': 'test_path_with_arbitrary_hashable_dict_key@voluptuous/tests/tests.py', 'description': 'Not obvious case with dict having not strings, but arbitrary hashable objects as keys', '... | 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': 'AccountsDaemon.__init__@packages/python-google-compute-engine/google_compute_engine/accounts/accounts_daemon.py', 'description': "Constructor.\n\nArgs:\n groups: string, a comma separated list of groups.\n remove: bool, True if deprovisioning a user should be destructive.\n useradd_cmd: string, command to ... | 0 |
{'name': 'MicroDVDFormat.to_file@pysubs2/formats/microdvd.py', 'description': 'See :meth:`pysubs2.formats.FormatBase.to_file()`\n\nThe only supported styling is marking whole lines italic.\n\nKeyword args:\n write_fps_declaration: If True, create a zero-duration first subtitle ``{1}{1}`` which will contain\n ... | 0 |
{'name': 'ising_mpo@pytenet/hamiltonian.py', 'description': 'Construct Ising Hamiltonian `sum J sz sz + h sz + g sx`\non a 1D lattice as MPO.\n\nArgs:\n L: number of lattice sites\n J: interaction parameter\n h: longitudinal-field strength\n g: transverse-field strength\n\nReturns:\n MPO: Ising Hamil... | 0 |
{'name': 'LongTypesExprTestCase.test_unsigned_long_type_from_block@llvm-project/lldb/test/API/types/TestLongTypesExpr.py', 'description': "Test that 'unsigned_long'-type variables are displayed correctly from a block.", 'signature': 'def test_unsigned_long_type_from_block(self):'}</s>{'name': 'skipUnlessDarwin@llvm-pro... | 0 |
{'name': '_GenerateRenderMethod.create_filter_callable@mako/codegen.py', 'description': "write a filter-applying expression based on the filters\npresent in the given filter names, adjusting for the global\n'default' filter aliases as needed.", 'signature': 'def create_filter_callable(self, args, target, is_expression)... | 0 |
{'name': 'Reformat@tools/yapf/yapf/yapflib/reformatter.py', 'description': 'Reformat the unwrapped lines.\n\nArguments:\n uwlines: (list of unwrapped_line.UnwrappedLine) Lines we want to format.\n verify: (bool) True if reformatted code should be verified for syntax.\n\nReturns:\n A string representing the reformatt... | 0 |
{'name': 'up_to_climate@oggm/tests/test_workflow.py', 'description': 'Run the tasks you want.', 'signature': 'def up_to_climate(reset=False, use_mp=None):'}</s>{'name': 'set_intersects_db@oggm/cfg.py', 'description': 'Set the glacier intersection database for OGGM to use.\n\nIt is now set automatically by the\n:func:`o... | 1 |
{'name': 'make_class@vendor/attr/_make.py', 'description': 'A quick way to create a new class called *name* with *attrs*.\n\n:param str name: The name for the new class.\n\n:param attrs: A list of names or a dictionary of mappings of names to\n attributes.\n\n If *attrs* is a list or an ordered dict (`dict` on Py... | 0 |
{'name': 'MarketstoreStub.__init__@pymarketstore/proto/marketstore_pb2_grpc.py', 'description': 'Constructor.\n\nArgs:\n channel: A grpc.Channel.', 'signature': 'def __init__(self, channel):'}</s>UINT8 = 11 | 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': 'Leopard.process_file@binding/python/_leopard.py', 'description': 'Processes a given audio file and returns its transcription.\n\n:param audio_path: Absolute path to the audio file. The file needs to have a sample rate equal to or greater\nthan `.sample_rate`. The supported formats are: `FLAC`, `MP3`, `Ogg`, `... | 0 |
{'name': 'KeystoneAuthHandler.authenticate@mistralclient/auth/keystone.py', 'description': 'Perform authentication via Keystone.\n\n:param req: Request dict containing the parameters required\n for Keystone authentication.', 'signature': 'def authenticate(self, req, session=None):'}</s>{'name': 'KeystoneAuthHandler@... | 1 |
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQRC_XR_NOT_AVAILABLE = 6130 | 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': 'main@tools/lldb/packages/Python/lldbsuite/test/dosep.py', 'description': 'Run dotest.py in inferior mode in parallel.\n\n@param num_threads the parsed value of the num-threads command line\nargument.\n\n@param test_subdir optionally specifies a subdir to limit testing\nwithin. May be None if the entire test ... | 0 |
{'name': 'parse_info@parseoutput.py', 'description': 'Parses result of :i <name> command of ghci and returns derived Symbols.Declaration', 'signature': 'def parse_info(name, contents):'}</s>{'name': 'location_project@symbols.py', 'description': 'DOCSTRING', 'code': 'def location_project(loc):\n if isinstance(loc, Lo... | 0 |
{'name': 'convert_developers@code/html/generate_static_website.py', 'description': ':param developers:\n:param entries:\n:return:', 'signature': 'def convert_developers(developers, entries):'}</s>{'name': 'get_topN_games@code/html/generate_static_website.py', 'description': 'Gets the top N games by stars (either Github... | 0 |
{'name': 'password_reset_token_created@src/users/models.py', 'description': 'Handles password reset tokens\nWhen a token is created, an e-mail needs to be sent to the user', 'signature': 'def password_reset_token_created(sender, instance, reset_password_token, *args, **kwargs):'}</s>ACTIVITY_USER_RESETS_PASS = "started... | 1 |
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRCCF_Q_STATUS_NOT_FOUND = 4091 | 0 |
{'name': 'Unit.has_equivalent@unyt/unit_object.py', 'description': "Check to see if this unit object as an equivalent unit in *equiv*.\n\nExample\n-------\n>>> from unyt import km\n>>> km.has_equivalent('spectral')\nTrue\n>>> km.has_equivalent('mass_energy')\nFalse", 'signature': 'def has_equivalent(self, equiv):'}</s>... | 0 |
{'name': 'MultiCompartmentSphericalMeanModel.fit@dmipy/core/modeling_framework.py', 'description': 'The main data fitting function of a MultiCompartmentModel.\n\nThis function can fit it to an N-dimensional dMRI data set, and returns\na FittedMultiCompartmentModel instance that contains the fitted\nparameters and other... | 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': 'create_uuid_tables@.translation-tables/translation-tables.py', 'description': 'CREATE UUID.md TRANSLATION TABLES ', 'signature': 'def create_uuid_tables():'}</s>{'name': 'check_hidden_dirs@.translation-tables/translation-tables.py', 'description': "Creates hidden dirs `po` and `tables` if they don't exist,\ne... | 0 |
{'name': 'crud_for_app@cruds/urls.py', 'description': 'Returns list of ``url`` items to CRUD an app.', 'signature': 'def crud_for_app(app_label, urlprefix=None):'}</s>{'name': 'CRUDDeleteView@cruds/views.py', 'description': 'DOCSTRING', 'base_classes': ['CRUDMixin', 'DeleteView'], 'methods': [{'name': 'CRUDDeleteView.g... | 0 |
{'name': 'SciQuery.get_constraint_names@py3/SciServer/SciQuery.py', 'description': 'Gets a list of the names of table constraints in a particular database belonging to an RDBComputeDomain.', 'signature': 'def get_constraint_names(self, table_name, database=None, rdb_compute_domain=None):'}</s>SkyServerWSurl = "https://... | 0 |
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>PFRKE_PLAIN = 0 | 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': 'sniffPossibleFeed@src/feedvalidator/__init__.py', 'description': 'Use wild heuristics to detect something that might be intended as a feed.', 'signature': 'def sniffPossibleFeed(rawdata):'}</s>{'name': 'InvalidYesNoClean@src/feedvalidator/logging.py', 'description': 'DOCSTRING', 'base_classes': ['InvalidValue... | 0 |
{'name': '_IncludeState.CheckNextIncludeOrder@ament_cpplint/ament_cpplint/cpplint.py', 'description': "Returns a non-empty error message if the next header is out of order.\n\nThis function also updates the internal state to be ready to check\nthe next include.\n\nArgs:\n header_type: One of the _XXX_HEADER constants ... | 0 |
{'name': 'stream_decode_response_unicode@src/requests/utils.py', 'description': 'Stream decodes an iterator.', 'signature': 'def stream_decode_response_unicode(iterator, r):'}</s>basestring = (str, bytes) | 0 |
{'name': 'NHC2HassFan.__init__@custom_components/nhc2/fan.py', 'description': 'Initialize a light.', 'signature': 'def __init__(self, nhc2fan: CoCoFan):'}</s>{'name': 'nhc2_entity_processor@custom_components/nhc2/helpers.py', 'description': 'Loops the entities list and creates, updates or deletes HA entities.', 'code':... | 0 |
{'name': 'add_commands@sievelib/commands.py', 'description': 'Adds one or more commands to the module namespace.\nCommands must end in "Command" to be added.\nExample (see tests/parser.py):\nsievelib.commands.add_commands(MytestCommand)\n\n:param cmds: a single Command Object or list of Command Objects', 'signature': '... | 0 |
{'name': 'main@hseq_eval.py', 'description': 'Program entrance.', 'signature': 'def main(argv=None): # pylint: disable=unused-argument'}</s>{'name': 'loader@hseq_eval.py', 'description': 'DOCSTRING', 'code': 'def loader(hseq_utils, dense_desc, producer_queue):\n for seq_idx in range(hseq_utils.seq_num):\n se... | 0 |
{'name': 'Dispatch.__getattr__@comtypes/client/lazybind.py', 'description': 'Get a COM attribute.', 'signature': 'def __getattr__(self, name):'}</s>DISPID_DESTRUCTOR = -7 | 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': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQIAMO_COMMITS = 710 | 0 |
{'name': 'ParseArguments@tools/cpplint.py', 'description': 'Parses the command line arguments.\n\nThis may set the output format and verbosity level as side-effects.\n\nArgs:\n args: The command line arguments:\n\nReturns:\n The list of filenames to lint.', 'signature': 'def ParseArguments(args):'}</s>_SEARCH_C_FILE ... | 0 |
{'name': 'ExportHtml.get_tools@ExportHtml.py', 'description': 'Get tools for toolbar.', 'signature': 'def get_tools(self, tools, use_annotation, use_wrapping):'}</s>{'name': 'OpenHtml@ExportHtml.py', 'description': 'Open either a temporary HTML or one at the save location.', 'base_classes': [], 'methods': [{'name': 'Op... | 0 |
{'name': 'unique_tokens@python/nvtext.py', 'description': 'Each string is split into tokens using the provided delimiter.\nThe nvstrings instance returned contains unique list of tokens.\n\nParameters\n----------\nstrs : nvstrings\n The strings for this operation\ndelimiter : str\n The character used to locate th... | 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': 'extract_esios_data@aiopvpc/parser.py', 'description': 'Parse the contents of a daily PVPC json file.', 'signature': 'def extract_esios_data('}</s>URL_ESIOS_TOKEN_RESOURCE = "https://api.esios.ree.es/indicators/{ind}"
+ "?start_date={day:%Y-%m-%d}T00:00&end_date={day:%Y-%m-%d}T23:59" | 0 |
{'name': 'RigidTransform.apply@autolab_core/rigid_transformations.py', 'description': "Applies the rigid transformation to a set of 3D objects.\n\nParameters\n----------\npoints : :obj:`BagOfPoints`\n A set of objects to transform. Could be any subclass\n of BagOfPoints.\n\nReturns\n-------\n:obj:`BagOfPoints`\n ... | 0 |
{'name': 'find_packages@jupyter_packaging/setupbase.py', 'description': 'Find all of the packages.', 'signature': 'def find_packages(top):'}</s>{'name': 'is_stale@jupyter_packaging/setupbase.py', 'description': 'Test whether the target file/directory is stale based on the source\nfile/directory.', 'code': 'def is_stale... | 0 |
{'name': 'ProcessLine@runtimes/compiler-rt/lib/sanitizer_common/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 represe... | 0 |
{'name': 'DarwinLogEventBasedTestBase.do_test@lldb/packages/Python/lldbsuite/test/darwin_log.py', 'description': 'Runs the test inferior, returning collected events.\n\nThis method runs the test inferior to the first breakpoint hit.\nIt then adds a listener for structured data events, and collects\nall events from that... | 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': 'GetObjectsForUser.test_varchar_primary_key@guardian/testapp/tests/test_shortcuts.py', 'description': 'Verify that the function works when the objects that should be returned\nhave varchar primary keys.', 'signature': 'def test_varchar_primary_key(self):'}</s>{'name': 'assign@guardian/shortcuts.py', 'descripti... | 0 |
{'name': 'make_shell_context@app/manage.py', 'description': 'Create a python REPL with several default imports\nin the context of the app', 'signature': 'def make_shell_context():'}</s>{'name': 'test@app/manage.py', 'description': 'Runs the unit tests without coverage.', 'code': 'def test():\n """Runs the unit tests... | 0 |
{'name': 'name2test_func@multichecklist/generate_test_utils.py', 'description': 'Maps from the test name to the respective function to generate tests.', 'signature': 'def name2test_func(name):'}</s>{'name': 'create_property_product@multichecklist/generate_test_utils.py', 'description': 'Method for creating tests about ... | 0 |
{'name': 'Visualizer.display_current_results@utils/visualizer.py', 'description': 'Display current results on visdom; save current results to an HTML file.\n\nParameters:\n visuals (OrderedDict) - - dictionary of images to display or save\n epoch (int) - - the current epoch\n save_result (bool) - - if save the... | 1 |
{'name': 'xy_rotate_box@apphelper/image.py', 'description': '绕 cx,cy点 w,h 旋转 angle 的坐标\nx_new = (x-cx)*cos(angle) - (y-cy)*sin(angle)+cx\ny_new = (x-cx)*sin(angle) + (y-cy)*sin(angle)+cy', 'signature': 'def xy_rotate_box(cx,cy,w,h,angle):'}</s>{'name': 'solve@apphelper/image.py', 'description': '绕 cx,cy点 w,h 旋转 angle 的... | 0 |
{'name': 'CheckLanguage@tools/cpplint.py', 'description': "Checks rules from the 'C++ language rules' section of cppguide.html.\n\nSome of these rules are hard to test (function overloading, using\nuint32 inappropriately), but we do the best we can.\n\nArgs:\n filename: The name of the current file.\n clean_lines: A ... | 0 |
{'name': 'CheckStyle@tools/cpplint.py', 'description': "Checks rules from the 'C++ style rules' section of cppguide.html.\n\nMost of these rules are hard to test (naming, comment style), but we\ndo what we can. In particular we check for 2-space indents, line lengths,\ntab usage, spaces inside code, etc.\n\nArgs:\n f... | 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_CLWL_REPOS = py23long(23) | 0 |
{'name': 'TransfoXLCorpus.from_pretrained@source/pytorch_transformers/tokenization_transfo_xl.py', 'description': 'Instantiate a pre-processed corpus.', 'signature': 'def from_pretrained(cls, pretrained_model_name_or_path, cache_dir=None, *inputs, **kwargs):'}</s>CORPUS_NAME = "corpus.bin" | 1 |
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQCHSSTATE_IN_SCYEXIT = 700 | 0 |
{'name': 'prune_conv1d_layer@source/pytorch_transformers/modeling_utils.py', 'description': 'Prune a Conv1D layer (a model parameters) to keep only entries in index.\nA Conv1D work as a Linear layer (see e.g. BERT) but the weights are transposed.\nReturn the pruned layer as a new layer with requires_grad=True.\nUsed to... | 0 |
{'name': 'unique_tokens@python/nvtext.py', 'description': 'Each string is split into tokens using the provided delimiter.\nThe nvstrings instance returned contains unique list of tokens.\n\nParameters\n----------\nstrs : nvstrings\n The strings for this operation\ndelimiter : str\n The character used to locate th... | 0 |
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>MQCNO_SERIALIZE_CONN_TAG_QSG = 4 | 0 |
{'name': 'HostRecordV6.ipv6addrs@infoblox_client/objects.py', 'description': ':meta private:', 'signature': 'def ipv6addrs(self):'}</s>{'name': 'Option60Matchrule@infoblox_client/objects.py', 'description': 'DOCSTRING', 'base_classes': ['SubObjects'], 'methods': []} | 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': 'PostgresNode.source_walsender@testgres/node.py', 'description': "Returns master's walsender feeding this replica.", 'signature': 'def source_walsender(self):'}</s>{'name': 'ConnectionParams@testgres/operations/os_ops.py', 'description': 'DOCSTRING', 'base_classes': [], 'methods': [{'name': 'ConnectionParams._... | 0 |
{'name': 'BIP9SoftForksTest.csv_invalidate@test/functional/feature_bip9_softforks.py', 'description': 'Modify the signature in vin 0 of the tx to fail CSV\nPrepends -1 CSV DROP in the scriptSig itself.', 'signature': 'def csv_invalidate(self, tx):'}</s>{'name': 'set_node_times@test/functional/test_framework/util.py', '... | 0 |
{'name': 'NonTokens.test6@Cheetah/Tests/SyntaxAndOutput.py', 'description': '1 dollar sign followed by EOL Slurp Token', 'signature': 'def test6(self):'}</s>{'name': 'IncludeDirective@Cheetah/Tests/SyntaxAndOutput.py', 'description': 'DOCSTRING', 'base_classes': ['OutputTest'], 'methods': [{'name': 'IncludeDirective.se... | 0 |
{'name': 'create_remote_file_bundle@tests/functional/test_link_localization.py', 'description': 'Create a bundle with\na.) an unmanaged s3 path\nb.) a managed s3 path\nc.) a managed s3 path with a directory', 'signature': 'def create_remote_file_bundle(name):'}</s>{'name': 'remote@disdat/api.py', 'description': "Add a ... | 0 |
{'name': 'capture@seminar08/ml_cxx/third_party/pybind11/tests/conftest.py', 'description': 'Extended `capsys` with context manager and custom equality operators', 'signature': 'def capture(capsys):'}</s>{'name': 'SanitizedString@seminar08/ml_cxx/third_party/pybind11/tests/conftest.py', 'description': 'DOCSTRING', 'base... | 0 |
{'name': 'process_direct_grism_visit@grizli/prep.py', 'description': 'Full processing of a direct (+grism) image visit.\n\nParameters\n----------\ndirect : dict\n Dictionary with keys \'files\' and \'product\' for the direct images.\n\ngrism : dict\n Dictionary with keys \'files\' and \'product\' for the grism im... | 0 |
{'name': 'main_config_show@signac/__main__.py', 'description': 'Handle config show subcommand.', 'signature': 'def main_config_show(args):'}</s>{'name': 'main@signac/__main__.py', 'description': 'Provide command line interface.', 'code': 'def main():\n """Provide command line interface."""\n parser = argparse.Arg... | 0 |
{'name': 'MaskRCNN.get_anchors@Mask_RCNN/mrcnn/model.py', 'description': 'Returns anchor pyramid for the given image size.', 'signature': 'def get_anchors(self, image_shape):'}</s>{'name': 'resize@Mask_RCNN/mrcnn/utils.py', 'description': "A wrapper for Scikit-Image resize().\n\nScikit-Image generates warnings on every... | 0 |
{'name': 'Node.bye@shingetsu/node.py', 'description': 'Unconnect.', 'signature': 'def bye(self):'}</s>initnode_list = _get_value(_extconf, 'Path', 'initnode_list',
'../file/initnode.txt', 'path') | 0 |
{'name': 'MsxReactionSystem.add_variable@wntr/msx/model.py', 'description': "Add a variable object to the registry.\n\nThe appropriate group is determined by querying the object's\nvar_type attribute.\n\nParameters\n----------\nvariable\n Variable to add.\n\nRaises\n------\nTypeError\n If `variable` is not an Msx... | 0 |
{'name': '_encode_htk@scripts/import_corpus.py', 'description': " char *ReWriteString(char *s,char *dst, char q)\n{\n static char stat[MAXSTRLEN*4];\n Boolean noSing,noDbl;\n int n;\n unsigned char *p,*d;\n\n if (dst==NULL) d=(unsigned char*)(dst=stat);\n else d=(unsigned char*)dst;\n\n if (s[0]!=SING_... | 0 |
{'name': 'SQL@grizli/aws/db.py', 'description': "Send a query to a database through `pandas.read_sql_query`\n\nParameters\n----------\nquery_text : str\n Query text, e.g., 'SELECT count(*) FROM table;'.\n\nengine : `sqlalchemy.engine.Engine`\n DB connection engine initialized with `~grizli.aws.db.get_db_engine`. ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.