<commit_before>trigger:
  branches:
    include:
      - master
      - rel/*
  paths:
    include:
      - src/SignClient/*
      - .editorconfig
      - azure-pipelines.client.yml
      - version.json
      - scripts/*

pr:
  branches:
    include:
      - master
      - rel/*
  paths:
    include:
      - src/SignClient/*
      - .editorconfig
      - azure-pipelines.client.yml
      - version.json
      - scripts/*

pool:
  vmImage: windows-2019

variables: 
  BuildConfiguration: Release
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- task: DotNetCoreInstaller@0
  inputs:
    version: '3.0.100-preview5-011568'

- task: DotNetCoreCLI@2
  inputs:
    command: pack
    packagesToPack: src/SignClient/SignClient.csproj
    packDirectory: $(Build.ArtifactStagingDirectory)\Client
    configuration: $(BuildConfiguration)
  displayName: Build Client

- task: PowerShell@2
  displayName: Authenticode Sign Client artifacts
  inputs:
    filePath: scripts/Sign-Package.ps1
  env:
    SignClientUser: $(SignClientUser)
    SignClientSecret: $(SignClientSecret)
    ArtifactDirectory: $(Build.ArtifactStagingDirectory)\Client
  condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))


- task: PublishBuildArtifacts@1
  displayName: Publish SignClient Artifact
  inputs:
    pathToPublish: $(Build.ArtifactStagingDirectory)\Client
    artifactType: container
    artifactName: SignClient<commit_msg>Preview 6<commit_after>trigger:
  branches:
    include:
      - master
      - rel/*
  paths:
    include:
      - src/SignClient/*
      - .editorconfig
      - azure-pipelines.client.yml
      - version.json
      - scripts/*

pr:
  branches:
    include:
      - master
      - rel/*
  paths:
    include:
      - src/SignClient/*
      - .editorconfig
      - azure-pipelines.client.yml
      - version.json
      - scripts/*

pool:
  vmImage: windows-2019

variables: 
  BuildConfiguration: Release
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- task: DotNetCoreInstaller@0
  inputs:
    version: '3.0.100-preview6-011859'

- task: DotNetCoreCLI@2
  inputs:
    command: pack
    packagesToPack: src/SignClient/SignClient.csproj
    packDirectory: $(Build.ArtifactStagingDirectory)\Client
    configuration: $(BuildConfiguration)
  displayName: Build Client

- task: PowerShell@2
  displayName: Authenticode Sign Client artifacts
  inputs:
    filePath: scripts/Sign-Package.ps1
  env:
    SignClientUser: $(SignClientUser)
    SignClientSecret: $(SignClientSecret)
    ArtifactDirectory: $(Build.ArtifactStagingDirectory)\Client
  condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))


- task: PublishBuildArtifacts@1
  displayName: Publish SignClient Artifact
  inputs:
    pathToPublish: $(Build.ArtifactStagingDirectory)\Client
    artifactType: container
    artifactName: SignClient
{'fraction_non_alphanumeric': 0.11103767349636484, 'fraction_numerical': 0.014210178453403834, 'mean_word_length': 3.3119658119658117, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5143244', 'n_tokens_mistral': 981, 'n_tokens_neox': 938, 'n_words': 176}