<commit_before>cameras:
    camera1:
        type: perspective #currently ignored
        focal_length: [[16, 2], [20, 6]] # currently ignored
        vanishing_point: [-250, -250] # currently ignored

lights:
    light1:
        type: directional
        origin: world
        direction: [1, 1, -1]
        diffuse: [.3, .3, .3, 1.]
        ambient: [0.7, 0.7, 0.7, 1.]

textures:
    water-texture:
        url: normals.jpg
        filtering: nearest

styles:
    pillows:
        base: polygon
        lighting: fragment
        material:
            normal:
                texture: water-texture
                mapping: uv
            diffuse: 0.75

    heightglow:
        base: polygon
        lighting: vertex
        shaders:
            blocks:
                color: "color.rgb += vec3(0.3 * position.z);"

sources:
    osm:
        type: MVT
        url:  http://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt

layers:
    touch:
        data: { source: touch }
        draw:
            lines:
                color: 'purple'
                order: 50
                width: .03
            # sprites:
            #     sprite: sunburst

    earth:
        data: { source: osm }
        draw:
            polygons:
                order: 0
                color: '#f0ebeb'

    landuse:
        data: { source: osm }
        filter:
            name: true
            any:
                - { $zoom: { min: 9 }, area: { min: 10000000 } }
                - { $zoom: { min: 10 }, area: { min: 3300000 } }
                - { $zoom: { min: 12 }, area: { min: 1000000 } }
                - { $zoom: { min: 13 }, area: { min: 10000 } }
                - { $zoom: { min: 15 } }
        draw:
            polygons:
                order: 1
                color: '#fffffa'
                interactive: true # currently ignored
        green:
            filter: { kind: [park, graveyard, cemetery, forest, recreation_ground] }
            draw:
                polygons:
                    order: 2
                    color: '#bddec5'
        blue:
            filter: { kind: [commercial, industrial] }
            draw:
                polygons:
                    color: '#C0CDCD'
        orange:
            filter: { kind: [university] }
            draw:
                polygons:
                    color: '#D9CFC3'

    water:
        data: { source: osm }
        filter:
            any:
                # show smaller water areas at higher zooms
                - { $zoom: { min: 0 }, area: { min: 10000000 } }
                - { $zoom: { min: 10 }, area: { min: 1000000 } }
                - { $zoom: { min: 12 }, area: { min: 100000 } }
                - { $zoom: { min: 15 }, area: { min: 1000 } }
                - { $zoom: { min: 18 } }
        draw:
            polygons:
                order: 3
                color: '#9dc3de'

    roads:
        data: { source: osm }
        filter:
            not: {kind: [rail]}
        draw:
            lines:
                order: 4
                width: .02
                cap: round
                color: white
                outline:
                    width: .01
                    cap: round
                    color: '#999'
        rounded:
            filter: { $zoom: { min: 18 } }
            draw:
                lines:
                    cap: round
        highway:
            filter: { kind: highway }
            draw:
                lines:
                    color: '#D16768'
                    width: .04
            link:
                filter: { is_link: yes }
                draw:
                    lines:
                        color: '#aaa'
                        width: .001
        path:
            filter:
                kind: path
            draw:
                lines:
                    color: '#bbb'
                    width: .001
        airports:
            filter: { aeroway: true }
            draw:
                lines:
                    color: '#ddd'
                    outline:
                        width: 0
            taxiways:
                filter: { aeroway: taxiway }
                draw:
                    lines:
                        width: .005
            runways:
                filter: { aeroway: runway }
                draw:
                    lines:
                        color: '#FFE4B5'
                        width: .02
                        cap: square
                        outline:
                            color: orange
                            width: 0.01
    buildings:
        data: { source: osm }
        filter: { $zoom: { min: 14 } }
        draw:
            heightglow:
                order: 50
                color: [.65, .65, .65]
        # turn interactive feature selection on for buildings with names
        interactive:
            filter: { name: true }
            draw: { heightglow: { interactive: true } }
        extruded:
            filter: { $zoom: { min: 15 } }
            draw:
                heightglow:
                    extrude: true
        label_building:
            filter: { name: true, height: true }
        high-line:
            filter: {roof_material: grass}
            draw:
                heightglow:
                    color: '#bddec5'

    poi_labels:
        data: { source: osm, layer: pois }
        filter: { name: true, not: { kind: [peak, viewpoint, bicycle_rental, car_sharing] }, $zoom: { min: 15 } }
        draw:
            text:
                offset: [0px, -13px]
                font:
                    family: sans-serif
                    weight: 400<commit_msg>yaml cleaning - removing unused sublayer<commit_after>cameras:
    camera1:
        type: perspective #currently ignored
        focal_length: [[16, 2], [20, 6]] # currently ignored
        vanishing_point: [-250, -250] # currently ignored

lights:
    light1:
        type: directional
        origin: world
        direction: [1, 1, -1]
        diffuse: [.3, .3, .3, 1.]
        ambient: [0.7, 0.7, 0.7, 1.]

textures:
    water-texture:
        url: normals.jpg
        filtering: nearest

styles:
    pillows:
        base: polygon
        lighting: fragment
        material:
            normal:
                texture: water-texture
                mapping: uv
            diffuse: 0.75

    heightglow:
        base: polygon
        lighting: vertex
        shaders:
            blocks:
                color: "color.rgb += vec3(0.3 * position.z);"

sources:
    osm:
        type: MVT
        url:  http://vector.mapzen.com/osm/all/{z}/{x}/{y}.mvt

layers:
    touch:
        data: { source: touch }
        draw:
            lines:
                color: 'purple'
                order: 50
                width: .03
            # sprites:
            #     sprite: sunburst

    earth:
        data: { source: osm }
        draw:
            polygons:
                order: 0
                color: '#f0ebeb'

    landuse:
        data: { source: osm }
        filter:
            name: true
            any:
                - { $zoom: { min: 9 }, area: { min: 10000000 } }
                - { $zoom: { min: 10 }, area: { min: 3300000 } }
                - { $zoom: { min: 12 }, area: { min: 1000000 } }
                - { $zoom: { min: 13 }, area: { min: 10000 } }
                - { $zoom: { min: 15 } }
        draw:
            polygons:
                order: 1
                color: '#fffffa'
                interactive: true # currently ignored
        green:
            filter: { kind: [park, graveyard, cemetery, forest, recreation_ground] }
            draw:
                polygons:
                    order: 2
                    color: '#bddec5'
        blue:
            filter: { kind: [commercial, industrial] }
            draw:
                polygons:
                    color: '#C0CDCD'
        orange:
            filter: { kind: [university] }
            draw:
                polygons:
                    color: '#D9CFC3'

    water:
        data: { source: osm }
        filter:
            any:
                # show smaller water areas at higher zooms
                - { $zoom: { min: 0 }, area: { min: 10000000 } }
                - { $zoom: { min: 10 }, area: { min: 1000000 } }
                - { $zoom: { min: 12 }, area: { min: 100000 } }
                - { $zoom: { min: 15 }, area: { min: 1000 } }
                - { $zoom: { min: 18 } }
        draw:
            polygons:
                order: 3
                color: '#9dc3de'

    roads:
        data: { source: osm }
        filter:
            not: {kind: [rail]}
        draw:
            lines:
                order: 4
                width: .02
                cap: round
                color: white
                outline:
                    width: .01
                    cap: round
                    color: '#999'
        rounded:
            filter: { $zoom: { min: 18 } }
            draw:
                lines:
                    cap: round
        highway:
            filter: { kind: highway }
            draw:
                lines:
                    color: '#D16768'
                    width: .04
            link:
                filter: { is_link: yes }
                draw:
                    lines:
                        color: '#aaa'
                        width: .001
        path:
            filter:
                kind: path
            draw:
                lines:
                    color: '#bbb'
                    width: .001
        airports:
            filter: { aeroway: true }
            draw:
                lines:
                    color: '#ddd'
                    outline:
                        width: 0
            taxiways:
                filter: { aeroway: taxiway }
                draw:
                    lines:
                        width: .005
            runways:
                filter: { aeroway: runway }
                draw:
                    lines:
                        color: '#FFE4B5'
                        width: .02
                        cap: square
                        outline:
                            color: orange
                            width: 0.01
    buildings:
        data: { source: osm }
        filter: { $zoom: { min: 14 } }
        draw:
            heightglow:
                order: 50
                color: [.65, .65, .65]
        # turn interactive feature selection on for buildings with names
        interactive:
            filter: { name: true }
            draw: { heightglow: { interactive: true } }
        extruded:
            filter: { $zoom: { min: 15 } }
            draw:
                heightglow:
                    extrude: true
        high-line:
            filter: {roof_material: grass}
            draw:
                heightglow:
                    color: '#bddec5'

    poi_labels:
        data: { source: osm, layer: pois }
        filter: { name: true, not: { kind: [peak, viewpoint, bicycle_rental, car_sharing] }, $zoom: { min: 15 } }
        draw:
            text:
                offset: [0px, -13px]
                font:
                    family: sans-serif
                    weight: 400
{'fraction_non_alphanumeric': 0.0994099767566601, 'fraction_numerical': 0.031110316467012337, 'mean_word_length': 0.8823826350328117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '7034969', 'n_tokens_mistral': 3352, 'n_tokens_neox': 2915, 'n_words': 811}