<commit_before>package template

var internal_build = `# {{.Update}}
set -eu
# detect os
if [ "$(uname -sm)" = "Linux x86_64" ]
then
  GO_BUILD="go build -v"
  GO_ARTIFACT="{{.Project.Project_name}}"
else
  GO_BUILD="gox -os Linux -arch amd64"
  GO_ARTIFACT="{{.Project.Project_name}}_linux_amd64"
fi
# oas build context
OAS_CURRENT_TAG="$(git for-each-ref --sort=taggerdate --format '%(refname:short)' refs/tags | tail -n1)"
IFS="." read -r OAS_VERSION_MAJOR OAS_VERSION_MINOR OAS_VERSION_PATCH _JUNK <<< "${OAS_CURRENT_TAG}"
OAS_VERSION_MAJOR="${OAS_VERSION_MAJOR/v/}"
OAS_VERSION_MAJOR="${OAS_VERSION_MAJOR:-0}"
OAS_VERSION_MINOR="${OAS_VERSION_MINOR:-0}"
OAS_VERSION_PATCH="${OAS_VERSION_PATCH:-0}"
if [ "${DRONE:-false}" = "true" ]
then
  OAS_VERSION_META="drone.${DRONE_BUILD_NUMBER:-missing_drone_build_number.$(date +%s)}"
elif [ "${TRAVIS:-false}" = "true" ]
then
  OAS_VERSION_META="travis.${TRAVIS_BUILD_NUMBER:-missing_travis_build_number.$(date +%s)}"
else
  OAS_VERSION_META="local.$(date +%s)"
fi
OAS_VERSION="${OAS_VERSION_MAJOR}.${OAS_VERSION_MINOR}.${OAS_VERSION_PATCH}-${OAS_VERSION_META}"
OAS_NAME="{{.Project.Project_name}}"

export OAS_VERSION
export OAS_NAME
export GO_BUILD
export GO_ARTIFACT

rm -rvf target-root<commit_msg>mas precision para encontrar la versión taggeada<commit_after>package template

var internal_build = `# {{.Update}}
set -eu
# detect os
if [ "$(uname -sm)" = "Linux x86_64" ]
then
  GO_BUILD="go build -v"
  GO_ARTIFACT="{{.Project.Project_name}}"
else
  GO_BUILD="gox -os Linux -arch amd64"
  GO_ARTIFACT="{{.Project.Project_name}}_linux_amd64"
fi
# oas build context
OAS_TAG_META="${DRONE_COMMIT:-${TRAVIS_COMMIT:-}}"
OAS_TAG_META="${OAS_TAG_META:-$(git rev-parse HEAD)}"
OAS_CURRENT_TAG="$(git describe --tags --exact-match $OAS_TAG_META|tail -n1)"
IFS="." read -r OAS_VERSION_MAJOR OAS_VERSION_MINOR OAS_VERSION_PATCH _JUNK <<< "${OAS_CURRENT_TAG}"
OAS_VERSION_MAJOR="${OAS_VERSION_MAJOR/v/}"
OAS_VERSION_MAJOR="${OAS_VERSION_MAJOR:-0}"
OAS_VERSION_MINOR="${OAS_VERSION_MINOR:-0}"
OAS_VERSION_PATCH="${OAS_VERSION_PATCH:-0}"
if [ "${DRONE:-false}" = "true" ]
then
  OAS_VERSION_META="drone.${DRONE_BUILD_NUMBER:-missing_drone_build_number.$(date +%s)}"
elif [ "${TRAVIS:-false}" = "true" ]
then
  OAS_VERSION_META="travis.${TRAVIS_BUILD_NUMBER:-missing_travis_build_number.$(date +%s)}"
else
  OAS_VERSION_META="local.$(date +%s)"
fi
OAS_VERSION="${OAS_VERSION_MAJOR}.${OAS_VERSION_MINOR}.${OAS_VERSION_PATCH}-${OAS_VERSION_META}"
OAS_NAME="{{.Project.Project_name}}"

export OAS_VERSION
export OAS_NAME
export GO_BUILD
export GO_ARTIFACT

rm -rvf target-root
{'fraction_non_alphanumeric': 0.16813481424741478, 'fraction_numerical': 0.009191880505553428, 'mean_word_length': 7.371794871794871, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2614708', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1073, 'n_words': 165}