d61852b93c266d88578beab47d262801cf7dd99b,ggplot/geoms/facet_wrap.py,facet_wrap,__radd__,#facet_wrap#Any#,8

Before Change


            gg.n_dim_x = x.nunique()

        
        if len(x)==1:
            n_high = 1
        else:
            n_high = 1

After Change


        if n_wide is None and n_high is None:
            // calculate both on the fly
            n_wide = math.ceil(math.sqrt(gg.n_dim_x))
            n_high = math.ceil(gg.n_dim_x / math.ceil(math.sqrt(gg.n_dim_x)))
        elif n_wide is None:
            // calculate n_wide on the fly
            n_wide = math.ceil(float(gg.n_dim_x) / n_high)
        elif n_high is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: has2k1/plotnine
Commit Name: d61852b93c266d88578beab47d262801cf7dd99b
Time: 2013-10-19
Author: greg@yhathq.com
File Name: ggplot/geoms/facet_wrap.py
Class Name: facet_wrap
Method Name: __radd__


Project Name: dmlc/gluon-nlp
Commit Name: 489db85647d6de8a42f9fc5162e1e9ef0831800b
Time: 2018-08-02
Author: leonard@lausen.nl
File Name: gluonnlp/data/dataset.py
Class Name: LanguageModelDataset
Method Name: bptt_batchify


Project Name: elfi-dev/elfi
Commit Name: 0701a09de0e6d6ea85b7e05ed87ac55cea5c3818
Time: 2021-03-18
Author: uremes@users.noreply.github.com
File Name: elfi/methods/inference/samplers.py
Class Name: AdaptiveDistanceSMC
Method Name: set_objective


Project Name: hyperspy/hyperspy
Commit Name: de829dd20326507df52d7bc4fcdc47a68a9b7f16
Time: 2020-08-03
Author: eric.prestat@gmail.com
File Name: hyperspy/signal_tools.py
Class Name: ImageContrastEditor
Method Name: plot_histogram


Project Name: Qiskit/qiskit-aqua
Commit Name: 100d4324d967d947e1f4b62fa6b5c918a252e4f0
Time: 2019-02-06
Author: shaohan.hu@ibm.com
File Name: qiskit/aqua/algorithms/single_sample/grover/grover.py
Class Name: Grover
Method Name: __init__