<commit_before>module Physiqual
  require 'rails_helper'
  describe DataImputer do
    let(:imputers) do
      [
          instance_double('Imputer 1'),
          instance_double('Imputer 2'),
          instance_double('Imputer 3')
      ]
    end
    let(:data_service) { DataServices::MockService.new(nil) }
    fdescribe 'supported formats' do
      it 'calls the data service correctly' do
        meths = [:steps, :heart_rate, :distance, :sleep, :calories, :activities]
        to = Time.zone.now
        from = to - 60.minutes
        expect(imputers[0]).to receive(:impute!).with([1, 2, 3, nil]).and_return([1, 2, 3, 4])
        expect(imputers[1]).to_not receive(:impute!)
        expect(imputers[2]).to_not receive(:impute!)<commit_msg>Removed focus<commit_after>module Physiqual
  require 'rails_helper'
  describe DataImputer do
    let(:imputers) do
      [
          instance_double('Imputer 1'),
          instance_double('Imputer 2'),
          instance_double('Imputer 3')
      ]
    end
    let(:data_service) { DataServices::MockService.new(nil) }
    describe 'supported formats' do
      it 'calls the data service correctly' do
        meths = [:steps, :heart_rate, :distance, :sleep, :calories, :activities]
        to = Time.zone.now
        from = to - 60.minutes
        expect(imputers[0]).to receive(:impute!).with([1, 2, 3, nil]).and_return([1, 2, 3, 4])
        expect(imputers[1]).to_not receive(:impute!)
        expect(imputers[2]).to_not receive(:impute!)
{'fraction_non_alphanumeric': 0.1356615177971793, 'fraction_numerical': 0.020147750167897917, 'mean_word_length': 2.983957219251337, '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': '1872123', 'n_tokens_mistral': 507, 'n_tokens_neox': 481, 'n_words': 106}