<commit_before>var Screw = {
  Unit: function(suite) {
    var contents = suite.toString().match(/^[^\{]*{((.*\n*)*)}/m)[1];
    var suite = new Function("matchers", "specifications",
      "with (specifications) { with (matchers) { " + contents + " } }"
    );
    
    if(!Screw.first_suite_loaded) {
      $(function() {
        Screw.Specifications.context.push(
          $('body')
            .append($('<h3 class="status">'))
            .append($('<ul class="describes">'))
        );
      })
      Screw.first_suite_loaded = true;
    }

    Screw.last_suite = suite;
    $(function() {
      suite.call(this, Screw.Matchers, Screw.Specifications);
      if(Screw.last_suite == suite) {
        $(Screw).trigger('loaded')
      }
    })
  },
  first_suite_loaded: false,
  last_suite: null,
  Specifications: {
    context: [],
    require: function(path) {
      Screw.Assets.require_using_eval(path);
    },
    describe: function(name, fn) {
      var describe = $('<li class="describe">');
      $('<h1>').text(name).appendTo(describe);
      describe
        .append('<ol class="befores">')
        .append('<ul class="its">')
        .append('<ul class="describes">')

      this.context.push(describe);
      fn.call();
      this.context.pop();
      
      this.context[this.context.length-1]
        .children('.describes')
          .append(describe);
    },
    it: function(name, fn) {
      var it = $('<li class="it">');
      $('<h2>').text(name).appendTo(it);
      it.data('screwunit.run', fn);
      
      this.context[this.context.length-1]
        .children('.its')
          .append(it);
    },
    before: function(fn) {
      var before = $('<li class="before">')
        .data('screwunit.run', fn);
<commit_msg>Removing unused Screw.Specifications.require method.<commit_after>var Screw = {
  Unit: function(suite) {
    var contents = suite.toString().match(/^[^\{]*{((.*\n*)*)}/m)[1];
    var suite = new Function("matchers", "specifications",
      "with (specifications) { with (matchers) { " + contents + " } }"
    );
    
    if(!Screw.first_suite_loaded) {
      $(function() {
        Screw.Specifications.context.push(
          $('body')
            .append($('<h3 class="status">'))
            .append($('<ul class="describes">'))
        );
      })
      Screw.first_suite_loaded = true;
    }

    Screw.last_suite = suite;
    $(function() {
      suite.call(this, Screw.Matchers, Screw.Specifications);
      if(Screw.last_suite == suite) {
        $(Screw).trigger('loaded')
      }
    })
  },
  first_suite_loaded: false,
  last_suite: null,
  Specifications: {
    context: [],
    describe: function(name, fn) {
      var describe = $('<li class="describe">');
      $('<h1>').text(name).appendTo(describe);
      describe
        .append('<ol class="befores">')
        .append('<ul class="its">')
        .append('<ul class="describes">')

      this.context.push(describe);
      fn.call();
      this.context.pop();
      
      this.context[this.context.length-1]
        .children('.describes')
          .append(describe);
    },
    it: function(name, fn) {
      var it = $('<li class="it">');
      $('<h2>').text(name).appendTo(it);
      it.data('screwunit.run', fn);
      
      this.context[this.context.length-1]
        .children('.its')
          .append(it);
    },
    before: function(fn) {
      var before = $('<li class="before">')
        .data('screwunit.run', fn);

{'fraction_non_alphanumeric': 0.19762387713706173, 'fraction_numerical': 0.0034772529701535787, 'mean_word_length': 2.37109375, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1960480', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1124, 'n_words': 174}