<commit_before>describe('iD.svgLayers', function () {
    var context, container,
        projection = d3.geoProjection(function(x, y) { return [x, -y]; })
            .translate([0, 0])
            .scale(180 / Math.PI)
            .clipExtent([[0, 0], [Infinity, Infinity]]);

    beforeEach(function () {
        context = iD.Context();
        container = d3.select(document.createElement('div'));
    });


    it('creates a surface', function () {
        container.call(iD.svgLayers(projection, context));
        expect(container.selectAll('svg')).to.be.classed('surface');
    });

    it('creates surface defs', function () {
        container.call(iD.svgLayers(projection, context));
        var nodes = container.selectAll('svg defs').nodes();
        expect(nodes.length).to.eql(1);
        expect(d3.select(nodes[0])).to.be.classed('surface-defs');
    });

    it('creates default data layers', function () {
        container.call(iD.svgLayers(projection, context));
        var nodes = container.selectAll('svg .data-layer').nodes();
        expect(nodes.length).to.eql(5);
        expect(d3.select(nodes[0])).to.be.classed('data-layer-osm');
        expect(d3.select(nodes[1])).to.be.classed('data-layer-gpx');
        expect(d3.select(nodes[2])).to.be.classed('data-layer-mapillary-images');
        expect(d3.select(nodes[3])).to.be.classed('data-layer-mapillary-signs');
        expect(d3.select(nodes[4])).to.be.classed('data-layer-debug');
    });

});<commit_msg>fix a test<commit_after>describe('iD.svgLayers', function () {
    var context, container,
        projection = d3.geoProjection(function(x, y) { return [x, -y]; })
            .translate([0, 0])
            .scale(180 / Math.PI)
            .clipExtent([[0, 0], [Infinity, Infinity]]);

    beforeEach(function () {
        context = iD.Context();
        container = d3.select(document.createElement('div'));
    });


    it('creates a surface', function () {
        container.call(iD.svgLayers(projection, context));
        expect(container.selectAll('svg')).to.be.classed('surface');
    });

    it('creates surface defs', function () {
        container.call(iD.svgLayers(projection, context));
        var nodes = container.selectAll('svg defs').nodes();
        expect(nodes.length).to.eql(1);
        expect(d3.select(nodes[0])).to.be.classed('surface-defs');
    });

    it('creates default data layers', function () {
        container.call(iD.svgLayers(projection, context));
        var nodes = container.selectAll('svg .data-layer').nodes();
        expect(nodes.length).to.eql(6);
        expect(d3.select(nodes[0])).to.be.classed('data-layer-osm');
        expect(d3.select(nodes[1])).to.be.classed('data-layer-gpx');
        expect(d3.select(nodes[2])).to.be.classed('data-layer-hoot');
        expect(d3.select(nodes[3])).to.be.classed('data-layer-mapillary-images');
        expect(d3.select(nodes[4])).to.be.classed('data-layer-mapillary-signs');
        expect(d3.select(nodes[5])).to.be.classed('data-layer-debug');
    });

});
{'fraction_non_alphanumeric': 0.19368628740545873, 'fraction_numerical': 0.015784281486353174, 'mean_word_length': 3.056, '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': '7426065', 'n_tokens_mistral': 1035, 'n_tokens_neox': 1006, 'n_words': 123}