a2e45b8fdde315b756691b4ae573ad55f55dc002,homeassistant/components/history.py,,get_significant_states,#Any#Any#Any#,39

Before Change


    where = 
        (domain IN ({}) OR last_changed=last_updated)
        AND domain NOT IN ({}) AND last_updated > ?
    .format(",".join(""%s"" % x for x in SIGNIFICANT_DOMAINS),
               ",".join(""%s"" % x for x in IGNORE_DOMAINS))

    data = [start_time]

After Change


    as well as all states from certain domains (for instance
    thermostat so that we get current temperature in our graphs).
    
    states = recorder.get_model("States")
    query = recorder.query("States").filter(
        (states.domain.in_(SIGNIFICANT_DOMAINS) |
         (states.last_changed == states.last_updated)) &
        ((~states.domain.in_(IGNORE_DOMAINS)) &
         (states.last_updated > start_time)))

    if end_time is not None:
        query = query.filter(states.last_updated < end_time)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: homeassistant/components/history.py
Class Name:
Method Name: get_significant_states


Project Name: MolSSI/QCEngine
Commit Name: f03ff5dcd9b09c807db6e76a2a821ff6602d26bf
Time: 2020-07-05
Author: farhadrgh@users.noreply.github.com
File Name: qcengine/programs/torchani.py
Class Name: TorchANIHarness
Method Name: compute


Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: homeassistant/components/history.py
Class Name:
Method Name: get_states