<commit_before>#!/usr/bin/env python3
import yaml
import json
import requests
import requests.exceptions
import sys
from datetime import datetime

with open('config.yml', 'r') as config_file:
    config = yaml.load(config_file)

with open(config['template'], 'r') as base_file:
    base = json.load(base_file)

# update timestamp<commit_msg>ffapi-updater: assume base.json is utf-8 encoded<commit_after>#!/usr/bin/env python3
import yaml
import json
import requests
import requests.exceptions
import sys
from datetime import datetime

with open('config.yml', 'r') as config_file:
    config = yaml.load(config_file)

with open(config['template'], 'r', encoding='utf-8') as base_file:
    base = json.load(base_file)

# update timestamp
{'fraction_non_alphanumeric': 0.11292517006802721, 'fraction_numerical': 0.005442176870748299, 'mean_word_length': 5.4, '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': '2229661', 'n_tokens_mistral': 235, 'n_tokens_neox': 227, 'n_words': 69}