<commit_before># Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: |
    sudo apt-get install wget
    wget http://apache.cs.utah.edu/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
    tar xvzf apache-maven-3.6.3-bin.tar.gz
  displayName: 'Configure Tools'
- script: |
    export PATH=`pwd`/apache-maven-3.6.3/bin:$PATH
    cd scripts
    make release
  displayName: 'Build Feature'

- script: |
     # Determine if this is a tagged release
     echo "upload release"
     git describe --exact-match `git rev-parse HEAD`
     if test $? -ne 0; then
       echo "Snapshot release"
       cd scripts
       make upload-testing -DBINTRAY_USERNAME=$(BINTRAY_USERNAME) -DBINTRAY_API_KEY=$(BINTRAY_API_KEY)
     else
       echo "Full release"
       cd scripts
       make upload-release -DBINTRAY_USERNAME=$(BINTRAY_USERNAME) -DBINTRAY_API_KEY=$(BINTRAY_API_KEY)
     fi
  displayName: 'Upload release'

<commit_msg>fix to prevent releases from non-master branches<commit_after># Maven
# Build your Java project and run tests with Apache Maven.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java

trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: |
    sudo apt-get install wget
    wget http://apache.cs.utah.edu/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
    tar xvzf apache-maven-3.6.3-bin.tar.gz
  displayName: 'Configure Tools'
- script: |
    export PATH=`pwd`/apache-maven-3.6.3/bin:$PATH
    cd scripts
    make release
  displayName: 'Build Feature'

- script: |
     # Determine if this is a tagged release
     echo "upload release"
     current_branch=`git symbolic-ref --short HEAD`
     echo "Active branch: ${current_branch"
     if test "${current_branch}" = "master"; then
       git describe --exact-match `git rev-parse HEAD`
       if test $? -ne 0; then
         echo "Snapshot release"
         cd scripts
         make upload-testing -DBINTRAY_USERNAME=$(BINTRAY_USERNAME) -DBINTRAY_API_KEY=$(BINTRAY_API_KEY)
       else
         echo "Full release"
         cd scripts
         make upload-release -DBINTRAY_USERNAME=$(BINTRAY_USERNAME) -DBINTRAY_API_KEY=$(BINTRAY_API_KEY)
       fi
     else
       echo "Note: not releasing from non-master branch"
     fi
  displayName: 'Upload release'


{'fraction_non_alphanumeric': 0.10847589424572317, 'fraction_numerical': 0.01088646967340591, 'mean_word_length': 2.9891472868217055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2837879', 'n_tokens_mistral': 896, 'n_tokens_neox': 843, 'n_words': 224}