<commit_before>package io.github.mysterionnh.allmuffin;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;

/**
 * The main Activity of this app, from here all other projects are reachable
 */
public class MainActivity extends BaseActivity {

    /** A hack used to get the context of this Activity in places where I need it put am not allowed
      * to get it. Sad life.
      */
    private final Context _context = (Context) this;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        PreferenceManager.setDefaultValues(_context, R.xml.preferences, false);
        setAppLanguageAccordingToSettings(_context);
        // Has to be done after setting the language, otherwise the change doesn't apply here<commit_msg>Good night everyone! (no one will ever read this but whatever)<commit_after>package io.github.mysterionnh.allmuffin;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;

/**
 * The main Activity of this app, from here all other "projects" are reachable
 */
public class MainActivity extends BaseActivity {

    /** A hack used to get the context of this Activity in places where I need it put am not allowed
      * to get it. Sad life.
      */
    private final Context _context = (Context) this;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        PreferenceManager.setDefaultValues(_context, R.xml.preferences, false);
        setAppLanguageAccordingToSettings(_context);
        // Has to be done after setting the language, otherwise the change doesn't apply here
{'fraction_non_alphanumeric': 0.07286821705426356, 'fraction_numerical': 0.0, 'mean_word_length': 3.9514066496163682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '138950', 'n_tokens_mistral': 496, 'n_tokens_neox': 478, 'n_words': 183}