<commit_before>// Import the utility functionality.

import jobs.generation.Utilities;

def project = GithubProject
def branch = GithubBranchName

[true, false].each { isPR ->
    ['netfx', 'netstandard-win'].each { platform ->
        ['bvt', 'functional'].each { testCategory ->
            def newJobName = "${platform}-${testCategory}"
            def testScript = "Test.cmd";
            if (testCategory == 'functional') { testScript = "TestAll.cmd" }

            def newJob = job(Utilities.getFullJobName(project, newJobName, isPR)) {
                steps {
                    batchFile("call Build.cmd ${platform} && SET OrleansDataConnectionString= && ${testScript} ${platform}")
                }
            }
            
            // need to use a machine that has .NET 4.6.2 installed in the system for now.
            Utilities.setMachineAffinity(newJob, 'Windows_NT', '20161027')
            <commit_msg>Change Jenkins to use latest-or-auto VM (#3349)<commit_after>// Import the utility functionality.

import jobs.generation.Utilities;

def project = GithubProject
def branch = GithubBranchName

[true, false].each { isPR ->
    ['netfx', 'netstandard-win'].each { platform ->
        ['bvt', 'functional'].each { testCategory ->
            def newJobName = "${platform}-${testCategory}"
            def testScript = "Test.cmd";
            if (testCategory == 'functional') { testScript = "TestAll.cmd" }

            def newJob = job(Utilities.getFullJobName(project, newJobName, isPR)) {
                steps {
                    batchFile("call Build.cmd ${platform} && SET OrleansDataConnectionString= && ${testScript} ${platform}")
                }
            }
            
            // need to use a machine that has .NET 4.6.2 installed in the system for now.
            Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto')
            
{'fraction_non_alphanumeric': 0.12420718816067654, 'fraction_numerical': 0.009513742071881607, 'mean_word_length': 2.235897435897436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1589588', 'n_tokens_mistral': 521, 'n_tokens_neox': 502, 'n_words': 134}