<commit_before>import 'dart:async';
import 'package:sembast/src/api/compat/sembast.dart';
import 'package:sembast/sembast.dart';
import 'package:sembast/src/database_client_impl.dart';
import 'package:sembast/src/database_impl.dart';
import 'package:sembast/src/store_impl.dart';
import 'package:sembast/src/utils.dart';

// ignore_for_file: deprecated_member_use_from_same_package

mixin DatabaseExecutorMixin implements DatabaseExecutor, StoreExecutor {
  StoreExecutor get mainStore;

  @override
  Future<bool> containsKey(key) => mainStore.containsKey(key);

  @override
  Future<int> count([Filter filter]) => mainStore.count(filter);

  @override
  Future delete(key) => mainStore.delete(key);

  @override
  Future<Record> findRecord(Finder finder) => mainStore.findRecord(finder);

  @override
  Future findKey(Finder finder) => mainStore.findKey(finder);

  @override
  Future<List<Record>> findRecords(Finder finder) =>
      mainStore.findRecords(finder);

  @override
  Future<List> findKeys(Finder finder) => mainStore.findKeys(finder);

  /// Get a value from a key
  Future get(key) => (mainStore as SembastStore).get(key);

  @override
  Future put(value, [key]) => (mainStore as SembastStore).put(value, key);
<commit_msg>fix: mainStore type<commit_after>import 'dart:async';
import 'package:sembast/src/api/compat/sembast.dart';
import 'package:sembast/sembast.dart';
import 'package:sembast/src/database_client_impl.dart';
import 'package:sembast/src/database_impl.dart';
import 'package:sembast/src/store_impl.dart';
import 'package:sembast/src/utils.dart';

// ignore_for_file: deprecated_member_use_from_same_package

mixin DatabaseExecutorMixin implements DatabaseExecutor, StoreExecutor {
  StoreExecutor get mainStore;

  @override
  Future<bool> containsKey(key) => mainStore.containsKey(key);

  @override
  Future<int> count([Filter filter]) => mainStore.count(filter);

  @override
  Future delete(key) => mainStore.delete(key);

  @override
  Future<Record> findRecord(Finder finder) => mainStore.findRecord(finder);

  @override
  Future findKey(Finder finder) => mainStore.findKey(finder);

  @override
  Future<List<Record>> findRecords(Finder finder) =>
      mainStore.findRecords(finder);

  @override
  Future<List> findKeys(Finder finder) => mainStore.findKeys(finder);

  /// Get a value from a key
  Future get(key) => (mainStore as SembastTransactionStore).get(key);

  @override
  Future put(value, [key]) =>
      (mainStore as SembastTransactionStore).put(value, key);

{'fraction_non_alphanumeric': 0.1284805091487669, 'fraction_numerical': 0.0, 'mean_word_length': 5.966759002770083, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 33, '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': '2476542', 'n_tokens_mistral': 809, 'n_tokens_neox': 788, 'n_words': 154}