<commit_before>#!/bin/bash

VERSION=`awk '/^const BEETLE_VERSION =/ { gsub(/"/, ""); print $4}' go/src/github.com/xing/beetle/version.go`
TAG="v$VERSION"
BASEURL="https://api.github.com/repos/xing/beetle"
if test -z "$GITHUB_COM_USER"; then
    echo please set environment variable GITHUB_COM_USER
    exit 1
fi
if test -z "$GITHUB_COM_API_TOKEN"; then
    echo please set environment variable GITHUB_COM_API_TOKEN
    exit 1
fi
AUTHENTICATION="--basic --user $GITHUB_COM_USER:$GITHUB_COM_API_TOKEN"

read -r -d '' DESC <<EOF
Downloads:\n\`curl -L https://github.com/xing/beetle/releases/download/$TAG/linux.tar.gz\`\n\`curl -L https://github.com/xing/beetle/releases/download/$TAG/darwin.tar.gz\`
EOF

read -r -d '' POST_DATA <<EOF
{<commit_msg>fixed bug in creating release due to moved location of go src<commit_after>#!/bin/bash

VERSION=`awk '/^const BEETLE_VERSION =/ { gsub(/"/, ""); print $4}' go/version.go`
TAG="v$VERSION"
BASEURL="https://api.github.com/repos/xing/beetle"
if test -z "$GITHUB_COM_USER"; then
    echo please set environment variable GITHUB_COM_USER
    exit 1
fi
if test -z "$GITHUB_COM_API_TOKEN"; then
    echo please set environment variable GITHUB_COM_API_TOKEN
    exit 1
fi
AUTHENTICATION="--basic --user $GITHUB_COM_USER:$GITHUB_COM_API_TOKEN"

read -r -d '' DESC <<EOF
Downloads:\n\`curl -L https://github.com/xing/beetle/releases/download/$TAG/linux.tar.gz\`\n\`curl -L https://github.com/xing/beetle/releases/download/$TAG/darwin.tar.gz\`
EOF

read -r -d '' POST_DATA <<EOF
{
{'fraction_non_alphanumeric': 0.1579643093192333, 'fraction_numerical': 0.0039656311962987445, 'mean_word_length': 4.2387543252595155, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '574407', 'n_tokens_mistral': 601, 'n_tokens_neox': 580, 'n_words': 125}