<commit_before>package com.prolificcoder;

import java.util.List;

import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseQuery;

import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

public class CourseDetailActivity extends Activity {

	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.single_list_item_view);
		
		Intent i = getIntent();
		String name = i.getStringExtra("name");
		int upvote = i.getIntExtra("upvote", 0);
		int downvote = i.getIntExtra("downvote", 0);
		String url = i.getStringExtra("url");
		
		TextView nameText = (TextView)findViewById(R.id.CourseName);
		nameText.setText(name);
		
		TextView urlText = (TextView)findViewById(R.id.Url);
		urlText.setText((url != null) ? url : "None specified");
		
		TextView ratingText = (TextView)findViewById(R.id.Rating);
		ratingText.setText(Helpers.average(upvote, downvote).toString());
		
	}
	

}<commit_msg>details bug fix<commit_after>package com.prolificcoder;

import java.util.List;

import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseQuery;

import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

public class CourseDetailActivity extends Activity {

	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.single_list_item_view);
		
		Intent i = getIntent();
		String name = i.getStringExtra("name");
		int upvote = i.getIntExtra("upvote", 0);
		int downvote = i.getIntExtra("downvote", 0);
		String url = i.getStringExtra("url");
		
		TextView nameText = (TextView)findViewById(R.id.CourseName);
		nameText.setText(name);
		
		TextView urlText = (TextView)findViewById(R.id.Url);
		urlText.setText((url != null) ? url : "None specified");
		
		TextView ratingText = (TextView)findViewById(R.id.Rating);
		ratingText.setText(Helpers.average(upvote, downvote).toString());
		
	}
}
{'fraction_non_alphanumeric': 0.12200252419015566, 'fraction_numerical': 0.0016827934371055953, 'mean_word_length': 5.497267759562842, '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': '6533105', 'n_tokens_mistral': 780, 'n_tokens_neox': 702, 'n_words': 148}