<commit_before>module Tele42
  class SMS < ::Tele42::Base

    def initialize(options)
      super(options)
      check_route
    end

    def check_route
      raise ::Tele42::InvalidRoute, 'route should be set' if @route.nil? || @route.empty?
    end

    def default_params
      @default_params ||= super.merge('route' => @route)
    end

    def unicode!
      @unicode = true
    end

    def send_text(options = {})
      from = options[:from]
      to = options[:to]
      message = options[:text]
      check_from(from)
      params = default_params.merge(
        'to' => to,
        'from' => from,
        'message' => generate_message_for(:text, message)
      )
      if @unicode
        params['coding'] = 'unicode'<commit_msg>Fix for required param what is not<commit_after>module Tele42
  class SMS < ::Tele42::Base

    def initialize(options = {})
      super(options)
      check_route
    end

    def check_route
      raise ::Tele42::InvalidRoute, 'route should be set' if @route.nil? || @route.empty?
    end

    def default_params
      @default_params ||= super.merge('route' => @route)
    end

    def unicode!
      @unicode = true
    end

    def send_text(options = {})
      from = options[:from]
      to = options[:to]
      message = options[:text]
      check_from(from)
      params = default_params.merge(
        'to' => to,
        'from' => from,
        'message' => generate_message_for(:text, message)
      )
      if @unicode
        params['coding'] = 'unicode'
{'fraction_non_alphanumeric': 0.12251655629139073, 'fraction_numerical': 0.007947019867549669, 'mean_word_length': 2.350332594235033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1729491', 'n_tokens_mistral': 480, 'n_tokens_neox': 454, 'n_words': 115}