<commit_before>var like_button = document.getElementsByClassName('recsGamepad__button--like'); 

var counter = 0;
var random = 0;
var liked_profiles = 0;

(function next() {
    if (counter++ >= 300) return;
    setTimeout(function() {
	try {
        like_button[0].click(); 
	} catch(TypeError) {}
        next();
	console.log("Liked "+liked_profiles+" profiles")
	liked_profiles = liked_profiles + 1
    }, 200);
})();<commit_msg>Liking until likes is run out<commit_after>var like_button = document.getElementsByClassName('recsGamepad__button--like'); 
var nolikesmodal = document.getElementsByClassName('modalManager');

var counter = 0;
var random = 0;
var liked_profiles = 0;

(function next() {
    if(nolikesmodal) console.log("Out of likes"); return;
    //if (counter++ >= 300) return;
    setTimeout(function() {
	try {
        like_button[0].click(); 
	} catch(TypeError) {}
        next();
	console.log("Liked "+liked_profiles+" profiles")
	liked_profiles = liked_profiles + 1
    }, 200);
})();
{'fraction_non_alphanumeric': 0.1527777777777778, 'fraction_numerical': 0.021825396825396824, 'mean_word_length': 4.282722513089006, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3165940', 'n_tokens_mistral': 354, 'n_tokens_neox': 325, 'n_words': 73}