<commit_before># APT Package Management --------------------------------------------
# Install the APT package management tool, and then install any
# packages that we will need to have to complete the buildout.
#
include_recipe "apt"
include_recipe "build-essential"
gem_package "ruby-shadow" do
  action :install
end

# User Creation -----------------------------------------------------
# Create a user account for the 'rcmet' user
#
user "rcmet" do
  comment "RCMET user"
  uid 1001
  #gid "users"
  home "/usr/local/rcmet"
  shell "/bin/bash"
  #password "<PASSWORD>"
end

directory "/usr/local/rcmet" do
  mode "0777"
end

# Apache Web Server Configuration -----------------------------------
# Install the Apache2 HTTPD Web Server, and configure a virtual host
# for the RCMET web application. 
#
include_recipe "apache2"

execute "disable-default-site" do
  command "sudo a2dissite default"
  notifies :reload, resources(:service => "apache2"), :delayed
end

web_app "rcmet" do
  template "rcmet.conf.erb"
  notifies :reload, resources(:service => "apache2"), :delayed
end

# Python Environment ------------------------------------------------
# Install Python and package management tools 'pip' and 'virtualenv'.
# Then create a virtual environment in  the 'rcmet' user's home 
# directory, into which all RCMET python code and dependencies can be 
# installed.
#
include_recipe "python"

python_virtualenv "/usr/local/rcmet/env" do
  owner "rcmet"
  group "rcmet"
  action :create
end
<commit_msg>make python virtualenv dir name more expressive<commit_after># APT Package Management --------------------------------------------
# Install the APT package management tool, and then install any
# packages that we will need to have to complete the buildout.
#
include_recipe "apt"
include_recipe "build-essential"
gem_package "ruby-shadow" do
  action :install
end

# User Creation -----------------------------------------------------
# Create a user account for the 'rcmet' user
#
user "rcmet" do
  comment "RCMET user"
  uid 1001
  #gid "users"
  home "/usr/local/rcmet"
  shell "/bin/bash"
  #password "<PASSWORD>"
end

directory "/usr/local/rcmet" do
  mode "0777"
end

# Apache Web Server Configuration -----------------------------------
# Install the Apache2 HTTPD Web Server, and configure a virtual host
# for the RCMET web application. 
#
include_recipe "apache2"

execute "disable-default-site" do
  command "sudo a2dissite default"
  notifies :reload, resources(:service => "apache2"), :delayed
end

web_app "rcmet" do
  template "rcmet.conf.erb"
  notifies :reload, resources(:service => "apache2"), :delayed
end

# Python Environment ------------------------------------------------
# Install Python and package management tools 'pip' and 'virtualenv'.
# Then create a virtual environment in  the 'rcmet' user's home 
# directory, into which all RCMET python code and dependencies can be 
# installed.
#
include_recipe "python"

python_virtualenv "/usr/local/rcmet/python-env" do
  owner "rcmet"
  group "rcmet"
  action :create
end

{'fraction_non_alphanumeric': 0.19803600654664485, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 2.5700934579439254, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7589113', 'n_tokens_mistral': 877, 'n_tokens_neox': 849, 'n_words': 324}