<commit_before>#
# Cookbook Name:: omf
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
case node["platform_family"]
when "debian"
  include_recipe "apt"

  pkg_list = %w(build-essential libssl-dev)

  case node["platform"]
  when "debian"
    o_k = "http://download.opensuse.org/repositories/home:cdwertmann:oml/Debian_#{node["platform_version"].to_i}.0/Release.key"
    o_u = "http://download.opensuse.org/repositories/home:/cdwertmann:/oml/Debian_#{node["platform_version"].to_i}.0/"
    v_check = "7"
  when "ubuntu"
    o_k = "http://download.opensuse.org/repositories/home:cdwertmann:oml/xUbuntu_#{node["platform_version"]}/Release.key"
    o_u = "http://download.opensuse.org/repositories/home:/cdwertmann:/oml/xUbuntu_#{node["platform_version"]}/"
    v_check = "13.04"
  end

  pkg_list += node["platform_version"] < v_check ? %w(ruby1.9.1 ruby1.9.1-dev) : %w(ruby ruby-dev)

  apt_repository 'oml' do
    key o_k
    uri o_u
    components ['/']
  end
when "fedora"
  magic_shell_environment "PATH" do
    value "$PATH:/usr/local/bin"
  end
  pkg_list = %w(ruby ruby-devel make gcc gpp gcc-c++ openssl-devel)
when "rhel"
  # FIXME Failed in CentOS 6.5
  pkg_list = %w(centos-release-SCL ruby193 ruby193-ruby-devel make gcc gcc-c++ openssl-devel)
end

pkg_list << "oml2-apps"

pkg_list.each do |p|
  package p do
    action :upgrade
  end
end
<commit_msg>Add yum repo for OML apps<commit_after>#
# Cookbook Name:: omf
# Recipe:: default
#
# Copyright 2014, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
case node["platform_family"]
when "debian"
  include_recipe "apt"

  pkg_list = %w(build-essential libssl-dev)

  case node["platform"]
  when "debian"
    o_k = "http://download.opensuse.org/repositories/home:cdwertmann:oml/Debian_#{node["platform_version"].to_i}.0/Release.key"
    o_u = "http://download.opensuse.org/repositories/home:/cdwertmann:/oml/Debian_#{node["platform_version"].to_i}.0/"
    v_check = "7"
  when "ubuntu"
    o_k = "http://download.opensuse.org/repositories/home:cdwertmann:oml/xUbuntu_#{node["platform_version"]}/Release.key"
    o_u = "http://download.opensuse.org/repositories/home:/cdwertmann:/oml/xUbuntu_#{node["platform_version"]}/"
    v_check = "13.04"
  end

  pkg_list += node["platform_version"] < v_check ? %w(ruby1.9.1 ruby1.9.1-dev) : %w(ruby ruby-dev)

  apt_repository 'oml' do
    key o_k
    uri o_u
    components ['/']
  end
when "fedora"
  magic_shell_environment "PATH" do
    value "$PATH:/usr/local/bin"
  end
  pkg_list = %w(ruby ruby-devel make gcc gpp gcc-c++ openssl-devel)
  if node["platform_version"] < 17
  else
    o_url = "http://download.opensuse.org/repositories/home:cdwertmann:oml/Fedora_#{node["platform_version"]}/home:cdwertmann:oml.repo"
  end

  yum_repository 'oml' do
    desciption "OML packages"
    baseurl o_url
    gpgcheck false
    action :create
  end
when "rhel"
  # FIXME Failed in CentOS 6.5
  pkg_list = %w(centos-release-SCL ruby193 ruby193-ruby-devel make gcc gcc-c++ openssl-devel)
end

pkg_list << "oml2-apps"

pkg_list.each do |p|
  package p do
    action :upgrade
  end
end

{'fraction_non_alphanumeric': 0.14580031695721077, 'fraction_numerical': 0.01711568938193344, 'mean_word_length': 4.07395498392283, 'pattern_counts': {'":': 0, '<': 10, '<?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': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '341570', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1203, 'n_words': 231}