<commit_before>package ca.ualberta.cs.cmput301t02project;

import java.util.ArrayList;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TopLevelListActivity extends Activity {

    public ListView topLevelCommentListView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_top_level_list);
	topLevelCommentListView = (ListView) findViewById(R.id.commentListView);

    }

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

    public void onStart() {
	super.onStart();
	CommentListModel commentListModel = ProjectApplication
		.getCommentList();
	ArrayList<CommentModelAbstraction> topLevelCommentList = commentListModel.getCommentList();
	//Add comments to adapter
	ArrayAdapter<CommentModelAbstraction> adapter = new ArrayAdapter<CommentModelAbstraction>(this,
		R.layout.list_item, topLevelCommentList);
	//Display comments in adapter
	topLevelCommentListView.setAdapter(adapter);
    }
    

}<commit_msg>Changed TopLevelListActivity<commit_after>package ca.ualberta.cs.cmput301t02project;

import java.util.ArrayList;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class TopLevelListActivity extends Activity {

    public ListView topLevelCommentListView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_top_level_list);
	topLevelCommentListView = (ListView) findViewById(R.id.commentListView);

    }

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

    public void onStart() {
	super.onStart();
	CommentListModel commentListModel = ProjectApplication
		.getCommentList();
	ArrayList<CommentModelAbstraction> topLevelCommentList = commentListModel.getCommentList();
	//Add comments to adapter
	ArrayAdapter<CommentModelAbstraction> adapter = new ArrayAdapter<CommentModelAbstraction>(this,
		R.layout.list_item, topLevelCommentList);
	//Display comments in adapter
	topLevelCommentListView.setAdapter(adapter);
    }

}
{'fraction_non_alphanumeric': 0.08462732919254658, 'fraction_numerical': 0.0038819875776397515, 'mean_word_length': 5.624678663239075, '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': '6892822', 'n_tokens_mistral': 763, 'n_tokens_neox': 713, 'n_words': 163}