7b962c4065637056255c2a7f291dc798b81c4560,server/website/website/db/base/parser.py,BaseParser,convert_dbms_metrics,#BaseParser#Any#Any#Any#,186

Before Change


        // Same as metric_data except COUNTER metrics are not divided by the time
        base_metric_data = {}

        for name, metadata in self.numeric_metric_catalog_.items():
            value = metrics[name]

            if metadata.vartype == VarType.INTEGER:

After Change


        metric_data = {}
        // Same as metric_data except COUNTER metrics are not divided by the time
        base_metric_data = {}
        numeric_metric_catalog = MetricCatalog.objects.filter(
            dbms__id=self.dbms_id, metric_type__in=MetricType.numeric())

        for metadata in numeric_metric_catalog:
            name = metadata.name
            value = metrics[name]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cmu-db/ottertune
Commit Name: 7b962c4065637056255c2a7f291dc798b81c4560
Time: 2020-01-13
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: convert_dbms_metrics


Project Name: cmu-db/ottertune
Commit Name: 7b962c4065637056255c2a7f291dc798b81c4560
Time: 2020-01-13
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: convert_dbms_knobs


Project Name: CyberReboot/NetworkML
Commit Name: cd83fed56a184063215f932ef768f8834328654c
Time: 2020-04-01
Author: josh@vandervecken.com
File Name: networkml/featurizers/funcs/host.py
Class Name: HostBase
Method Name: _get_flags