<commit_before>package com.tonyodev.fetch2.helper

import com.tonyodev.fetch2.database.DatabaseManager
import com.tonyodev.fetch2.database.DownloadInfo


open class DownloadInfoUpdater(val databaseManagerInternal: DatabaseManager) {

    open fun updateFileBytesInfoAndStatusOnly(downloadInfo: DownloadInfo) {
        databaseManagerInternal.updateFileBytesInfoAndStatusOnly(downloadInfo)
    }

    open fun update(downloadInfo: DownloadInfo) {
        databaseManagerInternal.update(downloadInfo)
    }
}<commit_msg>refactored download info updater<commit_after>package com.tonyodev.fetch2.helper

import com.tonyodev.fetch2.database.DatabaseManager
import com.tonyodev.fetch2.database.DownloadInfo


class DownloadInfoUpdater(private val databaseManager: DatabaseManager) {

    fun updateFileBytesInfoAndStatusOnly(downloadInfo: DownloadInfo) {
        databaseManager.updateFileBytesInfoAndStatusOnly(downloadInfo)
    }

    fun update(downloadInfo: DownloadInfo) {
        databaseManager.update(downloadInfo)
    }
}
{'fraction_non_alphanumeric': 0.068359375, 'fraction_numerical': 0.005859375, 'mean_word_length': 5.6558441558441555, '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': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661368', 'n_tokens_mistral': 286, 'n_tokens_neox': 280, 'n_words': 43}