<commit_before>package com.skd.androidrecordingtest;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.skd.androidrecording.ui.AudioRecordingActivity;
import com.skd.androidrecording.ui.VideoRecordingActivity;

public class MainActivity extends Activity {

	private static final int REQ_CAP_VIDEO = 123;
	private static final String TAG = MainActivity.class.getSimpleName();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		ListView list = (ListView) findViewById(android.R.id.list);
		ArrayAdapter<String> listAdapter = new ArrayAdapter<String>(getApplicationContext(),
																	android.R.layout.simple_list_item_1,
																	getResources().getStringArray(R.array.activities));
		list.setAdapter(listAdapter);
		list.setOnItemClickListener(new OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
				launchDemo(arg2);
			}
		});
	}

	private void launchDemo(int position) {
		switch (position) {
			case 0: default: {
				Intent i = new Intent(MainActivity.this, AudioRecordingActivity.class);
				startActivity(i);
				break;
			}
			case 1: {
				Intent i = new Intent(MainActivity.this, VideoRecordingActivity.class)
						.putExtra(VideoRecordingActivity.EXTRA_HIDE_VIDEOSIZE_PICKER, true)
						.putExtra(VideoRecordingActivity.EXTRA_FILE_LIMIT, 1024 * 1024 * 2)
						.putExtra(VideoRecordingActivity.EXTRA_DURATION_LIMIT, 10)
						.putExtra(VideoRecordingActivity.EXTRA_PREFERRED_WIDTH, 640)
						.putExtra(VideoRecordingActivity.EXTRA_PREFERRED_HEIGHT, 480);
				startActivityForResult(i, REQ_CAP_VIDEO);<commit_msg>change Activity params<commit_after>package com.skd.androidrecordingtest;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.skd.androidrecording.ui.AudioRecordingActivity;
import com.skd.androidrecording.ui.VideoRecordingActivity;

public class MainActivity extends Activity {

	private static final int REQ_CAP_VIDEO = 123;
	private static final String TAG = MainActivity.class.getSimpleName();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		ListView list = (ListView) findViewById(android.R.id.list);
		ArrayAdapter<String> listAdapter = new ArrayAdapter<String>(getApplicationContext(),
																	android.R.layout.simple_list_item_1,
																	getResources().getStringArray(R.array.activities));
		list.setAdapter(listAdapter);
		list.setOnItemClickListener(new OnItemClickListener() {
			@Override
			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
				launchDemo(arg2);
			}
		});
	}

	private void launchDemo(int position) {
		switch (position) {
			case 0: default: {
				Intent i = new Intent(MainActivity.this, AudioRecordingActivity.class);
				startActivity(i);
				break;
			}
			case 1: {
				Intent i = new Intent(MainActivity.this, VideoRecordingActivity.class)
						.putExtra(VideoRecordingActivity.EXTRA_HIDE_VIDEOSIZE_PICKER, false)
						.putExtra(VideoRecordingActivity.EXTRA_FILE_LIMIT, 1024 * 1024 * 2)
						.putExtra(VideoRecordingActivity.EXTRA_DURATION_LIMIT, 10)
						.putExtra(VideoRecordingActivity.EXTRA_PREFERRED_WIDTH, 720)
						.putExtra(VideoRecordingActivity.EXTRA_PREFERRED_HEIGHT, 480);
				startActivityForResult(i, REQ_CAP_VIDEO);
{'fraction_non_alphanumeric': 0.09456740442655935, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 5.034901365705615, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4226100', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1188, 'n_words': 225}