<commit_before>var sync = require('../../lib/sync');
var assert = require('assert');
var util = require('util');
var async = require('async');
var helper = require('./helper');
var syncUtil = require('../../lib/sync/util');
var storageModule = require('../../lib/sync/storage');
var _ = require('underscore');

var mongoDBUrl = 'mongodb://127.0.0.1:27017/test_sync_api';
var redisUrl = 'redis://127.0.0.1:6379';
var DATASETID = 'syncIntegrationTest';
var TESTCUID = 'syncIntegrationTestCuid';

var mongodb;
var recordBUid;
var recordCUid;

module.exports = {
  'test sync & syncRecords apis': {
    'before': function(done) {
      sync.api.setConfig({syncWorkerInterval: 100, pendingWorkerInterval: 100, ackWorkerInterval: 100, schedulerInterval: 100, schedulerLockName: 'test:syncApi:lock', useCache: true});
      sync.api.setLogLevel(DATASETID, {logLevel: 'debug'});
      sync.api.setLogLevel(syncUtil.SYNC_LOGGER, {logLevel: 'debug'});
      async.series([<commit_msg>remove setLoglevel<commit_after>var sync = require('../../lib/sync');
var assert = require('assert');
var util = require('util');
var async = require('async');
var helper = require('./helper');
var syncUtil = require('../../lib/sync/util');
var storageModule = require('../../lib/sync/storage');
var _ = require('underscore');

var mongoDBUrl = 'mongodb://127.0.0.1:27017/test_sync_api';
var redisUrl = 'redis://127.0.0.1:6379';
var DATASETID = 'syncIntegrationTest';
var TESTCUID = 'syncIntegrationTestCuid';

var mongodb;
var recordBUid;
var recordCUid;

module.exports = {
  'test sync & syncRecords apis': {
    'before': function(done) {
      sync.api.setConfig({syncWorkerInterval: 100, pendingWorkerInterval: 100, ackWorkerInterval: 100, schedulerInterval: 100, schedulerLockName: 'test:syncApi:lock', useCache: true});
      async.series([
{'fraction_non_alphanumeric': 0.17618002195389681, 'fraction_numerical': 0.036223929747530186, 'mean_word_length': 5.016501650165017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '2212384', 'n_tokens_mistral': 639, 'n_tokens_neox': 595, 'n_words': 128}