43eda8bd930ae2bc7808aa7b924a6057903acfec,src/metamodels/nig_normal.py,NIGNormalMetamodel,register,#NIGNormalMetamodel#Any#,83

Before Change


    def register(self, bdb):
        with bdb.savepoint():
            schema_sql = "SELECT version FROM bayesdb_metamodel WHERE name = ?"
            cursor = bdb.sql_execute(schema_sql, (self.name(),))
            version = None
            try:
                row = cursor.next()

After Change



    def register(self, bdb):
        with bdb.savepoint():
            version = bayesdb_metamodel_version(bdb, self.name())
            if version is None:
                bdb.sql_execute(nig_normal_schema_1)
                version = 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: probcomp/bayeslite
Commit Name: 43eda8bd930ae2bc7808aa7b924a6057903acfec
Time: 2016-07-18
Author: riastradh+probcomp@csail.mit.edu
File Name: src/metamodels/nig_normal.py
Class Name: NIGNormalMetamodel
Method Name: register


Project Name: pantsbuild/pants
Commit Name: 438327ceed9f7b547b30ea8fe79eb6fb07fa19d3
Time: 2015-03-31
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/jvm_compile.py
Class Name: JvmCompile
Method Name: _platform_version_info


Project Name: probcomp/bayeslite
Commit Name: 3bc3af6dab77a4d73549126fba1d5a2eaa20b04c
Time: 2015-03-27
Author: riastradh+probcomp@csail.mit.edu
File Name: src/bql.py
Class Name:
Method Name: execute_phrase