<commit_before>

if [ 'fedora', 'rhel' ].include? node['platform_family'] 
  package 'perl-libwww-perl' do
    action :remove
  end
  package 'perl-Sys-Syslog'
  package 'perl-Archive-Tar'
  package 'perl-LWP-Protocol-https'
  package 'perl-Mozilla-CA'
  package 'openssl-devel'

  if platform_family?('rhel')
    include_recipe 'build-essential'
    include_recipe 'cpan::bootstrap'

    [
      'LWP::UserAgent::Determined',
      'Crypt::SSLeay',
      'IO::Socket::SSL',
      'LWP::Protocol::https'
    ].each do |mod|
      Chef::Log.debug("Installing #{mod}")
      cpan_client mod do
        action :install
        install_type 'cpan_module'
        force true
        user 'root'
        group 'root'<commit_msg>There's no point removing perl-libwww-perl<commit_after>

if [ 'fedora', 'rhel' ].include? node['platform_family'] 
  package 'perl-Sys-Syslog'
  package 'perl-Archive-Tar'
  package 'perl-LWP-Protocol-https'
  package 'perl-Mozilla-CA'
  package 'openssl-devel'

  if platform_family?('rhel')
    include_recipe 'build-essential'
    include_recipe 'cpan::bootstrap'

    [
      'LWP::UserAgent::Determined',
      'Crypt::SSLeay',
      'IO::Socket::SSL',
      'LWP::Protocol::https'
    ].each do |mod|
      Chef::Log.debug("Installing #{mod}")
      cpan_client mod do
        action :install
        install_type 'cpan_module'
        force true
        user 'root'
        group 'root'
{'fraction_non_alphanumeric': 0.13983050847457626, 'fraction_numerical': 0.0, 'mean_word_length': 2.969187675070028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1503176', 'n_tokens_mistral': 510, 'n_tokens_neox': 481, 'n_words': 97}