CODE = {
    # Automatic language detection rules based on content
    "detection_rules": {
        "csharp": [
            "using", "Console.WriteLine", "public static void Main", "WebMethod",
            "TryParse", "EventArgs", "String.Format", "System.Web.Services"
        ],
        "java": [
            "System.out.println", "public static void main(String", "package",
            "JUnitTest", "Class.forName", "PreparedStatement", "private static void",
            "private void", "getAgendaMedecinJour", "@PostConstruct", "@ResponseBody",
            "@RequestMapping", "getMedecin", "@Entity", "@Autowired", "@Bean",
            "Serializable", "getClient", "getCreneau", "getRv", "PostAjouterRv",
            "PostSupprimerRv", "@EnableJpaRepositories", "@Component", "getAgendaMedecinJour",
            "getResponse", "getMessagesForException", "getBase64", "ajouterRv",
            "Reponse", "getPartialViewAgenda", "setModelforAgenda", "ActionContext",
            "getActionContext", "PostLang", "PostUser", "PostGetAgenda", "@NotNull",
            "@EnableAutoConfiguration", "HttpSecurity"
        ],
        "html": [
            "<html>", "</div>", "<body>", "<script>", "href=", "<span>", "<p>",
            "<h2>", "<form", "<table", "<input"
        ],
        "sql": [
            "SELECT", "INSERT INTO", "UPDATE", "DELETE FROM", "WHERE",
            "CREATE TABLE", "AlTER TABLE"
        ],
        "python": [
            "def", "import", "print(", "from"
        ],
        "xml": [
            "<?xml", "<project", "<version>", "<configuration>", "<build>",
            "<dependency>", "<properties>", "<configuration>", "<start-class>"
        ],
        "javascript": [
            "use strict", "console.log", "let", "constructor", "async", "export"
        ],
        "php": [
            "<?php", "declare", "require"
        ],
        "vbscript": [
            "Option", "Dim", "Explicit"
        ],
        "markdown": [
            "# ", "## ", "### ", "**", "__", "![", "]("  # Typical Markdown markers
        ],
    },
}
