<commit_before>class FixLogsForViewContent < ActiveRecord::Migration
  class ActivityLog < ActiveRecord::Base ;end

  def self.up
    to_fix = ActivityLog.find(:all,:conditions=>{:action=>"download",:controller_name=>"content_blobs"})
    to_fix.each do |log|
      log.action="inline_view"
      class << log
        def record_timestamps
          false
        end
      end
      log.save
    end
  end

  def self.down
    to_undo = ActivityLog.find(:all,:conditions=>{:action=>"inline_view",:controller_name=>"content_blobs"})
    to_undo.each do |log|
      log.action="download"
      class << log
        def record_timestamps
          false
        end
      end
      log.save
    end
  end
end<commit_msg>removed code for updating activity logs for view content,after discovering that download for assets with single items also now go through this route and would be lost<commit_after>class FixLogsForViewContent < ActiveRecord::Migration
  class ActivityLog < ActiveRecord::Base ;end

  def self.up

  end

  def self.down

  end
end
{'fraction_non_alphanumeric': 0.08500477554918816, 'fraction_numerical': 0.0, 'mean_word_length': 3.142292490118577, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4551007', 'n_tokens_mistral': 312, 'n_tokens_neox': 305, 'n_words': 83}