<commit_before>// Subscribe to Provider data
Meteor.subscribe('providers');
Meteor.subscribe('counties');

// Map handler
Thriver.map = {};

// Close Map Search
Thriver.providers.closeMapSearch = () => {
  const search = document.querySelector('.providers .providerSearch');
  if (search instanceof Element && search.classList.contains('active')) {
    search.classList.remove('active');
  }
};

// Close Map Search
Thriver.providers.openDetails = () =>
  document.getElementById('service-providers').classList.remove('full-view');

// Setting the map view to full
const fullMap = (condition) => {
  if (condition === true) {
    document.getElementById('service-providers').classList.add('full-view');
    if (Thriver.map.getZoom() > 0) Thriver.map.setZoom(7);
    Thriver.map.setCenter(new google.maps.LatLng(44.863579, -89.574563));
  } else {
    document.getElementById('service-providers').classList.remove('full-view');
  }
};

// Hide info label on mouseout
const hideLabel = () => {
  if (Thriver.map.infowindow) Thriver.map.infowindow.close();
};

// Initialize Google Maps API
const initialize = () => {
  // Create SVG Marker Pin
  const createPin = (fillColor, strokeColor) => ({
    // SVG Path
    path: 'M 24,4.1C21.2,1.4,17.9,0,14,0c-3.9,0-7.2,1.4-9.9,4.1C1.4,6.9,0,10.2,0,14c0,2,0.3,3.6,0.9,4.9l10,21.2c0.3,0.6,0.7,1.1,1.3,1.4c0.6,0.3,1.2,0.5,1.9,0.5c0.7,0,1.3-0.2,1.9-0.5c0.6-0.3,1-0.8,1.3-1.4l10-21.2c0.6-1.3,0.9-2.9,0.9-4.9C28.1,10.2,26.7,6.9,24,4.1L24,4.1z M19,19c-1.4,1.4-3,2.1-5,2.1c-1.9,0-3.6-0.7-5-2.1C7.7,17.6,7,16,7,14c0-1.9,0.7-3.6,2.1-5c1.4-1.4,3-2.1,5-2.1c1.9,0,3.6,0.7,5,2.1c1.4,1.4,2.1,3,2.1,5C21.1,16,20.4,17.6,19,19L19,19z M19,19',

    // Attributes
    fillColor,
    fillOpacity: 1,
    scale: 0.6,
    strokeWeight: 2,
    strokeColor,

    // Pin Position/Offset Controls
    size: new google.maps.Size(29, 43),
    origin: new google.maps.Point(0, 0),
    anchor: new google.maps.Point(14, 43),
  });

  // Hover effects
  // NOTE: Can't use lambda expression because of `this` context
  const mouseover = function () {
    //this.setIcon(createPin('#00cad9', '#004146'), this);
  };
  const mouseout = function () {
    //this.setIcon(createPin('#00b7c5', '#004146'), this);
  };

  // Display info label on hover
  // NOTE: Can't use lambda expression because of `this` context
  const displayLabel = function () {
    // Close any existing infowindow
    if (Thriver.map.infowindow) Thriver.map.infowindow.close();

    // Create new infowindow<commit_msg>Corrected hover color events.<commit_after>// Subscribe to Provider data
Meteor.subscribe('providers');
Meteor.subscribe('counties');

// Map handler
Thriver.map = {};

// Close Map Search
Thriver.providers.closeMapSearch = () => {
  const search = document.querySelector('.providers .providerSearch');
  if (search instanceof Element && search.classList.contains('active')) {
    search.classList.remove('active');
  }
};

// Close Map Search
Thriver.providers.openDetails = () =>
  document.getElementById('service-providers').classList.remove('full-view');

// Setting the map view to full
const fullMap = (condition) => {
  if (condition === true) {
    document.getElementById('service-providers').classList.add('full-view');
    if (Thriver.map.getZoom() > 0) Thriver.map.setZoom(7);
    Thriver.map.setCenter(new google.maps.LatLng(44.863579, -89.574563));
  } else {
    document.getElementById('service-providers').classList.remove('full-view');
  }
};

// Hide info label on mouseout
const hideLabel = () => {
  if (Thriver.map.infowindow) Thriver.map.infowindow.close();
};

// Initialize Google Maps API
const initialize = () => {
  // Create SVG Marker Pin
  const createPin = (fillColor, strokeColor) => ({
    // SVG Path
    path: 'M 24,4.1C21.2,1.4,17.9,0,14,0c-3.9,0-7.2,1.4-9.9,4.1C1.4,6.9,0,10.2,0,14c0,2,0.3,3.6,0.9,4.9l10,21.2c0.3,0.6,0.7,1.1,1.3,1.4c0.6,0.3,1.2,0.5,1.9,0.5c0.7,0,1.3-0.2,1.9-0.5c0.6-0.3,1-0.8,1.3-1.4l10-21.2c0.6-1.3,0.9-2.9,0.9-4.9C28.1,10.2,26.7,6.9,24,4.1L24,4.1z M19,19c-1.4,1.4-3,2.1-5,2.1c-1.9,0-3.6-0.7-5-2.1C7.7,17.6,7,16,7,14c0-1.9,0.7-3.6,2.1-5c1.4-1.4,3-2.1,5-2.1c1.9,0,3.6,0.7,5,2.1c1.4,1.4,2.1,3,2.1,5C21.1,16,20.4,17.6,19,19L19,19z M19,19',

    // Attributes
    fillColor,
    fillOpacity: 1,
    scale: 0.6,
    strokeWeight: 2,
    strokeColor,

    // Pin Position/Offset Controls
    size: new google.maps.Size(29, 43),
    origin: new google.maps.Point(0, 0),
    anchor: new google.maps.Point(14, 43),
  });

  // Hover effects
  // NOTE: Can't use lambda expression because of `this` context
  const mouseover = function () {
    this.setIcon(createPin('#00cad9', '#004146'), this);
  };
  const mouseout = function () {
    this.setIcon(createPin('#00b7c5', '#004146'), this);
  };

  // Display info label on hover
  // NOTE: Can't use lambda expression because of `this` context
  const displayLabel = function () {
    // Close any existing infowindow
    if (Thriver.map.infowindow) Thriver.map.infowindow.close();

    // Create new infowindow
{'fraction_non_alphanumeric': 0.19892258579409416, 'fraction_numerical': 0.11332801276935354, 'mean_word_length': 3.448092280390417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '3734794', 'n_tokens_mistral': 2238, 'n_tokens_neox': 2100, 'n_words': 314}