<commit_before>class EventTrack < ApplicationRecord
  module SubmissionResult
    extend ActiveSupport::Concern

    included do
      before_create :calc_result
    end

    private

    def calc_result
      self.result = EventResultService.new(track, round).calculate

      return unless event.wind_cancellation
      self.result_net = EventResultService.new(
        track,
        round,
        wind_cancellation: true
      ).calculate
    end<commit_msg>fix error on change jump range<commit_after>class EventTrack < ApplicationRecord
  module SubmissionResult
    extend ActiveSupport::Concern

    included do
      before_create :calc_result
    end

    def calc_result
      self.result = EventResultService.new(track, round).calculate

      return unless event.wind_cancellation
      self.result_net = EventResultService.new(
        track,
        round,
        wind_cancellation: true
      ).calculate
    end
{'fraction_non_alphanumeric': 0.05161290322580645, 'fraction_numerical': 0.0, 'mean_word_length': 2.8155737704918034, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2646741', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 61}