a65f196d1971757aa75819357efd9f255ea4951b,homeassistant/components/sensor/swiss_hydrological_data.py,HydrologicalData,update,#HydrologicalData#,137

Before Change


        try:
            tables = BeautifulSoup(response.content,
                                   "html.parser").findChildren("table")
            rows = tables[0].findChildren(["th", "tr"])

            details = []

            for row in rows:
                cells = row.findChildren("td")
                for cell in cells:
                    details.append(cell.string)

            self.measurings = HydroData._make(details)
        except AttributeError:
            self.measurings = None

After Change


                details.append(entry.wert.string)
                details.append(entry.find(typ="max24").string)
                details.append(entry.find(typ="m24").string)
            details.append(type03.find("name").string)
            details.append(type03.find("zeit").string)

            self.measurings = HydroData._make(details)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: a65f196d1971757aa75819357efd9f255ea4951b
Time: 2016-07-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/swiss_hydrological_data.py
Class Name: HydrologicalData
Method Name: update


Project Name: luyishisi/Anti-Anti-Spider
Commit Name: 95bda804c2d02ecbe824b5e7f9849baf395da03d
Time: 2017-01-04
Author: admin@copie.cn
File Name: 6.爬虫项目源码/9.gs.amac.org.cn/shimu.py
Class Name:
Method Name:


Project Name: kengz/SLM-Lab
Commit Name: ff5da2b2bfd03234519927b966923e8baecf6616
Time: 2018-01-02
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/net/convnet.py
Class Name: ConvNet
Method Name: init_params


Project Name: Microsoft/nni
Commit Name: 636ca9b5b655136fa12332654d73bc22c76108f6
Time: 2021-03-19
Author: 33053116+J-shang@users.noreply.github.com
File Name: interim_vision_patch.py
Class Name:
Method Name:


Project Name: acl-org/acl-anthology
Commit Name: 8da2cf9d1c7af308ffcf906fe828b0dc23b52056
Time: 2020-05-22
Author: post@cs.jhu.edu
File Name: bin/ingest.py
Class Name:
Method Name: main