93a71bd6c3f3c731473bc0ddd9b894a252738d01,src/backends/cgpm_backend.py,CGPM_Backend,json_ready_models,#CGPM_Backend#Any#Any#,926
Before Change
import operator, itertools
// Sort (name, code, value) list by variable name
sorted_cats = sorted(cursor, key=operator.itemgetter(0))
// Group triples by variable name -> list? of (name, group)
groups = itertools.groupby(sorted_cats, key=operator.itemgetter(0))
return {"column-statistical-types": stattypes,
After Change
itertools.groupby(raw_categories, key=operator.itemgetter(0))}
assert len(groups) > 0
assert cat_variables[groups.keys()[0]]
categories = {cat_variables[colno]:
{code: value for(_, code, value) in group}
for (colno, group) in groups.items()}
assert len(categories) > 0
cursor = bdb.sql_execute("""
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: probcomp/bayeslite
Commit Name: 93a71bd6c3f3c731473bc0ddd9b894a252738d01
Time: 2019-12-06
Author: jar23@mumble.net
File Name: src/backends/cgpm_backend.py
Class Name: CGPM_Backend
Method Name: json_ready_models
Project Name: scikit-optimize/scikit-optimize
Commit Name: 9cdd21160f4b4352b05f7b7ce9f0f63506c585c9
Time: 2017-04-17
Author: iaroslav-ai@users.noreply.github.com
File Name: benchmarks/bench_ml.py
Class Name:
Method Name: run
Project Name: pyannote/pyannote-audio
Commit Name: 2fcc7e8c87bd3d8f44b491d1f43be7002a2db6d7
Time: 2019-04-08
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/base.py
Class Name: LabelingTaskGenerator
Method Name: _load_metadata