<commit_before>
require 'travis/build/appliances/base'

module Travis
  module Build
    module Appliances
      class FixHhvmSource < Base
        def apply
          sh.if "$(command -v lsb_release)" do
            command = <<-EOF
            if [[ -d /var/lib/apt/lists && -n $(command -v apt-get) ]]; then
              grep -l -i -r hhvm /etc/apt/sources.list.d | xargs sudo rm -vf
            fi
            EOF
            sh.cmd command, echo: false
            sh.cmd "apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94", echo: false, assert: false, sudo: true
            sh.cmd "add-apt-repository 'deb [ arch=amd64 ] http://dl.hhvm.com/ubuntu $(lsb_release -sc) main'", echo: false, assert: false, sudo: true
          end
        end
      end
    end
  end
end<commit_msg>Fixed quotes usage.<commit_after>
require 'travis/build/appliances/base'

module Travis
  module Build
    module Appliances
      class FixHhvmSource < Base
        def apply
          sh.if "$(command -v lsb_release)" do
            command = <<-EOF
            if [[ -d /var/lib/apt/lists && -n $(command -v apt-get) ]]; then
              grep -l -i -r hhvm /etc/apt/sources.list.d | xargs sudo rm -vf
            fi
            EOF
            sh.cmd command, echo: false
            sh.cmd "apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xB4112585D386EB94", echo: false, assert: false, sudo: true
            sh.cmd 'add-apt-repository "deb [ arch=amd64 ] http://dl.hhvm.com/ubuntu $(lsb_release -sc) main"', echo: false, assert: false, sudo: true
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11953883495145631, 'fraction_numerical': 0.02063106796116505, 'mean_word_length': 1.8431034482758621, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1682613', 'n_tokens_mistral': 572, 'n_tokens_neox': 528, 'n_words': 157}