<commit_before>case node["platform_family"]
    when 'mac_os_x'
        unless File.exists?("/usr/libexec/apache2/mod_jk.so")

          remote_file "#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src.tar.gz" do
            source "http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.40-src.tar.gz"
            owner node['current_user']
          end

          execute "extract tomcat-connectors" do
            command "tar vxzf #{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src.tar.gz -C #{Chef::Config[:file_cache_path]}/"
            user node['current_user']
          end

          execute "symlink Xcode" do
            command "cd /Applications/Xcode.app/Contents/Developer/Toolchains;sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain"
          end

          bash "install_program" do
            user "root"
            cwd "#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src/native"
            code <<-EOH
                ./configure --with-apxs=/usr/sbin/apxs
                make
                make install
                /usr/sbin/apxs -a -e -n "jk" mod_jk.so
            EOH
          end

        end

        directory "/usr/logs" do
            owner "root"
            group "root"
            mode 0777
            action :create
            recursive true
        end
    when 'debian'
        Chef::Log.debug("This recipe is OSX only")
end<commit_msg>Add configfile for mod jk<commit_after>case node["platform_family"]
    when 'mac_os_x'
        unless File.exists?("/usr/libexec/apache2/mod_jk.so")

          remote_file "#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src.tar.gz" do
            source "http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.40-src.tar.gz"
            owner node['current_user']
          end

          execute "extract tomcat-connectors" do
            command "tar vxzf #{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src.tar.gz -C #{Chef::Config[:file_cache_path]}/"
            user node['current_user']
          end

          execute "symlink Xcode" do
            command "cd /Applications/Xcode.app/Contents/Developer/Toolchains;sudo ln -s XcodeDefault.xctoolchain OSX10.10.xctoolchain"
          end

          bash "install_program" do
            user "root"
            cwd "#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.40-src/native"
            code <<-EOH
                ./configure --with-apxs=/usr/sbin/apxs
                make
                make install
                /usr/sbin/apxs -a -e -n "jk" mod_jk.so
            EOH
          end

        end

        directory "/usr/logs" do
            owner "root"
            group "root"
            mode 0777
            action :create
            recursive true
        end
        
        template "/etc/apache2/other/000-modjk.conf" do
            source "apache/jk.conf.erb"
        end
    when 'debian'
        Chef::Log.debug("This recipe is OSX only")
end
{'fraction_non_alphanumeric': 0.11786068009243975, 'fraction_numerical': 0.017827665896335426, 'mean_word_length': 1.7272727272727273, 'pattern_counts': {'":': 0, '<': 7, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4466251', 'n_tokens_mistral': 1008, 'n_tokens_neox': 945, 'n_words': 177}