9fe6ded36c3e64f000d048b561cc53454be151db,server/website/website/db/oracle/target_objective.py,NormalizedDBTime,compute,#NormalizedDBTime#Any#Any#,50

Before Change


        not_io_metrics = ["read by other session"]
        total_wait_time = 0.
        // This target objective is designed for Oracle v12.2.0.1.0
        dbms = DBMSCatalog.objects.get(type=DBMSType.ORACLE, version="12.2.0.1.0")
        has_dba_hist = metrics["global.dba_hist_sys_time_model.db time"] > 0
        for name, value in metrics.items():
            if has_dba_hist and "dba_hist_" not in name:
                continue
            if "db cpu" in name:
                total_wait_time += float(value)
            elif "time_waited_micro_fg" in name:
                default_wait_time = float(MetricCatalog.objects.get(dbms=dbms, name=name).default)
                wait_time = float(value)
            elif "total_waits_fg" in name:
                default_total_waits = int(MetricCatalog.objects.get(dbms=dbms, name=name).default)
                total_waits = int(value)
            elif name.endswith("wait_class"):
                if value == "Idle":
                    wait_time = 0

After Change


                default_wait_time = float(self.default_values[name])
                wait_time = float(value)
            elif "total_waits_fg" in name:
                default_total_waits = float(self.default_values[name])
                total_waits = float(value)
            elif name.endswith("wait_class"):
                if value == "Idle":
                    wait_time = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: cmu-db/ottertune
Commit Name: 9fe6ded36c3e64f000d048b561cc53454be151db
Time: 2020-04-13
Author: dongshen@andrew.cmu.edu
File Name: server/website/website/db/oracle/target_objective.py
Class Name: NormalizedDBTime
Method Name: compute


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 963710e3d38c9ad1d8b8cc1419a3bd1b3dddde1f
Time: 2018-11-09
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/utils/optim.py
Class Name:
Method Name: optimize


Project Name: dpressel/mead-baseline
Commit Name: 02ef279b852bad53771e02435d0caa0a64d17343
Time: 2020-09-02
Author: dpressel@gmail.com
File Name: baseline/tf/classify/training/distributed.py
Class Name: ClassifyTrainerDistributedTf
Method Name: _test


Project Name: dpressel/mead-baseline
Commit Name: 08a31864a8e7a633546790d8fed54455b914d96b
Time: 2019-06-18
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/embeddings.py
Class Name: CharConvEmbeddings
Method Name: __init__