<commit_before>require 'travis/api/app'

class Travis::Api::App
  class Endpoint
    # Artifacts are generated by builds. Currently we only expose logs as
    # artifacts
    class Artifacts < Endpoint
      # Fetches an artifact by it's *id*.
      get '/:id' do |id|
        respond_with service(:find_artifact, params)
      end

      put '/:id' do |id|
        respond_with service(:update_artifact, params)
      end
    end
  end<commit_msg>comment out put to /artifacts/:id for now<commit_after>require 'travis/api/app'

class Travis::Api::App
  class Endpoint
    # Artifacts are generated by builds. Currently we only expose logs as
    # artifacts
    class Artifacts < Endpoint
      # Fetches an artifact by it's *id*.
      get '/:id' do |id|
        respond_with service(:find_artifact, params)
      end

      # TODO needs auth, required for live log archiving on log:aggregted in travis-tasks
      #
      # put '/:id' do |id|
      #   respond_with service(:update_artifact, params)
      # end
    end
  end
{'fraction_non_alphanumeric': 0.08852140077821012, 'fraction_numerical': 0.0, 'mean_word_length': 2.636042402826855, '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': '1445634', 'n_tokens_mistral': 320, 'n_tokens_neox': 307, 'n_words': 107}