<commit_before><?php

/**
 * This file is part of CoverallsKit.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace coverallskit\spec;

use coverallskit\entity\service\Travis;

describe('Travis', function() {
    before(function() {
        $this->jobId = getenv(Travis::ENV_JOB_ID);
        $this->coverallsToken = getenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY);
        putenv(Travis::ENV_JOB_ID . '=10');
        putenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY . '=token');
        $this->service = new Travis();
    });
    after(function() {
        putenv(Travis::ENV_JOB_ID . '=' . $this->jobId);
        putenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY . '=' . $this->coverallsToken);
    });

    describe('isEmpty', function() {
        context('when service name is empty', function() {
            it('should return true', function () {
                $travis = new Travis(null);
                expect($travis->isEmpty())->toBeTrue();
            });
        });
    });

    describe('getServiceJobId', function() {
        it('should return job id', function() {
            expect($this->service->getServiceJobId())->toEqual('10');
        });
    });
    describe('getServiceName', function() {
        it('should return the service name', function() {
            expect($this->service->getServiceName())->toEqual('travis-ci');
        });
    });
    describe('getCoverallsToken', function() {
        it('should return the coveralls api token', function() {
            expect($this->service->getCoverallsToken())->toEqual('token');
        });
    });
    describe('travisCI', function() {
        it('should return travis-ci service', function() {
            expect(Travis::travisCI()->getServiceName())->toEqual('travis-ci');
        });
    });
    describe('travisPro', function() {
        it('should return travis-pro service', function() {
            expect(Travis::travisPro()->getServiceName())->toEqual('travis-pro');
        });
    });
});
<commit_msg>comment out<commit_after><?php

/**
 * This file is part of CoverallsKit.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace coverallskit\spec;

use coverallskit\entity\service\Travis;

describe('Travis', function() {
    before(function() {
        $this->jobId = getenv(Travis::ENV_JOB_ID);
//        $this->coverallsToken = getenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY);
        putenv(Travis::ENV_JOB_ID . '=10');
  //      putenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY . '=token');
        $this->service = new Travis();
    });
    after(function() {
        putenv(Travis::ENV_JOB_ID . '=' . $this->jobId);
    //    putenv(Travis::ENV_COVERALLS_REPO_TOKEN_KEY . '=' . $this->coverallsToken);
    });

    describe('isEmpty', function() {
        context('when service name is empty', function() {
            it('should return true', function () {
                $travis = new Travis(null);
                expect($travis->isEmpty())->toBeTrue();
            });
        });
    });

    describe('getServiceJobId', function() {
        it('should return job id', function() {
            expect($this->service->getServiceJobId())->toEqual('10');
        });
    });
    describe('getServiceName', function() {
        it('should return the service name', function() {
            expect($this->service->getServiceName())->toEqual('travis-ci');
        });
    });
//    describe('getCoverallsToken', function() {
  //      it('should return the coveralls api token', function() {
    //        expect($this->service->getCoverallsToken())->toEqual('token');
      //  });
//    });
    describe('travisCI', function() {
        it('should return travis-ci service', function() {
            expect(Travis::travisCI()->getServiceName())->toEqual('travis-ci');
        });
    });
    describe('travisPro', function() {
        it('should return travis-pro service', function() {
            expect(Travis::travisPro()->getServiceName())->toEqual('travis-pro');
        });
    });
});

{'fraction_non_alphanumeric': 0.17568214456677836, 'fraction_numerical': 0.0019147917663954045, 'mean_word_length': 2.7446236559139785, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 49, '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': '5197300', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1290, 'n_words': 225}