<commit_before>'use strict';

var math = require('../../../index'),
flatten = math.flatten;

function factory (type, config, load, typed) {


  /**
   * Calculates the Euclidean distance between two points.
   *
   * Syntax:
   *
   *    math.distance([x1, y1], [x2, y2]);
   *    math.distance([[x1, y1], [x2, y2]);
   *
   * Examples:
   *
   *    math.distance([0,0], [4,4]) //returns 5.6569
   *    math.distance([[0,0], [4,4]]) //returns 5.6569
   *<commit_msg>Removed wrong and redundant import from `distance`<commit_after>'use strict';

function factory (type, config, load, typed) {
  /**
   * Calculates the Euclidean distance between two points.
   *
   * Syntax:
   *
   *    math.distance([x1, y1], [x2, y2]);
   *    math.distance([[x1, y1], [x2, y2]);
   *
   * Examples:
   *
   *    math.distance([0,0], [4,4]) //returns 5.6569
   *    math.distance([[0,0], [4,4]]) //returns 5.6569
   *
{'fraction_non_alphanumeric': 0.2013274336283186, 'fraction_numerical': 0.05752212389380531, 'mean_word_length': 2.693877551020408, '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': '2210804', 'n_tokens_mistral': 366, 'n_tokens_neox': 345, 'n_words': 77}