<commit_before>#!/usr/bin/env ruby

require 'fileutils'

PREFIX = 'https://github.com/wvlet/airframe'
RELEASE_NOTES_FILE = "docs/src/main/tut/docs/release-notes.md"

current_branch = `git rev-parse --abbrev-ref HEAD`
abort("release.rb must run on master branch. The current branch is #{current_branch}") if current_branch != "master"

last_tag = `git describe --tags --abbrev=0`.chomp
last_version = last_tag.sub("v", "")
puts "last version: #{last_version}"

print "next version? "
next_version = STDIN.gets.chomp<commit_msg>Strip branch name in the release script<commit_after>#!/usr/bin/env ruby

require 'fileutils'

PREFIX = 'https://github.com/wvlet/airframe'
RELEASE_NOTES_FILE = "docs/src/main/tut/docs/release-notes.md"

current_branch = `git rev-parse --abbrev-ref HEAD`.strip
abort("release.rb must run on master branch. The current branch is #{current_branch}") if current_branch != "master"

last_tag = `git describe --tags --abbrev=0`.chomp
last_version = last_tag.sub("v", "")
puts "last version: #{last_version}"

print "next version? "
next_version = STDIN.gets.chomp
{'fraction_non_alphanumeric': 0.1466789667896679, 'fraction_numerical': 0.0018450184501845018, 'mean_word_length': 5.095505617977528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1633488', 'n_tokens_mistral': 380, 'n_tokens_neox': 370, 'n_words': 91}