<commit_before>#!/bin/bash
set -e

if [ -z "$1" -o -z "$2" ]; then
    echo 'Usage: build-dev.sh {firefox/apt|firefox/ubuntuzilla|chrome/apt|chrome/local|opera/presto|opera/blink/local|opera/blink/apt} <browser_version> [<cleanup={true|false}>] [<requires_java={true|false}>]'
    exit 1
fi
set -x

browser=$1
version=$2
cleanup=${3:-"false"}
requires_java=${4:-"false"}
browser_name=$(echo "$browser" | sed -e 's/\(\/..*\)\+//g')
tag="selenoid/dev:"$browser_name"_"$version
if [ "$cleanup" == "false" ]; then
    tag=$tag"_full"
fi
dir_name="/tmp/$(uuidgen | sed -e 's|-||g')"<commit_msg>Ability to add custom tag version in build-dev.sh<commit_after>#!/bin/bash
set -e

if [ -z "$1" -o -z "$2" ]; then
    echo 'Usage: build-dev.sh {firefox/apt|firefox/ubuntuzilla|chrome/apt|chrome/local|opera/presto|opera/blink/local|opera/blink/apt} <browser_version> [<cleanup={true|false}>] [<requires_java={true|false}>]'
    exit 1
fi
set -x

browser=$1
version=$2
cleanup=${3:-"false"}
requires_java=${4:-"false"}
tag_version="$version"
if [ -n "$5" ]; then
    tag_version=$5
fi
browser_name=$(echo "$browser" | sed -e 's/\(\/..*\)\+//g')
tag="selenoid/dev:"$browser_name"_"$tag_version
if [ "$cleanup" == "false" ]; then
    tag=$tag"_full"
fi
dir_name="/tmp/$(uuidgen | sed -e 's|-||g')"
{'fraction_non_alphanumeric': 0.23753894080996885, 'fraction_numerical': 0.012461059190031152, 'mean_word_length': 4.840909090909091, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2319795', 'n_tokens_mistral': 533, 'n_tokens_neox': 506, 'n_words': 97}