<commit_before>iD.Connection = function(useHttps) {
    if (typeof useHttps !== 'boolean') {
      useHttps = window.location.protocol === 'https:';
    }

    var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'loaded'),
        protocol = useHttps ? 'https:' : 'http:',
        url = 'http://localhost:5000/osm',
        connection = {},<commit_msg>Fix: prevent iD from connecting to the wrong host<commit_after>iD.Connection = function(useHttps) {
    if (typeof useHttps !== 'boolean') {
      useHttps = window.location.protocol === 'https:';
    }

    var event = d3.dispatch('authenticating', 'authenticated', 'auth', 'loading', 'loaded'),
        protocol = useHttps ? 'https:' : 'http:',
        url = '/osm',
        connection = {},
{'fraction_non_alphanumeric': 0.17509727626459143, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 3.3128491620111733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '2725700', 'n_tokens_mistral': 248, 'n_tokens_neox': 238, 'n_words': 54}