0b33f535fc0a643d612c7f1d758076f48dac0845,lingpy/algorithm/classes.py,WordList,getDict,#WordList#,292
Before Change
i in self._array[:,self.cols.index(idx[0])] if i != 0]
if len(idx) == 2:
if idx[0] in self.rows:
data = {}
for key,value in self._dict[idx[0]].items():
data[key] = []
for v in value:
data[key].append(self[v][self._header[idx[1]]])
return data
if idx[0] in self.cols:
data = {}
for i in self._array[:,self.cols.index(idx[0])]:
if i != 0:
// get the row name
m = self._data[i][self._rowIdx]
// get the relevant entry
c = self._data[i][self._header[idx[1]]]
try:
data[m] += [c]
except:
data[m] = [c]
return data
def getList(
self,
*idx
):
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:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: deeptools/HiCExplorer
Commit Name: ae99b536ff30a731a1ae226e124867534a715bd4
Time: 2018-04-24
Author: 26085589+gtrichard@users.noreply.github.com
File Name: hicexplorer/hicPlotDistVsCounts.py
Class Name:
Method Name: main
Project Name: MycroftAI/padatious
Commit Name: a1383be585a1798a3333139c4c1be149d3c5a454
Time: 2017-09-15
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts