<commit_before>/**
 *
 *
 */
(function(core) {
    'use strict';

    core.browser = core.browser || {};

(function(browser) {

    browser.DisplayTab = browser.NodeTab.extend({

        pathPattern: new RegExp('^(https?://[^/]+)?(/.*)$'),
        urlPattern: new RegExp('^(.*/[^/]+)(\\.[^.]+)'),

        initialize: function(options) {
            /* get abstract members
            options: {
                displayKey: '...',
                loadContent: function(url) {
                    this.$iframe.attr('src', url);
                }
            },*/
            this.displayKey = options.displayKey;
            this.loadContent = options.loadContent;
            /* general initialization */
            this.$mappedButton = this.$('.detail-toolbar .resolver');
            this.$pathPrefix = this.$('.detail-toolbar .prefix input');
            this.$selectors = this.$('.detail-toolbar .selectors input');
            this.$parameters = this.$('.detail-toolbar .parameters input');
            this.$('.detail-toolbar .reload').click(_.bind (this.reload, this));
            this.$('.detail-toolbar .open').click(_.bind (this.open, this));
            this.$pathPrefix.val(core.console.getProfile().get(this.displayKey,'pathPrefix'));
            this.$pathPrefix.on('change.display', _.bind(this.onPrefixChange, this));
            this.$selectors.val(core.console.getProfile().get(this.displayKey,'selectors'));
            this.$selectors.on('change.display', _.bind(this.onSelectorsChange, this));
            this.$parameters.val(core.console.getProfile().get(this.displayKey,'parameters'));
            this.$parameters.on('change.display', _.bind(this.onParametersChange, this));
            this.$mappedButton.on('click.display', _.bind(this.toggleMapped, this));<commit_msg>prevent from selectors in the path prefix<commit_after>/**
 *
 *
 */
(function(core) {
    'use strict';

    core.browser = core.browser || {};

(function(browser) {

    browser.DisplayTab = browser.NodeTab.extend({

        pathPattern: new RegExp('^(https?://[^/]+)?(/.*)$'),
        urlPattern: new RegExp('^(.*/[^/]+)(\\.[^.]+)$'),

        initialize: function(options) {
            /* get abstract members
            options: {
                displayKey: '...',
                loadContent: function(url) {
                    this.$iframe.attr('src', url);
                }
            },*/
            this.displayKey = options.displayKey;
            this.loadContent = options.loadContent;
            /* general initialization */
            this.$mappedButton = this.$('.detail-toolbar .resolver');
            this.$pathPrefix = this.$('.detail-toolbar .prefix input');
            this.$selectors = this.$('.detail-toolbar .selectors input');
            this.$parameters = this.$('.detail-toolbar .parameters input');
            this.$('.detail-toolbar .reload').click(_.bind (this.reload, this));
            this.$('.detail-toolbar .open').click(_.bind (this.open, this));
            this.$pathPrefix.val(core.console.getProfile().get(this.displayKey,'pathPrefix'));
            this.$pathPrefix.on('change.display', _.bind(this.onPrefixChange, this));
            this.$selectors.val(core.console.getProfile().get(this.displayKey,'selectors'));
            this.$selectors.on('change.display', _.bind(this.onSelectorsChange, this));
            this.$parameters.val(core.console.getProfile().get(this.displayKey,'parameters'));
            this.$parameters.on('change.display', _.bind(this.onParametersChange, this));
            this.$mappedButton.on('click.display', _.bind(this.toggleMapped, this));
{'fraction_non_alphanumeric': 0.1827956989247312, 'fraction_numerical': 0.0, 'mean_word_length': 2.356151711378353, 'pattern_counts': {'":': 0, '<': 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': '1798465', 'n_tokens_mistral': 992, 'n_tokens_neox': 962, 'n_words': 145}