<commit_before>package fi.mikuz.boarder.gui.internet;

import java.util.HashMap;

import org.json.JSONException;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.CursorIndexOutOfBoundsException;
import android.database.SQLException;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import fi.mikuz.boarder.R;
import fi.mikuz.boarder.app.BoarderActivity;
import fi.mikuz.boarder.connection.ConnectionErrorResponse;
import fi.mikuz.boarder.connection.ConnectionListener;
import fi.mikuz.boarder.connection.ConnectionManager;
import fi.mikuz.boarder.connection.ConnectionSuccessfulResponse;
import fi.mikuz.boarder.connection.ConnectionUtils;
import fi.mikuz.boarder.gui.SoundboardMenu;
import fi.mikuz.boarder.util.ExternalIntent;
import fi.mikuz.boarder.util.TimeoutProgressDialog;
import fi.mikuz.boarder.util.dbadapter.GlobalVariablesDbAdapter;
import fi.mikuz.boarder.util.dbadapter.LoginDbAdapter;

/**
 * 
 * @author <NAME>
 */
public class InternetMenu extends BoarderActivity implements ConnectionListener {
    private static final String TAG = "InternetMenu";
    
    private static final String phpRepURL = (SoundboardMenu.mDevelopmentMode) ? "http://test.boarder.mikuz.org/" : "http://boarder.mikuz.org/";
    static final String mGetSessionValidURL = InternetMenu.phpRepURL + "getSessionInfo.php";
    static final String mGetBoardsURL = InternetMenu.phpRepURL + "getBoards.php";
    static final String mGetBoardURL = InternetMenu.phpRepURL + "getBoard.php";
    static final String mRegistrationURL = InternetMenu.phpRepURL + "register.php";
    static final String mLoginURL = InternetMenu.phpRepURL + "login.php";
    static final String mLogoutURL = InternetMenu.phpRepURL + "logout.php";
    static final String mRecoverPasswordURL = InternetMenu.phpRepURL + "recoverPassword.php";
    static final String mChangePasswordURL = InternetMenu.phpRepURL + "changePassword.php";
    static final String mChangeEmailURL = InternetMenu.phpRepURL + "changeEmail.php";
    static final String mUserUploadListURL = InternetMenu.phpRepURL + "getUserUploads.php";
    static final String mUploadBoardURL = InternetMenu.phpRepURL + "uploadBoard.php";
    static final String mFavoriteListURL = InternetMenu.phpRepURL + "getFavorites.php";
    static final String mFavoriteURL = InternetMenu.phpRepURL + "favorite.php";
    static final String mUpdateFavoriteBoardURL = InternetMenu.phpRepURL + "updateFavoriteBoard.php";
    static final String mGetBoardThumbStatusURL = InternetMenu.phpRepURL + "getBoardThumbStatus.php";
    static final String mRateBoardURL = InternetMenu.phpRepURL + "rateBoard.php";
    static final String mCommentURL = InternetMenu.phpRepURL + "comment.php";
    static final String mGetCommentsURL = InternetMenu.phpRepURL + "getComments.php";
    static final String mDeleteUploadedBoardURL = InternetMenu.phpRepURL + "deleteUploadedBoard.php";
    static final String mDonationNotificationURL = InternetMenu.phpRepURL + "donationNotification.php";
    static final String mGetServiceVersionURL = InternetMenu.phpRepURL + "getServiceVersion.php";
    
    public static final String BOARD_ID_KEY = "board_id";<commit_msg>Connections to Boarder server use SSL protection<commit_after>package fi.mikuz.boarder.gui.internet;

import java.util.HashMap;

import org.json.JSONException;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor;
import android.database.CursorIndexOutOfBoundsException;
import android.database.SQLException;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import fi.mikuz.boarder.R;
import fi.mikuz.boarder.app.BoarderActivity;
import fi.mikuz.boarder.connection.ConnectionErrorResponse;
import fi.mikuz.boarder.connection.ConnectionListener;
import fi.mikuz.boarder.connection.ConnectionManager;
import fi.mikuz.boarder.connection.ConnectionSuccessfulResponse;
import fi.mikuz.boarder.connection.ConnectionUtils;
import fi.mikuz.boarder.gui.SoundboardMenu;
import fi.mikuz.boarder.util.ExternalIntent;
import fi.mikuz.boarder.util.TimeoutProgressDialog;
import fi.mikuz.boarder.util.dbadapter.GlobalVariablesDbAdapter;
import fi.mikuz.boarder.util.dbadapter.LoginDbAdapter;

/**
 * 
 * @author <NAME>
 */
public class InternetMenu extends BoarderActivity implements ConnectionListener {
    private static final String TAG = "InternetMenu";
    
    private static final String phpRepURL = (SoundboardMenu.mDevelopmentMode) ? "http://test.boarder.mikuz.org/" : "https://secure.bluehost.com/~mikuzorg/boarder/";
    static final String mGetSessionValidURL = InternetMenu.phpRepURL + "getSessionInfo.php";
    static final String mGetBoardsURL = InternetMenu.phpRepURL + "getBoards.php";
    static final String mGetBoardURL = InternetMenu.phpRepURL + "getBoard.php";
    static final String mRegistrationURL = InternetMenu.phpRepURL + "register.php";
    static final String mLoginURL = InternetMenu.phpRepURL + "login.php";
    static final String mLogoutURL = InternetMenu.phpRepURL + "logout.php";
    static final String mRecoverPasswordURL = InternetMenu.phpRepURL + "recoverPassword.php";
    static final String mChangePasswordURL = InternetMenu.phpRepURL + "changePassword.php";
    static final String mChangeEmailURL = InternetMenu.phpRepURL + "changeEmail.php";
    static final String mUserUploadListURL = InternetMenu.phpRepURL + "getUserUploads.php";
    static final String mUploadBoardURL = InternetMenu.phpRepURL + "uploadBoard.php";
    static final String mFavoriteListURL = InternetMenu.phpRepURL + "getFavorites.php";
    static final String mFavoriteURL = InternetMenu.phpRepURL + "favorite.php";
    static final String mUpdateFavoriteBoardURL = InternetMenu.phpRepURL + "updateFavoriteBoard.php";
    static final String mGetBoardThumbStatusURL = InternetMenu.phpRepURL + "getBoardThumbStatus.php";
    static final String mRateBoardURL = InternetMenu.phpRepURL + "rateBoard.php";
    static final String mCommentURL = InternetMenu.phpRepURL + "comment.php";
    static final String mGetCommentsURL = InternetMenu.phpRepURL + "getComments.php";
    static final String mDeleteUploadedBoardURL = InternetMenu.phpRepURL + "deleteUploadedBoard.php";
    static final String mDonationNotificationURL = InternetMenu.phpRepURL + "donationNotification.php";
    static final String mGetServiceVersionURL = InternetMenu.phpRepURL + "getServiceVersion.php";
    
    public static final String BOARD_ID_KEY = "board_id";
{'fraction_non_alphanumeric': 0.08880918220946915, 'fraction_numerical': 0.0, 'mean_word_length': 5.645376549094376, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6955111', 'n_tokens_mistral': 2008, 'n_tokens_neox': 1988, 'n_words': 431}