f92d581bd1483c242dbf42d0c0741a513693ddd3,secuml/exp/diadem/monitoring/alerts.py,AlertsMonitoring,_get_datasets,#AlertsMonitoring#Any#,121

Before Change


        diadem_id = self.test_exp.exp_conf.parent
        query = self.test_exp.session.query(ExpRelationshipsAlchemy)
        query = query.filter(ExpRelationshipsAlchemy.parent_id == diadem_id)
        children = [r.child.diadem_exp for r in query.all()]
        train_exps = [c for c in children if c.type == "train"]
        train_exp_id = train_exps[0].exp_id
        exp = experiment.get_factory().from_exp_id(
                                         train_exp_id,
                                         self.test_exp.exp_conf.secuml_conf,

After Change


        query = self.test_exp.session.query(DiademExpAlchemy)
        query = query.join(DiademExpAlchemy.exp)
        query = query.join(ExpAlchemy.parents)
        query = query.filter(DiademExpAlchemy.type == "train")
        query = query.filter(ExpAlchemy.kind == "Detection")
        query = query.filter(ExpRelationshipsAlchemy.parent_id == diadem_id)
        train_exp_id = query.one().exp_id
        exp = experiment.get_factory().from_exp_id(
                                         train_exp_id,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ANSSI-FR/SecuML
Commit Name: f92d581bd1483c242dbf42d0c0741a513693ddd3
Time: 2019-04-19
Author: anael.beaugnon@ssi.gouv.fr
File Name: secuml/exp/diadem/monitoring/alerts.py
Class Name: AlertsMonitoring
Method Name: _get_datasets


Project Name: MTG/freesound
Commit Name: ad58b661aaee955bf8dc8086d805d56485f8c53a
Time: 2019-07-24
Author: alastair.porter@upf.edu
File Name: sounds/views.py
Class Name:
Method Name: sounds


Project Name: cmu-db/ottertune
Commit Name: 9e9c9c7510b6b50c221cefdde9d30c3b058a2620
Time: 2019-12-05
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/models.py
Class Name: SessionKnobManager
Method Name: get_knobs_for_session