code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ImportFromSourcesProjectHandler(plugin_interfaces.IProjectTypeHandler): <NEW_LINE> <INDENT> def __init__(self, explorer): <NEW_LINE> <INDENT> self.__explorer = explorer <NEW_LINE> <DEDENT> def get_pages(self): <NEW_LINE> <INDENT> return () <NEW_LINE> <DEDENT> def get_context_menus(self): <NEW_LINE> <INDENT> retur... | Handler for Import from existing sources project | 62598f293cc13d1c6d464693 |
@NS.route("/linear_regression", methods=["POST", "PUT"]) <NEW_LINE> class LinearRegressionCreate(Resource): <NEW_LINE> <INDENT> @NS.expect(req_regression.CREATE_LINEAR_REGRESSION_MODEL_PARAMS, validate=True) <NEW_LINE> @NS.marshal_with(res_regression.CREATE_MODEL_RES, code=200, description="SUCCESS") <NEW_LINE> def pos... | Linear Regression Model resource class
| 62598f29c4546d3d9def69f8 |
class BaseTestAPI(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.settings = load(open('settings.yaml', 'r').read()) <NEW_LINE> self.base_url = self.settings['base_url'] <NEW_LINE> self.project = 'JJ' <NEW_LINE> params = { 'login': self.settings['credentials']['login'], 'password': sel... | Base class for all test cases | 62598f29ad47b63b2c5a6735 |
class ErrNumerology(BotPlugin): <NEW_LINE> <INDENT> def get_configuration_template(self): <NEW_LINE> <INDENT> config = { 'ytUser': '', 'msgTemplate': '', 'channel': '#someChannel', } <NEW_LINE> return config <NEW_LINE> <DEDENT> def _check_config(self, option): <NEW_LINE> <INDENT> if self.config is None: <NEW_LINE> <IND... | A very basic module to check the number of subscribers of some user.
It expects to have the interface in Spanish. For other languages, you
can try changing the line:
word = 'suscriptores' | 62598f2a4c342835776191ff |
class Operation(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(Operati... | Operation provided by provider.
:param name: Name of the operation.
:type name: str
:param is_data_action: Indicates whether the operation is data action or not.
:type is_data_action: bool
:param display: Properties of the operation.
:type display: ~azure.mgmt.connectedvmware.models.OperationDisplay | 62598f2ac4546d3d9def69fb |
class CompileAsciiDoc(PageCompiler): <NEW_LINE> <INDENT> name = "asciidoc" <NEW_LINE> demote_headers = True <NEW_LINE> def compile_string(self, data, source_path=None, is_two_file=True, post=None, lang=None): <NEW_LINE> <INDENT> binary = self.site.config.get('ASCIIDOC_BINARY', 'asciidoc') <NEW_LINE> options = self.site... | Compile asciidoc into HTML. | 62598f2aad47b63b2c5a6739 |
class Privileges(): <NEW_LINE> <INDENT> def __init__(self, privileges): <NEW_LINE> <INDENT> self.privileges = privileges <NEW_LINE> <DEDENT> def show_privileges(self): <NEW_LINE> <INDENT> for privilege in self.privileges: <NEW_LINE> <INDENT> print(privilege) | 权限类 | 62598f2a091ae35668703b3c |
class OrderStatusApi(object): <NEW_LINE> <INDENT> def __init__(self, api_client=None): <NEW_LINE> <INDENT> config = Configuration() <NEW_LINE> if api_client: <NEW_LINE> <INDENT> self.api_client = api_client <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if not config.api_client: <NEW_LINE> <INDENT> config.api_client = A... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen | 62598f2a26238365f5fababf |
class PolyBeam(Part): <NEW_LINE> <INDENT> def AddContourPoint(self,contourPoint): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Delete(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetPolybeamCoordinateSystems(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Insert(self): <NEW_LINE> <INDENT> pass <N... | PolyBeam()
PolyBeam(polyBeamType: PolyBeamTypeEnum) | 62598f2ac4546d3d9def69ff |
class SshSource(Source, SshLocation): <NEW_LINE> <INDENT> def to_rsync(self): <NEW_LINE> <INDENT> return '%s@%s:%s/' % (self.user, self.host, self._path.rstrip('/')) | Provide a source over SSH. | 62598f2aad47b63b2c5a6741 |
class ConfigFile: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.config_file_name = 'config.json' <NEW_LINE> <DEDENT> def write_config(self, **kwargs): <NEW_LINE> <INDENT> with open(self.config_file_name, 'w') as config_file: <NEW_LINE> <INDENT> config_file.write(json.dumps(kwargs, indent=4)) <NEW_LIN... | read/write configuration file | 62598f2ac4546d3d9def6a00 |
class WatershedBase(luigi.Task): <NEW_LINE> <INDENT> task_name = 'watershed' <NEW_LINE> src_file = os.path.abspath(__file__) <NEW_LINE> input_path = luigi.Parameter() <NEW_LINE> input_key = luigi.Parameter() <NEW_LINE> output_path = luigi.Parameter() <NEW_LINE> output_key = luigi.Parameter() <NEW_LINE> mask_path = luig... | Watershed base class
| 62598f2aad47b63b2c5a6743 |
class KeyEncryptionKey(object): <NEW_LINE> <INDENT> userPassphrase = "" <NEW_LINE> decrypted_KEK = "" <NEW_LINE> config_key = "encrypted_master_password" <NEW_LINE> def __init__(self, user_passphrase): <NEW_LINE> <INDENT> self.userPassphrase = user_passphrase <NEW_LINE> if self.config_key not in configStorage: <NEW_LIN... | The keys are encrypted with a KeyEncryptionKey that is stored in
the configurationStore. It has a checksum to verify correctness
of the user_passphrase | 62598f2a627d3e7fe0e05dbe |
class DefaultBuilding(BasicBuilding, BuildableSingle): <NEW_LINE> <INDENT> pass | Building with default properties, that does nothing. | 62598f2aad47b63b2c5a674b |
@final <NEW_LINE> class AttrOf(Generic[_ObjectType, _AttrQueryType]): <NEW_LINE> <INDENT> pass | Type to return specified attribute of other type.
.. code:: python
>>> from typing_extensions import Literal
>>> from mypy_extras import AttrOf
>>> def example() -> AttrOf[str, Literal['split']]:
... return str.split
>>> # note: Revealed type is
>>> # 'def (
>>> # self: builtins.str,
>>> # ... | 62598f2a26238365f5fabacb |
class ContainerProviderDetailsView(ProviderDetailsView, LoggingableView): <NEW_LINE> <INDENT> SUMMARY_TEXT = VersionPicker({ LOWEST: 'Containers Providers', '5.11': 'Container Providers'}) <NEW_LINE> @property <NEW_LINE> def is_displayed(self): <NEW_LINE> <INDENT> return (super(ContainerProviderDetailsView, self).is_di... | Container Details page | 62598f2aad47b63b2c5a674d |
class Comment(models.Model): <NEW_LINE> <INDENT> content = models.CharField(max_length=255) <NEW_LINE> news = models.ForeignKey("News") <NEW_LINE> publish_date = models.DateField(auto_now_add=True) <NEW_LINE> update_date = models.DateField(auto_now=True) <NEW_LINE> likes = models.SmallIntegerField(default=0) <NEW_LINE>... | DOCUMENTATIONCategory
Comment class is reference of the comments for news in database.
Content is main text of the comment, news gets id of the News and keeps it for direction,
publish_date and update date keeps when the comment has opened and modified,
likes and reports hold number of their counts. | 62598f2ac4546d3d9def6a06 |
class DiagnoseCombinatie(DvPeriodicalValueset): <NEW_LINE> <INDENT> _schema_name = 'valset' <NEW_LINE> code = Columns.TextColumn() <NEW_LINE> dbc1 = Columns.TextColumn() <NEW_LINE> dbc2 = Columns.TextColumn() <NEW_LINE> omschrijving = Columns.TextColumn() <NEW_LINE> ingangsdatum = Columns.DateColumn() <NEW_LINE> eindda... | Standaard definitie nog opzoeken.
| 62598f2a3cc13d1c6d4646b3 |
class Reset(crispy_forms_layout.Reset): <NEW_LINE> <INDENT> input_type = 'reset' <NEW_LINE> field_classes = 'reset secondary button' | Used to create a Reset button input descriptor for the {% crispy %} template tag::
reset = Reset('Reset This Form', 'Revert Me!')
.. note:: The first argument is also slugified and turned into the id for the reset. | 62598f2a091ae35668703b50 |
class TrainNet(RSUNet): <NEW_LINE> <INDENT> def __init__(self, opt): <NEW_LINE> <INDENT> super(TrainNet, self).__init__(opt.in_spec, opt.out_spec, opt.depth, momentum=opt.momentum) <NEW_LINE> self.in_spec = opt.in_spec <NEW_LINE> self.out_spec = opt.out_spec <NEW_LINE> self.loss_fn = loss.BCELoss() <NEW_LINE> <DEDENT> ... | RSUNet for training. | 62598f2a627d3e7fe0e05dca |
class FootnotePreprocessor(Preprocessor): <NEW_LINE> <INDENT> def __init__ (self, footnotes): <NEW_LINE> <INDENT> self.footnotes = footnotes <NEW_LINE> <DEDENT> def run(self, lines): <NEW_LINE> <INDENT> newlines = [] <NEW_LINE> i = 0 <NEW_LINE> while True: <NEW_LINE> <INDENT> m = DEF_RE.match(lines[i]) <NEW_LINE> if m:... | Find all footnote references and store for later use. | 62598f2a26238365f5fabad3 |
class FileOutput(FileManager, Generic[CharMode], metaclass=ABCMeta): <NEW_LINE> <INDENT> @deprecated_str_to_path(1, "files") <NEW_LINE> def __init__( self, files: FilesArg = None, access: ModeAccessArg = "w", char_mode: Optional[CharMode] = None, linesep: Optional[CharMode] = None, encoding: str = "utf-8", header: Opti... | Base class for file manager that writes to multiple files.
Args:
files: The list of files to open.
char_mode: The CharMode.
access: How to open the output files ('w', 'a', 'x').
linesep: The line separator (type must match `char_mode`).
encoding: Default character encoding to use.
header: Defau... | 62598f2a627d3e7fe0e05dcc |
class PasswordForm(forms.Form): <NEW_LINE> <INDENT> old_password = forms.CharField(label="", widget=forms.PasswordInput(attrs={"placeholder": "Старый пароль"})) <NEW_LINE> password1 = forms.CharField(label="", widget=forms.PasswordInput(attrs={"placeholder": "Новый пароль"})) <NEW_LINE> password2 = forms.CharField(labe... | Форма смены пароля. Включает три поля:
- Старый пароль
- Новый пароль
- Подтверждение нового пароля | 62598f2a26238365f5fabad5 |
class CreateUDTSTaskParamSourceMySQLNodeSyncDataSchema(schema.RequestSchema): <NEW_LINE> <INDENT> fields = { "BinlogGTID": fields.Str(required=False, dump_to="BinlogGTID"), "BinlogName": fields.Str(required=False, dump_to="BinlogName"), "BinlogPos": fields.Int(required=False, dump_to="BinlogPos"), "ServerID": fields.In... | CreateUDTSTaskParamSourceMySQLNodeSyncData - | 62598f2b627d3e7fe0e05dce |
class APIError(Exception): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr(self.value) | Base exception class for any Wikisource API errors. | 62598f2b091ae35668703b56 |
class Settings: <NEW_LINE> <INDENT> _ENV_PREFIX = 'APP_' <NEW_LINE> MESSAGE_FILE = Path('./messages.txt') <NEW_LINE> def __init__(self, **custom_settings): <NEW_LINE> <INDENT> self._custom_settings = custom_settings <NEW_LINE> self.substitute_environ() <NEW_LINE> for name, value in custom_settings.items(): <NEW_LINE> <... | Any setting defined here can be overridden by:
Settings the appropriate environment variable, eg. to override FOOBAR, `export APP_FOOBAR="whatever"`.
This is useful in production for secrets you do not wish to save in code and
also plays nicely with docker(-compose). Settings will attempt to convert environment variab... | 62598f2b26238365f5fabad9 |
class ViewRefund(TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpTestData(cls): <NEW_LINE> <INDENT> cls.user = get_user_model().objects.create_superuser(username="dummy", password="dummy") <NEW_LINE> cls.factory = RequestFactory() <NEW_LINE> cls.customer = Customer.objects.create(name="test_supplier") <... | Same tests as EditPaymentNominalEntries | 62598f2b091ae35668703b58 |
class MongoDbCommandInput(Model): <NEW_LINE> <INDENT> _attribute_map = { 'object_name': {'key': 'objectName', 'type': 'str'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(MongoDbCommandInput, self).__init__(**kwargs) <NEW_LINE> self.object_name = kwargs.get('object_name', None) | Describes the input to the 'cancel' and 'restart' MongoDB migration
commands.
:param object_name: The qualified name of a database or collection to act
upon, or null to act upon the entire migration
:type object_name: str | 62598f2b627d3e7fe0e05dd2 |
class ImagesList(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = Images.objects.all() <NEW_LINE> serializer_class = ImagesSerializers | Список картинок | 62598f2b4c34283577619225 |
class Namer(object): <NEW_LINE> <INDENT> def __init__(self, *args: str, **kwargs: dict) -> None: <NEW_LINE> <INDENT> self.args = args <NEW_LINE> self.kwargs = kwargs <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_foldername() -> str: <NEW_LINE> <INDENT> full_path = os.path.realpath(__file__) <NEW_LINE> path, _ = ... | For create a name for hyper-parameter searching.
namer = Namer(**{'test': 1, 'test2': 2})
print(namer.gen_name()) | 62598f2b3cc13d1c6d4646bf |
class SimpleMemcachePacker(object): <NEW_LINE> <INDENT> def pack(self, data): <NEW_LINE> <INDENT> if not (0 <= data[1] < 2**32): <NEW_LINE> <INDENT> raise ValueError('flags must fit in a 32-bit unsigned integer') <NEW_LINE> <DEDENT> return data[0] + struct.pack('>I', data[1]) <NEW_LINE> <DEDENT> def unpack(self, data):... | Kyoto Tycoon servers supporting the memcached protocol store the item flags (if enabled)
within the data itself. This packer marshalls "(value, flags)" pairs in this scenario. | 62598f2bc4546d3d9def6a0e |
class ObjectDBHelper(object): <NEW_LINE> <INDENT> def __init__(self, db_filename): <NEW_LINE> <INDENT> super(ObjectDBHelper, self).__init__() <NEW_LINE> self.db_filename = db_filename <NEW_LINE> self.load(self.db_filename) <NEW_LINE> <DEDENT> def add(self, name, id2D, id3D): <NEW_LINE> <INDENT> self.db['2D'][name].appe... | Loads and stores the ObjectDatabase to YAML file. | 62598f2b3cc13d1c6d4646c3 |
class DeleteQueue(base.DeleteCommand): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.DeleteQueue') <NEW_LINE> resource = 'queues' | Delete a given queue. | 62598f2bc4546d3d9def6a13 |
class position_analysis(object): <NEW_LINE> <INDENT> def __init__(self,year=2014): <NEW_LINE> <INDENT> self.year = year <NEW_LINE> self.df = salaries_preprocessing_by_year() <NEW_LINE> self.df = self.df.reset_index(1) <NEW_LINE> <DEDENT> def pos_salaries_trend(self): <NEW_LINE> <INDENT> salaries_pos_by_year = self.df.g... | This is a class for salaries analysis by positions. It has following functions:
1) Analyze and plot salaries trend by positions.
2) Analyze and plot salaries distribution by positions.
Attributes:
year: a year from 2000-2015.
df: a dataframe to be analyzed. | 62598f2b26238365f5fabae9 |
class InfoFrameFilter(gdb.Command): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(InfoFrameFilter, self).__init__("info frame-filter", gdb.COMMAND_DATA) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def enabled_string(state): <NEW_LINE> <INDENT> if state: <NEW_LINE> <INDENT> return "Yes" <NEW_LINE> <... | List all registered Python frame-filters.
Usage: info frame-filters | 62598f2bad47b63b2c5a676b |
class WrongOpenModeError(Error): <NEW_LINE> <INDENT> pass | Incorrect file open mode. | 62598f2bad47b63b2c5a676d |
class _AdHocColumnsStatement(ClauseElement): <NEW_LINE> <INDENT> __visit_name__ = None <NEW_LINE> def __init__(self, text, columns): <NEW_LINE> <INDENT> self.element = text <NEW_LINE> self.column_args = [ coercions.expect(roles.ColumnsClauseRole, c) for c in columns ] <NEW_LINE> <DEDENT> def _generate_cache_key(self): ... | internal object created to somewhat act like a SELECT when we
are selecting columns from a DML RETURNING. | 62598f2b627d3e7fe0e05de6 |
class NamesRoot(BoxLayout): <NEW_LINE> <INDENT> def suggest_names(self, length=3, chars_in='', return_results=1): <NEW_LINE> <INDENT> lookup_char = chars_in and chars_in.upper() or ''.join([chr(x) for x in range(65, 65 + 26)]) <NEW_LINE> result = [] <NEW_LINE> for i in range(return_results): <NEW_LINE> <INDENT> name = ... | A general class to generate the names as per the configuration | 62598f2b187af65679d293b6 |
class Log(object): <NEW_LINE> <INDENT> def __init__(self, directory = "log"): <NEW_LINE> <INDENT> self.fname = "%s.log" % datetime.datetime.strftime(datetime.datetime.now(), "%Y-%m-%d %H_%M_%S") <NEW_LINE> self.directory = os.path.abspath(directory) <NEW_LINE> if not os.path.exists(self.directory): <NEW_LINE> <INDENT> ... | [CN]usage
当初始化Log类的时候,会自动在脚本运行所在目录创建一个叫log的目录
每当try,except时,在人类能预计错误的情况下,可以用
Log.write(index, message)方法把日志写入名为%Y-%m-%d %H_%M_%S.txt的
日志文件中。(index和message就可以自己定义了)
而在无法预知错误的情况下,可以用:
import sys
Log.write(index = sys.exc_info()[0], message = sys.exc_info()[1])
把捕获到的异常写入日志 | 62598f2bc4546d3d9def6a18 |
class GetSubjectException(Exception): <NEW_LINE> <INDENT> pass | Exception on get subject_id
| 62598f2b187af65679d293b8 |
class PersistenceLandscape(ABC): <NEW_LINE> <INDENT> def __init__(self, dgms: list = [], hom_deg: int = 0) -> None: <NEW_LINE> <INDENT> if not isinstance(hom_deg, int): <NEW_LINE> <INDENT> raise TypeError("hom_deg must be an integer") <NEW_LINE> <DEDENT> if hom_deg < 0: <NEW_LINE> <INDENT> raise ValueError('hom_deg mus... | The base Persistence Landscape class.
This is the base persistence landscape class. This class should not be
called directly; the subclasses `PersLandscapeApprox` or
`PersLandscapeExact` should instead be called.
Parameters
----------
dgms: list[list]
A list of birth-death pairs.
hom_deg: int
The homolog... | 62598f2b26238365f5fabaf5 |
class NatsTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @given( strategies.integers(min_value=0), strategies.integers(min_value=2), ) <NEW_LINE> def test_from_int(self, value, to_base): <NEW_LINE> <INDENT> result = Nats.convert_from_int(value, to_base) <NEW_LINE> self.assertNotEqual(result[:1], [0]) <NEW_LINE> self.... | Tests for ints. | 62598f2b3cc13d1c6d4646d9 |
class UnixTimestampField(models.IntegerField): <NEW_LINE> <INDENT> __metaclass__ = models.SubfieldBase <NEW_LINE> def __init__(self, null=False, blank=False, **kwargs): <NEW_LINE> <INDENT> super(UnixTimestampField, self).__init__(**kwargs) <NEW_LINE> self.blank, self.isnull = blank, null <NEW_LINE> self.null = True <NE... | UnixTimestampField: creates a DateTimeField that is represented on the
database as a TIMESTAMP field rather than the usual DATETIME field. | 62598f2b627d3e7fe0e05dee |
class APIKeyRequest(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'linked_read_properties': {'key': 'linkedReadProperties', 'type': '[str]'}, 'linked_write_properties': {'key': 'linkedWriteProperties', 'type': '[str]'}, } <NEW_LINE> def __init__(self, name=None, linked_read_prop... | An Application Insights component API Key createion request definition.
:param name: The name of the API Key.
:type name: str
:param linked_read_properties: The read access rights of this API Key.
:type linked_read_properties: list[str]
:param linked_write_properties: The write access rights of this API Key.
:type lin... | 62598f2cc4546d3d9def6a1b |
class IncompleteCIDLinesError(CIDRWError): <NEW_LINE> <INDENT> pass | Raised when STOP statement not reached during processing. | 62598f2c091ae35668703b7c |
class XrtBackend(xla_client.Backend): <NEW_LINE> <INDENT> def __init__(self, tf_context, tf_device_type, platform="tpu"): <NEW_LINE> <INDENT> super(XrtBackend, self).__init__(platform) <NEW_LINE> self.tf_device_type = tf_device_type <NEW_LINE> self.context = _xla.xrt.XrtContext.Create(tf_context, tf_device_type) <NEW_L... | XLA backend using XRT.
Args:
tf_context: an XrtTfContext object.
tf_device_type: the type of TensorFlow device to use for XRT (e.g. `"TPU"`). | 62598f2c187af65679d293be |
class Address(object): <NEW_LINE> <INDENT> def __init__(self, name, street_address, city, state, zip_code): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._street_address = street_address <NEW_LINE> self._city = city <NEW_LINE> self._state = state <NEW_LINE> self._zip_code = zip_code <NEW_LINE> logging.info('Ins... | An address object. | 62598f2c3cc13d1c6d4646e3 |
class NonTerminalOp(loom.LoomOp): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(NonTerminalOp, self).__init__([vector_type(), vector_type()], [vector_type()]) <NEW_LINE> self._weights = None <NEW_LINE> self._bias = None <NEW_LINE> self._vscope = "NonTerminal" <NEW_LINE> <DEDENT> def instantiate_batc... | Create a LoomOp for the non-terminals -- either a tree RNN or LSTM. | 62598f2cad47b63b2c5a6781 |
class InvalidEmail(Exception): <NEW_LINE> <INDENT> def __init__(self, value=''): <NEW_LINE> <INDENT> Exception.__init__(self, value) | ... | 62598f2c091ae35668703b80 |
class ObservatoryMetadata(object): <NEW_LINE> <INDENT> def __init__(self, metadata=None, interval_specific=None): <NEW_LINE> <INDENT> self.metadata = metadata or DEFAULT_METADATA <NEW_LINE> self.interval_specific = interval_specific or DEFAULT_INTERVAL_SPECIFIC <NEW_LINE> <DEDENT> def set_metadata(self, ... | Helper class for providing all the metadata needed for a geomag
timeseries.
Notes
-----
Currently the only method is set_metadata. Eventually this will probably
pull from a database, or maybe a config file. | 62598f2c187af65679d293c0 |
class PilotsLogging(Base): <NEW_LINE> <INDENT> __tablename__ = "PilotsLogging" <NEW_LINE> __table_args__ = {"mysql_engine": "InnoDB", "mysql_charset": "utf8"} <NEW_LINE> logID = Column("LogID", Integer, primary_key=True, autoincrement=True) <NEW_LINE> pilotUUID = Column("pilotUUID", String(255), nullable=False) <NEW_LI... | PilotsLogging table | 62598f2cc4546d3d9def6a21 |
class Client(Channel): <NEW_LINE> <INDENT> def __init__(self, database, cache_key): <NEW_LINE> <INDENT> super(Client, self).__init__(database, cache_key) <NEW_LINE> <DEDENT> def send_req(self, value): <NEW_LINE> <INDENT> _id = self.req_id(value) <NEW_LINE> if self.database.set(_id, value): <NEW_LINE> <INDENT> if self.r... | 客户端 | 62598f2c3cc13d1c6d4646e7 |
class BaseError(Exception): <NEW_LINE> <INDENT> def message(self, request): <NEW_LINE> <INDENT> return "An exception error occurred." <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "unknown" <NEW_LINE> <DEDENT> @property <NEW_LINE> def http_status(self): <NEW_LINE> <INDENT> return "... | A base :class:`Exception` class that provides hint for reporting
errors as JSON response. | 62598f2c187af65679d293c1 |
class ExtendedIUPACDNA(Alphabet.DNAAlphabet): <NEW_LINE> <INDENT> letters = IUPACData.extended_dna_letters | Extended IUPAC DNA alphabet.
In addition to the standard letter codes GATC, this includes:
- `B` = 5-bromouridine
- `D` = 5,6-dihydrouridine
- `S` = thiouridine
- `W` = wyosine | 62598f2c3cc13d1c6d4646e9 |
class CryptPasswordHasher(BasePasswordHasher): <NEW_LINE> <INDENT> algorithm = "crypt" <NEW_LINE> library = "crypt" <NEW_LINE> def salt(self): <NEW_LINE> <INDENT> return get_random_string(2) <NEW_LINE> <DEDENT> def encode(self, password, salt): <NEW_LINE> <INDENT> crypt = self._load_library() <NEW_LINE> assert len(salt... | Password hashing using UNIX crypt (not recommended)
The crypt module is not supported on all platforms. | 62598f2c3cc13d1c6d4646eb |
class ScraperTester(TestCase): <NEW_LINE> <INDENT> def test_get_scraperclasses(self): <NEW_LINE> <INDENT> for scraperclass in scraper.get_scraperclasses(): <NEW_LINE> <INDENT> scraperobj = scraperclass() <NEW_LINE> scraperobj = scraperclass(indexes=["bla"]) <NEW_LINE> self.assertTrue(scraperobj.url, "missing url in %s"... | Test scraper module functions. | 62598f2cad47b63b2c5a6789 |
class WeekOutOfBoundsError(RangeCheckError): <NEW_LINE> <INDENT> pass | Raised when week exceeds a year. | 62598f2c187af65679d293c5 |
class HighlightButton(ttk.Button): <NEW_LINE> <INDENT> digit = "" <NEW_LINE> def __init__(self, app, parent, digit): <NEW_LINE> <INDENT> self.digit = digit <NEW_LINE> self.pressed = False <NEW_LINE> self.app = app <NEW_LINE> ttk.Button.__init__( self, parent, text=digit, width=2, padding="0 0", command=self.on_click ) ... | Buttons showing every digits
Allowing user to see where not to write the selected digit | 62598f2c4c34283577619255 |
class Reference1(Model): <NEW_LINE> <INDENT> def __init__(self, target_version_id=None, target_id=None, _class=None, subclass=None): <NEW_LINE> <INDENT> self.openapi_types = { 'target_version_id': str, 'target_id': str, '_class': str, 'subclass': str } <NEW_LINE> self.attribute_map = { 'target_version_id': 'targetVersi... | NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Do not edit the class manually. | 62598f2cc4546d3d9def6a26 |
class PostDetail(SelectRelatedMixin, generic.DetailView): <NEW_LINE> <INDENT> model = models.Post <NEW_LINE> select_related = ('user', 'group') <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> queryset = super().get_queryset() <NEW_LINE> return queryset.filter( user__username__iexact=self.kwargs.get('username') ) | docstring for PostDetail | 62598f2c091ae35668703b8d |
class TreeSearchLineServiceStatus(Agent): <NEW_LINE> <INDENT> def __init__(self, environment): <NEW_LINE> <INDENT> super().__init__(environment) <NEW_LINE> self.verbose = True <NEW_LINE> self.ioman = ActIOnManager(destination_path='saved_actions_TreeSearchLineServiceStatus.csv') <NEW_LINE> <DEDENT> def act(self, observ... | Exhaustive tree search of depth 1 limited to no action + 1 line switch activation
| 62598f2cad47b63b2c5a678f |
class QueryLog(models.Model): <NEW_LINE> <INDENT> instance_name = models.CharField('实例名称', max_length=50) <NEW_LINE> db_name = models.CharField('数据库名称', max_length=64) <NEW_LINE> sqllog = models.TextField('执行的查询语句') <NEW_LINE> effect_row = models.BigIntegerField('返回行数') <NEW_LINE> cost_time = models.CharField('执行耗时', m... | 记录在线查询sql的日志 | 62598f2c4c34283577619259 |
class _GeneratorDataset(DatasetSource): <NEW_LINE> <INDENT> def __init__(self, init_args, init_func, next_func, finalize_func): <NEW_LINE> <INDENT> self._init_args = init_args <NEW_LINE> self._init_structure = structure.type_spec_from_value(init_args) <NEW_LINE> self._init_func = StructuredFunctionWrapper( init_func, s... | A `Dataset` that generates elements by invoking a function. | 62598f2c3cc13d1c6d4646f7 |
class DiscrDiff(GeneralNodeFunction): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> <DEDENT> def eval_me(self, inp): <NEW_LINE> <INDENT> outp = [0] <NEW_LINE> for iteration in range(len(inp) - 1): <NEW_LINE> <INDENT> outp.append(inp[iteration + 1] - inp[iteration]) <NEW_LINE> <... | (Y(i+1)-Y(i)) | 62598f2c091ae35668703b93 |
class NotANamespaceException(Exception): <NEW_LINE> <INDENT> pass | An attempt to get a namespace was made and the URI didn't end in # or / | 62598f2cc4546d3d9def6a2a |
class BracketAnalyze(): <NEW_LINE> <INDENT> def __init__(self, string_with_brackets:str): <NEW_LINE> <INDENT> self.__string_with_brackets = string_with_brackets <NEW_LINE> <DEDENT> @property <NEW_LINE> def string_with_brackets(self): <NEW_LINE> <INDENT> return self.__string_with_brackets <NEW_LINE> <DEDENT> @string_wit... | Класс для анализа количества открывающих и закрывающих скобок в строке | 62598f2d091ae35668703b97 |
class AlreadyVersionedError(BzrError): <NEW_LINE> <INDENT> _fmt = "%(context_info)s%(path)s is already versioned." <NEW_LINE> def __init__(self, path, context_info=None): <NEW_LINE> <INDENT> BzrError.__init__(self) <NEW_LINE> self.path = path <NEW_LINE> if context_info is None: <NEW_LINE> <INDENT> self.context_info = '... | Used when a path is expected not to be versioned, but it is. | 62598f2d627d3e7fe0e05e11 |
class RedirectStunnelTest(Plugin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.description = 'Redirect PROXY connection' <NEW_LINE> <DEDENT> async def perform_operation(self, cfg: Config, logger: logging.Logger) -> None: <NEW_LINE> <INDENT> stunnel = RedirectProxyWrong... | Stunnel redirect server tests
HTTPS client --> stunnel server --> HTTP server or "Wrong_connection!" | 62598f2d26238365f5fabb1b |
@python_2_unicode_compatible <NEW_LINE> class MigrationFile(models.Model): <NEW_LINE> <INDENT> path = models.CharField( max_length=1024, null=True, help_text="Relative path to the file (relative to Migration.common_path)" ) <NEW_LINE> digest = models.CharField( max_length=64, null=True, help_text="Checksum digest of th... | A record of a file in a migration in the JASMIN data migration app
(JDMA). | 62598f2d187af65679d293cc |
class Registrar(object): <NEW_LINE> <INDENT> registrar_backends = None <NEW_LINE> def __init__(self, web3, registrar_backends): <NEW_LINE> <INDENT> self.web3 = web3 <NEW_LINE> self.registrar_backends = registrar_backends <NEW_LINE> <DEDENT> def set_contract_address(self, contract_name, contract_address): <NEW_LINE> <IN... | Abstraction for recording known contracts on a given chain. | 62598f2d091ae35668703b9b |
class LazyString(str): <NEW_LINE> <INDENT> def __new__(cls, value, **kwargs): <NEW_LINE> <INDENT> obj = super().__new__(cls, value) <NEW_LINE> obj.named_placeholders = kwargs <NEW_LINE> return obj | LazyString object to localization
Example:
lazy = LazyString('my string')
TranslateJsonResponse(lazy)
Or if you want with dynamic values:
lazy = LazyString('My name is {name}', name='Edvard')
TranslateJsonResponse(lazy) | 62598f2d627d3e7fe0e05e15 |
class CloudRegisterView(HomeAssistantView): <NEW_LINE> <INDENT> url = '/api/cloud/register' <NEW_LINE> name = 'api:cloud:register' <NEW_LINE> @asyncio.coroutine <NEW_LINE> @_handle_cloud_errors <NEW_LINE> @RequestDataValidator(vol.Schema({ vol.Required('email'): str, vol.Required('password'): vol.All(str, vol.Length(mi... | Register on the Home Assistant cloud. | 62598f2d26238365f5fabb1d |
class AUTHOR(object): <NEW_LINE> <INDENT> def __init__(self, line): <NEW_LINE> <INDENT> record = line[0:6].strip() <NEW_LINE> if record == "AUTHOR": <NEW_LINE> <INDENT> self.authorList = line[10:70].strip() <NEW_LINE> <DEDENT> else: logger.error(record+'\n') ; raise ValueError | AUTHOR field
The AUTHOR record contains the names of the people responsible for the
contents of the entry. | 62598f2d4c34283577619265 |
class Selector(ParseNode): <NEW_LINE> <INDENT> delim = '' <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return ''.join(StringValue(n).value for n in self.data) | Simple selector node.
| 62598f2d091ae35668703b9d |
class PasswordRequiredError(KeyError, PasswordError): <NEW_LINE> <INDENT> pass | Password is unknown/expired. | 62598f2dc4546d3d9def6a2f |
class TestProject(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> if not os.path.exists('test_workspace'): <NEW_LINE> <INDENT> os.makedirs('test_workspace') <NEW_LINE> <DEDENT> with open(os.path.join(os.getcwd(), 'test_workspace/project_1.yaml'), 'wt') as f: <NEW_LINE> <INDENT> f.write(yaml.dump(pro... | test things related to the gccarm tool | 62598f2d627d3e7fe0e05e19 |
class YamlDictWrapper(dict): <NEW_LINE> <INDENT> def __getattr__(self, item): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> result = super(YamlDictWrapper, self).__getitem__(item) <NEW_LINE> return YamlDictWrapper(result) if isinstance(result, dict) else result <NEW_LINE> <DEDENT> except KeyError: <NEW_LI... | Wrapper class providing dotted access to dict items | 62598f2d26238365f5fabb21 |
class TxlistPsbtCreator(PsbtCreator): <NEW_LINE> <INDENT> def __init__(self, filename, prf, decoded_tx, trim): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.prf = prf <NEW_LINE> self.decoded_tx = decoded_tx <NEW_LINE> super().__init__(glacierscript.ManualWithdrawalXact( prf.cold_storage_address, prf.rede... | Construct a PSBT by mimicing a list of input transactions.
Also imports its address & redeem script into the bitcoind wallet.
Used for recreate-as-psbt, to build a PSBT based off the input
transactions and constructed outputs. | 62598f2d187af65679d293cf |
class Bootstrap3ModelForm(with_metaclass(NgModelFormMetaclass, Bootstrap3FormMixin, NgFormBaseMixin, BaseModelForm)): <NEW_LINE> <INDENT> pass | Convenience class to be used instead of Django's internal ``forms.ModelForm`` when declaring
a model form to be used with AngularJS and Bootstrap3 styling. | 62598f2d3cc13d1c6d464705 |
class GetGroupPolicyResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | A ResultSet with methods tailored to the values returned by the GetGroupPolicy Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 62598f2d4c3428357761926b |
class LambdaLR(_StepMixin, LRScheduler): <NEW_LINE> <INDENT> def __init__(self, optimizer, lr_lambda, *args, **kwargs): <NEW_LINE> <INDENT> super(LambdaLR, self).__init__(*args, **kwargs) <NEW_LINE> self._scheduler = lrs.LambdaLR(optimizer, lr_lambda) | Callback that sets the learning rate with a function.
Sets the learning rate of each parameter group to the initial lr times
a given function.
This callback is a wrapper for PyTorch lr_schedulers. | 62598f2d3cc13d1c6d464707 |
class D17Cycle192IncoherentSanTest(systemtesting.MantidSystemTest): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(D17Cycle192IncoherentSanTest, self).__init__() <NEW_LINE> self.setUp() <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> config['default.facility'] = 'ILL' <NEW_LINE> config['defa... | @brief Tests with VoS11 sample at 2 angles with the data from cycle #192
Uses incoherent summation with sample angle option. | 62598f2d4c3428357761926d |
class TagSortMenu(SimpleGetMenu): <NEW_LINE> <INDENT> get_param = 'sort' <NEW_LINE> default = 'old' <NEW_LINE> options = ('old', 'new', 'top') <NEW_LINE> def __init__(self, **kw): <NEW_LINE> <INDENT> kw['title'] = _("Sort By") + ':' <NEW_LINE> SimpleGetMenu.__init__(self, **kw) <NEW_LINE> <DEDENT> @classmethod <NEW... | Menu for listings by tag | 62598f2d3cc13d1c6d464709 |
class ObservationDisplacement(BaseObservation): <NEW_LINE> <INDENT> def __init__(self, identifier, location, attributes): <NEW_LINE> <INDENT> super(ObservationDisplacement, self).__init__(identifier, location, attributes) <NEW_LINE> self.total_disp = attributes['Total Displacement'] <NEW_LINE> self.category = attribute... | Class to hold displacement information for site observation | 62598f2d091ae35668703ba5 |
class EVRCompareLE(EVRCompare): <NEW_LINE> <INDENT> name = "<=" | Usage: ``(<= VER)``
``VER`` can be in any of the following forms
* ``EPOCH:VERSION``
* ``EPOCH:VERSION-RELEASE``
* ``VERSION``
* ``VERSION-RELEASE``
If ``EPOCH`` is omitted, it is presumed to be ``0``.
If ``RELEASE`` is omitted, it is presumed to be equivalent.
Passes builds whose EVR compares as requested. | 62598f2d187af65679d293d5 |
class CaseTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.rules = [{ "conditions": to_string("(&& (= 'female' @gender) (match '/(ша)$/' @value))"), "operations": to_string("(replace '/а$/' 'и' @value)")},{ "conditions": to_string("(match '/а$/' @value)"), "operations": to_string("... | Test rules engine | 62598f2d627d3e7fe0e05e27 |
class ClientsView(generics.ListAPIView): <NEW_LINE> <INDENT> queryset = Client.objects.all() <NEW_LINE> serializer_class = serializers.ClientSerializer <NEW_LINE> pagination_class = paginators.StandardResultsSetPagination | GET
Get all the clients in db | 62598f2d627d3e7fe0e05e2b |
class Mod97Code(ErrorCode): <NEW_LINE> <INDENT> def calculate(self, number): <NEW_LINE> <INDENT> return 98 - (number * 100) % 97 <NEW_LINE> <DEDENT> def is_valid(self, number, code): <NEW_LINE> <INDENT> return (number * 100 + code) % 97 == 1 | Expand a number on the right so that its mod-97 is 1.
This is a more advanced error detection code based on the IBAN check digits
scheme. | 62598f2dad47b63b2c5a67b4 |
class EmailNotUsedValidator(object): <NEW_LINE> <INDENT> code = "email_in_use" <NEW_LINE> msg = _("This email address is already in use." " Please supply a different email address.") <NEW_LINE> def __call__(self, value): <NEW_LINE> <INDENT> UserModel = get_user_model() <NEW_LINE> key = '%s__iexact' % settings.EMAIL_CHA... | A validator to check if a given email address is already taken. | 62598f2d187af65679d293d9 |
class TestListSettings(SimpleTestCase): <NEW_LINE> <INDENT> list_or_tuple_settings = ( "ALLOWED_HOSTS", "INSTALLED_APPS", "TEMPLATE_DIRS", "LOCALE_PATHS", "SECRET_KEY_FALLBACKS", ) <NEW_LINE> def test_tuple_settings(self): <NEW_LINE> <INDENT> settings_module = ModuleType("fake_settings_module") <NEW_LINE> settings_modu... | Make sure settings that should be lists or tuples throw
ImproperlyConfigured if they are set to a string instead of a list or tuple. | 62598f2d26238365f5fabb37 |
class GooglePrivacyDlpV2beta1RiskAnalysisOperationResult(_messages.Message): <NEW_LINE> <INDENT> categoricalStatsResult = _messages.MessageField('GooglePrivacyDlpV2beta1CategoricalStatsResult', 1) <NEW_LINE> kAnonymityResult = _messages.MessageField('GooglePrivacyDlpV2beta1KAnonymityResult', 2) <NEW_LINE> kMapEstimatio... | Result of a risk analysis
[`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations) request.
Fields:
categoricalStatsResult: A GooglePrivacyDlpV2beta1CategoricalStatsResult
attribute.
kAnonymityResult: A GooglePrivacyDlpV2beta1KAnonymityResult attribute.
kMapEstimationResult: A GooglePrivacyDlpV2bet... | 62598f2d091ae35668703bb7 |
class TestOptionalsSingleDashSubsetAmbiguous(ParserTestCase): <NEW_LINE> <INDENT> parser_signature = Sig(add_config=False, add_debug=False) <NEW_LINE> argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')] <NEW_LINE> failures = ['-f', '-foo', '-fo', '-foo b', '-foob', '-fooba', '-foora'] <NEW_LINE> successes... | Test Optionals where option strings are subsets of each other | 62598f2ec4546d3d9def6a3d |
class ListReusableConfigsResponse(proto.Message): <NEW_LINE> <INDENT> @property <NEW_LINE> def raw_page(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> reusable_configs = proto.RepeatedField( proto.MESSAGE, number=1, message=resources.ReusableConfig, ) <NEW_LINE> next_page_token = proto.Field( proto.STRING, ... | Response message for
[CertificateAuthorityService.ListReusableConfigs][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs].
Attributes:
reusable_configs (Sequence[google.cloud.security.privateca_v1beta1.types.ReusableConfig]):
The list of
[ReusableConfigs][googl... | 62598f2e627d3e7fe0e05e35 |
class cm_shell_volume: <NEW_LINE> <INDENT> def activate_cm_shell_volume(self): <NEW_LINE> <INDENT> self.register_command_topic('cloud','volume') <NEW_LINE> pass <NEW_LINE> <DEDENT> @command <NEW_LINE> def do_volume(self, args, arguments): <NEW_LINE> <INDENT> keys = os.environ.keys() <NEW_LINE> items = ['OS_USERNAME','O... | opt_example class | 62598f2e627d3e7fe0e05e39 |
class ResistantVirus(SimpleVirus): <NEW_LINE> <INDENT> def __init__(self, maxBirthProb, clearProb, resistances, mutProb): <NEW_LINE> <INDENT> SimpleVirus.__init__(self, maxBirthProb, clearProb) <NEW_LINE> self.resistances = resistances <NEW_LINE> self.mutProb = mutProb <NEW_LINE> <DEDENT> def isResistantTo(self, drug):... | Representation of a virus which can have drug resistance. | 62598f2e26238365f5fabb41 |
class VisitError(Exception): <NEW_LINE> <INDENT> def __init__(self, original_exception: Optional[Exception] = None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.ex = original_exception <NEW_LINE> <DEDENT> def find_embedded_exception(self) -> Exception: <NEW_LINE> <INDENT> if isinstance(self.ex, VisitError): ... | Exception while visiting. | 62598f2ead47b63b2c5a67c2 |
class RoiSubsetState3d(RoiSubsetStateNd): <NEW_LINE> <INDENT> @contract(xatt='isinstance(ComponentID)', yatt='isinstance(ComponentID)', zatt='isinstance(ComponentID)') <NEW_LINE> def __init__(self, xatt=None, yatt=None, zatt=None, roi=None, pretransform=None): <NEW_LINE> <INDENT> super(RoiSubsetState3d, self).__init__(... | A subset defined as the set of points in three dimensions that lie inside
a 3-d region of interest (ROI).
The three dimensions are defined as three numerical data attributes.
Parameters
----------
xatt : :class:`~glue.core.component_id.ComponentID`
The data attribute on the x axis.
yatt : :class:`~glue.core.compo... | 62598f2e4c34283577619288 |
class Policy(Resource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location'... | Protection profile details.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:ivar type: Resource Type.
:vartype type: str
:param location: Resource Location.
:type location: str
:param propert... | 62598f2e4c3428357761928c |
class GetContactIDs(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["hash"] <NEW_LINE> ID = 0x2caa4a42 <NEW_LINE> QUALNAME = "functions.contacts.GetContactIDs" <NEW_LINE> def __init__(self, *, hash: int) -> None: <NEW_LINE> <INDENT> self.hash = hash <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(data: Byt... | Telegram API method.
Details:
- Layer: ``122``
- ID: ``0x2caa4a42``
Parameters:
hash: ``int`` ``32-bit``
Returns:
List of ``int`` ``32-bit`` | 62598f2e091ae35668703bc4 |
class HSTInstrument(Instrument): <NEW_LINE> <INDENT> def __init__(self, mode=None, config={}, **kwargs): <NEW_LINE> <INDENT> telescope = HST() <NEW_LINE> Instrument.__init__(self, telescope=telescope, mode=mode, config=config, **kwargs) | Generic HST Instrument class | 62598f2e3cc13d1c6d464729 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.