code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class PythonThriftLibrary(PythonTarget): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(PythonThriftLibrary, self).__init__(**kwargs) <NEW_LINE> self.add_labels('codegen')
Generates a stub Python library from thrift IDL files.
62598ef9bf627c535bcafd71
class StateWaitingForDelegate(states.StateWaitingForApproval): <NEW_LINE> <INDENT> name = "Waiting for delegate" <NEW_LINE> authorised_text = "an institute delegate" <NEW_LINE> def get_authorised_persons(self, application): <NEW_LINE> <INDENT> return application.institute.delegates .filter(institutedelegate_...
We need the delegate to provide approval.
62598ef9aad79263cf42d10d
class Number(enum.IntEnum): <NEW_LINE> <INDENT> NUMBER_UNKNOWN = 0 <NEW_LINE> SINGULAR = 1 <NEW_LINE> PLURAL = 2 <NEW_LINE> DUAL = 3
Count distinctions. Attributes: NUMBER_UNKNOWN (int): Number is not applicable in the analyzed language or is not predicted. SINGULAR (int): Singular PLURAL (int): Plural DUAL (int): Dual
62598ef963b5f9789fe83a5d
class SnapShot: <NEW_LINE> <INDENT> def __init__(self, buffer_size=-1): <NEW_LINE> <INDENT> self._snaps = [] <NEW_LINE> if buffer_size is not None: <NEW_LINE> <INDENT> self._buffer_size = buffer_size <NEW_LINE> self._buffer = SnapShot(buffer_size=None) <NEW_LINE> <DEDENT> <DEDENT> def append(self, value, buffer=False, ...
A list of stamped values (snapshots). This is used by the History object to store a repository of training metrics. Args: buffer_size (int): The size of the buffer. Default: :math:`-1` * If :attr:`buffer_size` is negative, then the snapshots are stored as is.
62598ef9ff9c53063f518f60
class IntergerField(Field): <NEW_LINE> <INDENT> def __init__(self, name, cloum_type='int', primary_key=False, default=0): <NEW_LINE> <INDENT> super().__init__(name, cloum_type, primary_key, default)
数字类型
62598ef9ec188e330fdf71a9
class _OptionState: <NEW_LINE> <INDENT> class _Perspective: <NEW_LINE> <INDENT> state = 'no' <NEW_LINE> negotiating = False <NEW_LINE> onResult = None <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.state + ('*' * self.negotiating) <NEW_LINE> <DEDENT> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self....
Represents the state of an option on both sides of a telnet connection. @ivar us: The state of the option on this side of the connection. @ivar him: The state of the option on the other side of the connection.
62598ef910dbd63aa1c6f47c
@dataclass(frozen=True) <NEW_LINE> class DeviceDescription: <NEW_LINE> <INDENT> firmware_version: str <NEW_LINE> name: str <NEW_LINE> mac: str <NEW_LINE> manufacturer: str <NEW_LINE> model: str <NEW_LINE> model_name: str <NEW_LINE> serial_number: str <NEW_LINE> udn: str <NEW_LINE> _config_any: dict[str, str] <NEW_LINE>...
Device properties from the DeviceType xsd type.
62598ef94428ac0f6e656e4c
class TransferStatusCode(Code): <NEW_LINE> <INDENT> code= models.CharField(primary_key=True, max_length=1, verbose_name=u"代码") <NEW_LINE> name = models.CharField(unique=True, max_length=12, verbose_name=u"名称") <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LI...
DM-XJBDCLZT《学籍变动处理状态代码》
62598ef9cc40096d61619658
class WritingPrompt(models.Model): <NEW_LINE> <INDENT> project = models.ForeignKey(Project, unique=False, blank=False) <NEW_LINE> title = models.CharField(max_length=64) <NEW_LINE> mentor_prompt = models.TextField(blank=True) <NEW_LINE> mentee_prompt = models.TextField(blank=True) <NEW_LINE> start...
This model defines the set of writing prompts presented to mentors and mentees, within a time period. Mentors and mentees have different prompts.
62598ef956ac1b37e6300aeb
class ApplicationGatewayAvailableSslOptions(Resource): <NEW_LINE> <INDENT> _validation = { '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': 'loca...
Response for ApplicationGatewayAvailableSslOptions API service call. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource locat...
62598ef9a8370b77170eece4
class VacancyTheme(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(_('id'), db_column='id', primary_key=True) <NEW_LINE> name = models.CharField(_('name'), db_column='name', max_length=50) <NEW_LINE> title = models.CharField(_('title'), db_column='title', max_length=100, null=True, blank=True) <NEW_LINE> descr...
空室情報テーマ
62598ef9d268445f2663900f
class Resource(object): <NEW_LINE> <INDENT> def __init__(self, manager, info): <NEW_LINE> <INDENT> self.manager = manager <NEW_LINE> self._info = info <NEW_LINE> self._add_details(info) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> reprkeys = sorted(k for k in self.__dict__.keys() if k[0] != '_' and k != ...
Base class for resources.
62598ef99f288636728170fb
class WhatsApp(): <NEW_LINE> <INDENT> def __init__(self, timeout=50, session='default'): <NEW_LINE> <INDENT> self.timeout = timeout <NEW_LINE> self.session = session <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.wappdriver = WappDriver(self.timeout) <NEW_LINE> if self.wappdriver.load_chrome_driver(s...
Wappdriver is a python package that helps you automate sending messages through WhatsApp Web. It's very simple to use. You are advised to use the context manager. Example: ```python with WhatsApp() as bot: bot.send('aahnik', # name of recipient 'hi send by a bot', # message ) ``` Visit http...
62598ef9a219f33f346c512e
class UpdateModelFormView(UpdateModelFormMixin): <NEW_LINE> <INDENT> pass
View for updating model objects. Example ------- .. code-block:: python :linenos: from flask.ext.velox.views.sqla.forms import UpdateModelView from yourapp import db from yourapp.forms import MyForm from yourapp.models import MyModel class MyView(UpdateModelView): template = 'update....
62598ef960cbc95b06362c2f
class ChHiveCreationSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> category = serializers.SlugRelatedField(read_only=False, queryset=ChCategory.objects.all(), slug_field='code') <NEW_LINE> languages = serializers.SlugRelatedField(source='_languages', many=True, queryset=LanguageModel.objects.all(), read_o...
Used by the following API methods: GET hive info,
62598ef923849d37ff84f9bf
class GamePieceTester(unittest.TestCase): <NEW_LINE> <INDENT> def test_diagonal_generator_test(self): <NEW_LINE> <INDENT> gp = GamePiece("BLUE") <NEW_LINE> moves = gp.get_diagonal_moves((4,4)) <NEW_LINE> print(list(moves)) <NEW_LINE> moves = gp.get_diagonal_moves((0,0)) <NEW_LINE> print(list(moves)) <NEW_LINE> moves = ...
unit tests for gamepiece.py
62598ef963d6d428bbee10cf
class RnaStructure: <NEW_LINE> <INDENT> def __init__(self, id, structure): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.structure = structure <NEW_LINE> <DEDENT> def is_valid(self): <NEW_LINE> <INDENT> bases = Counter(self.structure) <NEW_LINE> return bases['('] == bases[')'] <NEW_LINE> <DEDENT> def find_bp_positio...
Class to that encapsulate the a rna seconday structure and its id. Contains method to get all bp position from the rna structure
62598ef93d592f4c4edb97ee
class ImageAcq(object): <NEW_LINE> <INDENT> log = logging.getLogger('ImageAcq') <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> ImageAcq.log.info("ImageAcq __init__ entered") <NEW_LINE> <DEDENT> def takePicture(self, saveToPath): <NEW_LINE> <INDENT> ImageAcq.log.info("take picutre")
description of class
62598ef9bf627c535bcafd73
class SetupState(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stack = [] <NEW_LINE> <DEDENT> def teardown_all(self): <NEW_LINE> <INDENT> while self.stack: <NEW_LINE> <INDENT> col = self.stack.pop() <NEW_LINE> col.teardown() <NEW_LINE> <DEDENT> <DEDENT> def teardown_exact(self, item): <NEW_L...
shared state for setting up/tearing down test items or collectors.
62598ef9379a373c97d978fa
class WinJobFormatterTest(test_lib.EventFormatterTestCase): <NEW_LINE> <INDENT> def testInitialization(self): <NEW_LINE> <INDENT> event_formatter = winjob.WinJobFormatter() <NEW_LINE> self.assertIsNotNone(event_formatter) <NEW_LINE> <DEDENT> def testGetFormatStringAttributeNames(self): <NEW_LINE> <INDENT> event_formatt...
Tests for the Windows Scheduled Task (job) event formatter.
62598ef957b8e32f52507583
class ProctoredExamStudentAttemptStatus: <NEW_LINE> <INDENT> eligible = 'eligible' <NEW_LINE> created = 'created' <NEW_LINE> download_software_clicked = 'download_software_clicked' <NEW_LINE> ready_to_start = 'ready_to_start' <NEW_LINE> started = 'started' <NEW_LINE> ready_to_submit = 'ready_to_submit' <NEW_LINE> decli...
A class to enumerate the various status that an attempt can have IMPORTANT: Since these values are stored in a database, they are system constants and should not be language translated, since translations might change over time.
62598ef997e22403b38397f1
class CAR(Continuous): <NEW_LINE> <INDENT> rv_op = car <NEW_LINE> @classmethod <NEW_LINE> def dist(cls, mu, W, alpha, tau, *args, **kwargs): <NEW_LINE> <INDENT> return super().dist([mu, W, alpha, tau], **kwargs) <NEW_LINE> <DEDENT> def get_moment(rv, size, mu, W, alpha, tau): <NEW_LINE> <INDENT> return at.full_like(rv,...
Likelihood for a conditional autoregression. This is a special case of the multivariate normal with an adjacency-structured covariance matrix. .. math:: f(x \mid W, \alpha, \tau) = \frac{|T|^{1/2}}{(2\pi)^{k/2}} \exp\left\{ -\frac{1}{2} (x-\mu)^{\prime} T^{-1} (x-\mu) \right\} where :math:`T = (\tau...
62598ef94428ac0f6e656e4e
class StrippedStringIO(StringIO): <NEW_LINE> <INDENT> def write(self, message): <NEW_LINE> <INDENT> message = InvenioReporter.ansi_escape.sub('', message) <NEW_LINE> StringIO.write(self, message)
StringIO that strips ansi characters.
62598ef9cc40096d61619659
class Get: <NEW_LINE> <INDENT> class Header(Schema): <NEW_LINE> <INDENT> X_GitHub_Media_Type = fields.String(data_key='X-GitHub-Media-Type', description='You can check the current version of media type in responses.\n') <NEW_LINE> Accept = fields.String(description='Is used to set specified media type.') <NEW_LINE> X_R...
Get Branch
62598ef94f88993c371ef96b
class InvalidMessage(SerializationError): <NEW_LINE> <INDENT> pass
Raised when a serialized message is incapable of being deserialized.
62598ef99f288636728170fc
class ReliefF(Scorer): <NEW_LINE> <INDENT> feature_type = Variable <NEW_LINE> class_type = DiscreteVariable <NEW_LINE> def __init__(self, n_iterations=50, k_nearest=10): <NEW_LINE> <INDENT> self.n_iterations = n_iterations <NEW_LINE> self.k_nearest = k_nearest <NEW_LINE> <DEDENT> def score_data(self, data, feature): <N...
ReliefF algorithm. Contrary to most other scorers, Relief family of algorithms is not as myoptic but tends to give unreliable results with datasets with lots (hundreds) of features. Robnik-Šikonja, M., Kononenko, I. Theoretical and empirical analysis of ReliefF and RReliefF. 2003. http://lkm.fri.uni-lj.si/rmarko/paper...
62598ef9f548e778e5969e8f
class Episode: <NEW_LINE> <INDENT> def __init__(self, res): <NEW_LINE> <INDENT> self._air_date = res['air_date'] <NEW_LINE> self._vote_average = int(res['vote_average']*10)/10 <NEW_LINE> self._name = res['name'] <NEW_LINE> self._poster_path = res['still_path'] <NEW_LINE> self._poster_url = None <NEW_LINE> self._overvie...
The Episode class, each instance will correspond to an episode.
62598ef9009cb60464cffe52
class StaffRequiredMixin(object): <NEW_LINE> <INDENT> @method_decorator(staff_member_required) <NEW_LINE> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return super(StaffRequiredMixin,self).dispatch(request, *args, **kwargs)
este mixin requerirà que el usuario sea miembro del staff
62598ef9091ae3566870351b
class Epoch: <NEW_LINE> <INDENT> epochNumber = -1 <NEW_LINE> epochType = -1 <NEW_LINE> level = -1 <NEW_LINE> levelDelta = -1 <NEW_LINE> duration = -1 <NEW_LINE> durationDelta = -1 <NEW_LINE> digitalPattern = [-1]*_DIGITAL_OUTPUT_COUT <NEW_LINE> pulsePeriod = -1 <NEW_LINE> pulseWidth = -1 <NEW_LINE> dacNum = -1 <NEW_LIN...
The Epoch class represents data contained in a single epoch column of the stimulus waveform editor. It's just an easy way to hold and convert all the data values for a single epoch.
62598ef967a9b606de5448d2
class Login(API): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> if self.check_arguments('identify_id','password'): <NEW_LINE> <INDENT> self.end('ARG') <NEW_LINE> return <NEW_LINE> <DEDENT> if self.check_arguments_empty('identify_id','password'): <NEW_LINE> <INDENT> self.end('ARG') <NEW_LINE> return <NEW_LINE> ...
login (http get) ---------------- Login by identify id and password. Args: #. identify_id Identify id in application,it's phone or email now. #. password Rsa encrypt password with public key. Returns: #. code:0 Login successful. Return sessionid and token. #. code:1 ...
62598ef9aad79263cf42d111
class Reporter(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.namespace = '' <NEW_LINE> self.sep = '/' <NEW_LINE> self.observation = {} <NEW_LINE> <DEDENT> @contextlib.contextmanager <NEW_LINE> def scope(self, namespace): <NEW_LINE> <INDENT> old = self.namespace <NEW_LINE> if self.namespace !...
reporter See the following example:: >>> reporter = Reporter() >>> with reporter.scope('loss'): ... reporter.report({'x':1}) ... >>> reporter.observation {'loss/x': 1}
62598ef9956e5f7376df4afb
class LinkVelocityState(LinkState): <NEW_LINE> <INDENT> def __init__(self, robot, link_ids=None, wrt_link_id=None, window_size=1, axis=None, ticks=1): <NEW_LINE> <INDENT> self.wrt_link_id = wrt_link_id <NEW_LINE> super(LinkVelocityState, self).__init__(robot, link_ids, window_size=window_size, axis=axis, ticks=ticks) <...
Link velocity state
62598ef99c8ee8231303f5dd
class NSentences(Operation): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.kwargs = kwargs <NEW_LINE> <DEDENT> def __call__(self, doc, **kwargs): <NEW_LINE> <INDENT> return doc.nsents
Extract the number of sentences from text >>> from textpipe.doc import Doc >>> doc = Doc('Test sentence for testing text') >>> NSentences()(doc) 1
62598ef94527f215b58e8801
class SimpleBundleAdjust(CommonConfigurationMixin, BundleAdjust): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BundleAdjust.__init__(self)
Implementation of BundleAdjust to test it
62598ef910dbd63aa1c6f480
class Settings(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 1200 <NEW_LINE> self.screen_height = 800 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_speed = 1.5 <NEW_LINE> self.bullet_speed = 1 <NEW_LINE> self.bullet_width = 3 <NEW_LINE> self.bullet_height = 15 <NEW...
存储《外星人入侵》中所有设置的类
62598ef997e22403b38397f3
class KAR_073: <NEW_LINE> <INDENT> play = Hit(ENEMY_MINIONS, 1), Summon(CONTROLLER, RandomMinion(cost=1))
Maelstrom Portal
62598ef999fddb7c1ca62284
class WKTLayerDialogTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_icon_png(self): <NEW_LINE> <INDENT> path = ':/plugins/WKTLayer/icon.png' <NEW_LINE> icon = QIcon(path) <NEW_LINE> self....
Test rerources work.
62598ef9cc40096d6161965a
class DatasourceConfigGCS(object): <NEW_LINE> <INDENT> swagger_types = { 'gcs_project_id': 'str', 'gcs_credentials': 'str' } <NEW_LINE> attribute_map = { 'gcs_project_id': 'gcsProjectId', 'gcs_credentials': 'gcsCredentials' } <NEW_LINE> def __init__(self, gcs_project_id=None, gcs_credentials=None, _configuration=None):...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ef9a8370b77170eece8
@Entity.register_attr("version") <NEW_LINE> class EntityVersion(Attribute): <NEW_LINE> <INDENT> default = 1 <NEW_LINE> @classmethod <NEW_LINE> def _validate(cls, new_value, entity=None): <NEW_LINE> <INDENT> if not isinstance(new_value, int): <NEW_LINE> <INDENT> raise TypeError("entity version must be a number") <NEW_LI...
An entity's version.
62598ef92c8b7c6e89bd20c5
class Model_simplex(Model): <NEW_LINE> <INDENT> def minimize(self, gradient_at_x=None): <NEW_LINE> <INDENT> result = np.zeros(self.dimension) <NEW_LINE> result[np.argmin(gradient_at_x) if gradient_at_x is not None else 0] = 1 <NEW_LINE> return result
LP model for the standard simplex. Dimension is one greater than that of the simplex itself. >>> simplex = Model_simplex(4) >>> simplex.minimize(np.array([2.0,-1.0,-0.3,.1])) array([ 0., 1., 0., 0.]) >>> utils.inSequence(simplex.augment(np.array([2.0,-1.0,-0.3,.1]), ... np.array([...
62598ef9a219f33f346c5132
class ImprimirReporteUnion(Wizard): <NEW_LINE> <INDENT> __name__ = 'disc.reporte.union.imprimir' <NEW_LINE> start = StateView('disc.reporte.union.imprimir.inicio', 'discipulado.imprimir_reporte_union_inicio_form', [ Button('Cancelar', 'end', 'tryton-cancel'), Button('Imprimir', 'print_', 'tryton-print', default=True), ...
Imprimir Reporte Union
62598ef93617ad0b5ee04a2c
class Solution: <NEW_LINE> <INDENT> def pacificAtlantic(self, matrix): <NEW_LINE> <INDENT> pac, atl = set(), set() <NEW_LINE> n = len(matrix) <NEW_LINE> m = len(matrix[0]) <NEW_LINE> for i in range(m): <NEW_LINE> <INDENT> self.dfs(matrix, n, m, 0, i, pac, 0) <NEW_LINE> self.dfs(matrix, n, m, n - 1, i, atl, 0) <NEW_LINE...
@param matrix: the given matrix @return: The list of grid coordinates
62598ef963d6d428bbee10d3
class ModelLoader: <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(ModelLoader, self).__init__() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def load_pytorch(empty_model, model_path): <NEW_LINE> <INDENT> empty_model.load_state_dict(torch.load(model_path)) <NEW_LINE> <DEDENT> @staticmetho...
用于读取模型
62598ef955399d3f05624e2b
class AlterModelOptions(ModelOptionOperation): <NEW_LINE> <INDENT> ALTER_OPTION_KEYS = [ "base_manager_name", "default_manager_name", "default_related_name", "get_latest_by", "managed", "ordering", "permissions", "default_permissions", "select_on_save", "verbose_name", "verbose_name_plural", ] <NEW_LINE> def __init__(s...
Set new model options that don't directly affect the database schema (like verbose_name, permissions, ordering). Python code in migrations may still need them.
62598ef97d43ff248742687d
class Comments(core.XmlElement): <NEW_LINE> <INDENT> _qname = GDATA_TEMPLATE % 'comments' <NEW_LINE> rel = 'rel' <NEW_LINE> feed_link = FeedLink
The gd:comments element. Contains a comments feed for the enclosing entry (such as a calendar event).
62598ef944b2445a339b5df0
class VnaBGPaaSResult(Result): <NEW_LINE> <INDENT> def properties(self): <NEW_LINE> <INDENT> return self.xpath('BgpAsAServiceSandeshResp', 'bgp_as_a_service_list', 'list', 0) <NEW_LINE> <DEDENT> @property <NEW_LINE> def vm_bgp_peer_ip(self): <NEW_LINE> <INDENT> prop = self.properties() <NEW_LINE> return prop and prop['...
VnaBGPaaSResult to check the BGPaaS object of agent
62598ef9be383301e02520e5
class DataSource(NonCascadingUserFocusedModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = "data_source" <NEW_LINE> <DEDENT> name = models.TextField(blank=True, null=True, default=None) <NEW_LINE> url = models.TextField(blank=False) <NEW_LINE> source_project_id = models.IntegerField(null=False)
A simple object representing a data source, which are mainly used to reference the origin of imported skeletons. This table is tracked by the history system.
62598ef956ac1b37e6300af1
class CancelSelection(Action): <NEW_LINE> <INDENT> def execute(self): <NEW_LINE> <INDENT> view = self.view <NEW_LINE> if view.selection: <NEW_LINE> <INDENT> view.selection = None <NEW_LINE> view.invalidate()
If a selection exists, remove it.
62598ef99f288636728170ff
class RegressionFailedException(BaseException): <NEW_LINE> <INDENT> pass
Raised when the regressor fails at calculating the result
62598ef976e4537e8c3edebf
class APIMeanTimePresence(JSONResponseMixin, TemplateView): <NEW_LINE> <INDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> data = self.get_data() <NEW_LINE> weekdays = utils.group_by_weekday(data) <NEW_LINE> result = [(calendar.day_abbr[weekday], utils.mean(intervals)) for weekday, intervals in weekdays....
Returns mean presence time of given user grouped by weekday.
62598ef9d486a94d0ba2a8cf
class Game(): <NEW_LINE> <INDENT> players = {} <NEW_LINE> max_points = 0 <NEW_LINE> score_board = [] <NEW_LINE> over_score_board = [] <NEW_LINE> def __init__(self, points): <NEW_LINE> <INDENT> self.max_points = points <NEW_LINE> <DEDENT> def dice(self): <NEW_LINE> <INDENT> return randint(0,5) + 1 <NEW_LINE> <DEDENT> de...
General game class
62598ef9099cdd3c6367485a
class ConvNode(SharedConvNode): <NEW_LINE> <INDENT> def __init__(self, input, filter_size, num_filt, num_in=1, nlin=none, dtype=theano.config.floatX, mode='valid', rng=numpy.random, name=None): <NEW_LINE> <INDENT> filter_shape = (num_filt, num_in)+filter_size <NEW_LINE> w_range = 1./numpy.sqrt(numpy.prod(filter_size)*n...
Node that performs a convolution over the input. The size and number of filters are configurable through the `filter_size` and `num_filt` parameters. `filter_size` is a 2-tuple giving the 2d size of one filter. `num_filt` is obviously the number of filter to apply. `nlin` is a nonlinearity to apply to the result of...
62598ef97cff6e4e811b42e8
class Data(models.Model): <NEW_LINE> <INDENT> collector = models.ForeignKey(User, related_name="collections") <NEW_LINE> person = models.ForeignKey(Person, related_name="my_data") <NEW_LINE> brand = models.ForeignKey(Brand, related_name="data") <NEW_LINE> location = models.ForeignKey(Location, related_name="location_da...
All collected pieces of information together
62598ef9dc8b845886d51ecd
class UnsupportedDialogueModelError(RasaCoreException): <NEW_LINE> <INDENT> def __init__(self, message, model_version=None): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.model_version = model_version <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.message
Raised when a model is to old to be loaded. Attributes: message -- explanation of why the model is invalid
62598ef963d6d428bbee10d5
class ReplicaInfo(_messages.Message): <NEW_LINE> <INDENT> class TypeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> TYPE_UNSPECIFIED = 0 <NEW_LINE> READ_WRITE = 1 <NEW_LINE> READ_ONLY = 2 <NEW_LINE> WITNESS = 3 <NEW_LINE> <DEDENT> defaultLeaderLocation = _messages.BooleanField(1) <NEW_LINE> location = _messages.St...
A ReplicaInfo object. Enums: TypeValueValuesEnum: The type of replica. Fields: defaultLeaderLocation: If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](https://cloud.google.com/spanner/docs/instances#region_ty pes...
62598ef966673b3332c2ecb6
class Loader(yaml.SafeLoader): <NEW_LINE> <INDENT> def __init__(self, stream): <NEW_LINE> <INDENT> self._root = os.path.split(stream.name)[0] <NEW_LINE> super(Loader, self).__init__(stream) <NEW_LINE> <DEDENT> def include(self, node): <NEW_LINE> <INDENT> if isinstance(node, SequenceNode): <NEW_LINE> <INDENT> filelist =...
See https://pyyaml.org/wiki/PyYAMLDocumentation
62598ef99c8ee8231303f5df
class MultiChoiceQuestion(Question): <NEW_LINE> <INDENT> def __init__(self, question, instruction, instruction_on_rejection, choices, answer=None): <NEW_LINE> <INDENT> super(MultiChoiceQuestion, self).__init__( question, instruction, instruction_on_rejection, answer=answer) <NEW_LINE> self._choices = choices <NEW_LINE>...
Multi-choice question. Attributes: _choices: [str], list of choices.
62598ef9627d3e7fe0e05794
class WeatherMod(loader.Module): <NEW_LINE> <INDENT> strings = {'name': 'Погода'} <NEW_LINE> async def pwcmd(self, message): <NEW_LINE> <INDENT> args = utils.get_args_raw(message).replace(' ', '+') <NEW_LINE> await message.edit("Узнаем погоду...") <NEW_LINE> city = requests.get(f"https://wttr.in/{args if args != None e...
Погода с сайта wttr.in
62598ef901c39578d7f116a9
class PickerLayout: <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.rows = [] <NEW_LINE> self.rowcount = 0 <NEW_LINE> <DEDENT> def append(self): <NEW_LINE> <INDENT> row = PickerRow(self.parent, self.rowcount) <NEW_LINE> self.rowcount += 4 <NEW_LINE> self.rows.app...
This class encapsulates the entire picker layout as a list of rows. It enables the layout to be created with a minimum of boilerplate code.
62598ef95fdd1c0f98e5c8ac
class WeaveGather(nn.Module): <NEW_LINE> <INDENT> def __init__(self, node_in_feats, gaussian_expand=True, gaussian_memberships=None, activation=nn.Tanh()): <NEW_LINE> <INDENT> super(WeaveGather, self).__init__() <NEW_LINE> self.gaussian_expand = gaussian_expand <NEW_LINE> if gaussian_expand: <NEW_LINE> <INDENT> if gaus...
Readout in Weave Parameters ---------- node_in_feats : int Size for the input node features. gaussian_expand : bool Whether to expand each dimension of node features by gaussian histogram. Default to True. gaussian_memberships : list of 2-tuples For each tuple, the first and second element separately s...
62598ef956ac1b37e6300af4
class CloudkmsProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptRequest(_messages.Message): <NEW_LINE> <INDENT> asymmetricDecryptRequest = _messages.MessageField('AsymmetricDecryptRequest', 1) <NEW_LINE> name = _messages.StringField(2, required=True)
A CloudkmsProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetric DecryptRequest object. Fields: asymmetricDecryptRequest: A AsymmetricDecryptRequest resource to be passed as the request body. name: Required. The resource name of the CryptoKeyVersion to use for decryption.
62598ef9ad47b63b2c5a6120
class ChopChopFunction(SuperGSLFunction): <NEW_LINE> <INDENT> name = 'cut' <NEW_LINE> def get_arguments(self): <NEW_LINE> <INDENT> return [ argument('target_gene', sgsl_types.PART), argument('target_genome', sgsl_types.GENOME), argument('target_genome', sgsl_types.GENOME), argument('num_results', int) ] <NEW_LINE> <DED...
Run the ChopChop CLI tool. http://chopchop.cbu.uib.no/ https://bitbucket.org/valenlab/chopchop
62598ef91f5feb6acb16155c
class HarvesterListViewMixin(object): <NEW_LINE> <INDENT> def read_harvester_info(self, harv): <NEW_LINE> <INDENT> path = harv.absolute_url() <NEW_LINE> url = None <NEW_LINE> if hasattr(harv, 'url'): <NEW_LINE> <INDENT> url = harv.url <NEW_LINE> csw_url = None <NEW_LINE> dcm_url = None <NEW_LINE> complete_namespace = h...
Reusable Methods needed by all Views listing Harvester
62598ef9167d2b6e312b58a3
class FlexObject(object): <NEW_LINE> <INDENT> def __init__(self, **kwArgs): <NEW_LINE> <INDENT> self.__dict__.update(kwArgs)
A class to hold arbitrary properties. Like a dict but with object syntax. You can pass in key=value pairs to set the properties on the object, or just set them directly after constructing.
62598ef93346ee7daa336aea
class CpinChargeWarning(CpinWarning): <NEW_LINE> <INDENT> pass
Bad charge definitions that are not consistent with protonation states
62598ef97c178a314d78bda1
class LlvmOpenmpOmpt(Package): <NEW_LINE> <INDENT> homepage = "https://github.com/OpenMPToolsInterface/LLVM-openmp" <NEW_LINE> version('3.9.2b2', git='https://github.com/OpenMPToolsInterface/LLVM-openmp.git', commit='5cdca5dd3c0c336d42a335ca7cff622e270c9d47') <NEW_LINE> version('3.9.2b', git='https://github.com/OpenMPT...
The OpenMP subproject provides an OpenMP runtime for use with the OpenMP implementation in Clang. This branch includes experimental changes for OMPT, the OpenMP Tools interface
62598ef9442bda511e95ad69
class ErrorResponse(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(ErrorResponse, self).__init__(**kwargs) <NEW_LINE> self.code = kwargs.get('...
Error Response. :param code: Error code. :type code: str :param message: Error message indicating why the operation failed. :type message: str
62598ef93539df3088ecabb5
class DiffIndex(list): <NEW_LINE> <INDENT> change_type = ("A", "D", "R", "M") <NEW_LINE> def iter_change_type(self, change_type): <NEW_LINE> <INDENT> if change_type not in self.change_type: <NEW_LINE> <INDENT> raise ValueError("Invalid change type: %s" % change_type) <NEW_LINE> <DEDENT> for diff in self: <NEW_LINE> <IN...
Implements an Index for diffs, allowing a list of Diffs to be queried by the diff properties. The class improves the diff handling convenience
62598ef9a05bb46b3848917c
class Accounts: <NEW_LINE> <INDENT> def __init__(self, rest_request): <NEW_LINE> <INDENT> self.rest_request = rest_request <NEW_LINE> <DEDENT> def get_account(self, account_id, filters=None): <NEW_LINE> <INDENT> return self.rest_request.get('accounts/' + str(account_id), filters) <NEW_LINE> <DEDENT> def get_account_chi...
2600hz Kazoo Accounts API. :param rest_request: The request client to use. (optional, default: pykazoo.RestRequest()) :type rest_request: pykazoo.restrequest.RestRequest
62598ef9656771135c487f92
class SimpleForm(forms.Form): <NEW_LINE> <INDENT> f1 = forms.CharField(label=u'字段一', max_length=20, help_text='最多可输入120个字', initial='') <NEW_LINE> f2 = ChoiceNoValidateField(label=u'医院', initial=None, required=False) <NEW_LINE> f3 = forms.CharField(label=u'字段三', max_length=20, help_text='最多可输入120个字', initial='') <NEW_L...
example
62598ef966673b3332c2ecb8
class MessageBirdNotificationService(BaseNotificationService): <NEW_LINE> <INDENT> def __init__(self, sender, client, method, customize): <NEW_LINE> <INDENT> self.sender = sender <NEW_LINE> self.client = client <NEW_LINE> self.language = method <NEW_LINE> self.gender = customize <NEW_LINE> <DEDENT> def send_message(sel...
Implement the notification service for MessageBird.
62598ef963b5f9789fe83a67
class SymbolTable: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.curaddr = 16 <NEW_LINE> self.symtable = { 'SP': 0, 'LCL': 1, 'ARG': 2, 'THIS': 3, 'THAT': 4, 'R0': 0, 'R1': 1, 'R2': 2, 'R3': 3, 'R4': 4, 'R5': 5, 'R6': 6, 'R7': 7, 'R8': 8, 'R9': 9, 'R10': 10, 'R11': 11, 'R12': 12, 'R13': 13, 'R14': 14...
Keeps a correspondence between symbolic labels and numeric addresses.
62598ef94428ac0f6e656e56
class ColdComposite(CompositeSide): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return 'ColdCompositeSide'
Display this side as going cocurrent
62598ef97047854f4633dcd0
class SMA (Indicator): <NEW_LINE> <INDENT> def __init__(self, name, period=15): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.period = period <NEW_LINE> <DEDENT> def calculate(self, candles): <NEW_LINE> <INDENT> if len(candles) < self.period: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> return float(sum( [x...
Simple moving Average (SMA) market indicator implementation
62598ef9be383301e02520e9
class PlannerTaskDetails(Entity): <NEW_LINE> <INDENT> pass
The plannerTaskDetails resource represents the additional information about a task. Each task object has a details object.
62598ef921bff66bcd72155f
class CenterStatus(Base): <NEW_LINE> <INDENT> __tablename__ = 'centerstatus' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> centerstid = Column(Integer) <NEW_LINE> name = Column(String(100)) <NEW_LINE> adresses = relationship("Address", backref="centerstatus") <NEW_LINE> def __repr__(self): <NEW_LINE> <IN...
Статус центра
62598ef9ff9c53063f518f6a
class SmoothCrossEntropyLoss(_Loss): <NEW_LINE> <INDENT> __constants__ = ['label_smoothing', 'vocab_size', 'ignore_index', 'reduction'] <NEW_LINE> def __init__(self, label_smoothing, vocab_size, ignore_index=-100, reduction='mean', is_logits=True): <NEW_LINE> <INDENT> assert 0.0 <= label_smoothing <= 1.0 <NEW_LINE> sup...
https://arxiv.org/abs/1512.00567
62598ef956ac1b37e6300af5
class FHIRClassProperty(object): <NEW_LINE> <INDENT> def __init__(self, element, type_obj, type_name=None): <NEW_LINE> <INDENT> assert element and type_obj <NEW_LINE> spec = element.profile.spec <NEW_LINE> self.path = element.path <NEW_LINE> self.one_of_many = None <NEW_LINE> if not type_name: <NEW_LINE> <INDENT> type_...
An element describing an instance property.
62598ef971ff763f4b5e606a
class BankTransferIdempotencyKey(ModelSimple): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { ('value',): { 'max_length': 50, }, } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> return { 'valu...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Attributes: allowed_values (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the a...
62598efa097d151d1a2bf92e
class L3AgentExtensionsManager(agent_ext_manager.AgentExtensionsManager): <NEW_LINE> <INDENT> def __init__(self, conf): <NEW_LINE> <INDENT> super(L3AgentExtensionsManager, self).__init__(conf, L3_AGENT_EXT_MANAGER_NAMESPACE) <NEW_LINE> <DEDENT> def add_router(self, context, data): <NEW_LINE> <INDENT> for extension in s...
Manage l3 agent extensions.
62598efa3346ee7daa336aeb
class PFCamError(DeviceError): <NEW_LINE> <INDENT> pass
Generic PFCam error
62598efa167d2b6e312b58a5
class Shape(Enum): <NEW_LINE> <INDENT> CIRCLE = 0 <NEW_LINE> SPHERE = 1 <NEW_LINE> LINE = 2 <NEW_LINE> RECT = 3 <NEW_LINE> CUBE = 4 <NEW_LINE> CONIC = 5 <NEW_LINE> def retrieveByID(cls,ID): <NEW_LINE> <INDENT> for i in cls: <NEW_LINE> <INDENT> if i.value == ID: return i <NEW_LINE> <DEDENT> return None <NEW_LINE> <DEDEN...
Shape parameters avalaible CIRCLE : r SPHERE : r LINE : length, orientation=0, height=1, thickness=0 orientation in (0,90,180,270) -> (RIGHT, UP, LEFT, DOWN) RECT : rx, ry CUBE : rx, ry, rz CONIC : lengths, orientation=0 orientation in (0,90,180,270) -> (RIGHT, UP, LEFT, DOWN) lengths = list for each steps ...
62598efa5fdd1c0f98e5c8af
class Collection(ReadOnlyCollection): <NEW_LINE> <INDENT> def create(self, name, **params): <NEW_LINE> <INDENT> if not isinstance(name, six.string_types): <NEW_LINE> <INDENT> raise InvalidNameException("%s is not a valid name for an entity." % name) <NEW_LINE> <DEDENT> if 'namespace' in params: <NEW_LINE> <INDENT> name...
A collection of entities. Splunk provides a number of different collections of distinct entity types: applications, saved searches, fired alerts, and a number of others. Each particular type is available separately from the Splunk instance, and the entities of that type are returned in a :class:`Collection`. The inte...
62598efa0fa83653e46f37eb
class FaqView(BrowserView): <NEW_LINE> <INDENT> __call__ = ViewPageTemplateFile('faq-view.pt') <NEW_LINE> def eliminaUltimo(self, cad): <NEW_LINE> <INDENT> new_cad = [] <NEW_LINE> lon = len(cad) <NEW_LINE> for ii in cad[:len(cad)-1]: <NEW_LINE> <INDENT> new_cad.append(ii) <NEW_LINE> <DEDENT> return new_cad
Default view of a fitxa
62598efafff4ab517ebcc0dc
class J2KSubtype(Serializable): <NEW_LINE> <INDENT> _fields = ('NumWaveletLevels', 'NumBands', 'LayerInfo') <NEW_LINE> _required = ('NumWaveletLevels', 'NumBands') <NEW_LINE> _collections_tags = {'LayerInfo': {'array': True, 'child_tag': 'Bitrate', 'size_attribute': 'numLayers'}} <NEW_LINE> _numeric_format = {'LayerInf...
The Jpeg 2000 subtype.
62598efa377c676e912f61e8
class Delete(PackagecloudBase): <NEW_LINE> <INDENT> all_options = { "number_to_keep": (int, 0, "Keep at least this number of each package"), "packages_to_delete": ( str, REQUIRED, "Regex of packages to delete, e.g. pkg1|pkg2", ), "repo": (str, REQUIRED, "Which packagecloud repo to delete from"), } <NEW_LINE> desc = "De...
Deletes packages from a PackageCloud repo. Searches for packages that match the `packages_to_delete` regex pattern and deletes them. If `number_to_keep` is set, we always at least this number of versions of the given package intact in the repo. Also if `number_to_keep` is set, the older versions of a package (based ...
62598efa091ae35668703523
class GunicornServerMiddleware(ServerMiddleware, metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> def __init__(self, *args, count: int = None, timeout: int = 120, worker_class: str = 'sync', **kwargs) -> None: <NEW_LINE> <INDENT> super().__init__(*args) <NEW_LINE> import multiprocessing <NEW_LINE> self.count = count or mult...
Server middleware that wraps gunicorn for WSGI applicications.
62598efa442bda511e95ad6b
class OperationNotAllowed(ValidationError): <NEW_LINE> <INDENT> def __init__(self, operation, allowed_operations): <NEW_LINE> <INDENT> self.operation = operation <NEW_LINE> self.allowed_operations = allowed_operations <NEW_LINE> super().__init__( 'Operation {} not allowed, allowed_operations {}'.format( operation, ', '...
Ошибка возникает если в запросе указана операция, не разрешенная в схеме
62598efa8a349b6b43684b4c
class Post(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, on_delete=models.CASCADE) <NEW_LINE> profile = models.ForeignKey(Profile, on_delete=models.CASCADE) <NEW_LINE> title = models.CharField(max_length=50) <NEW_LINE> picture = models.ImageField(upload_to='posts/pictures') <NEW_LINE> resume = mode...
Post model
62598efaa05bb46b3848917e
class ASN(Indicator): <NEW_LINE> <INDENT> __slots__ = [] <NEW_LINE> def __init__(self, as_number: str, **kwargs): <NEW_LINE> <INDENT> super().__init__('ASN', as_number, **kwargs)
ThreatConnect Batch ASN Object.
62598efa7d43ff2487426880
class Matcher(object): <NEW_LINE> <INDENT> schema = u"@%s('%s')" <NEW_LINE> def __init__(self, func, string, step_type=None): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> self.string = string <NEW_LINE> self.step_type = step_type <NEW_LINE> self._location = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def location(...
Pull parameters out of step names. .. attribute:: string The match pattern attached to the step function. .. attribute:: func The step function the pattern is being attached to.
62598efa32920d7e50bc4933
class ReorderSessions(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> portal_catalog = api.portal.get_tool(name='portal_catalog') <NEW_LINE> brains = portal_catalog.searchResults(portal_type="genweb.organs.sessio") <NEW_LINE> sessions_to_reorder = [] <NEW_LINE> acords_to_update = [] <NEW_LINE>...
Reordena sessions de la vista d'organ
62598efaec188e330fdf71b5
class RefittControllerApp(Application): <NEW_LINE> <INDENT> interface = Interface(PROGRAM, USAGE, HELP) <NEW_LINE> interface.add_argument('-v', '--version', version=__version__, action='version') <NEW_LINE> action: str = None <NEW_LINE> interface.add_argument('action', choices=ACTIONS) <NEW_LINE> exceptions = { Runtime...
Application class for the refitt daemon controller.
62598efa10dbd63aa1c6f488
class FetchGit(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def setup(ap): <NEW_LINE> <INDENT> ap.add_argument('-p', '--project', help='Unique ID for git repository') <NEW_LINE> ap.add_argument('repo_url', help='Local or remote path/URL to git repository') <NEW_LINE> ap.add_argument('rev', help='Branch/tag/com...
Fetch git sources to the source cache Example:: $ hit fetchgit -p numpy git://github.com/numpy/numpy.git master Fetching ... Done git:c5ccca92c5f136833ad85614feb2aa4f5bd8b7c3 One can then unpack results later only by using the keys:: $ hit unpack git:c5ccca92c5f136833ad85614feb2aa4f5bd8b7c3 nump...
62598efa21bff66bcd721561
class MenuBase(object): <NEW_LINE> <INDENT> def __init__(self, gameApp:appBase): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.app = gameApp <NEW_LINE> self._frame = None <NEW_LINE> <DEDENT> def _CreateMenuButton(self, row, text, command=None, parent=None ): <NEW_LINE> <INDENT> if parent == None: <NEW_LINE> <I...
Base class for menus to provide shared methods
62598efa97e22403b38397fb
class LargeButton(gtk.Button): <NEW_LINE> <INDENT> def __init__(self, image, text): <NEW_LINE> <INDENT> gtk.Button.__init__(self) <NEW_LINE> self.set_size_request(180, -1) <NEW_LINE> self.set_relief(gtk.RELIEF_NONE) <NEW_LINE> hbox = gtk.HBox() <NEW_LINE> self.add(hbox) <NEW_LINE> align = gtk.Alignment(0, .5, 1, 1) <NE...
Large buttons in the left pane
62598efa50812a4eaa62006f
class QTIMetadata(core.QTIElement): <NEW_LINE> <INDENT> XMLNAME = (core.IMSQTI_NAMESPACE, 'qtiMetadata') <NEW_LINE> XMLCONTENT = xml.ElementContent <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> core.QTIElement.__init__(self, parent) <NEW_LINE> self.ItemTemplate = None <NEW_LINE> self.TimeDependent = None <...
A new category of meta-data for the recording of QTI specific information. It is designed to be treated as an additional top-level category to augment the LOM profile:: <xsd:group name="qtiMetadata.ContentGroup"> <xsd:sequence> <xsd:element ref="itemTemplate" minOccurs="0" maxOccurs="1"/> ...
62598efaad47b63b2c5a6124
class IL0373(displayio.EPaperDisplay): <NEW_LINE> <INDENT> def __init__(self, bus, swap_rams=False, **kwargs): <NEW_LINE> <INDENT> if kwargs.get("grayscale", False): <NEW_LINE> <INDENT> start_sequence = bytearray(_GRAYSCALE_START_SEQUENCE) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> start_sequence = bytearray(_START_...
IL0373 driver :param bus: The data bus the display is on :param bool swap_rams: Color and black rams/commands are swapped :param \**kwargs: See below :Keyword Arguments: * *width* (``int``) -- Display width * *height* (``int``) -- Display height * *rotation* (``int``) -- Display rota...
62598efa7d847024c075acd7
class Tone(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'description': 'str', 'examples': 'str', 'name': 'str' } <NEW_LINE> self.attribute_map = { 'description': 'description', 'examples': 'examples', 'name': 'name' } <NEW_LINE> self._description = None <NEW_LINE> self._ex...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598efa5fdd1c0f98e5c8b1
class Project: <NEW_LINE> <INDENT> def __init__(self, linkname): <NEW_LINE> <INDENT> self.linkname = linkname <NEW_LINE> self._project = pw.get.projects(self.linkname) <NEW_LINE> <DEDENT> @property <NEW_LINE> def series(self): <NEW_LINE> <INDENT> if not hasattr(self, '_series'): <NEW_LINE> <INDENT> json = pw.get.projec...
(Tiny) Wrapper for a project's series
62598efaf548e778e5969e99