Esempio n. 1
0
def word_for_index(word, index):
  for file_name in server.file_names():
    count = count_word.get_counts_from_file(file_name, word)
    if index <= count:
      return word_from_file(file_name, word, index)
    else:
      index -= count
Esempio n. 2
0
def create_big_map():
  for file_name in server.file_names():
    preprocess_file(file_name)
Esempio n. 3
0
def main(word):
  count = 0
  for file_name in server.file_names():
    count += get_counts_from_file(file_name, word)
  print count