b452e82caca4f7e5e3db2c1e634d0512def75531,allennlp/service/server_sanic.py,,make_app,#Any#Any#,54

Before Change



def make_app(build_dir: str = None, demo_db: Optional[DemoDatabase] = None) -> Sanic:
    app = Sanic(__name__)  // pylint: disable=invalid-name
    start_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")

    if build_dir is None:
        // Need path to static assets to be relative to this file.
        dir_path = os.path.dirname(os.path.realpath(__file__))

After Change



def make_app(build_dir: str = None, demo_db: Optional[DemoDatabase] = None) -> Sanic:
    app = Sanic(__name__)  // pylint: disable=invalid-name
    start_time = datetime.now(pytz.utc)
    start_time_str = start_time.strftime("%Y-%m-%d %H:%M:%S %Z")

    if build_dir is None:
        // Need path to static assets to be relative to this file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: allenai/allennlp
Commit Name: b452e82caca4f7e5e3db2c1e634d0512def75531
Time: 2017-11-27
Author: michael@schmitztech.com
File Name: allennlp/service/server_sanic.py
Class Name:
Method Name: make_app


Project Name: hyperspy/hyperspy
Commit Name: f3480af5ca1682ec0ccf30d62d1640742324d87d
Time: 2016-08-09
Author: eric.prestat@gmail.com
File Name: hyperspy/io_plugins/semper_unf.py
Class Name: SemperFormat
Method Name: from_signal


Project Name: hyperspy/hyperspy
Commit Name: f3480af5ca1682ec0ccf30d62d1640742324d87d
Time: 2016-08-09
Author: eric.prestat@gmail.com
File Name: hyperspy/io_plugins/semper_unf.py
Class Name: SemperFormat
Method Name: _get_label


Project Name: RasaHQ/rasa
Commit Name: d100157cabe54377f7797ed9c8f842a94f9775f1
Time: 2018-10-02
Author: t.metcalfe@rasa.com
File Name: rasa_core/policies/ensemble.py
Class Name: PolicyEnsemble
Method Name: train