More indentation

This commit is contained in:
Crista Lopes
2013-12-31 15:26:37 -08:00
parent 7655fd1996
commit 2aaef21d60

View File

@@ -14,8 +14,8 @@ non_stop_words = [(), lambda : \
unique_words = [(),lambda : unique_words = [(),lambda :
set([w for w in non_stop_words[0] if w!=''])] set([w for w in non_stop_words[0] if w!=''])]
counts = [(), lambda : counts = [(), lambda :
map(lambda w, word_list : \ map(lambda w, word_list : word_list.count(w), \
word_list.count(w), unique_words[0], \ unique_words[0], \
itertools.repeat(non_stop_words[0], \ itertools.repeat(non_stop_words[0], \
len(unique_words[0])))] len(unique_words[0])))]
sorted_data = [(), lambda : sorted(zip(list(unique_words[0]), \ sorted_data = [(), lambda : sorted(zip(list(unique_words[0]), \
@@ -45,6 +45,5 @@ stop_words[0] = set(open('../stop_words.txt').read().split(','))
# Update the columns with formulas # Update the columns with formulas
update() update()
# Display
for (w, c) in sorted_data[0][:25]: for (w, c) in sorted_data[0][:25]:
print w, '-', c print w, '-', c