95ab2d1f1cb241580a566644df07b9810e852959,bokeh/charts/_data_source.py,ChartDataSource,get_selections,#ChartDataSource#Any#,154

Before Change



        // make sure we have enough dimensions as required either way
        unmatched = list(set(self._required_dims) - set(select_map.keys()))
        if len(unmatched) > 0:
            raise ValueError("You must provide all required columns assigned to dimensions, no match for: %s"
                             % ", ".join(unmatched))
        else:
            return select_map

    def __getitem__(self, key):
        return self._selections[key]

    def groupby(self, *specs):

After Change


            if selections is None:
                // if no selections are provided, we assume they were provided in order
                select_map = {dim: sel for dim, sel in izip(self._dims, self._data.columns)}
            elif isinstance(selections, dict):
                if len(selections.keys()) != 0:
                    // selections were specified in inputs
                    select_map = selections
            else:
                // selection input type isn"t valid
                raise ValueError("selections input must be provided as: dict(dimension: column) or None")

        // // make sure we have enough dimensions as required either way
        // unmatched = list(set(self._required_dims) - set(select_map.keys()))
        // if len(unmatched) > 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: bokeh/bokeh
Commit Name: 95ab2d1f1cb241580a566644df07b9810e852959
Time: 2015-08-17
Author: nroth@dealnews.com
File Name: bokeh/charts/_data_source.py
Class Name: ChartDataSource
Method Name: get_selections


Project Name: deepgram/kur
Commit Name: 59d68fcac566e3c3a5cbf2324cc1f3a6542a23bd
Time: 2017-06-13
Author: ajsyp@syptech.net
File Name: kur/containers/layers/convolution.py
Class Name: Convolution
Method Name: _parse


Project Name: deepgram/kur
Commit Name: 59d68fcac566e3c3a5cbf2324cc1f3a6542a23bd
Time: 2017-06-13
Author: ajsyp@syptech.net
File Name: kur/containers/layers/dense.py
Class Name: Dense
Method Name: _parse