<commit_before>// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

'use strict';

/**
 * @fileoverview RecordSelectionDialog presents the available categories
 * to be enabled/disabled during tracing.
 */
tvcm.requireTemplate('about_tracing.record_selection_dialog');

tvcm.require('tvcm.utils');
tvcm.require('tracing.filter');
tvcm.require('tvcm.ui.overlay');
tvcm.require('tvcm.ui.dom_helpers');
tvcm.require('tvcm.ui.info_bar');

tvcm.exportTo('about_tracing', function() {
  var RecordSelectionDialog = tvcm.ui.define('div');

  var DEFAULT_PRESETS = [
    {title: 'Web developer',
      categoryFilter: ['blink', 'browser', 'cc', 'renderer']},
    {title: 'Input latency',
      categoryFilter: ['input']},
    {title: 'Graphics and rendering',
      categoryFilter: ['blink', 'cc', 'renderer']},
    {title: 'Graphics, rendering, and rasterization',
      categoryFilter: ['blink', 'cc',
        'renderer', 'disabled-by-default-cc.debug']},
    {title: 'Manually select settings',
      categoryFilter: []}
  ];
  var DEFAULT_CONTINUOUS_TRACING = true;
  var DEFAULT_SYSTEM_TRACING = false;
  var DEFAULT_SAMPLING_TRACING = false;

  RecordSelectionDialog.prototype = {
    __proto__: tvcm.ui.Overlay.prototype,

    decorate: function() {
      tvcm.ui.Overlay.prototype.decorate.call(this);
      this.title = 'Record a new trace...';

      this.classList.add('record-dialog-overlay');

      var node = tvcm.instantiateTemplate('#record-selection-dialog-template');
      this.appendChild(node);

      this.recordButtonEl_ = document.createElement('button');
      this.recordButtonEl_.textContent = 'Record';
      this.recordButtonEl_.addEventListener(
          'click',
          this.onRecordButtonClicked_.bind(this));
      this.recordButtonEl_.style.fontSize = '110%';
      this.buttons.appendChild(this.recordButtonEl_);


      this.categoriesView_ = this.querySelector('.categories-column-view');<commit_msg>Update category presets<commit_after>// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

'use strict';

/**
 * @fileoverview RecordSelectionDialog presents the available categories
 * to be enabled/disabled during tracing.
 */
tvcm.requireTemplate('about_tracing.record_selection_dialog');

tvcm.require('tvcm.utils');
tvcm.require('tracing.filter');
tvcm.require('tvcm.ui.overlay');
tvcm.require('tvcm.ui.dom_helpers');
tvcm.require('tvcm.ui.info_bar');

tvcm.exportTo('about_tracing', function() {
  var RecordSelectionDialog = tvcm.ui.define('div');

  var DEFAULT_PRESETS = [
    {title: 'Web developer',
      categoryFilter: ['blink', 'browser', 'cc', 'net', 'v8']},
    {title: 'Input latency',
      categoryFilter: ['benchmark', 'input']},
    {title: 'Graphics and rendering',
      categoryFilter: ['blink', 'cc', 'gpu']},
    {title: 'Graphics, rendering, and rasterization',
      categoryFilter: ['blink', 'cc', 'gpu',
        'disabled-by-default-cc.debug']},
    {title: 'Manually select settings',
      categoryFilter: []}
  ];
  var DEFAULT_CONTINUOUS_TRACING = true;
  var DEFAULT_SYSTEM_TRACING = false;
  var DEFAULT_SAMPLING_TRACING = false;

  RecordSelectionDialog.prototype = {
    __proto__: tvcm.ui.Overlay.prototype,

    decorate: function() {
      tvcm.ui.Overlay.prototype.decorate.call(this);
      this.title = 'Record a new trace...';

      this.classList.add('record-dialog-overlay');

      var node = tvcm.instantiateTemplate('#record-selection-dialog-template');
      this.appendChild(node);

      this.recordButtonEl_ = document.createElement('button');
      this.recordButtonEl_.textContent = 'Record';
      this.recordButtonEl_.addEventListener(
          'click',
          this.onRecordButtonClicked_.bind(this));
      this.recordButtonEl_.style.fontSize = '110%';
      this.buttons.appendChild(this.recordButtonEl_);


      this.categoriesView_ = this.querySelector('.categories-column-view');
{'fraction_non_alphanumeric': 0.14188532555879493, 'fraction_numerical': 0.0036443148688046646, 'mean_word_length': 4.002430133657351, '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': '6956254', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1225, 'n_words': 259}