<commit_before>const path = require('path')
const win = require('os').platform() === 'win32'

const imgdir = path.join(__dirname, '..', 'images')

const makesafe = str => win ? str.replace('\\', '\\\\') : str

module.exports = img => makesafe(path.join(imgdir, img))
<commit_msg>Fix imgpath again - this time replace all path separators<commit_after>const path = require('path')
const win = require('os').platform() === 'win32'

const imgdir = path.join(__dirname, '..', 'images')

const makesafe = str => win ? str.replace(/\\/g, '\\\\') : str

module.exports = img => makesafe(path.join(imgdir, img))

{'fraction_non_alphanumeric': 0.20729684908789386, 'fraction_numerical': 0.006633499170812604, 'mean_word_length': 4.441441441441442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6057002', 'n_tokens_mistral': 202, 'n_tokens_neox': 193, 'n_words': 50}