<commit_before>package com.kushkipagos.android;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    public static final String MESSAGE = "Eum ipsum eum minima non quasi quos ut aut. Praesentium sint nisi illo et est id reprehenderit. Harum ducimus aperiam ut quod numquam. Ut ipsam nulla ratione.";

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

    private void printEncryptedMessage() {
        TextView textField = (TextView) findViewById(R.id.txtEncryptedMessage);
        try {
            AurusEncryption aurusEncryption = new AurusEncryption();
            textField.setText(aurusEncryption.encryptMessageChunk(MESSAGE));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}<commit_msg>@jreyes33 [KFE-203] Connect to Aurus<commit_after>package com.kushkipagos.android;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class MainActivity extends AppCompatActivity {

    public static final String MESSAGE = "Eum ipsum eum minima non quasi quos ut aut. Praesentium sint nisi illo et est id reprehenderit. Harum ducimus aperiam ut quod numquam. Ut ipsam nulla ratione.";

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

    private void printAurusResponse() {
        try {
            URL url = new URL("https://ping.aurusinc.com/kushki/api/v1/tokens");
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("POST");
            connection.setRequestProperty("Content-Type", "application/json; charset=UTF-8");
            connection.setReadTimeout(10000);
            connection.setConnectTimeout(15000);

            connection.setDoOutput(true);
            DataOutputStream dataOutputStream = new DataOutputStream(connection.getOutputStream());
            dataOutputStream.writeBytes("{\"test\": 1}");
            dataOutputStream.flush();
            dataOutputStream.close();

            connection.connect();

            String line;
            StringBuilder stringBuilder = new StringBuilder();
            BufferedReader reader = new BufferedReader(
                    new InputStreamReader(connection.getInputStream(), "UTF-8"));
            while ((line = reader.readLine()) != null) {
                stringBuilder.append(line);
            }

            int responseCode = connection.getResponseCode();
            String response = stringBuilder.toString();
            TextView textField = (TextView) findViewById(R.id.txtEncryptedMessage);
            textField.setText(responseCode + " " + response);

        } catch (java.io.IOException e) {
            e.printStackTrace();
        }
    }

    private void printEncryptedMessage() {
        TextView textField = (TextView) findViewById(R.id.txtEncryptedMessage);
        try {
            AurusEncryption aurusEncryption = new AurusEncryption();
            textField.setText(aurusEncryption.encryptMessageChunk(MESSAGE));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
{'fraction_non_alphanumeric': 0.09213421342134213, 'fraction_numerical': 0.005775577557755775, 'mean_word_length': 2.889839572192513, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6741416', 'n_tokens_mistral': 975, 'n_tokens_neox': 925, 'n_words': 216}