<commit_before>package com.sherncsuk.mymusicmanager;

import android.app.Activity;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;

public class MainActivity extends Activity {

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


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    /**
     * A method that lists the files currently on a server
     * @param v
     */

    public void list(View v){

    }

    /**
     * Calculates the diff from files on the server to the Android directory
     * @param v
     */

    public void diff(View v){

    }

    /**
     * Pulls diff'd files from the server and saves them to the Android directory
     * @param v
     */

    public void pull(View v){

    }

    /**
     * Pulls most popular songs from the server up to a certain file cap
     * @param v
     */

    public void cap(View v){

    }

    /**
     * Leaves the session
     * @param v
     */

    public void leave(View v){

    }
}
<commit_msg>Added Network Setup Code<commit_after>package com.sherncsuk.mymusicmanager;

import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class MainActivity extends Activity {

    //Network Connection Stuffz
    private Socket sock;
    private OutputStream out;
    private DataInputStream inputStream;
    private ByteArrayOutputStream byteStream;

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

        try {
            out = sock.getOutputStream();
            inputStream = new DataInputStream(sock.getInputStream());
            byteStream = new ByteArrayOutputStream();
        } catch (IOException e){
            e.printStackTrace();
        }
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

    /**
     * A method that lists the files currently on a server
     * @param v
     */

    public void list(View v){

    }

    /**
     * Calculates the diff from files on the server to the Android directory
     * @param v
     */

    public void diff(View v){

    }

    /**
     * Pulls diff'd files from the server and saves them to the Android directory
     * @param v
     */

    public void pull(View v){

    }

    /**
     * Pulls most popular songs from the server up to a certain file cap
     * @param v
     */

    public void cap(View v){

    }

    /**
     * Leaves the session
     * @param v
     */

    public void leave(View v){

    }

    /**
     * A private inner class to help set up the connection to the server on a different thread
     */

    private class NetworkConnection extends AsyncTask<String, String, String> {
        private MainActivity activity;

        public NetworkConnection(MainActivity activity){
            this.activity = activity;
        }

        @Override
        protected String doInBackground(String[] strings) {
            try {
                sock = new Socket("172.16.58.3", 2222);
            } catch (UnknownHostException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return null;
        }
    }
}

{'fraction_non_alphanumeric': 0.08592057761732852, 'fraction_numerical': 0.003128760529482551, 'mean_word_length': 2.209266409266409, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7592150', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1093, 'n_words': 359}