<commit_before>package com.fidesmo.tutorials.counterapp;

import android.content.Intent;
import android.nfc.Tag;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.graphics.Color;

import com.fidesmo.tutorials.counterapp.R;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import org.androidannotations.annotations.UiThread;

import java.io.IOException;

import nordpol.IsoCard;
import nordpol.android.AndroidCard;
import nordpol.android.TagDispatcher;
import nordpol.android.OnDiscoveredTagListener;
import nordpol.Apdu;

/**
 * Unique Activity in the Counter App
 * Implements two operations, triggered by two buttons:
 * - read counter
 * - decrement counter
 * The result is shown in a large number (TextView counterValue) and a second TextView (mainText)
 * is used to log the NFC actions.
 */
@EActivity(R.layout.activity_main)
public class MainActivity extends AppCompatActivity implements OnDiscoveredTagListener {

    // APPLICATION_ID is the value assigned to your application by Fidesmo
    final private static String APPLICATION_ID = "C89D215B";
    final private static String APP_VERSION = "0201";

    // Card commands<commit_msg>Use Entry's AppID for the applet AID<commit_after>package com.fidesmo.tutorials.counterapp;

import android.content.Intent;
import android.nfc.Tag;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.graphics.Color;

import com.fidesmo.tutorials.counterapp.R;

import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;
import org.androidannotations.annotations.UiThread;

import java.io.IOException;

import nordpol.IsoCard;
import nordpol.android.AndroidCard;
import nordpol.android.TagDispatcher;
import nordpol.android.OnDiscoveredTagListener;
import nordpol.Apdu;

/**
 * Unique Activity in the Counter App
 * Implements two operations, triggered by two buttons:
 * - read counter
 * - decrement counter
 * The result is shown in a large number (TextView counterValue) and a second TextView (mainText)
 * is used to log the NFC actions.
 */
@EActivity(R.layout.activity_main)
public class MainActivity extends AppCompatActivity implements OnDiscoveredTagListener {

    // APPLICATION_ID is the value assigned to your application by Fidesmo
    final private static String APPLICATION_ID = "42286D75";
    final private static String APP_VERSION = "0101";

    // Card commands
{'fraction_non_alphanumeric': 0.07802948579647609, 'fraction_numerical': 0.007910823444804028, 'mean_word_length': 5.395402298850574, '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': '6439588', 'n_tokens_mistral': 790, 'n_tokens_neox': 766, 'n_words': 227}