<commit_before>package co.smartreceipts.android.sync.drive.managers;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;

import androidx.annotation.NonNull;

import com.google.common.base.Preconditions;
import com.hadisatrio.optional.Optional;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

import co.smartreceipts.analytics.log.Logger;
import co.smartreceipts.android.persistence.DatabaseHelper;
import co.smartreceipts.android.persistence.database.restore.DatabaseRestorer;
import co.smartreceipts.android.persistence.database.tables.AbstractSqlTable;
import co.smartreceipts.android.persistence.database.tables.ReceiptsTable;
import co.smartreceipts.android.persistence.database.tables.TripsTable;
import co.smartreceipts.android.sync.errors.MissingFilesException;
import co.smartreceipts.automatic_backups.drive.managers.DriveDatabaseManager;
import co.smartreceipts.automatic_backups.drive.managers.DriveDownloader;
import co.smartreceipts.core.persistence.DatabaseConstants;
import co.smartreceipts.core.sync.model.RemoteBackupMetadata;
import co.smartreceipts.core.sync.model.impl.Identifier;
import io.reactivex.Observable;
import io.reactivex.Single;

public class DriveRestoreDataManager {

    private static final Integer ALLOWED_DOWNLOAD_FAILURES = 5;

    private final DriveDatabaseManager mDriveDatabaseManager;
    private final DatabaseRestorer databaseRestorer;
    private final File mStorageDirectory;
    private final DriveDownloader driveDownloader;

    @SuppressWarnings("ConstantConditions")
    public DriveRestoreDataManager(@NonNull Context context,
                                   @NonNull DriveDatabaseManager driveDatabaseManager,<commit_msg>raising missing file count for auto backups<commit_after>package co.smartreceipts.android.sync.drive.managers;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.text.TextUtils;

import androidx.annotation.NonNull;

import com.google.common.base.Preconditions;
import com.hadisatrio.optional.Optional;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

import co.smartreceipts.analytics.log.Logger;
import co.smartreceipts.android.persistence.DatabaseHelper;
import co.smartreceipts.android.persistence.database.restore.DatabaseRestorer;
import co.smartreceipts.android.persistence.database.tables.AbstractSqlTable;
import co.smartreceipts.android.persistence.database.tables.ReceiptsTable;
import co.smartreceipts.android.persistence.database.tables.TripsTable;
import co.smartreceipts.android.sync.errors.MissingFilesException;
import co.smartreceipts.automatic_backups.drive.managers.DriveDatabaseManager;
import co.smartreceipts.automatic_backups.drive.managers.DriveDownloader;
import co.smartreceipts.core.persistence.DatabaseConstants;
import co.smartreceipts.core.sync.model.RemoteBackupMetadata;
import co.smartreceipts.core.sync.model.impl.Identifier;
import io.reactivex.Observable;
import io.reactivex.Single;

public class DriveRestoreDataManager {

    private static final Integer ALLOWED_DOWNLOAD_FAILURES = 10;

    private final DriveDatabaseManager mDriveDatabaseManager;
    private final DatabaseRestorer databaseRestorer;
    private final File mStorageDirectory;
    private final DriveDownloader driveDownloader;

    @SuppressWarnings("ConstantConditions")
    public DriveRestoreDataManager(@NonNull Context context,
                                   @NonNull DriveDatabaseManager driveDatabaseManager,
{'fraction_non_alphanumeric': 0.0782861676805078, 'fraction_numerical': 0.0007934408886537953, 'mean_word_length': 6.149338374291116, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4049439', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1051, 'n_words': 179}