text
string
label
int64
{'name': 'SpiderList.set@scrapyd/webservice.py', 'description': 'Calculate, cache and return the ``scrapy list`` output for the project and version, bypassing the cache.', 'signature': 'def set(self, project, version, *, runner):'}</s>spider_list = SpiderList()
0
{'name': '_AdbIOManager.connect@adb_shell/adb_device.py', 'description': "Establish an ADB connection to the device.\n\n1. Use the transport to establish a connection\n2. Send a ``b'CNXN'`` message\n3. Read the response from the device\n4. If ``cmd`` is not ``b'AUTH'``, then authentication is not necesary and so we are...
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': 'watch_player@lyvi/__init__.py', 'description': 'Main loop which checks for new song and updates the metadata.', 'signature': 'def watch_player():'}</s>{'name': 'Player@lyvi/players/__init__.py', 'description': 'Base Player class.\n\nThis class should be subclassed for a specific player.', 'base_classes': [], ...
0
{'name': 'PostArticleCtrl.new_post_action@back/controller/posts.py', 'description': '添加博文\n:param author_id: int,\n:param category_id: int,\n:param all_tags_for_new_post: list\n:param title: str,\n:param raw_slug: str,\n:param body_id: int\n:param weight:\n:return: post对象', 'signature': 'def new_post_action(self, autho...
1
{'name': 'test_fit_verbose_raises_error@sysidentpy/neural_network/tests/test_narxnn.py', 'description': 'Fit raises ValueError if verbose=True but no validation data is provided.', 'signature': 'def test_fit_verbose_raises_error():'}</s>X_train = np.reshape(X_train, (len(X_train), 1))
1
{'name': 'adjust_contrast@utils/transforms.py', 'description': 'Adjust contrast of an RGB image.\nArgs:\n vid (Tensor): Video to be adjusted [C,N,H,W].\n contrast_factor (1D float tensor): How much to adjust the contrast. Can be any\n non negative number. 0 gives a solid gray image, 1 gives the\n or...
0
{'name': 'NodeRedEntity.update_config@custom_components/nodered/__init__.py', 'description': 'Update entity config.', 'signature': 'def update_config(self, msg):'}</s>{'name': 'NodeRedEntity@custom_components/nodered/__init__.py', 'description': 'nodered Sensor class.', 'base_classes': ['Entity'], 'methods': [{'name': ...
1
{'name': 'GeneratedProtocolMessageType.__init__@third_party/dawn/third_party/protobuf/python/google/protobuf/internal/python_message.py', 'description': "Here we perform the majority of our work on the class.\nWe add enum getters, an __init__ method, implementations\nof all Message methods, and properties for all field...
0
{'name': 'PyrataReTest.test_greedy_search_a_option_a_in_caaaad@do_tests.py', 'description': 'Test greedy search wi a_option_a_in_caaaad. The pattern is present in the data.', 'signature': 'def test_greedy_search_a_option_a_in_caaaad(self):'}</s>{'name': 'sub@pyrata/re.py', 'description': 'Return the data obtained by re...
0
{'name': 'TypeErrorTests.test_keyword_builtin@didyoumean/didyoumean_sugg_tests.py', 'description': 'A few builtins (like int()) have a different error message.', 'signature': 'def test_keyword_builtin(self):'}</s>ONLYCONCAT = (TypeError, re.ONLY_CONCAT_RE)
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': 'NodeManager.list_ports@ironicclient/v1/node.py', 'description': 'List all the ports for a given node.\n\n:param node_id: Name or UUID of the node.\n:param marker: Optional, the UUID of a port, eg the last\n port from a previous result set. Return\n the next result set.\n:param limi...
0
{'name': 'TestReadMemCString.test_read_memory_c_string@llvm-project/lldb/test/API/python_api/process/read-mem-cstring/TestReadMemCString.py', 'description': 'Test corner case behavior of SBProcess::ReadCStringFromMemory', 'signature': 'def test_read_memory_c_string(self):'}</s>{'name': 'expectedFailureIfFn@llvm-project...
0
{'name': 'fetch_reviews@quapy/data/datasets.py', 'description': 'Loads a Reviews dataset as a Dataset instance, as used in\n`Esuli, A., Moreo, A., and Sebastiani, F. "A recurrent neural network for sentiment quantification."\nProceedings of the 27th ACM International Conference on Information and Knowledge Management. ...
1
{'name': 'fig_to_html@mpld3/_display.py', 'description': 'Output html representation of the figure\n\nParameters\n----------\nfig : matplotlib figure\n The figure to display\nd3_url : string (optional)\n The URL of the d3 library. If not specified, a standard web path\n will be used.\nmpld3_url : string (opti...
1
{'name': 'FutureBase._computed@asynq/futures.py', 'description': 'Protected method invoked when value or error property\nis set.\n\nRaises on_computed event.', 'signature': 'def _computed(self):'}</s>{'name': 'dump@asynq/debug.py', 'description': 'DOCSTRING', 'code': 'def dump(state):\n if not options.DUMP_PRE_ERROR...
0
{'name': 'ShapeTrainer.set_optimization_variables@experiments/smal_shape.py', 'description': 'Sets as optimization variables those obtained as prediction from the network', 'signature': 'def set_optimization_variables(self):'}</s>{'name': 'asVariable@utils/smal_vis.py', 'description': 'DOCSTRING', 'code': 'def asVariab...
0
{'name': 'run@onlinejudge_command/subcommand/submit.py', 'description': ':returns: whether the submission is succeeded or not.', 'signature': 'def run(args: argparse.Namespace) -> bool:'}</s>{'name': '_make_diff_between_line_and_line_by_difflib@onlinejudge_command/pretty_printers.py', 'description': 'DOCSTRING', 'code'...
0
{'name': 'ParseArguments@compiler-rt/lib/sanitizer_common/scripts/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 ParseAr...
0
{'name': 'TopLevelMixin.repeat@altair/vegalite/v5/api.py', 'description': "Return a RepeatChart built from the chart\n\nFields within the chart can be set to correspond to the row or\ncolumn using `alt.repeat('row')` and `alt.repeat('column')`.\n\nParameters\n----------\nrepeat : list\n a list of data column names t...
0
{'name': 'sign2map@venv/Lib/site-packages/numpy/f2py/capi_maps.py', 'description': 'varname,ctype,atype\ninit,init.r,init.i,pytype\nvardebuginfo,vardebugshowvalue,varshowvalue\nvarrfromat\nintent', 'signature': 'def sign2map(a, var):'}</s>major = 2
0
{'name': 'mach_o_change@python/virtualenv/virtualenv.py', 'description': "Replace a given name (what) in any LC_LOAD_DYLIB command found in\nthe given binary with a new name (value), provided it's shorter.", 'signature': 'def mach_o_change(path, what, value):'}</s>virtualenv_version = __version__
0
{'name': 'CreateDatatypes@src/api/python/z3/z3.py', 'description': "Create mutually recursive Z3 datatypes using 1 or more Datatype helper objects.\n\nIn the following example we define a Tree-List using two mutually recursive datatypes.\n\n>>> TreeList = Datatype('TreeList')\n>>> Tree = Datatype('Tree')\n>>> # Tre...
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>MQIACH_ACTIVE_CHL_STOPPED = 1597
0
{'name': 'CameraIntrinsics.deproject@autolab_core/camera_intrinsics.py', 'description': 'Deprojects a DepthImage into a PointCloud.\n\nParameters\n----------\ndepth_image : :obj:`DepthImage`\n The 2D depth image to projet into a point cloud.\n\nReturns\n-------\n:obj:`autolab_core.PointCloud`\n A 3D point cloud c...
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': 'ref@gget/gget_ref.py', 'description': 'Fetch FTPs for reference genomes and annotations by species from Ensembl.\n\nArgs:\n- species Defines the species for which the reference should be fetched in the format "<genus>_<species>",\n e.g. species = "homo_sapiens".\n Sup...
1
{'name': 'View.analyze_cluster@picasso/gui/render.py', 'description': 'Clusters picked locs using k-means clustering. ', 'signature': 'def analyze_cluster(self):'}</s>{'name': 'GenericPlotWindow@picasso/gui/render.py', 'description': 'A class used to display trace in a pick.\n\n...\n\nAttributes\n----------\ncanvas : F...
0
{'name': 'TorchSnapshotSaver.restore@torchtnt/framework/callbacks/torchsnapshot_saver.py', 'description': "Utility method to restore snapshot state from a path.\n\nThere are additional flags offered should the user want to skip loading the train and eval progress.\nBy default, the train and eval progress are restored, ...
1
{'name': '_DecodeUnknownField@python/google/protobuf/internal/decoder.py', 'description': 'Decode a unknown field. Returns the UnknownField and new position.', 'signature': 'def _DecodeUnknownField('}</s>{'name': 'UnknownFieldRef@python/google/protobuf/internal/containers.py', 'description': 'DOCSTRING', 'base_classes...
0
{'name': 'MetaPreprocessor.run@source-builder/sb/markdown/extensions/meta.py', 'description': 'Parse Meta-Data and store in Markdown.Meta. ', 'signature': 'def run(self, lines):'}</s>{'name': 'MetaPreprocessor@source-builder/sb/markdown/extensions/meta.py', 'description': 'Get Meta-Data. ', 'base_classes': ['Preprocess...
1
{'name': 'InitializerListTestCase.test@lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/initializerlist/TestInitializerList.py', 'description': 'Test that that file and class static variables display correctly.', 'signature': 'def test(self):'}</s>OBJECT_PRINTED_CORRECTLY = "...
0
{'name': 'inject_envoy_http_proxy_fixture@benchmarks/envoy_proxy.py', 'description': 'Injects an Envoy proxy in front of the test server.\n\nNOTE: Depends on the proxy_config fixture, which must be explicitly imported\ninto the consuming module when using this fixture.\n\nArgs:\n request: supplies the ip version.\n s...
0
{'name': '_sort_nodes@osmnx/_osm_xml.py', 'description': "Topologically sort the nodes of an OSM way.\n\nParameters\n----------\nG\n The graph representing the OSM way.\nosmid\n The OSM way ID.\n\nReturns\n-------\nordered_nodes\n The way's node IDs in topologically sorted order.", 'signature': 'def _sort_node...
0
{'name': 'set_gdsii_timestamp@gdspy/gdsiiformat.py', 'description': 'Set all timestamps in a given GDSII file.\n\nThe GDSII format includes creation timestamps for the whole library\nand each cell in the contents of the GDSII file. Those timestamps\nare overwritten by the value passed to this function, which is\nusefu...
0
{'name': 'Client.mute_all@opentok/opentok.py', 'description': 'Mutes all streams in an OpenTok session.\n\nYou can include an optional list of streams IDs to exclude from being muted.\n\nIn addition to existing streams, any streams that are published after the call to\nthis method are published with audio muted. You ca...
0
{'name': 'Tree.head@python/bllipparser/RerankingParser.py', 'description': "Returns the syntactic head of this tree. This will be one of\nthe children of this tree (unless this tree is a leaf in which\ncase it is its own head). Requires a parsing model to be loaded\n(other you'll get a ValueError) since those include h...
1
{'name': 'networkd_networks@kayobe/plugins/filter/networkd.py', 'description': 'Return a dict representation of networkd network configuration.\n\nThe format is compatible with the systemd_networkd_network variable in the\nstackhpc.linux.systemd_networkd role.\n\n:param context: a Jinja2 Context object.\n:param names: ...
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': 'IUSequence.as_dict@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Return this sequence as a dict', 'signature': 'def as_dict(self, extended=False, sqr: IUSequenceRun = None) -> OrderedDict:'}</s>{'name': 'IUJSONEncoder@custom_components/irrigation_unlimited/irrigation_unlimit...
0
{'name': 'Formula.__new__@pysat/formula.py', 'description': 'Factory-like formula constructor, which avoids creating duplicated\nformulas if we are currently using a context. Otherwise, simply\ncreates a formula object of a given type, without duplicate\nchecking.', 'signature': 'def __new__(cls, *args, **kwargs):'}</s...
1
{'name': 'exec_check_and_lint@check_lint.py', 'description': "Utility function to unconditionally execute 'SublimeHaskellCHeckAndLint.run()' without worrying\nabout the command's status.", 'signature': 'def exec_check_and_lint(view, fly_mode=False, continue_success=None, error_handler=None):'}</s>MARKER_MANAGER = Marke...
0
{'name': 'YoutubeBaseInfoExtractor._login@script.module.youtube.dl/lib/youtube_dl/extractor/youtube.py', 'description': 'Attempt to log in to YouTube.\nTrue is returned if successful or skipped.\nFalse is returned if login failed.\n\nIf _LOGIN_REQUIRED is set and no authentication was provided, an error is raised.', 's...
0
{'name': 'TestObjectsE2E.test_create_alias_a_record@e2e_tests/test_objects.py', 'description': 'Create two A records with different names, but pointing to the same\nipv4addr', 'signature': 'def test_create_alias_a_record(self):'}</s>{'name': 'MemberFiledistribution@infoblox_client/objects.py', 'description': "MemberFil...
0
{'name': 'PyrataReTest.test_greedy_search_a_option_a_in_caaaad@do_tests.py', 'description': 'Test greedy search wi a_option_a_in_caaaad. The pattern is present in the data.', 'signature': 'def test_greedy_search_a_option_a_in_caaaad(self):'}</s>{'name': 'PyrataReTest@do_tests.py', 'description': "Test cases used for te...
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': '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_SSL_EVENT = 75
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>{'name': 'Clean...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQMHBO_LENGTH_1 = 12
0
{'name': 'TestDateTimeField.test__parent__init__method_included_in_init_chain@tests/test_db_fields.py', 'description': 'Test to protect from accidental incorrect __init__ method overwrite.', 'signature': 'def test__parent__init__method_included_in_init_chain(self, db, mocker):'}</s>{'name': 'StringField@flask_mongoengi...
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': 'Mesa.meta_fit@mesa.py', 'description': 'Meta-training process of MESA.\n\nParameters\n----------\nX_train : array-like of shape = [n_training_samples, n_features]\n The training data instances.\n\ny_train : array-like of shape = [n_training_samples]\n Labels for X_train.\n \nX_valid : array-like of s...
0
{'name': 'set_default@art/functions.py', 'description': 'Change text2art, tprint and tsave default values.\n\n:param font: input font\n:type font:str\n:param chr_ignore: ignore not supported character\n:type chr_ignore:bool\n:param filename: output file name (only tsave)\n:type filename:str\n:param print_status : save ...
0
{'name': '_get_values@pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py', 'description': 'Match attribute in text and return all matches.\n\n:returns: List of matches.', 'signature': 'def _get_values(attribute, text):'}</s>{'name': '_replace_value@pkgs/development/interpreters/pyth...
0
{'name': '_write_learning_curve_file@skll/experiments/output.py', 'description': 'Combine individual learning curve results JSON files into single TSV.\n\nTake a list of paths to individual learning curve results json files and\nwrite out a single TSV file with the learning curve data.\n\nParameters\n----------\nresult...
1
{'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': 'checkVectorList@src/python/Optizelle/Properties.py', 'description': 'Checks that an input is a list', 'signature': 'def checkVectorList(name,value):'}</s>{'name': 'VectorValuedFunction@src/python/Optizelle/Functions.py', 'description': 'A vector valued function interface, f : X -> Y', 'base_classes': ['object...
0
{'name': 'odctndict@training_codes/utils/utils_model.py', 'description': "D = ODCTNDICT((N1 N2 ... Np),(L1 L2 ... Lp)) returns an overcomplete \nDCT dictionary for p-dimensional signals of size N1xN2x...xNp. The number \nof DCT atoms in the i-th dimension is Li, so the combined dictionary is of\nsize (N1*N2*...*Np) x (...
0
{'name': 'Display.grab_server@Monika After Story/game/python-packages/Xlib/display.py', 'description': 'Disable processing of requests on all other client connections\nuntil the server is ungrabbed. Server grabbing should be avoided\nas much as possible.', 'signature': 'def grab_server(self, onerror = None):'}</s>GXor ...
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': 'fill_filter_mosaics@grizli/pipeline/auto_script.py', 'description': 'Fill field mosaics with the average value taken from other filters so that all images have the same coverage\n\nParameters\n----------\nfield_root : str', 'signature': 'def fill_filter_mosaics(field_root):'}</s>{'name': 'load_GroupFLT@grizli...
0
{'name': 'IsOutOfLineMethodDefinition@tools/cpplint.py', 'description': 'Check if current line contains an out-of-line method definition.\n\nArgs:\n clean_lines: A CleansedLines instance containing the file.\n linenum: The number of the line to check.\nReturns:\n True if current line contains an out-of-line method d...
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': 'GRRFlowTests.testDownloadFilesForFlow@tests/lib/collectors/grr_hosts.py', 'description': 'Test if results are downloaded to the correct directories.', 'signature': 'def testDownloadFilesForFlow(self, mock_Get):'}</s>{'name': 'File@dftimewolf/lib/containers/containers.py', 'description': 'Attribute container d...
1
{'name': 'SmoothedValue.synchronize_between_processes@camera2car/auto_calib/util/misc.py', 'description': 'Warning: does not synchronize the deque!', 'signature': 'def synchronize_between_processes(self):'}</s>{'name': 'nested_tensor_from_tensor_list@camera2car/auto_calib/util/misc.py', 'description': 'DOCSTRING', 'cod...
0
{'name': 'writePreamble@cxxtest/cxxtestgen.py', 'description': 'Write the CxxTest header (#includes and #defines)', 'signature': 'def writePreamble( output ):'}</s>include_re = re.compile( r"\s*\#\s*include\s+<cxxtest/" )
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': 'U3.loadConfig@src/u3.py', 'description': 'Name: U3.loadConfig( configParserObj ) \nArgs: configParserObj, A Config Parser object to load in\nDesc: Takes a configuration and updates the U3 to match it.', 'signature': 'def loadConfig(self, configParserObj):'}</s>{'name': 'Counter0@src/u3.py', 'description': "Co...
0
{'name': 'minimal_init@soundrts/clientmedia.py', 'description': 'initialize sound, voice, screen, window title, keyboard', 'signature': 'def minimal_init():'}</s>{'name': 'login_type@soundrts/config.py', 'description': 'DOCSTRING', 'code': 'def login_type(s):\n assert isinstance(s, str)\n if not login_is_valid(s)...
0
{'name': 'TarInfo.frombuf@SneakerBot 2019/venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/distlib/_backport/tarfile.py', 'description': 'Construct a TarInfo object from a 512 byte bytes object.\n ', 'signature': 'def frombuf(cls, buf, encoding, errors):'}</s>S_IFLNK = 40960
0
{'name': 'test_https_h2_tls_context_configuration_rsa@test/integration/test_integration_basics.py', 'description': 'Test that specifying RSA compatible tls cipher suites works with the h2 pool.', 'signature': 'def test_https_h2_tls_context_configuration_rsa(https_test_server_fixture):'}</s>{'name': 'assertCounterBetwee...
0
{'name': 'FileInfo.BaseName@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'File base name - text after the final slash, before the final period.', 'signature': 'def BaseName(self):'}</s>{'name': '_IsSourceExtension@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'File extension (excluding dot) matches...
0
{'name': 'RootLogger.getRootLogger@local/clogging.py', 'description': ':param stream: An opened stream.\n:param logfile: A log filename or an opened LogFile Instance.', 'signature': "def getRootLogger(cls, name='root', level=WARNING, stream=None, logfile=None):"}</s>enable = root.enable
0
{'name': 'Writer.register@transit/writer.py', 'description': 'Register custom converters for object types present in your\napplication. This allows you to extend Transit to encode new types.\nYou must specify the obj type to be encoded, and the handler class\nthat should be used by the Marshaler during write-time.', '...
0
{'name': 'Constraint.__repr__@linopy/constraints.py', 'description': 'Print the constraint arrays.', 'signature': 'def __repr__(self) -> str:'}</s>{'name': 'generate_indices_for_printout@linopy/common.py', 'description': 'DOCSTRING', 'code': 'def generate_indices_for_printout(\n dim_sizes: Sequence[int], max_lines: ...
1
{'name': 'GeneratedProtocolMessageType.__init__@third_party/include/protobuf-2.6.1/python/google/protobuf/reflection.py', 'description': "Here we perform the majority of our work on the class.\nWe add enum getters, an __init__ method, implementations\nof all Message methods, and properties for all fields\nin the protoc...
0
{'name': 'PFPool._to_string@pf/rule.py', 'description': 'Return the string representation of the address pool.', 'signature': 'def _to_string(self):'}</s>PF_THRESHOLD_MULT = 1000
0
{'name': 'Empty@src/api/python/z3/z3.py', 'description': 'Create the empty sequence of the given sort\n>>> e = Empty(StringSort())\n>>> e2 = StringVal("")\n>>> print(e.eq(e2))\nTrue\n>>> e3 = Empty(SeqSort(IntSort()))\n>>> print(e3)\nEmpty(Seq(Int))\n>>> e4 = Empty(ReSort(SeqSort(IntSort())))\n>>> print(e4)\nEmpty(ReSo...
0
{'name': 'info_file@module/save.py', 'description': 'gather course information. ', 'signature': 'def info_file(url, course_path):'}</s>{'name': 'edit_cookie@module/cookies.py', 'description': 'this function edits cookie', 'code': "def edit_cookie(cookie, line):\n '''this function edits cookie'''\n add_new_line(co...
0
{'name': 'TestError.test_find@test/test_response.py', 'description': 'Can correctly identify the appropriate exception', 'signature': 'def test_find(self):'}</s>{'name': 'BadMessageException@nsq/exceptions.py', 'description': 'Exception for E_BAD_MESSAGE', 'base_classes': ['NSQException'], 'methods': []}
1
{'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
{'name': 'get_first_directory_in_directory@custom_components/hacs/utils/filters.py', 'description': 'Return the first directory in dirname or None.', 'signature': 'def get_first_directory_in_directory(content: list[str | Any], dirname: str) -> str | None:'}</s>{'name': 'filter_content_return_one_of_type@custom_componen...
0
{'name': 'find_links_or_emphs@marko/inline_parser.py', 'description': 'Fink links/images or emphasis from text.\n\n:param text: the original text.\n:param link_ref_defs: a mapping of link ref definitions.\n:returns: an iterable of match object.', 'signature': 'def find_links_or_emphs('}</s>attribute_no_lf = "[^\n\S]+[A...
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>MQCCSI_DEFAULT = 0
0
{'name': 'View._dbscan@picasso/gui/render.py', 'description': 'Performs DBSCAN in a given channel with user-defined parameters\nand saves the result.\n\nParameters\n----------\nchannel : int\n Index of the channel were clustering is performed\npath : str\n Path to save clustered localizations\nradius : float\n ...
0
{'name': 'Grid.__init__@chryswoods.com/python_and_data/testing/grid/grid.py', 'description': 'Construct a two-dimensional grid.\n\nw -- The width of the grid (number of cells).\nh -- The height of the grid (number of cells).', 'signature': 'def __init__(self, w, h):'}</s>{'name': 'Grid@chryswoods.com/python_and_data/te...
1
{'name': 'main@deb_pkg_tools/cli.py', 'description': 'Command line interface for the ``deb-pkg-tools`` program.', 'signature': 'def main():'}</s>{'name': 'deactivate_repository@deb_pkg_tools/repo.py', 'description': "Deactivate a local repository that was previously activated using :func:`activate_repository()`.\n\n:pa...
1
{'name': 'show@mpld3/_display.py', 'description': "Open figure in a web browser\n\nSimilar behavior to plt.show(). This opens the D3 visualization of the\nspecified figure in the web browser. On most platforms, the browser\nwill open automatically.\n\nParameters\n----------\nfig : matplotlib figure\n The figure to...
0
{'name': 'on_restore_database@src/server/server.py', 'description': 'Restore database.', 'signature': 'def on_restore_database(data):'}</s>{'name': 'on_backup_database@src/server/server.py', 'description': 'Backup database.', 'code': "def on_backup_database(*args):\n '''Backup database.'''\n bkp_name = RaceContex...
0
{'name': 'UnalignedDataset.__init__@data/unaligned_dataset.py', 'description': 'Initialize this dataset class.\n\nParameters:\n opt (Option class) -- stores all the experiment flags; needs to be a subclass of BaseOptions', 'signature': 'def __init__(self, opt):'}</s>{'name': 'BaseDataset@data/base_dataset.py', 'desc...
1
{'name': 'FPVal@src/api/python/z3/z3.py', 'description': 'Return a floating-point value of value `val` and sort `fps`.\nIf `ctx=None`, then the global context is used.\n\n>>> v = FPVal(20.0, FPSort(8, 24))\n>>> v\n1.25*(2**4)\n>>> print("0x%.8x" % v.exponent_as_long(False))\n0x00000004\n>>> v = FPVal(2.25, FPSort(8, 24...
0
{'name': 'PyMolecule.GetAllDescriptor@PyBioMed/Pymolecule.py', 'description': '#################################################################\nCalculate all descriptors (608).\n\nUsage:\n\n res=GetAllDescriptor()\n\n res is a dict form.\n#################################################################', 'sign...
0
{'name': '_Partition.t_test@diffxpy/testing/tests.py', 'description': "Performs a Welch's t-test within each partition of a data set.\n\nSee also annotation of de.test.t_test()\n\n:param grouping: str\n\n - column in data.obs/sample_description which contains the split of observations into the two groups.\n:param is...
0
{'name': 'APIConnection.__init__@qingcloud/iaas/connection.py', 'description': '@param qy_access_key_id - the access key id\n@param qy_secret_access_key - the secret access key\n@param zone - the zone id to access\n@param host - the host to make the connection to\n@param port - the port to use when connect to host\n@pa...
0
{'name': 'CD.__init__@code/pymqi/__init__.py', 'description': '__init__(**kw)', 'signature': 'def __init__(self, **kw):'}</s>MQRCCF_TOPIC_TYPE_ERROR = 3305
0
{'name': 'ReplaceByFeeTest.test_opt_in@test/functional/feature_rbf.py', 'description': 'Replacing should only work if orig tx opted in', 'signature': 'def test_opt_in(self):'}</s>OP_RSHIFT = CScriptOp(0x99)
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': 'git_pieces_from_vcs@versioneer.py', 'description': "Get version from 'git describe' in the root of the source tree.\n\nThis only gets called if the git-archive 'subst' keywords were *not*\nexpanded, and _version.py hasn't already been rewritten with a short\nversion string, meaning we're inside a checked out ...
0
{'name': 'generate_dataset@Chapter09/utils.py', 'description': "Before executing this function. Follow these steps;\n1. Download the datasets\nHandbags data Link 'https://people.eecs.berkeley.edu/~tinghuiz/projects/pix2pix/datasets/edges2handbags.tar.gz'\nShoes data Link 'https://people.eecs.berkeley.edu/~tinghuiz/proj...
0