<commit_before>/* global expect */
describe("DataService tests", function () {
    var DataService, httpBackend;

    beforeEach(module("SuperCap"));
    beforeEach(inject(function (_DataService_, $httpBackend) {
        DataService = _DataService_;
        httpBackend = $httpBackend;
    }));

    it("getAnions() should make GET-request", function () {
        httpBackend.whenGET("/api/anions").respond({mockAnion: "mockResponce"});
        var responseData;
        DataService.getAnions()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getCations() should make GET-request", function () {
        httpBackend.whenGET("/api/cations").respond({mockCation: "mockResponce"});
        var responseData;
        DataService.getCations()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getElectrodes() should make GET-request", function () {
        httpBackend.whenGET("/api/electrodes").respond({mockElectrode: "mockResponce"});
        var responseData;
        DataService.getElectrodes()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getLiquids() should make GET-request", function () {
        httpBackend.whenGET("/api/liquids").respond({mockLiquid: "mockResponce"});
        var responseData;
        DataService.getLiquids()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
});<commit_msg>#Fixed test<commit_after>/* global expect */
describe("DataService tests", function () {
    var DataService, httpBackend;

    beforeEach(module("SuperCap"));
    beforeEach(inject(function (_DataService_, $httpBackend) {
        DataService = _DataService_;
        httpBackend = $httpBackend;
    }));

    it("getAnions() should make GET-request", function () {
        httpBackend.whenGET("/api/anions").respond({mockAnion: "mockResponce"});
        var responseData;
        DataService.getAnions()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getCations() should make GET-request", function () {
        httpBackend.whenGET("/api/cations").respond({mockCation: "mockResponce"});
        var responseData;
        DataService.getCations()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getElectrodes() should make GET-request", function () {
        httpBackend.whenGET("/api/electrodes").respond({mockElectrode: "mockResponce"});
        var responseData;
        DataService.getElectrodes()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
    
    it("getLiquids() should make GET-request", function () {
        httpBackend.whenGET("/api/ionicliquids").respond({mockLiquid: "mockResponce"});
        var responseData;
        DataService.getLiquids()
                .then(function (data) {
                    responseData = data;
                });

        httpBackend.flush();
        expect(responseData.status).toEqual(200);
    });
});
{'fraction_non_alphanumeric': 0.13580246913580246, 'fraction_numerical': 0.006304176516942475, 'mean_word_length': 2.1315789473684212, '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': '3930146', 'n_tokens_mistral': 1059, 'n_tokens_neox': 1015, 'n_words': 163}