<commit_before>/*jshint worker: true*/

// Modules and dependencies to expose in the public Tangram module
import Utils from './utils/utils';

// The leaflet layer plugin is currently the primary public API
import {LeafletLayer, leafletLayer} from './leaflet_layer';

// The scene worker is only activated when a worker thread is instantiated, but must always be loaded
import {SceneWorker} from '../src/scene_worker';

// Additional modules are exposed for debugging
import log from 'loglevel';
import Geo from './geo';
import DataSource from './data_source';
import GLSL from './gl/glsl';
import ShaderProgram from './gl/shader_program';
import Texture from './gl/texture';
import Material from './material';
import Light from './light';
import WorkerBroker from './utils/worker_broker';
import {ruleCache} from './styles/rule';

import glMatrix from 'gl-matrix';

// Default to 64-bit because we need the extra precision when multiplying matrices w/mercator projected values
glMatrix.glMatrix.setMatrixArrayType(Float64Array);

// Make some modules accessible for debugging
var debug = {
    log,
    Utils,
    Geo,
    DataSource,
    GLSL,
    ShaderProgram,
    Texture,
    Material,
    Light,
    SceneWorker,
    WorkerBroker,
    ruleCache
};

// Window can only be set in main thread
if (Utils.isMainThread) {
    // Main thread objects that can be called from workers
    WorkerBroker.addTarget('Texture', Texture);

    window.Tangram = module.exports = {
        LeafletLayer,
        leafletLayer,
        debug
    };

}

if (Utils.isWorkerThread) {
    self.Tangram = {
        debug
    };
}

if (Utils.isMainThread) {
    Utils.requestAnimationFramePolyfill();
}
<commit_msg>add style manager + parser to debug<commit_after>/*jshint worker: true*/

// Modules and dependencies to expose in the public Tangram module
import Utils from './utils/utils';

// The leaflet layer plugin is currently the primary public API
import {LeafletLayer, leafletLayer} from './leaflet_layer';

// The scene worker is only activated when a worker thread is instantiated, but must always be loaded
import {SceneWorker} from '../src/scene_worker';

// Additional modules are exposed for debugging
import log from 'loglevel';
import Geo from './geo';
import DataSource from './data_source';
import GLSL from './gl/glsl';
import ShaderProgram from './gl/shader_program';
import Texture from './gl/texture';
import Material from './material';
import Light from './light';
import WorkerBroker from './utils/worker_broker';
import {ruleCache} from './styles/rule';
import {StyleParser} from './styles/style_parser';
import {StyleManager} from './styles/style_manager';

import glMatrix from 'gl-matrix';

// Default to 64-bit because we need the extra precision when multiplying matrices w/mercator projected values
glMatrix.glMatrix.setMatrixArrayType(Float64Array);

// Make some modules accessible for debugging
var debug = {
    log,
    Utils,
    Geo,
    DataSource,
    GLSL,
    ShaderProgram,
    Texture,
    Material,
    Light,
    SceneWorker,
    WorkerBroker,
    ruleCache,
    StyleParser,
    StyleManager
};

// Window can only be set in main thread
if (Utils.isMainThread) {
    // Main thread objects that can be called from workers
    WorkerBroker.addTarget('Texture', Texture);

    window.Tangram = module.exports = {
        LeafletLayer,
        leafletLayer,
        debug
    };

}

if (Utils.isWorkerThread) {
    self.Tangram = {
        debug
    };
}

if (Utils.isMainThread) {
    Utils.requestAnimationFramePolyfill();
}

{'fraction_non_alphanumeric': 0.10047846889952153, 'fraction_numerical': 0.002251618350689558, 'mean_word_length': 3.5044359949302915, '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': '2522384', 'n_tokens_mistral': 1029, 'n_tokens_neox': 994, 'n_words': 359}