<commit_before>describe('MC Show Process Component Controller', function() {
    // ref: src/app/global.services/isImage.service.js

    beforeEach(module('angular.filter'));
    beforeEach(module('materialscommons'));

    var service;

    beforeEach(inject(function($injector){
        service = $injector.get('isImage');
    }));


    it('should exist', function() {
        expect(service).toBeDefined();
    });

});

<commit_msg>Completed test of idImage service<commit_after>describe('MC Show Process Component Controller', function() {
    // ref: src/app/global.services/isImage.service.js

    beforeEach(module('angular.filter'));
    beforeEach(module('materialscommons'));

    var service;

    beforeEach(inject(function($injector){
        service = $injector.get('isImage');
    }));


    it('should exist', function() {
        expect(service).toBeDefined();
    });

    it('should show image mime values as true', function(){
        var imageMimeValues = [
            'image/gif', 'image/jpeg', 'image/png',
            'image/tiff', 'image/x-ms-bmp', 'image/bmp'
        ];
        imageMimeValues.forEach( (mime) => {
            expect(service(mime)).toBe(true);
        });
    });

    it('should show non-image mime values as false', function(){
        var imageMimeValues = [
            'text/plain', 'text/html', 'text/css', 'text/javascript',
            'application/octet-stream', 'application/pkcs12',
            'application/vnd.mspowerpoint', 'application/xhtml+xml',
            'application/xml',  'application/pdf'
        ];
        imageMimeValues.forEach( (mime) => {
            expect(service(mime)).toBe(false);
        });
    });

});


{'fraction_non_alphanumeric': 0.16341030195381884, 'fraction_numerical': 0.0011841326228537595, 'mean_word_length': 2.763919821826281, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2560678', 'n_tokens_mistral': 502, 'n_tokens_neox': 477, 'n_words': 84}