<commit_before>var regression = require('../lib');
var expect = require('chai').expect;
var should = require('chai').should();
var assert = require('chai').assert;

var validData = [
  [0.827106,	32699512],
  [1.275007,	50550730],
  [1.435098,	56214886],
  [1.597657,	63010730],
  [1.748174,	68767902],
  [1.904614,	75539606]
];

var expectedInterceptCoefficient = -57754.83954;
var expectedVarX1Coefficient = 39501989.4995;

describe('anova', function () {
  it('should return the intercept coefficient', function() {
    expect(regression.calculate(validData).anova.intercept.coefficient).to.be.equal(expectedInterceptCoefficient);
  });

  it('should return the varX1 coefficient', function() {
    expect(regression.calculate(validData).anova.varX1.coefficient).to.be.equal(expectedVarX1Coefficient);
  });

  it('should return the regression df', function() {
    expect(1).to.be.equal(regression.calculate(validData).anova.regression.df);<commit_msg>Removing unused var 'should' and 'assert'<commit_after>var regression = require('../lib');
var expect = require('chai').expect;

var validData = [
  [0.827106,	32699512],
  [1.275007,	50550730],
  [1.435098,	56214886],
  [1.597657,	63010730],
  [1.748174,	68767902],
  [1.904614,	75539606]
];

var expectedInterceptCoefficient = -57754.83954;
var expectedVarX1Coefficient = 39501989.4995;

describe('anova', function () {
  it('should return the intercept coefficient', function() {
    expect(regression.calculate(validData).anova.intercept.coefficient).to.be.equal(expectedInterceptCoefficient);
  });

  it('should return the varX1 coefficient', function() {
    expect(regression.calculate(validData).anova.varX1.coefficient).to.be.equal(expectedVarX1Coefficient);
  });

  it('should return the regression df', function() {
    expect(1).to.be.equal(regression.calculate(validData).anova.regression.df);
{'fraction_non_alphanumeric': 0.1555793991416309, 'fraction_numerical': 0.1255364806866953, 'mean_word_length': 5.520979020979021, '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': '710257', 'n_tokens_mistral': 801, 'n_tokens_neox': 650, 'n_words': 108}