code stringlengths 582 165k | apis sequence | extract_api stringlengths 325 147k |
|---|---|---|
# !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: <NAME>
# @Date: 2018-10-11 17:51:43
# @Last modified by: <NAME>
# @Last Modified time: 2018-11-29 17:23:15
from __future__ import print_function, division, absolute_import
import numpy as np
import astropy
import... | [
"marvin.utils.general.general.get_drpall_table",
"marvin.utils.plot.scatter.plot",
"marvin.tools.quantities.spectrum.Spectrum"
] | [((1530, 1567), 'numpy.argmax', 'np.argmax', (["[par1['snr'], par2['snr']]"], {}), "([par1['snr'], par2['snr']])\n", (1539, 1567), True, 'import numpy as np\n'), ((1585, 1622), 'numpy.argmin', 'np.argmin', (["[par1['rms'], par2['rms']]"], {}), "([par1['rms'], par2['rms']])\n", (1594, 1622), True, 'import numpy as np\n'... |
#!/usr/bin/env python
# encoding: utf-8
#
# bpt.py
#
# Created by <NAME> on 19 Jan 2017.
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from packaging.version import parse
import warnings
import matplotlib
import matplotlib.pyplot as plt
import numpy as ... | [
"marvin.utils.plot.bind_to_figure"
] | [((1783, 1810), 'matplotlib.pyplot.figure', 'plt.figure', (['None', '(8.5, 10)'], {}), '(None, (8.5, 10))\n', (1793, 1810), True, 'import matplotlib.pyplot as plt\n'), ((1830, 1885), 'matplotlib.pyplot.subplots_adjust', 'plt.subplots_adjust', ([], {'top': '(0.99)', 'bottom': '(0.08)', 'hspace': '(0.01)'}), '(top=0.99, ... |
# Imports
from time import sleep as wait # import sleep as wait for timer
from marvin.essentials import speak # speak function
from word2number import w2n
##############################
# File containing Timer code #
##############################
class TimerService():
def __init__(self, time_for, speak_type):
... | [
"marvin.essentials.speak"
] | [((2512, 2549), 'marvin.essentials.speak', 'speak', (['"""Timer Done!"""', 'self.speak_type'], {}), "('Timer Done!', self.speak_type)\n", (2517, 2549), False, 'from marvin.essentials import speak\n'), ((725, 767), 'marvin.essentials.speak', 'speak', (['"""You can\'t have a timer for 0 time"""'], {}), '("You can\'t have... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: <NAME>, <NAME>, and <NAME>
# @Date: 2017-03-20
# @Filename: conftest.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
#
# @Last modified by: <NAME>
# @Last modified time: 2018-07-21 21:51:06
import copy
import itertools
import os... | [
"marvin.config.login",
"marvin.config.forceDbOn",
"marvin.config.forceDbOff",
"marvin.config.setMPL",
"marvin.tools.modelcube.ModelCube",
"marvin.tools.maps.Maps",
"marvin.config.getoption",
"marvin.api.api.Interaction",
"marvin.tools.query.Query",
"marvin.utils.general.check_versions",
"marvin.... | [((872, 903), 'warnings.simplefilter', 'warnings.simplefilter', (['"""always"""'], {}), "('always')\n", (893, 903), False, 'import warnings\n'), ((4462, 4510), 'pytest.fixture', 'pytest.fixture', ([], {'scope': '"""session"""', 'params': 'releases'}), "(scope='session', params=releases)\n", (4476, 4510), False, 'import... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"marvin.lib.utils.validateList",
"marvin.lib.base.Account.create",
"marvin.lib.base.SecurityGroup.create",
"marvin.lib.base.SecurityGroup.delete",
"marvin.lib.common.get_domain",
"marvin.lib.base.SecurityGroup.list",
"marvin.lib.common.get_template",
"marvin.lib.utils.cleanup_resources"
] | [((4659, 4695), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': "['basic', 'provisioning']"}), "(tags=['basic', 'provisioning'])\n", (4663, 4695), False, 'from nose.plugins.attrib import attr\n'), ((11305, 11341), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': "['basic', 'provisioning']"}), "(tags=['basic', 'provi... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"marvin.cloudstackAPI.updateZone.updateZoneCmd",
"marvin.lib.base.Domain.create",
"marvin.lib.base.Account.create",
"marvin.lib.base.VirtualMachine.list"
] | [((7390, 7461), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': "['advanced', 'nuagevsp', 'isonw']", 'required_hardware': '"""false"""'}), "(tags=['advanced', 'nuagevsp', 'isonw'], required_hardware='false')\n", (7394, 7461), False, 'from nose.plugins.attrib import attr\n'), ((14323, 14392), 'nose.plugins.attrib.attr... |
"# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreeme(...TRUNCATED) | ["marvin.lib.common.list_snapshots","marvin.lib.utils.is_snapshot_on_nfs","marvin.lib.common.list_vo(...TRUNCATED) | "[((7341, 7399), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': \"['advanced', 'basic']\", 'requi(...TRUNCATED) |
"# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreeme(...TRUNCATED) | ["marvin.cloudstackAPI.listKubernetesClusters.listKubernetesClustersCmd","marvin.lib.base.StoragePoo(...TRUNCATED) | "[((16124, 16182), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': \"['advanced', 'smoke']\", 'req(...TRUNCATED) |
"# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreeme(...TRUNCATED) | ["marvin.lib.utils.get_process_status","marvin.lib.base.Domain.create","marvin.cloudstackAPI.rebootR(...TRUNCATED) | "[((9746, 9796), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': \"['advanced']\", 'required_hardw(...TRUNCATED) |
"# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreeme(...TRUNCATED) | ["marvin.lib.base.Domain.create","marvin.cloudstackAPI.listConfigurations.listConfigurationsCmd","ma(...TRUNCATED) | "[((7684, 7749), 'nose.plugins.attrib.attr', 'attr', ([], {'tags': \"['advanced', 'basic', 'sg']\", (...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 29