<commit_before>﻿{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "location": {
      "type": "string",
      "metadata": {
        "description": "Region where the resources will be deployed"
      },
      "defaultValue": "Central US",
      "allowedValues": [
        "North Central US",
        "East Asia",
        "West US",
        "Central US",
        "East US 2"
      ]
    },
    "enableBgp": {
      "type": "string",
      "metadata": {
        "description": "Enable or disable BGP"
      },
      "defaultValue": "false",
      "allowedValues": [
        "false"
      ]
    },
    "gatewayType": {
      "type": "string",
      "metadata": {
        "description": "VPN or ER"
      },
      "defaultValue": "Vpn",
      "allowedValues": [
        "Vpn",
        "ER"
      ]
    },
    "vpnType": {
      "type": "string",
      "metadata": {
        "description": "Route based or policy based"
      },
      "defaultValue": "RouteBased",
      "allowedValues": [
        "RouteBased",
        "PolicyBased"
      ]
    },
    "localGatewayName": {
      "type": "string",
      "metadata": {
        "description": "Name for gateway connected to other VNet/on-prem network"
      }
    },
    "localGatewayIpAddress": {
      "type": "string",
      "metadata": {
        "description": "Public IP address for the gateway to connect to (from other VNet/on-prem)"
      }
    },
    "localGatewayAddressPrefix": {
      "type": "string",
      "metadata": {
        "description": "CIDR block for remote network"
      }
    },
    "gatewaySubnet": {
      "type": "string",
      "defaultValue": "GatewaySubnet",
      "metadata": {
        "description": "Name for gateway subnet in new VNet"
      },
      "allowedValues": [
        "GatewaySubnet"
      ]
    },
    "gatewaySubnetPrefix": {
      "type": "string",
      "metadata": {
        "description": "CIDR block for gateway subnet"
      }
    },
    "gatewayPublicIPName": {
      "type": "string",
      "metadata": {
        "description": "Name for public IP object used for the new gateway"
      }
    },
    "gatewayName": {
      "type": "string",
      "metadata": {
        "description": "Name for the new gateway"
      }
    },
    "connectionName": {
      "type": "string",
      "metadata": {
        "description": "Name for the new connection between the two VNets"
      }
    },
    "sharedKey": {
      "type": "string",
      "metadata": {
        "description": "Shared key for IPSec tunnel"
      }
    },
    "virtualNetworkName": {
      "type": "string",
      "metadata": {
        "description": "Name for new virtual network"
      }
    }
  },
  "variables": {
    "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',parameters('virtualNetworkName'))]",
    "gatewaySubnetRef": "[concat(variables('vnetID'),'/subnets/',parameters('gatewaySubnet'))]"
  },
  "resources": [
     {
      "apiVersion": "2015-05-01-preview",
      "type": "Microsoft.Network/localNetworkGateways",
      "name": "[parameters('localGatewayName')]",
      "location": "[parameters('location')]",<commit_msg>Fixing resource reference<commit_after>﻿{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "location": {
      "type": "string",
      "metadata": {
        "description": "Region where the resources will be deployed"
      },
      "defaultValue": "Central US",
      "allowedValues": [
        "North Central US",
        "East Asia",
        "West US",
        "Central US",
        "East US 2"
      ]
    },
    "enableBgp": {
      "type": "string",
      "metadata": {
        "description": "Enable or disable BGP"
      },
      "defaultValue": "false",
      "allowedValues": [
        "false"
      ]
    },
    "gatewayType": {
      "type": "string",
      "metadata": {
        "description": "VPN or ER"
      },
      "defaultValue": "Vpn",
      "allowedValues": [
        "Vpn",
        "ER"
      ]
    },
    "vpnType": {
      "type": "string",
      "metadata": {
        "description": "Route based or policy based"
      },
      "defaultValue": "RouteBased",
      "allowedValues": [
        "RouteBased",
        "PolicyBased"
      ]
    },
    "localGatewayName": {
      "type": "string",
      "metadata": {
        "description": "Name for gateway connected to other VNet/on-prem network"
      }
    },
    "localGatewayIpAddress": {
      "type": "string",
      "metadata": {
        "description": "Public IP address for the gateway to connect to (from other VNet/on-prem)"
      }
    },
    "localGatewayAddressPrefix": {
      "type": "string",
      "metadata": {
        "description": "CIDR block for remote network"
      }
    },
    "gatewaySubnet": {
      "type": "string",
      "defaultValue": "GatewaySubnet",
      "metadata": {
        "description": "Name for gateway subnet in new VNet"
      },
      "allowedValues": [
        "GatewaySubnet"
      ]
    },
    "gatewaySubnetPrefix": {
      "type": "string",
      "metadata": {
        "description": "CIDR block for gateway subnet"
      }
    },
    "gatewayPublicIPName": {
      "type": "string",
      "metadata": {
        "description": "Name for public IP object used for the new gateway"
      }
    },
    "gatewayName": {
      "type": "string",
      "metadata": {
        "description": "Name for the new gateway"
      }
    },
    "connectionName": {
      "type": "string",
      "metadata": {
        "description": "Name for the new connection between the two VNets"
      }
    },
    "sharedKey": {
      "type": "string",
      "metadata": {
        "description": "Shared key for IPSec tunnel"
      }
    },
    "virtualNetworkName": {
      "type": "string",
      "metadata": {
        "description": "Name for new virtual network"
      }
    }
  },
  "variables": {
    "gatewaySubnetRef": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworkName').vnet), '/subnets/', parameters('gatewaySubnet').name)]"    
  },
  "resources": [
     {
      "apiVersion": "2015-05-01-preview",
      "type": "Microsoft.Network/localNetworkGateways",
      "name": "[parameters('localGatewayName')]",
      "location": "[parameters('location')]",
{'fraction_non_alphanumeric': 0.1655732583567635, 'fraction_numerical': 0.006560449859418931, 'mean_word_length': 2.1387254901960784, 'pattern_counts': {'":': 153, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1070802', 'n_tokens_mistral': 1985, 'n_tokens_neox': 1944, 'n_words': 430}