<commit_before>module Dictionary where

-------------------
-- Local Imports --
import TreeStuff

----------
-- Code --

-- | The name of the default dictionary.
defaultName :: String
defaultName = "../dictionaries/dictionary.txt"

-- | Loading a dictionary from a file.
loadDict :: FilePath -> IO [String]
loadDict = fmap (lines) . readFile

-- | Loading the default dictionary.
loadDefaultDict :: IO [String]
loadDefaultDict = loadDict defaultName
<commit_msg>Removed Tree imports to Dictionary<commit_after>module Dictionary where


----------
-- Code --

-- | The name of the default dictionary.
defaultName :: String
defaultName = "../dictionaries/dictionary.txt"

-- | Loading a dictionary from a file.
loadDict :: FilePath -> IO [String]
loadDict = fmap (lines) . readFile

-- | Loading the default dictionary.
loadDefaultDict :: IO [String]
loadDefaultDict = loadDict defaultName

{'fraction_non_alphanumeric': 0.14752252252252251, 'fraction_numerical': 0.0, 'mean_word_length': 3.1348837209302327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4095019', 'n_tokens_mistral': 243, 'n_tokens_neox': 235, 'n_words': 84}