<commit_before>package de.melvil.stacksrs.view;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Environment;
import android.support.v4.os.EnvironmentCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;

import java.io.File;
import java.io.IOException;

import de.melvil.stacksrs.adapter.DeckInfoAdapter;
import de.melvil.stacksrs.model.Card;
import de.melvil.stacksrs.model.Deck;
import de.melvil.stacksrs.model.DeckCollection;

public class DeckListActivity extends AppCompatActivity {

    private ListView deckListView;
    private DeckInfoAdapter deckListAdapter;
    private DeckCollection deckCollection = new DeckCollection();

    private Button newButton;
    private Button downloadButton;

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

        deckListView = (ListView) findViewById(R.id.deck_list);
        deckListAdapter = new DeckInfoAdapter(this, deckCollection.getDeckInfos());
        deckListView.setAdapter(deckListAdapter);

        // normal click: open deck
        deckListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {<commit_msg>displaying app logo in deck list activity<commit_after>package de.melvil.stacksrs.view;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Environment;
import android.support.v4.os.EnvironmentCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Toast;

import java.io.File;
import java.io.IOException;

import de.melvil.stacksrs.adapter.DeckInfoAdapter;
import de.melvil.stacksrs.model.Card;
import de.melvil.stacksrs.model.Deck;
import de.melvil.stacksrs.model.DeckCollection;

public class DeckListActivity extends AppCompatActivity {

    private ListView deckListView;
    private DeckInfoAdapter deckListAdapter;
    private DeckCollection deckCollection = new DeckCollection();

    private Button newButton;
    private Button downloadButton;

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

        ActionBar actionBar = getSupportActionBar();
        actionBar.setLogo(R.mipmap.ic_launcher);
        actionBar.setDisplayUseLogoEnabled(true);
        actionBar.setDisplayShowHomeEnabled(true);

        deckListView = (ListView) findViewById(R.id.deck_list);
        deckListAdapter = new DeckInfoAdapter(this, deckCollection.getDeckInfos());
        deckListView.setAdapter(deckListAdapter);

        // normal click: open deck
        deckListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
{'fraction_non_alphanumeric': 0.08592634884384813, 'fraction_numerical': 0.0014273479874393378, 'mean_word_length': 5.020618556701031, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2368887', 'n_tokens_mistral': 1001, 'n_tokens_neox': 970, 'n_words': 196}