<commit_before>---
---
$(document).ready(function(){
  // Define search globals
  const targetEIN = $('h1.org-name').data('ein');

  // Initialize Materialize components
  // Note: if the element is created dynamically via Instantsearch widget,
  // the plugin needs to be initialized in the normal Instantsearch workflow
  // using the render method (e.g. search.once('render'...)
  $('.parallax').parallax();
  $('.sidenav').sidenav();


  // Note - fixed grants header handled by profile.js

  // Helper definitions
  const scrollAnchor = $('#grants').offset().top;
  const isMobile = window.matchMedia('only screen and (max-width: 992px)');

  // Algolia Instantsearch init
  const search = instantsearch({
    appId: 'QA1231C5W9',
    apiKey: '<KEY>',
    indexName: 'grantmakers_io',
    numberLocale: 'en-US',
    urlSync: true,
    searchParameters: {
      'filters': 'ein:' + targetEIN
    }
  });

  // Define templates
  const templateHits = `{% include algolia/hits.html %}`;
  const templateHitsEmpty = `{% include algolia/hits-empty.html %}`;
  const templateRefinementItem = `{% include algolia/refinement-item.html %}`;
  const templateRefinementHeader = `{% include algolia/refinement-header.html %}`;
  const templateCurrentRefinedValues = `{% include algolia/current-refined-values.html %}`;
  const templateShowMoreActive = `{% include algolia/show-more-active.html %}`;
  const templateShowMoreInactive = `{% include algolia/show-more-inactive.html %}`;

  // Define color palette
  const widgetHeaderClasses = ['card-header', 'grey', 'lighten-4'];

  // Construct widgets
  search.addWidget(<commit_msg>Update Instantsearch 'urlSync' to 'routing'<commit_after>---
---
$(document).ready(function(){
  // Define search globals
  const targetEIN = $('h1.org-name').data('ein');

  // Initialize Materialize components
  // Note: if the element is created dynamically via Instantsearch widget,
  // the plugin needs to be initialized in the normal Instantsearch workflow
  // using the render method (e.g. search.once('render'...)
  $('.parallax').parallax();
  $('.sidenav').sidenav();


  // Note - fixed grants header handled by profile.js

  // Helper definitions
  const scrollAnchor = $('#grants').offset().top;
  const isMobile = window.matchMedia('only screen and (max-width: 992px)');

  // Algolia Instantsearch init
  const search = instantsearch({
    appId: 'QA1231C5W9',
    apiKey: '<KEY>',
    indexName: 'grantmakers_io',
    numberLocale: 'en-US',
    routing: true,
    searchParameters: {
      'filters': 'ein:' + targetEIN
    }
  });

  // Define templates
  const templateHits = `{% include algolia/hits.html %}`;
  const templateHitsEmpty = `{% include algolia/hits-empty.html %}`;
  const templateRefinementItem = `{% include algolia/refinement-item.html %}`;
  const templateRefinementHeader = `{% include algolia/refinement-header.html %}`;
  const templateCurrentRefinedValues = `{% include algolia/current-refined-values.html %}`;
  const templateShowMoreActive = `{% include algolia/show-more-active.html %}`;
  const templateShowMoreInactive = `{% include algolia/show-more-inactive.html %}`;

  // Define color palette
  const widgetHeaderClasses = ['card-header', 'grey', 'lighten-4'];

  // Construct widgets
  search.addWidget(
{'fraction_non_alphanumeric': 0.14929920780012187, 'fraction_numerical': 0.006703229737964655, 'mean_word_length': 3.892697466467958, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1413725', 'n_tokens_mistral': 1042, 'n_tokens_neox': 984, 'n_words': 243}