<commit_before>{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "webAppName": {
            "type": "string",
            "defaultValue": "[concat('webApp-', uniqueString(resourceGroup().id))]",
            "metadata": {
                "description": "Web app name."
            },
            "minLength": 2
        },
        "location": {
            "type": "string",
            "defaultValue": "[resourceGroup().location]",
            "metadata": {
                "description": "Location for all resources."
            }
        },
        "sku": {
            "type": "string",
            "defaultValue": "F1",
            "metadata": {
                "description": "The SKU of App Service Plan."
            }
        },
        "language": {
            "type": "string",
            "defaultValue": ".net",
            "allowedValues": [
                ".net",
                "php",
                "node",
                "html"
            ],
            "metadata": {
                "description": "The language stack of the app."
            }
        },
        "sample": {
            "type": "bool",
            "defaultValue": "[bool(0)]",
            "metadata": {
                "description": "0 = don't deploy a sample app. 1 = deploy a sample app."
            }
        }
    },
    "variables": {
        "appServicePlanPortalName": "[concat('AppServicePlan-', parameters('webAppName'))]",
        "gitRepoReference":{
            ".net":"https://github.com/Azure-Samples/app-service-web-dotnet-get-started",
            "node":"https://github.com/Azure-Samples/nodejs-docs-hello-world",
            "php":"https://github.com/Azure-Samples/php-docs-hello-world",
            "html":"https://github.com/Azure-Samples/html-docs-hello-world"
        },
        "configReference": {
            ".net": {
                    "comments": ".Net app. No additional configuration needed."
            },
            "html": {
                    "comments": "HTML app. No additional configuration needed."
            },
            "php": { "phpVersion": "7.4" },
            "node": {
                    "appSettings": [
                        {
                            "name": "WEBSITE_NODE_DEFAULT_VERSION",
                            "value": "12.15.0"
                        }
                    ]
            }
        }
    },
    "resources": [
        {
            "apiVersion": "2019-08-01",
            "type": "Microsoft.Web/serverfarms",
            "name": "[variables('appServicePlanPortalName')]",
            "location": "[parameters('location')]",
            "sku": {
                "name": "[parameters('sku')]"
            }
        },
        {
            "apiVersion": "2019-08-01",
            "type": "Microsoft.Web/sites",
            "name": "[parameters('webAppName')]",
            "location": "[parameters('location')]",
            "dependsOn": [
                "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanPortalName'))]"
            ],
            "properties": {
                "siteConfig": "[variables('configReference')[parameters('language')]]",
                "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanPortalName'))]"
            },
            "resources": [
                {
                    "condition": "[parameters('sample')]",
                    "type": "sourcecontrols",
                    "apiVersion": "2019-08-01",
                    "name": "web",
                    "location": "[parameters('location')]",
                    "dependsOn": [
                        "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
                    ],
                    "properties": {
                        "repoUrl": "[variables('gitRepoReference')[parameters('language')]]",
                        "branch": "master",
                        "isManualIntegration": true
                    }
                }
            ]
        }
    ]
}<commit_msg>repoUrl<commit_after>{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "webAppName": {
            "type": "string",
            "defaultValue": "[concat('webApp-', uniqueString(resourceGroup().id))]",
            "metadata": {
                "description": "Web app name."
            },
            "minLength": 2
        },
        "location": {
            "type": "string",
            "defaultValue": "[resourceGroup().location]",
            "metadata": {
                "description": "Location for all resources."
            }
        },
        "sku": {
            "type": "string",
            "defaultValue": "F1",
            "metadata": {
                "description": "The SKU of App Service Plan."
            }
        },
        "language": {
            "type": "string",
            "defaultValue": ".net",
            "allowedValues": [
                ".net",
                "php",
                "node",
                "html"
            ],
            "metadata": {
                "description": "The language stack of the app."
            }
        },
        "sample": {
            "type": "bool",
            "defaultValue": "[bool(0)]",
            "metadata": {
                "description": "0 = don't deploy a sample app. 1 = deploy a sample app."
            }
        },        
        "repoUrl": {
            "type": "string",
            "defaultValue": " ",
            "metadata": {
                "description": "Optional Git Repo URL"
            }
        }
    },
    "variables": {
        "appServicePlanPortalName": "[concat('AppServicePlan-', parameters('webAppName'))]",
        "gitRepoReference":{
            ".net":"https://github.com/Azure-Samples/app-service-web-dotnet-get-started",
            "node":"https://github.com/Azure-Samples/nodejs-docs-hello-world",
            "php":"https://github.com/Azure-Samples/php-docs-hello-world",
            "html":"https://github.com/Azure-Samples/html-docs-hello-world"
        },
        "gitRepoUrl":"[if ( bool(parameters('sample')), variables('gitRepoReference')[parameters('language')], parameters('repoUrl') ) ]",
        "configReference": {
            ".net": {
                "comments": ".Net app. No additional configuration needed."
            },
            "html": {
                "comments": "HTML app. No additional configuration needed."
            },
            "php": {
                "phpVersion": "7.4"
            },
            "node": {
                "appSettings": [
                    {
                        "name": "WEBSITE_NODE_DEFAULT_VERSION",
                        "value": "12.15.0"
                    }
                ]
            }
        }
    },
    "resources": [
        {
            "apiVersion": "2019-08-01",
            "type": "Microsoft.Web/serverfarms",
            "name": "[variables('appServicePlanPortalName')]",
            "location": "[parameters('location')]",
            "sku": {
                "name": "[parameters('sku')]"
            }
        },
        {
            "apiVersion": "2019-08-01",
            "type": "Microsoft.Web/sites",
            "name": "[parameters('webAppName')]",
            "location": "[parameters('location')]",
            "dependsOn": [
                "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanPortalName'))]"
            ],
            "properties": {
                "siteConfig": "[variables('configReference')[parameters('language')]]",
                "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanPortalName'))]"
            },
            "resources": [
                {
                    "condition": "[contains(variables('gitRepoUrl'),'http')]",
                    "type": "sourcecontrols",
                    "apiVersion": "2019-08-01",
                    "name": "web",
                    "location": "[parameters('location')]",
                    "dependsOn": [
                        "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
                    ],
                    "properties": {
                        "repoUrl": "[variables('gitRepoUrl')]",
                        "branch": "master",
                        "isManualIntegration": true
                    }
                }
            ]
        }
    ]
}
{'fraction_non_alphanumeric': 0.1631964638827498, 'fraction_numerical': 0.011166686053274397, 'mean_word_length': 1.312533620225928, 'pattern_counts': {'":': 154, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5095274', 'n_tokens_mistral': 2282, 'n_tokens_neox': 2141, 'n_words': 342}