<commit_before>#!/bin/sh

gulp build
cd dist/prod
gversion=$(jq .version --raw-output otsimo.json)
gname=$(jq .unique_name --raw-output otsimo.json)


if [ "$1" = "staging" ];then
    export OTSIMOCTL_DISCOVERY_ENV="$1"
    export OTSIMOCTL_DISCOVERY=services.otsimo.xyz:30862
fi

otsimoctl game publish
otsimoctl game change-state $gname $gversion waiting
otsimoctl game change-state $gname $gversion validated
otsimoctl game change-state $gname $gversion production
<commit_msg>login intf added<commit_after>#!/bin/sh

if [ "$1" = "login" ];then
    export OTSIMOCTL_DISCOVERY_ENV="staging"
    export OTSIMOCTL_DISCOVERY=services.otsimo.xyz:30862
    otsimoctl login
    exit
fi

gulp build
cd dist/prod
gversion=$(jq .version --raw-output otsimo.json)
gname=$(jq .unique_name --raw-output otsimo.json)


if [ "$1" = "staging" ];then
    export OTSIMOCTL_DISCOVERY_ENV="staging"
    export OTSIMOCTL_DISCOVERY=services.otsimo.xyz:30862
fi

otsimoctl game publish
otsimoctl game change-state $gname $gversion waiting
otsimoctl game change-state $gname $gversion validated
otsimoctl game change-state $gname $gversion production

{'fraction_non_alphanumeric': 0.10530973451327434, 'fraction_numerical': 0.016814159292035398, 'mean_word_length': 5.080645161290323, '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': '6143380', 'n_tokens_mistral': 426, 'n_tokens_neox': 402, 'n_words': 100}