<commit_before>package depauw.edu.myro.android.hierarchy;

import java.util.ArrayList;

import depauw.edu.myro.android.sandbox.Movement_Accelerometer;
import depauw.edu.myro.android.sandbox.Movement_Controller;
import depauw.edu.myro.android.sandbox.Movement_Explorer;
import depauw.edu.myro.android.sandbox.Movement_Simple_Controller;
import depauw.edu.myro.android.sandbox.R;
import depauw.edu.myro.android.sandbox.Sandbox;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

/**
 * This class acts as a middle-man navigation tool. If the user wants to use the movement of a 
 * Scribbler, then they should have multiple options available.
 * 
 * @author <NAME> (DePauw University, Class of 2016), <EMAIL>
 * @version Summer 2014
 *
 */
public class MovementActivity extends Activity {
	
	private String[] movementList = {"Accelerometer -->", "Controller -->", "Explorer -->", "Simple Controller -->", "Java Docs -->"};
	private Sandbox appState;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.movement_activity_main);
		
		appState = (Sandbox) getApplicationContext();
	    appState.getScribbler();
		
		/*
		 * list instantiate
		 */
		ListView graphiclist = (ListView) findViewById (R.id.movementList);
		ArrayList<String> list = new ArrayList<String>();
	    
		for (int i = 0; i < movementList.length; ++i)
		{
			list.add(movementList[i]);
	    }
		
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, list);
    
		graphiclist.setAdapter(adapter);
		
		graphiclist.setOnItemClickListener(new OnItemClickListener()
		{
			@Override
			public void onItemClick(AdapterView<?> parent, View view, int position, long id) 
			{
				// Accelerometer
				if(position == 0)
				{
					Intent accelerometerIntent = new Intent(MovementActivity.this, Movement_Accelerometer.class);
					startActivity(accelerometerIntent);
				}
				// Controller
				else if(position == 1)
				{
					Intent controllerIntent = new Intent(MovementActivity.this, Movement_Controller.class);
					startActivity(controllerIntent);
				}
				// Explorer
				else if(position == 2)
				{
					Intent explorerIntent = new Intent(MovementActivity.this, Movement_Explorer.class);
					startActivity(explorerIntent);
				}
				// Simple Controller
				else if(position == 3)
				{
					Intent simpleControllerIntent = new Intent(MovementActivity.this, Movement_Simple_Controller.class);
					startActivity(simpleControllerIntent);
				}
				// Java Docs
				else if(position == 4)
				{
				}
			}
		});
		/*
		 * end of list instantiate
		 */
	}
	<commit_msg>took out java doc option<commit_after>package depauw.edu.myro.android.hierarchy;

import java.util.ArrayList;

import depauw.edu.myro.android.sandbox.Movement_Accelerometer;
import depauw.edu.myro.android.sandbox.Movement_Controller;
import depauw.edu.myro.android.sandbox.Movement_Explorer;
import depauw.edu.myro.android.sandbox.Movement_Simple_Controller;
import depauw.edu.myro.android.sandbox.R;
import depauw.edu.myro.android.sandbox.Sandbox;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

/**
 * This class acts as a middle-man navigation tool. If the user wants to use the movement of a 
 * Scribbler, then they should have multiple options available.
 * 
 * @author <NAME> (DePauw University, Class of 2016), <EMAIL>
 * @version Summer 2014
 *
 */
public class MovementActivity extends Activity {
	
	private String[] movementList = {"Accelerometer -->", "Controller -->", "Explorer -->", "Simple Controller -->"};
	private Sandbox appState;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.movement_activity_main);
		
		appState = (Sandbox) getApplicationContext();
	    appState.getScribbler();
		
		/*
		 * list instantiate
		 */
		ListView graphiclist = (ListView) findViewById (R.id.movementList);
		ArrayList<String> list = new ArrayList<String>();
	    
		for (int i = 0; i < movementList.length; ++i)
		{
			list.add(movementList[i]);
	    }
		
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, list);
    
		graphiclist.setAdapter(adapter);
		
		graphiclist.setOnItemClickListener(new OnItemClickListener()
		{
			@Override
			public void onItemClick(AdapterView<?> parent, View view, int position, long id) 
			{
				// Accelerometer
				if(position == 0)
				{
					Intent accelerometerIntent = new Intent(MovementActivity.this, Movement_Accelerometer.class);
					startActivity(accelerometerIntent);
				}
				// Controller
				else if(position == 1)
				{
					Intent controllerIntent = new Intent(MovementActivity.this, Movement_Controller.class);
					startActivity(controllerIntent);
				}
				// Explorer
				else if(position == 2)
				{
					Intent explorerIntent = new Intent(MovementActivity.this, Movement_Explorer.class);
					startActivity(explorerIntent);
				}
				// Simple Controller
				else if(position == 3)
				{
					Intent simpleControllerIntent = new Intent(MovementActivity.this, Movement_Simple_Controller.class);
					startActivity(simpleControllerIntent);
				}
			}
		});
		/*
		 * end of list instantiate
		 */
	}
	
{'fraction_non_alphanumeric': 0.10865122615803814, 'fraction_numerical': 0.004938692098092643, 'mean_word_length': 4.084848484848485, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 26, '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': '6270043', 'n_tokens_mistral': 2074, 'n_tokens_neox': 1720, 'n_words': 381}