<commit_before>{
    /*
    * This is the "master" template used to provision the Azure resources for Nether.
    *
    * This leverages linked templates which requires that the templates it links to are available via a URL. By default, these 
    * will be pulled from the same location as this template. But this can be overridden by specifying a location via the pull 
    * them from by specifying the templateBaseURL parameter.
    * 
    * For more information, please refer to the Nether repository at: https://github.com/MicrosoftDX/nether/tree/master/deployment
    */
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": { 
        "NetherWebDomainPrefix": {
            "type": "string",
            "minLength": 6,
            "maxLength": 12,
            "metadata": {
                "description": "The begining portion of the Nether web deployment URL (must be globally unique). only allows alpha characters and '-'. Cannot start or end with '-'." 
            }
        },
        "WebHostingPlan": { 
            "type": "string", 
            "defaultValue": "Free (no 'always on')", 
            "allowedValues": [ 
                "Free (no 'always on')", 
                "Shared", 
                "Basic B1", 
                "Basic B2", 
                "Basic B3", 
                "Standard S1", 
                "Standard S2", 
                "Standard S3", 
                "Premium P1", 
                "Premium P2", 
                "Premium P3"
            ], 
            "metadata": { 
                "description": "Specifies the database pricing/performance." 
            } 
        }, 
        "InstanceCount": {
            "type": "int",
            "defaultValue": 1,
            "metadata": {
                "description": "Number of copies of the application. Limited based on hosting plan. "
            }
        },
        "webZipUri": {
            "type": "string",
            "metadata": {
                "description": "(Optional) Absolute URI containing the Nether API's deployment package (ZIP). If not included, you'll need to deploy the package seperately."
            }
        },
        "sqlServerName": {
            "type": "string",
            "minLength": 8,
            "maxLength": 63,
            "metadata": {
                "description": "Database server name (must be globally unique). only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "databaseSKU": { 
            "type": "string", 
            "defaultValue": "Basic", 
            "allowedValues": [ 
                "Basic", 
                "Standard", 
                "Standard S1", 
                "Standard S2", 
                "Standard S3", 
                "Premium P1", 
                "Premium P2", 
                "Premium P4", 
                "Premium P6", 
                "Premium P11", 
                "Premium P15"
            ], 
            "metadata": { 
                "description": "Specifies the database pricing/performance." 
            } 
        }, 
        "sqlAdministratorLogin": {
            "type": "string",
            "minLength": 8,
            "metadata": {
                "description": "The admin user of the SQL Server"
            }
        },
        "sqlAdministratorPassword": {
            "type": "securestring",
            "metadata": {
                "description": "The password of the admin user of the SQL Server"
            }
        },
        "analyticsEventHubNamespace": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "metadata": {
                "description": "The unique storage account for use by Nether. only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "serviceBusTier": {
            "type": "string", 
            "defaultValue": "Basic",
            "allowedValues": [
                "Basic",
                "Standard"
            ]
        },
        "serviceBusCapacity": {
            "type": "int", 
            "defaultValue": 1,
            "minValue": 1,
            "maxValue": 20
        },
        "eventHubName": {
            "type": "string",
            "defaultValue": "analyticevents",
            "metadata": {
                "description": ""
            }
        },
        "managePolicyName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "defaultValue": "Manage",
            "metadata": {
                "description": ""
            }
        },
        "senderPolicyName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "defaultValue": "Send",
            "metadata": {
                "description": ""
            }
        },
        "dayToRetain": {
            "type": "int",
            "defaultValue": 1,
            "minValue": 1,
            "maxValue": 7,
            "metadata": {
                "description": "For basic teir this must be 1. For standard tier this can be 1-7"
            }
        },
        "partitionCount": {
            "type": "int",
            "defaultValue": 4,
            "metadata": {
                "description": ""
            }
        },
        "analyticsStorageAccountName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "metadata": {
                "description": "The unique storage account for use by Nether. only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "storageAccountType": {
            "type": "string",
            "defaultValue": "Standard_GRS",
            "allowedValues": [
                "Standard_LRS",
                "Standard_ZRS",
                "Standard_GRS",
                "Standard_RAGRS",
                "Premium_LRS"
            ],
            "metadata": {
                "description": "Account type, premium vs standard, and local, zone, global, global read only redundancy"
            }
        },
        "templateBaseURL": {
            "type": "string",
            "defaultValue": "https://raw.githubusercontent.com/MicrosoftDX/nether/master/deployment/",
            "metadata": {
                "description": "The base location for all linked templates."
            }   
        },
        "templateSASToken": {
            "type": "string",
            "defaultValue": "",
            "metadata": {
                "description": "The base location for all linked templates."
            }   
        }
    },
    "variables": {
        "deploymentAPI" : "2015-01-01",
        "dbTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-db.json'), parameters('templateSASToken'))]",
        "WebTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-web.json'), parameters('templateSASToken'))]",
        "StorageTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-storageAccount.json'), parameters('templateSASToken'))]",
        "EventHubTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-eventhub.json'), parameters('templateSASToken'))]"
    },
    "resources": [ 
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "SQLDatabaseTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('dbTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "sqlServerName": { "value": "[parameters('sqlServerName')]" },
                    "databaseSKU": { "value": "[parameters('databaseSKU')]" },
                    "sqlAdministratorLogin": { "value": "[parameters('sqlAdministratorLogin')]" },
                    "sqlAdministratorPassword": { "value": "[parameters('sqlAdministratorPassword')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "EventHubTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('EventHubTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "ServiceBusNamespace": { "value": "[parameters('analyticsEventHubNamespace')]" },
                    "ServiceBusTier": { "value": "[parameters('serviceBusTier')]" },
                    "Capacity": { "value": "[parameters('serviceBusCapacity')]" },
                    "EventHubName": { "value": "[parameters('eventHubName')]" },
                    "ManagePolicyName": { "value": "[parameters('managePolicyName')]" },
                    "SenderPolicyName": { "value": "[parameters('senderPolicyName')]" },
                    "DayToRetain": { "value": "[parameters('dayToRetain')]" },
                    "PartitionCount": { "value": "[parameters('partitionCount')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "WebTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "dependsOn": [
                "SQLDatabaseTemplate",
                "EventHubTemplate"
            ],
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('WebTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "NetherWebDomainPrefix": { "value": "[parameters('NetherWebDomainPrefix')]" },
                    "WebHostingPlan": { "value": "[parameters('WebHostingPlan')]" },
                    "InstanceCount": { "value": "[parameters('InstanceCount')]" },
                    "DatabaseServerFQDN": { "value": "[reference('SQLDatabaseTemplate').outputs.databaseServerFQDN.value]" },
                    "sqlServerDatabaseName": { "value": "[reference('SQLDatabaseTemplate').outputs.databaseName.value]" },
                    "sqlAdministratorLogin": { "value": "[parameters('sqlAdministratorLogin')]" },
                    "sqlAdministratorPassword": { "value": "[parameters('sqlAdministratorPassword')]" },
                    "eventhubSendPolicy": { "value": "[reference('EventHubTemplate').outputs.sendPolicy.value]" },
                    "webZipUri": { "value": "[parameters('webZipUri')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "AnalyticsStorage", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('StorageTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "storageAccountName": { "value": "[parameters('analyticsStorageAccountName')]" },
                    "storageAccountType": { "value": "[parameters('storageAccountType')]" }
                } 
            } 
        } 
    ],
    "outputs": {
        "WebSiteFQDN" : {
            "type" : "string",
            "value": "[reference('WebTemplate').Outputs.webSiteFQDN.value]"
        },
        "DatabaseServerFQDN" : {
            "type" : "string",
            "value": "[reference('SQLDatabaseTemplate').Outputs.databaseServerFQDN.value]"
        },
        "DatabaseName" : {
            "type" : "string",
            "value": "[reference('SQLDatabaseTemplate').Outputs.databaseName.value]"
        }
    }
}
<commit_msg>Set Nether.Web.Zip url default to blob<commit_after>{
    /*
    * This is the "master" template used to provision the Azure resources for Nether.
    *
    * This leverages linked templates which requires that the templates it links to are available via a URL. By default, these 
    * will be pulled from the same location as this template. But this can be overridden by specifying a location via the pull 
    * them from by specifying the templateBaseURL parameter.
    * 
    * For more information, please refer to the Nether repository at: https://github.com/MicrosoftDX/nether/tree/master/deployment
    */
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": { 
        "NetherWebDomainPrefix": {
            "type": "string",
            "minLength": 6,
            "maxLength": 12,
            "metadata": {
                "description": "The begining portion of the Nether web deployment URL (must be globally unique). only allows alpha characters and '-'. Cannot start or end with '-'." 
            }
        },
        "WebHostingPlan": { 
            "type": "string", 
            "defaultValue": "Free (no 'always on')", 
            "allowedValues": [ 
                "Free (no 'always on')", 
                "Shared", 
                "Basic B1", 
                "Basic B2", 
                "Basic B3", 
                "Standard S1", 
                "Standard S2", 
                "Standard S3", 
                "Premium P1", 
                "Premium P2", 
                "Premium P3"
            ], 
            "metadata": { 
                "description": "Specifies the database pricing/performance." 
            } 
        }, 
        "InstanceCount": {
            "type": "int",
            "defaultValue": 1,
            "metadata": {
                "description": "Number of copies of the application. Limited based on hosting plan. "
            }
        },
        "webZipUri": {
            "type": "string",
            "defaultValue": "https://netherartifacts.blob.core.windows.net/deployment-artifacts/master/Nether.Web.Zip",
            "metadata": {
                "description": "(Optional) Absolute URI containing the Nether API's deployment package (ZIP). If not included, you'll need to deploy the package seperately."
            }
        },
        "sqlServerName": {
            "type": "string",
            "minLength": 8,
            "maxLength": 63,
            "metadata": {
                "description": "Database server name (must be globally unique). only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "databaseSKU": { 
            "type": "string", 
            "defaultValue": "Basic", 
            "allowedValues": [ 
                "Basic", 
                "Standard", 
                "Standard S1", 
                "Standard S2", 
                "Standard S3", 
                "Premium P1", 
                "Premium P2", 
                "Premium P4", 
                "Premium P6", 
                "Premium P11", 
                "Premium P15"
            ], 
            "metadata": { 
                "description": "Specifies the database pricing/performance." 
            } 
        }, 
        "sqlAdministratorLogin": {
            "type": "string",
            "minLength": 8,
            "metadata": {
                "description": "The admin user of the SQL Server"
            }
        },
        "sqlAdministratorPassword": {
            "type": "securestring",
            "metadata": {
                "description": "The password of the admin user of the SQL Server"
            }
        },
        "analyticsEventHubNamespace": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "metadata": {
                "description": "The unique storage account for use by Nether. only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "serviceBusTier": {
            "type": "string", 
            "defaultValue": "Basic",
            "allowedValues": [
                "Basic",
                "Standard"
            ]
        },
        "serviceBusCapacity": {
            "type": "int", 
            "defaultValue": 1,
            "minValue": 1,
            "maxValue": 20
        },
        "eventHubName": {
            "type": "string",
            "defaultValue": "analyticevents",
            "metadata": {
                "description": ""
            }
        },
        "managePolicyName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "defaultValue": "Manage",
            "metadata": {
                "description": ""
            }
        },
        "senderPolicyName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "defaultValue": "Send",
            "metadata": {
                "description": ""
            }
        },
        "dayToRetain": {
            "type": "int",
            "defaultValue": 1,
            "minValue": 1,
            "maxValue": 7,
            "metadata": {
                "description": "For basic teir this must be 1. For standard tier this can be 1-7"
            }
        },
        "partitionCount": {
            "type": "int",
            "defaultValue": 4,
            "metadata": {
                "description": ""
            }
        },
        "analyticsStorageAccountName": {
            "type": "string",
            "minLength": 3,
            "maxLength": 15,
            "metadata": {
                "description": "The unique storage account for use by Nether. only allows alpha characters and '-'. Cannot start or end with '-'."
            }
        },
        "storageAccountType": {
            "type": "string",
            "defaultValue": "Standard_GRS",
            "allowedValues": [
                "Standard_LRS",
                "Standard_ZRS",
                "Standard_GRS",
                "Standard_RAGRS",
                "Premium_LRS"
            ],
            "metadata": {
                "description": "Account type, premium vs standard, and local, zone, global, global read only redundancy"
            }
        },
        "templateBaseURL": {
            "type": "string",
            "defaultValue": "https://raw.githubusercontent.com/MicrosoftDX/nether/master/deployment/",
            "metadata": {
                "description": "The base location for all linked templates."
            }   
        },
        "templateSASToken": {
            "type": "string",
            "defaultValue": "",
            "metadata": {
                "description": "The base location for all linked templates."
            }   
        }
    },
    "variables": {
        "deploymentAPI" : "2015-01-01",
        "dbTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-db.json'), parameters('templateSASToken'))]",
        "WebTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-web.json'), parameters('templateSASToken'))]",
        "StorageTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-storageAccount.json'), parameters('templateSASToken'))]",
        "EventHubTemplateURI": "[concat(uri(parameters('templateBaseURL'), 'nether-deploy-eventhub.json'), parameters('templateSASToken'))]"
    },
    "resources": [ 
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "SQLDatabaseTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('dbTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "sqlServerName": { "value": "[parameters('sqlServerName')]" },
                    "databaseSKU": { "value": "[parameters('databaseSKU')]" },
                    "sqlAdministratorLogin": { "value": "[parameters('sqlAdministratorLogin')]" },
                    "sqlAdministratorPassword": { "value": "[parameters('sqlAdministratorPassword')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "EventHubTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('EventHubTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "ServiceBusNamespace": { "value": "[parameters('analyticsEventHubNamespace')]" },
                    "ServiceBusTier": { "value": "[parameters('serviceBusTier')]" },
                    "Capacity": { "value": "[parameters('serviceBusCapacity')]" },
                    "EventHubName": { "value": "[parameters('eventHubName')]" },
                    "ManagePolicyName": { "value": "[parameters('managePolicyName')]" },
                    "SenderPolicyName": { "value": "[parameters('senderPolicyName')]" },
                    "DayToRetain": { "value": "[parameters('dayToRetain')]" },
                    "PartitionCount": { "value": "[parameters('partitionCount')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "WebTemplate", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "dependsOn": [
                "SQLDatabaseTemplate",
                "EventHubTemplate"
            ],
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('WebTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "NetherWebDomainPrefix": { "value": "[parameters('NetherWebDomainPrefix')]" },
                    "WebHostingPlan": { "value": "[parameters('WebHostingPlan')]" },
                    "InstanceCount": { "value": "[parameters('InstanceCount')]" },
                    "DatabaseServerFQDN": { "value": "[reference('SQLDatabaseTemplate').outputs.databaseServerFQDN.value]" },
                    "sqlServerDatabaseName": { "value": "[reference('SQLDatabaseTemplate').outputs.databaseName.value]" },
                    "sqlAdministratorLogin": { "value": "[parameters('sqlAdministratorLogin')]" },
                    "sqlAdministratorPassword": { "value": "[parameters('sqlAdministratorPassword')]" },
                    "eventhubSendPolicy": { "value": "[reference('EventHubTemplate').outputs.sendPolicy.value]" },
                    "webZipUri": { "value": "[parameters('webZipUri')]" }
                } 
            } 
        },
        { 
            "type": "Microsoft.Resources/deployments", 
            "name": "AnalyticsStorage", 
            "apiVersion": "[variables('deploymentAPI')]", 
            "properties": { 
                "mode": "Incremental", 
                "templateLink": {
                    "uri": "[variables('StorageTemplateURI')]",
                    "contentVersion": "1.0.0.0"
                }, 
                "parameters": { 
                    "storageAccountName": { "value": "[parameters('analyticsStorageAccountName')]" },
                    "storageAccountType": { "value": "[parameters('storageAccountType')]" }
                } 
            } 
        } 
    ],
    "outputs": {
        "WebSiteFQDN" : {
            "type" : "string",
            "value": "[reference('WebTemplate').Outputs.webSiteFQDN.value]"
        },
        "DatabaseServerFQDN" : {
            "type" : "string",
            "value": "[reference('SQLDatabaseTemplate').Outputs.databaseServerFQDN.value]"
        },
        "DatabaseName" : {
            "type" : "string",
            "value": "[reference('SQLDatabaseTemplate').Outputs.databaseName.value]"
        }
    }
}

{'fraction_non_alphanumeric': 0.14209115281501342, 'fraction_numerical': 0.007176737471643638, 'mean_word_length': 1.5214226289517472, 'pattern_counts': {'":': 413, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, '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': '5423070', 'n_tokens_mistral': 6487, 'n_tokens_neox': 5856, 'n_words': 1279}