b6a4fd6dc84ec2bda7ce1d2e119e428d672558fb,bipy/core/distance.py,DistanceMatrix,from_file,#Any#Any#Any#,96
Before Change
sids = None
rows_processed = 0
for line_idx, line in enumerate(dm_f):
tokens = [e.strip() for e in line.strip().split(delimiter)]
if line_idx == 0:
// We"re at the header (sample IDs).
After Change
curr_row_idx = 0
for line in dm_f:
line = line.strip()
if not line:
continue
elif curr_row_idx >= num_sids:
// We"ve hit a nonempty line after we already filled the data
// matrix. Raise an error because we shouldn"t ignore extra
// data.
raise DistanceMatrixFormatError(
"Encountered extra rows without corresponding sample IDs "
"in the header.")
tokens = line.split(delimiter)
// +1 because the first column contains the sample ID.
if len(tokens) != num_sids + 1:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: biocore/scikit-bio
Commit Name: b6a4fd6dc84ec2bda7ce1d2e119e428d672558fb
Time: 2014-01-04
Author: jai.rideout@gmail.com
File Name: bipy/core/distance.py
Class Name: DistanceMatrix
Method Name: from_file
Project Name: RasaHQ/rasa
Commit Name: 1c0642d53f5733e544da770501ec0e1bbf2b5413
Time: 2020-10-28
Author: alwxndr@gmail.com
File Name: rasa/shared/nlu/training_data/formats/wit.py
Class Name: WitReader
Method Name: read_from_json
Project Name: bokeh/bokeh
Commit Name: f82ba26ddda1bf5ccffa2f40707c673f2ee1892f
Time: 2017-06-20
Author: bryanv@continuum.io
File Name: bokeh/plotting/helpers.py
Class Name:
Method Name: _add_sigfunc_info