a84938a83a0bc2bfc9fb6e377424d1547be0a054,lingpy/basic/spreadsheet.py,Spreadsheet,output,#Spreadsheet#,205
Before Change
// first do the data checks
defaults = {
"filename" : "lingpy-{0}".format(str(date.today())),
"subset" : False,
"blacklist" : None, // filename path
"rows" : 200, // minimum number of concepts
"cols" : 15 // minimum number of taxa
}
for key in defaults:
if key not in keywords:
keywords[key] = defaults[key]
if __name__=="__main__":
// s = Spreadsheet("/Users/stiv/Dropbox/Projects/dogon/Moran_Dogon.comp.vocab.UNICODE.csv")
s = Spreadsheet("/Users/stiv/Dropbox/Projects/lingpy/test/spreadsheet_complex.tsv", concepts=2, languages=[3,5,6])
s.pprint()
After Change
filename = "lingpy-{0}".format(str(date.today()))
output = open(filename+".csv", "w")
output.write("CONCEPT"+"\t"+"COUNTERPART"+"\t"+"COUNTERPART_DOCULECT"+"\n")
for i in range(self.header+1, len(self.matrix)):
for j in range(1, len(self.matrix[i])):
output.write(self.matrix[i][0]+"\t"+self.matrix[i][j]+"\t"+self.matrix[self.header][j]+"\n")
output.write("//\n")
if __name__=="__main__":
// s = Spreadsheet("/Users/stiv/Dropbox/Projects/dogon/Moran_Dogon.comp.vocab.UNICODE.csv")
// s = Spreadsheet("/Users/stiv/Dropbox/Projects/lingpy/test/spreadsheet_complex.tsv", concepts=2, languages=[3,5,6])
// s = Spreadsheet("/Users/stiv/Dropbox/Projects/lingpy/test/spreadsheet_complex.tsv")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: lingpy/lingpy
Commit Name: a84938a83a0bc2bfc9fb6e377424d1547be0a054
Time: 2013-04-20
Author: bambooforest@gmail.com
File Name: lingpy/basic/spreadsheet.py
Class Name: Spreadsheet
Method Name: output
Project Name: hachmannlab/chemml
Commit Name: 30bce6638a5840e6a67f0d996c6c51b809cd5c0c
Time: 2019-03-05
Author: mojtabah@buffalo.edu
File Name: chemml/chem/molecule.py
Class Name: Molecule
Method Name: to_smiles
Project Name: hachmannlab/chemml
Commit Name: 30bce6638a5840e6a67f0d996c6c51b809cd5c0c
Time: 2019-03-05
Author: mojtabah@buffalo.edu
File Name: chemml/chem/molecule.py
Class Name: Molecule
Method Name: to_smarts