c01093ea481de222970eeb1ff52c0184abe4eaa7,src/fetch_foursquare_info.py,,,#,100

Before Change


        if (index % 100) == 0:
            print("//////////////////////////////////////////////////////////////////////////////////////")
            print("%s requests made. Stopping to save." % index)
            if fetched_companies:
                write_fetched_companies(fetched_companies)
                fetched_companies = []
            else:
                print("Nothing to save.")
            print("//////////////////////////////////////////////////////////////////////////////////////")
            print("")

After Change


            print("Was found  : %s" % fetched["name"])
            fetched["trade_name"] = company["trade_name"]
            fetched["cnpj"] = company["cnpj"]
            fetched["scraped_at"] = datetime.datetime.utcnow().isoformat()
            normalized = json_normalize(fetched)
            fetched_companies = pd.concat([fetched_companies, normalized])
        else:
            print("There were no matches")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: c01093ea481de222970eeb1ff52c0184abe4eaa7
Time: 2016-12-06
Author: andresouzapinho@gmail.com
File Name: src/fetch_foursquare_info.py
Class Name:
Method Name:


Project Name: cuemacro/finmarketpy
Commit Name: c6c88e187783ca56b22ca64787a7de81985049bc
Time: 2016-04-18
Author: saeedamen@hotmail.com
File Name: pythalesians/economics/events/popular/commonecondatafactory.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 32bb950b5f4e0cac647353c2b4a7940f908fc73f
Time: 2015-10-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name: ManualAlarm
Method Name: alarm_disarm


Project Name: home-assistant/home-assistant
Commit Name: 23d7330a2fadaff22c483c0c84c926b5c9151d6b
Time: 2021-03-27
Author: noltari@gmail.com
File Name: homeassistant/components/aemet/weather_update_coordinator.py
Class Name: WeatherUpdateCoordinator
Method Name: _convert_weather_response


Project Name: home-assistant/home-assistant
Commit Name: ede432ba71a4a6b13ee7aa9eb20193ae5a28a777
Time: 2020-04-16
Author: chris@talkingtontech.com
File Name: homeassistant/components/sonarr/sensor.py
Class Name: SonarrSensor
Method Name: update