<commit_before>package com.sharethis.loopy.demo;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.sharethis.loopy.sdk.Item;
import com.sharethis.loopy.sdk.Loopy;
import com.sharethis.loopy.sdk.ShareDialogListener;

/**
 * Demonstration activity for creating trackable share dialogs and menus.
 */
public class DemoActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // Call onCreate and pass in your API key and secret
        Loopy.onCreate(this, "<KEY>", "sharethis_test_android_app");

        // The following code is just for this demo app
        ArrayAdapter<String> optionsAdapter = new ArrayAdapter<String>(this, R.layout.row, new String[]{
                "Share Dialog",
                "Share Options Menu"
        });
        ListView list = (ListView) findViewById(R.id.main);
        list.setAdapter(optionsAdapter);
        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                switch (position) {
                    case 0:

                        // Show a share dialog for a single URL
                        // More detailed data can be provided by sharing an "Item"
                        showShareDialog("http://www.sharethis.com");
                        break;
                    case 1:
                        startActivity(new Intent(DemoActivity.this, ShareActionProviderActivity.class));
                        break;
                }
            }
        });
    }

    @Override<commit_msg>Updated keys in demo app<commit_after>package com.sharethis.loopy.demo;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.sharethis.loopy.sdk.Item;
import com.sharethis.loopy.sdk.Loopy;
import com.sharethis.loopy.sdk.ShareDialogListener;

/**
 * Demonstration activity for creating trackable share dialogs and menus.
 */
public class DemoActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // Call onCreate and pass in your API key and secret
        Loopy.onCreate(this, "<KEY>", "sharethis_loopy_demo");

        // The following code is just for this demo app
        ArrayAdapter<String> optionsAdapter = new ArrayAdapter<String>(this, R.layout.row, new String[]{
                "Share Dialog",
                "Share Options Menu"
        });
        ListView list = (ListView) findViewById(R.id.main);
        list.setAdapter(optionsAdapter);
        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                switch (position) {
                    case 0:

                        // Show a share dialog for a single URL
                        // More detailed data can be provided by sharing an "Item"
                        showShareDialog("http://www.sharethis.com");
                        break;
                    case 1:
                        startActivity(new Intent(DemoActivity.this, ShareActionProviderActivity.class));
                        break;
                }
            }
        });
    }

    @Override
{'fraction_non_alphanumeric': 0.08856642481861396, 'fraction_numerical': 0.0010007505629221916, 'mean_word_length': 2.258353708231459, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7584045', 'n_tokens_mistral': 1030, 'n_tokens_neox': 973, 'n_words': 267}