<commit_before>class TravisProject < Project

  attr_accessible :travis_github_account, :travis_repository
  validates_presence_of :travis_github_account, :travis_repository, unless: ->(project) { project.webhooks_enabled }

  def feed_url
    "#{base_url}/builds.json"
  end

  def build_status_url
    feed_url
  end

  def current_build_url
    base_url
  end

  def project_name
    travis_github_account
  end

  def fetch_payload
    TravisJsonPayload.new
  end

  def webhook_payload
    TravisJsonPayload.new
  end

  private

  def base_url
    if webhooks_enabled?
      parsed_url
    else
      "https://api.travis-ci.org/repositories/#{travis_github_account}/#{travis_repository}"
    end
  end

end
<commit_msg>base url changed to link to html page on travis CI, not json<commit_after>class TravisProject < Project

  attr_accessible :travis_github_account, :travis_repository
  validates_presence_of :travis_github_account, :travis_repository, unless: ->(project) { project.webhooks_enabled }

  BASE_HTML_URL = 'https://travis-ci.org'

  def feed_url
    "#{base_url}/builds.json"
  end

  def build_status_url
    feed_url
  end

  def current_build_url
    base_url
  end

  def project_name
    travis_github_account
  end

  def fetch_payload
    TravisJsonPayload.new
  end

  def webhook_payload
    TravisJsonPayload.new
  end

  private

  def base_url
    if webhooks_enabled?
      parsed_url
    else
      "#{BASE_HTML_URL}/#{travis_github_account}/#{travis_repository}"
    end
  end

end

{'fraction_non_alphanumeric': 0.06389986824769434, 'fraction_numerical': 0.0, 'mean_word_length': 3.617021276595745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5497102', 'n_tokens_mistral': 532, 'n_tokens_neox': 537, 'n_words': 108}