f606bc32ac919bc507be3221464faf3ab80f128e,src/core.py,,bayesdb_has_generator,#Any#Any#,164

Before Change


    Only actual generator names are considered.
    
    sql = "SELECT COUNT(*) FROM bayesdb_generator WHERE name = ?"
    cursor = bdb.sql_execute(sql, (name,))
    return cursor.next()[0] != 0

def bayesdb_has_generator_default(bdb, name):
    True if there is a generator or default-modelled table named `name`.
    sql = """
        SELECT COUNT(*) FROM bayesdb_generator

After Change


    Only actual generator names are considered.
    
    sql = "SELECT COUNT(*) FROM bayesdb_generator WHERE name = ?"
    return 0 != cursor_value(bdb.sql_execute(sql, (name,)))

def bayesdb_has_generator_default(bdb, name):
    True if there is a generator or default-modelled table named `name`.
    sql = """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: probcomp/bayeslite
Commit Name: f606bc32ac919bc507be3221464faf3ab80f128e
Time: 2015-10-20
Author: riastradh+probcomp@csail.mit.edu
File Name: src/core.py
Class Name:
Method Name: bayesdb_has_generator


Project Name: probcomp/bayeslite
Commit Name: f606bc32ac919bc507be3221464faf3ab80f128e
Time: 2015-10-20
Author: riastradh+probcomp@csail.mit.edu
File Name: src/core.py
Class Name:
Method Name: bayesdb_generator_has_model


Project Name: probcomp/bayeslite
Commit Name: f606bc32ac919bc507be3221464faf3ab80f128e
Time: 2015-10-20
Author: riastradh+probcomp@csail.mit.edu
File Name: src/core.py
Class Name:
Method Name: bayesdb_has_generator_default