<commit_before>/// <reference path="../typings/tsd.d.ts"/>

import React = require('react');
import TR = require('typed-react');
import $ = require('jquery');
import _ = require('lodash');

import MapLookUp = require('maps/mapLookUp');
import Map = require('maps/map');
import Places = require('maps/places');
import List = require('list/list')
import TL = require('list/toggle-list');
import TT = require('maps/tooltips');

function initialize() {
  Map.example(document.getElementById('content'), () => {
    React.render(React.createElement(MapLookUp.MapApp, {className: 'direction-forms'}), document.getElementById('form'), () => {
      setTimeout(()=> {
        // Define the LatLng coordinates for the polygon's path.
        var triangleCoords = [
          new google.maps.LatLng(47.558105, -122.284539), // Rookies sports bar
          new google.maps.LatLng(47.561175, -122.284089), // Rainier community center
          new google.maps.LatLng(47.579174, -122.299633), // QFC Rainier Ave
          new google.maps.LatLng(47.562967, -122.308345), // VA Puget Sound
          new google.maps.LatLng(47.558105, -122.284539) // Rookies sports bar
        ];

        var coordNames = [
            'Rookie\'s Sports Bar',
            'Rainier Community Center',
            'QFC Rainier Avenue',
            'VA Puget Sound'
        ];

        // Put down markers for the demo locations
        function makeDemoMarker(latLng:google.maps.LatLng, name): Map.MarkerData {
          return {
            position: latLng,
            id: name,
            toolTip: name,
            draggable: false,
            raiseOnDrag: false,
            icon: ' ',
            labelContent: '<object style="width:20px; height:20px;" type="image/svg+xml"' +
            'data="images/zillow-logo-mask.svg">, class="tooltip" title="' + name + '"></object>',
            labelAnchor: new google.maps.Point(10, 10),
            labelClass: 'marker'
          }
        }

        var demoMarkers:Map.MarkerData[] = _.map(coordNames, function (name, index) {
          return makeDemoMarker(triangleCoords[index], name);
        });

        $(document).trigger('markerData', [demoMarkers]);

        $(document).trigger('map:NewPolygon', [
          [{
            paths: triangleCoords,
            strokeColor: '#0064CD',
            strokeOpacity: 0.7,
            strokeWeight: 1,
            fillColor: '#0064CD',
            fillOpacity: 0.35
          }]
        ]);
      }, 5000)

    });
  });
}

//google.maps.event.addDomListener(window, 'load', initialize);
$(document).ready(() => {
  initialize();
});

//tips.init();<commit_msg>removed old commute map form<commit_after>/// <reference path="../typings/tsd.d.ts"/>

import React = require('react');
import TR = require('typed-react');
import $ = require('jquery');
import _ = require('lodash');

import MapLookUp = require('maps/mapLookUp');
import Map = require('maps/map');
import Places = require('maps/places');
import List = require('list/list')
import TL = require('list/toggle-list');
import TT = require('maps/tooltips');

function initialize() {
  Map.example(document.getElementById('content'), () => {
    setTimeout(()=> {
      // Define the LatLng coordinates for the polygon's path.
      var triangleCoords = [
        new google.maps.LatLng(47.558105, -122.284539), // Rookies sports bar
        new google.maps.LatLng(47.561175, -122.284089), // Rainier community center
        new google.maps.LatLng(47.579174, -122.299633), // QFC Rainier Ave
        new google.maps.LatLng(47.562967, -122.308345), // VA Puget Sound
        new google.maps.LatLng(47.558105, -122.284539) // Rookies sports bar
      ];

      var coordNames = [
          'Rookie\'s Sports Bar',
          'Rainier Community Center',
          'QFC Rainier Avenue',
          'VA Puget Sound'
      ];

      // Put down markers for the demo locations
      function makeDemoMarker(latLng:google.maps.LatLng, name): Map.MarkerData {
        return {
          position: latLng,
          id: name,
          toolTip: name,
          draggable: false,
          raiseOnDrag: false,
          icon: ' ',
          labelContent: '<object style="width:20px; height:20px;" type="image/svg+xml"' +
          'data="images/zillow-logo-mask.svg">, class="tooltip" title="' + name + '"></object>',
          labelAnchor: new google.maps.Point(10, 10),
          labelClass: 'marker'
        }
      }

      var demoMarkers:Map.MarkerData[] = _.map(coordNames, function (name, index) {
        return makeDemoMarker(triangleCoords[index], name);
      });

      $(document).trigger('markerData', [demoMarkers]);

      $(document).trigger('map:NewPolygon', [
        [{
          paths: triangleCoords,
          strokeColor: '#0064CD',
          strokeOpacity: 0.7,
          strokeWeight: 1,
          fillColor: '#0064CD',
          fillOpacity: 0.35
        }]
      ]);
    }, 5000)

  });
}

//google.maps.event.addDomListener(window, 'load', initialize);
$(document).ready(() => {
  initialize();
});

//tips.init();
{'fraction_non_alphanumeric': 0.1549407114624506, 'fraction_numerical': 0.04387351778656127, 'mean_word_length': 2.428861788617886, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '592815', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1507, 'n_words': 325}