<commit_before>package br.com.cwi.moses.activities;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import br.com.cwi.moses.R;
import br.com.cwi.moses.adapters.TicketAdapter;
import br.com.cwi.moses.models.Ticket;
import br.com.cwi.moses.models.TipoTicket;
import br.com.cwi.moses.services.TicketService;

public class TicketListActivity extends BaseActivity implements View.OnClickListener {

    private RecyclerView ticket_list;
    private RecyclerView.LayoutManager layoutManager;
    private TicketAdapter adapter;

    private TicketService ticketService;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ticket_list);

        setTitle("Tickets");

        this.initComponents();
        this.initList();
    }

    public void novoTicketSugestao(View view) {
        this.goToNewTicket(TipoTicket.SUGESTAO);
    }

    public void novoTicketDuvida(View view) {
        this.goToNewTicket(TipoTicket.DUVIDA);<commit_msg>fix(TicketList): corrigir load da lista de tickets.<commit_after>package br.com.cwi.moses.activities;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import br.com.cwi.moses.R;
import br.com.cwi.moses.adapters.TicketAdapter;
import br.com.cwi.moses.models.Ticket;
import br.com.cwi.moses.models.TipoTicket;
import br.com.cwi.moses.services.TicketService;

public class TicketListActivity extends BaseActivity implements View.OnClickListener {

    private RecyclerView ticket_list;
    private RecyclerView.LayoutManager layoutManager;
    private TicketAdapter adapter;

    private TicketService ticketService;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ticket_list);

        setTitle("Tickets");

        this.initComponents();
        this.initList();
    }

    @Override
    protected void onResume() {
        super.onResume();
        this.initList();
    }

    public void novoTicketSugestao(View view) {
        this.goToNewTicket(TipoTicket.SUGESTAO);
    }

    public void novoTicketDuvida(View view) {
        this.goToNewTicket(TipoTicket.DUVIDA);
{'fraction_non_alphanumeric': 0.09312210200927357, 'fraction_numerical': 0.00231839258114374, 'mean_word_length': 4.086444007858546, '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': '5273286', 'n_tokens_mistral': 830, 'n_tokens_neox': 791, 'n_words': 137}