80ab5f2eb06c8023c6ba4b62c054ff04369913f8,tests/integration_tests/flows/test_mongo.py,MongoTest,setUpClass,#Any#,33

Before Change


                    if i > 0:
                        data.append(dict(
                            number_of_rooms=int(row[0]),
                            number_of_bathrooms=int(row[1]),
                            sqft=int(float(row[2].replace(",", "."))),
                            location=str(row[3]),
                            days_on_market=int(row[4]),

After Change


                data = []
                DS = DATASETS_COLUMN_TYPES[TEST_DATASET]
                for i, row in enumerate(csvf):
                    if i == 0:
                        continue
                    data.append({
                        column[0]: column[1](row[i])
                        for i, column in enumerate(DS)
                    })
                db[TEST_DATASET].insert_many(data)
            print("done")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass


Project Name: deeptools/HiCExplorer
Commit Name: 24b635914a9d4698cb6ae01b5b1d7dd5be7d6223
Time: 2017-03-31
Author: ramirez@ie-freiburg.mpg.de
File Name: hicexplorer/hicPlotDistVsCounts.py
Class Name:
Method Name: main


Project Name: akkana/scripts
Commit Name: feb5a2fe3e6b32901b2ab80dd660d4c1640ba4aa
Time: 2019-06-28
Author: akkana@shallowsky.com
File Name: newreads.py
Class Name:
Method Name: lookup_books


Project Name: home-assistant/home-assistant
Commit Name: 04aa4e898a31e459a4f478989ea13c6d6f3efd97
Time: 2016-12-11
Author: glance@acc.umu.se
File Name: homeassistant/components/media_player/denon.py
Class Name: DenonDevice
Method Name: update