<commit_before>var mapnik = require('mapnik');
var assert = require('assert');
var exists = require('fs').existsSync || require('path').existsSync;

describe('mapnik.compositeOp', function() {
    for (var name in mapnik.compositeOp) {
        // http://blog.mixu.net/2011/02/03/javascript-node-js-and-for-loops/
        (function(name) {
            var im1 = mapnik.Image.open('test/support/a.png');
            im1.premultiply();
            it('should blend image correctly with op:' + name, function(done) {
                var im2 = mapnik.Image.open('test/support/b.png');
                im2.premultiply();<commit_msg>keep possible exceptions inside of test<commit_after>var mapnik = require('mapnik');
var assert = require('assert');
var exists = require('fs').existsSync || require('path').existsSync;

describe('mapnik.compositeOp', function() {
    for (var name in mapnik.compositeOp) {
        // http://blog.mixu.net/2011/02/03/javascript-node-js-and-for-loops/
        (function(name) {
            it('should blend image correctly with op:' + name, function(done) {
            var im1 = mapnik.Image.open('test/support/a.png');
            im1.premultiply();
                var im2 = mapnik.Image.open('test/support/b.png');
                im2.premultiply();
{'fraction_non_alphanumeric': 0.15805946791862285, 'fraction_numerical': 0.018779342723004695, 'mean_word_length': 2.761764705882353, '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': '7286871', 'n_tokens_mistral': 410, 'n_tokens_neox': 385, 'n_words': 74}