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

# 项目根目录
basepath=$(cd `dirname $0`; pwd)/..

# 准备发布新版本
cd ${basepath}
git flow release start "v$1"

# 更新 package.json 版本号
npm version $1
git commit --amend -m "chore: set version to v$1"
git tag -d "v$1"

# 发布新版本
git flow release finish "v$1"
<commit_msg>feat: Update set_version.sh<commit_after>#!/usr/bin/env bash

# 项目根目录
cd `dirname $0`/..

# 准备发布新版本
git flow release start "v$1"

# 更新 package.json 版本号
npm version $1
git commit --amend -m "chore: set version to v$1"
git tag -d "v$1"

# 发布新版本
git flow release finish "v$1"

{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 3.7478991596638656, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7085339', 'n_tokens_mistral': 270, 'n_tokens_neox': 283, 'n_words': 79}