<commit_before>'use strict';


const pathUtil = require('path');
const sinon = require('sinon');
const request = require('supertest');
const Logger = require('plover-logger')

const util = require('../util');
const plover = require('../../');


describe('core/view-render', function() {
  const root = pathUtil.join(__dirname, '../fixtures/core/app');
  const app = plover({ applicationRoot: root });
  const agent = request.agent(app.callback());

  beforeEach(function() {
    sinon.stub(Logger.prototype, 'error');
  });

  afterEach(function() {
    if (this.expectError) {<commit_msg>chore: pass lint<commit_after>'use strict';


const pathUtil = require('path');
const sinon = require('sinon');
const request = require('supertest');
const Logger = require('plover-logger');

const util = require('../util');
const plover = require('../../');


describe('core/view-render', function() {
  const root = pathUtil.join(__dirname, '../fixtures/core/app');
  const app = plover({ applicationRoot: root });
  const agent = request.agent(app.callback());

  beforeEach(function() {
    sinon.stub(Logger.prototype, 'error');
  });

  afterEach(function() {
    if (this.expectError) {
{'fraction_non_alphanumeric': 0.1895093062605753, 'fraction_numerical': 0.0, 'mean_word_length': 4.606635071090047, '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': '1518800', 'n_tokens_mistral': 360, 'n_tokens_neox': 351, 'n_words': 82}