<commit_before>
/**
 * WPCOM module
 */

var WPCOM = require('../');
var assert = require('assert');

/**
 * Testing data
 */

var fixture = require('./fixture');

describe('wpcom.site.category', function() {
  // Global instances
  var wpcom = WPCOM(fixture.site.token);
  var site = wpcom.site(fixture.site.url);
  var new_category;

  // Create a testing_category before to start tests
  var testing_category;
  before(function(done){
    site.category()
    .add(fixture.category, function(err, category) {
      if (err) throw err;

      testing_category = category;
      done();
    });
  });

  // Delete testing category<commit_msg>test: add random name to category name<commit_after>
/**
 * WPCOM module
 */

var WPCOM = require('../');
var assert = require('assert');

/**
 * Testing data
 */

var fixture = require('./fixture');

describe('wpcom.site.category', function() {
  // Global instances
  var wpcom = WPCOM(fixture.site.token);
  var site = wpcom.site(fixture.site.url);
  var new_category;

  // Create a testing_category before to start tests
  var testing_category;
  before(function(done){
    fixture.category.name += Math.random() * 1000000 | 0;
    site.category()
    .add(fixture.category, function(err, category) {
      if (err) throw err;

      testing_category = category;
      done();
    });
  });

  // Delete testing category
{'fraction_non_alphanumeric': 0.14996342355523043, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 3.209230769230769, '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': '7037134', 'n_tokens_mistral': 435, 'n_tokens_neox': 423, 'n_words': 109}