<commit_before>/**
 * Copyright (C) 2011 <NAME> <<EMAIL>>
 * All contents Licensed under the terms of the Apache License 2.0
 * http://www.apache.org/licenses/LICENSE-2.0.html
 */

package com.marzhillstudios.quizme.data;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.marzhillstudios.util.Maybe;
import com.marzhillstudios.util.MaybeDo;

/**
 * The Data access layer for our Card Database.
 *
 * @author jwall
 *
 */
// TODO(jwall): Unit tests for this class.
public class CardDatabase extends SQLiteOpenHelper {
	
    public static final int CARD_ID_COLUMN = 0;
    public static final int CARD_TITLE_COLUMN = 1;

    private static final int DATABASE_VERSION = 1;
    private static final String DATABASE_NAME = "/sdcard/quizme/quiz_me_db";
    private static final String CARDS_TABLE_NAME = "card_table";
    private static final String STATS_TABLE_NAME = "card_stats_table";<commit_msg>Doc change.<commit_after>/**
 * Copyright (C) 2011 <NAME> <<EMAIL>>
 * All contents Licensed under the terms of the Apache License 2.0
 * http://www.apache.org/licenses/LICENSE-2.0.html
 */

package com.marzhillstudios.quizme.data;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.marzhillstudios.util.Maybe;
import com.marzhillstudios.util.MaybeDo;

/**
 * The Data access layer for our Card Database.
 *
 * @author <NAME> <<EMAIL>>
 *
 */
// TODO(jwall): Unit tests for this class.
public class CardDatabase extends SQLiteOpenHelper {
	
    public static final int CARD_ID_COLUMN = 0;
    public static final int CARD_TITLE_COLUMN = 1;

    private static final int DATABASE_VERSION = 1;
    private static final String DATABASE_NAME = "/sdcard/quizme/quiz_me_db";
    private static final String CARDS_TABLE_NAME = "card_table";
    private static final String STATS_TABLE_NAME = "card_stats_table";
{'fraction_non_alphanumeric': 0.09642682329907, 'fraction_numerical': 0.010768477728830151, 'mean_word_length': 4.4361702127659575, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4622640', 'n_tokens_mistral': 661, 'n_tokens_neox': 634, 'n_words': 179}