<commit_before>require "capistrano/scm/git"

class Capistrano::SubmoduleStrategy < Capistrano::SCM::Git
  def archive_to_release_path
    context.within_only release_path do
      git :init
      git :remote, 'add', 'origin', "file://#{repo_path}"
      git :fetch
      git :fetch, 'origin', fetch(:branch)
      git :reset, '--hard', 'FETCH_HEAD'
      git :submodule, 'update', '--init'
    end
  end

  def fetch_revision
    context.capture(:git, "rev-list --max-count=1 --abbrev-commit --abbrev=12 #{fetch(:branch)}")
  end
end<commit_msg>try to fix capistrano script trying to fix git submodule capistrano task. This broke on the 3.7 upgrade<commit_after>require "capistrano/scm/git"

class Capistrano::SubmoduleStrategy < Capistrano::SCM::Git
  def archive_to_release_path
    backend.within_only release_path do
      git :init
      git :remote, 'add', 'origin', "file://#{repo_path}"
      git :fetch
      git :fetch, 'origin', fetch(:branch)
      git :reset, '--hard', 'FETCH_HEAD'
      git :submodule, 'update', '--init'
    end
  end

  def fetch_revision
    backend.capture(:git, "rev-list --max-count=1 --abbrev-commit --abbrev=12 #{fetch(:branch)}")
  end
end
{'fraction_non_alphanumeric': 0.1423728813559322, 'fraction_numerical': 0.006779661016949152, 'mean_word_length': 3.542307692307692, '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': '1355127', 'n_tokens_mistral': 409, 'n_tokens_neox': 395, 'n_words': 102}