<commit_before>/* global prompt */

var $ = require('jquery');
var ethJSUtil = require('ethereumjs-util');
var EthJSTX = require('ethereumjs-tx');
var ethJSABI = require('ethereumjs-abi');
var EthJSBlock = require('ethereumjs-block');
var BN = ethJSUtil.BN;
var EventManager = require('./lib/eventManager');

/*
  trigger debugRequested
*/
function UniversalDApp (executionContext, options, txdebugger) {
  this.event = new EventManager();
  var self = this;

  self.options = options || {};
  self.$el = $('<div class="udapp" />');
  self.contracts;
  self.getAddress;
  self.getValue;
  self.getGasLimit;
  self.txdebugger = txdebugger; // temporary: will not be needed anymore when we'll add memory support to the VM
  var defaultRenderOutputModifier = function (name, content) { return content; };
  self.renderOutputModifier = defaultRenderOutputModifier;
  self.web3 = executionContext.web3();
  self.vm = executionContext.vm();
  self.executionContext = executionContext;
  self.executionContext.event.register('contextChanged', this, function (context) {
    self.reset(self.contracts);
  });
}

UniversalDApp.prototype.reset = function (contracts, getAddress, getValue, getGasLimit, renderer) {
  this.$el.empty();
  this.contracts = contracts;
  this.getAddress = getAddress;
  this.getValue = getValue;
  this.getGasLimit = getGasLimit;
  this.renderOutputModifier = renderer;
  this.accounts = {};
  if (this.executionContext.isVM()) {
    this.addAccount('3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511');
    this.addAccount('<KEY>');
  }<commit_msg>Include 3 more default addresses in VM mode<commit_after>/* global prompt */

var $ = require('jquery');
var ethJSUtil = require('ethereumjs-util');
var EthJSTX = require('ethereumjs-tx');
var ethJSABI = require('ethereumjs-abi');
var EthJSBlock = require('ethereumjs-block');
var BN = ethJSUtil.BN;
var EventManager = require('./lib/eventManager');

/*
  trigger debugRequested
*/
function UniversalDApp (executionContext, options, txdebugger) {
  this.event = new EventManager();
  var self = this;

  self.options = options || {};
  self.$el = $('<div class="udapp" />');
  self.contracts;
  self.getAddress;
  self.getValue;
  self.getGasLimit;
  self.txdebugger = txdebugger; // temporary: will not be needed anymore when we'll add memory support to the VM
  var defaultRenderOutputModifier = function (name, content) { return content; };
  self.renderOutputModifier = defaultRenderOutputModifier;
  self.web3 = executionContext.web3();
  self.vm = executionContext.vm();
  self.executionContext = executionContext;
  self.executionContext.event.register('contextChanged', this, function (context) {
    self.reset(self.contracts);
  });
}

UniversalDApp.prototype.reset = function (contracts, getAddress, getValue, getGasLimit, renderer) {
  this.$el.empty();
  this.contracts = contracts;
  this.getAddress = getAddress;
  this.getValue = getValue;
  this.getGasLimit = getGasLimit;
  this.renderOutputModifier = renderer;
  this.accounts = {};
  if (this.executionContext.isVM()) {
    this.addAccount('3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511');
    this.addAccount('<KEY>');
    this.addAccount('dae9801649ba2d95a21e688b56f77905e5667c44ce868ec83f82e838712a2c7a');
    this.addAccount('<KEY>');
    this.addAccount('71975fbf7fe448e004ac7ae54cad0a383c3906055a65468714156a07385e96ce');
  }
{'fraction_non_alphanumeric': 0.12992357436801882, 'fraction_numerical': 0.047619047619047616, 'mean_word_length': 5.20985401459854, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3999520', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1123, 'n_words': 218}