text
string
label
int64
{'name': 'download_course@run.py', 'description': 'download course ', 'signature': 'def download_course(url):'}</s>{'name': 'animate_characters@module/message.py', 'description': 'printing ASCII arts line by line', 'code': "def animate_characters(color, string, speed):\n '''printing ASCII arts line by line'''\n #...
1
{'name': 'Block.AddLine@vimdoc/block.py', 'description': 'Adds a line of text to the block. Paragraph type is auto-determined.', 'signature': 'def AddLine(self, line):'}</s>{'name': 'MisplacedParentSection@vimdoc/error.py', 'description': 'DOCSTRING', 'base_classes': ['BadStructure'], 'methods': [{'name': 'MisplacedPar...
0
{'name': 'Recipient.get_suggestions@GeoHealthCheck/models.py', 'description': 'Return list of values to autocomplete for specific user\nand channel.', 'signature': 'def get_suggestions(cls, channel, for_user):'}</s>{'name': 'ResourceNotification@GeoHealthCheck/models.py', 'description': 'm2m for Recipient <-> Resource'...
1
{'name': 'test_eeg_topoplot@mne_icalabel/iclabel/tests/test_features.py', 'description': 'Test eeg_topoplot feature extraction.', 'signature': 'def test_eeg_topoplot(file, eeglab_result_file):'}</s>{'name': '_retrieve_eeglab_icawinv@mne_icalabel/iclabel/features.py', 'description': "Retrieve 'icawinv' from an MNE ICA i...
1
{'name': 'build_xlsx_response@export_action/report.py', 'description': 'Take a workbook and return a xlsx file response ', 'signature': 'def build_xlsx_response(wb, title="report"):'}</s>{'name': 'get_model_from_path_string@export_action/introspection.py', 'description': 'Return a model class for a related model\nroot_...
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': 'IUSequence.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load sequence data from the configuration', 'signature': 'def load(self, config: OrderedDict) -> "IUSequence":'}</s>{'name': 'IUSequenceRun@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'descrip...
0
{'name': 'safe_run2@amptk/process_illumina_folder.py', 'description': 'Call run(), catch exceptions.', 'signature': 'def safe_run2(*args, **kwargs):'}</s>{'name': 'runSubprocess4@amptk/amptklib.py', 'description': 'DOCSTRING', 'code': 'def runSubprocess4(cmd, logfile, logfile2):\n #function where cmd is issued in lo...
0
{'name': 'indirect_font@art/utils.py', 'description': 'Check input font for indirect modes.\n\n:param font: input font\n:type font : str\n:param text: input text\n:type text:str\n:return: font as str', 'signature': 'def indirect_font(font, text):'}</s>FONT_SMALL_THRESHOLD = 50
0
{'name': 'RobustPath.width@gdspy/path.py', 'description': 'Calculate the width of each parallel path.\n\nParameters\n----------\nu : number\n Position along the `RobustPath` to compute. This argument\n can range from 0 (start of the path) to `len(self)` (end of\n the path).\n\nReturns\n-------\nout : Numpy ar...
0
{'name': 'isa_c@riscvmodel/isa.py', 'description': 'Decorator for the instructions. The decorator contains the static information for the\ninstructions, in particular the encoding parameters and the assembler mnemonic.\n\n:param mnemonic: Assembler mnemonic\n:return: Wrapper class that overwrites the actual definition ...
0
{'name': 'GefHelpCommand.__rebuild@gef.py', 'description': 'Rebuild the documentation.', 'signature': 'def __rebuild(self) -> None:'}</s>{'name': 'RISCV@gef.py', 'description': 'DOCSTRING', 'base_classes': ['Architecture'], 'methods': [{'name': 'RISCV.instruction_length@gef.py', 'description': 'DOCSTRING', 'code': 'def...
0
{'name': 'Executor.update_server_stats@cr8/run_spec.py', 'description': 'Triggers ANALYZE on the server to update statistics.', 'signature': 'def update_server_stats(self):'}</s>{'name': 'Result@cr8/engine.py', 'description': 'DOCSTRING', 'base_classes': [], 'methods': [{'name': 'Result.__init__@cr8/engine.py', 'descri...
0
{'name': 'sqlSearch@py3/SciServer/SkyServer.py', 'description': 'Executes a SQL query to the SDSS database, and retrieves the result table as a dataframe. Maximum number of rows retrieved is set currently to 500,000.\n\n:param sql: a string containing the sql query\n:param dataRelease: SDSS data release (string). E.g, ...
0
{'name': 'replication@ExplanationEvaluation/tasks/replication.py', 'description': 'Perform the replication study.\nFirst load a pre-trained model.\nThen we train our expainer.\nFollowed by obtaining the generated explanations.\nAnd saving the obtained AUC score in a json file.\n:param config: a dict containing the conf...
1
{'name': 'worker_status@gedgo/views/dashboard.py', 'description': 'XHR view for whether the celery worker is up', 'signature': 'def worker_status(request):'}</s>DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/data/db.sqllite', } }
0
{'name': 'Export.load_data@core/Export.py', 'description': 'load metadata related to vuln', 'signature': 'def load_data(self):'}</s>{'name': 'serialize_data@common/utils.py', 'description': 'return json data or null', 'code': 'def serialize_data(response):\n """ return json data or null"""\n\n if len(response) !=...
0
{'name': 'data_generator@Mask_RCNN/mrcnn/model.py', 'description': 'A generator that returns images and corresponding target class ids,\nbounding box deltas, and masks.\n\ndataset: The Dataset object to pick data from\nconfig: The model config object\nshuffle: If True, shuffles the samples before every epoch\naugment: ...
0
{'name': 'is_arch_supported@python/taichi/lang/misc.py', 'description': 'Checks whether an arch is supported on the machine.\n\nArgs:\n arch (taichi_python.Arch): Specified arch.\n\nReturns:\n bool: Whether `arch` is supported on the machine.', 'signature': 'def is_arch_supported(arch):'}</s>j = axes(1)
0
{'name': 'keyError@chryswoods.com/python_and_data/testing/mypkg/mymodule_answer.py', 'description': 'A function that raises a KeyError. ', 'signature': 'def keyError():'}</s>{'name': 'test_isLucky@chryswoods.com/python_and_data/testing/mypkg/mymodule_answer.py', 'description': 'Test for the isLucky function. ', 'code':...
0
{'name': 'extcap_interfaces@tools/ble_sniffer/extcap/nrf_sniffer_ble.py', 'description': 'List available interfaces to capture from', 'signature': 'def extcap_interfaces():'}</s>logHandlerArray = []
0
{'name': 'GitUp.log@PyGitUp/gitup.py', 'description': 'Call a log-command, if set by git-up.fetch.all. ', 'signature': 'def log(self, branch, remote):'}</s>ON_WINDOWS = sys.platform == 'win32'
1
{'name': 'summariseSingleR@pipelines/pipeline_scxl.py', 'description': 'Collect the single R plots into a section for the report', 'signature': 'def summariseSingleR(infile, outfile):'}</s>{'name': 'scvelo@pipelines/pipeline_scxl.py', 'description': 'Plot the RNA velocity.\nThis analysis is highly parameterised and dif...
0
{'name': 'convert_inspirations@code/html/generate_static_website.py', 'description': ':param inspirations:\n:param entries:\n:return:', 'signature': 'def convert_inspirations(inspirations, entries):'}</s>{'name': 'developer_profile_link@code/html/generate_static_website.py', 'description': 'Creates links to developer p...
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': 'test_set_format_int3@cyvcf2/tests/test_reader.py', 'description': 'test that we can handle multiple (in this case 3) values per sample', 'signature': 'def test_set_format_int3():'}</s>{'name': 'test_add_filter_to_header@cyvcf2/tests/test_reader.py', 'description': 'DOCSTRING', 'code': 'def test_add_filter_to_...
0
{'name': 'PFState._from_struct@pf/state.py', 'description': 'Initialize class attributes from a pfsync_state structure.', 'signature': 'def _from_struct(self, s):'}</s>PF_GET_CLR_CNTR = 1
0
{'name': 'is_resource_modified@blockchain-env/lib/python3.7/site-packages/werkzeug/http.py', 'description': 'Convenience method for conditional requests.\n\n:param environ: the WSGI environment of the request to be checked.\n:param etag: the etag for the response for comparison.\n:param data: or alternatively the data ...
0
{'name': 'CheckForNonConstReference@third_party/cpplint/cpplint.py', 'description': 'Check for non-const references.\n\nSeparate from CheckLanguage since it scans backwards from current\nline, instead of scanning forward.\n\nArgs:\n filename: The name of the current file.\n clean_lines: A CleansedLines instance conta...
0
{'name': 'test_random_valid_mutation_with_all@tests/unit/test_ea_mutation.py', 'description': 'Test if a valid mutation is applied at random.\n\nI am honestly not sure of the best way to test this.\nBecause of the random nature, we repeat this enough times to ensure\neach mutation is tried with probability >0.99999.', ...
0
{'name': 'invalidate_board_cache@thread.py', 'description': 'Invalidates the cache for the given board in addition to the firehose.', 'signature': 'def invalidate_board_cache(board_id: int):'}</s>{'name': 'get_instance_name@app.py', 'description': 'DOCSTRING', 'code': 'def get_instance_name():\n def instance_name():...
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': 'get_versions@versioneer.py', 'description': "Get the project version from whatever source is available.\n\nReturns dict with two keys: 'version' and 'full'.", 'signature': 'def get_versions(verbose=False):'}</s>{'name': 'git_versions_from_keywords@versioneer.py', 'description': 'Get version information from g...
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>MQAT_QMGR_PUBLISH = 26
0
{'name': 'test_novalidate_noerrors@cerberus/tests/test_validation.py', 'description': 'In v0.1.0 and below `self.errors` raised an exception if no\nvalidation had been performed yet.', 'signature': 'def test_novalidate_noerrors(validator):'}</s>{'name': 'test_regex_with_flag@cerberus/tests/test_validation.py', 'descrip...
0
{'name': 'TestH8mail.setUp@tests/test_h8mail.py', 'description': 'Generating local files', 'signature': 'def setUp(self):'}</s>{'name': 'local_gzip_search@h8mail/utils/localgzipsearch.py', 'description': 'Receives list of all files to check for target_list.\nStarts a worker pool, one worker per file.\nReturn list of lo...
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': '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': 'get_config_vars@scripts/pdns/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/sysconfig.py', 'description': "With no arguments, return a dictionary of all configuration\nvariables relevant for the current platform.\n\nOn Unix, this means every variable defined in Python's installed Makefile;\nOn Wind...
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': 'friend_add@apps/blog/views.py', 'description': '申请友链\n@param request:\n@return:', 'signature': 'def friend_add(request):'}</s>{'name': 'Article@apps/blog/models.py', 'description': 'DOCSTRING', 'base_classes': ['models.Model'], 'methods': [{'name': 'Article.__str__@apps/blog/models.py', 'description': 'DOCSTR...
0
{'name': 'sync_all@harvesting/github.py', 'description': 'Sync all Github repos listed in software from backend', 'signature': 'def sync_all():'}</s>db = db_connect()
0
{'name': 'PCFExecute.unpack@code/pymqi/__init__.py', 'description': 'Unpack PCF message to dictionary\n ', 'signature': 'def unpack(message): # type: (bytes) -> dict'}</s>MQRCVTIME_ADD = 1
0
{'name': 'meshProcessingPipeline@dicom2stl/Dicom2STL.py', 'description': 'Apply a series of filters to the mesh', 'signature': 'def meshProcessingPipeline('}</s>{'name': 'extractSurface@dicom2stl/utils/vtkutils.py', 'description': 'Extract an isosurface from a volume.', 'code': 'def extractSurface(vol, isovalue=0.0):\n...
0
{'name': 'Nse.get_all_index_quote@src/nsetools/nse.py', 'description': "Gets information for all NSE indices in one request.\n\nThis method fetches quotes and information for all available indices on the\nNational Stock Exchange (NSE) through a single API call.\n\nReturns:\n list[dict]: A list of dictionaries where ...
1
{'name': 'IUZone.zone_id@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Return the zone_id. Should match the zone_id used in sequences', 'signature': 'def zone_id(self) -> str:'}</s>ICON_SEQUENCE_ZONE_ON = "mdi:play-circle-outline"
0
{'name': 'build_pspnet_ade20k_prior@model_util/pspnet/layers_builder.py', 'description': 'Build PSPNet.', 'signature': "def build_pspnet_ade20k_prior(nb_classes, inputs, activation='softmax', is_training=True):"}</s>{'name': 'Conv2D@model_util/pspnet/layers_utils.py', 'description': 'DOCSTRING', 'code': "def Conv2D(inp...
1
{'name': 'update_retention_date@databricks-adx-integration/src/code/tools/ADXProvisionTool/create_dataexplorer_database.py', 'description': 'update table retention date\n:param number_of_companies: number_of_companies\n:type number_of_companies: int', 'signature': 'def update_retention_date(number_of_companies):'}</s>M...
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': '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': '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': 'JDETracker.update@tracker/multitracker.py', 'description': 'Processes the image frame and finds bounding box(detections).\n\nAssociates the detection with corresponding tracklets and also handles lost, removed, refound and active tracklets\n\nParameters\n----------\nim_blob : torch.float32\n Tensor o...
1
{'name': 'LinearExpression.__repr__@linopy/expressions.py', 'description': 'Print the expression arrays.', 'signature': 'def __repr__(self) -> str:'}</s>{'name': 'assign_multiindex_safe@linopy/common.py', 'description': 'Assign a field to a xarray Dataset while being safe against warnings about multiindex corruption.\n...
0
{'name': 'ProAntiSaccades.run_trials@demo_experiments/anti_saccades.py', 'description': ' ', 'signature': 'def run_trials(self, nTrials, task, practice=False):'}</s>win = visual.Window(monitor = mon, screen = 1, size = SCREEN_RES, units = 'deg', fullscr = FULLSCREEN, ...
1
{'name': 'CheckTrailingSemicolon@third_party/cpplint/cpplint.py', 'description': 'Looks for redundant trailing semicolon.\n\nArgs:\n filename: The name of the current file.\n clean_lines: A CleansedLines instance containing the file.\n linenum: The number of the line to check.\n error: The function to call with any...
0
{'name': 'get_related_model@django_pandas/utils.py', 'description': 'Gets the related model from a related field', 'signature': 'def get_related_model(field):'}</s>{'name': 'replace_pk@django_pandas/utils.py', 'description': 'DOCSTRING', 'code': 'def replace_pk(model):\n base_cache_key = get_base_cache_key(model)\n\...
0
{'name': 'SimCycleGANModel.__init__@SIM-CycleGAN/models/simcycle_gan_model.py', 'description': 'Initialize the SIM-CycleGAN 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': 'define_D@SIM-CycleGAN...
1
{'name': 'BreakpointConditionsTestCase.breakpoint_conditions@llvm-project/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py', 'description': "Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.", 'signature': 'def breakpoint_conditions(self, inline=False):'}</s>...
0
{'name': 'test_modelview_generic_model@tests/coaster_tests/views_classview_test.py', 'description': 'Test ModelView[model] is copied to attr model.', 'signature': 'def test_modelview_generic_model() -> None:'}</s>db = SQLAlchemy(query_class=Query, metadata=Model.metadata)
0
{'name': 'CheckForNonConstReference@llvm-12.0.0-project/compiler-rt/lib/sanitizer_common/scripts/cpplint.py', 'description': 'Check for non-const references.\n\nSeparate from CheckLanguage since it scans backwards from current\nline, instead of scanning forward.\n\nArgs:\n filename: The name of the current file.\n cl...
0
{'name': 'Connection._handle_error@qds_sdk/connection.py', 'description': 'Raise exceptions in response to any http errors\nArgs:\n response: A Response object\nRaises:\n BadRequest: if HTTP error code 400 returned.\n UnauthorizedAccess: if HTTP error code 401 returned.\n ForbiddenAccess: if HTTP error code...
1
{'name': 'EmptyChunk.set_block@anvil/empty_chunk.py', 'description': 'Sets block at given coordinates\n\nParameters\n----------\nint x, z\n In range of 0 to 15\ny\n In range of 0 to 255\n\nRaises\n------\nanvil.OutOfBoundCoordidnates\n If X, Y or Z are not in the proper range', 'signature': 'def set_block(self...
1
{'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>MQPUBO_IS_RETAINED_PUBLICATION = 16
0
{'name': 'inception_resnet_v1@facetool/resnet.py', 'description': "Creates the Inception Resnet V1 model.\nArgs:\n inputs: a 4-D tensor of size [batch_size, height, width, 3].\n num_classes: number of predicted classes.\n is_training: whether is training or not.\n dropout_keep_prob: float, the fraction to keep befo...
0
{'name': 'insert_json@cr8/insert_json.py', 'description': 'Insert JSON lines from a file or stdin into a CrateDB cluster.\n\nIf no hosts are specified the statements will be printed.\n\nArgs:\n table: Target table name.\n bulk_size: Bulk size of the insert statements.\n concurrency: Number of operations to run...
1
{'name': 'Device.open@src/LabJackPython.py', 'description': 'Device.open(devType, Ethernet=False, firstFound = True, serial = None, localId = None, devNumber = None, ipAddress = None, handleOnly = False, LJSocket = None)\n\nOpen a device of type devType. ', 'signature': 'def open(self, devType, Ethernet=False, firstFou...
0
{'name': 'build_inlinepatterns@source-builder/sb/markdown/inlinepatterns.py', 'description': 'Build the default set of inline patterns for Markdown. ', 'signature': 'def build_inlinepatterns(md_instance, **kwargs):'}</s>EMPHASIS_2_RE = "(_)(.+?)\2"
1
{'name': 'ttm12@char60/accounting_60.py', 'description': ":param series: variables' name\n:param df: dataframe\n:return: ttm12", 'signature': 'def ttm12(series, df):'}</s>crsp_mom = conn.raw_sql(""" select permno, date, ret, retx, prc, shrout, vol from crsp.msf ...
0
{'name': 'process_options@src/python_scripts/scripts/uber_subject.py', 'description': 'return status and VarsObject structs of subject and control variables\n\n - given list of valid options, read and process the user options\n - if terminal option or -no_gui, return 0 (successful quit)\n\nreturn 1 : on success and ...
0
{'name': 'IUController.load@custom_components/irrigation_unlimited/irrigation_unlimited.py', 'description': 'Load config data for the controller', 'signature': 'def load(self, config: OrderedDict) -> "IUController":'}</s>CONF_ENTITY_BASE = "entity_base"
0
{'name': 'gen_inc_module@da/compiler/incgen.py', 'description': 'Generates the interface file from a DistPy AST.', 'signature': 'def gen_inc_module(daast, cmdline_args, filename=""):'}</s>{'name': 'AssignmentStmt@da/compiler/dast.py', 'description': 'DOCSTRING', 'base_classes': ['SimpleStmt'], 'methods': [{'name': 'Ass...
0
{'name': 'azero@pf/rule.py', 'description': "Return True if all numbers in 'seq' are 0s.", 'signature': 'def azero(seq):'}</s>PFTM_INTERVAL = 15
0
{'name': 'MetalAPI.get_position@uarm/wrapper/metal_api.py', 'description': "Get the position\n:param wait: True/False, default is True\n:param timeout: timeout, default is use the default cmd timeout\n:param callback: callback, default is None\n:return: [x, y, z] or 'TIMEOUT' if wait is True else None", 'signature': 'd...
0
{'name': '_ctypes.strides_as@venv/Lib/site-packages/numpy/core/_internal.py', 'description': 'Return the strides tuple as an array of some other\nc-types type. For example: ``self.strides_as(ctypes.c_longlong)``.', 'signature': 'def strides_as(self, obj):'}</s>_convorder = {b'=': _nbo}
0
{'name': 'nestedExpr@venv/Lib/site-packages/pkg_resources/_vendor/pyparsing.py', 'description': 'Helper method for defining nested lists enclosed in opening and closing\ndelimiters ("(" and ")" are the default).\n\nParameters:\n - opener - opening character for a nested list (default=C{"("}); can also be a pyparsing ex...
0
{'name': 'post_processing@ytmdl/main.py', 'description': 'Handle all the activities post search of the song.\n\nThis function will handle the following:\nConvert, Trim, Metadata, Cleaning up.', 'signature': 'def post_processing('}</s>{'name': 'pre_checks@ytmdl/main.py', 'description': 'Run some checks in order to make ...
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': 'cxx_file@config/filewrite.py', 'description': 'Generate a C++ file, with a warning header. ', 'signature': 'def cxx_file(lines):'}</s>{'name': 'star@config/util.py', 'description': 'Convert a function object that takes a starred parameter into one that takes an iterable parameter. ', 'code': "def star(func):\...
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_SHARED_CHL_RESTART = 1600
0
{'name': 'training_pipeline@alphapy/__main__.py', 'description': 'AlphaPy Training Pipeline\n\nParameters\n----------\nmodel : alphapy.Model\n The model object for controlling the pipeline.\n\nReturns\n-------\nmodel : alphapy.Model\n The final results are stored in the model object.\n\nRaises\n------\nKeyError\n...
1
{'name': 'Queue.dequeue@fn/immutable/list.py', 'description': 'Return pair of values: the item from the front of the queue and\nthe new queue object without poped element.', 'signature': 'def dequeue(self):'}</s>{'name': 'Queue@fn/immutable/list.py', 'description': 'A queue is a particular kind of collection in which t...
1
{'name': 'get_status@tools/pydfu.py', 'description': 'Get the status of the last operation.', 'signature': 'def get_status():'}</s>{'name': 'write_elements@tools/pydfu.py', 'description': 'Writes the indicated elements into the target memory,\nerasing as needed.', 'code': 'def write_elements(elements, mass_erase_used, ...
0
{'name': 'RemoteDetail.patch@tests/fiddle-flask-rest.py', 'description': 'Update an item given its name', 'signature': 'def patch(self, name):'}</s>{'name': 'RemoteDetail@tests/fiddle-flask-rest.py', 'description': 'Show a single item and lets you delete them', 'base_classes': ['Resource'], 'methods': [{'name': 'Remote...
1
{'name': 'Helpfile.WriteParagraph@vimdoc/output.py', 'description': 'Writes one paragraph.', 'signature': 'def WriteParagraph(self, p, namespace, indent=0):'}</s>{'name': 'MultipleHeaders@vimdoc/error.py', 'description': 'DOCSTRING', 'base_classes': ['ParseError'], 'methods': [{'name': 'MultipleHeaders.__init__@vimdoc/...
0
{'name': '_EpanetRule.add_control_condition@wntr/epanet/io.py', 'description': 'Add a ControlCondition from an IfThenElseControl', 'signature': "def add_control_condition(self, condition, prefix=' IF'):"}</s>{'name': '_ControlType@wntr/network/controls.py', 'description': 'DOCSTRING', 'base_classes': ['enum.Enum'], 'me...
0
{'name': 'MapperComplex.__init__@sklearn_tda/clustering.py', 'description': 'Constructor for the MapperComplex class.\n\nAttributes:\n inp (string): either "point cloud" or "distance matrix". Specifies the type of input data.\n filters (numpy array of shape (num_points) x (num_filters)): filters (sometimes called...
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': 'AlarmoBaseEntity._validate_code@custom_components/alarmo/alarm_control_panel.py', 'description': 'Validate given code.', 'signature': 'def _validate_code(self, code, state):'}</s>SERVICE_ARM = "arm"
0
{'name': 'azero@pf/rule.py', 'description': "Return True if all numbers in 'seq' are 0s.", 'signature': 'def azero(seq):'}</s>PFSTATE_SLOPPY = 2
0
{'name': 'DatabaseManager.create@peewee_moves.py', 'description': 'Create a new migration file for an existing model.\nModel could actually also be a module, in which case all Peewee models are extracted\nfrom the model and created.\n\n:param modelstr: Python class, module, or string pointing to a class or module.\n:re...
0
{'name': 'read_fixed_fmt@meza/io.py', 'description': "Reads a fixed-width csv file.\n\nArgs:\n filepath (str): The fixed width formatted file path or file like object.\n widths (List[int]): The zero-based 'start' position of each column.\n mode (Optional[str]): The file open mode (default: 'r').\n kwargs (d...
0
{'name': 'Serial._reconfigure_port@serial/rfc2217.py', 'description': 'Set communication parameters on opened port.', 'signature': 'def _reconfigure_port(self):'}</s>{'name': 'SerialBase@serial/serialutil.py', 'description': 'Serial port base class. Provides __init__ function and properties to\nget/set port settings.',...
0
{'name': 'qapp@src/pytestqt/plugin.py', 'description': "Fixture that instantiates the QApplication instance that will be used by\nthe tests.\n\nYou can use the ``qapp`` fixture in tests which require a ``QApplication``\nto run, but where you don't need full ``qtbot`` functionality.", 'signature': 'def qapp(qapp_args, q...
1
{'name': 'TotalText.parse_carve_txt@dataset/total_text.py', 'description': '.mat file parser\n:param gt_path: (str), mat file path\n:return: (list), TextInstance', 'signature': 'def parse_carve_txt(gt_path):'}</s>{'name': 'pil_load_img@dataset/data_util.py', 'description': 'DOCSTRING', 'code': 'def pil_load_img(path):\...
0
{'name': 'PlotViewIndependent.__init__@openmc_plotter/plotmodel.py', 'description': 'Initialize PlotViewIndependent attributes', 'signature': 'def __init__(self):'}</s>{'name': 'hash_model@openmc_plotter/plotmodel.py', 'description': 'Get hash values for materials.xml and geometry.xml (or model.xml)', 'code': 'def hash...
0
{'name': 'render@versioneer.py', 'description': 'Render the given version pieces into the requested style.', 'signature': 'def render(pieces, style):'}</s>{'name': 'write_to_version_file@versioneer.py', 'description': 'Write the given version number to the given _version.py file.', 'code': 'def write_to_version_file(fi...
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>{'nam...
0
{'name': 'Shortcut._get_loader_class@shortcuts/shortcut.py', 'description': 'Based on file_format returns loader class for the format', 'signature': 'def _get_loader_class(self, file_format: str) -> Type[BaseLoader]:'}</s>{'name': 'PListLoader@shortcuts/loader.py', 'description': 'DOCSTRING', 'base_classes': ['BaseLoad...
1
{'name': 'p_member_declarator@ctypesgen/parser/cgrammar.py', 'description': 'member_declarator : declarator gcc_attributes\n| COLON constant_expression gcc_attributes\n| declarator COLON constant_expression gcc_attributes', 'signature': 'def p_member_declarator(p):'}</s>{'name': 'TypeQualifier@ctypesgen/parser/cdeclara...
0
{'name': 'CSSParser.parse_pseudo_class_custom@SneakerBot 2019/venv/lib/python3.7/site-packages/soupsieve/css_parser.py', 'description': 'Parse custom pseudo class alias.\n\nCompile custom selectors as we need them. When compiling a custom selector,\nset it to `None` in the dictionary so we can avoid an infinite loop.',...
0