<commit_before>package com.wordwise;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ConfigurationWizardStep2 extends Activity {
	ListView listView;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.configuration_step2);
		listView = (ListView) findViewById(R.id.list);
		
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_single_choice, LANGUAGES);
		listView.setAdapter(adapter);
		// setListAdapter();
		// final ListView listView = getListView();
		listView.setItemsCanFocus(false);
		listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
		
	

	}

	private static final String[] LANGUAGES = new String[] { "English",
			"German", "Portugese", "Turkish", "Bulgarian", "Macedonian",
			"Spanish" };
	
    //Calls to this function is configured in the layout res file
	public void back(View view) {
		Intent intent = new Intent(this, ConfigurationWizardStep1.class);
		startActivity(intent);
	}
	//Calls to this function is configured in the layout res file
	public void finishStep(View view) {
	}

}<commit_msg>setting learning language in step2<commit_after>package com.wordwise;

import com.wordwise.model.Configuration;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.CheckedTextView;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;

public class ConfigurationWizardStep2 extends Activity {
	ListView listView;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.configuration_step2);
		listView = (ListView) findViewById(R.id.list);

		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_single_choice, LANGUAGES);
		listView.setAdapter(adapter);
		// setListAdapter();
		// final ListView listView = getListView();
		listView.setItemsCanFocus(false);
		listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);

		listView.setOnItemClickListener(new OnItemClickListener() {

			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
					long arg3) {
				// TODO Auto-generated method stub
				CheckedTextView tv = (CheckedTextView) arg1;
				String language = tv.getText().toString();
				Configuration.setLearningLanguage(language);
			}

		});
	}

	private static final String[] LANGUAGES = new String[] { "English",
			"German", "Portugese", "Turkish", "Bulgarian", "Macedonian",
			"Spanish" };

	// Calls to this function is configured in the layout res file
	public void back(View view) {
		Intent intent = new Intent(this, ConfigurationWizardStep1.class);
		startActivity(intent);
	}

	// Calls to this function is configured in the layout res file
	public void finishStep(View view) {
	}

}
{'fraction_non_alphanumeric': 0.09940791523839203, 'fraction_numerical': 0.00373948270489249, 'mean_word_length': 4.332225913621262, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3009631', 'n_tokens_mistral': 1033, 'n_tokens_neox': 908, 'n_words': 226}