<commit_before><?php

namespace coveralls\spec;

use coveralls\jsonfile\Coverage;
use coveralls\jsonfile\CoverageCollection;

describe('CoverageCollection', function() {
    describe('add', function() {
        before(function() {
            $this->coverages = new CoverageCollection();
        });
        it('should add coverage', function() {
            $coverage = Coverage::unused(1);
            $this->coverages->add($coverage);
            $retrieveCoverage = $this->coverages->at(1);
            expect($coverage)->toEqual($retrieveCoverage);
        });
    });
});
<commit_msg>refactaring<commit_after><?php

namespace coveralls\spec;

use coveralls\jsonfile\Coverage;
use coveralls\jsonfile\CoverageCollection;

describe('CoverageCollection', function() {
    describe('add', function() {
        before(function() {
            $this->coverage = Coverage::unused(1);
            $this->coverages = new CoverageCollection();
            $this->coverages->add($this->coverage);
            $this->retrieveCoverage = $this->coverages->at(1);
        });
        it('should add coverage', function() {
            expect($this->coverage)->toEqual($this->retrieveCoverage);
        });
    });
});

{'fraction_non_alphanumeric': 0.1605960264900662, 'fraction_numerical': 0.0033112582781456954, 'mean_word_length': 2.950980392156863, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '3299856', 'n_tokens_mistral': 349, 'n_tokens_neox': 342, 'n_words': 50}