40d27cde0edb705bfa742a2f784d7a67b1d16e81,tests/components/test_sun.py,TestSun,test_setting_rising,#TestSun#,34

Before Change


        self.assertIsNone(sun.next_dusk(self.hass))
        self.assertIsNone(sun.next_midnight(self.hass))
        self.assertIsNone(sun.next_noon(self.hass))
        self.assertIsNone(sun.next_rising(self.hass))
        self.assertIsNone(sun.next_setting(self.hass))

        // Point it at a non-existing state
        self.assertIsNone(sun.next_dawn(self.hass, "non.existing"))

After Change


        from astral import Astral

        astral = Astral()
        utc_today = utc_now.date()

        latitude = self.hass.config.latitude
        longitude = self.hass.config.longitude
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 40d27cde0edb705bfa742a2f784d7a67b1d16e81
Time: 2017-05-09
Author: adam@armills.info
File Name: tests/components/test_sun.py
Class Name: TestSun
Method Name: test_setting_rising


Project Name: okfn-brasil/serenata-de-amor
Commit Name: f9b8b77ee3432bec7138b1df82bf1edad17daf0c
Time: 2018-02-17
Author: cuducos@gmail.com
File Name: jarbas/chamber_of_deputies/tests/test_reimbursements_command.py
Class Name: TestFileLoader
Method Name: test_reimbursement_property


Project Name: dmlc/dgl
Commit Name: 35bed2a9d04d01a0b11b98e59710f21a6e702ef7
Time: 2019-08-17
Author: mufeili1996@gmail.com
File Name: examples/pytorch/model_zoo/chem/property_prediction/utils.py
Class Name: EarlyStopping
Method Name: __init__