<commit_before>var Pointable = require('./pointable');

var Finger = module.exports = function(data) {
  Pointable.call(this, data); // use pointable as super-constructor
  this.dipPosition = data.dipPosition;
  this.pipPosition = data.pipPosition;
  this.mcpPosition = data.mcpPosition;
  this.extended = data.extended;
  this.type = data.type;
  this.finger = true;
  this.positions = [this.mcpPosition, this.pipPosition, this.dipPosition, this.tipPosition];
};

Finger.prototype = Pointable.prototype;

Finger.prototype.toString = function() {
  if(this.tool == true){
    return "Finger [ id:" + this.id + " " + this.length + "mmx | with:" + this.width + "mm | direction:" + this.direction + ' ]';
  } else {
    return "Finger [ id:" + this.id + " " + this.length + "mmx | direction: " + this.direction + ' ]';
  }
}

Finger.Invalid = { valid: false };<commit_msg>use _ to extend prototype<commit_after>var Pointable = require('./pointable')
  , _ = require('underscore');

var Finger = module.exports = function(data) {
  Pointable.call(this, data); // use pointable as super-constructor
  this.dipPosition = data.dipPosition;
  this.pipPosition = data.pipPosition;
  this.mcpPosition = data.mcpPosition;
  this.extended = data.extended;
  this.type = data.type;
  this.finger = true;
  this.positions = [this.mcpPosition, this.pipPosition, this.dipPosition, this.tipPosition];
};

_.extend(Finger.prototype, Pointable.prototype);

Finger.prototype.toString = function() {
  if(this.tool == true){
    return "Finger [ id:" + this.id + " " + this.length + "mmx | with:" + this.width + "mm | direction:" + this.direction + ' ]';
  } else {
    return "Finger [ id:" + this.id + " " + this.length + "mmx | direction: " + this.direction + ' ]';
  }
};

Finger.Invalid = { valid: false };
{'fraction_non_alphanumeric': 0.16312849162011173, 'fraction_numerical': 0.0, 'mean_word_length': 3.8274932614555257, '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': '2040858', 'n_tokens_mistral': 607, 'n_tokens_neox': 585, 'n_words': 122}