<commit_before>require "mina_revisioneer/version"
require "mina/revisioneer_helpers"
include Mina::RevisioneerHelpers

# # Modules: Revisioneer
# Adds settings and tasks for interfacing with Revisioneer
#
#     require 'mina-revisioneer'

# ## Settings
# Any and all of these settings can be overriden in your `deploy.rb`.

# ### revisioneer_host
# Sets the revisioneer host.

set_default :revisioneer_host, 'https://revisioneer.io'

# ### revisioneer_api_token
# Sets the api_token required by revisioneer

set_default :revisioneer_api_token, ''

# ### revisioneer_inclusion
# Sets a pattern by which git commit messages are filtered.
# Only matching messages will be included
set_default :revisioneer_inclusion, false

# ### revisioneer_exclusion
# Sets a pattern by which git commit messages are filtered.
# Matching messages will be excluded
set_default :revisioneer_exclusion, /\[skip-rev\]/

# ## Deploy tasks
# These tasks are meant to be invoked inside deploy scripts, not invoked on
# their own.

namespace :revisioneer do
  # ### revisioneer:notify
  # notifies revisioneer of a new deployment
  desc "notifies revisioneer of a new deployment"
  task :notify do
    queue %{
      echo "-----> Notifying revisioneer"
      #{echo_cmd %[curl -X POST "#{revisioneer_host}/deployments" -d '{ "sha": "#{revisioneer_sha}", "messages": #{JSON.dump(deploy_messages)} }' -H "API-TOKEN: #{revisioneer_api_token}" -s]}
    }
  end
end<commit_msg>bugfix: revisioneer_sha -> current_sha<commit_after>require "mina_revisioneer/version"
require "mina/revisioneer_helpers"
include Mina::RevisioneerHelpers

# # Modules: Revisioneer
# Adds settings and tasks for interfacing with Revisioneer
#
#     require 'mina-revisioneer'

# ## Settings
# Any and all of these settings can be overriden in your `deploy.rb`.

# ### revisioneer_host
# Sets the revisioneer host.

set_default :revisioneer_host, 'https://revisioneer.io'

# ### revisioneer_api_token
# Sets the api_token required by revisioneer

set_default :revisioneer_api_token, ''

# ### revisioneer_inclusion
# Sets a pattern by which git commit messages are filtered.
# Only matching messages will be included
set_default :revisioneer_inclusion, false

# ### revisioneer_exclusion
# Sets a pattern by which git commit messages are filtered.
# Matching messages will be excluded
set_default :revisioneer_exclusion, /\[skip-rev\]/

# ## Deploy tasks
# These tasks are meant to be invoked inside deploy scripts, not invoked on
# their own.

namespace :revisioneer do
  # ### revisioneer:notify
  # notifies revisioneer of a new deployment
  desc "notifies revisioneer of a new deployment"
  task :notify do
    queue %{
      echo "-----> Notifying revisioneer"
      #{echo_cmd %[curl -X POST "#{revisioneer_host}/deployments" -d '{ "sha": "#{current_sha}", "messages": #{JSON.dump(deploy_messages)} }' -H "API-TOKEN: #{revisioneer_api_token}" -s]}
    }
  end
end
{'fraction_non_alphanumeric': 0.10332990044627531, 'fraction_numerical': 0.0, 'mean_word_length': 4.747534516765286, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '3913849', 'n_tokens_mistral': 937, 'n_tokens_neox': 888, 'n_words': 289}