<commit_before><!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap

http://github.com/tangram-map/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Vector map</title>
<style>

body {
    margin: 0px;
    border: 0px;
    padding: 0px;
}

#map {
    background: rgba(0, 0, 0, 0);
}

.label {
    width: 200px;
    margin-left: -100px;
    position: absolute;
    z-index: 10;
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-size: 12px;
}

.labelInner {
    padding: 2px;
    background: white;
    opacity: 0.75;
}

</style>
<link rel="stylesheet" href="demos/lib/leaflet-0.8-dev.css" />
</head>

<body>

<div id="map"></div>

<script src="demos/lib/leaflet-0.8-dev.js"></script>
<script src="demos/lib/dat.gui.min.js"></script>
<script src="demos/lib/rStats.js"></script>
<script src="demos/lib/rStats.extras.js"></script>
<script src="demos/lib/FileSaver.js"></script>
<script src="dist/js-yaml.js"></script>
<script src="dist/tangram.debug.js"></script>

<script>

(function(){

var tile_source = 'mapzen'; // default source, can be overriden by URL

var tile_sources = {
    'mapzen': {
        source: {
            type: 'GeoJSONTileSource',
            url: 'http://vector.mapzen.com/osm/all/{z}/{x}/{y}.json'
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-dev': {
        source: {
            type: 'GeoJSONTileSource',
            url: 'http://vector.dev.mapzen.com/osm/all/{z}/{x}/{y}.json'
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-local': {
        source: {
            type: 'GeoJSONTileSource',
            url: 'http://localhost:8080/all/{z}/{x}/{y}.json'
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-mvt': {
        source: {
            type: 'MapboxTileSource',
            url: 'http://vector.mapzen.com/osm/all/{z}/{x}/{y}.mapbox'
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-topojson': {
        source: {
            type: 'TopoJSONTileSource',
            url: 'http://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson'
        },<commit_msg>IW: Fix the protocol for the tangram sources<commit_after><!doctype html>
<!--
Tangram: real-time WebGL rendering for OpenStreetMap

http://github.com/tangram-map/tangram
http://mapzen.com
-->
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Vector map</title>
<style>

body {
    margin: 0px;
    border: 0px;
    padding: 0px;
}

#map {
    background: rgba(0, 0, 0, 0);
}

.label {
    width: 200px;
    margin-left: -100px;
    position: absolute;
    z-index: 10;
    text-align: center;
    font-family: Helvetica, sans-serif;
    font-size: 12px;
}

.labelInner {
    padding: 2px;
    background: white;
    opacity: 0.75;
}

</style>
<link rel="stylesheet" href="demos/lib/leaflet-0.8-dev.css" />
</head>

<body>

<div id="map"></div>

<script src="demos/lib/leaflet-0.8-dev.js"></script>
<script src="demos/lib/dat.gui.min.js"></script>
<script src="demos/lib/rStats.js"></script>
<script src="demos/lib/rStats.extras.js"></script>
<script src="demos/lib/FileSaver.js"></script>
<script src="dist/js-yaml.js"></script>
<script src="dist/tangram.debug.js"></script>

<script>

(function(){

var tile_source = 'mapzen'; // default source, can be overriden by URL

function appendProtocol(url) {
   return window.location.protocol + url;
}

var tile_sources = {
    'mapzen': {
        source: {
            type: 'GeoJSONTileSource',
            url:  appendProtocol('//vector.mapzen.com/osm/all/{z}/{x}/{y}.json')
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-dev': {
        source: {
            type: 'GeoJSONTileSource',
            url: appendProtocol('//vector.dev.mapzen.com/osm/all/{z}/{x}/{y}.json')
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-local': {
        source: {
            type: 'GeoJSONTileSource',
            url: 'http//localhost:8080/all/{z}/{x}/{y}.json'
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-mvt': {
        source: {
            type: 'MapboxTileSource',
            url: appendProtocol('//vector.mapzen.com/osm/all/{z}/{x}/{y}.mapbox')
        },
        layers: 'demos/gl_layers.js',
        styles: 'demos/gl_styles.yaml'
    },
    'mapzen-topojson': {
        source: {
            type: 'TopoJSONTileSource',
            url: appendProtocol('//vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson')
        },
{'fraction_non_alphanumeric': 0.19020291043246568, 'fraction_numerical': 0.012707522033203526, 'mean_word_length': 2.4931997136721544, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '6379740', 'n_tokens_mistral': 1874, 'n_tokens_neox': 1815, 'n_words': 292}