<commit_before>package lib.morkim.mfw.ui;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import java.util.UUID;

import lib.morkim.mfw.app.MorkimApp;

public abstract class MorkimSupportFragment<V extends UpdateListener, C extends Controller, P extends Presenter>
        extends Fragment
        implements Viewable<V, C, P> {

    private UUID id;

    protected C controller;
    protected P presenter;

    protected int layoutId() {
        return 0;
    }

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

        id = (savedInstanceState == null) ? UUID.randomUUID() : UUID.fromString(savedInstanceState.getString(VIEWABLE_ID));

        UiComponentHelper.createUiComponents(this, getActivity());
    }<commit_msg>added overridable UUID generation for support fragment<commit_after>package lib.morkim.mfw.ui;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import java.util.UUID;

import lib.morkim.mfw.app.MorkimApp;

public abstract class MorkimSupportFragment<V extends UpdateListener, C extends Controller, P extends Presenter>
        extends Fragment
        implements Viewable<V, C, P> {

    private UUID id;

    protected C controller;
    protected P presenter;

    protected int layoutId() {
        return 0;
    }

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

        id = (savedInstanceState == null) ? generateUUID() : UUID.fromString(savedInstanceState.getString(VIEWABLE_ID));

        UiComponentHelper.createUiComponents(this, getActivity());
    }

    protected UUID generateUUID() {
        return UUID.randomUUID();
    }
{'fraction_non_alphanumeric': 0.08958837772397095, 'fraction_numerical': 0.001937046004842615, 'mean_word_length': 3.9307875894988067, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '136863', 'n_tokens_mistral': 599, 'n_tokens_neox': 574, 'n_words': 141}