<commit_before>/**
 * Hubroid - A GitHub app for Android
 * 
 * Copyright (c) 2010 <NAME>.
 * 
 * Licensed under the New BSD License.
 */

package org.idlesoft.android.hubroid;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

public class Search extends Activity {
	private RepositoriesListAdapter m_repositories_adapter;
	private SearchUsersListAdapter m_users_adapter;
	public ProgressDialog m_progressDialog;
	private SharedPreferences m_prefs;
	private SharedPreferences.Editor m_editor;
	public String m_username;
	public String m_type;
	public JSONArray m_repositoriesData;
	public JSONArray m_usersData;
	public Intent m_intent;
	public int m_position;

	public void initializeList() {
		try {
			if (m_type == "repositories") {
				URL query = new URL(
						"http://github.com/api/v2/json/repos/search/"
								+ URLEncoder
										.encode(((EditText) findViewById(R.id.et_search_search_box))<commit_msg>More UI Changes, for some reason Search does not display a description.<commit_after>/**
 * Hubroid - A GitHub app for Android
 * 
 * Copyright (c) 2010 <NAME>.
 * 
 * Licensed under the New BSD License.
 */

package org.idlesoft.android.hubroid;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemClickListener;

public class Search extends Activity {
	private RepositoriesListAdapter m_repositories_adapter;
	private SearchUsersListAdapter m_users_adapter;
	public ProgressDialog m_progressDialog;
	private SharedPreferences m_prefs;
	private SharedPreferences.Editor m_editor;
	public String m_username;
	public String m_type;
	public JSONArray m_repositoriesData;
	public JSONArray m_usersData;
	public Intent m_intent;
	public int m_position;

	public void initializeList() {
		try {
			if (m_type.equals("repositories")) {
				URL query = new URL(
						"http://github.com/api/v2/json/repos/search/"
								+ URLEncoder
										.encode(((EditText) findViewById(R.id.et_search_search_box))
{'fraction_non_alphanumeric': 0.08943089430894309, 'fraction_numerical': 0.0030111412225233363, 'mean_word_length': 5.174721189591078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5704553', 'n_tokens_mistral': 1056, 'n_tokens_neox': 965, 'n_words': 249}