<commit_before>require 'net/smtp'
require 'ostruct'

class M3LogFileParser::Worker < Struct.new(:file_path)
  attr_accessor :requests, :line_mode, :error_output, :mail_count,
    :routing_errors, :format_errors, :record_not_found_errors, :fatal_errors

  def initialize(*args)
    super
    self.requests = {}
    self.error_output = []
    self.mail_count = 0
  end

  def mail_sent
    self.mail_count += 1
  end

  def perform
    self.parse
<commit_msg>fixup! InvalidAuthenticityToken als unwichtigen Fehler hinzufügen<commit_after>require 'net/smtp'
require 'ostruct'

class M3LogFileParser::Worker < Struct.new(:file_path)
  attr_accessor :requests, :line_mode, :error_output, :mail_count,
    :routing_errors, :format_errors, :record_not_found_errors, :fatal_errors, :invalid_authenticity_token_errors

  def initialize(*args)
    super
    self.requests = {}
    self.error_output = []
    self.mail_count = 0
  end

  def mail_sent
    self.mail_count += 1
  end

  def perform
    self.parse

{'fraction_non_alphanumeric': 0.0968063872255489, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 4.363636363636363, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2954100', 'n_tokens_mistral': 355, 'n_tokens_neox': 340, 'n_words': 70}