<commit_before>package com.alexstyl.specialdates;

import android.content.Context;

import com.alexstyl.specialdates.events.namedays.NamedayLocale;
import com.crashlytics.android.Crashlytics;
import com.novoda.notils.logger.simple.Log;

import java.util.Locale;

import io.fabric.sdk.android.Fabric;

public class ErrorTracker {

    private static final String TAG = ErrorTracker.class.getSimpleName();
    private static final String KEY_LOCALE = "user_locale";
    private static final String KEY_NAMEDAY_LOCALE = "nameday_locale";
    private static final String NONE = "no_locale";

    private static boolean hasBeenInitialised = false;

    static void startTracking(Context context) {
        if (BuildConfig.DEBUG) {
            Log.d(TAG, "Ignoring Crash Tracking in DEBUG builds");
            return;
        }

        Fabric.with(context, new Crashlytics());

        Log.i(TAG, "Crashlytics tracking started ");
        hasBeenInitialised = true;
        Crashlytics.setString(KEY_LOCALE, String.valueOf(Locale.getDefault()));
    }

    public static void track(Exception e) {
        if (hasBeenInitialised) {
            Crashlytics.logException(e);
        }
        Log.e(e);
    }<commit_msg>Change ErrorTracker logging to warning<commit_after>package com.alexstyl.specialdates;

import android.content.Context;

import com.alexstyl.specialdates.events.namedays.NamedayLocale;
import com.crashlytics.android.Crashlytics;
import com.novoda.notils.logger.simple.Log;

import java.util.Locale;

import io.fabric.sdk.android.Fabric;

public class ErrorTracker {

    private static final String TAG = ErrorTracker.class.getSimpleName();
    private static final String KEY_LOCALE = "user_locale";
    private static final String KEY_NAMEDAY_LOCALE = "nameday_locale";
    private static final String NONE = "no_locale";

    private static boolean hasBeenInitialised = false;

    static void startTracking(Context context) {
        if (BuildConfig.DEBUG) {
            Log.d(TAG, "Ignoring Crash Tracking in DEBUG builds");
            return;
        }

        Fabric.with(context, new Crashlytics());

        Log.i(TAG, "Crashlytics tracking started ");
        hasBeenInitialised = true;
        Crashlytics.setString(KEY_LOCALE, String.valueOf(Locale.getDefault()));
    }

    public static void track(Exception e) {
        if (hasBeenInitialised) {
            Crashlytics.logException(e);
        }
        Log.w(e);
    }
{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.0, 'mean_word_length': 3.2792321116928447, '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': '6542722', 'n_tokens_mistral': 740, 'n_tokens_neox': 708, 'n_words': 164}