<commit_before>package com.garpr.android.data.database

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query

@Dao
interface FavoritePlayerDao {

    @Delete
    fun delete(dbFavoritePlayer: DbFavoritePlayer)

    @Query("DELETE FROM favoritePlayers")
    fun deleteAll()

    @Query("SELECT * FROM favoritePlayers")
    fun getAll(): List<DbFavoritePlayer>

    @Insert
    fun insert(dbFavoritePlayer: DbFavoritePlayer)

    @Insert
    fun insertAll(dbFavoritePlayers: List<DbFavoritePlayer>)

}<commit_msg>fixed issue with storing duplicate favorite players<commit_after>package com.garpr.android.data.database

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

@Dao
interface FavoritePlayerDao {

    @Delete
    fun delete(dbFavoritePlayer: DbFavoritePlayer)

    @Query("DELETE FROM favoritePlayers")
    fun deleteAll()

    @Query("SELECT * FROM favoritePlayers")
    fun getAll(): List<DbFavoritePlayer>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(dbFavoritePlayer: DbFavoritePlayer)

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertAll(dbFavoritePlayers: List<DbFavoritePlayer>)

}
{'fraction_non_alphanumeric': 0.08527131782945736, 'fraction_numerical': 0.0, 'mean_word_length': 5.061032863849765, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '144798', 'n_tokens_mistral': 399, 'n_tokens_neox': 377, 'n_words': 82}