<commit_before>function my_visible($obj) {
    return ! $obj.hasClass('should_be_hidden');
}


function my_hide($obj) {
    $obj.addClass('should_be_hidden');
}

function my_show($obj) {
    var hidden = $obj.hasClass('should_be_hidden');

    if (hidden) {
	    $obj.removeClass('should_be_hidden');<commit_msg>Instead of using jQuery's addClass, which does intensive string processing, just change the class attribute.<commit_after>function my_visible($obj) {
    return ! $obj.hasClass('should_be_hidden');
}


function my_hide($obj) {
    $obj.attr('class','should_be_hidden');
}

function my_show($obj) {
    var hidden = $obj.hasClass('should_be_hidden');

    if (hidden) {
	    $obj.removeClass('should_be_hidden');
{'fraction_non_alphanumeric': 0.1479944674965422, 'fraction_numerical': 0.0, 'mean_word_length': 5.135593220338983, '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': '3722270', 'n_tokens_mistral': 242, 'n_tokens_neox': 234, 'n_words': 43}