58ab225e313cde281696aca8bdfaff26695d879a,lingpy/data/model.py,Model,__init__,#Model#Any#Any#,109
Before Change
new_path = path + "/" + model + "/"
self.name = model
try:
self.converter = load(open(new_path+"converter.bin","rb"))
try:
self.scorer = load(open(new_path+"scorer.bin","rb"))
except:
pass
except:
compile_model(model,path)
self.converter = load(open(new_path+"converter.bin","rb"))
try:
self.scorer = load(open(new_path+"scorer.bin","rb"))
except:
pass
// read information from the info-file
self.info = {}
info = codecs.open(new_path+"INFO","r","utf-8").read()
After Change
// check for vowels and tones
if "vowels" in self.info:
self.vowels = self.info["vowels"]
if "tones" in self.info:
self.tones = self.info["tones"]
def __str__(self):
out = "Model: {0}\nInfo: {1}\nSource: {2}\n"
out += "Compiler: {3}\nDate: {4}"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: lingpy/lingpy
Commit Name: 58ab225e313cde281696aca8bdfaff26695d879a
Time: 2013-07-17
Author: mattis.list@posteo.de
File Name: lingpy/data/model.py
Class Name: Model
Method Name: __init__
Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: write_dataholder
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3d95ae5cd11987e4c963baf4da374b1fa139b807
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _GetSchedulerHints