bug - Code changes linked to a known issue.
feat - New feature.
hotfix - Quick fixes to the codebase.
junk - Experiments (will never be merged).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
import random | |
def create_chain(file_paths): | |
word_counter = {} | |
previous_word = "" | |
for path in file_paths: | |
with open(path) as file: | |
for line in file: | |
words = line.split(" ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* |