<commit_before>module Travis
  module Build
    class Script
      class Php < Script
        DEFAULTS = {
          php:      '5.5',
          composer: '--no-interaction --prefer-source'
        }

        def configure
          super
          configure_hhvm if hhvm?
        end

        def export
          super
          sh.export 'TRAVIS_PHP_VERSION', version, echo: false
        end

        def setup
          super
          unless hhvm?
            sh.cmd "phpenv global #{version} 2>/dev/null", assert: false
            sh.if "$? -ne 0" do
              install_php_on_demand(version)
            end
          end
          sh.cmd "phpenv global #{version}", assert: true
          sh.cmd "phpenv rehash", assert: false, echo: false, timing: false
          composer_self_update<commit_msg>For HHVM, force `phpenv global hhvm`<commit_after>module Travis
  module Build
    class Script
      class Php < Script
        DEFAULTS = {
          php:      '5.5',
          composer: '--no-interaction --prefer-source'
        }

        def configure
          super
          configure_hhvm if hhvm?
        end

        def export
          super
          sh.export 'TRAVIS_PHP_VERSION', version, echo: false
        end

        def setup
          super
          if hhvm?
            sh.cmd "phpenv global hhvm", assert: true
          else
            sh.cmd "phpenv global #{version} 2>/dev/null", assert: false
            sh.if "$? -ne 0" do
              install_php_on_demand(version)
            end
            sh.cmd "phpenv global #{version}", assert: true
          end
          sh.cmd "phpenv rehash", assert: false, echo: false, timing: false
          composer_self_update
{'fraction_non_alphanumeric': 0.08079625292740047, 'fraction_numerical': 0.00468384074941452, 'mean_word_length': 1.4414285714285715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1759034', 'n_tokens_mistral': 495, 'n_tokens_neox': 483, 'n_words': 143}