<commit_before>import { Feature } from 'toolkit/extension/features/feature';
import { getToolkitStorageKey, setToolkitStorageKey } from 'toolkit/extension/utils/toolkit';
import { getCurrentRouteName } from 'toolkit/extension/utils/ynab';

const HIDEIMAGE = 'toolkit-modal-item-hide-image';
const BUTTONDISABLED = 'button-disabled';
const IMAGECLASSES = 'ember-view toolkit-menu-item toolkit-modal-item-hide-image flaticon stroke checkmark-1';

export class ResizeInspector extends Feature {
  injectCSS() {
    return require('./index.css');
  }

  shouldInvoke() {
    return getCurrentRouteName().indexOf('budget') !== -1 &&
           this.settings.enabled;
  }

  invoke() {
    let width = getToolkitStorageKey('inspector-width', 'number');
    if (typeof width === 'undefined' || width === null) {
      width = 0;<commit_msg>Remove unnecessary check for enabled feature<commit_after>import { Feature } from 'toolkit/extension/features/feature';
import { getToolkitStorageKey, setToolkitStorageKey } from 'toolkit/extension/utils/toolkit';
import { getCurrentRouteName } from 'toolkit/extension/utils/ynab';

const HIDEIMAGE = 'toolkit-modal-item-hide-image';
const BUTTONDISABLED = 'button-disabled';
const IMAGECLASSES = 'ember-view toolkit-menu-item toolkit-modal-item-hide-image flaticon stroke checkmark-1';

export class ResizeInspector extends Feature {
  injectCSS() {
    return require('./index.css');
  }

  shouldInvoke() {
    return getCurrentRouteName().includes('budget');
  }

  invoke() {
    let width = getToolkitStorageKey('inspector-width', 'number');
    if (typeof width === 'undefined' || width === null) {
      width = 0;
{'fraction_non_alphanumeric': 0.13293051359516617, 'fraction_numerical': 0.0030211480362537764, 'mean_word_length': 4.671232876712328, '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': '4906463', 'n_tokens_mistral': 498, 'n_tokens_neox': 486, 'n_words': 108}