f03ae01198c24d0a1abd69b583199b7730ecdfe7,skbio/io/format/stockholm.py,,_write_padded_data,#Any#Any#,642
Before Change
// Padding is extended by 1 to account for the extra space after
// longest tag string
padding = "".join(" " for j in range(n-len(tag_string)+1))
fh.write("%s%s%s\n" % (tag_string, padding, data_string))
After Change
max_data_len = 0
for label, _ in data:
if len(label) > max_data_len:
max_data_len = len(label)
fmt = "{0:%d} {1}\n" % max_data_len
for label, value in data:
// Padding is extended by 1 to account for the extra space after
// longest tag string
fh.write(fmt.format(label, value))
def _check_positional_metadata(df, data_type):
// Asserts positional metadata feature names are unique
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: biocore/scikit-bio
Commit Name: f03ae01198c24d0a1abd69b583199b7730ecdfe7
Time: 2016-02-16
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/stockholm.py
Class Name:
Method Name: _write_padded_data
Project Name: RaRe-Technologies/gensim
Commit Name: 8173545a2a5dc3a20c0c3a412a0d64165dfb9eca
Time: 2010-06-15
Author: radimrehurek@seznam.cz
File Name: src/gensim/corpora/svmlightcorpus.py
Class Name: SvmLightCorpus
Method Name: saveCorpus
Project Name: RaRe-Technologies/gensim
Commit Name: 206ec4b8ec9a9cb8ca19a3c03198068a1b72b7a5
Time: 2010-06-15
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/corpora/svmlightcorpus.py
Class Name: SvmLightCorpus
Method Name: saveCorpus
Project Name: probcomp/bayeslite
Commit Name: 5ba3581c4ff4584d56ef45ffbd9b94560d23b658
Time: 2015-03-18
Author: riastradh+probcomp@csail.mit.edu
File Name: src/compiler.py
Class Name:
Method Name: compile_estcols