<commit_before>﻿# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Test Container Service

PS C:\> Get-Command *VMSS* | ft Name,Version,ModuleName

Name                                            Version ModuleName
----                                            ------- ----------

#>

<#
.SYNOPSIS
Test Virtual Machine Scale Set
#>
function Test-ContainerService
{
    # Setup
    $rgname = Get-ComputeTestResourceName

    try
    {
        # Common
        $loc = 'australiasoutheast';
        New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


		$csName = 'cs' + $rgname;
		$masterDnsPrefixName = 'master' + $rgname;
		$agentPoolDnsPrefixName = 'ap' + $rgname;
		$agentPoolProfileName = 'AgentPool1';
		$vmSize = 'Standard_A1';

		$orchestratorType = 'DCOS';
		$adminUserName = 'acsLinuxAdmin';
		$sshPublicKey =
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "MQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50" +
            "ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIB" +
            "CAKCAQEAxDC+OfmB+tQ+P1MLmuuW2hJLdcK8m4DLgAk5l8bQDNBcVezt+bt/ZFMs" +
            "CHBhfTZG9O9yqMn8IRUh7/7jfQm6DmXCgtxj/uFiwT+F3out5uWvMV9SjFYvu9kJ" +
            "NXiDC2u3l4lHV8eHde6SbKiZB9Jji9FYQV4YiWrBa91j9I3hZzbTL0UCiJ+1PPoL" +
            "Rx/T1s9KT5Wn8m/z2EDrHWpetYu45OA7nzyIFOyQup5oWadWNnpk6HkCGutl9t9b" +
            "cLdjXjXPm9wcy1yxIB3Dj/Y8Hnulr80GJlUtUboDm8TExGc4YaPJxdn0u5igo5gZ" +
            "c6qnqH/BMd1nsyICx6AZnKBXBycoSQIBI6OBpzCBpDAdBgNVHQ4EFgQUzWhrCCDs" +
            "ClANCGlKZ64rHp2BDn0wdQYDVR0jBG4wbIAUzWhrCCDsClANCGlKZ64rHp2BDn2h" +
            "SaRHMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQK" +
            "ExhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGSCCQCwVfWCQhf7QDAMBgNVHRMEBTAD" +
            "AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQCUaJnX0aBzwBkbJrBS5YvkZnNKLdc4oHgC" +
            "/Nsr/9pwXzFYYXkdqpTw2nygH0C0WuPVVrG3Y3EGx/UIGDtLbwMvZJhQN9mZH3oX" +
            "+c3HGqBnXGuDRrtsfsK1ywAofx9amZfKNk/04/Rt3POdbyD1/AOADw2zMokbIapX" +
            "+nMDUtD/Tew9+0qU9+dcFMrFE1N4utlrFHlrLFbiCA/eSegP6gOeu9mqZv7UHIz2" +
            "oe6IQTw7zJF7xuBIzTYwjOCM197GKW7xc4GU4JZIN+faZ7njl/fxfUNdlqvgZUUn" +
            "kfdrzU3PZPl0w9NuncgEje/PZ+YtZvIsnH7MLSPeIGNQwW6V2kc8";

		#$container = New-AzureRmContainerServiceConfig -Location $loc `
		#    -OrchestratorProfileOrchestratorType $orchestratorType `
		#    -MasterProfileDnsPrefix $masterDnsPrefixName `
		#    -AdminUsername $adminUserName `
		#    -Ssh $sshPublicKey;

		#$container = Add-AzureRmContainerServiceAgentPoolProfile -ContainerService $container `
		#    -Name $agentPoolProfileName `
		#    -VmSize $vmSize `
		#    -DnsPrefix $agentPoolDnsPrefixName;

		#$st = New-AzureRmContainerService -ResourceGroupName $rgname -ContainerServiceName $csName -ContainerService $container;


		$container = New-AzureRmContainerServiceConfig -Location $loc -OrchestratorType $orchestratorType `
		    -MasterDnsPrefix $masterDnsPrefixName -AdminUsername $adminUserName -SshPublicKey $sshPublicKey `
		| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName -VmSize $vmSize -DnsPrefix $agentPoolDnsPrefixName `
		| New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;


		$cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

		$cslist = Get-AzureRmContainerService -ResourceGroupName $rgname;

		$st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
    }
    finally
    {
        # Cleanup
        Clean-ResourceGroup $rgname
    }
}

<#
.SYNOPSIS
Test Virtual Machine Scale Set
#>
function Test-ContainerServiceUpdate
{
    # Setup
    $rgname = Get-ComputeTestResourceName

    try
    {
        # Common
        $loc = 'australiasoutheast';
        New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


		$csName = 'cs' + $rgname;
		$masterDnsPrefixName = 'master' + $rgname;
		$agentPoolDnsPrefixName = 'ap' + $rgname;
		$agentPoolProfileName = 'AgentPool1';
		$vmSize = 'Standard_A1';

		$orchestratorType = 'DCOS';
		$adminUserName = 'acsLinuxAdmin';
		$sshPublicKey =
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "MQswCQYDV<KEY>" +
            "<KEY>" +
            "<KEY>uW2hJLdcK8m4DLgAk5l8bQDNBcVezt+bt/ZFMs" +
            "CHBhfTZG9O9yqMn8IRUh7/7jfQm6DmXCgtxj/uFiwT+F3out5uWvMV9SjFYvu9kJ" +
            "NXiDC2u3l4lHV8eHde6SbKiZB9Jji9FYQV4YiWrBa91j9I3hZzbTL0UCiJ+1PPoL" +
            "Rx/T1s9KT5Wn8m/z2EDrHWpetYu45OA7nzyIFOyQup5oWadWNnpk6HkCGutl9t9b" +
            "cLdjXjXPm9wcy1yxIB3Dj/Y8Hnulr80GJlUtUboDm8TExGc4YaPJxdn0u5igo5gZ" +
            "c6qnqH/BMd1nsyICx6AZnKBXBycoSQIBI6OBpzCBpDAdBgNVHQ4EFgQUzWhrCCDs" +
            "ClANCGlKZ64rHp2BDn0wdQYDVR0jBG4wbIAUzWhrCCDsClANCGlKZ64rHp2BDn2h" +
            "SaRHMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQK" +
            "ExhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGSCCQCwVfWCQhf7QDAMBgNVHRMEBTAD" +
            "AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQCUaJnX0aBzwBkbJrBS5YvkZnNKLdc4oHgC" +
            "/Nsr/9pwXzFYYXkdqpTw2nygH0C0WuPVVrG3Y3EGx/UIGDtLbwMvZJhQN9mZH3oX" +
            "+c3HGqBnXGuDRrtsfsK1ywAofx9amZfKNk/04/Rt3POdbyD1/AOADw2zMokbIapX" +
            "+nMDUtD/Tew9+0qU9+dcFMrFE1N4utlrFHlrLFbiCA/eSegP6gOeu9mqZv7UHIz2" +
            "oe6IQTw7zJF7xuBIzTYwjOCM197GKW7xc4GU4JZIN+faZ7njl/fxfUNdlqvgZUUn" +
            "kfdrzU3PZPl0w9NuncgEje/PZ+YtZvIsnH7MLSPeIGNQwW6V2kc8";

		#$container = New-AzureRmContainerServiceConfig -Location $loc `
		#    -OrchestratorProfileOrchestratorType $orchestratorType `
		#    -MasterProfileDnsPrefix $masterDnsPrefixName `
		#    -AdminUsername $adminUserName `
		#    -Ssh $sshPublicKey;

		#$container = Add-AzureRmContainerServiceAgentPoolProfile -ContainerService $container `
		#    -Name $agentPoolProfileName `
		#    -VmSize $vmSize `
		#    -DnsPrefix $agentPoolDnsPrefixName;

		#$st = New-AzureRmContainerService -ResourceGroupName $rgname -ContainerServiceName $csName -ContainerService $container;


		$container = New-AzureRmContainerServiceConfig -Location $loc `
		    -OrchestratorType $orchestratorType `
		    -MasterDnsPrefix $masterDnsPrefixName `
		    -MasterCount 1 `
		    -AdminUsername $adminUserName `
		    -SshPublicKey $sshPublicKey `
		| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
		    -VmSize $vmSize `
		    -DnsPrefix $agentPoolDnsPrefixName `
		    -Count 1 `
		| New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

		Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName `
		| Remove-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
		| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
		    -VmSize $vmSize `
		    -DnsPrefix $agentPoolDnsPrefixName `
		    -Count 2 `
		| Update-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

		#$cs = Get-AzureRmContainerService -ResourceGroupName $rgname -ContainerServiceName $csName;

		#$cs = Remove-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName -ContainerService $cs;

		#$cs = Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
		#    -VmSize $vmSize `
		#    -DnsPrefix $agentPoolDnsPrefixName `
		#    -Count 2 `
		#    -ContainerService $cs;

		#$st = Update-AzureRmContainerService -ResourceGroupName $rgname -ContainerServiceName $csName -ContainerService $cs;

		$cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
		
		$st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
    }
    finally
    {
        # Cleanup
        Clean-ResourceGroup $rgname
    }
}
<commit_msg>Remove commented line in ACS test<commit_after>﻿# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Test Container Service
#>
function Test-ContainerService
{
    # Setup
    $rgname = Get-ComputeTestResourceName

    try
    {
        # Common
        $loc = 'australiasoutheast';
        New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


        $csName = 'cs' + $rgname;
        $masterDnsPrefixName = 'master' + $rgname;
        $agentPoolDnsPrefixName = 'ap' + $rgname;
        $agentPoolProfileName = 'AgentPool1';
        $vmSize = 'Standard_A1';

        $orchestratorType = 'DCOS';
        $adminUserName = 'acsLinuxAdmin';
        $sshPublicKey =
            "<KEY>" +
            "<KEY>KExhJbnRlcm5ldCBX" +
            "aWRnaXRzIFB0eSBMdGQwHhcN<KEY>NDQ5WhcNMTYwMzIxMjI1NDQ5WjBF" +
            "MQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50" +
            "ZXJuZXQgV<KEY>dHkgTHRkMIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIB" +
            "<KEY>uW2hJLdcK8m4DLgAk5l8bQDNBcVezt+bt/ZFMs" +
            "CHBhfTZG9O9yqMn8IRUh7/7jfQm6DmXCgtxj/uFiwT+F3out5uWvMV9SjFYvu9kJ" +
            "NXiDC2u3l4lHV8eHde6SbKiZB9Jji9FYQV4YiWrBa91j9I3hZzbTL0UCiJ+1PPoL" +
            "Rx/T1s9KT5Wn8m/z2EDrHWpetYu45OA7nzyIFOyQup5oWadWNnpk6HkCGutl9t9b" +
            "cLdjXjXPm9wcy1yxIB3Dj/Y8Hnulr80GJlUtUboDm8TExGc4YaPJxdn0u5igo5gZ" +
            "c6qnqH/BMd1nsyICx6AZnKBXBycoSQIBI6OBpzCBpDAdBgNVHQ4EFgQUzWhrCCDs" +
            "ClANCGlKZ64rHp2BDn0wdQYDVR0jBG4wbIAUzWhrCCDsClANCGlKZ64rHp2BDn2h" +
            "SaRHMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQK" +
            "ExhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGSCCQCwVfWCQhf7QDAMBgNVHRMEBTAD" +
            "AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQCUaJnX0aBzwBkbJrBS5YvkZnNKLdc4oHgC" +
            "/Nsr/9pwXzFYYXkdqpTw2nygH0C0WuPVVrG3Y3EGx/UIGDtLbwMvZJhQN9mZH3oX" +
            "+c3HGqBnXGuDRrtsfsK1ywAofx9amZfKNk/04/Rt3POdbyD1/AOADw2zMokbIapX" +
            "+nMDUtD/Tew9+0qU9+dcFMrFE1N4utlrFHlrLFbiCA/eSegP6gOeu9mqZv7UHIz2" +
            "oe6IQTw7zJF7xuBIzTYwjOCM197GKW7xc4GU4JZIN+faZ7njl/fxfUNdlqvgZUUn" +
            "kfdrzU3PZPl0w9NuncgEje/PZ+YtZvIsnH7MLSPeIGNQwW6V2kc8";

        $container = New-AzureRmContainerServiceConfig -Location $loc -OrchestratorType $orchestratorType `
            -MasterDnsPrefix $masterDnsPrefixName -AdminUsername $adminUserName -SshPublicKey $sshPublicKey `
        | Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName -VmSize $vmSize -DnsPrefix $agentPoolDnsPrefixName `
        | New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;


        $cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

        $cslist = Get-AzureRmContainerService -ResourceGroupName $rgname;

        $st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
    }
    finally
    {
        # Cleanup
        Clean-ResourceGroup $rgname
    }
}

<#
.SYNOPSIS
Test Container Service Update
#>
function Test-ContainerServiceUpdate
{
    # Setup
    $rgname = Get-ComputeTestResourceName

    try
    {
        # Common
        $loc = 'australiasoutheast';
        New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


        $csName = 'cs' + $rgname;
        $masterDnsPrefixName = 'master' + $rgname;
        $agentPoolDnsPrefixName = 'ap' + $rgname;
        $agentPoolProfileName = 'AgentPool1';
        $vmSize = 'Standard_A1';

        $orchestratorType = 'DCOS';
        $adminUserName = 'acsLinuxAdmin';
        $sshPublicKey =
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "<KEY>" +
            "CHBhfTZG9O9yqMn8IRUh7/7jfQm6DmXCgtxj/uFiwT+F3out5uWvMV9SjFYvu9kJ" +
            "NXiDC2u3l4lHV8eHde6SbKiZB9Jji9FYQV4YiWrBa91j9I3hZzbTL0UCiJ+1PPoL" +
            "Rx/T1s9KT5Wn8m/z2EDrHWpetYu45OA7nzyIFOyQup5oWadWNnpk6HkCGutl9t9b" +
            "cLdjXjXPm9wcy1yxIB3Dj/Y8Hnulr80GJlUtUboDm8TExGc4YaPJxdn0u5igo5gZ" +
            "c6qnqH/BMd1nsyICx6AZnKBXBycoSQIBI6OBpzCBpDAdBgNVHQ4EFgQUzWhrCCDs" +
            "ClANCGlKZ64rHp2BDn0wdQYDVR0jBG4wbIAUzWhrCCDsClANCGlKZ64rHp2BDn2h" +
            "SaRHMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQK" +
            "ExhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGSCCQCwVfWCQhf7QDAMBgNVHRMEBTAD" +
            "AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQCUaJnX0aBzwBkbJrBS5YvkZnNKLdc4oHgC" +
            "/Nsr/9pwXzFYYXkdqpTw2nygH0C0WuPVVrG3Y3EGx/UIGDtLbwMvZJhQN9mZH3oX" +
            "+c3HGqBnXGuDRrtsfsK1ywAofx9amZfKNk/04/Rt3POdbyD1/AOADw2zMokbIapX" +
            "+nMDUtD/Tew9+0qU9+dcFMrFE1N4utlrFHlrLFbiCA/eSegP6gOeu9mqZv7UHIz2" +
            "oe6IQTw7zJF7xuBIzTYwjOCM197GKW7xc4GU4JZIN+faZ7njl/fxfUNdlqvgZUUn" +
            "kfdrzU3PZPl0w9NuncgEje/PZ+YtZvIsnH7MLSPeIGNQwW6V2kc8";

        $container = New-AzureRmContainerServiceConfig -Location $loc `
            -OrchestratorType $orchestratorType `
            -MasterDnsPrefix $masterDnsPrefixName `
            -MasterCount 1 `
            -AdminUsername $adminUserName `
            -SshPublicKey $sshPublicKey `
        | Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
            -VmSize $vmSize `
            -DnsPrefix $agentPoolDnsPrefixName `
            -Count 1 `
        | New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

        Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName `
        | Remove-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
        | Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
            -VmSize $vmSize `
            -DnsPrefix $agentPoolDnsPrefixName `
            -Count 2 `
        | Update-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

        $cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
        $st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
    }
    finally
    {
        # Cleanup
        Clean-ResourceGroup $rgname
    }
}

{'fraction_non_alphanumeric': 0.10416390399151307, 'fraction_numerical': 0.03547274897228484, 'mean_word_length': 3.069886670264436, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6126805', 'n_tokens_mistral': 6514, 'n_tokens_neox': 6095, 'n_words': 727}