<commit_before>#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -x


BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
cd "$BUILD_DIR"

docker build -t python_swagger_validator .
docker run --name swagger-validator -e APP_ADDR=0.0.0.0 -dp 127.0.0.1:7777:8000 python_swagger_validator<commit_msg>Changes for build scripts<commit_after>#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
set -x

BUILD_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
cd "$BUILD_DIR"

bash -c 'type -p docker || curl -sSL https://get.docker.io/builds/Linux/x86_64/docker-1.9.1.tgz | tar zxf - -C /'

docker build -t python_swagger_validator .
docker run --name swagger-validator -e APP_ADDR=0.0.0.0 -dp 127.0.0.1:7777:8000 python_swagger_validator
{'fraction_non_alphanumeric': 0.18716577540106952, 'fraction_numerical': 0.06016042780748663, 'mean_word_length': 4.165517241379311, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4464673', 'n_tokens_mistral': 340, 'n_tokens_neox': 304, 'n_words': 67}