<commit_before># encoding: utf-8
# vim: ft=ruby expandtab shiftwidth=2 tabstop=2

packages = %w{gettext}

packages.each do |pkg|
  package pkg do
    action [:install, :upgrade]
  end
end

git node['wp-i18n']['path'] do
  repository "https://github.com/osclass/i18n-tools.git"
  reference  "master"
  action     :sync
  user       "root"
  group      "root"
end

execute "echo 'alias makepot=\"#{node['wp-i18n']['makepot']}\"' >> #{node['wp-i18n']['bash_profile']}" do
  not_if "grep 'alias makepot' #{node['wp-i18n']['bash_profile']}"
end
<commit_msg>bug fix<commit_after># encoding: utf-8
# vim: ft=ruby expandtab shiftwidth=2 tabstop=2

packages = %w{gettext}

packages.each do |pkg|
  package pkg do
    action [:install, :upgrade]
  end
end

git node['wp-i18n']['path'] do
  repository "https://github.com/loumray/wp-i18n-tools.git"
  reference  "master"
  action     :sync
  user       "root"
  group      "root"
end

execute "echo 'alias makepot=\"#{node['wp-i18n']['makepot']}\"' >> #{node['wp-i18n']['bash_profile']}" do
  not_if "grep 'alias makepot' #{node['wp-i18n']['bash_profile']}"
end

{'fraction_non_alphanumeric': 0.18256130790190736, 'fraction_numerical': 0.023614895549500452, 'mean_word_length': 4.173708920187793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '6421474', 'n_tokens_mistral': 438, 'n_tokens_neox': 417, 'n_words': 95}