dec3dcf7b86168234e38e4f40059abecd3245c44,testing/test_profiling.py,TestProfiling,test_autoflow,#TestProfiling#,46

Before Change


        with gpflow.settings.temp_settings(s):
            self.m.kern.compute_K_symm(self.m.X.value)

        expected_file = "".join([
            s.profiling.output_directory,
            s.profiling.output_file_name,
            "_compute_K_symm.json"])
        self.assertTrue(os.path.exists(expected_file))

        if os.path.exists(expected_file):
            os.remove(expected_file)

After Change




    def test_autoflow(self):
        m = self.setup()

        s = gpflow.settings.get_settings()
        s.profiling.dump_timeline = True
        s.profiling.output_directory = os.path.dirname(__file__)
        s.profiling.output_file_name = "test_trace_autoflow"

        with gpflow.settings.temp_settings(s):
            m.compile()
            m.kern.compute_K_symm(m.X.read_value())

        expected_file = os.path.join(s.profiling.output_directory,
                                     s.profiling.output_file_name + ".json")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: dec3dcf7b86168234e38e4f40059abecd3245c44
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_profiling.py
Class Name: TestProfiling
Method Name: test_autoflow


Project Name: GPflow/GPflow
Commit Name: dec3dcf7b86168234e38e4f40059abecd3245c44
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_profiling.py
Class Name: TestProfiling
Method Name: test_profile


Project Name: pantsbuild/pants
Commit Name: 528f3a015bb88a4227f7534c5a5373d16ddd9e05
Time: 2017-03-31
Author: cheister@gmail.com
File Name: contrib/findbugs/src/python/pants/contrib/findbugs/tasks/findbugs.py
Class Name: FindBugs
Method Name: _exclude_patterns


Project Name: pantsbuild/pants
Commit Name: 528f3a015bb88a4227f7534c5a5373d16ddd9e05
Time: 2017-03-31
Author: cheister@gmail.com
File Name: contrib/errorprone/src/python/pants/contrib/errorprone/tasks/errorprone.py
Class Name: ErrorProne
Method Name: _exclude_patterns