<commit_before>class AddExpiresAtToProjects < ActiveRecord::Migration
  def change
    execute "DROP VIEW user_feeds;DROP VIEW financial_reports;DROP VIEW projects_for_home;DROP FUNCTION expires_at(projects);
             "
    #add_column :projects, :expires_at, :timestamp
    execute " CREATE or replace VIEW financial_reports AS 
      SELECT p.name,
    u.moip_login,
    p.goal,
    p.expires_at,
    p.state
   FROM projects p
     JOIN users u ON u.id = p.user_id;"

     execute <<-SQL
       SELECT events.user_id,
      events.title,
      events.event_type,
      events.event_date,
      events.from_type,
      events.from_id,
      events.to_type,
      events.to_id,
      age(events.event_date) AS age<commit_msg>forgot to uncomment<commit_after>class AddExpiresAtToProjects < ActiveRecord::Migration
  def change
    execute "DROP VIEW user_feeds;DROP VIEW financial_reports;DROP VIEW projects_for_home;DROP FUNCTION expires_at(projects);
             "
    add_column :projects, :expires_at, :timestamp
    execute " CREATE or replace VIEW financial_reports AS 
      SELECT p.name,
    u.moip_login,
    p.goal,
    p.expires_at,
    p.state
   FROM projects p
     JOIN users u ON u.id = p.user_id;"

     execute <<-SQL
       SELECT events.user_id,
      events.title,
      events.event_type,
      events.event_date,
      events.from_type,
      events.from_id,
      events.to_type,
      events.to_id,
      age(events.event_date) AS age
{'fraction_non_alphanumeric': 0.07713310580204778, 'fraction_numerical': 0.0, 'mean_word_length': 2.7493606138107416, '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': '6537191', 'n_tokens_mistral': 500, 'n_tokens_neox': 483, 'n_words': 111}