<commit_before>PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LC_ALL=en_GB.UTF-8
<%
# Of the known variables, only populate those which have a value in the
# top-scope, from Facter.
@govuk_vars.each do |key|
  val = scope.lookupvar("::#{key}")
  unless val == :undefined
-%>
FACTER_<%= key -%>=<%= val %>
<%
  end
end
-%>
<commit_msg>[#52201615] Fixing lookupvar as it now returns nil instead of undef<commit_after>PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LC_ALL=en_GB.UTF-8
<%
# Of the known variables, only populate those which have a value in the
# top-scope, from Facter.
@govuk_vars.each do |key|
  val = scope["::#{key}"]
  if val
-%>
<%= "FACTER_#{key}=#{val}" %>
<%
  end
end
-%>

{'fraction_non_alphanumeric': 0.19920844327176782, 'fraction_numerical': 0.013192612137203167, 'mean_word_length': 4.23448275862069, 'pattern_counts': {'":': 2, '<': 10, '<?xml version=': 0, '>': 10, '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': '3423093', 'n_tokens_mistral': 328, 'n_tokens_neox': 300, 'n_words': 69}