<commit_before>// Copyright (c) PocketCampus.Org 2014
// See LICENSE file for more details
// File author: <NAME>

using GoogleAnalytics;
using PocketCampus.Mvvm.Logging;

namespace PocketCampus.Main.Services
{
    /// <summary>
    /// Logs navigations with Google Analytics.
    /// </summary>
    public sealed class GoogleAnalyticsNavigationLogger : NavigationLogger
    {
        private const string EventCategory = "UserAction";

        /// <summary>
        /// Logs a navigation with the specified ID.
        /// </summary>
        protected override void LogNavigation( string id )
        {
            EasyTracker.GetTracker().SendView( id );
        }

        /// <summary>
        /// Logs a command execution on the specified ViewModel with the specified ID.
        /// </summary>
        protected override void LogEvent( string viewModelId, string eventId, string label )
        {
            EasyTracker.GetTracker().SendEvent( EventCategory, viewModelId + "-" + eventId, label, 0 );
        }
    }
}<commit_msg>[general.wp] Disabled analycs for debug builds.<commit_after>// Copyright (c) PocketCampus.Org 2014
// See LICENSE file for more details
// File author: <NAME>

#if !DEBUG
using GoogleAnalytics;
#endif
using PocketCampus.Mvvm.Logging;

namespace PocketCampus.Main.Services
{
    /// <summary>
    /// Logs navigations with Google Analytics.
    /// </summary>
    public sealed class GoogleAnalyticsNavigationLogger : NavigationLogger
    {
        private const string EventCategory = "UserAction";

        /// <summary>
        /// Logs a navigation with the specified ID.
        /// </summary>
        protected override void LogNavigation( string id )
        {
#if !DEBUG
            EasyTracker.GetTracker().SendView( id );
#endif
        }

        /// <summary>
        /// Logs a command execution on the specified ViewModel with the specified ID.
        /// </summary>
        protected override void LogEvent( string viewModelId, string eventId, string label )
        {
#if !DEBUG
            EasyTracker.GetTracker().SendEvent( EventCategory, viewModelId + "-" + eventId, label, 0 );
#endif
        }
    }
}
{'fraction_non_alphanumeric': 0.1050925925925926, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 2.329738058551618, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '984872', 'n_tokens_mistral': 584, 'n_tokens_neox': 561, 'n_words': 182}