<commit_before>#!/bin/bash

# after merge pull request
tag="$1"
description="$2"

if [ $# -lt 2 ];then
  echo "usage: $0 \$tag \$description"
  exit 1
fi

function gitTag() {
  echo "git tag stage"
  echo
  local tag="$1"
  git-release $tag
}

function packageProperty() {
  local field="$1"
  echo `npm view . $field`
}

function githubRelease() {
  echo "github release stage"
  echo
  local tag="$1"
  local description="$2"
  local name=`packageProperty "name"`
  local repo="npm-$name"

  echo "github release for \"$repo\" in version \"$tag\""
  echo

  github-release release \
    --user "festivals-platform" \
    --repo "$repo" \
    --tag "$tag" \
    --name "Release $tag" \
    --description "$description"
}

gitTag "$tag"
githubRelease "$tag" "$description"
<commit_msg>Updated dependencies<commit_after>#!/bin/bash

# after merge pull request
tag="$1"
description="$2"

if [ $# -lt 2 ];then
  echo "usage: $0 \$tag \$description"
  exit 1
fi

function gitTag() {
  echo "git tag stage"
  echo
  local tag="$1"
  git-release $tag
}

function packageProperty() {
  local field="$1"
  echo `npm view . $field`
}

function githubRelease() {
  echo "github release stage"
  echo
  local tag="$1"
  local description="$2"
  local name=`packageProperty "name"`
  local repo="npm-$name"

  echo "github release for \"$repo\" in version \"$tag\""
  echo

  github-release release \
    --user "festivals-tech" \
    --repo "$repo" \
    --tag "$tag" \
    --name "Release $tag" \
    --description "$description"
}

gitTag "$tag"
githubRelease "$tag" "$description"

{'fraction_non_alphanumeric': 0.1652892561983471, 'fraction_numerical': 0.01144310235219326, 'mean_word_length': 3.1861702127659575, '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': '3037708', 'n_tokens_mistral': 554, 'n_tokens_neox': 525, 'n_words': 163}