<commit_before>const Promise = require('bluebird')
const request = Promise.promisifyAll(require('request'))
const fs = Promise.promisifyAll(require('fs'))
const path = require('path')
const logger = require('loggy')
const cache = require('./cache')

const dataDir = path.join(__dirname, '..', 'schedules')

/**
 * Make sure people aren't trying anything funny
 * with weird source characters
 *
 * @param  {string} source Source string
 * @return {boolean} Returns true if source is valid
 */
const validateSource = function (source) {
  return source.match(/^[a-zA-Z0-9\-]+$/)
}<commit_msg>Fix style<commit_after>const Promise = require('bluebird')
const request = Promise.promisifyAll(require('request'))
const fs = Promise.promisifyAll(require('fs'))
const path = require('path')
const logger = require('loggy')
const cache = require('./cache')

const dataDir = path.join(__dirname, '..', 'schedules')

/**
 * Make sure people aren't trying anything funny
 * with weird source characters
 *
 * @param  {string} source Source string
 * @return {boolean} Returns true if source is valid
 */
const validateSource = function (source) {
  return source.match(/^[a-zA-Z0-9-]+$/)
}
{'fraction_non_alphanumeric': 0.15208156329651656, 'fraction_numerical': 0.0033984706881903144, 'mean_word_length': 5.041025641025641, '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': '5646511', 'n_tokens_mistral': 346, 'n_tokens_neox': 338, 'n_words': 105}