<commit_before>require_relative 'arc_length/version'

module ArcLength
  class Circle
    def initialize(radius)
      @radius = radius
    end

    def circumference
      2 * Math::PI * @radius
    end

    def calculate_arc_length(arc_measure)
      circumference * (arc_measure.to_f/360)
    end
  end
end<commit_msg>Added a type check and made circumference private<commit_after>require_relative 'arc_length/version'

module ArcLength
  class Circle

    def initialize(radius)
      @radius = radius
    end

    def calculate_arc_length(arc_measure)
      begin
        circumference * (arc_measure.to_f/360)
      end
    rescue TypeError
      raise ArgumentError
    end

    private
    def circumference
      2 * Math::PI * @radius
    end

  end
end
{'fraction_non_alphanumeric': 0.057667103538663174, 'fraction_numerical': 0.010484927916120577, 'mean_word_length': 2.7635467980295565, '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': '6492841', 'n_tokens_mistral': 234, 'n_tokens_neox': 221, 'n_words': 61}