<commit_before>import { createSelector } from 'reselect';
import { presentState } from './undo';

export const tree = createSelector(
  presentState,
  (state) => state.tree,
);

export const elementCursorByElementPath = elementPath => createSelector(
  tree,
  (tree) => tree.select(elementPath),
);

export const elementByElementPath = elementPath => createSelector(
  elementCursorByElementPath(elementPath),
  (elementCursor) => elementCursor.get(),
);

export const elementPropValueByElementPathAndPropName = (elementPath, propName) => createSelector(
  elementByElementPath(elementPath),
  (element) => {
    const elementProps = element.props || {};

    return elementProps[propName];
  },
);
<commit_msg>Lint fix<commit_after>import { createSelector } from 'reselect';
import { presentState } from './undo';

export const tree = createSelector(
  presentState,
  (state) => state.tree,
);

export const elementCursorByElementPath = elementPath => createSelector(
  tree,
  (treeState) => treeState.select(elementPath),
);

export const elementByElementPath = elementPath => createSelector(
  elementCursorByElementPath(elementPath),
  (elementCursor) => elementCursor.get(),
);

export const elementPropValueByElementPathAndPropName = (elementPath, propName) => createSelector(
  elementByElementPath(elementPath),
  (element) => {
    const elementProps = element.props || {};

    return elementProps[propName];
  },
);

{'fraction_non_alphanumeric': 0.12159329140461216, 'fraction_numerical': 0.0, 'mean_word_length': 5.754716981132075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6304490', 'n_tokens_mistral': 401, 'n_tokens_neox': 398, 'n_words': 89}