<commit_before>'use strict';

var defined = require('./defined');
var osmAuth = require('osm-auth');

function OAuthOsmApi() {
    this._auth = osmAuth({
        oauth_consumer_key: '<KEY>',
        oauth_secret: '<KEY>',
        auto: false,
        landing: "/land.html"
    });
    
    this._username = undefined;
    this._userId = undefined;
}

Object.defineProperties(OAuthOsmApi.prototype, {
    authenticated : {
        get : function() {
            return this._auth.authenticated();
        }
    },
    connected : {
        get : function() {
            return defined(this._userId);
        }
    },
    url : {
        get : function() {
            return this._auth.url;
        }
    },
    username : {
        get : function() {
            return this._username;
        }
    },
    userId : {
        get : function() {
            return this._userId;
        }
    }
});
<commit_msg>Fix OSM account button URL<commit_after>'use strict';

var defined = require('./defined');
var osmAuth = require('osm-auth');

function OAuthOsmApi() {
    this._auth = osmAuth({
        oauth_consumer_key: '<KEY>',
        oauth_secret: '<KEY>',
        auto: false,
        landing: "/land.html"
    });
    
    this._username = undefined;
    this._userId = undefined;
}

Object.defineProperties(OAuthOsmApi.prototype, {
    authenticated : {
        get : function() {
            return this._auth.authenticated();
        }
    },
    connected : {
        get : function() {
            return defined(this._userId);
        }
    },
    url : {
        get : function() {
            return this._auth.options().url;
        }
    },
    username : {
        get : function() {
            return this._username;
        }
    },
    userId : {
        get : function() {
            return this._userId;
        }
    }
});

{'fraction_non_alphanumeric': 0.13712737127371274, 'fraction_numerical': 0.0, 'mean_word_length': 1.6676300578034682, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2431458', 'n_tokens_mistral': 544, 'n_tokens_neox': 547, 'n_words': 104}