<commit_before>function request(url, query, headers)
{
	var ret = new AfterLoadEvent(1);
	var xhttp = new XMLHttpRequest();
	xhttp.onreadystatechange = function()
		{
			if(this.readyState === 4 && this.status === 200)
			{
				ret.trigger(JSON.parse(this.responseText).response)
			}
		}
	if(query !== undefined && query !== "")
	{
		url += "?" + query;
	}<commit_msg>Fixed login on non-public lesson<commit_after>function request(url, query, headers)
{
	var ret = new AfterLoadEvent(1);
	var xhttp = new XMLHttpRequest();
	xhttp.onreadystatechange = function()
		{
			if(this.readyState === 4)
			{
				var body = JSON.parse(this.responseText);
				if(this.status === 200)
				{
					ret.trigger(body.response);
				}
				else if(this.status === 403 && body.type === "RoleException")
				{
					showLessonListView();
				}
			}
		}
	if(query !== undefined && query !== "")
	{
		url += "?" + query;
	}
{'fraction_non_alphanumeric': 0.17184035476718404, 'fraction_numerical': 0.014412416851441241, 'mean_word_length': 3.3413461538461537, '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': '7427304', 'n_tokens_mistral': 372, 'n_tokens_neox': 306, 'n_words': 61}