5b2766aae94c0615aef2c8d6ac178428e6d28745,pymc/database/mysql.py,Trace,_initialize,#Trace#Any#,26
Before Change
self._trace = squeeze(zeros((self.update_interval, size), "f"))
self.current_trace = 1
try:
query = "create table %s (recid int(11) NOT NULL auto_increment PRIMARY KEY, trace int(5), %s FLOAT)" % (self.obj.name, " FLOAT, ".join(["v%s" % (x+1) for x in range(size)]))
self.db.cur.execute(query)
except Exception:
self.db.cur.execute("SELECT MAX(trace) FROM %s" % self.obj.name)
last_trace = self.db.cur.fetchall()[0][0]
After Change
dbname = self.model.__name__
// Connect to database
self.DB = MySQLdb.connect(user=self._user, passwd=self._passwd, host=self._host, port=self._port)
self.cur = self.DB.cursor()
try:
// Try and create database with model name
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: _initialize
Project Name: ilastik/ilastik
Commit Name: 425fa0673bca602053ae4e6dc44ff755a5b816cd
Time: 2017-03-02
Author: carstenhaubold@googlemail.com
File Name: ilastik/applets/tracking/base/trackingBaseDataExportGui.py
Class Name: TrackingBaseDataExportGui
Method Name: _initAppletDrawerUic
Project Name: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__