86d4c5df21db07ab75e7eac9ed36d2799b4bf440,research/src/fetch_campaign_donations.py,Donation,data,#Donation#,90

Before Change


        Returns a dictionary with data frames for candidates, parties and
        committees
        
        files = self.FILENAMES.get(year)
        if not files:  // it"s 2010, a different file architecture
            return {
                "candidates": self._data_by_pattern("Receitas", "candidato"),
                "parties": self._data_by_pattern("Receitas", "partido"),

After Change


            if key in data:
                // strip columns names ("foobar " -> "foobar")
                names = data[key].columns.values
                cleaned_columns = {name: name.strip() for name in names}
                data[key].rename(columns=cleaned_columns, inplace=True)
                // normalize & translate
                data[key].rename(columns=normalize_columns, inplace=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 86d4c5df21db07ab75e7eac9ed36d2799b4bf440
Time: 2017-11-19
Author: cuducos@users.noreply.github.com
File Name: research/src/fetch_campaign_donations.py
Class Name: Donation
Method Name: data


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0685052da871976e773c59dc732811019b90a612
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_disk.py
Class Name: OpenStackDisk
Method Name: _Exists


Project Name: thenetcircle/dino
Commit Name: 6c2b0bc69e167dafec15ec3e66066be8ed41bf22
Time: 2016-11-02
Author: oscar.eriks@gmail.com
File Name: dino/validation/acl.py
Class Name: AclValidator
Method Name: is_acl_valid