<commit_before>import { camelCase } from 'lodash';
import glob from 'glob';
import path from 'path';

// load all services
const serviceFiles = glob.sync(path.join(__dirname, './services/*/*.service.js'));
export default Object.assign({}, ...serviceFiles.map(file => {
  let name = camelCase(path.basename(path.dirname(file)));
  return { [name]: require(file).default };
}));
<commit_msg>const variable<commit_after>import { camelCase } from 'lodash';
import glob from 'glob';
import path from 'path';

// load all services
const serviceFiles = glob.sync(path.join(__dirname, './services/*/*.service.js'));
export default Object.assign({}, ...serviceFiles.map(file => {
  const name = camelCase(path.basename(path.dirname(file)));
  return { [name]: require(file).default };
}));

{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 5.2063492063492065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3250174', 'n_tokens_mistral': 238, 'n_tokens_neox': 231, 'n_words': 59}