<commit_before>"use strict";

var toFastProperties = require("../helpers/to-fast-properties");
var esutils          = require("esutils");
var object           = require("../helpers/object");
var Node             = require("./node");
var each             = require("lodash/collection/each");
var uniq             = require("lodash/array/uniq");
var compact          = require("lodash/array/compact");
var defaults         = require("lodash/object/defaults");
var isString         = require("lodash/lang/isString");

var t = exports;

/**
 * Registers `is[Type]` and `assert[Type]` generated functions for a given `type`.
 * Pass `skipAliasCheck` to force it to directly compare `node.type` with `type`.
 *
 * @param {String} type
 * @param {Boolean?} skipAliasCheck
 */

function registerType(type, skipAliasCheck) {
  var is = t["is" + type] = function (node, opts) {
    return t.is(type, node, opts, skipAliasCheck);
  };

  t["assert" + type] = function (node, opts) {
    opts = opts || {};
    if (!is(node, opts)) {<commit_msg>reorder types requires<commit_after>"use strict";

var toFastProperties = require("../helpers/to-fast-properties");
var defaults         = require("lodash/object/defaults");
var isString         = require("lodash/lang/isString");
var compact          = require("lodash/array/compact");
var esutils          = require("esutils");
var object           = require("../helpers/object");
var Node             = require("./node");
var each             = require("lodash/collection/each");
var uniq             = require("lodash/array/uniq");

var t = exports;

/**
 * Registers `is[Type]` and `assert[Type]` generated functions for a given `type`.
 * Pass `skipAliasCheck` to force it to directly compare `node.type` with `type`.
 *
 * @param {String} type
 * @param {Boolean?} skipAliasCheck
 */

function registerType(type, skipAliasCheck) {
  var is = t["is" + type] = function (node, opts) {
    return t.is(type, node, opts, skipAliasCheck);
  };

  t["assert" + type] = function (node, opts) {
    opts = opts || {};
    if (!is(node, opts)) {
{'fraction_non_alphanumeric': 0.16096385542168676, 'fraction_numerical': 0.0, 'mean_word_length': 3.1272365805168985, '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': '3064665', 'n_tokens_mistral': 628, 'n_tokens_neox': 617, 'n_words': 170}