<commit_before>#! /bin/sh

if [ $# -eq 1 -a "$1" = "-x" ]; then
    export PUBLISH_TO_BINTRAY=true
    CMD="sbt"
else
    echo "Showing commands that would be executed. Use -x to run."
    CMD="echo sbt"
fi

FULL_VERSIONS="2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.11.0 2.11.1 2.11.2 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.12.0-M3"
BIN_VERSIONS="2.10.6 2.11.8 2.12.0-M3"
SBT_VERSION="2.10.6"

COMPILER="compiler jUnitPlugin"
LIBS="library javalibEx ir irJS tools toolsJS jsEnvs testAdapter stubs testInterface cli jUnitRuntime"

# Publish compiler
for v in $FULL_VERSIONS; do
    ARGS="++$v"
    for p in $COMPILER; do
        ARGS="$ARGS $p/publishSigned"
    done
    $CMD $ARGS
done

# Package libraries
for v in $BIN_VERSIONS; do
    ARGS="++$v"
    for p in $LIBS; do
        ARGS="$ARGS $p/publishSigned"
    done
    $CMD $ARGS
done

# Publish sbt-plugin
$CMD "++$SBT_VERSION" "sbtPlugin/publishSigned"<commit_msg>Fix #2300: Do not publish the CLI for 2.12.0-M3.<commit_after>#! /bin/sh

if [ $# -eq 1 -a "$1" = "-x" ]; then
    export PUBLISH_TO_BINTRAY=true
    CMD="sbt"
else
    echo "Showing commands that would be executed. Use -x to run."
    CMD="echo sbt"
fi

FULL_VERSIONS="2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.11.0 2.11.1 2.11.2 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.12.0-M3"
BIN_VERSIONS="2.10.6 2.11.8 2.12.0-M3"
CLI_VERSIONS="2.10.6 2.11.8"
SBT_VERSION="2.10.6"

COMPILER="compiler jUnitPlugin"
LIBS="library javalibEx ir irJS tools toolsJS jsEnvs testAdapter stubs testInterface jUnitRuntime"

# Publish compiler
for v in $FULL_VERSIONS; do
    ARGS="++$v"
    for p in $COMPILER; do
        ARGS="$ARGS $p/publishSigned"
    done
    $CMD $ARGS
done

# Publish libraries
for v in $BIN_VERSIONS; do
    ARGS="++$v"
    for p in $LIBS; do
        ARGS="$ARGS $p/publishSigned"
    done
    $CMD $ARGS
done

# Publish the CLI
for v in $CLI_VERSIONS; do
    $CMD "++$v" "cli/publishSigned"
done

# Publish sbt-plugin
$CMD "++$SBT_VERSION" "sbtPlugin/publishSigned"
{'fraction_non_alphanumeric': 0.14936708860759493, 'fraction_numerical': 0.08556962025316456, 'mean_word_length': 3.0081135902636915, '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': '1024844', 'n_tokens_mistral': 936, 'n_tokens_neox': 848, 'n_words': 224}