<commit_before>package com.harlap.snowshoe.example.app;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.harlap.snowshoe.AbstractStampVerifyingActivity;
import com.harlap.snowshoe.SnowShoeResponse;


public class MainActivity extends AbstractStampVerifyingActivity {

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

        Button toggleSensingButton = (Button) findViewById(R.id.toggle_sensing_button);
        final MainActivity self = this;
        toggleSensingButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                boolean newSetting = ! self.getSensingEnabled();
                self.setSensingEnabled(newSetting);
                Toast.makeText(self, "Sensing is: " + (newSetting ? "enabled" : "disabled"), Toast.LENGTH_SHORT).show();
            }
        });

//        setSnowShoeKeys("MY APP KEY", "MY APP SECRET");
        setSnowShoeKeys("<KEY>", "4ff5c2c01d6834c5968e74e4826e30ac2b020487");
    }

    @Override
    protected void onStampVerified(SnowShoeResponse response) {
        String message;
        if (response.getError() != null) {
            message = "Error: " + response.getError().getMessage();
        } else {
            message = "You stamped: " + response.getStamp().getSerial();
        }
        Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    }
}<commit_msg>Clarifying the example app keys<commit_after>package com.harlap.snowshoe.example.app;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.harlap.snowshoe.AbstractStampVerifyingActivity;
import com.harlap.snowshoe.SnowShoeResponse;


public class MainActivity extends AbstractStampVerifyingActivity {

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

        Button toggleSensingButton = (Button) findViewById(R.id.toggle_sensing_button);
        final MainActivity self = this;
        toggleSensingButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                boolean newSetting = ! self.getSensingEnabled();
                self.setSensingEnabled(newSetting);
                Toast.makeText(self, "Sensing is: " + (newSetting ? "enabled" : "disabled"), Toast.LENGTH_SHORT).show();
            }
        });

        // setSnowShoeKeys("MY APP KEY", "MY APP SECRET");
        // These are keys for a toy app that only has dev stamps registered - misuse will lead to the keys changing.
        setSnowShoeKeys("<KEY>", "4ff5c2c01d6834c5968e74e4826e30ac2b020487");
    }

    @Override
    protected void onStampVerified(SnowShoeResponse response) {
        String message;
        if (response.getError() != null) {
            message = "Error: " + response.getError().getMessage();
        } else {
            message = "You stamped: " + response.getStamp().getSerial();
        }
        Toast.makeText(this, message, Toast.LENGTH_LONG).show();
    }
}
{'fraction_non_alphanumeric': 0.1049757281553398, 'fraction_numerical': 0.01699029126213592, 'mean_word_length': 2.9915254237288136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1569334', 'n_tokens_mistral': 1004, 'n_tokens_neox': 929, 'n_words': 186}