<commit_before>package com.wootric.androidsdk_demo;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import com.wootric.androidsdk.Wootric;
import com.wootric.androidsdk.objects.CustomMessage;
import com.wootric.androidsdk.objects.CustomThankYou;

import java.util.HashMap;

public class MainActivity extends Activity {

    private static final String CLIENT_ID = "CLIENT ID";
    private static final String CLIENT_SECRET = "CLIENT SECRET";
    private static final String ACCOUNT_TOKEN = "ACCOUNT TOKEN";


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

        Wootric wootric = Wootric.init(this, CLIENT_ID, CLIENT_SECRET, ACCOUNT_TOKEN);
        wootric.setEndUserEmail("<EMAIL>");
        wootric.setOriginUrl("http://www.wootric.com");
        wootric.setSurveyImmediately(true);

        HashMap<String, String> properties = new HashMap<String, String>();
        properties.put("company", "Wootric");
        properties.put("type", "free");
        wootric.setProperties(properties);

        wootric.setDailyResponseCap(10);
        wootric.setProductName("Wootric");
        wootric.setRecommendTarget("Best Friend");
        wootric.setLanguageCode("PL");
        wootric.setFacebookPageId("123456");
        wootric.setTwitterPage("wootric");

        CustomMessage customMessage = new CustomMessage();
        customMessage.setFollowupQuestion("custom followup");
        customMessage.setDetractorFollowupQuestion("custom detractor");
        customMessage.setPassiveFollowupQuestion("custom passive");
        customMessage.setPromoterFollowupQuestion("custom promoter");
        customMessage.setPlaceholderText("custom placeholder");
        customMessage.setDetractorPlaceholderText("custom detractor placeholder");
        customMessage.setPassivePlaceholderText("custom passive placeholder");
        customMessage.setPromoterPlaceholderText("custom promoter placeholder");

        wootric.setCustomMessage(customMessage);

        CustomThankYou customThankYou = new CustomThankYou();
        customThankYou.setText("THANK YOU!");
        customThankYou.setDetractorText("Detractor thank you");
        customThankYou.setPassiveText("Passive thank you");<commit_msg>Update names in main activity<commit_after>package com.wootric.androidsdk_demo;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import com.wootric.androidsdk.Wootric;
import com.wootric.androidsdk.objects.WootricCustomMessage;
import com.wootric.androidsdk.objects.WootricCustomThankYou;

import java.util.HashMap;

public class MainActivity extends Activity {

    private static final String CLIENT_ID = "CLIENT ID";
    private static final String CLIENT_SECRET = "CLIENT SECRET";
    private static final String ACCOUNT_TOKEN = "ACCOUNT TOKEN";


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

        Wootric wootric = Wootric.init(this, CLIENT_ID, CLIENT_SECRET, ACCOUNT_TOKEN);
        wootric.setEndUserEmail("<EMAIL>");
        wootric.setOriginUrl("http://www.wootric.com");
        wootric.setSurveyImmediately(true);

        HashMap<String, String> properties = new HashMap<String, String>();
        properties.put("company", "Wootric");
        properties.put("type", "free");
        wootric.setProperties(properties);

        wootric.setDailyResponseCap(10);
        wootric.setProductName("Wootric");
        wootric.setRecommendTarget("Best Friend");
        wootric.setLanguageCode("PL");
        wootric.setFacebookPageId("123456");
        wootric.setTwitterPage("wootric");

        WootricCustomMessage customMessage = new WootricCustomMessage();
        customMessage.setFollowupQuestion("custom followup");
        customMessage.setDetractorFollowupQuestion("custom detractor");
        customMessage.setPassiveFollowupQuestion("custom passive");
        customMessage.setPromoterFollowupQuestion("custom promoter");
        customMessage.setPlaceholderText("custom placeholder");
        customMessage.setDetractorPlaceholderText("custom detractor placeholder");
        customMessage.setPassivePlaceholderText("custom passive placeholder");
        customMessage.setPromoterPlaceholderText("custom promoter placeholder");

        wootric.setCustomMessage(customMessage);

        WootricCustomThankYou customThankYou = new WootricCustomThankYou();
        customThankYou.setText("Thank you!!");
        customThankYou.setDetractorText("Detractor thank you");
        customThankYou.setPassiveText("Passive thank you");
{'fraction_non_alphanumeric': 0.09918563374399667, 'fraction_numerical': 0.003340989768218835, 'mean_word_length': 4.292817679558011, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4229270', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1302, 'n_words': 231}