<commit_before>desc "include custom landing page before heroku san deploys"
task :before_deploy => :environment do

    each_heroku_app do |stage|
      home_file = stage.config['HOME_FILE_DESKTOP']
    # Perform this task only if custom landing page is not present in app/views/home/_show.html.haml
    if home_file.present?
      puts "-----> custom landing page(s) detected..."
      puts "-----> including custom landing page(s) in a temp commit"

      @did_not_stash = system("git stash| grep 'No local changes to save'")      
      system("git add #{home_file} -f") ? true : fail
      system("git commit -m 'adding custom landing page(s) for heroku'") ? true : fail

      puts "-----> done"
    end
  end

end<commit_msg>i am dumb.  include custom mobile in before_deploy [ci skip]<commit_after>desc "include custom landing page before heroku san deploys"
task :before_deploy => :environment do

    each_heroku_app do |stage|
      desktop_home_file = stage.config['HOME_FILE_DESKTOP']
      mobile_home_file = stage.config['HOME_FILE_MOBILE']
      # Perform this task only if custom landing page is not present in app/views/home/_show.html.haml
    if desktop_home_file.present? || mobile_home_file.present?
      puts "-----> custom landing page(s) detected..."
      puts "-----> including custom landing page(s) in a temp commit"

      @did_not_stash = system("git stash| grep 'No local changes to save'")      
      system("git add #{desktop_home_file} -f") ? true : fail
      system("git add #{mobile_home_file} -f") ? true : fail
      system("git commit -m 'adding custom landing page(s) for heroku'") ? true : fail

      puts "-----> done"
    end
  end

end
{'fraction_non_alphanumeric': 0.11586452762923351, 'fraction_numerical': 0.0, 'mean_word_length': 3.087378640776699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4200078', 'n_tokens_mistral': 516, 'n_tokens_neox': 507, 'n_words': 173}