812cd08b1c3b3952b0168b85b8e7e2a773b6bbc6,ggplot/geoms/facet_grid.py,facet_grid,__radd__,#facet_grid#Any#,17

Before Change


            x = gg.data.get(self.x)
        except:
            raise Exception("facet_grid(): mapping for x (\"%s\") is not available in the DataFrame" % self.x)
        try:
            y = gg.data.get(self.y)
        except:
            raise Exception("facet_grid(): mapping for y (\"%s\") is not available in the DataFrame" % self.y)
        if x is None:
            n_dim_x = 1
        else:
            n_dim_x = x.nunique()

After Change


        x = gg.data.get(self.x)
        y = gg.data.get(self.y)

        if x is None and y is None:
            raise Exception("No facets provided!")

        if x is None:
            n_dim_x = 1
        else:
            n_dim_x = x.nunique()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: has2k1/plotnine
Commit Name: 812cd08b1c3b3952b0168b85b8e7e2a773b6bbc6
Time: 2014-02-02
Author: greg@yhatHQ.com
File Name: ggplot/geoms/facet_grid.py
Class Name: facet_grid
Method Name: __radd__


Project Name: albermax/innvestigate
Commit Name: 9a5d9828d3cfd2378a40a9b218ed654a05f2b35f
Time: 2018-04-16
Author: work.alber.maximilian@gmail.com
File Name: innvestigate/analyzer/base.py
Class Name: AnalyzerNetworkBase
Method Name: compile_analyzer


Project Name: autorope/donkeycar
Commit Name: e2b80e2afbd64a83fead539811f6b36599def9b4
Time: 2020-04-01
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/dgym.py
Class Name: DonkeyGymEnv
Method Name: __init__


Project Name: facebookresearch/visdom
Commit Name: dc43f6818bf38e9815e01bab4d0cba9c5f3ed800
Time: 2019-09-25
Author: jju@fb.com
File Name: py/visdom/server.py
Class Name: PostHandler
Method Name: post


Project Name: AlexsLemonade/refinebio
Commit Name: 3535d18e63a7b90b92dd11dcad06e9a74bb7cce5
Time: 2020-01-08
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/rna_seq.py
Class Name:
Method Name: get_quant_files_for_results


Project Name: home-assistant/home-assistant
Commit Name: 9d1b94c24ae053954150bb6a9d209e61dee9eefb
Time: 2018-11-27
Author: lasote@gmail.com
File Name: homeassistant/components/sensor/netatmo.py
Class Name: NetAtmoData
Method Name: update