<commit_before>export function scoreIs(score) {
  if (score >= 0 && score < 20) {
    return 0;
  } else if (score >= 20 && score < 70) {
    return 1;
  }

  return 2;
};

export function statusIs(score) {
  let status = ['bad', 'poor', 'excellent'];

  return status[scoreIs(score)];
};

export let ratings =
  [
    { name: 'excellent', selected: false, scoreRange: [70,100] },
    { name: 'poor', selected: false, scoreRange: [20,69] },
    { name: 'bad', selected: false, scoreRange: [0,19] }
  ]

export let issueTypes =
  [
    { name: 'strict-transport-security', selected: false },
    { name: 'x-xss-protection', selected: false },
    { name: 'x-content-type-options', selected: false },
    { name: 'x-download-options', selected: false },
    { name: 'x-frame-options', selected: false },
    { name: 'content-security-policy', selected: false }
  ]
<commit_msg>Add x-permitted-cross-domain-policies to filterable list<commit_after>export function scoreIs(score) {
  if (score >= 0 && score < 20) {
    return 0;
  } else if (score >= 20 && score < 70) {
    return 1;
  }

  return 2;
};

export function statusIs(score) {
  let status = ['bad', 'poor', 'excellent'];

  return status[scoreIs(score)];
};

export let ratings =
  [
    { name: 'excellent', selected: false, scoreRange: [70,100] },
    { name: 'poor', selected: false, scoreRange: [20,69] },
    { name: 'bad', selected: false, scoreRange: [0,19] }
  ]

export let issueTypes =
  [
    { name: 'strict-transport-security', selected: false },
    { name: 'x-xss-protection', selected: false },
    { name: 'x-content-type-options', selected: false },
    { name: 'x-download-options', selected: false },
    { name: 'x-frame-options', selected: false },
    { name: 'x-permitted-cross-domain-policies', selected: false },
    { name: 'content-security-policy', selected: false }
  ]

{'fraction_non_alphanumeric': 0.17517463729177862, 'fraction_numerical': 0.023643202579258463, 'mean_word_length': 3.4228028503562946, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4650726', 'n_tokens_mistral': 666, 'n_tokens_neox': 619, 'n_words': 164}