<commit_before>// generateJSON

var debug = require('debug');
var info = debug('pps:info');
var error = debug('pps:error');

var fs = require('fs');
var readFile = require('./readFile');
var writeFile = require('./writeFile');

var removeAccents = require('../builder/removeAccents');
var normalizeData = require('../builder/normalizeData');

const THIS_YEAR = (new Date()).getFullYear();

const IMAGE_DIR = './src/consumer/img/widgetimage';

const PERSON_IMAGE_FOLDER = 'People';
const PROJECT_IMAGE_FOLDER = 'Logo Project';
const TECHSTACK_IMAGE_FOLDER = 'LogoTechStack';

var hasPersonAvatar = (person) => {
  let dir = encodeURIComponent(PERSON_IMAGE_FOLDER);
  let file = `${IMAGE_DIR}/${PERSON_IMAGE_FOLDER}/${person.email}.png`;
  return fs.existsSync(file);
};

var hasProjectImage = (project) => {
  let dir = encodeURIComponent(PERSON_IMAGE_FOLDER);
  let file = `${IMAGE_DIR}/${PROJECT_IMAGE_FOLDER}/${project.name}.png`;
  return fs.existsSync(file);
};

var hasTechLogo = (stack) => {
  let dir = encodeURIComponent(PERSON_IMAGE_FOLDER);
  let file = `${IMAGE_DIR}/${TECHSTACK_IMAGE_FOLDER}/${stack[0]}.png`;
  return fs.existsSync(file);
};

var getYoE = (begin = 0) => {
  let y = THIS_YEAR - begin;
  if (y > 20) {
    let m = y % 12;
    if (m > 1) {
      return `${m} months`;
    }
    if (m === 1) {<commit_msg>Fix eslint issue<commit_after>// generateJSON

var debug = require('debug');
var info = debug('pps:info');
var error = debug('pps:error');

var fs = require('fs');
var readFile = require('./readFile');
var writeFile = require('./writeFile');

var removeAccents = require('../builder/removeAccents');
var normalizeData = require('../builder/normalizeData');

const THIS_YEAR = (new Date()).getFullYear();

const IMAGE_DIR = './src/consumer/img/widgetimage';

const PERSON_IMAGE_FOLDER = 'People';
const PROJECT_IMAGE_FOLDER = 'Logo Project';
const TECHSTACK_IMAGE_FOLDER = 'LogoTechStack';

var hasPersonAvatar = (person) => {
  let file = `${IMAGE_DIR}/${PERSON_IMAGE_FOLDER}/${person.email}.png`;
  return fs.existsSync(file);
};

var hasProjectImage = (project) => {
  let file = `${IMAGE_DIR}/${PROJECT_IMAGE_FOLDER}/${project.name}.png`;
  return fs.existsSync(file);
};

var hasTechLogo = (stack) => {
  let file = `${IMAGE_DIR}/${TECHSTACK_IMAGE_FOLDER}/${stack[0]}.png`;
  return fs.existsSync(file);
};

var getYoE = (begin = 0) => {
  let y = THIS_YEAR - begin;
  if (y > 20) {
    let m = y % 12;
    if (m > 1) {
      return `${m} months`;
    }
    if (m === 1) {
{'fraction_non_alphanumeric': 0.17942583732057416, 'fraction_numerical': 0.006379585326953748, 'mean_word_length': 4.5386313465783665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '7212581', 'n_tokens_mistral': 922, 'n_tokens_neox': 907, 'n_words': 193}