<commit_before><script>
    function meetupLoginWindow(url) {

        window.open(url, '_parent','height=800,width=400,location=no,menubar=no,scrollbars=no');

    }
    window.onload=function() {
        document.getElementById("meetup-login").addEventListener("click", function () {

            var url = "https://secure.meetup.com/oauth2/authorize"
            var clientId = "{{ meetup_client_id }}";
            var responseType = "code";
            var redirectUri = "http://mueventsmap.com:8000/connect/meetup";
            var urlString = url +
                    "?client_id=" + clientId +
                    "&response_type=" + responseType +
                    "&redirect_uri=" + redirectUri;

            meetupLoginWindow(urlString);
        });
    }

</script>

{% if is_granted('IS_AUTHENTICATED_FULLY') %}
    <div id="meetup-login">
        <img src="{{ asset('bundles/meetupevents/images/meetup-logo.svg') }}" alt="Meetup">
        <span>Logout</span>
    </div>
{% else %}
    <div id="meetup-login">
        <img src="{{ asset('bundles/meetupevents/images/meetup-logo.svg') }}" alt="Meetup">
        <span>Login</span>
    </div>
{% endif %}<commit_msg>Removed javascript code that has been repeated in js files.<commit_after>{% if is_granted('IS_AUTHENTICATED_FULLY') %}
    <div id="meetup-login">
        <img src="{{ asset('bundles/meetupevents/images/meetup-logo.svg') }}" alt="Meetup">
        <span>Logout</span>
    </div>
{% else %}
    <div id="meetup-login">
        <img src="{{ asset('bundles/meetupevents/images/meetup-logo.svg') }}" alt="Meetup">
        <span>Login</span>
    </div>
{% endif %}
{'fraction_non_alphanumeric': 0.1746031746031746, 'fraction_numerical': 0.006715506715506716, 'mean_word_length': 2.733485193621868, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 1, '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': '2372111', 'n_tokens_mistral': 577, 'n_tokens_neox': 518, 'n_words': 81}