<commit_before>/* globals window */
var Backbone = require('backbone'),
    $ = require('jquery'),
    Query = require('lib/query'),
    _ = require('underscore'),
    facilities = require('collections/facilities').instance,
    searchParams = ["fr"];

function validCategory(category) {
  return category && (/[a-z]+/).test(category.toString());
}

function getData($elements, dataAttrName) {
  var result = [];
  $elements.each(function(n, el) {
    result.push($(el).data(dataAttrName));
  });
  return result;
}

var CATEGORIES = [
  {
    key: "food",
    title: "Food",
    icon: "shopping-cart"

  },
  {
    key: "medical",
    title: "Medical",
    icon: "heart"
  },
  {
    key: "housing",
    title: "Housing",
    icon: "briefcase"
  },
  {
    key: "technology",
    title: "Technology",
    icon: "hdd"
  },
  {
    key: "hygiene",
    title: "Hygiene",
    icon: "tint"
  }
];

var ListView = Backbone.View.extend({
  template: require('templates/list'),

  events: {
    "click #filter": 'toggleSearch',
    "click .query .submit-query": 'doFilterQuery',
    "click .query .dismiss": 'dismissFilters',
    "click #load-more": 'loadMore'
  },

  initialize: function() {
    this.listenTo(this.collection, 'reset', this.render);
  },
<commit_msg>consume new icons for list view<commit_after>/* globals window */
var Backbone = require('backbone'),
    $ = require('jquery'),
    Query = require('lib/query'),
    _ = require('underscore'),
    facilities = require('collections/facilities').instance,
    searchParams = ["fr"];

function validCategory(category) {
  return category && (/[a-z]+/).test(category.toString());
}

function getData($elements, dataAttrName) {
  var result = [];
  $elements.each(function(n, el) {
    result.push($(el).data(dataAttrName));
  });
  return result;
}

var CATEGORIES = [
  {
    key: "food",
    title: "Food",
    icon: "coffee"
  },
  {
    key: "medical",
    title: "Medical",
    icon: "medical"
  },
  {
    key: "housing",
    title: "Housing",
    icon: "house"
  },
  {
    key: "technology",
    title: "Technology",
    icon: "desktop"
  },
  {
    key: "hygiene",
    title: "Hygiene",
    icon: "droplet"
  }
];

var ListView = Backbone.View.extend({
  template: require('templates/list'),

  events: {
    "click #filter": 'toggleSearch',
    "click .query .submit-query": 'doFilterQuery',
    "click .query .dismiss": 'dismissFilters',
    "click #load-more": 'loadMore'
  },

  initialize: function() {
    this.listenTo(this.collection, 'reset', this.render);
  },

{'fraction_non_alphanumeric': 0.18550610476565577, 'fraction_numerical': 0.0, 'mean_word_length': 3.219269102990033, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, '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': '3187739', 'n_tokens_mistral': 895, 'n_tokens_neox': 869, 'n_words': 177}