da13077ee7328382e04fc2cfa5aec6acaf25155d,src/metamodels/crosscat.py,CrosscatMetamodel,_crosscat_data,#CrosscatMetamodel#Any#Any#Any#,268
Before Change
SELECT %s FROM %s AS t, bayesdb_crosscat_subsample AS s
WHERE s.generator_id = ?
AND s.sql_rowid = t._rowid_
""" % (",".join("t.%s" % (qcn,) for qcn in qcns), qt),
(generator_id,))
return [[crosscat_value_to_code(bdb, generator_id, M_c, colno, value)
for value, (_name, colno) in zip(row, columns)]
After Change
ORDER BY c.colno ASC
"""
columns = bdb.sql_execute(columns_sql, (generator_id,)).fetchall()
qexpressions = ",".join("CAST(t.%s AS %s)" %
(sqlite3_quote_name(name),
sqlite3_quote_name(core.bayesdb_stattype_affinity(bdb,
stattype)))
for name, _colno, stattype in columns)
cursor = bdb.sql_execute("""
SELECT %s FROM %s AS t, bayesdb_crosscat_subsample AS s
WHERE s.generator_id = ?
AND s.sql_rowid = t._rowid_
""" % (qexpressions, qt) , (generator_id,))
return [[crosscat_value_to_code(bdb, generator_id, M_c, colno, value)
for value, (_name, colno, _stattype) in zip(row, columns)]
for row in cursor]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: probcomp/bayeslite
Commit Name: da13077ee7328382e04fc2cfa5aec6acaf25155d
Time: 2016-01-19
Author: riastradh+probcomp@csail.mit.edu
File Name: src/metamodels/crosscat.py
Class Name: CrosscatMetamodel
Method Name: _crosscat_data
Project Name: probcomp/bayeslite
Commit Name: 47fadc359c7b6fc44475e89a3fdcfe9362e02558
Time: 2017-02-04
Author: fsaad@mit.edu
File Name: src/bql.py
Class Name:
Method Name: execute_phrase
Project Name: probcomp/bayeslite
Commit Name: 2e5c62037830d151078e254eb4815c8fbf6c9a7f
Time: 2015-03-05
Author: riastradh+probcomp@csail.mit.edu
File Name: src/bql.py
Class Name: BQLCompiler_1Row
Method Name: compile_bql