<commit_before>require 'rails_helper'

module AnnotatorStore
  RSpec.describe 'Annotations', type: :request do

    let(:annotation) { FactoryGirl.create :annotation }

    describe 'POST /annotations' do
      it 'returns response status 200' do
        valid_attributes = {
          version: 'v1.0',
          text: 'A note I wrote',
          quote: 'the text that was annotated',
          uri: 'http://example.com',
          ranges: '{}'
        }
        post annotator_store.annotations_path, { annotation: valid_attributes }
      end
    end

    describe 'GET /annotations/1' do
      it 'returns response status 200' do
        get annotator_store.annotation_path(annotation)
        expect(response).to have_http_status(200)
      end
    end

    describe 'PUT /annotations/1' do
      it 'returns response status 200' do
        valid_attributes = { version: 'v1.1' }
        put annotator_store.annotation_path(annotation), { annotation: valid_attributes }
      end
    end

    describe 'DELETE /annotations/1' do
      it 'returns response status 204' do
        delete annotator_store.annotation_path(annotation)
        expect(response).to have_http_status(204)
      end
    end
  end
end<commit_msg>Remove redundant curly braces<commit_after>require 'rails_helper'

module AnnotatorStore
  RSpec.describe 'Annotations', type: :request do

    let(:annotation) { FactoryGirl.create :annotation }

    describe 'POST /annotations' do
      it 'returns response status 200' do
        valid_attributes = {
          version: 'v1.0',
          text: 'A note I wrote',
          quote: 'the text that was annotated',
          uri: 'http://example.com',
          ranges: '{}'
        }
        post annotator_store.annotations_path, annotation: valid_attributes
      end
    end

    describe 'GET /annotations/1' do
      it 'returns response status 200' do
        get annotator_store.annotation_path(annotation)
        expect(response).to have_http_status(200)
      end
    end

    describe 'PUT /annotations/1' do
      it 'returns response status 200' do
        valid_attributes = { version: 'v1.1' }
        put annotator_store.annotation_path(annotation), annotation: valid_attributes
      end
    end

    describe 'DELETE /annotations/1' do
      it 'returns response status 204' do
        delete annotator_store.annotation_path(annotation)
        expect(response).to have_http_status(204)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08394458027709861, 'fraction_numerical': 0.020374898125509373, 'mean_word_length': 2.5476878612716765, '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': '6985706', 'n_tokens_mistral': 736, 'n_tokens_neox': 670, 'n_words': 198}