text
string
label
int64
{'name': 'prometheus_metrics@emissionsapi/web.py', 'description': 'Return metrics in OpenMetrics format for Prometheus.\nMetrics are collected using the collectors from `emissionsapi.metrics`.\n\n:return: OpenMetrics data\n:rtype: werkzeug.wrappers.response.Response', 'signature': 'def prometheus_metrics():'}</s>__metr...
1
{'name': 'execute_and_aggregate_exclusive_ops@self_organising_systems/biomakerca/env_logic.py', 'description': 'Execute all exclusive functions and aggregate them all into a single\nExclusiveOp for each cell.\n\nThis function constructs sanitized interfaces for the input excl_fs and \nagent_excl_f, making sure that no ...
0
{'name': 'github_import@code/synchronization/github_import.py', 'description': 'Import various information from Github repositories (like contributors) or stars for Github repos\nGithub rate limiting limits us to 1000 queries an hour (also with a personal token?)', 'signature': 'def github_import():'}</s>{'name': 'git_...
0
{'name': 'modular_sqrt_composite@crypto_commons/rsa/rsa_commons.py', 'description': 'Calculates modular square root of composite value for given all modulus factors\nFor a = b^2 mod p*q*r*m... calculates b\n:param c: residue\n:param factors: list of modulus prime factors\n:return: all potential root values', 'signature...
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@third_party/cpplint/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....
0
{'name': 'RedfishType.validate@redfish_service_validator/catalog.py', 'description': 'Returns True if validation succeeds, else raises a ValueError', 'signature': 'def validate(self, val, added_pattern=None):'}</s>REDFISH_ABSENT = "n/a"
1
{'name': 'Unit.__new__@unyt/unit_object.py', 'description': "Create a new unit. May be an atomic unit (like a gram) or combinations\nof atomic units (like g / cm**3).\n\nParameters\n----------\nunit_expr : Unit object, sympy.core.expr.Expr object, or str\n The symbolic unit expression.\nbase_value : float\n The u...
0
{'name': 'View.update_pick_info_long@picasso/gui/render.py', 'description': 'Called when evaluating picks statistics in Info Dialog. ', 'signature': 'def update_pick_info_long(self):'}</s>{'name': 'n_block_locs_at@picasso/postprocess.py', 'description': 'DOCSTRING', 'code': 'def n_block_locs_at(x, y, size, K, L, block_...
0
{'name': 'UNSUBSCRIBE.encode@src/mqtt/pdu.py', 'description': 'Encode and store an UNSUBCRIBE control packet\n@raise e: C{ValueError} if any encoded topic string exceeds 65535 bytes', 'signature': 'def encode(self):'}</s>{'name': 'UNSUBSCRIBE@src/mqtt/pdu.py', 'description': 'DOCSTRING', 'base_classes': ['object'], 'me...
1
{'name': 'SessionRedirectMixin.resolve_redirects@src/requests/sessions.py', 'description': 'Receives a Response. Returns a generator of Responses or Requests.', 'signature': 'def resolve_redirects('}</s>{'name': 'get_netrc_auth@src/requests/utils.py', 'description': 'Returns the Requests tuple auth for a given url from...
0
{'name': 'ExtractHostLinksFastWarcJob.iterate_records@hostlinks_extract_fastwarc.py', 'description': 'Iterate over all WARC records and process them', 'signature': 'def iterate_records(self, warc_uri, archive_iterator):'}</s>{'name': 'CCFastWarcSparkJob@sparkcc_fastwarc.py', 'description': 'Process Common Crawl WARC/WA...
0
{'name': 'write_entry@code/utils/osg.py', 'description': ':param entry:\n:return:', 'signature': 'def write_entry(entry, overwrite=True):'}</s>code_dependencies_aliases = {'Simple DirectMedia Layer': ('SDL', 'SDL2'), 'Simple and Fast Multimedia Library': ('SFML',), 'Boost (C++ Libraries)': ...
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': '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': 'get_selected_function@Data/rda.ucar/rdams_client.py', 'description': 'Returns correct function based on options.\nArgs:\n options (dict) : Command with options.\n\nReturns:\n (function): function that the options specified', 'signature': 'def get_selected_function(args_dict):'}</s>{'name': 'submit_json@...
0
{'name': 'test_put_update_user_malformed_roles@test-http/src/test/org_user_tests/org.py', 'description': 'service should return useful error message for malformed roles ', 'signature': 'def test_put_update_user_malformed_roles():'}</s>{'name': 'test_post_new_org_empty_params@test-http/src/test/org_user_tests/org.py', '...
0
{'name': 'TestImport.test_existing_image_is_not_refetched@tests/tests/test_import.py', 'description': 'If an incoming object has a FileField that reports the same size/hash as the existing\nfile, we should not refetch the file', 'signature': 'def test_existing_image_is_not_refetched(self, get):'}</s>{'name': 'Category@...
0
{'name': '_makeTags@venv/Lib/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/pyparsing.py', 'description': 'Internal helper to construct opening and closing tag expressions, given a tag name', 'signature': 'def _makeTags(tagStr, xml):'}</s>_bslash = chr(92)
0
{'name': 'Device._buildReadRegisterPacket@src/LabJackPython.py', 'description': 'self._buildReadRegisterPacket(addr, numReg)\n\nBuilds a raw modbus "Read Register" packet to be written to a device\n\nReturns a tuple:\n(<Packet as a list>, <number of bytes to read>)', 'signature': 'def _buildReadRegisterPacket(self, add...
0
{'name': 'read_out@mcu/crystal/crystal_io.py', 'description': 'Read prefix.out file', 'signature': 'def read_out(filename):'}</s>atoms_MATCH = re.compile(r''' [ ]* (?P<order>\d+) [ ]* (?P<asym>\S+) [ ]* (?P<Z>\d+) [ ]* (?P<atom>\S+) [ ]* (?P<x>\S+) [ ]* (?P<y>\S+) [ ]* (?P<z>\S+) ''', re.VERBOSE)
1
{'name': 'add_constructor@Others_Labs/code/Survey-Survey/yaml/__init__.py', 'description': 'Add a constructor for the given tag.\nConstructor is a function that accepts a Loader instance\nand a node object and produces the corresponding Python object.', 'signature': 'def add_constructor(tag, constructor, Loader=Loader)...
0
{'name': 'IUSequenceRun.running@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Indicate if this sequence is running', 'signature': 'def running(self) -> bool:'}</s>CONF_REFRESH_INTERVAL = "refresh_interval"
0
{'name': 'MakefileWriter.Write@gyp/pylib/gyp/generator/make.py', 'description': "The main entry point: writes a .mk file for a single target.\n\nArguments:\n qualified_target: target we're generating\n base_path: path relative to source root we're building in, used to resolve\n target-relative paths\n ou...
0
{'name': 'MessageSetItemEncoder@third_party/include/protobuf-2.6.1/python/google/protobuf/internal/encoder.py', 'description': 'Encoder for extensions of MessageSet.\n\nThe message set message looks like this:\n message MessageSet {\n repeated group Item = 1 {\n required int32 type_id = 2;\n required stri...
0
{'name': 'MarkdownConverter.convert__document_@markdownify/__init__.py', 'description': 'Final document-level formatting for BeautifulSoup object (node.name == "[document]")', 'signature': 'def convert__document_(self, el, text, parent_tags):'}</s>UNDERLINED = "underlined"
0
{'name': 'eval_word_analogies@src/codes/utils/emb_utils.py', 'description': 'Sonvx: Evaluate word analogy for one embedding.\n:param word_analogies_file:\n:param words:\n:return:', 'signature': 'def eval_word_analogies(word_analogies_file, words: List[Word], embedding_name):'}</s>{'name': 'most_similar@src/codes/utils/...
0
{'name': 'Window.initUI@picasso/gui/render.py', 'description': 'Initializes the main window. Builds dialogs and menu bar.\n\nParameters\n----------\nplugins_loaded : boolean\n If True, plugins have been loaded before.', 'signature': 'def initUI(self, plugins_loaded):'}</s>{'name': 'compute_dark_times@picasso/postpro...
0
{'name': 'Speaker_Loss.calc_supervised_speaker_loss@GreedyInfoMax/audio/models/loss_supervised_speaker.py', 'description': 'Calculates the loss for fully supervised training using the provided speaker labels.\n:param c: output of the layer to be trained\n:param filename: filenames of the current files in the batch\n:pa...
1
{'name': 'pollardLambda@2020/Crypto/bakflip/Admin/exploit.py', 'description': 'input\n@Y: Pubkey\n@G: Generator\n@d: Msbits for recovered secret_multiplier\n\nOUTPUT\n@secret_multiplier as the output of pollardLambda algo.', 'signature': 'def pollardLambda(Y: Point, G: Point, d: int, lsb_mask: int) -> int:'}</s>k = dec...
0
{'name': '_AddMessageMethods@python/google/protobuf/internal/python_message.py', 'description': 'Adds implementations of all Message methods to cls.', 'signature': 'def _AddMessageMethods(message_descriptor, cls):'}</s>{'name': '_VarintEncoder@python/google/protobuf/internal/encoder.py', 'description': 'Return an encod...
0
{'name': 'TestUnstructuredSolver.test_sample_dqm_smoke_test@tests/test_mock_unstructured_submission.py', 'description': 'Construction of and sampling from an unstructured DQM solver works.', 'signature': 'def test_sample_dqm_smoke_test(self):'}</s>{'name': 'NLSolver@dwave/cloud/solver.py', 'description': 'NL solver int...
0
{'name': 'evaluate@examples/task_sequence_labeling_ner_crf.py', 'description': '评测函数\n ', 'signature': 'def evaluate(data):'}</s>train_data = load_data('/root/ner/china-people-daily-ner-corpus/example.train')
0
{'name': 'decode_labels@preprocessing.py', 'description': 'Decode batch of segmentation masks.\n\nArgs:\n mask: result of inference after taking argmax.\n num_images: number of images to decode from the batch.\n num_classes: number of classes to predict (including background).\n\nReturns:\n A batch with num_images ...
0
{'name': 'TestImport.test_existing_image_is_not_refetched@tests/tests/test_import.py', 'description': 'If an incoming object has a FileField that reports the same size/hash as the existing\nfile, we should not refetch the file', 'signature': 'def test_existing_image_is_not_refetched(self, get):'}</s>{'name': 'ModelWith...
0
{'name': '_lookup_module@dill/session.py', 'description': 'lookup name or id of obj if module is imported', 'signature': 'def _lookup_module(modmap, name, obj, main_module):'}</s>{'name': '_proxy_helper@dill/_dill.py', 'description': "get memory address of proxy's reference object", 'code': 'def _proxy_helper(obj): # a...
0
{'name': 'lookup_address@gef.py', 'description': 'Try to find the address in the process address space.\nReturn an Address object, with validity flag set based on success.', 'signature': 'def lookup_address(address: int) -> Address:'}</s>{'name': 'PieVirtualBreakpoint@gef.py', 'description': 'PIE virtual breakpoint (no...
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': 'Bottle.reset@src/back/kite/bottle.py', 'description': 'Reset all routes (force plugins to be re-applied) and clear all\ncaches. If an ID or route object is given, only that specific route\nis affected. ', 'signature': 'def reset(self, route=None):'}</s>{'name': 'http_date@src/back/kite/bottle.py', 'descriptio...
0
{'name': 'Diagram.upgrade@discopy/hypergraph.py', 'description': 'Turn a :class:`frobenius.Diagram` into a :class:`hypergraph.Diagram`.\n\n>>> x, y = map(Ty, "xy")\n >>> back_n_forth = lambda d: Diagram.upgrade(d.downgrade())\n>>> for d in [spiders(0, 0, x),\n... spiders(2, 3, x),\n... spiders(1,...
0
{'name': 'Mqtt.publish@flask_mqtt/__init__.py', 'description': 'Send a message to the broker.\n\n:param topic: the topic that the message should be published on\n:param payload: the actual message to send. If not given, or set to\n None a zero length message will be used. Passing an\n int ...
1
{'name': 'Audio.is_probably_empty@src/zignal/audio.py', 'description': 'Check if the absolute peak is below <limit> dB', 'signature': 'def is_probably_empty(self, limit=-80):'}</s>{'name': 'Sinetone@src/zignal/audio.py', 'description': 'DOCSTRING', 'base_classes': ['Audio'], 'methods': [{'name': 'Sinetone.__init__@src/...
0
{'name': 'analyze_build@libscanbuild/analyze.py', 'description': 'Entry point for analyze-build command. ', 'signature': 'def analyze_build():'}</s>Execution = collections.namedtuple('Execution', ['pid', 'cwd', 'cmd'])
0
{'name': 'move_file@fame/storage/storage.py', 'description': 'Moves a file.', 'signature': 'def move_file(from_path, to_path):'}</s>{'name': 'save_file@fame/storage/storage.py', 'description': 'DOCSTRING', 'code': "def save_file(path, data, content_type='text/plain'):\n if not storage:\n error('Storage not in...
0
{'name': '_get_args_for_wrapping@src/makefun/main.py', 'description': 'Internal method used by @wraps and create_wrapper\n\n:param wrapped:\n:param new_sig:\n:param remove_args:\n:param prepend_args:\n:param append_args:\n:param func_name:\n:param doc:\n:param qualname:\n:param co_name:\n:param module_name:\n:param att...
0
{'name': 'PoolManager.connection_from_url@src/ahip/poolmanager.py', 'description': 'Similar to :func:`hip.connectionpool.connection_from_url`.\n\nIf ``pool_kwargs`` is not provided and a new pool needs to be\nconstructed, ``self.connection_pool_kw`` is used to initialize\nthe :class:`hip.connectionpool.ConnectionPool`....
0
{'name': 'on_set_race_format@src/server/server.py', 'description': 'set current race_format ', 'signature': 'def on_set_race_format(data):'}</s>_prog_start_epoch1 = (RHTimeFns.getUtcDateTimeNow() - EPOCH_START).total_seconds()
0
{'name': '_disjoint@stix2matcher/matcher.py', 'description': "Checks whether the values in first sequence are disjoint from the\nvalues in the sequences in rest_seq.\n\nAll 'None' values in the sequences are ignored.\n\n:return: True if first_seq is disjoint from the rest, False otherwise.", 'signature': 'def _disjoint...
0
{'name': 'find_related_origin@django_eventstream/utils.py', 'description': "Find a related origin from a list of CORS (Cross-Origin Resource Sharing) origins\nbased on the request's absolute URI.\n\nArgs:\n request (HttpRequest): The HTTP request object.\n cors_origins (list): A list of CORS origins.\n\nReturns:\...
0
{'name': 'PingBinarySensor.available@cfg/hass/custom_components/ping_en/binary_sensor.py', 'description': 'Return if we have done the first ping.', 'signature': 'def available(self) -> bool:'}</s>ATTR_JITTER = "jitter"
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': 'NVMeOFConnectorTestCase.test_extend_volume_unreplicated_nvme_fails@os_brick/tests/initiator/connectors/test_nvmeof.py', 'description': 'nvme command fails, so it rescans, waits, and reads size.', 'signature': 'def test_extend_volume_unreplicated_nvme_fails('}</s>NQN = "target_nqn"
0
{'name': 'View.save_pick_properties@picasso/gui/render.py', 'description': "Saves picks' properties in a given channel to path.\n\nProperties include number of locs, mean and std of all locs\ndtypes (x, y, photons, etc) and others.\n\nParameters\n----------\npath : str \n Path for saving picks' properties.\nchannel ...
0
{'name': 'create_estimator_and_inputs@object_detection/model_lib.py', 'description': "Creates `Estimator`, input functions, and steps.\n\nArgs:\n run_config: A `RunConfig`.\n hparams: A `HParams`.\n pipeline_config_path: A path to a pipeline config file.\n config_override: A pipeline_pb2.TrainEvalPipelineConfig tex...
0
{'name': 'AdbDevice._clse@adb_shell/adb_device.py', 'description': "Send a ``b'CLSE'`` message and then read a ``b'CLSE'`` message.\n\n.. warning::\n\n This is not to be confused with the :meth:`AdbDevice.close` method!\n\n\nParameters\n----------\nadb_info : _AdbTransactionInfo\n Info and settings for this ADB tr...
0
{'name': 'SyntaxErrorTests.test_nonlocal3@didyoumean/didyoumean_sugg_tests.py', 'description': 'nonlocal must be used only when binding to non-global exists.', 'signature': 'def test_nonlocal3(self):'}</s>INVALIDTOKEN = (SyntaxError, re.INVALID_TOKEN_RE)
0
{'name': 'pointer_image@datoviz/__init__.py', 'description': 'Return a NumPy array of uint8 with shape (height, width, n_channels=3) from an ndpointer\nreferring to a C pointer to a buffer of RGB uint8 values.', 'signature': 'def pointer_image(rgb, width, height, n_channels=3):'}</s>VERTEX_INPUT_RATE_INSTANCE = 1
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': '_anonymous_or_get_parameter@swagger_to/intermediate.py', 'description': "Retrieve a parameter from the table if it's been defined or otherwise create a new parameter definition.\n\n:param original_param: parameter definition in the original Swagger spec\n:param typedefs: table of type definitions in intermedi...
0
{'name': 'CheckForNewlineAtEOF@third_party/cpplint/cpplint.py', 'description': 'Logs an error if there is no newline char at the end of the file.\n\nArgs:\n filename: The name of the current file.\n lines: An array of strings, each representing a line of the file.\n error: The function to call with any errors found....
0
{'name': 'echo@SneakerBot 2019/venv/lib/python3.7/site-packages/click/utils.py', 'description': "Prints a message plus a newline to the given file or stdout. On\nfirst sight, this looks like the print function, but it has improved\nsupport for handling Unicode and binary data that does not fail no\nmatter how badly co...
0
{'name': 'plot_sounding_data_uwyo@pymeteo/skewt.py', 'description': 'Plot SkewT from University of Wyoming sounding data\n\n:param filename: The name of the file containing sounding data\n:type filemane: str\n:param output: The name of the file to output plot\n:type output: str\n:param stationID: The station ID of a so...
0
{'name': 'TestAdminTree.test_result_tree@treebeard/tests/test_treebeard.py', 'description': 'Verifies that inclusion tag result_list generates a table when with\ndefault ModelAdmin settings.', 'signature': 'def test_result_tree(self, model_without_proxy):'}</s>{'name': 'RelatedModel@treebeard/tests/models.py', 'descrip...
0
{'name': 'dpll@Projects/2_Classical Planning/aimacode/logic.py', 'description': 'See if the clauses are true in a partial model.', 'signature': 'def dpll(clauses, symbols, model):'}</s>{'name': 'issequence@Projects/2_Classical Planning/aimacode/utils.py', 'description': 'Is x a sequence?', 'code': 'def issequence(x):\n...
0
{'name': 'plot_basis@src/ikpy/utils/plot.py', 'description': 'Plot a frame fitted to the robot size', 'signature': 'def plot_basis(ax, arm_length=1):'}</s>{'name': 'show_figure@src/ikpy/utils/plot.py', 'description': 'DOCSTRING', 'code': 'def show_figure():\n matplotlib.pyplot.show()'}
0
{'name': 'get_runs@mne_bids_pipeline/_config_utils.py', 'description': 'Return a list of runs in the BIDS input data.\n\nParameters\n----------\nsubject\n Returns a list of the runs of this subject.\nverbose\n Notify if different subjects do not share the same runs.\n\nReturns\n-------\nThe list of runs of the su...
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': 'update_payout_screen@displays/waveshare2in13v3.py', 'description': "Update the payout screen to reflect balance of deposited coins.\nScan the invoice??? I don't think so!", 'signature': 'def update_payout_screen():'}</s>lnurl_qr_2 = "receive"
0
{'name': 'RIPPER.score@wittgenstein/ripper.py', 'description': "Score the performance of a fit model.\n\nX : DataFrame, numpy array, or other iterable\n Examples to score.\ny : Series, numpy array, or other iterable\n Class label actuals.\n\nscore_function : function, default=score_accuracy\n Any scoring funct...
0
{'name': 'Topic.close@code/pymqi/__init__.py', 'description': 'Close the topic, using options.\n ', 'signature': 'def close(self, options=CMQC.MQCO_NONE):'}</s>od = OD
0
{'name': 'SketchReader._batch_data@network/script/loader.py', 'description': 'Assemble data into one batch.\n\nReturns:\n :return: batch data with shape [N, H, W, C].', 'signature': 'def _batch_data(self):'}</s>{'name': 'SketchReader@network/script/loader.py', 'description': 'TFRecords data reader.\nRead data from T...
1
{'name': 'BL3Save.import_protobuf@bl3save/bl3save.py', 'description': 'Given raw protobuf data, load it into ourselves so\nthat we can work with it. This also sets up a few\nconvenience vars for our later use', 'signature': 'def import_protobuf(self, data):'}</s>jetbeast_main_chassis = "/Geranium/Vehicles/Horse/Design...
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_from_coords@grizli/aws/sky_wfss.py', 'description': ' ', 'signature': "def extract_from_coords(ra=189.0706488, dec=62.2089502, grisms=['F356W-GRISMR','F410M-GRISMR','F444W-GRISMR'], size=48, grp=None, clean=False, get_cutout=True, cutout_filter='F444W-CLEAR', prefix='gdn-grism', verbose=True, mb_kw...
0
{'name': 'Doc.__init__@Others_Labs/code/SurveySubmit/yattag/doc.py', 'description': 'creates a Doc instance\n\ndefaults::\n optional dictionnary of values used to fill html forms\nerrors::\n optional dictionnary of errors used to fill html forms\n\nExample 1::\n doc = Doc()\n\nExample 2::\n doc = Doc(\n ...
1
{'name': 'create_autospec@Contents/Libraries/Shared/mock.py', 'description': "Create a mock object using another object as a spec. Attributes on the\nmock will use the corresponding attribute on the `spec` object as their\nspec.\n\nFunctions or methods being mocked will have their arguments checked\nto check that they ...
0
{'name': 'GoogleAlbumsSync.index_albums_type@src/gphotos_sync/GoogleAlbumsSync.py', 'description': 'query google photos interface for a list of all albums and index their\ncontents into the db', 'signature': 'def index_albums_type('}</s>{'name': 'GoogleAlbumMedia@src/gphotos_sync/GoogleAlbumMedia.py', 'description': 'D...
0
{'name': '_IsType@ament_cpplint/ament_cpplint/cpplint.py', 'description': 'Check if expression looks like a type name, returns true if so.\n\nArgs:\n clean_lines: A CleansedLines instance containing the file.\n nesting_state: A NestingState instance which maintains information about\n the current stac...
0
{'name': 'setup_logger@tune/local.py', 'description': 'Setup logger with correct verbosity and file handler.\n\nParameters\n----------\nverbose : int\n Verbosity level. If verbose = 0, use INFO level, otherwise DEBUG.\nlogfile : str\n Desired path to the logfile.\n\nReturns\n-------\nLogger\n Logger to be used...
1
{'name': 'get_handler_object@bin/crankd.py', 'description': 'Return a single instance of class_name, instantiating it if necessary.', 'signature': 'def get_handler_object(class_name):'}</s>{'name': 'restart@bin/crankd.py', 'description': 'Perform a complete restart of the current process using exec().', 'code': 'def re...
0
{'name': 'RIPPER._grow_ruleset_cn@wittgenstein/ripper.py', 'description': 'Grow a Ruleset with pruning.', 'signature': 'def _grow_ruleset_cn('}</s>{'name': 'drop_chars@wittgenstein/utils.py', 'description': 'DOCSTRING', 'code': 'def drop_chars(str_, chars):\n res = str_\n for char in chars:\n res = res.rep...
0
{'name': 'HomographyTransform.map_index_to_coord@util/homg_trans.py', 'description': 'Return the coordinate in the transformed space of the tile.\nDependencies: init_map_coordinate\n:param index: tile index\n:return: coordinate of the tile in the transformed space.', 'signature': 'def map_index_to_coord(self, index):'}...
0
{'name': '_SimpleDecoder@python/google/protobuf/internal/decoder.py', 'description': "Return a constructor for a decoder for fields of a particular type.\n\nArgs:\n wire_type: The field's wire type.\n decode_value: A function which decodes an individual value, e.g.\n _DecodeVarint()", 'signature': 'def _Si...
0
{'name': 'language_check@libscanbuild/analyze.py', 'description': 'Find out the language from command line parameters or file name\nextension. The decision also influenced by the compiler invocation. ', 'signature': 'def language_check(opts, continuation=filter_debug_flags):'}</s>{'name': 'get_arguments@libscanbuild/cl...
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': 'prepare_backend@src/api_trt/modules/model_zoo/getter.py', 'description': "Prepares the backend for a model.\n\nArgs:\n model_name (str): The name of the model.\n backend_name (str): The name of the backend (onnx, trt).\n im_size (List[int]): The desired maximum size of the image in W, H form.\n ma...
0
{'name': 'GroupFitter.xfit_redshift@grizli/fitting.py', 'description': 'Two-step procedure for fitting redshifts\n\n1. polynomial, spline template fits\n2. redshift grids\n3. ...\n\nParameters\n----------\nprior : None, (array, array)\n Redshift prior (z, pz). Will be interpolated to the redshift\n fit grid\n\nt...
0
{'name': 'PlotModel.create_tally_image@openmc_plotter/plotmodel.py', 'description': 'Parameters\n----------\nview : PlotView\n View used to set bounds of the tally data\n\nReturns\n-------\ntuple\n image data (numpy.ndarray), data extents (optional),\n data_min_value (float), data_max_value (float),\n data ...
0
{'name': 'unpackCommand@fwtool.py', 'description': 'Extracts the input file to the specified directory', 'signature': 'def unpackCommand(file, outDir):'}</s>dendChunkType = b'DEND'
0
{'name': 'Device.close@src/LabJackPython.py', 'description': 'close()\n\nCloses the device.\n\nOn Windows, this method only sets the device handle to None but does\nnot close the device. Instead use the Close function from the\nLabJackPython module which closes all devices in the program, and is\nthe only device close ...
0
{'name': 'ProcessFile@tools/cpplint.py', 'description': 'Does google-lint on a single file.\n\nArgs:\n filename: The name of the file to parse.\n\n vlevel: The level of errors to report. Every error of confidence\n >= verbose_level will be reported. 0 is a good default.\n\n extra_check_functions: An array of addi...
0
{'name': 'get_world_to_normalized_transform@ValveBatchExport/HeartValveBatchAnalysis/annulus_shape_analysis.py', 'description': "Compute transform that translates and rotates annulus points to a normalized position and\norientataion so that:\n- landmarks' centroid is translated into the origin\n- landmark0->landmark2 g...
0
{'name': 'course@module/save.py', 'description': 'create course folder ', 'signature': 'def course(url, lynda_folder_path):'}</s>{'name': 'add_new_line@module/cookies.py', 'description': 'returns cookie file with NETSCAPE line', 'code': "def add_new_line(cookie, line):\n '''returns cookie file with NETSCAPE line'''\...
0
{'name': 'create_eval_input_fn@object_detection/inputs.py', 'description': 'Creates an eval `input` function for `Estimator`.\n\nArgs:\n eval_config: An eval_pb2.EvalConfig.\n eval_input_config: An input_reader_pb2.InputReader.\n model_config: A model_pb2.DetectionModel.\n\nReturns:\n `input_fn` for `Estimator` in ...
0
{'name': 'get_validate@geetest_online/geetest_online.py', 'description': 'get geetest validate result by serial call', 'signature': 'def get_validate(session, search_name):'}</s>{'name': 'get_corp_query_geetest_validate_input@geetest_online/geetest_online.py', 'description': '[105,102,40,33,104,97,115,86,97,108,105,100...
1
{'name': 'User.edit_user@pydactyl/api/user.py', 'description': "Edits an existing user on the Pterodactyl panel.\n\nThe user_id is used to find the existing user. All other parameters\nwill be updated on that user_id.\n\nArgs:\n user_id(int): Pterodactyl User ID for the user to update.\n username(str): Username,...
1
{'name': 'ClusterAction.start_clusters@qingcloud/iaas/actions/cluster.py', 'description': 'Start one or more clusters.\n@param clusters: the array of clusters IDs.', 'signature': 'def start_clusters(self, clusters,'}</s>ACTION_START_ELASTICSEARCHS = "StartElasticsearchs"
0
{'name': 'gen_fortran@src/axom/sidre/interface/c_fortran/genfsidresplicer.py', 'description': 'Generate splicers used by Shroud.\n ', 'signature': 'def gen_fortran():'}</s>{'name': 'XXnum_metabuffers@src/axom/sidre/interface/c_fortran/genfsidresplicer.py', 'description': 'DOCSTRING', 'code': 'def XXnum_metabuffers()...
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': '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