<commit_before>#!/usr/bin/env bash

# Example :
# Openshift Online (Token)  --> ./deploy-snapshots-openshift.sh -a https://api.engint.openshift.com -t xxxxxxxxxxxx
# CI Server (User/password) --> ./deploy-snapshots-openshift.sh -a https://172.16.50.40:8443 -u admin -p admin
# Local vagrant             --> ./deploy-snapshots-openshift.sh \
#           -a 172.28.128.4:8443 -u admin -p admin \
#           -v 1.0.0-SNAPSHOT \
#           -b http://backend-generator-obsidian-snapshot.172.28.128.4.xip.io/ \
#           -c 'http://nexus-infra.172.28.128.4.xip.io/service/local/artifact/maven/redirect?r=public\&g=org.obsidiantoaster\&a=archetypes-catalog\&v=1.0.0-SNAPSHOT\&e=xml&c=archetype-catalog' \
#           -n http://nexus-infra.172.28.128.4.xip.io
# Using JBoss Nexus Server
# ./deploy-snapshots-openshift.sh -a 172.28.128.4:8443 -u admin -p admin \
#                                 -v 1.0.0-SNAPSHOT \
#                                 -b http://backend-generator-obsidian-snapshot.172.28.128.4.xip.io/ \
#                                 -c 'http://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots\&g=org.obsidiantoaster\&a=archetypes-catalog\&v=1.0.0-SNAPSHOT\&e=xml\&c=archetype-catalog' \
#                                 -n http://repository.jboss.org/nexus
#

while getopts a:t:u:p:v:b:c:n: option
do
        case "${option}"
        in
                a) api=${OPTARG};;
                t) token=${OPTARG};;
                u) user=${OPTARG};;
                p) password=${OPTARG};;
                v) version=${OPTARG};;
                b) backendurl=${OPTARG};;<commit_msg>Add command to deploy on OSO<commit_after>#!/usr/bin/env bash

# Example :
# Openshift Online (Token)  --> ./deploy-snapshots-openshift.sh -a https://api.engint.openshift.com -t xxxxxxxxxxxx
# CI Server (User/password) --> ./deploy-snapshots-openshift.sh -a https://172.16.50.40:8443 -u admin -p admin
# Local vagrant             --> ./deploy-snapshots-openshift.sh \
#           -a 172.28.128.4:8443 -u admin -p admin \
#           -v 1.0.0-SNAPSHOT \
#           -b http://backend-generator-obsidian-snapshot.172.28.128.4.xip.io/ \
#           -c 'http://nexus-infra.172.28.128.4.xip.io/service/local/artifact/maven/redirect?r=public\&g=org.obsidiantoaster\&a=archetypes-catalog\&v=1.0.0-SNAPSHOT\&e=xml&c=archetype-catalog' \
#           -n http://nexus-infra.172.28.128.4.xip.io
#
# Using JBoss Nexus Server
# 1) Local deployment
# ./deploy-snapshots-openshift.sh -a 172.28.128.4:8443 -u admin -p admin \
#                                 -v 1.0.0-SNAPSHOT \
#                                 -b http://backend-generator-obsidian-snapshot.172.28.128.4.xip.io/ \
#                                 -c 'http://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots\&g=org.obsidiantoaster\&a=archetypes-catalog\&v=1.0.0-SNAPSHOT\&e=xml\&c=archetype-catalog' \
#                                 -n http://repository.jboss.org/nexus
#
# 2) Using OpenShift Online
#./deploy-snapshots-openshift.sh -a https://api.engint.openshift.com -t xxxxxxxxx \
#                                -v 1.0.0-SNAPSHOT \
#                                -b http://generator-backend-obsidian-snapshot.e8ca.engint.openshiftapps.com/ \
#                                -c 'http://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=snapshots\&g=org.obsidiantoaster\&a=archetypes-catalog\&v=1.0.0-SNAPSHOT\&e=xml&\c=archetype-catalog' \
#                                -n http://repository.jboss.org/nexus
#

while getopts a:t:u:p:v:b:c:n: option
do
        case "${option}"
        in
                a) api=${OPTARG};;
                t) token=${OPTARG};;
                u) user=${OPTARG};;
                p) password=${OPTARG};;
                v) version=${OPTARG};;
                b) backendurl=${OPTARG};;
{'fraction_non_alphanumeric': 0.17156225630361321, 'fraction_numerical': 0.04756953470236548, 'mean_word_length': 1.8149231894659839, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 14, 'substrings_counts': 3, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1361067', 'n_tokens_mistral': 1541, 'n_tokens_neox': 1379, 'n_words': 178}