<commit_before>package com.cameronpalmer.echo;

import java.net.URI;
import java.net.URISyntaxException;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver;
import de.tavendo.autobahn.WebSocketConnection;
import de.tavendo.autobahn.WebSocketException;




public class EchoActivity extends Activity implements WebSocketConnectionObserver {
	private static final String TAG = EchoActivity.class.getName();
	
	private static final String WS_ECHO_SERVER = "ws://echo.websocket.org";
	private static final String WSS_ECHO_SERVER = "wss://cameronpalmer.com";

	private EditText mMessageEditText;
	private ScrollView mResponseScrollView;
	private LinearLayout mResponseLinearLayout;
	private Button mConnectButton;
	private Button mSendButton;
	private Button mRepeatButton;

	private Handler mHandler;

	private WebSocketConnection mConnection;
	private URI mServerURI;

	private int mMessageIndex = 1;
	private volatile boolean mIsConnected = false;
	private volatile boolean mIsRepeating = false;
	private volatile boolean mTLSEnabled = false;


	@Override
	public void onCreate(Bundle savedInstanceState) {<commit_msg>Corrected the secure Echo server location.<commit_after>package com.cameronpalmer.echo;

import java.net.URI;
import java.net.URISyntaxException;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver;
import de.tavendo.autobahn.WebSocketConnection;
import de.tavendo.autobahn.WebSocketException;




public class EchoActivity extends Activity implements WebSocketConnectionObserver {
	private static final String TAG = EchoActivity.class.getName();
	
	private static final String WS_ECHO_SERVER = "ws://echo.websocket.org";
	private static final String WSS_ECHO_SERVER = "wss://echo.websocket.org";

	private EditText mMessageEditText;
	private ScrollView mResponseScrollView;
	private LinearLayout mResponseLinearLayout;
	private Button mConnectButton;
	private Button mSendButton;
	private Button mRepeatButton;

	private Handler mHandler;

	private WebSocketConnection mConnection;
	private URI mServerURI;

	private int mMessageIndex = 1;
	private volatile boolean mIsConnected = false;
	private volatile boolean mIsRepeating = false;
	private volatile boolean mTLSEnabled = false;


	@Override
	public void onCreate(Bundle savedInstanceState) {
{'fraction_non_alphanumeric': 0.07238095238095238, 'fraction_numerical': 0.0006349206349206349, 'mean_word_length': 6.36214953271028, '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': '7140662', 'n_tokens_mistral': 925, 'n_tokens_neox': 860, 'n_words': 237}