<commit_before>import {run} from '@cycle/core';
import CycleDOM from '@cycle/dom';
import {Observable} from 'rx';
import storageDriver from '@cycle/storage';
// THE MAIN FUNCTION
// This is the todo list component.
import Todos from './components/Todos/index';

const main = Todos;

// THE ENTRY POINT
// This is where the whole story starts.
// `run` receives a main function and an object with
// the source streams.
run(main, {
  // THE DOM DRIVER
  // We create a DOM driver by passing
  // a DOM selector to the `makeDOMDriver` function.
  DOM: CycleDOM.makeDOMDriver('.todoapp'),
  // THE INITAL HASH STREAM
  // A stream that only delivers the initial hash value.
  initialHash: () => Observable.just(window.location.hash),
  // THE HASH CHANGE STREAM
  // A stream that delivers the hash value on the hashChange event.
  hashchange: () => Observable.fromEvent(window, 'hashchange'),
  // THE STORAGE DRIVER
  // The storage driver which can be used to access values for
  // local- and sessionStorage keys as streams.
  storage: storageDriver
});<commit_msg>comment fix<commit_after>import {run} from '@cycle/core';
import CycleDOM from '@cycle/dom';
import {Observable} from 'rx';
import storageDriver from '@cycle/storage';
// THE MAIN FUNCTION
// This is the todo list component.
import Todos from './components/Todos/index';

const main = Todos;

// THE ENTRY POINT
// This is where the whole story starts.
// `run` receives a main function and an object
// with the drivers.
run(main, {
  // THE DOM DRIVER
  // We create a DOM driver by passing
  // a DOM selector to the `makeDOMDriver` function.
  DOM: CycleDOM.makeDOMDriver('.todoapp'),
  // THE INITAL HASH STREAM
  // A stream that only delivers the initial hash value.
  initialHash: () => Observable.just(window.location.hash),
  // THE HASH CHANGE STREAM
  // A stream that delivers the hash value on the hashChange event.
  hashchange: () => Observable.fromEvent(window, 'hashchange'),
  // THE STORAGE DRIVER
  // The storage driver which can be used to access values for
  // local- and sessionStorage keys as streams.
  storage: storageDriver
});
{'fraction_non_alphanumeric': 0.10927932171455487, 'fraction_numerical': 0.0, 'mean_word_length': 3.5287846481876333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4244729', 'n_tokens_mistral': 623, 'n_tokens_neox': 606, 'n_words': 258}