<commit_before>require 'minitest_helper'

describe Hypostasis::Connection do
  let(:subject) { Hypostasis::Connection.new }

  before :each do

    subject.set('unset_key', 'unset_value')
  end

  after :each do

    subject.unset('unset_key')
  end

  it { subject.must_respond_to :get }
  it { subject.must_respond_to :set }
  it { subject.must_respond_to :unset }

  describe '#get and #set' do
    before :each do
      subject.set('preset_key', 'preset_value')
    end
<commit_msg>Removed unnecessary before and after blocks in Connection spec.<commit_after>require 'minitest_helper'

describe Hypostasis::Connection do
  let(:subject) { Hypostasis::Connection.new }

  it { subject.must_respond_to :get }
  it { subject.must_respond_to :set }
  it { subject.must_respond_to :unset }

  describe '#get and #set' do
    before :each do
      subject.set('preset_key', 'preset_value')
    end

{'fraction_non_alphanumeric': 0.10714285714285714, 'fraction_numerical': 0.0, 'mean_word_length': 4.067796610169491, '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': '4405146', 'n_tokens_mistral': 311, 'n_tokens_neox': 296, 'n_words': 73}