<commit_before>package com.jahirfiquitiva.paperboard.fragments;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jahirfiquitiva.paperboard.adapters.IconsAdapter;

import java.util.Timer;
import java.util.TimerTask;

import jahirfiquitiva.paperboard.sample.R;

public class IconsFragment extends Fragment implements SearchView.OnQueryTextListener, SearchView.OnCloseListener {

    private IconsAdapter mAdapter;
    private Timer mTimer;
    private Handler mHandler;

    private final static long SEARCH_DELAY_MS = 150;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        RecyclerView grid = (RecyclerView) inflater.inflate(R.layout.icons_grid, container, false);
        mAdapter = new IconsAdapter(getActivity(), getArguments().getInt("iconsArrayId", 0));
        grid.setLayoutManager(new GridLayoutManager(getActivity(),
                getResources().getInteger(R.integer.icon_grid_width)));
        grid.setAdapter(mAdapter);
        return grid;
    }

    public static IconsFragment newInstance(int iconsArray) {
        IconsFragment fragment = new IconsFragment();
        Bundle args = new Bundle();
        args.putInt("iconsArrayId", iconsArray);
        fragment.setArguments(args);
        return fragment;
    }

    @Override<commit_msg>Forgot a cast in the previous commit<commit_after>package com.jahirfiquitiva.paperboard.fragments;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jahirfiquitiva.paperboard.adapters.IconsAdapter;

import java.util.Timer;
import java.util.TimerTask;

import jahirfiquitiva.paperboard.sample.R;

public class IconsFragment extends Fragment implements SearchView.OnQueryTextListener, SearchView.OnCloseListener {

    private IconsAdapter mAdapter;
    private Timer mTimer;
    private Handler mHandler;

    private final static long SEARCH_DELAY_MS = 150;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        RecyclerView grid = (RecyclerView) inflater.inflate(R.layout.icons_grid, container, false);
        mAdapter = new IconsAdapter((AppCompatActivity) getActivity(), getArguments().getInt("iconsArrayId", 0));
        grid.setLayoutManager(new GridLayoutManager(getActivity(),
                getResources().getInteger(R.integer.icon_grid_width)));
        grid.setAdapter(mAdapter);
        return grid;
    }

    public static IconsFragment newInstance(int iconsArray) {
        IconsFragment fragment = new IconsFragment();
        Bundle args = new Bundle();
        args.putInt("iconsArrayId", iconsArray);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
{'fraction_non_alphanumeric': 0.08881578947368421, 'fraction_numerical': 0.005083732057416268, 'mean_word_length': 4.377813504823151, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7593671', 'n_tokens_mistral': 980, 'n_tokens_neox': 916, 'n_words': 200}