<commit_before>
var inherits = require('util').inherits,
    inspect  = require('util').inspect

var _super = function (self) {
  return self.constructor.super_
}

// Base class for the type of any expression in Hummingbird.
function Type () {
  // Whether or not the type is a root type of the language
  this.intrinsic = false
}
Type.prototype.equals = function (other) { return false }
Type.prototype.toString = function () {
  if (this.inspect) { return this.inspect() }
  return this.constructor.name
}

function String () {
  _super(this).apply(this)
  this.intrinsic = true
}
inherits(String, Type)
String.prototype.toString = function () { return 'String' }
String.prototype.inspect  = String.prototype.toString
String.prototype.equals   = function (other) {
  // Check that they're both strings
  return this.prototype === other.prototype
}


function Number () {
  _super(this).apply(this)
  this.intrinsic = true
}
inherits(Number, Type)
Number.prototype.inspect = function () { return 'Number' }
Number.prototype.equals = function (other) {
  return (other.constructor === Number)
}


function Unknown () {
  _super(this).apply(this)
  this.intrinsic = true
  this.known     = null
}
inherits(Unknown, Type)
Unknown.prototype.inspect = function () { return 'Unknown' }


// Utility function used by the Function type
function isTrue (value) {
  return value === true
}<commit_msg>Bugfix in string types comparison<commit_after>
var inherits = require('util').inherits,
    inspect  = require('util').inspect

var _super = function (self) {
  return self.constructor.super_
}

// Base class for the type of any expression in Hummingbird.
function Type () {
  // Whether or not the type is a root type of the language
  this.intrinsic = false
}
Type.prototype.equals = function (other) { return false }
Type.prototype.toString = function () {
  if (this.inspect) { return this.inspect() }
  return this.constructor.name
}

function String () {
  _super(this).apply(this)
  this.intrinsic = true
}
inherits(String, Type)
String.prototype.toString = function () { return 'String' }
String.prototype.inspect  = String.prototype.toString
String.prototype.equals   = function (other) {
  // Check that they're both strings
  return (other.constructor === String)
}


function Number () {
  _super(this).apply(this)
  this.intrinsic = true
}
inherits(Number, Type)
Number.prototype.inspect = function () { return 'Number' }
Number.prototype.equals = function (other) {
  return (other.constructor === Number)
}


function Unknown () {
  _super(this).apply(this)
  this.intrinsic = true
  this.known     = null
}
inherits(Unknown, Type)
Unknown.prototype.inspect = function () { return 'Unknown' }


// Utility function used by the Function type
function isTrue (value) {
  return value === true
}
{'fraction_non_alphanumeric': 0.1225, 'fraction_numerical': 0.0, 'mean_word_length': 4.055956678700361, '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': '6363209', 'n_tokens_mistral': 837, 'n_tokens_neox': 824, 'n_words': 240}