<commit_before>{
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "frontDoorName": {
            "type": "string",
            "metadata": {
                "description": "The name of the frontdoor resource."
            }
        },
        "customDomainName": {
            "type": "string",
            "metadata": {
                "description": "The hostname of the frontendEndpoints. Must be a domain name."
            }
        },
        "backendAddress": {
            "type": "string",
            "metadata": {
                "description": "The hostname of the backend. Must be an IP address or FQDN."
            }
        }
    },
    "variables": {
        "frontdoorref": "[resourceId('Microsoft.Network/frontDoors', parameters('frontDoorName'))]",
        "frontdoorLocation": "global"
    },
    "resources": [
        {
            "apiVersion": "2018-08-01",
            "type": "Microsoft.Network/frontDoors",
            "name": "[parameters('frontDoorName')]",
            "location": "[variables('frontdoorLocation')]",
            "tags": {},
            "properties": {
                "routingRules": [
                    {
                        "name": "routingRule1",
                        "properties": {
                            "frontendEndpoints": [
                                {
                                    "id": "[concat(variables('frontdoorref'),'/frontendEndpoints/frontendEndpoint1')]"
                                }
                            ],
                            "acceptedProtocols": [
                                "Http",
                                "Https"
                            ],
                            "patternsToMatch": [
                                "/*"
                            ],
                            "forwardingProtocol": "MatchRequest",
                            "backendPool": {
                                "id": "[concat(variables('frontdoorref'),'/backendPools/backendPool1')]"
                            },
                            "enabledState": "Enabled"
                        }
                    },
                    {
                        "name": "routingRule2",
                        "properties": {
                            "frontendEndpoints": [
                                {
                                    "id": "[concat(variables('frontdoorref'),'/frontendEndpoints/frontendEndpoint2')]"
                                }
                            ],
                            "acceptedProtocols": [
                                "Http",
                                "Https"
                            ],
                            "patternsToMatch": [
                                "/*"
                            ],
                            "forwardingProtocol": "MatchRequest",
                            "backendPool": {
                                "id": "[concat(variables('frontdoorref'),'/backendPools/backendPool1')]"
                            },
                            "enabledState": "Enabled"
                        }
                    }
                ],
                "healthProbeSettings": [
                    {
                        "name": "healthProbeSettings1",
                        "properties": {
                            "path": "/",
                            "protocol": "Http",
                            "intervalInSeconds": 120
                        }
                    }
                ],
                "loadBalancingSettings": [
                    {
                        "name": "loadBalancingSettings1",
                        "properties": {
                            "sampleSize": 4,
                            "successfulSamplesRequired": 2
                        }
                    }
                ],
                "backendPools": [
                    {
                        "name": "backendPool1",
                        "properties": {
                            "backends": [
                                {
                                    "address": "[parameters('backendAddress')]",
                                    "httpPort": 80,
                                    "httpsPort": 443,
                                    "weight": 50,
                                    "priority": 1,
                                    "enabledState": "Enabled"
                                }
                            ],
                            "loadBalancingSettings": {
                                "id": "[concat(variables('frontdoorref'),'/loadBalancingSettings/loadBalancingSettings1')]"
                            },
                            "healthProbeSettings": {
                                "id": "[concat(variables('frontdoorref'),'/healthProbeSettings/healthProbeSettings1')]"
                            }
                        }
                    }
                ],
                "frontendEndpoints": [
                    {
                        "name": "frontendEndpoint1",
                        "properties": {
                            "hostName": "[concat(parameters('frontDoorName'), '.azurefd.net')]",
                            "sessionAffinityEnabledState": "Disabled",
                            "sessionAffinityTtlSeconds": 0
                        }
                    },
                    {
                        "name": "frontendEndpoint2",
                        "properties": {
                            "hostName": "[parameters('customDomainName')]",
                            "sessionAffinityEnabledState": "Disabled",
                            "sessionAffinityTtlSeconds": 0
                        }
                    }
                ],
                "enabledState": "Enabled"
            }
        }
    ],
    "outputs": {}
}<commit_msg>updating API<commit_after>{
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "frontDoorName": {
            "type": "string",
            "metadata": {
                "description": "The name of the frontdoor resource."
            }
        },
        "customDomainName": {
            "type": "string",
            "metadata": {
                "description": "The hostname of the frontendEndpoints. Must be a domain name."
            }
        },
        "backendAddress": {
            "type": "string",
            "metadata": {
                "description": "The hostname of the backend. Must be an IP address or FQDN."
            }
        }
    },
    "variables": {
        "frontdoorLocation": "global"
    },
    "resources": [
        {
            "apiVersion": "2018-08-01",
            "type": "Microsoft.Network/frontDoors",
            "name": "[parameters('frontDoorName')]",
            "location": "[variables('frontdoorLocation')]",
            "tags": {},
            "properties": {
                "routingRules": [
                    {
                        "name": "routingRule1",
                        "properties": {
                            "frontendEndpoints": [
                                {
                                    "id": "[resourceId('Microsoft.Network/frontDoors/frontendEndpoints', parameters('frontDoorName'), 'frontendEndpoint1')]"
                                }
                            ],
                            "acceptedProtocols": [
                                "Http",
                                "Https"
                            ],
                            "patternsToMatch": [
                                "/*"
                            ],
                            "routeConfiguration": {
                                "@odata.type": "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration",                                
                                "forwardingProtocol": "MatchRequest",
                                "backendPool": {
                                    "id": "[resourceId('Microsoft.Network/frontDoors/backendPools', parameters('frontDoorName'), 'backendPool1')]"
                                }                                
                            },
                            "enabledState": "Enabled"
                        }
                    },
                    {
                        "name": "routingRule2",
                        "properties": {
                            "frontendEndpoints": [
                                {
                                    "id": "[resourceId('Microsoft.Network/frontDoors/frontendEndpoints', parameters('frontDoorName'), 'frontendEndpoint2')]"
                                }
                            ],
                            "acceptedProtocols": [
                                "Http",
                                "Https"
                            ],
                            "patternsToMatch": [
                                "/*"
                            ],
                            "forwardingProtocol": "MatchRequest",
                            "backendPool": {
                                "id": "[resourceId('Microsoft.Network/frontDoors/backendPools', parameters('frontDoorName'), 'backendPool1')]"
                            },
                            "enabledState": "Enabled"
                        }
                    }
                ],
                "healthProbeSettings": [
                    {
                        "name": "healthProbeSettings1",
                        "properties": {
                            "path": "/",
                            "protocol": "Http",
                            "intervalInSeconds": 120
                        }
                    }
                ],
                "loadBalancingSettings": [
                    {
                        "name": "loadBalancingSettings1",
                        "properties": {
                            "sampleSize": 4,
                            "successfulSamplesRequired": 2
                        }
                    }
                ],
                "backendPools": [
                    {
                        "name": "backendPool1",
                        "properties": {
                            "backends": [
                                {
                                    "address": "[parameters('backendAddress')]",
                                    "httpPort": 80,
                                    "httpsPort": 443,
                                    "weight": 50,
                                    "priority": 1,
                                    "enabledState": "Enabled"
                                }
                            ],
                            "loadBalancingSettings": {
                                "id": "[resourceId('Microsoft.Network/frontDoors/loadBalancingSettings', parameters('frontDoorName'), 'loadBalancingSettings1')]"
                            },
                            "healthProbeSettings": {
                                "id": "[resourceId('Microsoft.Network/frontDoors/healthProbeSettings', parameters('frontDoorName'), 'healthProbeSettings1')]"
                            }
                        }
                    }
                ],
                "frontendEndpoints": [
                    {
                        "name": "frontendEndpoint1",
                        "properties": {
                            "hostName": "[concat(parameters('frontDoorName'), '.azurefd.net')]",
                            "sessionAffinityEnabledState": "Disabled"
                        }
                    },
                    {
                        "name": "frontendEndpoint2",
                        "properties": {
                            "hostName": "[parameters('customDomainName')]",
                            "sessionAffinityEnabledState": "Disabled"
                        }
                    }
                ],
                "enabledState": "Enabled"
            }
        }
    ],
    "outputs": {}
}
{'fraction_non_alphanumeric': 0.10773727368677438, 'fraction_numerical': 0.0076317285053178535, 'mean_word_length': 0.7529528959726768, 'pattern_counts': {'":': 167, '<': 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': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1075265', 'n_tokens_mistral': 2668, 'n_tokens_neox': 2457, 'n_words': 337}