<commit_before>'use strict';

const _ = require('lodash');
const path = require('path');
const fse = require('fs-extra');
const Promise = require('bluebird');
const nanoid = require('nanoid/generate');
const TerasliceClient = require('teraslice-client-js');
const ElasticsearchClient = require('elasticsearch').Client;

const {
    TEST_INDEX_PREFIX = 'teratest_',
    ELASTICSEARCH_HOST = 'http://locahost:9200',
    KAFKA_BROKER = 'locahost:9092',
    HOST_IP = '127.0.0.1',
    ELASTICSEARCH_VERSION = '6.8',
    ELASTICSEARCH_API_VERSION = '6.5'
} = process.env;

const SPEC_INDEX_PREFIX = `${TEST_INDEX_PREFIX}spec`;<commit_msg>new call style for client<commit_after>'use strict';

const _ = require('lodash');
const path = require('path');
const fse = require('fs-extra');
const Promise = require('bluebird');
const nanoid = require('nanoid/generate');
const { TerasliceClient } = require('teraslice-client-js');
const ElasticsearchClient = require('elasticsearch').Client;

const {
    TEST_INDEX_PREFIX = 'teratest_',
    ELASTICSEARCH_HOST = 'http://locahost:9200',
    KAFKA_BROKER = 'locahost:9092',
    HOST_IP = '127.0.0.1',
    ELASTICSEARCH_VERSION = '6.8',
    ELASTICSEARCH_API_VERSION = '6.5'
} = process.env;

const SPEC_INDEX_PREFIX = `${TEST_INDEX_PREFIX}spec`;
{'fraction_non_alphanumeric': 0.1544461778471139, 'fraction_numerical': 0.028081123244929798, 'mean_word_length': 5.447236180904523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1950438', 'n_tokens_mistral': 471, 'n_tokens_neox': 455, 'n_words': 81}