<commit_before>'use strict';

var _ = require('underscore');
var async = require('async');
var expect = require('chai').expect;
var fs = require('fs');
var path = require('path');

var lib = require('../../../lib');
var ipAddresses = require(__dirname + '/../../fixtures/ipAddresses');
var GeoIpNativeLite = require('../../../');

describe('lib/data', function() {

	var originalDataDir, originalTmpDir;

	before(function() {

		// Save the original directory paths.
		originalDataDir = lib.data.config.dataDir;
		originalTmpDir = lib.data.config.tmpDir;

		// Override directory paths.
		lib.data.config.dataDir = path.join(__dirname, '..', '..', 'data');
		lib.data.config.tmpDir = path.join(lib.data.config.dataDir, 'tmp');
	});

	beforeEach(lib.data.cleanup);
	beforeEach(lib.data.setup);
	after(lib.data.cleanup);

	after(function() {

		// Restore directory paths to their original values.
		lib.data.config.dataDir = originalDataDir;
		lib.data.config.tmpDir = originalTmpDir;
	});

	describe('download()', function() {

		it('should be a function', function() {

			expect(lib.data.download).to.be.a('function');
		});
<commit_msg>Skip download tests<commit_after>'use strict';

var _ = require('underscore');
var async = require('async');
var expect = require('chai').expect;
var fs = require('fs');
var path = require('path');

var lib = require('../../../lib');
var ipAddresses = require(__dirname + '/../../fixtures/ipAddresses');
var GeoIpNativeLite = require('../../../');

describe('lib/data', function() {

	var originalDataDir, originalTmpDir;

	before(function() {

		// Save the original directory paths.
		originalDataDir = lib.data.config.dataDir;
		originalTmpDir = lib.data.config.tmpDir;

		// Override directory paths.
		lib.data.config.dataDir = path.join(__dirname, '..', '..', 'data');
		lib.data.config.tmpDir = path.join(lib.data.config.dataDir, 'tmp');
	});

	beforeEach(lib.data.cleanup);
	beforeEach(lib.data.setup);
	after(lib.data.cleanup);

	after(function() {

		// Restore directory paths to their original values.
		lib.data.config.dataDir = originalDataDir;
		lib.data.config.tmpDir = originalTmpDir;
	});

	describe.skip('download()', function() {

		it('should be a function', function() {

			expect(lib.data.download).to.be.a('function');
		});

{'fraction_non_alphanumeric': 0.1891655744866754, 'fraction_numerical': 0.0, 'mean_word_length': 4.066371681415929, '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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3180596', 'n_tokens_mistral': 781, 'n_tokens_neox': 728, 'n_words': 148}