5b2766aae94c0615aef2c8d6ac178428e6d28745,pymc/database/mysql.py,Trace,_initialize,#Trace#Any#,26
Before Change
self.update_interval = update_interval
size = 1
try:
size = len(self.obj.value)
except TypeError:
pass
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)]))
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: thenetcircle/dino
Commit Name: 4563e383962690cc196f4551f217d488501b660e
Time: 2019-12-29
Author: oscar.eriks@gmail.com
File Name: bin/count_users_in_rooms.py
Class Name:
Method Name: