Beispiel #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
Beispiel #2
0
def create_big_map():
  for file_name in server.file_names():
    preprocess_file(file_name)
Beispiel #3
0
def main(word):
  count = 0
  for file_name in server.file_names():
    count += get_counts_from_file(file_name, word)
  print count