<commit_before>const orgUnit = require('../../constants/organisation-unit')

module.exports = function (property, value) {
  const newObj = Object.entries(orgUnit).find(function ([, v]) {
    return v[property] === value
  })

  return newObj ? newObj[1] : undefined
}<commit_msg>WFP-477 simplified org-unit-finder<commit_after>const orgUnit = require('../../constants/organisation-unit')

module.exports = function (property, value) {
  return Object.values(orgUnit).find(function (v) {
    return v[property] === value
  })
}
{'fraction_non_alphanumeric': 0.1650853889943074, 'fraction_numerical': 0.007590132827324478, 'mean_word_length': 4.5, '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': '4138188', 'n_tokens_mistral': 164, 'n_tokens_neox': 159, 'n_words': 33}