<commit_before>module Rlocu
  module Utilities
    class LatLongRadius
      attr_reader :lat, :long, :radius
      def initialize(lat:, long:, radius: 5000)
        if !lat.is_a?(Numeric) || !long.is_a?(Numeric) || !radius.is_a?(Numeric)
          raise ArgumentError.new "Parameters must be numeric (floats)"
        end
        @lat = lat
        @long = long
        @radius = radius
      end

      def self.bounds(lat_lng1, lat_lng2)
        "#{@lat_lng1.to_s}|#{@lat_lng2.to_s}"
      end

      def to_s
        "#{lat},#{long}"
      end

      def to_h
        {'geo' => {'$in_lat_lng_radius' => [lat, long, radius]}}
      end
    end
  end
end<commit_msg>LatLongRadius#to_a<commit_after>module Rlocu
  module Utilities
    class LatLongRadius
      attr_reader :lat, :long, :radius
      def initialize(lat:, long:, radius: 5000)
        if !lat.is_a?(Numeric) || !long.is_a?(Numeric) || !radius.is_a?(Numeric)
          raise ArgumentError.new "Parameters must be numeric (floats)"
        end
        @lat = lat
        @long = long
        @radius = radius
      end

      def self.bounds(lat_lng1, lat_lng2)
        "#{@lat_lng1.to_s}|#{@lat_lng2.to_s}"
      end

      def to_s
        "#{lat},#{long}"
      end

      def to_a
        [lat, long, radius]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12576687116564417, 'fraction_numerical': 0.012269938650306749, 'mean_word_length': 2.129496402877698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7644644', 'n_tokens_mistral': 480, 'n_tokens_neox': 475, 'n_words': 105}