<commit_before>;(function($) {
    'use strict';

    /**
     * Monitors inputs and filters a list of positions when they change.
     */
    function PositionFilters(typeInput, teamInput, locationInput, positionTable) {
        this.$typeInput = $(typeInput);
        this.$teamInput = $(teamInput);
        this.$locationInput = $(locationInput);
        this.$positionTable = $(positionTable);
        this.$emptyFilterMessage = this.$positionTable.find('.empty-filter-message');
    }

    PositionFilters.prototype = {
        /**
         * Mapping of location filter value -> Locations it matches
         */
        locationsFor: {
            remote: ['Remote'],
            berlin: ['Berlin', 'Europe', 'Any Office', 'Remote'],
            boston: ['Boston', 'US', 'North America', 'Any Office', 'Remote'],
            london: ['London', 'Europe', 'Any Office', 'Remote'],
            mountainview: ['Mountain View', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote'],
            newzealand: ['New Zealand', 'Any Office', 'Remote'],
            paris: ['Paris', 'Europe', 'Any Office', 'Remote'],
            portland: ['Portland', 'US', 'North America', 'Any Office', 'Remote'],
            sanfrancisco: ['San Francisco', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote'],
            toronto: ['Toronto', 'North America', 'Any Office', 'Remote'],
            vancouver: ['Vancouver', 'North America', 'Any Office', 'Remote'],
            bayarea: ['Mountain View', 'San Francisco', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote'],
            latinamerica: ['Latin America', 'Remote'],
            northamerica: ['Boston', 'Portland', 'Mountain View', 'San Francisco', 'Toronto', 'Vancouver', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote'],
            europe: ['Berlin', 'London', 'Paris', 'Europe', 'Any Office', 'Remote']
        },

        /**
         * Bind onFilterChange to the change events for each input.
         */
        bindEvents: function() {
            var self = this;
            var callback = function() {
                self.onFilterChange();
            };

            this.$typeInput.change(callback);
            this.$teamInput.change(callback);
            this.$locationInput.change(callback);<commit_msg>Fix bug 931851: Include jobs in "All" location in filtered results.<commit_after>;(function($) {
    'use strict';

    /**
     * Monitors inputs and filters a list of positions when they change.
     */
    function PositionFilters(typeInput, teamInput, locationInput, positionTable) {
        this.$typeInput = $(typeInput);
        this.$teamInput = $(teamInput);
        this.$locationInput = $(locationInput);
        this.$positionTable = $(positionTable);
        this.$emptyFilterMessage = this.$positionTable.find('.empty-filter-message');
    }

    PositionFilters.prototype = {
        /**
         * Mapping of location filter value -> Locations it matches
         */
        locationsFor: {
            remote: ['Remote', 'All'],
            berlin: ['Berlin', 'Europe', 'Any Office', 'Remote', 'All'],
            boston: ['Boston', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            london: ['London', 'Europe', 'Any Office', 'Remote', 'All'],
            mountainview: ['Mountain View', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            newzealand: ['New Zealand', 'Any Office', 'Remote', 'All'],
            paris: ['Paris', 'Europe', 'Any Office', 'Remote', 'All'],
            portland: ['Portland', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            sanfrancisco: ['San Francisco', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            toronto: ['Toronto', 'North America', 'Any Office', 'Remote', 'All'],
            vancouver: ['Vancouver', 'North America', 'Any Office', 'Remote', 'All'],
            bayarea: ['Mountain View', 'San Francisco', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            latinamerica: ['Latin America', 'Remote', 'All'],
            northamerica: ['Boston', 'Portland', 'Mountain View', 'San Francisco', 'Toronto', 'Vancouver', 'Bay Area', 'US', 'North America', 'Any Office', 'Remote', 'All'],
            europe: ['Berlin', 'London', 'Paris', 'Europe', 'Any Office', 'Remote', 'All', 'All']
        },

        /**
         * Bind onFilterChange to the change events for each input.
         */
        bindEvents: function() {
            var self = this;
            var callback = function() {
                self.onFilterChange();
            };

            this.$typeInput.change(callback);
            this.$teamInput.change(callback);
            this.$locationInput.change(callback);
{'fraction_non_alphanumeric': 0.17248632730332353, 'fraction_numerical': 0.0012620950778291964, 'mean_word_length': 2.575187969924812, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4874635', 'n_tokens_mistral': 1291, 'n_tokens_neox': 1257, 'n_words': 385}