<commit_before>module Travis::API::V3
  class Renderer::Request < ModelRenderer
    representation(:minimal,  :id, :state, :result, :message)
    representation(:standard, *representations[:minimal], :repository, :branch_name, :commit, :builds, :owner, :created_at, :event_type, :base_commit, :head_commit)

    def self.available_attributes
      super + ['raw_configs']
    end

    def raw_configs
      configs = model.raw_configurations.to_a
      configs.any? ? configs : { config: model.yaml_config.yaml, source: '.travis.yml' }
    end
  end
end<commit_msg>fix request raw_config to return an array<commit_after>module Travis::API::V3
  class Renderer::Request < ModelRenderer
    representation(:minimal,  :id, :state, :result, :message)
    representation(:standard, *representations[:minimal], :repository, :branch_name, :commit, :builds, :owner, :created_at, :event_type, :base_commit, :head_commit)

    def self.available_attributes
      super + ['raw_configs']
    end

    def raw_configs
      configs = model.raw_configurations.to_a
      configs.any? ? configs : [{ config: model.yaml_config.yaml, source: '.travis.yml' }]
    end
  end
end
{'fraction_non_alphanumeric': 0.12413793103448276, 'fraction_numerical': 0.0017241379310344827, 'mean_word_length': 4.502369668246446, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3613905', 'n_tokens_mistral': 376, 'n_tokens_neox': 363, 'n_words': 83}