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