<commit_before>require 'spec_helper'
require 'hive/file_system'

RSpec.describe Hive::FileSystem do

  describe '.new' do
    before(:all) do
      `touch test.sh`
      `zip test.zip test.sh`
    end

    after(:all) do
      `rm test.zip test.sh`
    end

    it 'checks zip file integrity correctly' do
      expect(Hive::FileSystem.new(0, Dir.mktmpdir, Hive::Log.new).check_build_integrity('test.zip')).to be true
    end

  end
end<commit_msg>Added test for tar.gz file<commit_after>require 'spec_helper'
require 'hive/file_system'

RSpec.describe Hive::FileSystem do

  describe '.new' do
    before(:all) do
      `touch test.sh`
      `zip test.zip test.sh`
      `tar -czvf test.tar.gz test.sh`
    end

    after(:all) do
      `rm test.zip test.sh tar.tar.gz`
    end

    it 'checks zip file integrity correctly' do
      expect(Hive::FileSystem.new(0, Dir.mktmpdir, Hive::Log.new).check_build_integrity('test.zip')).to be true
    end

    it 'checks tar.gz file integrity correctly' do
      expect(Hive::FileSystem.new(0, Dir.mktmpdir, Hive::Log.new).check_build_integrity('test.tar.gz')).to be true
    end

  end
end
{'fraction_non_alphanumeric': 0.12268314210061783, 'fraction_numerical': 0.00264783759929391, 'mean_word_length': 3.0938628158844765, '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': '4797532', 'n_tokens_mistral': 410, 'n_tokens_neox': 398, 'n_words': 99}