<commit_before>/**
  A tree structure for assembling a list of render calls so they can be grouped and displayed nicely afterwards.

  @class ProfileNode
**/
var get = Ember.get;
var guidFor = Ember.guidFor;

var ProfileNode = function(start, payload, parent) {
  var name;
  this.start = start;
  this.timestamp = Date.now();

  if (payload) {
    if (payload.template) {
      name = payload.template;
    } else if (payload.view) {
      var view = payload.view;
      name = get(view, 'instrumentDisplay') || get(view, '_debugContainerKey');
      this.viewGuid = guidFor(view);
    }

    if (!name && payload.object) {
      name = payload.object.toString().replace(/:?:ember\d+>$/, '').replace(/^</, '');
      if (!this.viewGuid) {
        var match = name.match(/:(ember\d+)>$/);
        if (match && match.length > 1) {
          this.viewGuid = match[1];
        }
      }
    }
  }

  this.name = name || 'Unknown view';

  if (parent) { this.parent = parent; }
  this.children = [];
};<commit_msg>Remove view: from view container names<commit_after>/**
  A tree structure for assembling a list of render calls so they can be grouped and displayed nicely afterwards.

  @class ProfileNode
**/
var get = Ember.get;
var guidFor = Ember.guidFor;

var ProfileNode = function(start, payload, parent) {
  var name;
  this.start = start;
  this.timestamp = Date.now();

  if (payload) {
    if (payload.template) {
      name = payload.template;
    } else if (payload.view) {
      var view = payload.view;
      name = get(view, 'instrumentDisplay') || get(view, '_debugContainerKey');
      if (name) {
        name = name.replace(/^view:/, '');
      }
      this.viewGuid = guidFor(view);
    }

    if (!name && payload.object) {
      name = payload.object.toString().replace(/:?:ember\d+>$/, '').replace(/^</, '');
      if (!this.viewGuid) {
        var match = name.match(/:(ember\d+)>$/);
        if (match && match.length > 1) {
          this.viewGuid = match[1];
        }
      }
    }
  }

  this.name = name || 'Unknown view';

  if (parent) { this.parent = parent; }
  this.children = [];
};
{'fraction_non_alphanumeric': 0.1641438032166509, 'fraction_numerical': 0.001892147587511826, 'mean_word_length': 2.5786802030456855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5430452', 'n_tokens_mistral': 689, 'n_tokens_neox': 666, 'n_words': 177}