<commit_before>/* global chrome:false, self:false, GetCurrentAppID:true, GetHomepage:true, GetOption:true, GetLocalResource:true */

'use strict';

var CurrentAppID,
	GetAppIDFromUrl = function( url )
	{
		var appid = url.match( /\/(app|sub|bundle|friendsthatplay|gamecards)\/([0-9]{1,7})/ );
		
		return appid ? parseInt( appid[ 2 ], 10 ) : -1;
	},
	
	GetCurrentAppID = function()
	{
		if( !CurrentAppID )
		{
			CurrentAppID = GetAppIDFromUrl( location.pathname );
		}
		
		return CurrentAppID;
	},
	
	GetHomepage = function()<commit_msg>Fix steamdb links on recommended pages<commit_after>/* global chrome:false, self:false, GetCurrentAppID:true, GetHomepage:true, GetOption:true, GetLocalResource:true */

'use strict';

var CurrentAppID,
	GetAppIDFromUrl = function( url )
	{
		var appid = url.match( /\/(app|sub|bundle|friendsthatplay|gamecards|recommended)\/([0-9]{1,7})/ );
		
		return appid ? parseInt( appid[ 2 ], 10 ) : -1;
	},
	
	GetCurrentAppID = function()
	{
		if( !CurrentAppID )
		{
			CurrentAppID = GetAppIDFromUrl( location.pathname );
		}
		
		return CurrentAppID;
	},
	
	GetHomepage = function()
{'fraction_non_alphanumeric': 0.1477170993733214, 'fraction_numerical': 0.01432408236347359, 'mean_word_length': 4.3238095238095235, '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': '6699225', 'n_tokens_mistral': 441, 'n_tokens_neox': 395, 'n_words': 78}