<commit_before>package com.lumbi.peach.app;

import android.content.Context;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by gabriellumbi on 15-02-01.
 */
public abstract class Controller implements ViewTreeObserver.OnGlobalLayoutListener {

    protected ViewGroup view;
    private int lastViewVisibility;

    protected final Context context;

    protected ControllerListener listener;

    private final List<Controller> childControllers = new ArrayList<Controller>();

    public Controller(final Context context) {
        this.context = context;
    }

    public final void control(final ViewGroup view) {
        this.view = view;
        FindViewsById.in(view, this);
        lastViewVisibility = view.getVisibility();
        view.getViewTreeObserver().addOnGlobalLayoutListener(this);
        onControlView();
    }

    public void show(){
        view.setVisibility(View.VISIBLE);
    }<commit_msg>Added getter for Controller's view<commit_after>package com.lumbi.peach.app;

import android.content.Context;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by gabriellumbi on 15-02-01.
 */
public abstract class Controller implements ViewTreeObserver.OnGlobalLayoutListener {

    protected ViewGroup view;
    private int lastViewVisibility;

    protected final Context context;

    protected ControllerListener listener;

    private final List<Controller> childControllers = new ArrayList<Controller>();

    public Controller(final Context context) {
        this.context = context;
    }

    public ViewGroup getView(){
        return view;
    }

    public final void control(final ViewGroup view) {
        this.view = view;
        FindViewsById.in(view, this);
        lastViewVisibility = view.getVisibility();
        view.getViewTreeObserver().addOnGlobalLayoutListener(this);
        onControlView();
    }

    public void show(){
        view.setVisibility(View.VISIBLE);
    }
{'fraction_non_alphanumeric': 0.09000432713111207, 'fraction_numerical': 0.005192557334487235, 'mean_word_length': 3.661290322580645, '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': '1556072', 'n_tokens_mistral': 635, 'n_tokens_neox': 611, 'n_words': 157}