<commit_before># -*- coding: utf-8 -*-
require 'spec_helper'
require 'rss'

module Nwiki
  module Frontend
    describe do
      def app
        App.new 'spec/examples/sample.git'
      end

      subject { last_response }

      before do
        get path
      end

      context 'GET /articles' do
        let(:path) { '/articles/' }

        it { subject.should be_ok }
        it { subject.should match %r!\bfoo\b! }
        it { subject.should match %r!\b1\b! }
        it { subject.should match %r!\b日本語ディレクトリ\b! }
      end

      context 'GET /articles.xml' do
        let(:path) { '/articles.xml' }

        it { subject.should be_ok }
        it { subject['Content-Type'].should eq 'application/atom+xml; charset=UTF-8' }

        describe 'response body' do
        it { expect { RSS::Parser.parse(subject.body) }.to_not raise_error }
        end
<commit_msg>fix indent<commit_after># -*- coding: utf-8 -*-
require 'spec_helper'
require 'rss'

module Nwiki
  module Frontend
    describe do
      def app
        App.new 'spec/examples/sample.git'
      end

      subject { last_response }

      before do
        get path
      end

      context 'GET /articles' do
        let(:path) { '/articles/' }

        it { subject.should be_ok }
        it { subject.should match %r!\bfoo\b! }
        it { subject.should match %r!\b1\b! }
        it { subject.should match %r!\b日本語ディレクトリ\b! }
      end

      context 'GET /articles.xml' do
        let(:path) { '/articles.xml' }

        it { subject.should be_ok }
        it { subject['Content-Type'].should eq 'application/atom+xml; charset=UTF-8' }

        describe 'response body' do
          it { expect { RSS::Parser.parse(subject.body) }.to_not raise_error }
        end

{'fraction_non_alphanumeric': 0.12291786329695577, 'fraction_numerical': 0.0034462952326249283, 'mean_word_length': 1.9425675675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '793547', 'n_tokens_mistral': 576, 'n_tokens_neox': 547, 'n_words': 143}