<commit_before>/// <reference path="./_lib-references.ts"/>

import * as FileSaver from "filesaver.js";
import * as JSZip from "jszip";
import * as Clipboard from "clipboard";
import * as classNames from "classnames";
import * as ReactColorPicker from "react-color";
import * as Slider from "rc-slider";
import * as ReactDropzone from "react-dropzone";
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as reactUpdate from "react-addons-update";
import * as NotificationSystem from "react-notification-system";
import * as jquery from "jquery";
import * as sparkline from "react-sparklines"
import * as proj4 from "proj4";
import * as PIXI from "pixi.js";
import * as _ from "lodash";
import * as ol from "openlayers";
import * as FixedDataTable from "fixed-data-table";
import * as moment from "moment";
import * as c3 from "c3";
import * as d3 from "d3";

(React as any).addons = (React as any).addons || {};
(React as any).addons.update = (reactUpdate as any).default;
(window as any).NotificationSystem = { System: (NotificationSystem as any).default };
(window as any).React = React;
(window as any).ReactDOM = ReactDOM;
(window as any).FixedDataTable = FixedDataTable;
(window as any).ReactDropzone = { Dropzone: (ReactDropzone as any).default };
(window as any).ReactDOM = ReactDOM;
(window as any).jquery = jquery;
(window as any).$ = (jquery as any).default;
(window as any).jQuery = (jquery as any).default;
(window as any).moment = (moment as any).default;
(window as any).ol = ol;
(window as any)._ = _;
(window as any).lodash = _;
(window as any).d3 = (d3 as any).default;
(window as any).c3 = c3;
(window as any).proj4 = (proj4 as any).default;
(window as any).Slider = (Slider as any).default;
(window as any).ReactColorPicker = (ReactColorPicker as any).default; /* Workaround for incorrect typings. */
(window as any).classNames = (classNames as any).default;
(window as any).Clipboard = (Clipboard as any).default;
(window as any).JSZip = (JSZip as any).default;
(window as any).FileSaver = FileSaver;
(window as any).sparkline = sparkline;
(window as any).PIXI = PIXI;

(PIXI.utils as any)._saidHello = true;

// temporary solution
var weavejs:any = (window as any).weavejs || {};
weavejs.util = weavejs.util || {};
weavejs.util.DateUtils = weavejs.util.DateUtils || {};
weavejs.util.StandardLib = weavejs.util.StandardLib || {};
weavejs.util.DateUtils.moment = (moment as any).default;
weavejs.util.StandardLib.lodash = _;<commit_msg>Give weave core access to openlayers through StandardLib.<commit_after>/// <reference path="./_lib-references.ts"/>

import * as FileSaver from "filesaver.js";
import * as JSZip from "jszip";
import * as Clipboard from "clipboard";
import * as classNames from "classnames";
import * as ReactColorPicker from "react-color";
import * as Slider from "rc-slider";
import * as ReactDropzone from "react-dropzone";
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as reactUpdate from "react-addons-update";
import * as NotificationSystem from "react-notification-system";
import * as jquery from "jquery";
import * as sparkline from "react-sparklines"
import * as proj4 from "proj4";
import * as PIXI from "pixi.js";
import * as _ from "lodash";
import * as ol from "openlayers";
import * as FixedDataTable from "fixed-data-table";
import * as moment from "moment";
import * as c3 from "c3";
import * as d3 from "d3";

(React as any).addons = (React as any).addons || {};
(React as any).addons.update = (reactUpdate as any).default;
(window as any).NotificationSystem = { System: (NotificationSystem as any).default };
(window as any).React = React;
(window as any).ReactDOM = ReactDOM;
(window as any).FixedDataTable = FixedDataTable;
(window as any).ReactDropzone = { Dropzone: (ReactDropzone as any).default };
(window as any).ReactDOM = ReactDOM;
(window as any).jquery = jquery;
(window as any).$ = (jquery as any).default;
(window as any).jQuery = (jquery as any).default;
(window as any).moment = (moment as any).default;
(window as any).ol = ol;
(window as any)._ = _;
(window as any).lodash = _;
(window as any).d3 = (d3 as any).default;
(window as any).c3 = c3;
(window as any).proj4 = (proj4 as any).default;
(window as any).Slider = (Slider as any).default;
(window as any).ReactColorPicker = (ReactColorPicker as any).default; /* Workaround for incorrect typings. */
(window as any).classNames = (classNames as any).default;
(window as any).Clipboard = (Clipboard as any).default;
(window as any).JSZip = (JSZip as any).default;
(window as any).FileSaver = FileSaver;
(window as any).sparkline = sparkline;
(window as any).PIXI = PIXI;

(PIXI.utils as any)._saidHello = true;

// temporary solution
var weavejs:any = (window as any).weavejs || {};
weavejs.util = weavejs.util || {};
weavejs.util.DateUtils = weavejs.util.DateUtils || {};
weavejs.util.StandardLib = weavejs.util.StandardLib || {};
weavejs.util.DateUtils.moment = (moment as any).default;
weavejs.util.StandardLib.lodash = _;
weavejs.util.StandardLib.ol = ol;
{'fraction_non_alphanumeric': 0.14387633769322236, 'fraction_numerical': 0.0047562425683709865, 'mean_word_length': 4.768, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2678106', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1635, 'n_words': 539}