<commit_before>'use strict';

var _require = require('../editorInterface'),
    getCurrentScope = _require.getCurrentScope;

var _require2 = require('../atomInterface'),
    getAllScopes = _require2.getAllScopes;

var updateStatusTileScope = function updateStatusTileScope(element, editor) {
  if (element) {
    // The editor can be undefined if there is no active editor (e.g. closed all tabs).
    // eslint-disable-next-line no-param-reassign
    element.dataset.prettierMatchScope = editor !== undefined && getAllScopes().includes(getCurrentScope(editor)) ? 'true' : 'false';
  }
};

module.exports = updateStatusTileScope;<commit_msg>chore(statusTile): Add missing dist file<commit_after>'use strict';

var _require = require('../editorInterface'),
    getCurrentScope = _require.getCurrentScope;

var _require2 = require('../atomInterface'),
    getAllScopes = _require2.getAllScopes;

var updateStatusTileScope = function updateStatusTileScope(element, editor) {
  if (!element) return;

  // The editor can be undefined if there is no active editor (e.g. closed all tabs).
  // eslint-disable-next-line no-param-reassign
  element.dataset.prettierMatchScope = editor !== undefined && getAllScopes().includes(getCurrentScope(editor)) ? 'true' : 'false';
};

module.exports = updateStatusTileScope;
{'fraction_non_alphanumeric': 0.12490421455938697, 'fraction_numerical': 0.0030651340996168583, 'mean_word_length': 4.909502262443439, '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': '5550577', 'n_tokens_mistral': 375, 'n_tokens_neox': 372, 'n_words': 92}