<commit_before>(function (exports) {
    'use strict';

    function CreateTransparentImages(targetTransparentImagePaths, maskImagesSuffix) {
        var that = this;
        var suffix = maskImagesSuffix || 'mask';

        targetTransparentImagePaths.forEach(function (imagePath, i) {
            var maskImagePath = imagePath.replace(/\.jpg/, '-' + suffix + '.png');
            that.onLoadImage(imagePath, maskImagePath);
        });
    }

    CreateTransparentImages.prototype.onLoadImage = function (targetImageName, maskImageName) {
        var targetImage = document.createElement('img');
        targetImage.src = targetImageName;

        var maskImage = document.createElement('img');
        maskImage.src = maskImageName;

        targetImage.onload = this.translateImage(targetImage, maskImage);
        maskImage.onload = this.translateImage(targetImage, maskImage);
    };

    CreateTransparentImages.prototype.translateImage = function (targetImage, maskImage) {
        var canvas = document.createElement('canvas'),
            ctx = canvas.getContext('2d');

        canvas.width = targetImage.naturalWidth;
        canvas.height = targetImage.naturalHeight;

        ctx.drawImage(targetImage, 0, 0);
        ctx.globalCompositeOperation = 'xor';
        ctx.drawImage(maskImage, 0, 0);

        return canvas;
    };

    CreateTransparentImages.prototype.appendCanvas = function (targetElement, canvas) {
        document.querySelector(targetElement).querySelector(canvas);
    };

    exports.CreateTransparentImages = CreateTransparentImages;
})(window);

document.addEventListener('DOMContentLoaded', function () {
    var images = ['https://cdn.rawgit.com/o2project/sg-tokusetsu/master/img/okabe.jpg', 'https://cdn.rawgit.com/o2project/sg-tokusetsu/master/img/kurisu.jpg', 'https://cdn.rawgit.com/o2project/sg-tokusetsu/master/img/kokuban.jpg'];
    var transparentImages = new CreateTransparentImages(images);
});<commit_msg>fix(main-visual): プロトコル名を外してみた<commit_after>(function (exports) {
    'use strict';

    function CreateTransparentImages(targetTransparentImagePaths, maskImagesSuffix) {
        var that = this;
        var suffix = maskImagesSuffix || 'mask';

        targetTransparentImagePaths.forEach(function (imagePath, i) {
            var maskImagePath = imagePath.replace(/\.jpg/, '-' + suffix + '.png');
            that.onLoadImage(imagePath, maskImagePath);
        });
    }

    CreateTransparentImages.prototype.onLoadImage = function (targetImageName, maskImageName) {
        var targetImage = document.createElement('img');
        targetImage.src = targetImageName;

        var maskImage = document.createElement('img');
        maskImage.src = maskImageName;

        targetImage.onload = this.translateImage(targetImage, maskImage);
        maskImage.onload = this.translateImage(targetImage, maskImage);
    };

    CreateTransparentImages.prototype.translateImage = function (targetImage, maskImage) {
        var canvas = document.createElement('canvas'),
            ctx = canvas.getContext('2d');

        canvas.width = targetImage.naturalWidth;
        canvas.height = targetImage.naturalHeight;

        ctx.drawImage(targetImage, 0, 0);
        ctx.globalCompositeOperation = 'xor';
        ctx.drawImage(maskImage, 0, 0);

        return canvas;
    };

    CreateTransparentImages.prototype.appendCanvas = function (targetElement, canvas) {
        document.querySelector(targetElement).querySelector(canvas);
    };

    exports.CreateTransparentImages = CreateTransparentImages;
})(window);

document.addEventListener('DOMContentLoaded', function () {
    var images = ['//cdn.rawgit.com/o2project/sg-tokusetsu/master/img/okabe.jpg', '//cdn.rawgit.com/o2project/sg-tokusetsu/master/img/kurisu.jpg', '//cdn.rawgit.com/o2project/sg-tokusetsu/master/img/kokuban.jpg'];
    var transparentImages = new CreateTransparentImages(images);
});
{'fraction_non_alphanumeric': 0.11997953440777692, 'fraction_numerical': 0.004093118444614991, 'mean_word_length': 3.5098039215686274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '1021544', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1074, 'n_words': 173}