<commit_before>package com.litmantech.readrecorder;

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

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}<commit_msg>audio capturer and playback working!! when you boot the app it will play your mic audio in the speakers of the phone. and when you close the app it stops and open back up it starts<commit_after>package com.litmantech.readrecorder;

import android.Manifest;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.litmantech.readrecorder.audio.Playback;
import com.litmantech.readrecorder.audio.Recorder;

import java.util.concurrent.LinkedBlockingQueue;

public class MainActivity extends AppCompatActivity {

    private Recorder recorder;
    private Playback playback;

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

        if (ContextCompat.checkSelfPermission(this,
                Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {

            ActivityCompat.requestPermissions(this,
                    new String[]{Manifest.permission.RECORD_AUDIO},
                    55);

        }


    }

    @Override
    protected void onStart(){
        super.onStart();
        RunTest();
    }

    private void RunTest() {
        if(playback == null)
            playback = new Playback();
        if(recorder == null)
            recorder = new Recorder();

        LinkedBlockingQueue audioListener  = playback.Play();
        recorder.setAudioListener(audioListener);

        recorder.Start();
    }

    @Override
    protected void onPause() {
        super.onPause();
        recorder.Stop();
        playback.Stop();

    }
}
{'fraction_non_alphanumeric': 0.08609271523178808, 'fraction_numerical': 0.002838221381267739, 'mean_word_length': 3.1067961165048543, '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': '423645', 'n_tokens_mistral': 585, 'n_tokens_neox': 559, 'n_words': 130}