<commit_before>package com.tonilopezmr.sample.data.SQLite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

import com.tonilopezmr.easysqlite.SQLiteHelper;

/**
 *
 * @author Toni
 */
public class SQLiteManager {

    public final static String DATABASE_NAME = "com.tonilopezmr.sample.database";
    public final static int SQLITE_VERSION = 12;


    private static final String SUBJECT_TABLE =
            "CREATE TABLE SUBJECT(" +
                    "ID INTEGER PRIMARY KEY AUTOINCREMENT," +
                    "NAME TEXT NOT NULL" +
                    ")";

    final static private String SUBJECT = "SUBJECT";

    final static private String[] TABLES = {SUBJECT_TABLE};
    final static private String[] TABLENAMES = {SUBJECT};

    private static SQLiteDatabase dataBase;

    private SQLiteManager(){}

    public static SQLiteDatabase getDataBase(Context context){
        if (dataBase == null){
            //Create the SQLiteOpenHelper
            SQLiteHelper conex = SQLiteHelper.builder()
                    .beginConfig()
                        .onCreateCallback(onCreateCallback)
                        .foreignKey(true)
                    .endConfig()
                    .tables(TABLES)
                    .tableNames(TABLENAMES)
                    .build(context, DATABASE_NAME, SQLITE_VERSION);
            dataBase = conex.getWritableDatabase();
        }
        return  dataBase;<commit_msg>Update SQLiteManager incode sample<commit_after>package com.tonilopezmr.sample.data.SQLite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

import com.tonilopezmr.easysqlite.SQLiteHelper;

/**
 *
 * @author Toni
 */
public class SQLiteManager {

    public final static int SQLITE_VERSION = 1;


    private static final String SUBJECT_TABLE =
            "CREATE TABLE SUBJECT(" +
                    "ID INTEGER PRIMARY KEY AUTOINCREMENT," +
                    "NAME TEXT NOT NULL" +
                    ")";

    final static private String SUBJECT = "SUBJECT";

    final static private String[] TABLES = {SUBJECT_TABLE};
    final static private String[] TABLENAMES = {SUBJECT};

    private static SQLiteDatabase dataBase;

    private SQLiteManager(){}

    public static SQLiteDatabase getDataBase(Context context){
        if (dataBase == null){
            //Create the SQLiteOpenHelper
            SQLiteHelper conex = SQLiteHelper.builder()
                    .beginConfig()
                        .onCreateCallback(onCreateCallback)
                        .foreignKey(true)
                    .endConfig()
                    .tables(TABLES)
                    .tableNames(TABLENAMES)
                    .version(SQLITE_VERSION)
                    .build(context);
            dataBase = conex.getWritableDatabase();
        }
        return  dataBase;
{'fraction_non_alphanumeric': 0.08178694158075601, 'fraction_numerical': 0.0010309278350515464, 'mean_word_length': 2.038622129436326, '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': '4442841', 'n_tokens_mistral': 797, 'n_tokens_neox': 730, 'n_words': 185}