<commit_before>variables:
  - group: KeyVault Test Secrets
  - name: ARM_CLIENTID
    value: $(java-keyvault-test-arm-client-id)
  - name: ARM_CLIENTKEY
    value: $(java-keyvault-test-arm-client-key)

queue:
  name: Hosted VS2017
steps:
- bash: |
   LOG_PARAMS='-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
   mvn test -Dhttp.keepAlive=false -Dsurefire.rerunFailingTestsCount=3 $LOG_PARAMS -f $(pomFile)
  displayName: 'Run Live Tests'
  env:
    ARM_CLIENTID: $(ARM_CLIENTID)
    ARM_CLIENTKEY: $(ARM_CLIENTKEY)
    AZURE_TEST_MODE: RECORD
    
- task: PublishTestResults@2
  inputs:
    testResultsFormat: 'JUnit'
    testResultsFiles: '**/TEST-*.xml' 
<commit_msg>Live Tests fix (#2941)<commit_after>variables:
  - group: KeyVault Test Secrets
  - name: ARM_CLIENTID
    value: $(java-keyvault-test-arm-client-id)
  - name: ARM_CLIENTKEY
    value: $(java-keyvault-test-arm-client-key)

queue:
  name: Hosted VS2017
steps:
  # Adding -Dmaven.wagon.http.pool=false to the mvn command as a workaround to prevent build failures at maven artifacts downloading stage.
- bash: |
   LOG_PARAMS='-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
   mvn test -Dmaven.wagon.http.pool=false -Dsurefire.rerunFailingTestsCount=3 $LOG_PARAMS -f $(pomFile)
  displayName: 'Run Live Tests'
  env:
    ARM_CLIENTID: $(ARM_CLIENTID)
    ARM_CLIENTKEY: $(ARM_CLIENTKEY)
    AZURE_TEST_MODE: RECORD
    
- task: PublishTestResults@2
  inputs:
    testResultsFormat: 'JUnit'
    testResultsFiles: '**/TEST-*.xml'

{'fraction_non_alphanumeric': 0.1179273377010125, 'fraction_numerical': 0.013103037522334724, 'mean_word_length': 4.266457680250784, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7541270', 'n_tokens_mistral': 644, 'n_tokens_neox': 630, 'n_words': 113}