code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class ChoicesIntEnum(IntEnum): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def choices(cls): <NEW_LINE> <INDENT> return [(item.value, _(ChoicesIntEnum.capitalize(item))) for item in cls] <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def capitalize(cls, item): <NEW_LINE> <INDENT> name = item.name.replace("_", " ") <NEW_LI...
Extends IntEum with django choices generation capability
6259906891f36d47f2231a60
class UserTest(BaseTest): <NEW_LINE> <INDENT> def test_crud(self): <NEW_LINE> <INDENT> with self.app_context(): <NEW_LINE> <INDENT> user = UserModel('testuser@gmail.com','testuser','abcd') <NEW_LINE> self.assertIsNone(UserModel.find_by_username('testuser'), "Found an user with name 'test' before save_to_db") <NEW_LINE>...
Access the app context in order to create mock-up db
6259906845492302aabfdc7f
class make_solver: <NEW_LINE> <INDENT> def __init__(self, A, coarsening=pyamgcl_ext.coarsening.smoothed_aggregation, relaxation=pyamgcl_ext.relaxation.spai0, solver=pyamgcl_ext.solver_type.bicgstabl, prm={} ): <NEW_LINE> <INDENT> Acsr = A.tocsr() <NEW_LINE> self.S = pyamgcl_ext.make_solver( coarsening, relaxation, solv...
Iterative solver preconditioned by algebraic multigrid The class builds algebraic multigrid hierarchy for the given matrix and uses the hierarchy as a preconditioner for the specified iterative solver.
625990683539df3088ecda42
class KeyLogger(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.log_controller = Log() <NEW_LINE> self.log_controller.writeMessage("Keylogger Constructor called\n") <NEW_LINE> self.should_keylogger_stop = False <NEW_LINE> self.send_keylog_flag = True <NEW_LINE> create_file = open(Constants.KEY...
Contains methods for starting and using keylogger
6259906876e4537e8c3f0d25
class TestLine(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 testLine(self): <NEW_LINE> <INDENT> pass
Line unit test stubs
62599068a8370b77170f1b68
class TestMister(): <NEW_LINE> <INDENT> def test_radius(self): <NEW_LINE> <INDENT> from mister import Mister <NEW_LINE> mr = Mister() <NEW_LINE> out = mr.radius([0, 0.1, 0.5]) <NEW_LINE> assert len(out) == 1 <NEW_LINE> assert isinstance(out[0], float) <NEW_LINE> <DEDENT> def test_radius2(self): <NEW_LINE> <INDENT> from...
Test Mister functions.
625990688e7ae83300eea830
class recorded(object): <NEW_LINE> <INDENT> def __init__(self, func): <NEW_LINE> <INDENT> self.func = func <NEW_LINE> <DEDENT> def __get__(self, instance, owner): <NEW_LINE> <INDENT> func = self.func <NEW_LINE> if instance is not None: <NEW_LINE> <INDENT> func = RecordedMethod(self.func, instance) <NEW_LINE> <DEDENT> r...
>>> class C(RecordableMethods): ... @recorded ... def plus1(self, n): ... return n + 1 >>> >>> c = C() >>> c.plus1(5) 6 >>> c.plus1.seed(5)(7) >>> c.plus1(5) 7 >>> c.plus1(4) 5 >>> c.methods_called() ['plus1', 'plus1', 'plus1'] >>> c.methods_called(with_args=True) [('plus1', (5,), {}), ('plus1', (5,), {...
62599068009cb60464d02cdc
class ThreeLayerConvNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=(3, 32, 32), num_filters=32, filter_size=7, hidden_dim=100, num_classes=10, weight_scale=1e-3, reg=0.0, dtype=np.float32): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> self.dtype = dtype <NEW_LINE> C, H, W = i...
A three-layer convolutional network with the following architecture: conv - relu - 2x2 max pool - affine - relu - affine - softmax The network operates on minibatches of data that have shape (N, C, H, W) consisting of N images, each with height H and width W and with C input channels.
62599068baa26c4b54d50a48
class PaginationError(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> self.message = message
Exception raised when an error occurs during pagination.
625990687d847024c075db7c
class DatatableMetaclass(type): <NEW_LINE> <INDENT> def __new__(cls, name, bases, attrs): <NEW_LINE> <INDENT> declared_columns = get_declared_columns(bases, attrs, with_base_columns=False) <NEW_LINE> new_class = super(DatatableMetaclass, cls).__new__(cls, name, bases, attrs) <NEW_LINE> opts = new_class._meta = new_clas...
Each declared Datatable object inspects its declared "fields" in order to facilitate an inheritance system resembling the django.forms system. Except for our custom Meta options that offer field options ('labels', 'processors', etc), this code is essentially a clone of the django.forms strategy.
625990680c0af96317c57930
class EndingPoint(Node): <NEW_LINE> <INDENT> def __init__(self,env,name, uid=None): <NEW_LINE> <INDENT> super().__init__(env=env,name=name, uid=uid) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return f"{self.name}" <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return f"{self.name}" <NEW_LIN...
EndingPoint represents a single collection point where entities finish their trip through the system.
625990687d43ff2487427fe2
@attr(shard=2) <NEW_LINE> @ddt.ddt <NEW_LINE> class IndexQueryTestCase(ModuleStoreTestCase): <NEW_LINE> <INDENT> CREATE_USER = False <NEW_LINE> NUM_PROBLEMS = 20 <NEW_LINE> @ddt.data( (ModuleStoreEnum.Type.mongo, 8), (ModuleStoreEnum.Type.split, 4), ) <NEW_LINE> @ddt.unpack <NEW_LINE> def test_index_query_counts(self, ...
Tests for query count.
625990682ae34c7f260ac88b
class OUNoise: <NEW_LINE> <INDENT> def __init__(self, size, seed, mu=0., theta=0.15, sigma=0.2): <NEW_LINE> <INDENT> self.mu = mu * torch.ones(size, device=device) <NEW_LINE> self.theta = theta <NEW_LINE> self.sigma = sigma <NEW_LINE> self.seed = torch.manual_seed(seed) <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def r...
Ornstein-Uhlenbeck process.
6259906892d797404e38972f
class TestSequence(unittest.TestCase): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> test_string = ("{DISK_BLADE,2}{RACK,36}") <NEW_LINE> bigbuf=oh_big_textbuffer() <NEW_LINE> ep=SaHpiEntityPathT() <NEW_LINE> err = oh_encode_entitypath(test_string, ep) <NEW_LINE> self.assertEqual (err!=None,True) <NEW_LINE...
main: epathstr -> epath test Test if an entity path string is converted properly into an entity path.
625990682c8b7c6e89bd4f8a
class PCAFactorizer(): <NEW_LINE> <INDENT> def __init__(self, num_components): <NEW_LINE> <INDENT> self.model = PCA(n_components = num_components) <NEW_LINE> self.num_components = num_components <NEW_LINE> <DEDENT> def fit(self, X): <NEW_LINE> <INDENT> X = X / np.std(X, axis=1).reshape((-1, 1)) <NEW_LINE> self.model.fi...
Factorizer using principal component analysis. Reduces dimension of input by projecting onto first num_components principal components. Note: normalizes input before fitting. Attributes: model (PCA): sklearn PCA model num_components (int): Number of principal components to use.
62599068f548e778e596cd2f
class User(SQLAlchemyObjectType): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = UserModel
Autogenerated return type of a user
62599068aad79263cf42ff5c
class CmdlineParser(ArgumentParser): <NEW_LINE> <INDENT> def __init__(self, desc=None, prog=sys.argv[0], usage=None, add_help=True, argument_default=None, prefix_chars="-", toplevel=False): <NEW_LINE> <INDENT> super(CmdlineParser, self).__init__(description=desc, prog=prog, usage=usage, add_help=add_help, argument_defa...
Command line argument parser extended with project-specific options.
62599068a219f33f346c7fac
class Refp(ModeledCommandParameter, PseudoRegion): <NEW_LINE> <INDENT> begtag = 'REFP' <NEW_LINE> endtag = '' <NEW_LINE> models = { 'model_descriptor': {'desc': 'Phase model', 'name': 'phmodref', 'num_parms': 5, 'for001_format': {'line_splits': [5]}}, '0_crossing': {'desc': '0-crossing phase iterative procedure', 'doc'...
Reference particle
625990683d592f4c4edbc683
class DS18B20(BaseThermometers): <NEW_LINE> <INDENT> def __init__(self, **config): <NEW_LINE> <INDENT> super().__init__(config) <NEW_LINE> self._vendor = "Dallas" <NEW_LINE> self._model = "DS18B20" <NEW_LINE> <DEDENT> def get_temp(self): <NEW_LINE> <INDENT> return self._controller.read_temperature(self._config["dev"], ...
Digital thermometer by Dallas.
625990684a966d76dd5f0699
class ApplicationSecurityGroupListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[ApplicationSecurityGroup]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *,...
A list of application security groups. Variables are only populated by the server, and will be ignored when sending a request. :param value: A list of application security groups. :type value: list[~azure.mgmt.network.v2019_09_01.models.ApplicationSecurityGroup] :ivar next_link: The URL to get the next set of results...
62599068009cb60464d02cdd
class Producer(threading.Thread): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> global GOODS <NEW_LINE> while True: <NEW_LINE> <INDENT> time.sleep(3) <NEW_LINE> condition.acquire() <NEW_LINE> while GOODS >= 10: <NEW_LINE> <INDENT> condition.notify_all() <NEW_LINE> condition.wait() <NEW_LINE> <DEDENT> GOODS += ...
生产者,当仓库容量等于50时,处于等待状态
6259906832920d7e50bc77ea
class AttentionReverse(Attention3): <NEW_LINE> <INDENT> def __init__(self, name, tokenizer, optimizer): <NEW_LINE> <INDENT> Attention3.__init__(self, name, tokenizer, optimizer, reverse_order=True) <NEW_LINE> <DEDENT> def decode_sequence(self, input_seq): <NEW_LINE> <INDENT> reversed_seq = numpy.flip(input_seq, 1) <NEW...
Same as Attention3 except the source sequence is reversed during training, and the input sentence tokens needs to be reversed also at runtime. This has been shown to ease training and give significantly higher accuracy (Sutskever, 2014)
62599068462c4b4f79dbd1ab
class RandomAgentMiddleware(object): <NEW_LINE> <INDENT> def __init__(self,crawler): <NEW_LINE> <INDENT> super(RandomAgentMiddleware,self).__init__() <NEW_LINE> self.useAgent = UserAgent() <NEW_LINE> self.useAgent_type = crawler.settings.get("RANDOM_UA_TYPE","random") <NEW_LINE> <DEDENT> def process_request(self, reque...
生成随机头
62599068baa26c4b54d50a4a
class Game(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._playfield = Playfield() <NEW_LINE> self.rows = self._playfield.rows <NEW_LINE> self.columns = self._playfield.columns <NEW_LINE> <DEDENT> def hard_drop(self): <NEW_LINE> <INDENT> logging.debug("Game: Did hard drop") <NEW_LINE> <DEDENT> def ...
The class coordinates all actions in Clontris.
625990689c8ee82313040d5a
class ExtraMinionDataInPillarTestCase(TestCase, LoaderModuleMockMixin): <NEW_LINE> <INDENT> def setup_loader_modules(self): <NEW_LINE> <INDENT> return {extra_minion_data_in_pillar: {"__virtual__": True}} <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> self.pillar = MagicMock() <NEW_LINE> self.extra_minion_data...
Test cases for salt.pillar.extra_minion_data_in_pillar
625990688da39b475be0498f
class PrivateTimeFramedManager(TimeFramedManager): <NEW_LINE> <INDENT> def get_queryset(self, subscription): <NEW_LINE> <INDENT> queryset = super(PrivateTimeFramedManager, self).get_queryset() <NEW_LINE> return queryset.filter(subscription=subscription)
Model manager used by PrivateTimeFramedMixin models
62599068796e427e5384ff1b
class Wallpaper(object): <NEW_LINE> <INDENT> def __init__(self, width=1600, height=900, filename='wallpaper.png'): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> self.filename = filename <NEW_LINE> <DEDENT> def paint_pattern(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def pain...
Base class for all wallpapers. Creates a (very) simple single-color wallpaper. Parameters ---------- width: int height: int filename: str Attributes ---------- width: int height: int filename: str image: PIL Image The image which holds the wallpaper.
62599068442bda511e95d92b
class Gist(sgqlc.types.Type, Node, Starrable, UniformResourceLocatable): <NEW_LINE> <INDENT> __schema__ = github_schema <NEW_LINE> __field_names__ = ('comments', 'created_at', 'description', 'files', 'forks', 'is_fork', 'is_public', 'name', 'owner', 'pushed_at', 'updated_at') <NEW_LINE> comments = sgqlc.types.Field(sgq...
A Gist.
625990684f88993c371f10f1
class ModelTests(StockManagementAPITestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpTestData(cls): <NEW_LINE> <INDENT> cls.test_user = UserFactory(username="test_user_1") <NEW_LINE> cls.currency = CurrencyFactory(code="USD", name="United States Dollar") <NEW_LINE> cls.measurement_type = MeasurementTypeFa...
Creates mock models and checks if they are created successfully.
62599068fff4ab517ebcefc0
class _ThreadedBulkSimulation(): <NEW_LINE> <INDENT> def __init__(self, pool: AbstractPool) -> None: <NEW_LINE> <INDENT> self.pool = pool.clone() <NEW_LINE> self.simulators = set() <NEW_LINE> self.per_thread = 3000 <NEW_LINE> self.processes = [] <NEW_LINE> self.is_constant_pool = isinstance(self.pool, ConstantPool) <NE...
Same as BulkSimulation, but uses multiprocessing to reeally pump up some speed into it, much faster on higher counts Probably wont use it in any bot command, as its super heavy too
625990688e7ae83300eea833
class QueryBackSourceRulesRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(QueryBackSourceRulesRequest, self).__init__( '/domain/{domain}/queryBackSourceRules', 'GET', header, version) <NEW_LINE> self.parameters = parameters
查询回源改写批量配置
62599068f7d966606f74948d
class NewFiatBankDeposit(object): <NEW_LINE> <INDENT> def __init__(self, amount=None, message=None, bank=None, dep_type=None): <NEW_LINE> <INDENT> self.swagger_types = { 'amount': 'int', 'message': 'str', 'bank': 'str', 'dep_type': 'str' } <NEW_LINE> self.attribute_map = { 'amount': 'amount', 'message': 'message', 'ban...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
625990684e4d562566373bac
class StorageFlexUtilHealth(ManagedObject): <NEW_LINE> <INDENT> consts = StorageFlexUtilHealthConsts() <NEW_LINE> naming_props = set([]) <NEW_LINE> mo_meta = { "classic": MoMeta("StorageFlexUtilHealth", "storageFlexUtilHealth", "health", VersionMeta.Version304a, "OutputOnly", 0xf, [], ["admin", "read-only", "user"], ['...
This is StorageFlexUtilHealth class.
62599068d486a94d0ba2d764
class Twitter: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> auth = tweepy.OAuthHandler(os.environ["API_KEY"], os.environ["API_SECRET"]) <NEW_LINE> auth.set_access_token(os.environ["ACCESS_TOKEN"], os.environ["ACCESS_TOKEN_SECRET"]) <NEW_LINE> self.api = tweepy.API(auth, wait_on_rate_limit=True, w...
Wrapper for the Twitter API
62599068ac7a0e7691f73c8b
class GaussianPrior(object): <NEW_LINE> <INDENT> def __init__(self, m, sigma): <NEW_LINE> <INDENT> self.m = m <NEW_LINE> self.sigma = sigma <NEW_LINE> <DEDENT> def __call__(self, cube): <NEW_LINE> <INDENT> return stats.norm.ppf(cube,scale=self.sigma,loc=self.m) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT...
A gaussian prior Parameters ---------- m: ~float mean of the distribution sigma: ~float sigma of the distribution
625990687c178a314d78e7be
class EventDestination(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "CloudWatchDestination": (CloudWatchDestination, False), "Enabled": (boolean, False), "KinesisFirehoseDestination": (KinesisFirehoseDestination, False), "MatchingEventTypes": ([str], True), "Name": (str, False), }
`EventDestination <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ses-configurationseteventdestination-eventdestination.html>`__
625990682ae34c7f260ac88d
class SASqc: <NEW_LINE> <INDENT> def __init__(self, session, *args, **kwargs): <NEW_LINE> <INDENT> self.sasproduct = "qc" <NEW_LINE> self.logger = logging.getLogger(__name__) <NEW_LINE> self.logger.setLevel(logging.WARN) <NEW_LINE> self.sas = session <NEW_LINE> logging.debug("Initialization of SAS Macro: " + self.sas.s...
This class is for SAS/QC procedures to be called as python3 objects and use SAS as the computational engine This class and all the useful work in this package require a licensed version of SAS. To add a new procedure do the following: #. Create a new method for the procedure #. Create the set of required statements...
6259906867a9b606de547674
class BinOr: <NEW_LINE> <INDENT> a_ = True <NEW_LINE> b_ = True <NEW_LINE> def __init__(self, a, b): <NEW_LINE> <INDENT> self.a_ = a <NEW_LINE> self.b_ = b <NEW_LINE> <DEDENT> def evaluate(self): <NEW_LINE> <INDENT> return self.a_.evaluate() or self.b_.evaluate()
Binární operace OR. Vrací TRUE, pokud alespoň jeden vstup je TRUE.
62599068e1aae11d1e7cf3df
class DictTableModel(QtCore.QAbstractTableModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.lock = Mutex() <NEW_LINE> self.headers = ['Name'] <NEW_LINE> self.storage = OrderedDict() <NEW_LINE> <DEDENT> def getKeyByNumber(self, n): <NEW_LINE> <INDENT> i = 0 <NEW_LINE>...
Qt model storing a tabel in dictionaries
625990687d847024c075db7f
class ServerThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, dir, file): <NEW_LINE> <INDENT> self.dir = dir <NEW_LINE> self.file = file <NEW_LINE> super().__init__(name=f'server-{file}') <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> print(f'Running server {self.file} in {self.dir}') <NEW_LINE> ...
A thread to run a server. This is a simple thread implementation, which will run a server start file in another thread, so it doesn't block the current thread.
625990687047854f46340b5a
class WebUiBaseMind(object): <NEW_LINE> <INDENT> def __init__(self, request, cred): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> self.credentials = cred <NEW_LINE> <DEDENT> def isLocal(self): <NEW_LINE> <INDENT> if self.request.getClientIP() == '127.0.0.1': <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> e...
Base class for the 'mind' object, representing authenticated user.
62599068dd821e528d6da554
class TokenConsumerBackend(object): <NEW_LINE> <INDENT> def authenticate(self, username=None, password=None): <NEW_LINE> <INDENT> endpoints = token_settings.AUTH_ENDPOINTS <NEW_LINE> base = token_settings.API_BASE_URL <NEW_LINE> response = requests.post(base+endpoints['LOGIN'], data={ 'username': username, 'password': ...
User an external token-based login system for django authentication. Will maintain login locally and with remote server, and decorate the api calls with the appropriate header
625990684e4d562566373bad
class Arg: <NEW_LINE> <INDENT> def __init__(self, name, atype, modifier, size=None, comment=None): <NEW_LINE> <INDENT> self.__name = name <NEW_LINE> self.__type = atype <NEW_LINE> self.__modifier = modifier <NEW_LINE> self.__size = size <NEW_LINE> self.__comment = comment <NEW_LINE> <DEDENT> def get_name(self): <NEW_LI...
Data container for all the port name, type, etc. associated with component.
62599068aad79263cf42ff5f
class MyUserAgentMiddleware(UserAgentMiddleware): <NEW_LINE> <INDENT> def __init__(self, user_agent): <NEW_LINE> <INDENT> self.user_agent = user_agent <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_crawler(cls, crawler): <NEW_LINE> <INDENT> return cls( user_agent=crawler.settings.get('MY_USER_AGENT') ) <NEW_LINE>...
设置 User-Agent
625990683539df3088ecda45
class MockRecord: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.userid = None <NEW_LINE> self.remoteip = None
Mocks a logging construct to receive data to be interpolated.
6259906801c39578d7f14308
class UnknownMsgError(RuntimeError): <NEW_LINE> <INDENT> pass
Exception raised in case of unknown Message.
625990684f88993c371f10f2
class _Reader(io.RawIOBase): <NEW_LINE> <INDENT> def __init__(self, process, stream, path, diff, showProgress): <NEW_LINE> <INDENT> self.process = process <NEW_LINE> self.stream = stream <NEW_LINE> self.path = path <NEW_LINE> self.diff = diff <NEW_LINE> self.bytesRead = None <NEW_LINE> self.progress = DisplayProgress()...
Context Manager to read a snapshot.
625990684428ac0f6e659cd9
class Configuration(object): <NEW_LINE> <INDENT> def __init__(self, sections, defs): <NEW_LINE> <INDENT> self.sections = sections <NEW_LINE> self.defs = defs <NEW_LINE> <DEDENT> def ClassifyTests(self, cases, env): <NEW_LINE> <INDENT> sections = [ s for s in self.sections if s.condition.Evaluate(env, self.defs) ] <NEW_...
The parsed contents of a configuration file
6259906876e4537e8c3f0d2a
class ServerKeyShareExtension(TLSExtension): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ServerKeyShareExtension, self).__init__(extType=ExtensionType. key_share, server=True) <NEW_LINE> self.server_share = None <NEW_LINE> <DEDENT> def create(self, server_share): <NEW_LINE> <INDENT> self.server_sh...
Class for handling the Server Hello variant of the Key Share extension. Extension for sending the key shares to client
62599068adb09d7d5dc0bd11
class ChatRoom(object): <NEW_LINE> <INDENT> def display_message(self, user, message): <NEW_LINE> <INDENT> print("[{} says]: {}".format(user, message))
Mediator class
6259906899cbb53fe683268c
class CarlaAdAgent(object): <NEW_LINE> <INDENT> def __init__(self, role_name, target_speed, avoid_risk): <NEW_LINE> <INDENT> self._route_assigned = False <NEW_LINE> self._global_plan = None <NEW_LINE> self._agent = None <NEW_LINE> self._target_speed = target_speed <NEW_LINE> rospy.on_shutdown(self.on_shutdown) <NEW_LIN...
A basic AD agent using CARLA waypoints
6259906838b623060ffaa425
class OnlyOneOSRepositoryAllowed(Exception): <NEW_LINE> <INDENT> pass
Raised when trying to more than one OS repository to a collection
62599068379a373c97d9a7c5
class Uploader(object): <NEW_LINE> <INDENT> TEST_ITEM = "Q4115189" <NEW_LINE> def add_labels(self, target_item, labels): <NEW_LINE> <INDENT> labels_for_upload = {} <NEW_LINE> for label in labels: <NEW_LINE> <INDENT> label_content = label['value'] <NEW_LINE> language = label['language'] <NEW_LINE> labels_for_upload[lang...
Upload a WikidataItem.
62599068f7d966606f74948e
class DIYStage(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.archive_file = None <NEW_LINE> self.path = path <NEW_LINE> self.source_path = path <NEW_LINE> self.created = True <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self, exc_ty...
Simple class that allows any directory to be a spack stage.
625990681b99ca4002290109
class SlideBar(BaseWidget): <NEW_LINE> <INDENT> def __init__(self, func, pos, size, min_=0, max_=100, step=1, color=BLUE, *, bg_color=LIGHT_GREY, show_val=True, interval=1, anchor=CENTER, inital=None, rounding=2, v_type=int): <NEW_LINE> <INDENT> super().__init__(pos, size, anchor) <NEW_LINE> self.color = color <NEW_LIN...
A slide bar to bick a value in a range. Don't forget to call focus() and unfocus() when the user click on the SlideBar
625990687c178a314d78e7bf
class AddCommentsView(View): <NEW_LINE> <INDENT> def post(self,request): <NEW_LINE> <INDENT> if not request.user.is_authenticated: <NEW_LINE> <INDENT> return HttpResponse('{"status":"fail","msg":"用户未登录"}',content_type='application/json') <NEW_LINE> <DEDENT> course_id = request.POST.get("course_id",0) <NEW_LINE> comment...
添加用户评论
625990687b25080760ed88b5
class MealEntry(Model): <NEW_LINE> <INDENT> MEAL_OPTIONS = ['BREAKFAST', 'LUNCH', 'DINNER', 'SNACK', 'MINI_MEAL'] <NEW_LINE> created = ndb.DateTimeProperty(auto_now_add=True) <NEW_LINE> identity = ndb.StringProperty(choices=MEAL_OPTIONS)
Stores data about a meal
625990683617ad0b5ee078fa
class FirestoreProjectsDatabasesDocumentsWriteRequest(_messages.Message): <NEW_LINE> <INDENT> database = _messages.StringField(1, required=True) <NEW_LINE> writeRequest = _messages.MessageField('WriteRequest', 2)
A FirestoreProjectsDatabasesDocumentsWriteRequest object. Fields: database: The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. writeRequest: A WriteRequest resource to be passed as the request body.
62599068498bea3a75a591d5
class ExtractionMismatch(PyetcException): <NEW_LINE> <INDENT> def __init__(self, value, results=None): <NEW_LINE> <INDENT> PyetcException.__init__(self, value, results) <NEW_LINE> self.name = "Extracted instances are not the same"
Raised when Extracted instances that should match don't.
625990687047854f46340b5c
class FileUtils(object): <NEW_LINE> <INDENT> _instance = None <NEW_LINE> DRY_RUN = False <NEW_LINE> @classmethod <NEW_LINE> def Configure(cls, dry_run): <NEW_LINE> <INDENT> cls.DRY_RUN = dry_run <NEW_LINE> <DEDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if not cls._instance: <NEW_LINE> <INDENT> if cls.D...
Utilities for operations on files.
62599068a219f33f346c7fb0
class Committee(InheritanceGroup): <NEW_LINE> <INDENT> leader = models.ForeignKey( Member, on_delete=models.SET_NULL, verbose_name='leder', related_name='leader_of', blank=True, null=True, ) <NEW_LINE> leader_title = models.CharField('ledertittel', max_length=100, blank=True) <NEW_LINE> members = models.ManyToManyField...
Store a committee.
625990683d592f4c4edbc687
class Fingerprinter(object): <NEW_LINE> <INDENT> sample_methods = [ 'bridge_hand', 'coin_tosses', 'die_rolls', 'floats', 'shuffle', 'words' ] <NEW_LINE> def __init__(self, generator): <NEW_LINE> <INDENT> self.generator = generator <NEW_LINE> self.state = self.generator.getstate() <NEW_LINE> <DEDENT> def bridge_hand(sel...
Generator of "standard" samples, for use in reproducibility tests.
625990687b180e01f3e49c38
class Market(Enum): <NEW_LINE> <INDENT> ROFEX = 'ROFX' <NEW_LINE> MERVAL = 'MERV - XMEV'
Market ID associated to the instruments. ROFEX: ROFEX Exchange.
6259906832920d7e50bc77ef
class CorrectText: <NEW_LINE> <INDENT> def __init__( self, lower=True, remove_spaces=True, add_punctuation=True, captalize=True, remove_double_pontuation=True, sent_tokenizer=None): <NEW_LINE> <INDENT> self.config = { "lower" : lower, "remove_spaces": remove_spaces, "add_punctuation": add_punctuation, "captalize": capt...
CorrectText Args: lower (bool): Transform text to lowercase before capitalize the first letters of the sentences. Default: True remove_spaces (bool): Transform text removing double spaces. Default: True add_punctuation (bool): Transform text adding dot where is no punctuation. Default: True captalize (b...
625990684a966d76dd5f069d
class JobRetry(ProcrastinateException): <NEW_LINE> <INDENT> def __init__(self, scheduled_at: datetime.datetime): <NEW_LINE> <INDENT> self.scheduled_at = scheduled_at <NEW_LINE> super().__init__()
Job should be retried.
625990684428ac0f6e659cda
class CocoConfig(Config): <NEW_LINE> <INDENT> NAME = "coco" <NEW_LINE> IMAGES_PER_GPU = 2 <NEW_LINE> NUM_CLASSES = 1 + 80
用來訓練MS COCO圖像資料集的Configuration類別 Derives from the base Config class and overrides values specific to the COCO dataset. 繼承自基礎Config類別,為MS COCO圖像資料集來覆寫某些設定的值
625990687d847024c075db82
@gin.configurable(module='tf_agents', blacklist=['policy']) <NEW_LINE> class GreedyPolicy(tf_policy.Base): <NEW_LINE> <INDENT> def __init__(self, policy, name=None): <NEW_LINE> <INDENT> super(GreedyPolicy, self).__init__( policy.time_step_spec, policy.action_spec, policy.policy_state_spec, policy.info_spec, emit_log_pr...
Returns greedy samples of a given policy.
6259906801c39578d7f14309
class LazyComputation(object): <NEW_LINE> <INDENT> def __init__(self, reads, writes): <NEW_LINE> <INDENT> self.reads = set(flatten(reads)) <NEW_LINE> self.writes = set(flatten(writes)) <NEW_LINE> self._scheduled = False <NEW_LINE> <DEDENT> def enqueue(self): <NEW_LINE> <INDENT> global _trace <NEW_LINE> _trace.append(se...
Helper class holding computation to be carried later on.
6259906897e22403b383c6b6
class LaunchRequestHandler(AbstractRequestHandler): <NEW_LINE> <INDENT> def can_handle(self, handler_input): <NEW_LINE> <INDENT> return ask_utils.is_request_type('LaunchRequest')(handler_input) <NEW_LINE> <DEDENT> def handle(self, handler_input): <NEW_LINE> <INDENT> logger.info('HANDLER:LaunchRequest') <NEW_LINE> if ha...
Handler for Skill Launch.
625990684f6381625f19a07a
class EditMixin: <NEW_LINE> <INDENT> def assertItemFieldsModified(self, library_items, items, fields=[], allowed=['path']): <NEW_LINE> <INDENT> for lib_item, item in zip(library_items, items): <NEW_LINE> <INDENT> diff_fields = [field for field in lib_item._fields if lib_item[field] != item[field]] <NEW_LINE> self.asser...
Helper containing some common functionality used for the Edit tests.
62599068f7d966606f74948f
class WordNetSpacyPreprocessor: <NEW_LINE> <INDENT> def __init__(self, whitespace_tokenize_only: bool = False): <NEW_LINE> <INDENT> self.nlp = spacy.load('en_core_web_sm', disable=['tagger', 'parser', 'ner', 'textcat']) <NEW_LINE> if whitespace_tokenize_only: <NEW_LINE> <INDENT> self.nlp.tokenizer = WhitespaceTokenizer...
A "preprocessor" that really does POS tagging and lemmatization using spacy, plus some hand crafted rules. allennlp tokenizers take strings and return lists of Token classes. we'll run spacy first, then modify the POS / lemmas as needed, then return a new list of Token
62599068627d3e7fe0e08632
class ChannelReference(DataType): <NEW_LINE> <INDENT> def __init__(self, value, description="", units=""): <NEW_LINE> <INDENT> super(ChannelReference, self).__init__(value, description, units) <NEW_LINE> self._channel_name = value <NEW_LINE> <DEDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> return ...
Creates a new scalar channel reference. Creates a new reference to a scalar channel and specifies which channel assignment to map the new channel reference to. You can specify a channel by its alias or by the path to the channel in the system definition. For example: Targets/Controller/System Channels/Model Count.
625990687d43ff2487427fe5
class Instance(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.can_ip_forward = kwargs.get('can_ip_forward') <NEW_LINE> self.cpu_platform = kwargs.get('cpu_platform') <NEW_LINE> self.creation_timestamp = kwargs.get('creation_timestamp') <NEW_LINE> self.description = kwargs.get('descr...
Represents Instance resource.
62599068435de62698e9d5b3
class MyHTMLParser(HTMLParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.level = 0 <NEW_LINE> self.level_array = [] <NEW_LINE> self.triggered = False <NEW_LINE> self.news_results = [] <NEW_LINE> <DEDENT> def handle_starttag(self, tag, attrs): <NEW_LINE> <INDENT> if ...
Custom HTML parser
625990684e4d562566373bb0
class TestMediator(IMediator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.q = Queue() <NEW_LINE> self.q.put(Marker('ABBA - Money Money Money', 0.0)) <NEW_LINE> self.q.put(Marker('John Travolta - Summer Lovin', 2.01)) <NEW_LINE> self.q.put(Marker('Imperial Leisure - Ma...
Mediator to test AudacityLabels.
62599068ac7a0e7691f73c8f
class Meta: <NEW_LINE> <INDENT> ordering = ["-id"]
Metadata class.
625990681b99ca400229010a
class Classify: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.classification = None <NEW_LINE> self.confusion = None <NEW_LINE> self.data = None <NEW_LINE> self._log_loss = None <NEW_LINE> self.model = None <NEW_LINE> self.predict = None <NEW_LINE> self._score = None <NEW_LINE> self.x_train = None <N...
Base class for classification. :Attributes: - **classification** *str* classification report - **confusion** *DataFrame* confusion matrix - **data**: *DataFrame* data - **log_loss**: *float* cross-entropy loss - **model**: classification model type - **predict**: *ndarray* model predicted values - **x_train**: *DataF...
625990687c178a314d78e7c0
class NumericRange(RangeMixin, qcore.Query): <NEW_LINE> <INDENT> def __init__(self, fieldname, start, end, startexcl=False, endexcl=False, boost=1.0, constantscore=True): <NEW_LINE> <INDENT> self.fieldname = fieldname <NEW_LINE> self.start = start <NEW_LINE> self.end = end <NEW_LINE> self.startexcl = startexcl <NEW_LIN...
A range query for NUMERIC fields. Takes advantage of tiered indexing to speed up large ranges by matching at a high resolution at the edges of the range and a low resolution in the middle. >>> # Match numbers from 10 to 5925 in the "number" field. >>> nr = NumericRange("number", 10, 5925)
625990687b25080760ed88b6
class NumpyDataset(ArrayDataset): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> arrs = np.load(filename) <NEW_LINE> keys = None <NEW_LINE> data = [] <NEW_LINE> if filename.endswith('.npy'): <NEW_LINE> <INDENT> data.append(arrs) <NEW_LINE> <DEDENT> elif filename.endswith('.npz'): <NEW_LINE> <INDE...
A dataset wrapping over a Numpy binary (.npy, .npz) file. If the file is a .npy file, then a single numpy array is loaded. If the file is a .npz file with multiple arrays, then a list of numpy arrays are loaded, ordered by their key in the archive. Sparse matrix is not yet supported. Parameters ---------- filename :...
6259906892d797404e389732
class XVType(FrozenClass): <NEW_LINE> <INDENT> def __init__(self, binary=None): <NEW_LINE> <INDENT> if binary is not None: <NEW_LINE> <INDENT> self._binary_init(binary) <NEW_LINE> self._freeze = True <NEW_LINE> return <NEW_LINE> <DEDENT> self.X = 0 <NEW_LINE> self.Value = 0 <NEW_LINE> self._freeze = True <NEW_LINE> <DE...
:ivar X: :vartype X: Double :ivar Value: :vartype Value: Float
62599068a17c0f6771d5d77c
class TFETeams(TFEEndpoint): <NEW_LINE> <INDENT> def __init__(self, base_url, organization_name, headers): <NEW_LINE> <INDENT> super().__init__(base_url, organization_name, headers) <NEW_LINE> self._teams_base_url = f"{base_url}/teams" <NEW_LINE> self._org_base_url = f"{base_url}/organizations/{organization_name}/teams...
The Teams API is used to create, edit, and destroy teams as well as manage a team's organization-level permissions. The Team Membership API is used to add or remove users from a team. Use the Team Access API to associate a team with privileges on an individual workspace. https://www.terraform.io/docs/enterprise/api/te...
625990686e29344779b01dfb
class S3Parser(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def parse_rss(message): <NEW_LINE> <INDENT> db = current.db <NEW_LINE> s3db = current.s3db <NEW_LINE> table = s3db.msg_rss <NEW_LINE> record = db(table.message_id == message.message_id).select(table.title, table.from_address, table.body, table.created...
Message Parsing Template.
62599068460517430c432c2a
class MatRead(object): <NEW_LINE> <INDENT> def __init__(self, temp_dir=None): <NEW_LINE> <INDENT> self.temp_dir = temp_dir <NEW_LINE> self.out_file = create_file(self.temp_dir) <NEW_LINE> <DEDENT> def setup(self, nout, names=None): <NEW_LINE> <INDENT> argout_list = [] <NEW_LINE> for i in range(nout): <NEW_LINE> <INDENT...
Read Python values from a MAT file made by Octave. Strives to preserve both value and type in transit.
62599068e1aae11d1e7cf3e1
class ComparisonFrame(awx.Frame): <NEW_LINE> <INDENT> def __init__(self, parent, dirpaths=None, filepaths=None, wildcard=None, **kwargs): <NEW_LINE> <INDENT> super(ComparisonFrame, self).__init__(parent, -1, **kwargs) <NEW_LINE> main_sizer = wx.BoxSizer(wx.VERTICAL) <NEW_LINE> hsizer = wx.BoxSizer(wx.HORIZONTAL) <NEW_L...
This frame allows the user to select/deselect a list of files and to produce plots for all the files selected. Useful for convergence studies.
62599068097d151d1a2c2817
class NodePool(_messages.Message): <NEW_LINE> <INDENT> class StatusValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> STATUS_UNSPECIFIED = 0 <NEW_LINE> PROVISIONING = 1 <NEW_LINE> RUNNING = 2 <NEW_LINE> RUNNING_WITH_ERROR = 3 <NEW_LINE> RECONCILING = 4 <NEW_LINE> STOPPING = 5 <NEW_LINE> ERROR = 6 <NEW_LINE> <DEDENT> ...
NodePool contains the name and configuration for a cluster's node pool. Node pools are a set of nodes (i.e. VM's), with a common configuration and specification, under the control of the cluster master. They may have a set of Kubernetes labels applied to them, which may be used to reference them during pod scheduling. ...
625990687047854f46340b5e
class Poll(db.Model): <NEW_LINE> <INDENT> title = db.StringProperty() <NEW_LINE> n_problems = db.IntegerProperty() <NEW_LINE> problem_titles = db.StringListProperty() <NEW_LINE> votes = db.ListProperty(int) <NEW_LINE> created = db.DateTimeProperty(auto_now_add=True)
Models an individual Guestbook entry with author, content, and date.
62599068cc40096d6161adb5
class TestFrameGetStateConfirmation(unittest.TestCase): <NEW_LINE> <INDENT> EXAMPLE_FRAME = b"\x00\t\x00\r\x03\x80\x00\x00\x00\x00\x87" <NEW_LINE> def test_bytes(self): <NEW_LINE> <INDENT> frame = FrameGetStateConfirmation() <NEW_LINE> frame.gateway_state = GatewayState.BEACON_MODE_NOT_CONFIGURED <NEW_LINE> frame.gatew...
Test class FrameGetStateConfirmation.
62599068462c4b4f79dbd1b1
class PdfFile: <NEW_LINE> <INDENT> def __init__(self, filename: str, binary: bytes): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.filename = filename <NEW_LINE> self.binary = binary <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def from_file(file): <NEW_LINE> <INDENT> return PdfFile(filename=os.path.basename(f...
a wrapper for a PDF file. Consists of the file name and the binary contents of the file.
625990683539df3088ecda49
class BrowserHandler(BaseHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> loader = tornado.template.Loader('../server/templates') <NEW_LINE> try: <NEW_LINE> <INDENT> n = self.get_argument('n') <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> n = 3 <NEW_LINE> <DEDENT> db = self.settings['db'] <NEW_LINE> l...
HTML display of rf-immanence data browsed in the last day
6259906832920d7e50bc77f0
class DictionariesResource(Resource): <NEW_LINE> <INDENT> schema = { 'name': { 'type': 'string', 'required': True }, 'language_id': { 'type': 'string', 'required': True }, 'content': { 'type': 'dict', }, 'content_list': { 'type': 'string', }, DICTIONARY_FILE: { 'type': 'file', }, 'user': Resource.rel('users', nullable=...
Dictionaries schema
6259906832920d7e50bc77f1
@override_waffle_flag(COURSE_HOME_MICROFRONTEND, active=True) <NEW_LINE> @ddt.ddt <NEW_LINE> class ProgressTabTestViews(BaseCourseHomeTests): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.url = reverse('course-home-progress-tab', args=[self.course.id]) <NEW_LINE> <DEDENT> @ddt...
Tests for the Progress Tab API
62599068d6c5a102081e38d2
class Capturer(object): <NEW_LINE> <INDENT> def __init__(self, channel=0, cam_width=800, cam_height=600): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self._camera = cv2.VideoCapture(channel) <NEW_LINE> <DEDENT> except Exception as e: <NEW_LINE> <INDENT> sys.exit('Unable to use the webcam, error: %s' % str(e)) <NEW_LIN...
provides interface to the camera #TODO: automatize process of capturing by testing each channel
62599068cc0a2c111447c6a5
class JsonDict(dict): <NEW_LINE> <INDENT> def __getattr__(self, attr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self[attr] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> raise AttributeError(r"'JsonDict' object has no attribute '%s'" % attr) <NEW_LINE> <DEDENT> <DEDENT> def __setattr__(self, attr, ...
general json object that allows attributes to be bound to and also behaves like a dict
6259906821bff66bcd724411
class InvalidParameter(InvalidParameters): <NEW_LINE> <INDENT> default_message = _("Invalid value for parameter {param}.") <NEW_LINE> def __init__(self, message=None, *, param, **kwargs): <NEW_LINE> <INDENT> super().__init__(message) <NEW_LINE> self.kwargs = {**kwargs, "param": param}
Invalid initialization parameter PARAM received from the request. Takes a `param` kwarg
6259906816aa5153ce401c85
class CapsOnStatus(IntervalModule): <NEW_LINE> <INDENT> interval = 2 <NEW_LINE> def caps_lock_status(self): <NEW_LINE> <INDENT> pwd = ( '/home/thorgeir/github/thorgeir/' 'i3wm-config-thorgeir/custom_status_bar' ) <NEW_LINE> if not os.path.exists(pwd): <NEW_LINE> <INDENT> pwd = os.path.dirname(os.path.realpath(__file__)...
Show big colorful status bar
6259906866673b3332c31ba9
class NpcBrain(Brain): <NEW_LINE> <INDENT> def __init__(self, go): <NEW_LINE> <INDENT> Brain.__init__(self, go, delay_first = 2, next_thought = self.start) <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> self.go.position = self.go.start_position <NEW_LINE> return self.follow_right <NEW_LINE> <DEDENT> def follo...
Class to model an NPC's brain, i.e., follow the right hand wall.
625990685166f23b2e244b7e
class NoFaceDetected(Exception): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self.message = "No face found in image!!"
Raised when no face is detected in an image Attributes: message: (str) Exception message
62599068462c4b4f79dbd1b3
class Sku(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, } <NEW_LINE> def __init__(self, name=None): <NEW_LINE> <INDENT> super(Sku, self).__init__() <NEW_LINE> self.name = name
The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile. :param name: Name of the pricing tier. Possible values include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon', 'Standard_Akamai', 'Standard_ChinaCdn' :type name: str or ~azure.mgmt.cdn.models.SkuName
62599068cc40096d6161adb6
class Transformer(TransformSpec): <NEW_LINE> <INDENT> from docutils.transforms import universal <NEW_LINE> default_transforms = (universal.Decorations, universal.FinalChecks, universal.Messages) <NEW_LINE> def __init__(self, document): <NEW_LINE> <INDENT> self.transforms = [] <NEW_LINE> self.document = document <NEW_LI...
Stores transforms (`Transform` classes) and applies them to document trees. Also keeps track of components by component type name.
6259906891f36d47f2231a65
class Task(dict): <NEW_LINE> <INDENT> __id = None <NEW_LINE> due_date = None <NEW_LINE> assignee = None <NEW_LINE> value = None <NEW_LINE> status = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(Task, self).__init__() <NEW_LINE> self.set_id() <NEW_LINE> <DEDENT> def get_id(self): <NEW_LINE> <INDENT> retu...
Task object inherited from Python builtin dictionary object to store data inside Actually I wish to use SQLAlchemy but forgave because of package dependency. It can be moderated by SQLAlchemy entity easier than this way.
6259906832920d7e50bc77f3