<commit_before>def install_ubuntu
  include_recipe "apt"
  apt_repository "docker" do
    uri "http://get.docker.com/ubuntu"
    distribution "docker"
    #distribution node["lsb"]["codename"]
    components ["main"]
    keyserver "keyserver.ubuntu.<EMAIL>"
    key "36A1D7869245C8950F966E92D8576A8BA88D21E9"
  end
  package "lxc-docker"
end

def install_rhel
  include_recipe "yum-epel"
  package "docker-io" do
    action :upgrade
  end

  service "docker"
end

if platform?("ubuntu")
  install_ubuntu
elsif platform?("redhat", "centos")
  install_rhel
else
  raise("#{node['platform']} is not supported")
end<commit_msg>update service<commit_after>def install_ubuntu
  include_recipe "apt"
  apt_repository "docker" do
    uri "http://get.docker.com/ubuntu"
    distribution "docker"
    #distribution node["lsb"]["codename"]
    components ["main"]
    keyserver "keyserver.ubuntu.com"
    key "36A1D7869245C8950F966E92D8576A8BA88D21E9"
  end
  package "lxc-docker"
end

def install_rhel
  include_recipe "yum-epel"
  package "docker-io" do
    action :upgrade
  end

  service "docker" do
    supports :status => true, :restart => true, :reload => true
    action [ :enable, :start ]
  end

end

if platform?("ubuntu")
  install_ubuntu
elsif platform?("redhat", "centos")
  install_rhel
else
  raise("#{node['platform']} is not supported")
end
{'fraction_non_alphanumeric': 0.1201780415430267, 'fraction_numerical': 0.04302670623145401, 'mean_word_length': 4.353174603174603, 'pattern_counts': {'":': 0, '<': 4, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7441008', 'n_tokens_mistral': 540, 'n_tokens_neox': 480, 'n_words': 110}