<commit_before>var through = require('through2');
var cheerio = require('cheerio');
var path = require('path');
var _ = require('lodash');
var Plugin = function(){};

Plugin.prototype = {

  hooks: {
    layout: function(config, stream, extras, cb) {

      // don't do anything for PDF
      if(config.format == "pdf") {
        cb(null, config, stream, extras);
        return;
      }

      var ids = {};
      var files = [];

      // this is called for each file
      var onFile = function(file, enc, cb) {

        // create cheerio element<commit_msg>moving links to convert<commit_after>var through = require('through2');
var cheerio = require('cheerio');
var path = require('path');
var _ = require('lodash');
var Plugin = function(){};

Plugin.prototype = {

  hooks: {
    convert: function(config, stream, extras, cb) {

      // don't do anything for PDF
      if(config.format == "pdf") {
        cb(null, config, stream, extras);
        return;
      }

      var ids = {};
      var files = [];

      // this is called for each file
      var onFile = function(file, enc, cb) {

        // create cheerio element
{'fraction_non_alphanumeric': 0.14474845542806708, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 2.54375, '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': '1316790', 'n_tokens_mistral': 347, 'n_tokens_neox': 327, 'n_words': 104}