<commit_before>module BABYLON {
	
	export interface ILoadingScreen {
		displayLoadingUI : () => void;
		hideLoadingUI : () => void;
        //default loader support
        loadingUIBackgroundColor : string;
        loadingUIText : string;
                
	}
	
	export class DefaultLoadingScreen implements ILoadingScreen {
		
		private _loadingDiv: HTMLDivElement;
        private _loadingTextDiv: HTMLDivElement;
		
		constructor(private _renderingCanvas : HTMLCanvasElement, private _loadingText = "", private _loadingDivBackgroundColor = "black") {
			
		}
		
		public displayLoadingUI(): void {
			this._loadingDiv = document.createElement("div");

		    this._loadingDiv.id = "babylonjsLoadingDiv";
            this._loadingDiv.style.opacity = "0";
            this._loadingDiv.style.transition = "opacity 1.5s ease";

            // Loading text
            this._loadingTextDiv = document.createElement("div");
            this._loadingTextDiv.style.position = "absolute";
            this._loadingTextDiv.style.left = "0";
            this._loadingTextDiv.style.top = "50%";
            this._loadingTextDiv.style.marginTop = "80px";
            this._loadingTextDiv.style.width = "100%";
            this._loadingTextDiv.style.height = "20px";<commit_msg>Bugfix : Do not add a loading screen if there is already one<commit_after>module BABYLON {
	
	export interface ILoadingScreen {
		displayLoadingUI : () => void;
		hideLoadingUI : () => void;
        //default loader support
        loadingUIBackgroundColor : string;
        loadingUIText : string;
                
	}
	
	export class DefaultLoadingScreen implements ILoadingScreen {
		
		private _loadingDiv: HTMLDivElement;
        private _loadingTextDiv: HTMLDivElement;
		
		constructor(private _renderingCanvas : HTMLCanvasElement, private _loadingText = "", private _loadingDivBackgroundColor = "black") {
			
		}
		
		public displayLoadingUI(): void {
            if (this._loadingDiv) {
                // Do not add a loading screen if there is already one
                return;
            }
			this._loadingDiv = document.createElement("div");

		    this._loadingDiv.id = "babylonjsLoadingDiv";
            this._loadingDiv.style.opacity = "0";
            this._loadingDiv.style.transition = "opacity 1.5s ease";

            // Loading text
            this._loadingTextDiv = document.createElement("div");
            this._loadingTextDiv.style.position = "absolute";
            this._loadingTextDiv.style.left = "0";
            this._loadingTextDiv.style.top = "50%";
            this._loadingTextDiv.style.marginTop = "80px";
            this._loadingTextDiv.style.width = "100%";
            this._loadingTextDiv.style.height = "20px";
{'fraction_non_alphanumeric': 0.09801762114537445, 'fraction_numerical': 0.009544787077826725, 'mean_word_length': 2.5343709468223086, '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': '5544976', 'n_tokens_mistral': 774, 'n_tokens_neox': 702, 'n_words': 152}