<commit_before>{
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "adminPassword": {
            "metadata": {
                "description": "Administrator password"
            },
            "type": "securestring"
        },
        "authenticationType": {
            "allowedValues": [
                "password",
                "sshPublicKey"
            ],
            "defaultValue": "password",
            "metadata": {
                "description": "Authentication type"
            },
            "type": "string"
        },
        "newStorageAccountName": {
            "metadata": {
                "description": "Name of storage account"
            },
            "type": "string"
        },
        "offer": {
            "allowedValues": [
                "R7710BYOL",
                "R7710PAYG"
            ],
            "defaultValue": "R7710BYOL",
            "metadata": {
                "description": "Offer version and type"
            },
            "type": "string"
        },
        "sshPublicKey": {
            "defaultValue": "",
            "metadata": {
                "description": "Administrator SSH public key"
            },
            "type": "string"
        },
        "vmName": {
            "metadata": {
                "description": "Name of the Security Gateway"
            },
            "type": "string"
        },
        "vmSize": {
            "defaultValue": "Standard_D3",
            "metadata": {
                "description": "Size of the VM"
            },
            "type": "string"
        }
    },
    "variables": {
        "apiVersion": "2015-06-15",
        "customData": "#!/bin/bash",
        "addressPrefix": "10.0.0.0/16",
        "externalPrivateAddress": "10.0.1.10",
        "frontEndIPConfigId": "[concat(variables('lbId'),'/frontendIPConfigurations/LoadBalancerFrontEnd')]",
        "imageOffer": "check-point-r77-10",
        "imagePublisher": "checkpoint",
        "imageReference": "[variables(concat('imageReference',parameters('offer')))]",
        "imageReferenceR7710BYOL": {
            "offer": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]",
            "sku": "r7710-byol",
            "version": "latest"
        },
        "imageReferenceR7710PAYG": {
            "offer": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]",
            "sku": "r7710-ngtp-payg",
            "version": "latest"
        },
        "internalPrivateAddress": "10.0.2.10",
        "lbId": "[resourceId('Microsoft.Network/loadBalancers',variables('lbName'))]",
        "lbName": "frontend-lb",
        "nic1Name": "external-nic",
        "nic2Name": "internal-nic",
        "osProfile": "[variables(concat('osprofile',parameters('authenticationType')))]",
        "osProfilepassword": {
            "adminPassword": "[parameters('adminPassword')]",
            "adminUsername": "notused",
            "computerName": "[parameters('vmName')]",
            "customData": "[base64(variables('customData'))]"
        },
        "osProfilesshPublicKey": {
            "adminUsername": "notused",
            "computerName": "[parameters('vmName')]",
            "customData": "[base64(variables('customData'))]",
            "linuxConfiguration": {
                "disablePasswordAuthentication": "true",
                "ssh": {
                    "publicKeys": [
                        {
                            "keyData": "[parameters('sshPublicKey')]",
                            "path": "/home/notused/.ssh/authorized_keys"
                        }
                    ]
                }
            }
        },
        "plan": "[variables(concat('plan',parameters('offer')))]",
        "planR7710BYOL": {
            "name": "r7710-byol",
            "product": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]"
        },
        "planR7710PAYG": {
            "name": "r7710-ngtp-payg",
            "product": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]"
        },
        "publicIPAddressId": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]",
        "publicIPAddressName": "security-gateway",
        "storageAccountType": "Standard_LRS",
        "subnet1Name": "external-subnet",
        "subnet1Prefix": "10.0.1.0/24",
        "subnet1Id": "[concat(variables('vnetId'),'/subnets/',variables('subnet1Name'))]",
        "subnet2Name": "internal-subnet",
        "subnet2Prefix": "10.0.2.0/24",
        "subnet2Id": "[concat(variables('vnetId'),'/subnets/',variables('subnet2Name'))]",
        "vnetId": "[resourceId('Microsoft.Network/virtualNetworks',variables('vnetName'))]",
        "vnetName": "vnet",

        "externalRouteTableName": "ExternalRouteTable",
        "externalRouteTableId": "[resourceId('Microsoft.Network/routeTables', variables('externalRouteTableName'))]",
        "internalRouteTableName": "InternalRouteTable",
        "internalRouteTableId": "[resourceId('Microsoft.Network/routeTables', variables('internalRouteTableName'))]"
    },
    "resources": [
        {
            "apiVersion": "[variables('apiVersion')]",
            "location": "[resourceGroup().location]",
            "name": "[variables('externalRouteTableName')]",
            "properties": {
                "routes": [
                    {
                        "name": "RouteToInernal",
                        "properties": {
                            "addressPrefix": "[variables('subnet2Prefix')]",
                            "nextHopType": "VirtualAppliance",
                            "nextHopIpAddress": "[variables('externalPrivateAddress')]"
                        }
                    }
                ]
            },
            "type": "Microsoft.Network/routeTables"
        },
        {
            "apiVersion": "[variables('apiVersion')]",
            "location": "[resourceGroup().location]",
            "name": "[variables('internalRouteTableName')]",
            "properties": {
                "routes": [
                    {
                        "name": "RouteToExternal",
                        "properties": {
                            "addressPrefix": "0.0.0.0/0",
                            "nextHopType": "VirtualAppliance",
                            "nextHopIpAddress": "[variables('internalPrivateAddress')]"
                        }
                    }
                ]
            },
            "type": "Microsoft.Network/routeTables"
        },<commit_msg>Add a route from internal to external subnet<commit_after>{
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "adminPassword": {
            "metadata": {
                "description": "Administrator password"
            },
            "type": "securestring"
        },
        "authenticationType": {
            "allowedValues": [
                "password",
                "sshPublicKey"
            ],
            "defaultValue": "password",
            "metadata": {
                "description": "Authentication type"
            },
            "type": "string"
        },
        "newStorageAccountName": {
            "metadata": {
                "description": "Name of storage account"
            },
            "type": "string"
        },
        "offer": {
            "allowedValues": [
                "R7710BYOL",
                "R7710PAYG"
            ],
            "defaultValue": "R7710BYOL",
            "metadata": {
                "description": "Offer version and type"
            },
            "type": "string"
        },
        "sshPublicKey": {
            "defaultValue": "",
            "metadata": {
                "description": "Administrator SSH public key"
            },
            "type": "string"
        },
        "vmName": {
            "metadata": {
                "description": "Name of the Security Gateway"
            },
            "type": "string"
        },
        "vmSize": {
            "defaultValue": "Standard_D3",
            "metadata": {
                "description": "Size of the VM"
            },
            "type": "string"
        }
    },
    "variables": {
        "apiVersion": "2015-06-15",
        "customData": "#!/bin/bash",
        "addressPrefix": "10.0.0.0/16",
        "externalPrivateAddress": "10.0.1.10",
        "frontEndIPConfigId": "[concat(variables('lbId'),'/frontendIPConfigurations/LoadBalancerFrontEnd')]",
        "imageOffer": "check-point-r77-10",
        "imagePublisher": "checkpoint",
        "imageReference": "[variables(concat('imageReference',parameters('offer')))]",
        "imageReferenceR7710BYOL": {
            "offer": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]",
            "sku": "r7710-byol",
            "version": "latest"
        },
        "imageReferenceR7710PAYG": {
            "offer": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]",
            "sku": "r7710-ngtp-payg",
            "version": "latest"
        },
        "internalPrivateAddress": "10.0.2.10",
        "lbId": "[resourceId('Microsoft.Network/loadBalancers',variables('lbName'))]",
        "lbName": "frontend-lb",
        "nic1Name": "external-nic",
        "nic2Name": "internal-nic",
        "osProfile": "[variables(concat('osprofile',parameters('authenticationType')))]",
        "osProfilepassword": {
            "adminPassword": "[parameters('adminPassword')]",
            "adminUsername": "notused",
            "computerName": "[parameters('vmName')]",
            "customData": "[base64(variables('customData'))]"
        },
        "osProfilesshPublicKey": {
            "adminUsername": "notused",
            "computerName": "[parameters('vmName')]",
            "customData": "[base64(variables('customData'))]",
            "linuxConfiguration": {
                "disablePasswordAuthentication": "true",
                "ssh": {
                    "publicKeys": [
                        {
                            "keyData": "[parameters('sshPublicKey')]",
                            "path": "/home/notused/.ssh/authorized_keys"
                        }
                    ]
                }
            }
        },
        "plan": "[variables(concat('plan',parameters('offer')))]",
        "planR7710BYOL": {
            "name": "r7710-byol",
            "product": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]"
        },
        "planR7710PAYG": {
            "name": "r7710-ngtp-payg",
            "product": "[variables('imageOffer')]",
            "publisher": "[variables('imagePublisher')]"
        },
        "publicIPAddressId": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]",
        "publicIPAddressName": "security-gateway",
        "storageAccountType": "Standard_LRS",
        "subnet1Name": "external-subnet",
        "subnet1Prefix": "10.0.1.0/24",
        "subnet1Id": "[concat(variables('vnetId'),'/subnets/',variables('subnet1Name'))]",
        "subnet2Name": "internal-subnet",
        "subnet2Prefix": "10.0.2.0/24",
        "subnet2Id": "[concat(variables('vnetId'),'/subnets/',variables('subnet2Name'))]",
        "vnetId": "[resourceId('Microsoft.Network/virtualNetworks',variables('vnetName'))]",
        "vnetName": "vnet",

        "externalRouteTableName": "ExternalRouteTable",
        "externalRouteTableId": "[resourceId('Microsoft.Network/routeTables', variables('externalRouteTableName'))]",
        "internalRouteTableName": "InternalRouteTable",
        "internalRouteTableId": "[resourceId('Microsoft.Network/routeTables', variables('internalRouteTableName'))]"
    },
    "resources": [
        {
            "apiVersion": "[variables('apiVersion')]",
            "location": "[resourceGroup().location]",
            "name": "[variables('externalRouteTableName')]",
            "properties": {
                "routes": [
                    {
                        "name": "ToInernal",
                        "properties": {
                            "addressPrefix": "[variables('subnet2Prefix')]",
                            "nextHopType": "VirtualAppliance",
                            "nextHopIpAddress": "[variables('externalPrivateAddress')]"
                        }
                    }
                ]
            },
            "type": "Microsoft.Network/routeTables"
        },
        {
            "apiVersion": "[variables('apiVersion')]",
            "location": "[resourceGroup().location]",
            "name": "[variables('internalRouteTableName')]",
            "properties": {
                "routes": [
                    {
                        "name": "ToInternet",
                        "properties": {
                            "addressPrefix": "0.0.0.0/0",
                            "nextHopType": "VirtualAppliance",
                            "nextHopIpAddress": "[variables('internalPrivateAddress')]"
                        }
                    },
                    {
                        "name": "ToExternal",
                        "properties": {
                            "addressPrefix": "[variables('subnet1Prefix')]",
                            "nextHopType": "VirtualAppliance",
                            "nextHopIpAddress": "[variables('internalPrivateAddress')]"
                        }
                    }
                ]
            },
            "type": "Microsoft.Network/routeTables"
        },
{'fraction_non_alphanumeric': 0.16172214182344427, 'fraction_numerical': 0.01772793053545586, 'mean_word_length': 1.6512564741991176, 'pattern_counts': {'":': 253, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 14, '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': '4212379', 'n_tokens_mistral': 3779, 'n_tokens_neox': 3524, 'n_words': 492}