<commit_before>package org.hogel.naroubrowser.activities;

import roboguice.activity.RoboActionBarActivity;

public class AbstractActivity extends RoboActionBarActivity {
}<commit_msg>Remove RoboActionBarActivity<commit_after>package org.hogel.naroubrowser.activities;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.google.inject.Key;
import roboguice.RoboGuice;
import roboguice.inject.RoboInjector;
import roboguice.util.RoboContext;

import java.util.HashMap;
import java.util.Map;

public class AbstractActivity extends AppCompatActivity implements RoboContext {
    protected HashMap<Key<?>,Object> scopedObjects = new HashMap<>();

    @Override
    public Map<Key<?>, Object> getScopedObjectMap() {
        return scopedObjects;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        final RoboInjector injector = RoboGuice.getInjector(this);
        injector.injectMembersWithoutViews(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onContentChanged() {
        super.onContentChanged();
        RoboGuice.getInjector(this).injectViewMembers(this);
    }

    @Override
    protected void onDestroy() {
        try {
            RoboGuice.destroyInjector(this);
        } finally {
            super.onDestroy();
        }
    }
}
{'fraction_non_alphanumeric': 0.0904373610081542, 'fraction_numerical': 0.0007412898443291327, 'mean_word_length': 3.8214285714285716, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3111462', 'n_tokens_mistral': 393, 'n_tokens_neox': 389, 'n_words': 72}