<commit_before>#!/bin/bash

set -e

DEFAULT_CHE_IMAGE_REPO=rhche/che-server
DEFAULT_CHE_IMAGE_TAG=nightly

if [ -z ${GITHUB_REPO+x} ]; then 
  echo >&2 "Variable GITHUB_REPO not found. Aborting"
  exit 1
fi

CHE_IMAGE_REPO=${CHE_IMAGE_REPO:-${DEFAULT_CHE_IMAGE_REPO}}
CHE_IMAGE_TAG=${CHE_IMAGE_TAG:-${DEFAULT_CHE_IMAGE_TAG}}

# Build openshift-connector branch of che-dependencies
git clone -b openshift-connector --single-branch https://github.com/eclipse/che-dependencies.git che-deps
cd che-deps
mvn clean install
cd ..
rm -rf ./che-deps

CURRENT_DIR=$(pwd)
cd ${GITHUB_REPO}

mvnche() {
  mvn -Dskip-enforce -Dskip-validate-sources -DskipTests -Dfindbugs.skip -Dgwt.compiler.localWorkers=2 -T 1C -Dskip-validate-sources $@
}

cd plugins/plugin-docker
mvnche install
cd ../..

cd assembly/assembly-wsmaster-war
mvnche install
cd ../..

# Uncomment this to rebuild stacks.json
#
# cd ide
# mv ide/src/main/resources/stacks.json ide/src/main/resources/stacks.json.orig
# cp ide/src/main/resources/stacks.json.centos ide/src/main/resources/stacks.json
# mvnche install
# mv ide/src/main/resources/stacks.json.orig ide/src/main/resources/stacks.json
# cd ../assembly/assembly-ide-war
# mvnche install
# cd ..

cd assembly/assembly-main/
mvnche install
cd ../..

cd dockerfiles/che/<commit_msg>Removing duplicate '-Dskip-validate-sources' flag from build script<commit_after>#!/bin/bash

set -e

DEFAULT_CHE_IMAGE_REPO=rhche/che-server
DEFAULT_CHE_IMAGE_TAG=nightly

if [ -z ${GITHUB_REPO+x} ]; then 
  echo >&2 "Variable GITHUB_REPO not found. Aborting"
  exit 1
fi

CHE_IMAGE_REPO=${CHE_IMAGE_REPO:-${DEFAULT_CHE_IMAGE_REPO}}
CHE_IMAGE_TAG=${CHE_IMAGE_TAG:-${DEFAULT_CHE_IMAGE_TAG}}

# Build openshift-connector branch of che-dependencies
git clone -b openshift-connector --single-branch https://github.com/eclipse/che-dependencies.git che-deps
cd che-deps
mvn clean install
cd ..
rm -rf ./che-deps

CURRENT_DIR=$(pwd)
cd ${GITHUB_REPO}

mvnche() {
  mvn -Dskip-enforce -Dskip-validate-sources -DskipTests -Dfindbugs.skip -Dgwt.compiler.localWorkers=2 -T 1C $@
}

cd plugins/plugin-docker
mvnche install
cd ../..

cd assembly/assembly-wsmaster-war
mvnche install
cd ../..

# Uncomment this to rebuild stacks.json
#
# cd ide
# mv ide/src/main/resources/stacks.json ide/src/main/resources/stacks.json.orig
# cp ide/src/main/resources/stacks.json.centos ide/src/main/resources/stacks.json
# mvnche install
# mv ide/src/main/resources/stacks.json.orig ide/src/main/resources/stacks.json
# cd ../assembly/assembly-ide-war
# mvnche install
# cd ..

cd assembly/assembly-main/
mvnche install
cd ../..

cd dockerfiles/che/
{'fraction_non_alphanumeric': 0.1331293037490436, 'fraction_numerical': 0.00306044376434583, 'mean_word_length': 4.23, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '717121', 'n_tokens_mistral': 1032, 'n_tokens_neox': 969, 'n_words': 194}