<commit_before>require 'ostruct'
require 'yaml'
ac = YAML.load_file(File.join(Rails.root, 'config', 'app_config.yml'))[Rails.env]

# this will make the config available under the APP_CONFIG constant and methods like APP_CONFIG.metadata_engines
APP_CONFIG = OpenStruct.new(ac)<commit_msg>Trying to fix ssl errors.<commit_after>require 'ostruct'
require 'yaml'
ac = YAML.load_file(File.join(Rails.root, 'config', 'app_config.yml'))[Rails.env]

# this will make the config available under the APP_CONFIG constant and methods like APP_CONFIG.metadata_engines
APP_CONFIG = OpenStruct.new(ac)

ENV['SSL_CERT_FILE'] = APP_CONFIG.ssl_cert_file if APP_CONFIG.ssl_cert_file
{'fraction_non_alphanumeric': 0.10558069381598793, 'fraction_numerical': 0.0, 'mean_word_length': 7.097560975609756, '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': '2210466', 'n_tokens_mistral': 230, 'n_tokens_neox': 218, 'n_words': 55}