<commit_before>require 'erb'

module Xcmultilingual
  class Writer
    attr_accessor :name, :template_path, :verbose

    def initialize(destination, bundle_data)
      @destination = destination
      @bundle_data = bundle_data
      @template_path = template_path()
      @filename = File.basename(@destination)
    end

    def write
      puts "+ START UPDATING\n\n" if @verbose

      if !File.exist?("#{@destination}")
        puts "  There is no destination file." if @verbose
        puts "\n+ FAILED UPDATING\n" if @verbose
        return<commit_msg>Add exit code<commit_after>require 'erb'

module Xcmultilingual
  class Writer
    attr_accessor :name, :template_path, :verbose

    def initialize(destination, bundle_data)
      @destination = destination
      @bundle_data = bundle_data
      @template_path = template_path()
      @filename = File.basename(@destination)
    end

    def write
      puts "+ START UPDATING\n\n" if @verbose

      if !File.exist?("#{@destination}")
        puts "  There is no destination file." if @verbose
        puts "\n+ FAILED UPDATING\n" if @verbose
        exit 2
{'fraction_non_alphanumeric': 0.09660107334525939, 'fraction_numerical': 0.0008944543828264759, 'mean_word_length': 2.9125874125874125, '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': '5421802', 'n_tokens_mistral': 339, 'n_tokens_neox': 331, 'n_words': 94}