272539105f949ac28e37adac0474ac28d65256e0,tests/test_bootstrap.py,TestBootstrap,test_from_config_file,#TestBootstrap#Any#,50

Before Change


        components = ["browser", "conversation", "script"]
        with tempfile.NamedTemporaryFile() as fp:
            for comp in components:
                fp.write("{}:\n".format(comp).encode("utf-8"))
            fp.flush()

            self.hass = bootstrap.from_config_file(fp.name)

After Change


        files = {
            "config.yaml": "".join(
                "{}:\n".format(comp)
                for comp in components
            )
        }
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_from_config_file


Project Name: sassoftware/python-dlpy
Commit Name: 81212e841322442c03e3b3df80ab4db3e7aecfb9
Time: 2019-05-31
Author: docair@v64-docair-09.dept-ter.sashq-d.openstack.sas.com
File Name: dlpy/model_conversion/write_keras_model_parm.py
Class Name:
Method Name: write_keras_hdf5


Project Name: sahana/eden
Commit Name: cd9f908d3b150dacd81b08212364a72d6664dcc8
Time: 2019-07-09
Author: dominic@nursix.org
File Name: modules/s3/s3grouped.py
Class Name: S3GroupedItems
Method Name: json


Project Name: UFAL-DSG/tgen
Commit Name: f0a55e8621986cc1c4593f3bac939bbde5e4b3bd
Time: 2019-06-08
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/data.py
Class Name: DA
Method Name: __str__