code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class SonicRPCTools(Operator, ImportHelper): <NEW_LINE> <INDENT> bl_idname = "srpc.extract" <NEW_LINE> bl_label = "Extract Files" <NEW_LINE> filename_ext = "*" <NEW_LINE> filter_glob: StringProperty( default="*", options={'HIDDEN'}, maxlen=255, ) <NEW_LINE> set_batch: EnumProperty( name="Batch usage", description="What... | Extract files from an uncompressed Sonic Riders PC Archive | 62598f918e7ae83300ee8cee |
class OrderDetailView(DetailView, PostActionMixin): <NEW_LINE> <INDENT> model = Order <NEW_LINE> def get_template_names(self): <NEW_LINE> <INDENT> return ["customer/order.html"] <NEW_LINE> <DEDENT> def get_object(self): <NEW_LINE> <INDENT> return get_object_or_404(self.model, user=self.request.user, number=self.kwargs[... | Customer order details | 62598f9171ff763f4b5e73bf |
class Xavier(Initializer): <NEW_LINE> <INDENT> def _init_weight(self, _, arr): <NEW_LINE> <INDENT> shape = arr.shape <NEW_LINE> fan_in, fan_out = shape[1], shape[0] <NEW_LINE> s = np.sqrt(6. / (fan_in + fan_out)) <NEW_LINE> random.uniform(-s, s, out=arr) | Initialize the weight with Xavier initialization scheme. | 62598f91a17c0f6771d5be85 |
class BubbleSort: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def sort(data): <NEW_LINE> <INDENT> if data is None: <NEW_LINE> <INDENT> raise TypeError("data should not be None.") <NEW_LINE> <DEDENT> if len(data) < 2: <NEW_LINE> <INDENT> return data <NEW_LINE> <DEDENT> for end in range(len(data) - 1, -1, -1): <NEW_LINE... | Time complexity:
- worst case: O(nˆ2)
- best case: O(n)
- average case: O(nˆ2)
Space complexity:
- O(1) | 62598f91baa26c4b54d4ef01 |
class SSManagerViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = models.SSManager.objects.all() <NEW_LINE> serializer_class = serializers.SSManagerSerializer <NEW_LINE> filter_fields = ['node', 'node__name', 'server_edition', 'is_server_enabled'] | This viewset automatically provides `list` and `detail` actions. | 62598f914e4d56256637206a |
class lidarscan(): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> with open(datafile, encoding='latin-1') as f: <NEW_LINE> <INDENT> data = [line.rstrip('\r\n') for line in f] <NEW_LINE> <DEDENT> headlines = int(data[0].split('=')[-1]) <NEW_LINE> self.header = data[0:headlines] <NEW_LINE> ranges =... | each lidar scan is an object constructed from input data.
Most often, data are stored as tarballs, so individual scans must be
extracted from the set zipped together | 62598f91fbf16365ca793cfc |
class FakeKATCPClientResourceManager(object): <NEW_LINE> <INDENT> def __init__(self, fake_katcp_resource_client): <NEW_LINE> <INDENT> self._fkrc = fake_katcp_resource_client <NEW_LINE> <DEDENT> @property <NEW_LINE> def _fic_manager(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> fic_manager = self._fkrc.fake_inspec... | Manage a fake KATCPClientResource instance | 62598f9107d97122c42168f8 |
class MessageMixin(object): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<{name} @{id:x}>".format( name=self.__class__.__name__, id=id(self) & 0xFFFFFF ) <NEW_LINE> <DEDENT> def body(self): <NEW_LINE> <INDENT> if isinstance(self, Message): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> data = [ { "... | Message mixin. | 62598f915f7d997b871f9200 |
class InventoryReader(Reader): <NEW_LINE> <INDENT> def __init__(self, f: str): <NEW_LINE> <INDENT> Reader.__init__(self, f) <NEW_LINE> print(f"Finished reading inventory from file.") <NEW_LINE> print(f"You have these fragments: {self.shells}\n") <NEW_LINE> <DEDENT> def from_file(self, f: str) -> Counter: <NEW_LINE> <IN... | Class to read shell fragments from a user's inventory.
A user's inventory must be copy/pasted from clickcritters.com/items.php
and has the following format:
Egg Fragment (1a)
x4
Egg Fragment (2a)
x5
Egg Fragment (3a)
x20
Note arbitrary amounts of whitespace between lines. ... | 62598f91a79ad16197769ca9 |
class Handler: <NEW_LINE> <INDENT> def on_quit(self): <NEW_LINE> <INDENT> Gtk.Application.quit(Application) <NEW_LINE> <DEDENT> def on_buttonClose_clicked(self, button): <NEW_LINE> <INDENT> self.on_quit() <NEW_LINE> <DEDENT> def on_buttonRun_clicked(self, button): <NEW_LINE> <INDENT> print("This is a placeholder for th... | all Glade signals go here | 62598f91435de62698e9ba3b |
class Application(tornado.web.Application): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Application, self).__init__(*args, **kwargs) <NEW_LINE> self.db = torndb.Connection(**config.mysql_options) <NEW_LINE> self.redis = redis.StrictRedis(**config.redis_options) | 用于添加url、数据库连接对象 | 62598f91596a8972361278c6 |
class EulerDiscretizedSDEModel(DiscretizedSDEModelBase): <NEW_LINE> <INDENT> generate_imports = ["ceacoest.modelling.gensde as _gensde"] <NEW_LINE> generated_bases = ["_gensde.ConditionalGaussianTransition"] <NEW_LINE> def f(self, k, x): <NEW_LINE> <INDENT> dt = self.dt <NEW_LINE> t = dt * k <NEW_LINE> f = self.ct_mode... | Euler--Maruyama SDE discretization. | 62598f910c0af96317c55fcf |
class Error(Exception): <NEW_LINE> <INDENT> pass | signals a plugin specific error. | 62598f918e71fb1e983bb6fe |
class Traverser(object): <NEW_LINE> <INDENT> def __init__(self, ast): <NEW_LINE> <INDENT> self.ast = ast <NEW_LINE> <DEDENT> def traverse_array(self, array: list, parent): <NEW_LINE> <INDENT> counter = 0 <NEW_LINE> while counter < len(array): <NEW_LINE> <INDENT> self.traverse_node(array[counter], parent) <NEW_LINE> cou... | Class that iterates all elements inside the Parser-generated AST | 62598f9182261d6c5272fcfb |
class VpException(Exception): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg | Basic error in the Vampyre package
:param string str: Error message. | 62598f9199cbb53fe6830b22 |
class MavenDetector(XPathDetector): <NEW_LINE> <INDENT> XPATHS = { "version": "/metadata/versioning/release/text()|/metadata/version/text()", "updatetime": "/metadata/versioning/lastUpdated/text()", "url": "/project/url/text()", "description": "/project/description/text()", "license": "/project/licenses/license/name/te... | This detector gets newest information from a Maven repository | 62598f91b7558d5895463278 |
class VMFacade(vm.VM, base_facade.BaseFacade): <NEW_LINE> <INDENT> DEFAULT_EXECUTION_TYPE = constants.ExecutionType.API <NEW_LINE> def __init__(self, id_, parent, host_ip=None, ip=None, username=None, password=None): <NEW_LINE> <INDENT> super(VMFacade, self).__init__(id_, parent=parent) <NEW_LINE> self.parent = parent ... | VM client class to initiate VM operations. | 62598f91507cdc57c63a49de |
class Post(polymodel.PolyModel, statistics.StatisticsMixin): <NEW_LINE> <INDENT> reply_to = db.SelfReferenceProperty('r', collection_name='replies') <NEW_LINE> author = db.ReferenceProperty('a', collection_name='posts') <NEW_LINE> session_key = db.StringProperty('s') <NEW_LINE> created = db.DateTime... | Base class representing either an image or a text post. | 62598f9160cbc95b06363f90 |
class Goal(object): <NEW_LINE> <INDENT> def __init__ (self, rule, parent=None, env={}) : <NEW_LINE> <INDENT> goalId = Prover.goalId <NEW_LINE> goalId += 1 <NEW_LINE> self.id = goalId <NEW_LINE> self.rule = rule <NEW_LINE> self.parent = parent <NEW_LINE> self.env = deepcopy(env) <NEW_LINE> self.inx = 0 | class for each goal in rule during prolog search | 62598f91097d151d1a2c0c76 |
class PreferencesSpinButtonRow(Handy.ActionRow): <NEW_LINE> <INDENT> def __init__(self, title, min_v, max_v, conf_key, signal=None, subtitle=None, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.title = title <NEW_LINE> if subtitle: <NEW_LINE> <INDENT> self.subtitle = subtitle <N... | A preferences row with a title and a spin button
title: the title shown
min_v: minimum num value
max_v: maximum num value
conf_key: the key of the configuration dictionary/json in ConfManager
signal: an optional signal to let ConfManager emit when the value changes | 62598f918da39b475be02e2b |
@public <NEW_LINE> class RegisterOptions(object): <NEW_LINE> <INDENT> __slots__ = ( 'match', 'invoke', 'concurrency', 'force_reregister', 'forward_for', 'details', 'details_arg', 'correlation_id', 'correlation_uri', 'correlation_is_anchor', 'correlation_is_last', ) <NEW_LINE> def __init__(self, match=None, invoke=None,... | Used to provide options for registering in
:func:`autobahn.wamp.interfaces.ICallee.register`. | 62598f913539df3088ecbf0a |
class NetapiClient(object): <NEW_LINE> <INDENT> def __init__(self, opts): <NEW_LINE> <INDENT> self.opts = opts <NEW_LINE> <DEDENT> def _is_master_running(self): <NEW_LINE> <INDENT> if self.opts['transport'] == 'tcp': <NEW_LINE> <INDENT> ipc_file = 'publish_pull.ipc' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> ipc_fil... | Provide a uniform method of accessing the various client interfaces in Salt
in the form of low-data data structures. For example:
>>> client = NetapiClient(__opts__)
>>> lowstate = {'client': 'local', 'tgt': '*', 'fun': 'test.ping', 'arg': ''}
>>> client.run(lowstate) | 62598f9101c39578d7f129d2 |
class WorkExperience(models.Model): <NEW_LINE> <INDENT> gguser = models.ForeignKey(User) <NEW_LINE> company_name = models.CharField(_('公司名称'), max_length=50) <NEW_LINE> position = models.CharField(_('职位'), max_length=50) <NEW_LINE> start_time = models.DateField(_('开始时间'), auto_now=False) <NEW_LINE> end_time = models.Da... | 用户工作经历。 | 62598f917d847024c075c01d |
class FeuilledeSprite(): <NEW_LINE> <INDENT> feuille_de_sprite = None <NEW_LINE> def __init__(self, nom_image): <NEW_LINE> <INDENT> self.feuille_de_sprite = pygame.image.load(nom_image).convert() <NEW_LINE> <DEDENT> def decouperImage(self, x, y, largeur_image, hauteur_image): <NEW_LINE> <INDENT> image = pygame.Surface(... | Permet de recuperer une image en particulier,
dans une feuille de sprite de plusieures images | 62598f91090684286d5934fd |
class BrokerTradingParamsField(Base): <NEW_LINE> <INDENT> _fields_ = [ ('BrokerID', ctypes.c_char * 11), ('InvestorID', ctypes.c_char * 13), ('MarginPriceType', ctypes.c_char), ('Algorithm', ctypes.c_char), ('AvailIncludeCloseProfit', ctypes.c_char), ('CurrencyID', ctypes.c_char * 4), ('OptionRoyaltyPriceType', ctypes.... | 经纪公司交易参数 | 62598f91dd821e528d6d8b7f |
class DA_SCSE_ResNeXt50(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels=3): <NEW_LINE> <INDENT> super(DA_SCSE_ResNeXt50, self).__init__() <NEW_LINE> self.encoder = SENet(SEResNeXtBottleneck, [3, 4, 6, 3], groups=32, reduction=16, dropout_p=None, inplanes=64, input_3x3=False, downsample_kernel_size=1, dow... | UNet backbone architecture based on ResNeXt50
+ Squeeze Excitation block + Dual Attention | 62598f91b57a9660fecd16cc |
class RocAucEvaluation(Callback): <NEW_LINE> <INDENT> def __init__(self, filepath = None, validation_data=()): <NEW_LINE> <INDENT> super(Callback, self).__init__() <NEW_LINE> self.filepath = filepath <NEW_LINE> self.best = 0 <NEW_LINE> self.X_val, self.y_val = validation_data <NEW_LINE> self.y_pred = np.zeros(self.y_va... | This callback computes AUC on the validation data which allows us to monitor training | 62598f91e76e3b2f99fd8682 |
@python_2_unicode_compatible <NEW_LINE> class Project(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> project_name = models.CharField(max_length=50) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.project_name | Information about Project | 62598f9145492302aabfc123 |
class Note(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=200, blank=True) <NEW_LINE> body = models.TextField(blank=True) <NEW_LINE> folder = models.ForeignKey(Folder) <NEW_LINE> timestamp = models.DateTimeField(auto_now_add=True) <NEW_LINE> tags = models.ManyToManyField('Tag', related_name='not... | A Note represents a single unit of information
A note is made up of a single title and body section (the content)
Timestamps are automatically generated with a creation of a new note
Each note can have many Tags.Each note exists in only one Folder at a time.
It is not possible for a single note to exist in two differen... | 62598f91ac7a0e7691f72158 |
class BuiltinProcedure(Procedure): <NEW_LINE> <INDENT> def __init__(self, fn, use_env=False, name='builtin'): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.fn = fn <NEW_LINE> self.use_env = use_env <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '#[{0}]'.format(self.name) <NEW_LINE> <DEDENT> de... | A Scheme procedure defined as a Python function. | 62598f91be383301e025344f |
class History(): <NEW_LINE> <INDENT> def __init__(self, metric_name): <NEW_LINE> <INDENT> self.history = {'loss': [], metric_name: []} <NEW_LINE> <DEDENT> def append_log(self, log_key, log_value): <NEW_LINE> <INDENT> self.history[log_key].append(log_value) | The `History` object gets returned by the `fit` method of models. | 62598f9123e79379d538c151 |
class Price(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> product_id = db.Column(db.Integer, db.ForeignKey('products.id'), nullable=False) <NEW_LINE> provider_id = db.Column(db.Integer, db.ForeignKey('providers.id'), nullable=False) <NEW_LINE> price = db.Colu... | Price model class
...
Attributes
----------
product_id : int
A product id primary key
provider_id : int
A provider id primary key
price : float
Product's price in this particular provider | 62598f91a79ad16197769cab |
class TestModuleSelftest(MgrTestCase): <NEW_LINE> <INDENT> MGRS_REQUIRED = 1 <NEW_LINE> def _selftest_plugin(self, plugin_name): <NEW_LINE> <INDENT> initial_gid = self.mgr_cluster.get_mgr_map()['active_gid'] <NEW_LINE> self.mgr_cluster.mon_manager.raw_cluster_cmd("mgr", "module", "enable", plugin_name) <NEW_LINE> def h... | That modules with a self-test command can be loaded and execute it
without errors.
This is not a substitute for really testing the modules, but it
is quick and is designed to catch regressions that could occur
if data structures change in a way that breaks how the modules
touch them. | 62598f917cff6e4e811b5666 |
class JSONConnection(Connection): <NEW_LINE> <INDENT> API_BASE_URL = None <NEW_LINE> API_VERSION = None <NEW_LINE> API_URL_TEMPLATE = None <NEW_LINE> @classmethod <NEW_LINE> def build_api_url(cls, path, query_params=None, api_base_url=None, api_version=None): <NEW_LINE> <INDENT> url = cls.API_URL_TEMPLATE.format( api_b... | A connection to a Google JSON-based API.
These APIs are discovery based. For reference:
https://developers.google.com/discovery/
This defines :meth:`api_request` for making a generic JSON
API request and API requests are created elsewhere.
The class constants
* :attr:`API_BASE_URL`
* :attr:`API_VERSION`
* :att... | 62598f91d53ae8145f9180d9 |
class BrewPiController(Observable): <NEW_LINE> <INDENT> def __init__(self, serial_port): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.serial = None <NEW_LINE> self.serial_port = serial_port <NEW_LINE> self.buffer = '' <NEW_LINE> self.is_connected = False <NEW_LINE> <DEDENT> def log_debug(self, message): <NEW_... | The actual BrewPi Controller.
Handle reading and writing commands to/from the serial port. | 62598f91c432627299fa2c1c |
class TestCheck(Check): <NEW_LINE> <INDENT> __test__ = True <NEW_LINE> @property <NEW_LINE> def this_check(self): <NEW_LINE> <INDENT> return chk <NEW_LINE> <DEDENT> def test_smoke(self): <NEW_LINE> <INDENT> assert self.passes("""Smoke phrase with nothing flagged.""") <NEW_LINE> assert not self.passes("""Paris in the th... | The test class for lexical_illusions.misc. | 62598f911f037a2d8b9e3d2c |
class Nancy16(Dataset): <NEW_LINE> <INDENT> def __init__(self, root_dir, transform=None): <NEW_LINE> <INDENT> self.root_dir = root_dir <NEW_LINE> self.transform = transform <NEW_LINE> self.files = os.listdir(root_dir) <NEW_LINE> <DEDENT> def __getitem__(self, idx): <NEW_LINE> <INDENT> specgram = self._load_melspecgram(... | Melspectrogram dataset | 62598f9155399d3f0562616a |
class Street(object): <NEW_LINE> <INDENT> def __init__(self, cnn, streetname, start, end): <NEW_LINE> <INDENT> self.cnn = cnn <NEW_LINE> self.streetname = streetname <NEW_LINE> self.start = start <NEW_LINE> self.end = end <NEW_LINE> <DEDENT> def get_cnn(self): <NEW_LINE> <INDENT> return self.cnn <NEW_LINE> <DEDENT> def... | cnn: unique id from datasf
streetname: string
start: intersection cnn
end: intersection cnn | 62598f91d58c6744b42dc0f4 |
class ProjectAdvertisingForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> model = Project <NEW_LINE> fields = ['allow_promos'] <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.project = kwargs.pop('project', None) <NEW_LINE> super(ProjectAdvertisingForm,... | Project promotion opt-out form. | 62598f91d6c5a102081e1d8e |
class GlobaltagbaseApi(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 =... | 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 | 62598f910a50d4780f705021 |
class AbstractSubprocessClass(object): <NEW_LINE> <INDENT> def __init__(self, runnable, encoding="utf-8", options=None): <NEW_LINE> <INDENT> self._runnable = runnable <NEW_LINE> self._encoding = encoding <NEW_LINE> self._closed = True <NEW_LINE> if isinstance(options, list): <NEW_LINE> <INDENT> self.options = options <... | Simple abstract wrapper class for commands that need to be
called with Popen and communicate with them | 62598f918da39b475be02e2d |
class LoginHandler(RollBlogHandler): <NEW_LINE> <INDENT> @tornado.web.addslash <NEW_LINE> def get(self): <NEW_LINE> <INDENT> if self.current_user: <NEW_LINE> <INDENT> self.write('already login') <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.render('admin-templates/login.html', error=None) <NEW_LINE> <DEDENT> <DEDE... | Authenticate as the administrator. | 62598f91b830903b9686e29a |
class DocumentIndex(indexes.Indexable, indexes.SearchIndex): <NEW_LINE> <INDENT> doc_type = indexes.CharField(model_attr='doc_type') <NEW_LINE> version = indexes.CharField(model_attr='version', null=True) <NEW_LINE> label_string = indexes.CharField(model_attr='label_string') <NEW_LINE> text = indexes.CharField(model_at... | Search index used by Haystack | 62598f9163b5f9789fe84dc2 |
class DnfExample(DnfBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> DnfBase.__init__(self) <NEW_LINE> fields = ["name","summary","description"] <NEW_LINE> values = ['yum','plugin'] <NEW_LINE> pkgs = self.search(fields,values) <NEW_LINE> print("%d packages found (match_all)" % len(pkgs)) <NEW_LINE> pk... | Test keyword searching | 62598f91dc8b845886d5320a |
class ClientAccessRight(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'client': {'required': True}, 'access_permission': {'required': True}, } <NEW_LINE> _attribute_map = { 'client': {'key': 'client', 'type': 'str'}, 'access_permission': {'key': 'accessPermission', 'type': 'str'}, } <NEW_LINE> def __... | The mapping between a particular client IP and the type of access client has on the NFS share.
All required parameters must be populated in order to send to Azure.
:param client: Required. IP of the client.
:type client: str
:param access_permission: Required. Type of access to be allowed for the client. Possible
va... | 62598f91d99f1b3c44d052fa |
class WeiboOAuth2(BaseOAuth2): <NEW_LINE> <INDENT> name = 'weibo' <NEW_LINE> ID_KEY = 'uid' <NEW_LINE> AUTHORIZATION_URL = 'https://api.weibo.com/oauth2/authorize' <NEW_LINE> REQUEST_TOKEN_URL = 'https://api.weibo.com/oauth2/request_token' <NEW_LINE> ACCESS_TOKEN_URL = 'https://api.weibo.com/oauth2/access_token' <NEW_L... | Weibo (of sina) OAuth authentication backend | 62598f918e7ae83300ee8cf2 |
class DBDatastoreConfigurationParameters(dbmodels.DatabaseModelBase): <NEW_LINE> <INDENT> _auto_generated_attrs = ['id'] <NEW_LINE> _data_fields = [ 'name', 'datastore_version_id', 'restart_required', 'max_size', 'min_size', 'data_type', 'deleted', 'deleted_at', ] <NEW_LINE> _table_name = "datastore_configuration_param... | Model for storing the configuration parameters on a datastore. | 62598f918da39b475be02e2e |
class SuperscriptExtension(markdown.extensions.Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md, md_globals): <NEW_LINE> <INDENT> md.inlinePatterns['superscript'] = SuperscriptPattern(SUPERSCRIPT_RE, md) | Superscript Extension for Python-Markdown. | 62598f918e71fb1e983bb701 |
@ut.reloadable_class <NEW_LINE> class IntraVerifier(BaseVerifier): <NEW_LINE> <INDENT> def __init__(verif, pblm, task_key, clf_key, data_key): <NEW_LINE> <INDENT> verif.pblm = pblm <NEW_LINE> verif.task_key = task_key <NEW_LINE> verif.clf_key = clf_key <NEW_LINE> verif.data_key = data_key <NEW_LINE> verif.metadata = { ... | Predicts cross-validated intra-training sample probs.
Note:
Requires the original OneVsOneProblem object.
This classifier is for intra-dataset evaulation and is not meant to be
pushlished for use on external datasets. | 62598f910fa83653e46f4b36 |
class _MaterialEditor(CommandManager): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(_MaterialEditor, self).__init__() <NEW_LINE> self.resources = { "Pixmap": "Arch_Material_Group", "MenuText": QtCore.QT_TRANSLATE_NOOP( "Material_Editor", "Material editor" ), "ToolTip": QtCore.QT_TRANSLATE_NOOP( "Ma... | The FEM_MaterialEditor command definition | 62598f91b57a9660fecd16cd |
class TestCryptotracker(PluginTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.module = self.load_plugin(cryptotracker.main) <NEW_LINE> <DEDENT> def test_print_in_color_red(self): <NEW_LINE> <INDENT> change = -1.54 <NEW_LINE> colored_text = Fore.RED + str(change) + Fore.RESET <NEW_LINE> self.assertE... | A test class that contains test cases for the methods of
the cryptotracker plugin. | 62598f91be8e80087fbbecaa |
class TryOtherMaxWidth(object): <NEW_LINE> <INDENT> __provides__ = ['mrz_final'] <NEW_LINE> __depends__ = ['mrz', '__pipeline__'] <NEW_LINE> def __init__(self, other_max_width=1000): <NEW_LINE> <INDENT> self.other_max_width = other_max_width <NEW_LINE> <DEDENT> def __call__(self, mrz, __pipeline__): <NEW_LINE> <INDENT>... | If mrz was not found so far in the current pipeline,
changes the max_width parameter of the scaler to 1000 and reruns the pipeline again. | 62598f9121a7993f00c65bca |
class getSquareAuthority_args(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'request', (GetSquareAuthorityRequest, GetSquareAuthorityRequest.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, request=None,): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> <DEDENT> def read(self, iprot):... | Attributes:
- request | 62598f910a50d4780f705022 |
class WelcomeScreenMetaprocess(SetupMetaProcess): <NEW_LINE> <INDENT> def __init__(self, machine_manager, pymach, config): <NEW_LINE> <INDENT> steps = ['welcome_panel_knob', 'welcome_panel_buttons', 'welcome_panel_download_app'] <NEW_LINE> _make_process_method_during(SetupMetaProcess.continue_process, steps) <NEW_LINE>... | A simple metaprocess that sets dummy steps so connected clients can
display welcome screens. | 62598f91009cb60464d0117d |
class GetUserInfoListRequest(object): <NEW_LINE> <INDENT> def __init__(self, ids=None,): <NEW_LINE> <INDENT> self.ids = ids <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: <NEW_L... | Attributes:
- ids | 62598f9145492302aabfc125 |
class Schema(dict, metaclass=ABCMeta): <NEW_LINE> <INDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return self["id"] <NEW_LINE> <DEDENT> @abstractproperty <NEW_LINE> def embedded(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def links(self, follow_mode): <NEW_LINE> <INDEN... | A schema wraps a dictionary and defines a `uri`, `id`, `type`, etc. | 62598f913eb6a72ae038a287 |
class FormularioActor (QtGui.QDialog): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> QtGui.QDialog.__init__(self) <NEW_LINE> self.ui = Ui_FormularioActor() <NEW_LINE> self.ui.setupUi(self) <NEW_LINE> self.direccion_imagen = None <NEW_LINE> self.imagenInicial() <NEW_LINE> self.comboBoxMeses() <NEW_LINE> se... | Calse que muestra la interfaz para el formulario de actores,
trabaja con las interacción usuario-interfaz. | 62598f916e29344779b002a6 |
class ContourSeries(BaseSeries): <NEW_LINE> <INDENT> is_contour = True <NEW_LINE> def __init__(self, expr, var_start_end_x, var_start_end_y): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.nb_of_points_x = 50 <NEW_LINE> self.nb_of_points_y = 50 <NEW_LINE> self.expr = sympify(expr) <NEW_LINE> self.var_x = sympif... | Representation for a contour plot. | 62598f91596a8972361278ca |
class Identity(): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> format_string = self.__class__.__name__ <NEW_LINE> return format_string <NEW_LINE> <DEDENT> def __call__(self, input): <NEW_LINE> <INDENT> return input | A placeholder identity operator that is argument-insensitive.
Args:
args: any argument (unused)
kwargs: any keyword argument (unused) | 62598f9115baa72349461bcc |
class TestSpider(): <NEW_LINE> <INDENT> def __init__(self, file_name): <NEW_LINE> <INDENT> f=open(file_name) <NEW_LINE> self.page=BeautifulSoup(f.read(), PARSER) <NEW_LINE> self.links_generator=self.next_link(self.page) <NEW_LINE> self.stopping=False <NEW_LINE> <DEDENT> def next_page(self): <NEW_LINE> <INDENT> return F... | Mixin for UnitTests | 62598f918e71fb1e983bb702 |
class PackagedFormat(Format): <NEW_LINE> <INDENT> quantity = models.DecimalField("quantity", max_digits=10, decimal_places=2, help_text="Total packaged quantity for this format.") <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.format_type + ': ' + str(to_bbl(self.format_type, self.quantity)) | An instance of Format used for packaging events | 62598f91e5267d203ee6b569 |
class TGetLogReq(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'operationHandle', (TOperationHandle, TOperationHandle.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, operationHandle=None,): <NEW_LINE> <INDENT> self.operationHandle = operationHandle <NEW_LINE> <DEDENT> def read(self, iprot)... | Attributes:
- operationHandle | 62598f910383005118f6d34a |
class CharacterCard(Card): <NEW_LINE> <INDENT> strength = models.IntegerField(validators=[MinValueValidator(1)]) <NEW_LINE> intelligence = models.IntegerField(validators=[MinValueValidator(1)]) <NEW_LINE> swiftness = models.IntegerField(validators=[MinValueValidator(1)]) <NEW_LINE> diplomacy = models.IntegerField(valid... | Models a starting character | 62598f9163b5f9789fe84dc4 |
class LogTransformer(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, variables=None): <NEW_LINE> <INDENT> if not isinstance(variables, list): <NEW_LINE> <INDENT> self.variables = [variables] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.variables = variables <NEW_LINE> <DEDENT> <DEDENT> de... | Logarithm transformer | 62598f916fb2d068a7693c59 |
class ProxyShowCommand(ConfigCommand): <NEW_LINE> <INDENT> def get_parser(self, prog_name): <NEW_LINE> <INDENT> ap = super(ProxyShowCommand, self).get_parser(prog_name) <NEW_LINE> ap.add_argument('-u', '--database-uri', help='URI for sqlite database') <NEW_LINE> ap.add_argument('--computers', help='view computer inform... | display proxy instances and parameters | 62598f9107f4c71912baf099 |
class TokenTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_token_obj(self): <NEW_LINE> <INDENT> tok = Token('WORD', 'Metacognitive', 2, 4) <NEW_LINE> self.assertEqual(tok.tag, 'WORD') <NEW_LINE> self.assertEqual(tok.value, 'Metacognitive') <NEW_LINE> self.assertEqual(tok.line, 2) <NEW_LINE> self.assertEqual(tok.... | Ensure that the Token class is a namedtuple (or like it) and it works
as expected to ensure other tests in this library also succeed. | 62598f914428ac0f6e658178 |
class TableRef: <NEW_LINE> <INDENT> def __init__(self, table_info: TableInfo): <NEW_LINE> <INDENT> self._table_info = table_info <NEW_LINE> <DEDENT> @property <NEW_LINE> def table_info(self): <NEW_LINE> <INDENT> return self._table_info <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> table_ref_str = "TABLE RE... | dummy class right now need to handle join expression
Attributes:
table_info: expression of table name and database name | 62598f91d99f1b3c44d052fd |
class agilent8593EM(agilent8590E): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(agilent8593EM, self).__init__(*args, **kwargs) <NEW_LINE> self._instrument_id = '' <NEW_LINE> self._input_impedance = 50 <NEW_LINE> self._frequency_low = 9e3 <NEW_LINE> self._frequency_high = 22e9 | Agilent 8593EM IVI spectrum analyzer driver | 62598f91a05bb46b3848a4ce |
class ViewEstablishmentEnums(IntEnum): <NEW_LINE> <INDENT> TEE = -1 <NEW_LINE> DF_VIEW = 0 <NEW_LINE> NO_ACTION = 1 <NEW_LINE> RESET = 2 <NEW_LINE> NO_RETURN_VALUE = 3 <NEW_LINE> PREDICATE = 4 <NEW_LINE> ACTION = 5 <NEW_LINE> FOLLOW = 8 <NEW_LINE> REMAIN = 9 | Represents strings for return values from automaton. | 62598f9132920d7e50bc5cae |
class DescribeCcnRoutesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.CcnId = None <NEW_LINE> self.RouteIds = None <NEW_LINE> self.Filters = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> s... | DescribeCcnRoutes请求参数结构体
| 62598f91b5575c28eb712af4 |
class Colors: <NEW_LINE> <INDENT> def __init__(self, termcolor=None): <NEW_LINE> <INDENT> if termcolor is None: <NEW_LINE> <INDENT> termstyle.auto() <NEW_LINE> self.termcolor = bool(termstyle.bold("")) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.termcolor = termcolor <NEW_LINE> <DEDENT> self._restoreColor() <NEW... | A class to centralize wrapping strings in terminal colors. | 62598f91b7558d589546327d |
class CommonSlideViewProperties(object): <NEW_LINE> <INDENT> swagger_types = { 'scale': 'int', 'variable_scale': 'bool' } <NEW_LINE> attribute_map = { 'scale': 'scale', 'variable_scale': 'variableScale' } <NEW_LINE> type_determiners = { } <NEW_LINE> def __init__(self, scale=None, variable_scale=None): <NEW_LINE> <INDEN... | Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition. | 62598f91be8e80087fbbecac |
class FlowResource(ContentNegotiatedMethodView): <NEW_LINE> <INDENT> @pass_flow <NEW_LINE> @need_permission(lambda self, flow, **kwargs: (flow,), 'flow-status') <NEW_LINE> def get(self, flow, **kwargs): <NEW_LINE> <INDENT> return jsonify(flow.status) <NEW_LINE> <DEDENT> @pass_flow <NEW_LINE> @pass_payload <NEW_LINE> @n... | FLow Resource. | 62598f91eab8aa0e5d30b9cf |
class Empty(object): <NEW_LINE> <INDENT> shape = None <NEW_LINE> size = None <NEW_LINE> def __init__(self, dtype): <NEW_LINE> <INDENT> self.dtype = dtype <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if isinstance(other, Empty) and self.dtype == other.dtype: <NEW_LINE> <INDENT> return True <NEW_LINE>... | Proxy object to represent empty/null dataspaces (a.k.a H5S_NULL).
This can have an associated dtype, but has no shape or data. This is not
the same as an array with shape (0,). | 62598f91656771135c4892d0 |
class FakeAuth(AbstractAuth): <NEW_LINE> <INDENT> responses = [] <NEW_LINE> method = None <NEW_LINE> url = None <NEW_LINE> json = None <NEW_LINE> client = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__(None, None) <NEW_LINE> <DEDENT> async def async_get_access_token(self) -> str: <NEW_LINE> <I... | A fake implementation of the auth class that records requests.
This class captures the outgoing requests, and can also be used by
tests to set up fake responses. This class is registered as a response
handler for a fake aiohttp_server and can simulate successes or failures
from the API. | 62598f910a50d4780f705024 |
class BlockTag(PackResource): <NEW_LINE> <INDENT> def __init__(self, path, contents, parent_pack): <NEW_LINE> <INDENT> super().__init__(path, parent_pack, beet.BlockTag(contents)) | BlockTag - A data pack block tag. Do not create manually. Instead, use the ``DataPack.block_tag`` method.
Args:
path (str): The path of the block tag. Given as ``namespace:path/to/file``, or ``path/to/file``. If no namespace is specified, then the snake case format of the data pack name will be used.
contents ... | 62598f91fbf16365ca793d02 |
class Node(Base): <NEW_LINE> <INDENT> __tablename__ = 'nodes' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> uuid = Column(String(36), unique=True) <NEW_LINE> instance_uuid = Column(String(36), nullable=True, unique=True) <NEW_LINE> chassis_id = Column(Integer, ForeignKey('chassis.id'), nullable=True) <NE... | Represents a bare metal node. | 62598f919b70327d1c57e9f1 |
class LoginEvent(Event): <NEW_LINE> <INDENT> def meets_condition(self, event_data : list) -> bool: <NEW_LINE> <INDENT> return bool(event_data) | LSP 위반
1. 파생 클래스가 부모 클래스에서 정의한 파라미터와 다른 타입을 사용
--> 계층 구조의 다형성이 손상 | 62598f91596a8972361278cc |
class CSApiResponseTranscription(object): <NEW_LINE> <INDENT> swagger_types = { 'data': 'CSTranscription', 'status': 'str', 'message': 'str' } <NEW_LINE> attribute_map = { 'data': 'Data', 'status': 'Status', 'message': 'Message' } <NEW_LINE> def __init__(self, data=None, status=None, message=None): <NEW_LINE> <INDENT> ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f914e696a045264dc30 |
class MonitorTaskModel(object): <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I32, 'monitorMode', None, None, ), ) <NEW_LINE> def __init__(self, monitorMode=None,): <NEW_LINE> <INDENT> self.monitorMode = monitorMode <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None a... | Attributes:
- monitorMode | 62598f91d53ae8145f9180dd |
class DeleteWorkflowResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RequestId = params.get("RequestId") | DeleteWorkflow response structure.
| 62598f91a4f1c619b294e23c |
class PanelContainer(QFrame): <NEW_LINE> <INDENT> def __init__(self, widget, parent=None, flags=Qt.WindowFlags(0)): <NEW_LINE> <INDENT> super(PanelContainer, self).__init__(parent, flags) <NEW_LINE> layout = QVBoxLayout() <NEW_LINE> layout.addWidget(widget) <NEW_LINE> layout.setSpacing(0) <NEW_LINE> self.setLayout(layo... | Container for panels. Exists so that panels can be styled.
| 62598f912ae34c7f260aad3a |
class EmailUserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField(label=_("Password"), help_text=_( "Raw passwords are not stored, so there is no way to see " "this user's password, but you can change the password " "using <a href=\"password/\">this form</a>.")) <NEW_LINE> class Meta:... | A form for updating users.
Includes all the fields on the user, but replaces the password field
with admin's password hash display field. | 62598f91e5267d203ee6b56b |
class UnsupportedOperationException (Exception): <NEW_LINE> <INDENT> pass | Exception to match Java's exception of the same name. | 62598f9160cbc95b06363f96 |
class WithKeyRenaming(object): <NEW_LINE> <INDENT> def __init__(self, shepherd, from_key, to_key): <NEW_LINE> <INDENT> self.shepherd = shepherd <NEW_LINE> self.from_key = from_key <NEW_LINE> self.to_key = to_key <NEW_LINE> <DEDENT> def batching_loop_results(self, loop_vars): <NEW_LINE> <INDENT> original_results = self.... | Adapter class to rename the output key in the batching loop of a shepherd.
This is useful if you want to do two different transformations on the
same field in the tf.Example, and have the results preserved
in different fields of the output superbatch.
Currently, this adapter will only work for shepherds that output a... | 62598f91097d151d1a2c0c7c |
class ServerView(View): <NEW_LINE> <INDENT> def get(self, request, server_id=None): <NEW_LINE> <INDENT> json_response = {} <NEW_LINE> if not server_id: <NEW_LINE> <INDENT> servers = Server.get_by_user_id(request.user.id) <NEW_LINE> json_response['response'] = [server.to_dict() for server in servers] <NEW_LINE> return J... | Server view handles GET, POST, PUT, DELETE requests. | 62598f9176d4e153a661c86c |
class Port(Model): <NEW_LINE> <INDENT> _attribute_map = { 'transport_protocol': {'key': 'transportProtocol', 'type': 'str'}, 'backend_port': {'key': 'backendPort', 'type': 'int'}, } <NEW_LINE> def __init__(self, transport_protocol=None, backend_port=None): <NEW_LINE> <INDENT> super(Port, self).__init__() <NEW_LINE> sel... | Properties of a network port.
:param transport_protocol: Protocol type of the port. Possible values
include: 'Tcp', 'Udp'
:type transport_protocol: str or
~azure.mgmt.devtestlabs.models.TransportProtocol
:param backend_port: Backend port of the target virtual machine.
:type backend_port: int | 62598f91cb5e8a47e493bf9a |
@abstract <NEW_LINE> class Callback(PlotObject): <NEW_LINE> <INDENT> pass | Base class for interactive callback. ``Callback`` is generally
not useful to instantiate on its own. | 62598f918da39b475be02e31 |
class Trail(AWSObject): <NEW_LINE> <INDENT> resource_type = "AWS::CloudTrail::Trail" <NEW_LINE> props: PropsDictType = { "CloudWatchLogsLogGroupArn": (str, False), "CloudWatchLogsRoleArn": (str, False), "EnableLogFileValidation": (boolean, False), "EventSelectors": ([EventSelector], False), "IncludeGlobalServiceEvents"... | `Trail <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html>`__ | 62598f910a50d4780f705025 |
class List(PageSkeleton): <NEW_LINE> <INDENT> def __init__(self, level, body): <NEW_LINE> <INDENT> self.level = level <NEW_LINE> self.body = body <NEW_LINE> <DEDENT> def __str__(self, level=None): <NEW_LINE> <INDENT> return str("*" * self.level + " " + str(self.body) + '\n') <NEW_LINE> <DEDENT> def get_text(self): <NEW... | An list element within a Wikipedia page.
.. attribute:: level
:rtype: int
The list nesting level
.. attribute:: body
A :class:`Paragraph` containing the list element contents. | 62598f914e4d562566372071 |
class ExecuteWrapInstanceCommand(sublime_plugin.TextCommand): <NEW_LINE> <INDENT> def run(self, edit): <NEW_LINE> <INDENT> obj = WrapInstance.obj <NEW_LINE> value = WrapInstance.value <NEW_LINE> style = obj._style[value] <NEW_LINE> obj.insert_regions = [] <NEW_LINE> for sel in obj.view.sel(): <NEW_LINE> <INDENT> if sty... | Execute the wrap instance. | 62598f9107f4c71912baf09b |
class ThumbnailMixin(object): <NEW_LINE> <INDENT> thumb_image_field_name = 'image' <NEW_LINE> thumb_image_filter_spec = 'fill-100x100' <NEW_LINE> thumb_image_width = 50 <NEW_LINE> thumb_classname = 'admin-thumb' <NEW_LINE> thumb_col_header_text = _('image') <NEW_LINE> thumb_default = None <NEW_LINE> def admin_thumb(sel... | Mixin class to help display thumbnail images in ModelAdmin listing results.
`thumb_image_field_name` must be overridden to name a ForeignKey field on
your model, linking to `wagtailimages.Image`. | 62598f91bd1bec0571e14eec |
class FulTextLookupNotStartsWith(FullTextLookupBase): <NEW_LINE> <INDENT> lookup_name = 'ft_not_startswith' <NEW_LINE> def transform(self, *args): <NEW_LINE> <INDENT> return negative(*args) | This lookup scans for full text index entries that do not begin with
a given phrase, like:
Model.objects.filter(search_field__ft=['Foobar', 'Baz', 'Quux'])
will get translated to
ts_query('!Foobar:* & !Baz:* & !Quux:*') | 62598f91851cf427c66b7f15 |
class LightFuzzTest(base_test.BaseTestClass): <NEW_LINE> <INDENT> def setUpClass(self): <NEW_LINE> <INDENT> required_params = ["gene_pool_size", "iteartion_count"] <NEW_LINE> self.getUserParams(required_params) <NEW_LINE> self.dut = self.registerController(android_device)[0] <NEW_LINE> self.dut.hal.InitConventionalHal(... | A sample fuzz testcase for the legacy lights HAL. | 62598f91b7558d589546327f |
class AnalysisPluginManagerTest(shared_test_lib.BaseTestCase): <NEW_LINE> <INDENT> def testPluginRegistration(self): <NEW_LINE> <INDENT> number_of_plugins = len(manager.AnalysisPluginManager._plugin_classes) <NEW_LINE> manager.AnalysisPluginManager.RegisterPlugin(TestAnalysisPlugin) <NEW_LINE> self.assertEqual( len(man... | Tests for the analysis plugin manager. | 62598f91287bf620b627180e |
class ExponentialBackoff: <NEW_LINE> <INDENT> def __init__(self, max_retries, backoff_base): <NEW_LINE> <INDENT> self._max_retries = ASSERT.greater(max_retries, 0) <NEW_LINE> self._backoff_base = ASSERT.greater(backoff_base, 0) <NEW_LINE> <DEDENT> def __call__(self, retry_count): <NEW_LINE> <INDENT> if retry_count >= s... | Retry ``max_retries`` times with exponential backoff.
NOTE: This retry policy does not implement jitter of delays; if you
are using the ``Session`` object to write to a shared resource, you
could suffer from write conflicts. In that case, you should use a
retry policy with jitter. | 62598f910c0af96317c55fd6 |
class HubspotTimeout(HubspotError): <NEW_LINE> <INDENT> pass | Wrapper for socket timeouts, sslerror, and 504 | 62598f91baa26c4b54d4ef09 |
class QosTests(v2.QosTests): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super(QosTests, cls).setUpClass() <NEW_LINE> os.environ['OS_VOLUME_API_VERSION'] = '3' | Functional tests for volume qos. | 62598f91435de62698e9ba44 |
class Invite(models.Model): <NEW_LINE> <INDENT> invite_id = models.AutoField(primary_key=True) <NEW_LINE> user = models.ForeignKey("users.User", related_name="invites") <NEW_LINE> created_on = models.DateTimeField(auto_now_add=True) <NEW_LINE> created_by = models.ForeignKey("users.User", related_name="+") <NEW_LINE> re... | Abitrary people can be invited (via email) to leave comments on a report | 62598f91dd821e528d6d8b86 |
class Radii(AtomAttr): <NEW_LINE> <INDENT> attrname = 'radii' <NEW_LINE> singular = 'radius' <NEW_LINE> per_object = 'atom' | Radii for each atom | 62598f91b7558d5895463280 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.