<commit_before>package com.gdgnantes.devfest.android.provider

import android.content.ContentValues
import android.content.Context
import android.content.UriMatcher
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import android.database.sqlite.SQLiteQueryBuilder
import android.net.Uri
import android.util.Log
import com.gdgnantes.devfest.android.content.SQLiteContentProvider
import com.gdgnantes.devfest.android.database.SelectionBuilder
import com.gdgnantes.devfest.android.net.getIntQueryParameter


class ScheduleProvider : SQLiteContentProvider() {

    companion object {

        private const val TAG = "ScheduleProvider"

        private const val LOG_METHOD_ENABLED = false
        private const val DEBUG_LOG_QUERIES = false

        private const val FIRST = 100

        private const val ROOMS = FIRST
        private const val ROOMS_ID = FIRST + 1

        private const val SESSIONS = ROOMS + 100
        private const val SESSIONS_ID = SESSIONS + 1

        private const val SESSIONS_SPEAKERS = SESSIONS + 100

        private const val SPEAKERS = SESSIONS_SPEAKERS + 100
        private const val SPEAKERS_ID = SPEAKERS + 1

        private val allowedUriParameters = setOf(ScheduleContract.Extras.COUNT_LIMIT)

        private val uriMatcher: UriMatcher = UriMatcher(UriMatcher.NO_MATCH)

        init {
            with(uriMatcher) {
                addURI(ScheduleContract.AUTHORITY, "rooms", ROOMS)
                addURI(ScheduleContract.AUTHORITY, "rooms/#", ROOMS_ID)

                addURI(ScheduleContract.AUTHORITY, "sessions", SESSIONS)
                addURI(ScheduleContract.AUTHORITY, "sessions/#", SESSIONS_ID)

                addURI(ScheduleContract.AUTHORITY, "sessions_speakers", SESSIONS_SPEAKERS)

                addURI(ScheduleContract.AUTHORITY, "speakers", SPEAKERS)
                addURI(ScheduleContract.AUTHORITY, "speakers/#", SPEAKERS_ID)
            }
        }
    }<commit_msg>IDs are not necessarily numbers<commit_after>package com.gdgnantes.devfest.android.provider

import android.content.ContentValues
import android.content.Context
import android.content.UriMatcher
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import android.database.sqlite.SQLiteQueryBuilder
import android.net.Uri
import android.util.Log
import com.gdgnantes.devfest.android.content.SQLiteContentProvider
import com.gdgnantes.devfest.android.database.SelectionBuilder
import com.gdgnantes.devfest.android.net.getIntQueryParameter


class ScheduleProvider : SQLiteContentProvider() {

    companion object {

        private const val TAG = "ScheduleProvider"

        private const val LOG_METHOD_ENABLED = false
        private const val DEBUG_LOG_QUERIES = false

        private const val FIRST = 100

        private const val ROOMS = FIRST
        private const val ROOMS_ID = FIRST + 1

        private const val SESSIONS = ROOMS + 100
        private const val SESSIONS_ID = SESSIONS + 1

        private const val SESSIONS_SPEAKERS = SESSIONS + 100

        private const val SPEAKERS = SESSIONS_SPEAKERS + 100
        private const val SPEAKERS_ID = SPEAKERS + 1

        private val allowedUriParameters = setOf(ScheduleContract.Extras.COUNT_LIMIT)

        private val uriMatcher: UriMatcher = UriMatcher(UriMatcher.NO_MATCH)

        init {
            with(uriMatcher) {
                addURI(ScheduleContract.AUTHORITY, "rooms", ROOMS)
                addURI(ScheduleContract.AUTHORITY, "rooms/#", ROOMS_ID)

                addURI(ScheduleContract.AUTHORITY, "sessions", SESSIONS)
                addURI(ScheduleContract.AUTHORITY, "sessions/*", SESSIONS_ID)

                addURI(ScheduleContract.AUTHORITY, "sessions_speakers", SESSIONS_SPEAKERS)

                addURI(ScheduleContract.AUTHORITY, "speakers", SPEAKERS)
                addURI(ScheduleContract.AUTHORITY, "speakers/*", SPEAKERS_ID)
            }
        }
    }
{'fraction_non_alphanumeric': 0.0688800792864222, 'fraction_numerical': 0.007433102081268583, 'mean_word_length': 3.149023638232271, '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': '2895780', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1097, 'n_words': 252}