<commit_before>module PoolParty
  # Chef class bootstrapping chef-client.
  class ChefClient < Chef
    dsl_methods :server_url,:validation_token
    
    def openid_url(url=nil)
      if url.nil?
        return @openid_url||= (u=URI.parse(server_url)
        u.port=4001
        openid_url u.to_s)
      else
        @openid_url=url 
      end
    end
    
    def roles(*roles)
      return @_roles||=cloud.name if roles.empty?
      @_roles=roles
    end

    def compile!
      build_tmp_dir
    end

    private
    def after_initialized
      raise PoolPartyError.create("ChefArgumentMissing", "server_url must be specified!") unless server_url
    end
    def chef_cmd
      return <<-CMD
        $GEM_BIN/chef-client -j /etc/chef/dna.json -c /etc/chef/client.rb"
      CMD
    end
    # The NEW actual chef resolver.
    def build_tmp_dir<commit_msg>Fixed chef_client.roles returning String instead of Array<commit_after>module PoolParty
  # Chef class bootstrapping chef-client.
  class ChefClient < Chef
    dsl_methods :server_url,:validation_token
    
    def openid_url(url=nil)
      if url.nil?
        return @openid_url||= (u=URI.parse(server_url)
        u.port=4001
        openid_url u.to_s)
      else
        @openid_url=url 
      end
    end
    
    def roles(*roles)
      return @_roles||=[cloud.name] if roles.empty?
      @_roles=roles
    end

    def compile!
      build_tmp_dir
    end

    private
    def after_initialized
      raise PoolPartyError.create("ChefArgumentMissing", "server_url must be specified!") unless server_url
    end
    def chef_cmd
      return <<-CMD
        $GEM_BIN/chef-client -j /etc/chef/dna.json -c /etc/chef/client.rb"
      CMD
    end
    # The NEW actual chef resolver.
    def build_tmp_dir
{'fraction_non_alphanumeric': 0.08229284903518728, 'fraction_numerical': 0.004540295119182747, 'mean_word_length': 2.3517110266159698, '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': '6173485', 'n_tokens_mistral': 615, 'n_tokens_neox': 594, 'n_words': 139}