<commit_before><?
/**
 * @name    Google analytics
 * @version 0.1
 * @author  <NAME>
 * @uri     http://gitblog.se/
 * 
 * Google analytics tracking.
 * 
 */
class google_analytics_plugin {
	static public $conf;
	
	static function init($context) {
		self::$conf = gb::data('plugins/google-analytics');
		if (!self::$conf['property_id']) {
			gb::log(LOG_WARNING, 'missing property_id in google-analytics configuration');
		}<commit_msg>default config includes empty property_id<commit_after><?
/**
 * @name    Google analytics
 * @version 0.1
 * @author  <NAME>
 * @uri     http://gitblog.se/
 * 
 * Google analytics tracking.
 * 
 * This plugin is only effective in the "request" plugin context.
 */
class google_analytics_plugin {
	static public $conf;
	
	static function init($context) {
		self::$conf = gb::data('plugins/google-analytics',array('property_id'=>''));
		if (!self::$conf['property_id']) {
			gb::log(LOG_WARNING, 'missing property_id in google-analytics configuration');
		}
{'fraction_non_alphanumeric': 0.15609264853977844, 'fraction_numerical': 0.004028197381671702, 'mean_word_length': 4.231578947368421, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '6484321', 'n_tokens_mistral': 324, 'n_tokens_neox': 308, 'n_words': 76}