<commit_before>package ch.sheremet.dasfoo.rover.android.client.menu;

import android.os.Bundle;
import android.preference.PreferenceActivity;

/**
 * Created by <NAME> on 6/15/16 12:44 PM.
 *
 * Class is created for opening Settings from menu
 */
public class SettingsActivity extends PreferenceActivity {
    @Override
    protected  final void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       // addPreferencesFromResource(R.xml.preferences);
        getFragmentManager().beginTransaction()
                .replace(android.R.id.content, new SettingsFragment()).commit();
    }

    /**
     * Subclasses should override this method and verify that the given fragment is a valid type
     * to be attached to this activity. The default implementation returns <code>true</code> for
     * apps built for <code>android:targetSdkVersion</code> older than Kitkat.
     * {For later versions, it will throw an exception.
     * This method is needed for:
     * https://securityintelligence.com/new-vulnerability-android-framework-fragment-injection/
     *
     * @param fragmentName the class name of the Fragment about to be attached to this activity.
     * @return true if the fragment class name is valid for this Activity and false otherwise.<commit_msg>Remove comments<commit_after>package ch.sheremet.dasfoo.rover.android.client.menu;

import android.os.Bundle;
import android.preference.PreferenceActivity;

/**
 * Created by <NAME> on 6/15/16 12:44 PM.
 *
 * Class is created for opening Settings from menu
 */
public class SettingsActivity extends PreferenceActivity {
    @Override
    protected  final void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getFragmentManager().beginTransaction()
                .replace(android.R.id.content, new SettingsFragment()).commit();
    }

    /**
     * Subclasses should override this method and verify that the given fragment is a valid type
     * to be attached to this activity. The default implementation returns <code>true</code> for
     * apps built for <code>android:targetSdkVersion</code> older than Kitkat.
     * {For later versions, it will throw an exception.
     * This method is needed for:
     * https://securityintelligence.com/new-vulnerability-android-framework-fragment-injection/
     *
     * @param fragmentName the class name of the Fragment about to be attached to this activity.
     * @return true if the fragment class name is valid for this Activity and false otherwise.
{'fraction_non_alphanumeric': 0.08264786525656091, 'fraction_numerical': 0.007050528789659225, 'mean_word_length': 3.536412078152753, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '7664076', 'n_tokens_mistral': 666, 'n_tokens_neox': 635, 'n_words': 233}