<commit_before>require "vagrant-bindfs/version"

module VagrantPlugins
  module Bindfs
    module Cap
      module RedHat
        module InstallBindfs

          def self.install_bindfs(machine)
            machine.communicate.tap do |comm|
              if comm.test("test 0 -eq $(sudo yum search bindfs 2>&1 >/dev/null | wc -l)")
                comm.sudo("yum -y install bindfs")
              else
                comm.sudo("yum -y install fuse fuse-devel gcc")
                comm.sudo("wget http://bindfs.org/downloads/bindfs-#{SOURCE_VERSION}.tar.gz -O bindfs.tar.gz")
                comm.sudo("tar --overwrite -zxvf bindfs.tar.gz")
                comm.sudo("[ -d ./bindfs-#{SOURCE_VERSION} ] && cd bindfs-#{SOURCE_VERSION} && ./configure && make && make install")
                comm.sudo("ln -s /usr/local/bin/bindfs /usr/bin")
              end
            end
          end

        end
      end
    end<commit_msg>Added the wget package mentioned in GitHub issue #27.<commit_after>require "vagrant-bindfs/version"

module VagrantPlugins
  module Bindfs
    module Cap
      module RedHat
        module InstallBindfs

          def self.install_bindfs(machine)
            machine.communicate.tap do |comm|
              if comm.test("test 0 -eq $(sudo yum search bindfs 2>&1 >/dev/null | wc -l)")
                comm.sudo("yum -y install bindfs")
              else
                comm.sudo("yum -y install fuse fuse-devel gcc wget")
                comm.sudo("wget http://bindfs.org/downloads/bindfs-#{SOURCE_VERSION}.tar.gz -O bindfs.tar.gz")
                comm.sudo("tar --overwrite -zxvf bindfs.tar.gz")
                comm.sudo("[ -d ./bindfs-#{SOURCE_VERSION} ] && cd bindfs-#{SOURCE_VERSION} && ./configure && make && make install")
                comm.sudo("ln -s /usr/local/bin/bindfs /usr/bin")
              end
            end
          end

        end
      end
    end
{'fraction_non_alphanumeric': 0.11955951756685894, 'fraction_numerical': 0.004195070791819612, 'mean_word_length': 1.7296137339055795, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3426445', 'n_tokens_mistral': 613, 'n_tokens_neox': 574, 'n_words': 142}