<commit_before>#!/usr/bin/env python
"""
Integration (not unit) tests for pylast.py
"""
import os
from random import choice
import time
import unittest

import pylast

def load_secrets():
    secrets_file = "test_pylast.yaml"
    if os.path.isfile(secrets_file):
    import yaml # pip install pyyaml
        with open(secrets_file, "r") as f: # see example_test_pylast.yaml
            doc = yaml.load(f)<commit_msg>Fix indentation<commit_after>#!/usr/bin/env python
"""
Integration (not unit) tests for pylast.py
"""
import os
from random import choice
import time
import unittest

import pylast

def load_secrets():
    secrets_file = "test_pylast.yaml"
    if os.path.isfile(secrets_file):
        import yaml # pip install pyyaml
        with open(secrets_file, "r") as f: # see example_test_pylast.yaml
            doc = yaml.load(f)
{'fraction_non_alphanumeric': 0.10023866348448687, 'fraction_numerical': 0.0, 'mean_word_length': 3.60989010989011, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5663107', 'n_tokens_mistral': 289, 'n_tokens_neox': 277, 'n_words': 80}