f3fc214170258c94249e34d2fbf9c3bfcb475ee1,app/doccano/doccano.py,,main,#,6
Before Change
"--noinput"], shell=False)
print(f"Starting server with port {args.port}.")
os.environ["DEBUG"] = "False"
subprocess.call(["python", manage_path, "runserver", f"0.0.0.0:{args.port}"])
if __name__ == "__main__":
After Change
parser.add_argument("--database_url", type=str, default="sqlite:///doccano.db", help="data store")
args = parser.parse_args()
os.environ.setdefault("DEBUG", "False")
os.environ.setdefault("DATABASE_URL", args.database_url)
print("Setup Database.")
base = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances Project Name: chakki-works/doccano
Commit Name: f3fc214170258c94249e34d2fbf9c3bfcb475ee1
Time: 2020-12-06
Author: light.tree.1.13@gmail.com
File Name: app/doccano/doccano.py
Class Name:
Method Name: main
Project Name: nilmtk/nilmtk
Commit Name: 5ed393764a15cfa3f480b5a677c025de7b26e0dd
Time: 2014-12-21
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: proportion_of_energy
Project Name: arviz-devs/arviz
Commit Name: 259010ab242cc109b2b8dfbb20812d27b812dd14
Time: 2020-06-01
Author: aloctavodia@gmail.com
File Name: arviz/plots/loopitplot.py
Class Name:
Method Name: plot_loo_pit
Project Name: nilmtk/nilmtk
Commit Name: bfb923e2a7c82fb638e6c64bf845c750566ab2b0
Time: 2016-02-26
Author: oliver.parson@bgch.co.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: load
Project Name: nilmtk/nilmtk
Commit Name: 727196fda06a4c79354ad7f181c279ef78022e55
Time: 2014-11-25
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: good_sections
Project Name: ntucllab/libact
Commit Name: 06f96b02d900868f5d2f22b03fae0ce00f6fdd36
Time: 2015-11-16
Author: lsc36x@gmail.com
File Name: libact/query_strategies/quire.py
Class Name: QUIRE
Method Name: __init__