<commit_before>// resolve basis.js instance for inspect
var inspectBasis = global[basis.config.inspectBasisRef];
delete global[basis.config.inspectBasisRef];
this.inspectBasis = inspectBasis;

// check basis.js instance found
if (!inspectBasis)
{
  basis.dev.warn('inspect basis.js instance doesn\'t found');
  return;
}

// much strict template isolation, to prevent style mix with inspecting basis app styles,
// as isolation prefixes based on template id in dev mode
basis.patch('basis.template', function(exports){
  exports.Template.extend({
    isolatePrefix_: false,
    getIsolatePrefix: function(){
      if (!this.isolatePrefix_)
        this.isolatePrefix_ = basis.genUID().replace(/^[^a-z]/i, 'i$&') + '__';
      return this.isolatePrefix_;
    }
  });
});

// everything ok, init interface
basis.nextTick(function(){
  basis.ready(function(){<commit_msg>devpanel: no warning on basis.template patch<commit_after>// resolve basis.js instance for inspect
var inspectBasis = global[basis.config.inspectBasisRef];
delete global[basis.config.inspectBasisRef];
this.inspectBasis = inspectBasis;

// check basis.js instance found
if (!inspectBasis)
{
  basis.dev.warn('inspect basis.js instance doesn\'t found');
  return;
}

// much strict template isolation, to prevent style mix with inspecting basis app styles,
// as isolation prefixes based on template id in dev mode
require('basis.template').Template.extend({
  isolatePrefix_: false,
  getIsolatePrefix: function(){
    if (!this.isolatePrefix_)
      this.isolatePrefix_ = basis.genUID().replace(/^[^a-z]/i, 'i$&') + '__';
    return this.isolatePrefix_;
  }
});

// everything ok, init interface
basis.nextTick(function(){
  basis.ready(function(){
{'fraction_non_alphanumeric': 0.12995337995337997, 'fraction_numerical': 0.0, 'mean_word_length': 4.55663430420712, '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': '7111314', 'n_tokens_mistral': 526, 'n_tokens_neox': 512, 'n_words': 138}