ed82e27fef3c21f0d86e0e8efdc923f527da37ae,jarbas/core/management/commands/irregularities.py,Command,serialize,#Command#Any#,46

Before Change


        

        unique_id = dict()
        for key in self.filter_keys:
            unique_id[key] = int(row[key])
            del row[key]

        probability = None
        if "probability" in row:
            probability = float(row["probability"])
            del row["probability"]

After Change


        )
        hypothesis = tuple(k for k in row.keys() if k not in reserved_keys)
        pairs = ((k, v) for k, v in row.items() if k in hypothesis)
        filtered = filter(lambda x: self.bool(x[1]), pairs)
        suspicions = dict((k, True) for k, v in filtered) or None

        return dict(
            document_id=document_id,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: ed82e27fef3c21f0d86e0e8efdc923f527da37ae
Time: 2017-05-11
Author: cuducos@users.noreply.github.com
File Name: jarbas/core/management/commands/irregularities.py
Class Name: Command
Method Name: serialize


Project Name: markovmodel/PyEMMA
Commit Name: 4046c198f9a4a9d209926aa8cabbda0d962f7e7a
Time: 2018-01-09
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/model.py
Class Name: Model
Method Name: __my_setstate__


Project Name: markovmodel/PyEMMA
Commit Name: d58f782c5ed1e6e21035ec23012b54720f293503
Time: 2017-12-19
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/estimator.py
Class Name: Estimator
Method Name: __my_setstate__


Project Name: okfn-brasil/serenata-de-amor
Commit Name: ed82e27fef3c21f0d86e0e8efdc923f527da37ae
Time: 2017-05-11
Author: cuducos@users.noreply.github.com
File Name: jarbas/core/management/commands/irregularities.py
Class Name: Command
Method Name: serialize