// Path: app/src/ee/ioc/phon/android/arvutaja/Log.java
// public class Log {
// 
// 	private static final boolean DEBUG = BuildConfig.DEBUG;
// 
// 	public static final String LOG_TAG = "Arvutaja";
// 
// 	public static void i(String msg) {
// 		if (DEBUG) android.util.Log.i(LOG_TAG, msg);
// 	}
// 
// 	public static void e(String msg) {
// 		if (DEBUG) android.util.Log.e(LOG_TAG, msg);
// 	}
// 
// 	public static void i(String tag, String msg) {
// 		if (DEBUG) android.util.Log.i(tag, msg);
// 	}
// 
// 	public static void e(String tag, String msg) {
// 		if (DEBUG) android.util.Log.e(tag, msg);
// 	}
// }


import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import java.util.Arrays;
import java.util.HashMap;
import ee.ioc.phon.android.arvutaja.Log;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
		}

		@Override
		public void onCreate(SQLiteDatabase db) {
			db.execSQL("CREATE TABLE " + QUERIES_TABLE_NAME + " ("
					+ Query.Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
					+ Query.Columns.TIMESTAMP + " TIMESTAMP,"
					+ Query.Columns.UTTERANCE + " TEXT,"
					+ Query.Columns.TRANSLATION + " TEXT,"
					+ Query.Columns.EVALUATION + " REAL,"
					+ Query.Columns.LANG + " TEXT,"
					+ Query.Columns.TARGET_LANG + " TEXT,"
					+ Query.Columns.MESSAGE + " TEXT"
					+ ");");

			db.execSQL("CREATE TABLE " + QEVALS_TABLE_NAME + " ("
					+ Qeval.Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
					+ Qeval.Columns.TIMESTAMP + " TIMESTAMP,"
					+ Qeval.Columns.UTTERANCE + " TEXT,"
					+ Qeval.Columns.TRANSLATION + " TEXT,"
					+ Qeval.Columns.EVALUATION + " REAL,"
					+ Qeval.Columns.LANG + " TEXT,"
					+ Qeval.Columns.TARGET_LANG + " TEXT,"
					+ Qeval.Columns.MESSAGE + " TEXT"
					+ ");");
		}


		@Override
		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// Path: app/src/ee/ioc/phon/android/arvutaja/Log.java
// public class Log {
// 
// 	private static final boolean DEBUG = BuildConfig.DEBUG;
// 
// 	public static final String LOG_TAG = "Arvutaja";
// 
// 	public static void i(String msg) {
// 		if (DEBUG) android.util.Log.i(LOG_TAG, msg);
// 	}
// 
// 	public static void e(String msg) {
// 		if (DEBUG) android.util.Log.e(LOG_TAG, msg);
// 	}
// 
// 	public static void i(String tag, String msg) {
// 		if (DEBUG) android.util.Log.i(tag, msg);
// 	}
// 
// 	public static void e(String tag, String msg) {
// 		if (DEBUG) android.util.Log.e(tag, msg);
// 	}
// }


// Path: app/src/ee/ioc/phon/android/arvutaja/provider/QueriesContentProvider.java
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.text.TextUtils;
import java.util.Arrays;
import java.util.HashMap;
import ee.ioc.phon.android.arvutaja.Log;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

		}

		@Override
		public void onCreate(SQLiteDatabase db) {
			db.execSQL("CREATE TABLE " + QUERIES_TABLE_NAME + " ("
					+ Query.Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
					+ Query.Columns.TIMESTAMP + " TIMESTAMP,"
					+ Query.Columns.UTTERANCE + " TEXT,"
					+ Query.Columns.TRANSLATION + " TEXT,"
					+ Query.Columns.EVALUATION + " REAL,"
					+ Query.Columns.LANG + " TEXT,"
					+ Query.Columns.TARGET_LANG + " TEXT,"
					+ Query.Columns.MESSAGE + " TEXT"
					+ ");");

			db.execSQL("CREATE TABLE " + QEVALS_TABLE_NAME + " ("
					+ Qeval.Columns._ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
					+ Qeval.Columns.TIMESTAMP + " TIMESTAMP,"
					+ Qeval.Columns.UTTERANCE + " TEXT,"
					+ Qeval.Columns.TRANSLATION + " TEXT,"
					+ Qeval.Columns.EVALUATION + " REAL,"
					+ Qeval.Columns.LANG + " TEXT,"
					+ Qeval.Columns.TARGET_LANG + " TEXT,"
					+ Qeval.Columns.MESSAGE + " TEXT"
					+ ");");
		}


		@Override
		public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
			Log.i(TAG, "Upgrading database v" + oldVersion + " -> v" + newVersion + ", which will destroy all old data.");