<commit_before>class EffortDataStatusSetter

  def initialize(args)
    ArgsValidator.validate(params: args, required: :effort)
    @effort = args[:effort]
    @split_times = args[:split_times] || effort.split_times
    @times_predictor = args[:times_predictor] || TimesPredictor.new(effort: effort)
  end

  def set_data_status

  end

  private

  attr_reader :effort, :split_times, :times_predictor


end<commit_msg>Expand DataStatusSetter (work in progress).<commit_after>class EffortDataStatusSetter

  def initialize(args)
    ArgsValidator.validate(params: args, required: :effort)
    @effort = args[:effort]
    @split_times = args[:split_times] || effort.ordered_split_times.to_a
    @valid_split_time = split_times.shift
    @times_predictor = args[:times_predictor] || TimesPredictor.new(effort: effort)
  end

  def set_data_status
    split_times.each { |split_time| set_split_time_data_status(split_time) }
  end

  private

  attr_reader :effort, :split_times, :times_predictor
  attr_accessor :valid_split_time

  def set_split_time_data_status(split_time)
    split_time.data_status = times_predictor
  end

end
{'fraction_non_alphanumeric': 0.08945969884853854, 'fraction_numerical': 0.0, 'mean_word_length': 5.2430939226519335, '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': '811139', 'n_tokens_mistral': 388, 'n_tokens_neox': 370, 'n_words': 69}