<commit_before>#!/usr/bin/env ruby

require 'ostruct'

class Notifier
  
  def initialize(opts={})
    @log = opts[:logger]
    @recipients = (opts[:recipients] || [])<commit_msg>make recipients and logger an attr_reader. raise an exception if no logger is specified<commit_after>#!/usr/bin/env ruby

require 'ostruct'

class Notifier
 
  attr_reader :recipients, :log

  def initialize(opts={})
    @log = opts[:logger]
    raise "you have to specify a logger" unless @log
    @recipients = (opts[:recipients] || [])
{'fraction_non_alphanumeric': 0.13346228239845262, 'fraction_numerical': 0.0, 'mean_word_length': 4.232323232323233, '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': '1274148', 'n_tokens_mistral': 177, 'n_tokens_neox': 163, 'n_words': 49}