3445b5d800148a4a9f252ecbdf4cd54b2fbdf3c8,apps/domain/src/main/core/database/environment/environment.py,Environment,Environment_1,#,5

Before Change


    __tablename__ = "environment"

    id = db.Column(db.Integer(), primary_key=True, autoincrement=True)
    name = db.Column(db.String(255))
    address = db.Column(db.String(255))
    syft_address = db.Column(db.String(255))
    memory = db.Column(db.String(255))

After Change


    address = db.Column(db.String(255), default="0.0.0.0")
    syft_address = db.Column(db.String(255), default="")  // TODO
    created_at = db.Column(db.DateTime, default=datetime.now())
    destroyed_at = db.Column(db.DateTime, default=datetime.now())

    def __str__(self):
        return f"<Group id: {self.id}, name: {self.name}, state: {self.state}, address: {self.address}, syft_address: {self.syft_address}, provider: {self.provider}, region: {self.region}, instance_type: {self.instance_type}, created_at: {self.created_at}, destroyed_at: {self.destroyed_at}>"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: OpenMined/Grid
Commit Name: 3445b5d800148a4a9f252ecbdf4cd54b2fbdf3c8
Time: 2021-03-14
Author: sachinkumar04428@gmail.com
File Name: apps/domain/src/main/core/database/environment/environment.py
Class Name: Environment
Method Name: Environment_1


Project Name: nilmtk/nilmtk
Commit Name: 8cbf44bc80b89c870e45403a50c1797206cfd074
Time: 2014-06-23
Author: oliparson@gmail.com
File Name: nilmtk/dataset_converters/wikienergy.py
Class Name: WikiEnergy
Method Name: download_dataset


Project Name: r9y9/deepvoice3_pytorch
Commit Name: b012c55d3d526be46ab441f78033a062df8e8252
Time: 2017-11-06
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: lcswillems/torch-rl
Commit Name: 02e22bd58feef2a816699ccf6cc9f115c49d85ae
Time: 2018-04-23
Author: lcswillems@gmail.com
File Name: scripts/train.py
Class Name:
Method Name: