<commit_before>module Wicket
  class Subpoint < Struct.new(:x,:y,:t,:command)

    def self.from_coordinate(coordinate,t,command)
      new(coordinate.x,coordinate.y,t,command)
    end

    def distance_to(remote)
      ((remote.x - x) ** 2 + (remote.y - y) ** 2) ** 0.5
    end

    def siblings
      command.subpoints
    end

    def previous_neighbor
      siblings.select{|s| s.t < t }.max_by(&:t)
    end

    def next_neighbor
      siblings.select{|s| s.t > t }.min_by(&:t)
    end<commit_msg>187 doesnt allow floats as exponents???<commit_after>module Wicket
  class Subpoint < Struct.new(:x,:y,:t,:command)

    def self.from_coordinate(coordinate,t,command)
      new(coordinate.x,coordinate.y,t,command)
    end

    def distance_to(remote)
      Math.sqrt((remote.x - x) ** 2 + (remote.y - y) ** 2)
    end

    def siblings
      command.subpoints
    end

    def previous_neighbor
      siblings.select{|s| s.t < t }.max_by(&:t)
    end

    def next_neighbor
      siblings.select{|s| s.t > t }.min_by(&:t)
    end
{'fraction_non_alphanumeric': 0.1385658914728682, 'fraction_numerical': 0.00872093023255814, 'mean_word_length': 2.6892857142857145, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6400534', 'n_tokens_mistral': 401, 'n_tokens_neox': 375, 'n_words': 77}