<commit_before>const SYNCABLE_PROTOCOL = 'sync_client_protocol';
const defaultSyncOptions = {
  pollInterval: 10000, // Poll every 10 seconds
  credentials: 'omit',
};

export default function initSyncClient({
  Dexie,
  observable,
  syncable,
  sync,
  isOnline,
  onlineStatusChanged,
  cuid,
}) {
  class SyncClient extends Dexie {
    /*
     * dbName: string, name for the database
     * dbVersions: {version: number, stores: Array<Dexie.SchemaDefinition>}
     * https://github.com/dfahlander/Dexie.js/wiki/Version.stores()
     */
    constructor(dbName, dbVersions, partialsThreshold) {
      super(dbName, { addons: [syncable, observable] });
      dbVersions.forEach((version) => {
        if (version.upgrader) {<commit_msg>Fix order of dexie addons<commit_after>const SYNCABLE_PROTOCOL = 'sync_client_protocol';
const defaultSyncOptions = {
  pollInterval: 10000, // Poll every 10 seconds
  credentials: 'omit',
};

export default function initSyncClient({
  Dexie,
  observable,
  syncable,
  sync,
  isOnline,
  onlineStatusChanged,
  cuid,
}) {
  class SyncClient extends Dexie {
    /*
     * dbName: string, name for the database
     * dbVersions: {version: number, stores: Array<Dexie.SchemaDefinition>}
     * https://github.com/dfahlander/Dexie.js/wiki/Version.stores()
     */
    constructor(dbName, dbVersions, partialsThreshold) {
      super(dbName, { addons: [observable, syncable] });
      dbVersions.forEach((version) => {
        if (version.upgrader) {
{'fraction_non_alphanumeric': 0.11843876177658143, 'fraction_numerical': 0.009421265141318977, 'mean_word_length': 3.7813504823151125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1956381', 'n_tokens_mistral': 500, 'n_tokens_neox': 479, 'n_words': 104}