<commit_before>{
  "tests": [
    {
      "description": "Empty string",
      "uri": "",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid scheme",
      "uri": "mongo://localhost:27017",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Missing host",
      "uri": "mongodb://",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier",
      "uri": "mongodb://localhost::27017",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier and trailing slash",
      "uri": "mongodb://localhost::27017/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier with missing host and port",
      "uri": "mongodb://::",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier with missing port",
      "uri": "mongodb://localhost,localhost::",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier and second host",
      "uri": "mongodb://localhost::27017,abc",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (negative number) with hostname",
      "uri": "mongodb://localhost:-1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (zero) with hostname",
      "uri": "mongodb://localhost:0/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with hostname",
      "uri": "mongodb://localhost:65536",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with hostname and trailing slash",
      "uri": "mongodb://localhost:65536/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (non-numeric string) with hostname",
      "uri": "mongodb://localhost:foo",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (negative number) with IP literal",
      "uri": "mongodb://[::1]:-1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (zero) with IP literal",
      "uri": "mongodb://[::1]:0/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with IP literal",
      "uri": "mongodb://[::1]:65536",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with IP literal and trailing slash",
      "uri": "mongodb://[::1]:65536/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (non-numeric string) with IP literal",
      "uri": "mongodb://[::1]:foo",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Incomplete key value pair for option",
      "uri": "mongodb://example.com/?w",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Username with password containing an unescaped colon",
      "uri": "mongodb://alice:foo:bar@127.0.0.1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Username containing an unescaped at-sign",
      "uri": "mongodb://alice@@127.0.0.1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Username with password containing an unescaped at-sign",
      "uri": "mongodb://alice@foo:bar@127.0.0.1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Host with unescaped slash",
      "uri": "mongodb:///tmp/mongodb-27017.sock/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    }
  ]
}
<commit_msg>CDRIVER-2029 - 3 colons should fails URI parsing<commit_after>{
  "tests": [
    {
      "description": "Empty string",
      "uri": "",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid scheme",
      "uri": "mongo://localhost:27017",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Missing host",
      "uri": "mongodb://",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier",
      "uri": "mongodb://localhost::27017",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier and trailing slash",
      "uri": "mongodb://localhost::27017/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier with missing host and port",
      "uri": "mongodb://::",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier with missing port",
      "uri": "mongodb://localhost,localhost::",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Double colon in host identifier and second host",
      "uri": "mongodb://localhost::27017,abc",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (negative number) with hostname",
      "uri": "mongodb://localhost:-1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (zero) with hostname",
      "uri": "mongodb://localhost:0/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with hostname",
      "uri": "mongodb://localhost:65536",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with hostname and trailing slash",
      "uri": "mongodb://localhost:65536/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (non-numeric string) with hostname",
      "uri": "mongodb://localhost:foo",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (negative number) with IP literal",
      "uri": "mongodb://[::1]:-1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (zero) with IP literal",
      "uri": "mongodb://[::1]:0/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with IP literal",
      "uri": "mongodb://[::1]:65536",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (positive number) with IP literal and trailing slash",
      "uri": "mongodb://[::1]:65536/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Invalid port (non-numeric string) with IP literal",
      "uri": "mongodb://[::1]:foo",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Incomplete key value pair for option",
      "uri": "mongodb://example.com/?w",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Username containing an unescaped at-sign",
      "uri": "mongodb://alice@@127.0.0.1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Username with password containing an unescaped at-sign",
      "uri": "mongodb://alice@foo:bar@127.0.0.1",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    },
    {
      "description": "Host with unescaped slash",
      "uri": "mongodb:///tmp/mongodb-27017.sock/",
      "valid": false,
      "warning": null,
      "hosts": null,
      "auth": null,
      "options": null
    }
  ]
}

{'fraction_non_alphanumeric': 0.1810703571082938, 'fraction_numerical': 0.013839156101809736, 'mean_word_length': 2.0673790442267737, 'pattern_counts': {'":': 317, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '6603448', 'n_tokens_mistral': 3393, 'n_tokens_neox': 3211, 'n_words': 872}