<commit_before>#!/bin/sh

# Change directory
mypath=`realpath $0`
cd `dirname $mypath`

if [ -z "$JENKINS_DO_UPDATE" ] ; then
  # Before we begin any build, make sure we are updated from git
  git pull
  export JENKINS_DO_UPDATE="YES"
  ./jenkins.sh "$1" "$2" "$3"
  exit $?
fi

# Set the variables
TYPE="${1}"
BUILD="${2}"
BRANCH="${3}"

# Set JENKINS var
export USING_JENKINS="YES"

display_usage() {

	 cat << EOF
Available Commands:

-- FreeNAS Commands --
      freenas        - Builds FreeNAS release
freenas-tests        - Runs FreeNAS VM API tests against built release
freenas-run-tests	-Runs FreeNAS tests with other VM backend
freenas-combo        - Build release and run VM API tests against it automatically
freenas-ltest        - Runs the FreeNAS "live" tests against a target system
freenas-lupgrade     - Runs the FreeNAS "live" upgrade against a target system
freenas-docs         - Create FreeNAS Handbook
freenas-tn-docs      - Create TrueNAS Handbook
freenas-api          - Create FreeNAS API
freenas-push-docs    - Push FreeNAS Docs
freenas-push-tn-docs - Push TrueNAS Docs
freenas-push-api     - Push FreeNAS API
freenas-push-nightly - Run 'release-push' for FreeNAS Nightly
freenas-push         - Run 'release-push' for FreeNAS / TrueNAS
mkcustard            - Build a Custard VM

-- TrueOS Commands --
trueos-world    - Builds the world
trueos-pkg      - Builds the entire pkg repo
trueos-iso-pkg  - Builds just the pkgs needed for ISO creation
trueos-iso      - Builds the ISO files
trueos-vm       - Builds the VM images
publish-iso     - Upload ISO files to ScaleEngine
publish-iso-edge- Upload ISO files to ScaleEngine (Bleeding Edge)
publish-pkg     - Upload PKG files to ScaleEngine
publish-pkg-edge- Upload PKG files to ScaleEngine (Bleeding Edge)
trueos-docs     - Create TrueOS handbook
push-trueos-docs- Upload TrueOS handbook
lumina-docs	- Create lumina handbook
push-lumina-docs- Upload lumina handbook
ports-tests	- Test building a repo port files
sysadm-docs     - Build SysAdm handbook
sysadm-api      - Build SysAdm API handbook

-- PC-BSD Commands --
  world - Build FreeBSD world
   jail - Prep the jail for package build
    pkg - Build packages
iso-pkg - Build packages for ISO only
    iso - Assemble PC-BSD ISO files
     vm - Assemble PC-BSD VM images
EOF

}

if [ -z "$1" ] ; then
  display_usage
  exit 1
fi
 
# Source our functions
. build.conf
. functions.sh
######################################################

# Disable AD temporarily until issues are resolved
unset ADUSERNAME
unset ADPASSWORD
unset LDAPBINDDN
unset LDAPBINDPASSWORD
unset LDAPBINDDN2
unset LDAPBINDPASSWORD2

case $TYPE in<commit_msg>Renable AD, and LDAP tests for devel branch.<commit_after>#!/bin/sh

# Change directory
mypath=`realpath $0`
cd `dirname $mypath`

if [ -z "$JENKINS_DO_UPDATE" ] ; then
  # Before we begin any build, make sure we are updated from git
  git pull
  export JENKINS_DO_UPDATE="YES"
  ./jenkins.sh "$1" "$2" "$3"
  exit $?
fi

# Set the variables
TYPE="${1}"
BUILD="${2}"
BRANCH="${3}"

# Set JENKINS var
export USING_JENKINS="YES"

display_usage() {

	 cat << EOF
Available Commands:

-- FreeNAS Commands --
      freenas        - Builds FreeNAS release
freenas-tests        - Runs FreeNAS VM API tests against built release
freenas-run-tests	-Runs FreeNAS tests with other VM backend
freenas-combo        - Build release and run VM API tests against it automatically
freenas-ltest        - Runs the FreeNAS "live" tests against a target system
freenas-lupgrade     - Runs the FreeNAS "live" upgrade against a target system
freenas-docs         - Create FreeNAS Handbook
freenas-tn-docs      - Create TrueNAS Handbook
freenas-api          - Create FreeNAS API
freenas-push-docs    - Push FreeNAS Docs
freenas-push-tn-docs - Push TrueNAS Docs
freenas-push-api     - Push FreeNAS API
freenas-push-nightly - Run 'release-push' for FreeNAS Nightly
freenas-push         - Run 'release-push' for FreeNAS / TrueNAS
mkcustard            - Build a Custard VM

-- TrueOS Commands --
trueos-world    - Builds the world
trueos-pkg      - Builds the entire pkg repo
trueos-iso-pkg  - Builds just the pkgs needed for ISO creation
trueos-iso      - Builds the ISO files
trueos-vm       - Builds the VM images
publish-iso     - Upload ISO files to ScaleEngine
publish-iso-edge- Upload ISO files to ScaleEngine (Bleeding Edge)
publish-pkg     - Upload PKG files to ScaleEngine
publish-pkg-edge- Upload PKG files to ScaleEngine (Bleeding Edge)
trueos-docs     - Create TrueOS handbook
push-trueos-docs- Upload TrueOS handbook
lumina-docs	- Create lumina handbook
push-lumina-docs- Upload lumina handbook
ports-tests	- Test building a repo port files
sysadm-docs     - Build SysAdm handbook
sysadm-api      - Build SysAdm API handbook

-- PC-BSD Commands --
  world - Build FreeBSD world
   jail - Prep the jail for package build
    pkg - Build packages
iso-pkg - Build packages for ISO only
    iso - Assemble PC-BSD ISO files
     vm - Assemble PC-BSD VM images
EOF

}

if [ -z "$1" ] ; then
  display_usage
  exit 1
fi
 
# Source our functions
. build.conf
. functions.sh
######################################################

case $TYPE in
{'fraction_non_alphanumeric': 0.09592742713761822, 'fraction_numerical': 0.003860258637328701, 'mean_word_length': 3.054773082942097, 'pattern_counts': {'":': 0, '<': 7, '<?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': '851446', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1666, 'n_words': 595}