<commit_before>"use strict"

/* global location, ace, io */

// Assumes ace is imported from script tag with noconflict version

// Assumes io is imported from socket.io

// Mithril only needs to be imported once in the application as it sets a global "m"
import "./vendor/mithril.js"

// sha256 only needs to be imported once in the application as it sets a global sha256
import "./vendor/sha256.js"

import { WorkspaceView } from "./WorkspaceView.js"
import { Notebook } from "./Notebook.js"
import { NotebookBackendUsingLocalStorage } from "./NotebookBackendUsingLocalStorage.js"
import { NotebookBackendUsingServer } from "./NotebookBackendUsingServer.js"
import { FileUtils } from "./FileUtils.js"
import { CanonicalJSON } from "./CanonicalJSON.js"

let initialKeyToGoTo = null

const NotebookUsingMemory = Notebook()
const NotebookUsingLocalStorage = Notebook(NotebookBackendUsingLocalStorage())
const NotebookUsingServer = Notebook(NotebookBackendUsingServer(m.redraw))<commit_msg>notebook: be explicit about notebook Id<commit_after>"use strict"

/* global location, ace, io */

// Assumes ace is imported from script tag with noconflict version

// Assumes io is imported from socket.io

// Mithril only needs to be imported once in the application as it sets a global "m"
import "./vendor/mithril.js"

// sha256 only needs to be imported once in the application as it sets a global sha256
import "./vendor/sha256.js"

import { WorkspaceView } from "./WorkspaceView.js"
import { Notebook } from "./Notebook.js"
import { NotebookBackendUsingLocalStorage } from "./NotebookBackendUsingLocalStorage.js"
import { NotebookBackendUsingServer } from "./NotebookBackendUsingServer.js"
import { FileUtils } from "./FileUtils.js"
import { CanonicalJSON } from "./CanonicalJSON.js"

let initialKeyToGoTo = null

let notebookId = "common"

const NotebookUsingMemory = Notebook()
const NotebookUsingLocalStorage = Notebook(NotebookBackendUsingLocalStorage())
const NotebookUsingServer = Notebook(NotebookBackendUsingServer(m.redraw, notebookId))
{'fraction_non_alphanumeric': 0.09162175404213621, 'fraction_numerical': 0.008819206271435572, 'mean_word_length': 5.11377245508982, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2679981', 'n_tokens_mistral': 574, 'n_tokens_neox': 573, 'n_words': 196}