<commit_before>// Generated by CoffeeScript 1.9.1
var _deep_equal, _empty, a, an, be, contain, deep_equal, does_exist, empty, eq, eql, equal, error, exist, expect, greater, greater_or_equal, greater_than, gt, gte, have, include, is_empty, is_ok, length, less, less_or_equal, less_than, lt, lte, match, negate, neq, not_equal, nt, ok, sentence, should_throw, str, than, to, truthy;

_deep_equal = require("deep-equal");

_empty = require("lodash.isempty");

str = function(v) {
  var e;
  try {
    return JSON.stringify(v);
  } catch (_error) {
    e = _error;
    return String(v);
  }
};

exist = {};

empty = {};

error = {};

ok = truthy = {};

is_empty = function(x) {
  return [_empty(x), "expected " + x + " to be empty"];
};

is_ok = function(x) {
  return [!!x, "expected " + x + " to be truthy"];
};

does_exist = function(x) {
  return [x != null, "expected " + x + " to exist"];
};

should_throw = function(f) {
  var e;
  return [
    ((function() {
      try {
        f();
      } catch (_error) {
        e = _error;
      }
      return e != null;
    })()), "expected function to throw an error"
  ];
};

expect = function(x) {
  return function(y) {
    var label, okay, ref;
    if (typeof y !== "function") {
      throw new Error("Pass a function");
    }
    ref = y(x), okay = ref[0], label = ref[1];
    if (!okay) {
      throw new Error(label);
    }
  };
};

than = function(x) {
  return x;
};

eq = equal = function(y) {
  return function(x) {
    return [x === y, "expected " + x + " to equal " + y];
  };
};

neq = not_equal = function(y) {
  return function(x) {
    return [x !== y, "expected " + x + " to not equal " + y];
  };
};

eql = deep_equal = function(x) {
  return function(y) {
    return [
      _deep_equal(x, y, {
        strict: true
      }), "expected " + x + " to deep equal " + y
    ];
  };
};

gt = greater = greater_than = function(y) {
  return function(x) {
    return [x > y, "expected " + x + " to be greater than " + y];
  };
};

lt = less = less_than = function(y) {
  return function(x) {
    return [x < y, "expected " + x + " to be less than " + y];
  };
};

gte = greater_or_equal = function(y) {
  return function(x) {
    return [x >= y, "expected " + x + " to be greater than or equal to " + y];
  };
};

lte = less_or_equal = function(y) {
  return function(x) {
    return [x <= y, "expected " + x + " to be less than or equal to " + y];
  };
};

contain = include = function(x) {
  return function(y) {
    return [y.indexOf(x) !== -1, "expected " + y + " to contain " + x];
  };
};

length = function(x) {
  return function(y) {
    return [y.length === x, "expected " + y + " to have `length` " + x];
  };
};

match = function(x) {
  return function(y) {
    return [x.test(y), "expected " + y + " to match " + x];
  };
};

negate = function(f) {
  return function(x) {
    var label, okay, ref;
    ref = f(x), okay = ref[0], label = ref[1];
    return [!okay, label.replace("expected", "did not expect")];
  };
};

have = function(p) {
  if (typeof p === "function") {
    return p;
  }
  return function(x) {
    return function(y) {
      return [y[p] === x, "expected property " + p + " of " + y + " to equal " + x];
    };
  };
};

a = an = function(x) {
  return function(y) {
    if (x === Object) {
      return [y instanceof x, "expected " + y + " to be an instance of " + x.name];
    }
    return [Object(y) instanceof x, "expected " + y + " to be an instance of " + x.name];
  };
};

be = to = function(x) {
  if (x === empty) {
    return is_empty;
  }
  if (x === ok) {
    return is_ok;
  }
  if (x === exist) {
    return does_exist;
  }
  if (x === error) {
    return should_throw;
  }
  return x;
};

nt = function(f) {
  if (f === empty) {
    return negate(is_empty);
  }
  if (f === ok) {
    return negate(is_ok);
  }
  if (f === exist) {
    return negate(does_exist);
  }
  if (f === error) {
    return negate(should_throw);
  }
  return negate(f);
};<commit_msg>build<commit_after>// Generated by CoffeeScript 1.9.1
var _deep_equal, _empty, a, an, be, contain, deep_equal, does_exist, empty, eq, eql, equal, error, exist, expect, greater, greater_or_equal, greater_than, gt, gte, have, include, is_empty, is_ok, length, less, less_or_equal, less_than, lt, lte, match, negate, neq, not_equal, nt, ok, sentence, should_throw, str, than, to, truthy, wassat;

_deep_equal = require("deep-equal");

_empty = require("lodash.isempty");

wassat = require("wassat");

str = function(v) {
  if (wassat.isArray(v) || wassat.isObject(v)) {
    return JSON.stringify(v);
  }
  if (wassat.isFunction(v)) {
    return "<" + (v.name || "anonymous function") + ">";
  }
  if (wassat.isString(v)) {
    return "\"" + v + "\"";
  }
  return String(v);
};

exist = {};

empty = {};

error = {};

ok = truthy = {};

is_empty = function(x) {
  return [_empty(x), "expected " + (str(x)) + " to be empty"];
};

is_ok = function(x) {
  return [!!x, "expected " + (str(x)) + " to be truthy"];
};

does_exist = function(x) {
  return [x != null, "expected " + (str(x)) + " to exist"];
};

should_throw = function(f) {
  var e;
  return [
    ((function() {
      try {
        f();
      } catch (_error) {
        e = _error;
      }
      return e != null;
    })()), "expected function to throw an error"
  ];
};

expect = function(x) {
  return function(y) {
    var label, okay, ref;
    if (!wassat.isFunction(y)) {
      throw new Error("Pass a function");
    }
    ref = y(x), okay = ref[0], label = ref[1];
    if (!okay) {
      throw new Error(label);
    }
  };
};

than = function(x) {
  return x;
};

eq = equal = function(y) {
  return function(x) {
    return [x === y, "expected " + (str(x)) + " to equal " + (str(y))];
  };
};

neq = not_equal = function(y) {
  return function(x) {
    return [x !== y, "expected " + (str(x)) + " to not equal " + (str(y))];
  };
};

eql = deep_equal = function(x) {
  return function(y) {
    return [
      _deep_equal(x, y, {
        strict: true
      }), "expected " + (str(x)) + " to deep equal " + (str(y))
    ];
  };
};

gt = greater = greater_than = function(y) {
  return function(x) {
    return [x > y, "expected " + (str(x)) + " to be greater than " + (str(y))];
  };
};

lt = less = less_than = function(y) {
  return function(x) {
    return [x < y, "expected " + (str(x)) + " to be less than " + (str(y))];
  };
};

gte = greater_or_equal = function(y) {
  return function(x) {
    return [x >= y, "expected " + (str(x)) + " to be greater than or equal to " + (str(y))];
  };
};

lte = less_or_equal = function(y) {
  return function(x) {
    return [x <= y, "expected " + (str(x)) + " to be less than or equal to " + (str(y))];
  };
};

contain = include = function(x) {
  return function(y) {
    return [y.indexOf(x) !== -1, "expected " + (str(y)) + " to contain " + (str(x))];
  };
};

length = function(x) {
  return function(y) {
    return [y.length === x, "expected " + (str(y)) + " to have `length` " + (str(x))];
  };
};

match = function(x) {
  return function(y) {
    return [x.test(y), "expected " + (str(y)) + " to match " + (str(x))];
  };
};

negate = function(f) {
  return function(x) {
    var label, okay, ref;
    ref = f(x), okay = ref[0], label = ref[1];
    return [!okay, label.replace("expected", "did not expect")];
  };
};

have = function(p) {
  if (wassat.isFunction(p)) {
    return p;
  }
  return function(x) {
    return function(y) {
      return [y[p] === x, "expected property " + (str(p)) + " of " + (str(y)) + " to equal " + (str(x))];
    };
  };
};

a = an = function(x) {
  return function(y) {
    if (x === Object) {
      return [y instanceof x, "expected " + (str(y)) + " to be an instance of " + x.name];
    }
    return [Object(y) instanceof x, "expected " + (str(y)) + " to be an instance of " + x.name];
  };
};

be = to = function(x) {
  switch (x) {
    case empty:
      return is_empty;
    case ok:
      return is_ok;
    case exist:
      return does_exist;
    case error:
      return should_throw;
    default:
      return x;
  }
};

nt = function(f) {
  switch (f) {
    case empty:
      return negate(is_empty);
    case ok:
      return negate(is_ok);
    case exist:
      return negate(does_exist);
    case error:
      return negate(should_throw);
    default:
      return negate(f);
  }
};
{'fraction_non_alphanumeric': 0.19090033702455464, 'fraction_numerical': 0.0019258545979778526, 'mean_word_length': 2.679805137289637, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6132075', 'n_tokens_mistral': 3152, 'n_tokens_neox': 3148, 'n_words': 847}