0b33f535fc0a643d612c7f1d758076f48dac0845,lingpy/algorithm/classes.py,WordList,getDict,#WordList#,292

Before Change


        
        if len(idx) == 2:

            if idx[0] in self.rows:
                data = {}
                for key,value in self._dict[idx[0]].items():
                    data[key] = []

After Change



            // if it points to the columns
            if idxA in self.cols:
                data = {}

                for i,j in  [(self._data[i][self._rowIdx],i) for 
                        i in self._array[:,self.cols.index(idxA)] if i != 0]:
                    try:
                        data[i] += [j]
                    except:
                        data[i] = [j]
                return data

        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: lingpy/lingpy
Commit Name: 0b33f535fc0a643d612c7f1d758076f48dac0845
Time: 2012-11-06
Author: mattis.list@gmail.com
File Name: lingpy/algorithm/classes.py
Class Name: WordList
Method Name: getDict


Project Name: nilmtk/nilmtk
Commit Name: 51f56cd2f529cbf92c0492c34510c040ed1b77fd
Time: 2014-05-22
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: power_series


Project Name: ntucllab/libact
Commit Name: 325fae8fbbc16b3c1ca40559bb2a9c783efaf440
Time: 2015-11-25
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: make_query