<commit_before>// node-inspector version of on webkit-inspector/InspectorPageAgent.cpp
var fs = require('fs'),
  path = require('path'),
  inherits = require('util').inherits,
  extend = require('util')._extend,
  EventEmitter = require('events').EventEmitter,
  async = require('async'),
  convert = require('./convert.js'),
  ScriptFileStorage = require('./ScriptFileStorage.js').ScriptFileStorage;


/**
 * @param {{preload}} config
 * @param {DebuggerClient} debuggerClient
 * @param {ScriptManager} scriptManager
 * @constructor
 */
function PageAgent(config, debuggerClient, scriptManager) {
  this._debuggerClient = debuggerClient;
  this._scriptManager = scriptManager;
  this._scriptStorage = new ScriptFileStorage(config, scriptManager);
}

inherits(PageAgent, EventEmitter);

extend(PageAgent.prototype, {
  enable: function(params, done) {
    done();
  },

  canShowFPSCounter: function(params, done) {
    done(null, { show: false });
  },

  canContinuouslyPaint: function(params, done) {
    done(null, { value: false });
  },

  setTouchEmulationEnabled: function(params, done) {
    done();
  },
<commit_msg>Added PageAgent canEmulate and canScreencast callbacks<commit_after>// node-inspector version of on webkit-inspector/InspectorPageAgent.cpp
var fs = require('fs'),
  path = require('path'),
  inherits = require('util').inherits,
  extend = require('util')._extend,
  EventEmitter = require('events').EventEmitter,
  async = require('async'),
  convert = require('./convert.js'),
  ScriptFileStorage = require('./ScriptFileStorage.js').ScriptFileStorage;


/**
 * @param {{preload}} config
 * @param {DebuggerClient} debuggerClient
 * @param {ScriptManager} scriptManager
 * @constructor
 */
function PageAgent(config, debuggerClient, scriptManager) {
  this._debuggerClient = debuggerClient;
  this._scriptManager = scriptManager;
  this._scriptStorage = new ScriptFileStorage(config, scriptManager);
}

inherits(PageAgent, EventEmitter);

extend(PageAgent.prototype, {
  enable: function(params, done) {
    done();
  },

  canEmulate: function(params, done) {
    done(null, { result: false });
  },

  canScreencast: function(params, done) {
    done(null, { result: false });
  },

  setTouchEmulationEnabled: function(params, done) {
    done();
  },

{'fraction_non_alphanumeric': 0.14198071866783524, 'fraction_numerical': 0.0, 'mean_word_length': 5.0396825396825395, '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': '2921699', 'n_tokens_mistral': 684, 'n_tokens_neox': 676, 'n_words': 141}