<commit_before>## -------------------------------------------------------------------
##
## Erlang Toolbox: OTP release tasks
## Copyright (c) 2008 The Hive.  All rights reserved.
##
## -------------------------------------------------------------------
require 'rake/clean'
include FileUtils

if !defined?(REL_APPNAME)
  fail "The variable REL_APPNAME must be defined"
end

CLEAN.include FileList["#{REL_APPNAME}*"]

REL_APPS = %w( runtime_tools )
REL_VERSION  = `cat vers/#{REL_APPNAME}.version`.strip
REL_FULLNAME = "#{REL_APPNAME}-#{REL_VERSION}"

ERTS_VSN = `scripts/get-erts-vsn`.strip

directory REL_APPNAME


task :build_app do
  cd "../apps" do
    sh "rake", :verbose => false
  end
end

task :prepare => REL_APPNAME do
  sh "scripts/make-rel #{REL_APPNAME} #{REL_VERSION} #{REL_APPS.join(' ')}"
  sh "tar -xzf #{REL_FULLNAME}.tar.gz -C #{REL_APPNAME}"
  rm "#{REL_FULLNAME}.tar.gz"

  sh %Q(echo "#{ERTS_VSN} #{REL_VERSION}" > #{REL_APPNAME}/releases/start_erl.data)
  cp_r Dir.glob("overlays/#{REL_APPNAME}/*"), REL_APPNAME
end

task :stage => [:clean, :build_app, :prepare]

task :package => :stage do<commit_msg>Changed the :package task to :release to avoid clashing with the task for making faxien packages.<commit_after>## -------------------------------------------------------------------
##
## Erlang Toolbox: OTP release tasks
## Copyright (c) 2008 The Hive.  All rights reserved.
##
## -------------------------------------------------------------------
require 'rake/clean'
include FileUtils

if !defined?(REL_APPNAME)
  fail "The variable REL_APPNAME must be defined"
end

CLEAN.include FileList["#{REL_APPNAME}*"]

REL_APPS = %w( runtime_tools )
REL_VERSION  = `cat vers/#{REL_APPNAME}.version`.strip
REL_FULLNAME = "#{REL_APPNAME}-#{REL_VERSION}"

ERTS_VSN = `scripts/get-erts-vsn`.strip

directory REL_APPNAME


task :build_app do
  cd "../apps" do
    sh "rake", :verbose => false
  end
end

task :prepare => REL_APPNAME do
  sh "scripts/make-rel #{REL_APPNAME} #{REL_VERSION} #{REL_APPS.join(' ')}"
  sh "tar -xzf #{REL_FULLNAME}.tar.gz -C #{REL_APPNAME}"
  rm "#{REL_FULLNAME}.tar.gz"

  sh %Q(echo "#{ERTS_VSN} #{REL_VERSION}" > #{REL_APPNAME}/releases/start_erl.data)
  cp_r Dir.glob("overlays/#{REL_APPNAME}/*"), REL_APPNAME
end

task :stage => [:clean, :build_app, :prepare]

task :release => :stage do
{'fraction_non_alphanumeric': 0.2564212328767123, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 2.751203852327448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2091721', 'n_tokens_mistral': 801, 'n_tokens_neox': 779, 'n_words': 192}