<commit_before>require 'spec_helper'

describe UserDecorator do
  let(:instance) do
    described_class.new(user)
  end

  let(:user) do
    create(:user)
  end

  describe '#pref' do
    it 'returns pref of its pref' do
      expect(instance.pref).to eq('海外')
    end
  end

  describe '#grade' do
    it 'returns dan grade of its grade' do
      expect(instance.grade).to eq('皆伝')
    end
  end

  describe '#belongs' do
    it 'returns belongs of its pref' do
      expect(instance.pref).to eq('海外')
    end
  end

  describe '#dan' do
    it 'returns dan of its grade' do
      expect(instance.dan).to eq('皆伝')
    end
  end

  describe '#dan_color' do
    it 'returns dan color of its grade' do
      expect(instance.dan_color).to eq('#ffd900')<commit_msg>fix to the based on the #117 of comment<commit_after>require 'spec_helper'

describe UserDecorator do
  let(:instance) { described_class.new(user) }

  let(:user) { create(:user) }

  describe '#pref' do
    it 'returns pref of its pref' do
      expect(instance.pref).to eq('海外')
    end
  end

  describe '#grade' do
    it 'returns dan grade of its grade' do
      expect(instance.grade).to eq('皆伝')
    end
  end

  describe '#belongs' do
    it 'returns belongs of its pref' do
      expect(instance.pref).to eq('海外')
    end
  end

  describe '#dan' do
    it 'returns dan of its grade' do
      expect(instance.dan).to eq('皆伝')
    end
  end

  describe '#dan_color' do
    it 'returns dan color of its grade' do
      expect(instance.dan_color).to eq('#ffd900')
{'fraction_non_alphanumeric': 0.11176470588235295, 'fraction_numerical': 0.0058823529411764705, 'mean_word_length': 2.8564231738035266, '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': '5816508', 'n_tokens_mistral': 530, 'n_tokens_neox': 519, 'n_words': 169}