<commit_before>const fs = require('fs')
const Image = require('@eris/image').NodeImage

class Runner {
  constructor(reporter, entries) {
    this._reporter = reporter
    this._entries = entries
    this._cachedFiles = new Map()
  }

  _getInput(input) {
    if (this._cachedFiles.has(input)) {
      return this._cachedFiles.get(input)
    }

    return fs.readFileSync(input)
  }

  async _processEntry(entry) {
    this._reporter.entryStarted(entry)
    const input = this._getInput(entry.input)

    let image = Image.from(input)<commit_msg>fix(image-cli): import Image correctly<commit_after>const fs = require('fs')
const Image = require('@eris/image').Image

class Runner {
  constructor(reporter, entries) {
    this._reporter = reporter
    this._entries = entries
    this._cachedFiles = new Map()
  }

  _getInput(input) {
    if (this._cachedFiles.has(input)) {
      return this._cachedFiles.get(input)
    }

    return fs.readFileSync(input)
  }

  async _processEntry(entry) {
    this._reporter.entryStarted(entry)
    const input = this._getInput(entry.input)

    let image = Image.from(input)
{'fraction_non_alphanumeric': 0.12039532794249776, 'fraction_numerical': 0.0, 'mean_word_length': 3.5843621399176953, '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': '3375934', 'n_tokens_mistral': 362, 'n_tokens_neox': 352, 'n_words': 68}