<commit_before>require 'spec_helper'

module AWS
  describe URL do

    before do
      @base_url = 'http://example.com/path'
      @url = URL.new @base_url, 'key', 'secret'
    end

    describe '#build' do
      subject { @url.build :get }

      it 'includes the base URL' do
        should { include @base_url }
      end

      it 'is signed' do
        should { match /Signature=[^&]+$/ }
      end
    end

    describe '#params' do
      subject { @url.params }

      it 'includes a key' do
        should { include 'AWSAccessKeyId' }
      end

      it 'includes a signature version' do
        should { include 'SignatureVersion' }
      end

      it 'includes a signature method' do
        should { include 'SignatureMethod' }
      end

      it 'includes a timestamp' do
        should { include 'Timestamp' }
      end
    end

    describe '#update' do<commit_msg>Fix faulty syntax in specs<commit_after>require 'spec_helper'

module AWS
  describe URL do
    before do
      @base_url = 'http://example.com/path'
      @url = URL.new @base_url, 'key', 'secret'
    end

    describe '#build' do
      subject { @url.build :get }

      it 'includes the base URL' do
        should include @base_url
      end

      it 'is signed' do
        should match /Signature=[^&]+$/
      end
    end

    describe '#params' do
      subject { @url.params }

      it 'includes a key' do
        should include 'AWSAccessKeyId'
      end

      it 'includes a signature version' do
        should include 'SignatureVersion'
      end

      it 'includes a signature method' do
        should include 'SignatureMethod'
      end

      it 'includes a timestamp' do
        should include 'Timestamp'
      end
    end

    describe '#update' do
{'fraction_non_alphanumeric': 0.08893956670467502, 'fraction_numerical': 0.0, 'mean_word_length': 1.964527027027027, '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': '4079391', 'n_tokens_mistral': 518, 'n_tokens_neox': 494, 'n_words': 181}