<commit_before>module Heroku::Deploy::Task
  class StashGitChanges < Base
    include Heroku::Deploy::Shell

    def before_deploy
      output = git "status --untracked-files --short"

      unless output.empty?
        @stash_name = "heroku-deploy-#{Time.now.to_i}"
        task "Stashing your current changes" do
          git "stash save -u #{@stash_name}"
        end
      end
    end

    def rollback_before_deploy
      after_deploy
    end

    def after_deploy
      return unless @stash_name

      task "Applying back your local changes" do
        stashes       = git 'stash list'
        matched_stash = stashes.split("\n").find { |x| x.match @name }
        label         = matched_stash.match(/^([^:]+)/)

        git "stash apply #{label}"
        git "stash drop #{label}"
      end
    end
  end
end<commit_msg>Fixed typo.<commit_after>module Heroku::Deploy::Task
  class StashGitChanges < Base
    include Heroku::Deploy::Shell

    def before_deploy
      output = git "status --untracked-files --short"

      unless output.empty?
        @stash_name = "heroku-deploy-#{Time.now.to_i}"
        task "Stashing your current changes" do
          git "stash save -u #{@stash_name}"
        end
      end
    end

    def rollback_before_deploy
      after_deploy
    end

    def after_deploy
      return unless @stash_name

      task "Applying back your local changes" do
        stashes       = git 'stash list'
        matched_stash = stashes.split("\n").find { |x| x.match @stash_name }
        label         = matched_stash.match(/^([^:]+)/)

        git "stash apply #{label}"
        git "stash drop #{label}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10384153661464586, 'fraction_numerical': 0.0, 'mean_word_length': 2.1393596986817327, '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': '7579531', 'n_tokens_mistral': 538, 'n_tokens_neox': 513, 'n_words': 142}