<commit_before>var assert = require ('assert');
var path = require ('path');
var item_manager = require('../lib/item-manager');

describe ('item_manager', function(){

  var packagesLocalFolder = path.join(process.cwd(), "/test/fixtures/packages");
  var packagesAtlasboardFolder = path.join(process.cwd(), "/packages");
  var packageWithDisabledDashboards = path.join(process.cwd(), "/test/fixtures/package_with_disabled_dashboards");

  describe ('dashboards', function(){

    it('should have the right number of dashboards', function(done){
      item_manager.get([packagesLocalFolder, packagesAtlasboardFolder], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        assert.equal(4, dashboards.length);
        done();
      });
    });

    it('should not read dashboards with invalid extensions', function(done){
      item_manager.get([packagesLocalFolder, packagesAtlasboardFolder], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        dashboards.forEach(function(item){
          assert.ok(path.extname(item) === ".json");
        });
        done();
      });
    });

    it('should not read disabled dashboards', function(done){
      item_manager.get([packageWithDisabledDashboards], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        assert.equal(1, dashboards.length)
        done();
      });
    });
<commit_msg>missing ";"<commit_after>var assert = require ('assert');
var path = require ('path');
var item_manager = require('../lib/item-manager');

describe ('item_manager', function(){

  var packagesLocalFolder = path.join(process.cwd(), "/test/fixtures/packages");
  var packagesAtlasboardFolder = path.join(process.cwd(), "/packages");
  var packageWithDisabledDashboards = path.join(process.cwd(), "/test/fixtures/package_with_disabled_dashboards");

  describe ('dashboards', function(){

    it('should have the right number of dashboards', function(done){
      item_manager.get([packagesLocalFolder, packagesAtlasboardFolder], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        assert.equal(4, dashboards.length);
        done();
      });
    });

    it('should not read dashboards with invalid extensions', function(done){
      item_manager.get([packagesLocalFolder, packagesAtlasboardFolder], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        dashboards.forEach(function(item){
          assert.ok(path.extname(item) === ".json");
        });
        done();
      });
    });

    it('should not read disabled dashboards', function(done){
      item_manager.get([packageWithDisabledDashboards], "dashboards", ".json", function(err, dashboards){
        assert.ok(!err, err);
        assert.equal(1, dashboards.length);
        done();
      });
    });

{'fraction_non_alphanumeric': 0.1603346113628442, 'fraction_numerical': 0.0013942140118508191, 'mean_word_length': 3.815436241610738, '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': '3680094', 'n_tokens_mistral': 807, 'n_tokens_neox': 794, 'n_words': 169}