<commit_before>var session = require('kanso/session');


exports.bind = function () {
    $('#session .logout a').click(function (ev) {
        ev.preventDefault();
        session.logout();
        return false;
    });
    $('#session .login a').click(function (ev) {
        ev.preventDefault();
        $('#login_dropdown').show();
        return false;
    });
    $('#login_form_cancel').click(function (ev) {
        $('#login_dropdown').hide();
    });
    $('#login_form').submit(function (ev) {
        ev.preventDefault();
        var form = this;
        $('.general_errors', form).text('');<commit_msg>add active class to login action link when login dropdown is shown<commit_after>var session = require('kanso/session');


exports.bind = function () {
    $('#session .logout a').click(function (ev) {
        ev.preventDefault();
        session.logout();
        return false;
    });
    $('#session .login a').click(function (ev) {
        ev.preventDefault();
        $('#session .login').addClass('active');
        $('#login_dropdown').show();
        return false;
    });
    $('#login_form_cancel').click(function (ev) {
        $('#session .login').removeClass('active');
        $('#login_dropdown').hide();
    });
    $('#login_form').submit(function (ev) {
        ev.preventDefault();
        var form = this;
        $('.general_errors', form).text('');
{'fraction_non_alphanumeric': 0.19653179190751446, 'fraction_numerical': 0.0, 'mean_word_length': 2.7032085561497325, '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': '3510756', 'n_tokens_mistral': 379, 'n_tokens_neox': 396, 'n_words': 78}