<commit_before>const debug = require('debug')('hardware:indicator')
const gpio = require('raspi-gpio')
const EventEmitter = require('events')

// Common flash EventEmitter
let flashEmitter = new EventEmitter()
setInterval(() => {
  flashEmitter.emit('flash')
}, 500)

module.exports = class Indicator {
  constructor (pinId) {
    this.isFlashing = false
    this.isEnabled = false

    this.nOutputPin = new gpio.DigitalOutput(pinId)
    this.nOutputPin.write(gpio.HIGH)

    // Setup flash handler common to all Indicator instances
    flashEmitter.on('flash', this._flashHandler.bind(this))
    debug('Indicator output constructed on pin ID ' + this.pinId)
  }
<commit_msg>Bugfix indicator pin Id in debug<commit_after>const debug = require('debug')('hardware:indicator')
const gpio = require('raspi-gpio')
const EventEmitter = require('events')

// Common flash EventEmitter
let flashEmitter = new EventEmitter()
setInterval(() => {
  flashEmitter.emit('flash')
}, 500)

module.exports = class Indicator {
  constructor (pinId) {
    this.pinId = pinId
    this.isFlashing = false
    this.isEnabled = false

    this.nOutputPin = new gpio.DigitalOutput(this.pinId)
    this.nOutputPin.write(gpio.HIGH)

    // Setup flash handler common to all Indicator instances
    flashEmitter.on('flash', this._flashHandler.bind(this))
    debug('Indicator output constructed on pin ID ' + this.pinId)
  }

{'fraction_non_alphanumeric': 0.11937097927090778, 'fraction_numerical': 0.004288777698355968, 'mean_word_length': 4.363984674329502, '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': '3594031', 'n_tokens_mistral': 423, 'n_tokens_neox': 425, 'n_words': 105}