<commit_before>import { GeometryData } from "../component/geometry/GeometryData";
import { PerspectiveCameraData } from "../component/camera/PerspectiveCameraData";
import { CameraData } from "../component/camera/CameraData";
import { CameraControllerData } from "../component/camera/CameraControllerData";
import { ThreeDTransformData } from "../component/transform/ThreeDTransformData";
import { GameObjectData } from "./entityObject/gameObject/GameObjectData";
import { GlobalTempData } from "../definition/GlobalTempData";
import { initData as initSceneData } from "./entityObject/scene/SceneSystem";
import {
    initData as initThreeDTransformData
} from "../component/transform/ThreeDTransformSystem";
import {
    initData as initGeometryData
} from "../component/geometry/GeometrySystem";
import { initData as initShaderData } from "../renderer/shader/ShaderSystem";
import { ShaderData } from "../renderer/shader/ShaderData";
import { DataBufferConfig } from "../config/DataBufferConfig";
import {
    initData as initMaterialData
} from "../component/material/MaterialSystem";
import { MaterialData } from "../component/material/MaterialData";
import {
    initData as initMeshRendererData
} from "../component/renderer/MeshRendererSystem";
import { MeshRendererData } from "../component/renderer/MeshRendererData";
import { initData as initTagData } from "../component/tag/TagSystem";
import { TagData } from "../component/tag/TagData";
import { SceneData } from "./entityObject/scene/SceneData";
import { initData as initCameraControllerData } from "../component/camera/CameraControllerSystem";
import { initData as initGameObjectData } from "./entityObject/gameObject/GameObjectSystem";
// import { initData as initWorkerTimeData } from "../renderer/worker/logic_file/core/WorkerTimeSystem";
// import { WorkerTimeData } from "../renderer/worker/logic_file/core/WorkerTimeData";
import { initData as initRenderCommandBufferData } from "../renderer/command_buffer/RenderCommandBufferSystem";
import { render_config } from "../renderer/data/render_config";
import { RenderCommandBufferData } from "../renderer/command_buffer/RenderCommandBufferData";
import { initData as initProgramData } from "../renderer/shader/program/ProgramSystem";
import { initData as initLocationData } from "../renderer/shader/location/LocationSystem";
import { initData as initGLSLSenderData } from "../renderer/shader/glslSender/GLSLSenderSystem";
import { initData as initArrayBufferData } from "../renderer/buffer/ArrayBufferSystem";
import { initData as initIndexBufferData } from "../renderer/buffer/IndexBufferSystem";
import { initData as initDrawRenderCommandBufferData } from "../renderer/draw/DrawRenderCommandBufferSystem";
import { DebugConfig } from "../config/DebugConfig";
import { EScreenSize } from "../renderer/device/EScreenSize";
import { ExtendUtils } from "wonder-commonlib/dist/es2015/utils/ExtendUtils";
import { CompileConfig } from "../config/CompileConfig";
import { IO } from "wonder-fantasy-land/dist/es2015/types/IO";
import { chain, compose } from "../utils/functionalUtils";
import { it, requireCheckFunc } from "../definition/typescript/decorator/contract";
import { expect } from "wonder-expect.js";
import { fromJS, Map } from "immutable";
import { createCanvas, initDevice } from "../renderer/device/initDeviceSystem";
import { isSupportRenderWorkerAndSharedArrayBuffer, setWorkerConfig } from "../device/WorkerDetectSystem";
import { DrawRenderCommandBufferData } from "../renderer/draw/DrawRenderCommandBufferData";
import { IndexBufferData } from "../renderer/buffer/IndexBufferData";
import { ArrayBufferData } from "../renderer/buffer/ArrayBufferData";
import { GLSLSenderData } from "../renderer/shader/glslSender/GLSLSenderData";
import { LocationData } from "../renderer/shader/location/LocationData";
import { ProgramData } from "../renderer/shader/program/ProgramData";
import { BasicMaterialData } from "../component/material/BasicMaterialData";
import { LightMaterialData } from "../component/material/LightMaterialData";
import { initData as initLightData } from "../component/light/LightSystem";
import { AmbientLightData } from "../component/light/AmbientLightData";
import { DirectionLightData } from "../component/light/DirectionLightData";
import { PointLightData } from "../component/light/PointLightData";
import { setIsTest, setLibIsTest } from "../renderer/config/initConfigSystem";
import { initWorkInstances } from "../worker/WorkerInstanceSystem";
import { TextureCacheData } from "../renderer/texture/TextureCacheData";
import { TextureData } from "../renderer/texture/TextureData";
import { MapManagerData } from "../renderer/texture/MapManagerData";
import { initData as initSendDrawRenderCommandBufferData } from "../renderer/worker/logic_file/draw/SendDrawRenderCommandBufferDataSystem";
import { SendDrawRenderCommandBufferData } from "../renderer/worker/logic_file/draw/SendDrawRenderCommandBufferData";

export var setConfig = (closeContractTest: boolean, InitConfigData: any, WorkerDetectData: any, WorkerInstanceData: any, {
    canvasID = "",
    isTest = DebugConfig.isTest,
    screenSize = EScreenSize.FULL,
    useDevicePixelRatio = false,
    contextConfig = {
        options: {
            alpha: true,
            depth: true,
            stencil: false,
            antialias: true,
            premultipliedAlpha: true,
            preserveDrawingBuffer: false<commit_msg>fix: MainSystem-> import from "InitConfigSystem" instead of "initConfigSystem"<commit_after>import { GeometryData } from "../component/geometry/GeometryData";
import { PerspectiveCameraData } from "../component/camera/PerspectiveCameraData";
import { CameraData } from "../component/camera/CameraData";
import { CameraControllerData } from "../component/camera/CameraControllerData";
import { ThreeDTransformData } from "../component/transform/ThreeDTransformData";
import { GameObjectData } from "./entityObject/gameObject/GameObjectData";
import { GlobalTempData } from "../definition/GlobalTempData";
import { initData as initSceneData } from "./entityObject/scene/SceneSystem";
import {
    initData as initThreeDTransformData
} from "../component/transform/ThreeDTransformSystem";
import {
    initData as initGeometryData
} from "../component/geometry/GeometrySystem";
import { initData as initShaderData } from "../renderer/shader/ShaderSystem";
import { ShaderData } from "../renderer/shader/ShaderData";
import { DataBufferConfig } from "../config/DataBufferConfig";
import {
    initData as initMaterialData
} from "../component/material/MaterialSystem";
import { MaterialData } from "../component/material/MaterialData";
import {
    initData as initMeshRendererData
} from "../component/renderer/MeshRendererSystem";
import { MeshRendererData } from "../component/renderer/MeshRendererData";
import { initData as initTagData } from "../component/tag/TagSystem";
import { TagData } from "../component/tag/TagData";
import { SceneData } from "./entityObject/scene/SceneData";
import { initData as initCameraControllerData } from "../component/camera/CameraControllerSystem";
import { initData as initGameObjectData } from "./entityObject/gameObject/GameObjectSystem";
// import { initData as initWorkerTimeData } from "../renderer/worker/logic_file/core/WorkerTimeSystem";
// import { WorkerTimeData } from "../renderer/worker/logic_file/core/WorkerTimeData";
import { initData as initRenderCommandBufferData } from "../renderer/command_buffer/RenderCommandBufferSystem";
import { render_config } from "../renderer/data/render_config";
import { RenderCommandBufferData } from "../renderer/command_buffer/RenderCommandBufferData";
import { initData as initProgramData } from "../renderer/shader/program/ProgramSystem";
import { initData as initLocationData } from "../renderer/shader/location/LocationSystem";
import { initData as initGLSLSenderData } from "../renderer/shader/glslSender/GLSLSenderSystem";
import { initData as initArrayBufferData } from "../renderer/buffer/ArrayBufferSystem";
import { initData as initIndexBufferData } from "../renderer/buffer/IndexBufferSystem";
import { initData as initDrawRenderCommandBufferData } from "../renderer/draw/DrawRenderCommandBufferSystem";
import { DebugConfig } from "../config/DebugConfig";
import { EScreenSize } from "../renderer/device/EScreenSize";
import { ExtendUtils } from "wonder-commonlib/dist/es2015/utils/ExtendUtils";
import { CompileConfig } from "../config/CompileConfig";
import { IO } from "wonder-fantasy-land/dist/es2015/types/IO";
import { chain, compose } from "../utils/functionalUtils";
import { it, requireCheckFunc } from "../definition/typescript/decorator/contract";
import { expect } from "wonder-expect.js";
import { fromJS, Map } from "immutable";
import { createCanvas, initDevice } from "../renderer/device/initDeviceSystem";
import { isSupportRenderWorkerAndSharedArrayBuffer, setWorkerConfig } from "../device/WorkerDetectSystem";
import { DrawRenderCommandBufferData } from "../renderer/draw/DrawRenderCommandBufferData";
import { IndexBufferData } from "../renderer/buffer/IndexBufferData";
import { ArrayBufferData } from "../renderer/buffer/ArrayBufferData";
import { GLSLSenderData } from "../renderer/shader/glslSender/GLSLSenderData";
import { LocationData } from "../renderer/shader/location/LocationData";
import { ProgramData } from "../renderer/shader/program/ProgramData";
import { BasicMaterialData } from "../component/material/BasicMaterialData";
import { LightMaterialData } from "../component/material/LightMaterialData";
import { initData as initLightData } from "../component/light/LightSystem";
import { AmbientLightData } from "../component/light/AmbientLightData";
import { DirectionLightData } from "../component/light/DirectionLightData";
import { PointLightData } from "../component/light/PointLightData";
import { setIsTest, setLibIsTest } from "../renderer/config/InitConfigSystem";
import { initWorkInstances } from "../worker/WorkerInstanceSystem";
import { TextureCacheData } from "../renderer/texture/TextureCacheData";
import { TextureData } from "../renderer/texture/TextureData";
import { MapManagerData } from "../renderer/texture/MapManagerData";
import { initData as initSendDrawRenderCommandBufferData } from "../renderer/worker/logic_file/draw/SendDrawRenderCommandBufferDataSystem";
import { SendDrawRenderCommandBufferData } from "../renderer/worker/logic_file/draw/SendDrawRenderCommandBufferData";

export var setConfig = (closeContractTest: boolean, InitConfigData: any, WorkerDetectData: any, WorkerInstanceData: any, {
    canvasID = "",
    isTest = DebugConfig.isTest,
    screenSize = EScreenSize.FULL,
    useDevicePixelRatio = false,
    contextConfig = {
        options: {
            alpha: true,
            depth: true,
            stencil: false,
            antialias: true,
            premultipliedAlpha: true,
            preserveDrawingBuffer: false
{'fraction_non_alphanumeric': 0.12444079247694695, 'fraction_numerical': 0.001460786998995709, 'mean_word_length': 5.055279159756772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6922952', 'n_tokens_mistral': 2789, 'n_tokens_neox': 2828, 'n_words': 662}