code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TableState(Singleton): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.table_name = "" <NEW_LINE> self.schema = [] <NEW_LINE> self.header = "" <NEW_LINE> self.impl = "" <NEW_LINE> self.function = "" <NEW_LINE> self.class_name = "" <NEW_LINE> self.description = "" <NEW_LINE> self.attributes = {} <...
Maintain the state of of the table commands during the execution of the config file
62598f2e26238365f5fabb47
class DepthwiseSeparableConv(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_chs, out_chs, dw_kernel_size=3, stride=1, dilation=1, pad_type='', act_layer=nn.ReLU, noskip=False, pw_kernel_size=1, pw_act=False, se_ratio=0., se_kwargs=None, norm_layer=nn.BatchNorm2d, norm_kwargs=None, drop_connect_rate=0.): <NEW_LIN...
DepthwiseSeparable block Used for DS convs in MobileNet-V1 and in the place of IR blocks that have no expansion (factor of 1.0). This is an alternative to having a IR with an optional first pw conv.
62598f2ead47b63b2c5a67ca
class bcolors: <NEW_LINE> <INDENT> HEADER = '\033[95m' <NEW_LINE> OKBLUE = '\033[94m' <NEW_LINE> OKGREEN = '\033[92m' <NEW_LINE> WARNING = '\033[93m' <NEW_LINE> FAIL = '\033[91m' <NEW_LINE> ENDC = '\033[0m' <NEW_LINE> BOLD = '\033[1m' <NEW_LINE> UNDERLINE = '\033[4m'
Class defining escape sequences for terminal color printing
62598f2e091ae35668703bc8
class Base(metaclass=_FormatterMeta): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> return cls <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def parse(cls, s): <NEW_LINE> <INDENT> raise NotImplementedError( "Can not parse {0}".format(cls.__name__)) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> ...
The abstract base class of all unit formats.
62598f2ead47b63b2c5a67cc
class CleanAllRUVTask(Task): <NEW_LINE> <INDENT> def __init__(self, instance, dn=None): <NEW_LINE> <INDENT> self.cn = 'cleanallruv_' + Task._get_task_date() <NEW_LINE> dn = "cn=" + self.cn + ",cn=cleanallruv," + DN_TASKS <NEW_LINE> self._properties = None <NEW_LINE> super(CleanAllRUVTask, self).__init__(instance, dn) <...
Create the clean all ruv task. This will be replicated through a topology to remove non-present ruvs. Note that if a ruv is NOT able to be removed, this indicates a dangling replication agreement on *some* master in the topology. :param instance: The instance :type instance: lib389.DirSrv
62598f2e187af65679d293e6
class CreateLiveSnapshotTemplateRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TemplateName = None <NEW_LINE> self.CosAppId = None <NEW_LINE> self.CosBucket = None <NEW_LINE> self.CosRegion = None <NEW_LINE> self.Description = None <NEW_LINE> self.SnapshotInterval = None <NEW_L...
CreateLiveSnapshotTemplate请求参数结构体
62598f2e26238365f5fabb51
class Memory: <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> self.currentPosition = 0 <NEW_LINE> self.states = [] <NEW_LINE> self.statesGoals = [] <NEW_LINE> self.actions = [] <NEW_LINE> self.rewards = [] <NEW_LINE> self.newStates = [] <NEW_LINE> self.newStatesGoals = [] <...
Modified to include goals as part of the Experience Replay
62598f2e4c34283577619298
class DysonCombinedFilterLifeSensor(DysonSensor): <NEW_LINE> <INDENT> _SENSOR_TYPE = "combined_filter_life" <NEW_LINE> _SENSOR_NAME = "Filter Life" <NEW_LINE> _attr_entity_category = EntityCategory.DIAGNOSTIC <NEW_LINE> _attr_icon = "mdi:filter-outline" <NEW_LINE> _attr_unit_of_measurement = PERCENTAGE <NEW_LINE> @prop...
Dyson combined filter life sensor (in percentage) for Pure Cool.
62598f2e091ae35668703bd4
class IsotropicMaterial(AnisotropicMaterial): <NEW_LINE> <INDENT> def __init__(self, rho, cijs): <NEW_LINE> <INDENT> assert len(cijs) == 2 <NEW_LINE> cijs = list(cijs) <NEW_LINE> cijs.insert(0, cijs[0] + 2.*cijs[1]) <NEW_LINE> index_lists = [[(0, 0), (1, 1), (2, 2)], [(0, 1), (0, 2), (1, 2)], [(3, 3), (4, 4), (5, 5)]] ...
A class derived from the AnisotropicMaterial base class Initialization takes two input parameters; rho and [C12, C44] (i.e. lambda and mu, the Lame parameters)
62598f2ead47b63b2c5a67d8
class EntryDiscussions(DiscussionFeed): <NEW_LINE> <INDENT> def get_object(self, request, year, month, day, slug): <NEW_LINE> <INDENT> return get_object_or_404(Entry, slug=slug, publication_date__year=year, publication_date__month=month, publication_date__day=day) <NEW_LINE> <DEDENT> def items(self, obj): <NEW_LINE> <I...
Feed for discussions on an entry.
62598f2e3cc13d1c6d46473b
class GlobalSetting(object): <NEW_LINE> <INDENT> site_title = u"慕学后台管理系统" <NEW_LINE> site_footer = u"慕学在线网" <NEW_LINE> menu_style = "accordion"
修改主题以及底部标题
62598f2f4c342835776192a2
class CfgData(Base): <NEW_LINE> <INDENT> __tablename__ = 'cfgs_data' <NEW_LINE> id = sql.Column(sql.Integer, primary_key=True) <NEW_LINE> obj = orm.deferred(sql.Column(sql.PickleType)) <NEW_LINE> case_id= sql.Column(sql.Integer, sql.ForeignKey('cases_info.id')) <NEW_LINE> case = orm.relationship('Case', back_p...
The CfgData class is intented to pickle data that has not yet been identified as a function but is part of the recovered :class:graph.
62598f2fc4546d3d9def6a4d
class Func: <NEW_LINE> <INDENT> def call(self): <NEW_LINE> <INDENT> return datatype.NULL_EXPR_INST <NEW_LINE> <DEDENT> def log_string(self): <NEW_LINE> <INDENT> return "Func" <NEW_LINE> <DEDENT> def log_expr(self): <NEW_LINE> <INDENT> return "F"
Expr이 평가될 때 실행된 함수를 정의하는 class입니다. 세부적인 동작은 해당 class를 상속받은 class에서 정의합니다.
62598f2f091ae35668703bdc
class AvgIQCtl(AvgDemodCtl): <NEW_LINE> <INDENT> def data_shape(self): <NEW_LINE> <INDENT> super().data_shape() <NEW_LINE> return (self.records_per_buffer(), self.number_of_channels) <NEW_LINE> <DEDENT> def data_dims(self): <NEW_LINE> <INDENT> return ('records', 'channels') <NEW_LINE> <DEDENT> def post_acquire(self): <...
A controller that averages over buffers and subsequently demodulates the averaged data and finally averages over all demodulated samples. The data returned has the format Records x Channels. The demodulated samples are averaged over a period of sample_rate//demod_frq rounded up to nearest integer and subsequently aver...
62598f2f3cc13d1c6d464741
class nqh_flip(residue): <NEW_LINE> <INDENT> def as_string(self): <NEW_LINE> <INDENT> return self.id_str() <NEW_LINE> <DEDENT> def as_table_row_phenix(self): <NEW_LINE> <INDENT> if self.chain_id: <NEW_LINE> <INDENT> return [ self.chain_id, "%1s%s %s" % (self.altloc,self.resname,self.resid) ] <NEW_LINE> <DEDENT> elif se...
Backwards Asn/Gln/His sidechain, identified by Reduce's hydrogen-bond network optimization.
62598f2f187af65679d293ef
class database(): <NEW_LINE> <INDENT> def __init__(self, uri, **kwargs): <NEW_LINE> <INDENT> self.engine = create_engine(uri, **kwargs) <NEW_LINE> self.genSession = sessionmaker(bind=self.engine) <NEW_LINE> schema.Base.metadata.create_all(self.engine, checkfirst=True) <NEW_LINE> <DEDENT> def connect(self): <NEW_LINE> <...
This is a wrapper class for SQLAlchemy databases. It will create the physical database (if necessary) and provide a context manager that makes it easier to do atomic transactions using a 'with' statement.
62598f2f091ae35668703be0
class StorageProfileAwsResult(object): <NEW_LINE> <INDENT> swagger_types = { 'number_of_elements': 'int', 'content': 'list[AwsStorageProfile]', 'total_elements': 'int' } <NEW_LINE> attribute_map = { 'number_of_elements': 'numberOfElements', 'content': 'content', 'total_elements': 'totalElements' } <NEW_LINE> def __init...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f2f26238365f5fabb63
class VulnerabilitiesAPI(VulnerabilityAPI): <NEW_LINE> <INDENT> def __init__(self, session): <NEW_LINE> <INDENT> super().__init__(session) <NEW_LINE> self._base_path = "Vulnerabilities" <NEW_LINE> self.containers = ContainerVulnerabilitiesAPI(session, self._base_path) <NEW_LINE> self.hosts = HostVulnerabilitiesAPI(sess...
A class used to represent the Vulnerabilities API endpoint. The Vulnerabilities API endpoint is simply a parent for different types of vulnerabilities that can be queried. Due to namespace overlap with the v1 API, this class is a subclass of VulnerabilityAPI to expose those methods and provide backwards compatibility...
62598f2f3cc13d1c6d464747
class Document: <NEW_LINE> <INDENT> def __init__(self, name, attributes={}): <NEW_LINE> <INDENT> attributes['documentName'] = name <NEW_LINE> self.name = name <NEW_LINE> self.filename = 'storage/' + name + '.json' <NEW_LINE> self.attributes = attributes <NEW_LINE> self.write() <NEW_LINE> <DEDENT> def write(self): <NEW_...
The Document class is the basis for all data storage in the database. Creating a document accepts a name and optionally a dictionary of attributes and values and stores this data in a JSON object.
62598f2f4c342835776192ac
class LinkedServiceResource(SubResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'etag': {'readonly': True}, 'properties': {'required': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type'...
Linked service resource type. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar id: The resource identifier. :vartype id: str :ivar name: The resource name. :vartype name: str :ivar type: The resource typ...
62598f2f3cc13d1c6d464749
class Observation(CompositeAction): <NEW_LINE> <INDENT> @asyncio.coroutine <NEW_LINE> def before(self, request): <NEW_LINE> <INDENT> if request['body']['action'] == 'retrieve': <NEW_LINE> <INDENT> self.add(TemporalFilterBuilder()) <NEW_LINE> self.add(OfferingFilterBuilder()) <NEW_LINE> self.add(ProcedureFilterBuilder()...
Rest api used to manage unit of measures
62598f2fc4546d3d9def6a53
class FunctionInput(Operator): <NEW_LINE> <INDENT> def __init__(self, value_getter_function): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._value_getter_function = value_getter_function <NEW_LINE> <DEDENT> def _calculate_value(self): <NEW_LINE> <INDENT> val = self._value_getter_function() <NEW_LINE> if val is...
Adapts an arbitrary input (function returning a value) to an operand.
62598f2f26238365f5fabb69
class RoomProperty(models.Model): <NEW_LINE> <INDENT> rp_id=models.IntegerField(primary_key=True,unique=True) <NEW_LINE> rp_rid=models.ForeignKey(Rooms,on_delete=models.CASCADE) <NEW_LINE> room_key=models.CharField(max_length=264) <NEW_LINE> value=models.CharField(max_length=264) <NEW_LINE> class Meta: <NEW_LINE> <INDE...
docstring foruser_property.
62598f2f187af65679d293f3
class GaodeTravelTimeSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, hass, name, friendly_name, data ): <NEW_LINE> <INDENT> self._hass = hass <NEW_LINE> self._name = name <NEW_LINE> self._friendly_name = friendly_name <NEW_LINE> self._unit_of_measurement = "分钟" <NEW_LINE> self._data = data <NEW_LINE> <DEDENT> @p...
Representation of a Gaode travel time sensor.
62598f2f187af65679d293f4
class ArgMode(Enum): <NEW_LINE> <INDENT> DESC = 1 <NEW_LINE> USE = 2
Enumeration describing whether the KwArgs in an ArgList or KwargDict are currently being DESCribed (that is, they are being added to or removed from the container objects, or are generally being edited), or USEd (that is, the values are being set or queried in preparation for running a Layer or a Stack).
62598f2f4c342835776192b2
class MockS3Connection(object): <NEW_LINE> <INDENT> def __init__(self, access_key, secret_key, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def create_bucket(self, bucket_name, **kwargs): <NEW_LINE> <INDENT> return "edX Bucket"
Mock boto S3Connection for testing image uploads.
62598f2f091ae35668703bea
@optendersresource(name='aboveThresholdEU:Tender Cancellation Documents', collection_path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents', path='/tenders/{tender_id}/cancellations/{cancellation_id}/documents/{document_id}', procurementMethodType='aboveThresholdEU', description="Tender EU cancellation d...
Cancellation Document
62598f2fc4546d3d9def6a57
class VelocityWalkDistorter(Distorter): <NEW_LINE> <INDENT> def __init__(self, sigma=10., min=0.5, max=2.): <NEW_LINE> <INDENT> self.sigma = sigma <NEW_LINE> self.min = min <NEW_LINE> self.max = max <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'VelocityWalkDistorter(sigma={:.2f}, min={:.2f}, max={...
Generate bounded random walk, and multiply velocities by it.
62598f2fc4546d3d9def6a58
class BrandSchema(ma.ModelSchema): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Brand
Brand schema used to generate formatted JSON
62598f2f187af65679d293f8
class LogGetEvents(wn_message.BufferCmd): <NEW_LINE> <INDENT> def __init__(self, size, start_byte=0): <NEW_LINE> <INDENT> command = _CMD_GRPID_NODE + CMDID_LOG_GET_ENTRIES <NEW_LINE> if (size == CMD_PARAM_LOG_GET_ALL_ENTRIES): <NEW_LINE> <INDENT> size = wn_message.CMD_BUFFER_GET_SIZE_FROM_DATA <NEW_LINE> <DEDENT> super...
Command to get the WLAN Exp log events of the node
62598f2f3cc13d1c6d464757
class LoggedAction(namedtuple( "LoggedAction", "startMessage endMessage children")): <NEW_LINE> <INDENT> @property <NEW_LINE> def start_message(self): <NEW_LINE> <INDENT> return self.startMessage <NEW_LINE> <DEDENT> @property <NEW_LINE> def end_message(self): <NEW_LINE> <INDENT> return self.endMessage <NEW_LINE> <DEDEN...
An action whose start and finish messages have been logged. @ivar startMessage: A C{dict}, the start message contents. Also available as C{start_message}. @ivar endMessage: A C{dict}, the end message contents (in both success and failure cases). Also available as C{end_message}. @ivar children: A C{list} of ...
62598f2f4c342835776192c0
class TowerTopo( Topo ): <NEW_LINE> <INDENT> def build( self, k=4, h=6 ): <NEW_LINE> <INDENT> spines = [] <NEW_LINE> leaves = [] <NEW_LINE> hosts = [] <NEW_LINE> spines.append(self.addSwitch('s1')) <NEW_LINE> spines.append(self.addSwitch('s2')) <NEW_LINE> self.addLink(spines[0], spines[1]) <NEW_LINE> i = 1 <NEW_LINE> c...
Create a tower topology
62598f2f26238365f5fabb7a
class BaseCar: <NEW_LINE> <INDENT> def __init__(self, car_type, brand, photo_file_name, carrying): <NEW_LINE> <INDENT> self.car_type = car_type <NEW_LINE> self.brand = brand <NEW_LINE> self.photo_file_name = photo_file_name <NEW_LINE> self.carrying = carrying <NEW_LINE> <DEDENT> def get_photo_file_ext(self): <NEW_LINE>...
Базовый класс для описания машин. Содержит: тип машины, бренд, фото, грузоподъёмность
62598f30ad47b63b2c5a67fc
class TestModelCapturesStrategy(test.TestCase, parameterized.TestCase): <NEW_LINE> <INDENT> @ds_combinations.generate( combinations.combine(distribution=all_strategies, mode=['eager'])) <NEW_LINE> def test_fit_and_evaluate(self, distribution): <NEW_LINE> <INDENT> dataset = dataset_ops.DatasetV2.from_tensor_slices( (arr...
Tests that model creation captures the strategy.
62598f303cc13d1c6d46475f
class PYDCCPImpl(StageOutImplV2): <NEW_LINE> <INDENT> def doTransfer(self, fromPfn, toPfn, stageOut, pnn, command, options, protocol, checksum ): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> import dcap <NEW_LINE> <DEDENT> except ImportError as ie: <NEW_LINE> <INDENT> raise StageOutError("Python dCap wrappers not foun...
_PYDCCPImpl_ Implement interface for python API around dccp command
62598f304c342835776192c4
class Library(object): <NEW_LINE> <INDENT> def __init__(self, shelves): <NEW_LINE> <INDENT> self.shelves = [] <NEW_LINE> <DEDENT> def add_shelves(self, shelf): <NEW_LINE> <INDENT> self.shelves.append(shelf) <NEW_LINE> return self.shelves <NEW_LINE> <DEDENT> def report_books(self): <NEW_LINE> <INDENT> print('Shelf 1:', ...
Class to hold shelves of books
62598f30627d3e7fe0e05e77
@six.add_metaclass(classmaker((ABCMeta,))) <NEW_LINE> class PanelBase(QtWidgets.QFrame): <NEW_LINE> <INDENT> inner_selection_changed = QtCore.Signal(unicode) <NEW_LINE> def __init__(self, node_info, parent=None): <NEW_LINE> <INDENT> super(PanelBase, self).__init__(parent=parent) <NEW_LINE> self._node_info = node_info <...
パネルの基底クラス
62598f30187af65679d293fe
class User(user.User): <NEW_LINE> <INDENT> def __init__(self, callback=None, error=None, parent=None, uistate=None, dbstate=None): <NEW_LINE> <INDENT> user.User.__init__(self, callback, error, uistate, dbstate) <NEW_LINE> self._progress = None <NEW_LINE> if parent: <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> <D...
This class provides a means to interact with the user via GTK. It implements the interface in :class:`.gen.user.User`
62598f30627d3e7fe0e05e79
class Config: <NEW_LINE> <INDENT> def __init__(self,config_file, data : Data): <NEW_LINE> <INDENT> self.import_config_file(config_file) <NEW_LINE> self.init_traci(data.dir) <NEW_LINE> self.check_config() <NEW_LINE> <DEDENT> def import_config_file(self, config_file): <NEW_LINE> <INDENT> with open(f'{config_file}', 'r') ...
The Config class defines all simulation properties that can be changed
62598f304c342835776192ca
class Hillclimbing(MetaAlgorithm): <NEW_LINE> <INDENT> def execute(self): <NEW_LINE> <INDENT> i = 0 <NEW_LINE> yield <NEW_LINE> while i < 1000: <NEW_LINE> <INDENT> r = self.solution[:] <NEW_LINE> self.solutionspace.tweak(r) <NEW_LINE> rval = self.solutionspace.value(r) <NEW_LINE> if rval < self.solutionval: <NEW_LINE> ...
The algorithm has been initialized into self.solution
62598f30091ae35668703c02
class DatabaseTestBase(FlaskTestBase): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> super(DatabaseTestBase, self).setup() <NEW_LINE> app = self.flaskapp <NEW_LINE> engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI'], convert_unicode=True) <NEW_LINE> self.Session = sessionmaker(autocommit=False, aut...
Base class for tests that use a SQLAlchemy database. The :meth:`setup` method does the necessary SQLAlchemy initialization, and the subclasses should populate the database with models and then create the database (by calling ``self.Base.metadata.create_all()``).
62598f30627d3e7fe0e05e7d
class SignupForm(UserCreationForm): <NEW_LINE> <INDENT> firstname= forms.CharField(label=("First Name"), max_length=120, widget=forms.TextInput({ 'class':'form-control', 'placeholder':'Nelson'})) <NEW_LINE> lastname= forms.CharField(label=("Last Name"), max_length=120, widget=forms.TextInput({ 'class':'form-control', '...
User Creation form that uses bootrasp CSS
62598f30c4546d3d9def6a63
class Console(Object): <NEW_LINE> <INDENT> def __init__(self, out=None): <NEW_LINE> <INDENT> self.out = out if out is not None else sys.stdout <NEW_LINE> self.d = {'log': NativeFunction(self.log)} <NEW_LINE> <DEDENT> def log(self, this, args): <NEW_LINE> <INDENT> self.out.write(' '.join(str(arg) for arg in args)) <NEW_...
Global `console` object, behaving similar to Firebug's one.
62598f3026238365f5fabb88
class TFFastSpeechOutput(tf.keras.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, config, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.LayerNorm = tf.keras.layers.LayerNormalization( epsilon=config.layer_norm_eps, name="LayerNorm" ) <NEW_LINE> self.dropout = tf.keras.layers.Dropout(co...
Output module.
62598f30ad47b63b2c5a680a
class PlatformAccess(object): <NEW_LINE> <INDENT> def __init__(self, can_access=None, can_buy=None): <NEW_LINE> <INDENT> self.swagger_types = { 'can_access': 'bool', 'can_buy': 'bool' } <NEW_LINE> self.attribute_map = { 'can_access': 'can_access', 'can_buy': 'can_buy' } <NEW_LINE> self._can_access = can_access <NEW_LIN...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f30187af65679d29404
class LicensingClient(gdata.client.GDClient): <NEW_LINE> <INDENT> api_version = '1.0' <NEW_LINE> auth_service = 'apps' <NEW_LINE> auth_scopes = gdata.gauth.AUTH_SCOPES['apps'] <NEW_LINE> ssl = False <NEW_LINE> def __init__(self, domain, auth_token=None, **kwargs): <NEW_LINE> <INDENT> gdata.client.GDClient.__init__(self...
Client extension for the Google Apps Marketplace Licensing API service. Attributes: host: string The hostname for the Google Apps Marketplace Licensing API service. api_version: string The version of the Google Apps Marketplace Licensing API.
62598f30c4546d3d9def6a65
class IncorrectCommandException(BaseGameException): <NEW_LINE> <INDENT> pass
Invalid command name
62598f303cc13d1c6d464773
class Solution: <NEW_LINE> <INDENT> def rehashing(self, hashTable): <NEW_LINE> <INDENT> if len(hashTable) <= 0: <NEW_LINE> <INDENT> return hashTable <NEW_LINE> <DEDENT> n = 2 * len(hashTable) <NEW_LINE> newTable = [None for i in range(n)] <NEW_LINE> for i in range(len(hashTable)): <NEW_LINE> <INDENT> while hashTable[i]...
@param hashTable: A list of The first node of linked list @return: A list of The first node of linked list which have twice size
62598f3026238365f5fabb94
class ZMQSink(sink.Sink): <NEW_LINE> <INDENT> def __init__(self, endpoint, topic): <NEW_LINE> <INDENT> super(ZMQSink, self).__init__() <NEW_LINE> self.endpoint = endpoint <NEW_LINE> self.topic = topic <NEW_LINE> <DEDENT> def pull(self): <NEW_LINE> <INDENT> context = zmq.Context() <NEW_LINE> socket = context.socket(zmq....
Print packet information
62598f30ad47b63b2c5a6816
class PaceMSS(protocol_base.IrProtocolBase): <NEW_LINE> <INDENT> irp = '{38k,630,msb}<1,-7|1,-11>(1,-5,1,-5,T:1,D:1,F:8,1,^120m)*' <NEW_LINE> frequency = 38000 <NEW_LINE> bit_count = 10 <NEW_LINE> encoding = 'msb' <NEW_LINE> _lead_in = [TIMING, -TIMING * 5, TIMING, -TIMING * 5] <NEW_LINE> _lead_out = [TIMING, 120000] <...
IR decoder for the PaceMSS protocol.
62598f30627d3e7fe0e05e93
class TestRachioMethods(unittest.TestCase): <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> rachio = Rachio(AUTHTOKEN) <NEW_LINE> self.assertEqual(rachio.authtoken, AUTHTOKEN) <NEW_LINE> self.assertEqual(rachio.person.authtoken, AUTHTOKEN) <NEW_LINE> self.assertEqual(rachio.device.authtoken, AUTHTOKEN) <NE...
Class containing the Rachio object test cases.
62598f303cc13d1c6d46477f
class TestCreatePaymentParams(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 testCreatePaymentParams(self): <NEW_LINE> <INDENT> pass
CreatePaymentParams unit test stubs
62598f31187af65679d2940f
class WarthogConfigError(WarthogError): <NEW_LINE> <INDENT> pass
Base for errors raised while parsing or loading configuration.
62598f314c342835776192e8
class InceptHead(nn.Layer): <NEW_LINE> <INDENT> def __init__(self, in_channels, bn_eps, dropout_rate, classes, data_format="channels_last", **kwargs): <NEW_LINE> <INDENT> super(InceptHead, self).__init__(**kwargs) <NEW_LINE> self.data_format = data_format <NEW_LINE> self.use_dropout = (dropout_rate != 0.0) <NEW_LINE> i...
InceptionResNetV1 specific classification block. Parameters: ---------- in_channels : int Number of input channels. bn_eps : float Small float added to variance in Batch norm. dropout_rate : float Fraction of the input units to drop. Must be a number between 0 and 1. classes : int Number of classificat...
62598f3126238365f5fabba4
class DockerTag(Base): <NEW_LINE> <INDENT> search_key = 'tag' <NEW_LINE> is_katello = True <NEW_LINE> def navigate_to_entity(self): <NEW_LINE> <INDENT> Navigator(self.browser).go_to_docker_tags() <NEW_LINE> <DEDENT> def _search_locator(self): <NEW_LINE> <INDENT> return locators['dockertag.select_name'] <NEW_LINE> <DEDE...
Manipulates Docker Tags from UI
62598f31c4546d3d9def6a71
class Foundry(pyre.patterns.decorator): <NEW_LINE> <INDENT> pyre_tip = '' <NEW_LINE> pyre_implements = None <NEW_LINE> def __init__(self, factory, implements=None, tip='', **kwds): <NEW_LINE> <INDENT> super().__init__(factory=factory, **kwds) <NEW_LINE> self.pyre_tip = tip <NEW_LINE> self.pyre_implements = pyre.pattern...
A decorator for callables that return component classes
62598f310a366e3fb87db9ed
class L2VPN(object): <NEW_LINE> <INDENT> def __init__(self, device): <NEW_LINE> <INDENT> self.device = device <NEW_LINE> <DEDENT> def get_config(self): <NEW_LINE> <INDENT> KEYMAP = { 'enable': 'Enable', 'vsi_supported': 'SupportVsiInterface' } <NEW_LINE> VALUE_MAP = { 'Enable': { 'true': 'enabled', 'false': 'disabled' ...
Enable/Disable L2VPN globally on a HP Comware 7 switch. Args: device (HPCOM7): connected instance of a ``pyhpecw7.comware.HPCOM7`` object. Attributes: device (HPCOM7): connected instance of a ``pyhpecw7.comware.HPCOM7`` object.
62598f3126238365f5fabba6
class IOHistory: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._history = {} <NEW_LINE> self._current_section = {} <NEW_LINE> <DEDENT> def new_section(self, name: str): <NEW_LINE> <INDENT> self._current_section = { STDERR: '', STDOUT: '' } <NEW_LINE> self._history[name] = self._current_section <NEW_L...
Store Outputs of running server. >>> history = IOHistory() >>> history.new_section('First Section') >>> history.add_stdout_chunk('Hello ') >>> history.add_stdout_chunk('World') >>> history.get_history(STDOUT) 'Hello World' >>> history.new_section('Second Section') >>> history.add_stdout_chunk('Bye') >>> history.add_s...
62598f313cc13d1c6d46478b
class DataFrameLoader(object): <NEW_LINE> <INDENT> def __init__(self, name, load_dataframe, join_on=None, join_on_right="patient_id", join_on_left="patient_id"): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.load_dataframe = load_dataframe <NEW_LINE> if join_on is not None: <NEW_LINE> <INDENT> warnings.warn("`jo...
Wraps a `DataFrame` with some information on how to join it. Parameters __________ name : str The name of the dataframe, to easily reference it. load_dataframe : function A function that returns the `DataFrame` object. join_on_right : str The column of the `DataFrame` to join on (i.e. the patient ID co...
62598f3126238365f5fabbaa
class TestMaxStackAlt(unittest.TestCase): <NEW_LINE> <INDENT> def test_single_case(self): <NEW_LINE> <INDENT> stack = [100] <NEW_LINE> maxstack = msa.fromarray(stack) <NEW_LINE> self.assertEqual(maxstack.getmax(), 100) <NEW_LINE> <DEDENT> def test_descending_case(self): <NEW_LINE> <INDENT> stack = [10, 9, 8, 7, 6, 5, 4...
Test suite for MaxStackAlt
62598f313cc13d1c6d46478f
class SummaryPropertyForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = RetrieverStructure <NEW_LINE> fields = ('nresidues', 'rresidues_polarity', 'bb_torsions') <NEW_LINE> labels = {'nresidues' : _('Number of residues'), 'rresidues_polarity' : _('Percentage residues of polarity class'),...
Class that defines the form for how to summarize a set of structures. Notes ----- The items of the form are taken from a Django model, but only the items related to the summarization are kept in the ``Meta`` subclass.
62598f31091ae35668703c2a
class SearchSteplengthParFit(object): <NEW_LINE> <INDENT> def __init__(self, optimize='rms_all_noerr', optimize_index=0): <NEW_LINE> <INDENT> self.rms_key = optimize <NEW_LINE> self.rms_index = optimize_index <NEW_LINE> <DEDENT> def get_steplength(self, it, par_update, ignore_all_err=False): <NEW_LINE> <INDENT> old_rms...
Determine an optimal steplength parameter :math:`\alpha` by fitting a parabola through the results for :math:`\alpha \in [0, 0.5, 1]`. This procedure needs only two calculations of the model update (:math:`\alpha = [0.5, 1]`). By default we optimize the rms called 'rms_all_noerr'
62598f31c4546d3d9def6a75
class TestParseArgs(object): <NEW_LINE> <INDENT> def test_doc(self): <NEW_LINE> <INDENT> with pytest.raises(SystemExit) as e: <NEW_LINE> <INDENT> parse_args(["-h"]) <NEW_LINE> <DEDENT> assert e.value.code == 0 <NEW_LINE> <DEDENT> def test_empty(self): <NEW_LINE> <INDENT> with pytest.raises(SystemExit) as e: <NEW_LINE> ...
Test parse_args()
62598f31187af65679d29415
class forest_add_excluded_vars_node(pipeline.CondorDAGNode): <NEW_LINE> <INDENT> def __init__( self, job, patfile, datfile, p_node=[], ): <NEW_LINE> <INDENT> job.set_stdout_file('logs/' + os.path.split(datfile)[1].replace('.dat', 'faev.out')) <NEW_LINE> job.set_stderr_file('logs/' + os.path.split(datfile)[1].replace('....
Node for forest_add_excluded_vars_job.
62598f310a366e3fb87db9f5
class PyQueue(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> self.buffer = '' <NEW_LINE> <DEDENT> def load(self, char): <NEW_LINE> <INDENT> self.buffer += char <NEW_LINE> <DEDENT> def dump(self): <NEW_LINE> <INDENT> answer = sel...
This class is used to provide an interface for Maize's transmitter/receiver libraries.
62598f31627d3e7fe0e05ea9
class MaladieAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> inlines = [ProprieteMaladieInLine, ContreIndicationMaladieInLine]
Admin of Maladie
62598f313cc13d1c6d464795
class LabeledTextBackedDocument(LabeledDocument): <NEW_LINE> <INDENT> def __init__(self, doc_id, label, doc_text): <NEW_LINE> <INDENT> super(LabeledTextBackedDocument, self).__init__(doc_id, label) <NEW_LINE> self.doc_text = doc_text <NEW_LINE> <DEDENT> def get_text(self): <NEW_LINE> <INDENT> return self.doc_text
Simple text backed labeled document.
62598f31627d3e7fe0e05ead
class ImageLoaderBase(object): <NEW_LINE> <INDENT> __slots__ = ('_texture', '_data', 'filename', 'keep_data', '_mipmap') <NEW_LINE> def __init__(self, filename, **kwargs): <NEW_LINE> <INDENT> self._mipmap = kwargs.get('mipmap', False) <NEW_LINE> self.keep_data = kwargs.get('keep_data', False) <NEW_LINE> self.filename =...
Base to implement an image loader.
62598f313cc13d1c6d464797
class UnsupportedModelError(RuntimeError): <NEW_LINE> <INDENT> def __init__(self, model_ref: str, message: str = None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.model_ref = model_ref <NEW_LINE> self.message = message <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ("Model %s is not usabl...
This error is raised when an LM-Zoo-external model (e.g. a model from the HuggingFace hub) not compatible with the assumptions of LM Zoo is specified. For example, non-causal LMs are not compatible with the assumptions of LM Zoo.
62598f31c4546d3d9def6a79
class CalculatorTest(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def tearDownClass(cls): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> self._stack = Stack() <NEW_LINE> <DEDEN...
unitetestモジュールの簡単な実行例その2。
62598f31627d3e7fe0e05eaf
class Submission(object): <NEW_LINE> <INDENT> def __init__(self, directory, container, entry_point, use_gpu): <NEW_LINE> <INDENT> self.name = os.path.basename(directory) <NEW_LINE> self.directory = directory <NEW_LINE> self.container = container <NEW_LINE> self.entry_point = entry_point <NEW_LINE> self.use_gpu = use_gp...
Base class for all submissions.
62598f31091ae35668703c34
class AttendanceView(APIView): <NEW_LINE> <INDENT> permission_classes = (permissions.IsAuthenticated,) <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> serializer = AttendanceSerializer(data=request.data, context={'request': request}) <NEW_LINE> if serializer.is_valid(): <NEW_LINE> <INDENT> serializer.save() <NE...
the parameters are: matric_no: string status: boolean course_code: string duration: integer
62598f3126238365f5fabbba
class AMQPInvalidPath(Exception): <NEW_LINE> <INDENT> pass
The client tried to work with an unknown virtual host.
62598f31091ae35668703c38
class DecAttClassifiter(nn.Module): <NEW_LINE> <INDENT> def __init__(self, embedding_dim, num_classes, dropout=0.3, task=None, pool_func=abs_max_pooling, mask_special_tokens=True, device=torch.device('cpu')): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> assert task is not None <NEW_LINE> self.task = task <NEW_LINE...
Seq pair classifier based on: "A Decomposable Attention Model for Natural Language Inference" It's basically attention between the two sentences, aggregation and classification. https://arxiv.org/pdf/1606.01933.pdf Args: embedding_dim: size of the feature vectors (768 for BERT-base). num_classes: number of clas...
62598f31eab8aa0e5d30ada7
class moving_average_ss(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def ...
output is the moving sum of the last N samples, scaled by the scale factor Constructor Specific Documentation: Create a moving average block. Args: length : Number of samples to use in the average. scale : scale factor for the result. max_iter : limits how long we go without flushing the accumulator This...
62598f314c34283577619302
class CollegeDbMiniForm(messages.Message): <NEW_LINE> <INDENT> name = messages.StringField(1, required=True) <NEW_LINE> abbreviation = messages.StringField(2, required=True) <NEW_LINE> location = messages.StringField(3, required=True) <NEW_LINE> student_sup = messages.StringField(4, required=True) <NEW_LINE> alumni_sup...
JoinRequestMiniForm -- What's shown on the UI for an join request
62598f31ad47b63b2c5a683e
class TestSolution(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 testSolution(self): <NEW_LINE> <INDENT> model = iengage_client.models.solution.Solution()
Solution unit test stubs
62598f32627d3e7fe0e05eb9
class Repository(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=150) <NEW_LINE> description = models.TextField(blank=True, null=True) <NEW_LINE> default_branch = models.ForeignKey('branches.Branch', related_name='default', null=True)
Repository model
62598f32091ae35668703c3e
class BuildingForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Building <NEW_LINE> fields = ( 'name', 'document_type', 'document_number', 'logo', 'city', 'address', 'email', 'mobile_phone', 'phone_number', 'initial_period', ) <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NE...
Building or condo form.
62598f32c4546d3d9def6a7f
class TorchPolicyGraph(PolicyGraph): <NEW_LINE> <INDENT> def __init__(self, observation_space, action_space, model, loss, loss_inputs): <NEW_LINE> <INDENT> self.observation_space = observation_space <NEW_LINE> self.action_space = action_space <NEW_LINE> self.lock = Lock() <NEW_LINE> self._model = model <NEW_LINE> self....
Template for a PyTorch policy and loss to use with RLlib. This is similar to TFPolicyGraph, but for PyTorch. Attributes: observation_space (gym.Space): observation space of the policy. action_space (gym.Space): action space of the policy. lock (Lock): Lock that must be held around PyTorch ops on this grap...
62598f32ad47b63b2c5a6842
class Connection(object): <NEW_LINE> <INDENT> def __init__(self, uri="127.0.0.1", port=25): <NEW_LINE> <INDENT> self.connection = pmta.PmtaConnAlloc() <NEW_LINE> if not pmta.PmtaConnConnectRemote(self.connection, uri, port): <NEW_LINE> <INDENT> raise PmtaConnectionError(self.connection) <NEW_LINE> <DEDENT> <DEDENT> def...
"Class that manages the connection to the PowerMTA server. uri: server to connect to '127.0.0.1', or '1.2.3.4' defaults to '127.0.0.1' port: port to connect to defaults to 25
62598f32627d3e7fe0e05ebb
class AmusementTaxForecast(DefaultForecaster, RevenueForecast): <NEW_LINE> <INDENT> ASSUMPTIONS = { "moderate": [0.9, 0.7, 0.5, 0.3, 0.1, 0.0], "severe": [0.9, 0.8, 0.7, 0.5, 0.3, 0.1], } <NEW_LINE> def __init__(self, fresh=False): <NEW_LINE> <INDENT> super().__init__( tax_name="amusement", forecast_start=FORECAST_STAR...
Amusement tax revenue forecast.
62598f324c3428357761930a
class Cat(object): <NEW_LINE> <INDENT> def meow(self): <NEW_LINE> <INDENT> print("meow")
A standard example.
62598f32091ae35668703c42
class _read_line_and_store_lightning_class(_read_line_and_store_event_class): <NEW_LINE> <INDENT> def store_line(self, line): <NEW_LINE> <INDENT> if line[0][0] == '#': <NEW_LINE> <INDENT> return 0. <NEW_LINE> <DEDENT> (date, time_str, timestamp, nanoseconds, latitude, longitude, current) = line[:7] <NEW_LINE> row = sel...
Store lines of lightning data from the ESD
62598f323cc13d1c6d4647a7
class EmbassyCancellation(Consequence, Embassy): <NEW_LINE> <INDENT> def __init__(self, text, params): <NEW_LINE> <INDENT> match = re.match( 'Embassy cancelled between %%(.+?)%% and %%(.+?)%%.', text ) <NEW_LINE> if not match: <NEW_LINE> <INDENT> raise _ParseError <NEW_LINE> <DEDENT> self.regions = frozenset(( aionatio...
Embassy being cancelled between two regions.
62598f3226238365f5fabbc6
class AggregateExecutor(JobExecutor): <NEW_LINE> <INDENT> def __init__(self, unmasking_results: List[UnmaskingResult]): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._unmasking_results = unmasking_results <NEW_LINE> <DEDENT> async def run(self, conf: ConfigLoader, output_dir: str = None): <NEW_LINE> <INDENT> s...
Executor for aggregating existing unmasking run outputs. Events published by this class: * `onJobFinished`: [type JobFinishedEvent] fired when the job has finished
62598f324c3428357761930d
class UARTChannel(object): <NEW_LINE> <INDENT> _parser = Embedded(Struct("UARTChannel", LFloat32('tx_throughput'), LFloat32('rx_throughput'), ULInt16('crc_error_count'), ULInt16('io_error_count'), ULInt8('tx_buffer_level'), ULInt8('rx_buffer_level'),)) <NEW_LINE> __slots__ = [ 'tx_throughput', 'rx_throughput', 'crc_err...
UARTChannel. Throughput, utilization, and error counts on the RX/TX buffers of this UART channel. The reported percentage values must be normalized. Parameters ---------- tx_throughput : float UART transmit throughput rx_throughput : float UART receive throughput crc_error_count : int UAR...
62598f32c4546d3d9def6a83
class ProductionConfig(BaseConfig): <NEW_LINE> <INDENT> DEBUG = False <NEW_LINE> PROD_LOG_MAIL = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL")
Production configuration.
62598f32eab8aa0e5d30adb5
class CDogecoinSecret(dogecoin.base58.CBase58Data, CKey): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_secret_bytes(cls, secret, compressed=True): <NEW_LINE> <INDENT> self = cls.from_bytes(secret + (b'\x01' if compressed else b''), dogecoin.params.BASE58_PREFIXES['SECRET_KEY']) <NEW_LINE> self.__init__(None) <N...
A base58-encoded secret key
62598f3226238365f5fabbca
class OneOfType(object, metaclass=Validator): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> if args: <NEW_LINE> <INDENT> self._arg_types = args <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise ValueError('OneOfType argument type list is empty.') <NEW_LINE> <DEDENT> <DEDENT> @property <NEW_LINE> ...
Checker if arg is one of type in list. Arguments: args: a list of argument types, [int, str, bool, dict, ... ]
62598f324c34283577619312
class TestNodeCLI(): <NEW_LINE> <INDENT> def __init__(self, binary, datadir): <NEW_LINE> <INDENT> self.args = [] <NEW_LINE> self.binary = binary <NEW_LINE> self.datadir = datadir <NEW_LINE> self.input = None <NEW_LINE> <DEDENT> def __call__(self, *args, input=None): <NEW_LINE> <INDENT> self.args = [str(arg) for arg in ...
Interface to vccoin-cli for an individual node
62598f32187af65679d29424
class Line3D(LinearEntity3D, Line): <NEW_LINE> <INDENT> def __new__(cls, p1, pt=None, direction_ratio=(), **kwargs): <NEW_LINE> <INDENT> if isinstance(p1, LinearEntity3D): <NEW_LINE> <INDENT> if pt is not None: <NEW_LINE> <INDENT> raise ValueError('if p1 is a LinearEntity, pt must be None.') <NEW_LINE> <DEDENT> p1, pt ...
An infinite 3D line in space. A line is declared with two distinct points or a point and direction_ratio as defined using keyword `direction_ratio`. Parameters ========== p1 : Point3D pt : Point3D direction_ratio : list See Also ======== sympy.geometry.point.Point3D sympy.geometry.line.Line sympy.geometry.line.Lin...
62598f323cc13d1c6d4647af
class TextEncoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(TextEncoder, self).__init__() <NEW_LINE> self.hc_blocks = nn.ModuleList([norm(ll.Conv1d(args.Ce, args.Cx*2, 1, padding='same', activation_fn=torch.relu))]) <NEW_LINE> self.hc_blocks.extend([norm(ll.Conv1d(args.Cx*2, args.Cx*...
Text Encoder T: (N, Cx, Tx) Text embedding (variable length) Returns: K: (N, Cx, Tx) Text Encoding for Key V: (N, Cx, Tx) Text Encoding for Value
62598f32627d3e7fe0e05ec7
class RoleDeleteForm(FlaskForm): <NEW_LINE> <INDENT> new_role = SelectField(_l('New Role:'), validators=[DataRequired()], coerce=int, description=_l('Choose a new role for users to whom this role is assigned.')) <NEW_LINE> submit = SubmitField(_l('Delete')) <NEW_LINE> def __init__(self, role: Role, *args: Any, **kwargs...
A form to delete a role (and choose a new one for users assigned to the deleted role).
62598f324c34283577619314
class SlidingWindowSplit(TimeSeriesSplit): <NEW_LINE> <INDENT> date_or_str = Union[datetime, str] <NEW_LINE> def __init__( self, source: Union[pd.Series, str], train_from: date_or_str, train_to: date_or_str, test_from: date_or_str, test_to: date_or_str, n_windows: int, stride: timedelta, ): <NEW_LINE> <INDENT> super()....
Sliding window time series cross-validator Time Series cross-validator which provides train/test indices based on the sliding window to split variable interval time series data. Splitting for each fold will be as follows: .. code-block:: none Folds Training data Testing data 1 ...
62598f323cc13d1c6d4647b1
@collection( name='workflows', unique_key='accession', properties={ 'title': 'Workflows', 'description': 'Listing of 4DN analysis workflows', }) <NEW_LINE> class Workflow(Item): <NEW_LINE> <INDENT> item_type = 'workflow' <NEW_LINE> schema = workflow_schema <NEW_LINE> embedded_list = _build_workflows_embedded_list() <NE...
The Workflow class that describes a workflow and steps in it.
62598f324c34283577619316
class ServerModel(BaseModel): <NEW_LINE> <INDENT> ip = ForeignKeyField(IPModel) <NEW_LINE> port = IntegerField()
Database model for sourcemod server
62598f32187af65679d29427
class TestSimpleDict: <NEW_LINE> <INDENT> def test_inited_values(self, transcended_dict): <NEW_LINE> <INDENT> assert "simple" in transcended_dict <NEW_LINE> assert transcended_dict["simple"] is True <NEW_LINE> <DEDENT> def test_can_add_value(self, transcended_dict): <NEW_LINE> <INDENT> transcended_dict["bob"] = 2 <NEW_...
Test the basic attributes of Transcended dictionary.
62598f323cc13d1c6d4647b7
class InputStream(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.real_height = 0 <NEW_LINE> self.real_width = 0 <NEW_LINE> self.stopped = False <NEW_LINE> self.frame = None <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.stopped = False <NEW_LINE> return self <NEW_LINE> <DEDENT>...
input stream base class
62598f32091ae35668703c52
class _Stat(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.supported = 0 <NEW_LINE> self.unsupported = 0 <NEW_LINE> <DEDENT> @property <NEW_LINE> def total(self): <NEW_LINE> <INDENT> total = self.supported + self.unsupported <NEW_LINE> return total <NEW_LINE> <DEDENT> @property <NEW_LINE> def...
For gathering simple statistic of (un)supported functions
62598f3226238365f5fabbd4