<commit_before>var test = require('assert');
var boxInfo = require('../main.js');

var lat = 43.646838,
    lon = -79.403723;


exports.geohashBoxDegreeDistortion = function(test){

  test.expect(1);

  var distortion = boxInfo.geohashPhysicalDistortionAtLat(lat);
  // console.log("DISTORTION IS", distortion);

  test.equal(distortion, 1.4472157423927816);

  test.done();
};

exports.geohashBoxDegreeSize = function(test){

  test.expect(2);

  var geohashBox = boxInfo.geohashBoxInDegrees(lat, 45, 10);
  // console.log("Box SIZE", geohashBox);

  test.equal(geohashBox.degHeight, 5.625);
  test.equal(geohashBox.degWidth, 11.25);
<commit_msg>updating test for node 11<commit_after>var test = require('assert');
var boxInfo = require('../main.js');

var lat = 43.646838,
    lon = -79.403723;


exports.geohashBoxDegreeDistortion = function(test){

  test.expect(1);

  var distortion = boxInfo.geohashPhysicalDistortionAtLat(lat);

  test.equal(Math.round(distortion*10000000000000), Math.round(1.4472157423927816*10000000000000));
  // On account of different systems calculating the math

  test.done();
};

exports.geohashBoxDegreeSize = function(test){

  test.expect(2);

  var geohashBox = boxInfo.geohashBoxInDegrees(lat, 45, 10);
  // console.log("Box SIZE", geohashBox);

  test.equal(geohashBox.degHeight, 5.625);
  test.equal(geohashBox.degWidth, 11.25);

{'fraction_non_alphanumeric': 0.14660831509846828, 'fraction_numerical': 0.09044493070751276, 'mean_word_length': 4.8382978723404255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4686736', 'n_tokens_mistral': 601, 'n_tokens_neox': 488, 'n_words': 85}