<commit_before>require(["jquery",
        "metrics",
		"jsExtensions",
		"gameOfLife"], function($, metrics, jsExtensions, gameOfLife) {
	if (Modernizr.canvastext)
	{
		jsExtensions();
	
	    $(document).ready(function() {	
			$("#gameOfLife").append(
				$('<canvas id="gameOfLifeCanvas" width="' + $("#gameOfLife").width() + '" height="' + $("#gameOfLife").height() + '">')
			);
			gameOfLife.begin();
	    });
	}
	else
	{
		$("#browserNotSupported").show();
		$("#gameOfLife").hide();
	}
});<commit_msg>Fixed issue with feature detection<commit_after>require(["jquery",
        "metrics",
		"jsExtensions",
		"gameOfLife"], function($, metrics, jsExtensions, gameOfLife) {
	jsExtensions();

    $(document).ready(function() {	
		if (Modernizr.canvastext)
		{
			$("#gameOfLife").append(
				$('<canvas id="gameOfLifeCanvas" width="' + $("#gameOfLife").width() + '" height="' + $("#gameOfLife").height() + '">')
			);
			gameOfLife.begin();
		}
		else
		{
			$("#browserNotSupported").show();
			$("#gameOfLife").hide();
		}
    });
});
{'fraction_non_alphanumeric': 0.24061597690086622, 'fraction_numerical': 0.0, 'mean_word_length': 4.226130653266332, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4085349', 'n_tokens_mistral': 385, 'n_tokens_neox': 345, 'n_words': 50}