<commit_before>/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

'use strict';

import {IPosition, ICommonCodeEditor} from 'vs/editor/common/editorCommon';
import strings = require('vs/base/common/strings');
import snippets = require('vs/editor/contrib/snippet/common/snippet');
import {Range} from 'vs/editor/common/core/range';
import {SnippetController} from 'vs/editor/contrib/snippet/common/snippetController';
import {ExtensionsRegistry} from 'vs/platform/extensions/common/extensionsRegistry';


import emmet = require('emmet');

interface ModeScopeMap {
    [key: string]: string;
}

let modeScopesMap: ModeScopeMap = null;

export class EditorAccessor implements emmet.Editor {

	editor: ICommonCodeEditor;
	syntaxProfiles: any;

	private _hasMadeEdits: boolean;

	emmetSupportedModes = ['html', 'razor', 'css', 'less', 'sass', 'scss', 'stylus', 'xml', 'xsl', 'jade', 'handlebars', 'ejs', 'hbs', 'jsx', 'tsx', 'erb', 'php', 'twig'];

	constructor(editor: ICommonCodeEditor, syntaxProfiles: any) {
		this.editor = editor;
		this.syntaxProfiles = syntaxProfiles;
		this._hasMadeEdits = false;
	}

	public isEmmetEnabledMode(): boolean {
		return this.emmetSupportedModes.indexOf(this.getSyntax()) !== -1;<commit_msg>Fix white space<commit_after>/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

'use strict';

import {IPosition, ICommonCodeEditor} from 'vs/editor/common/editorCommon';
import strings = require('vs/base/common/strings');
import snippets = require('vs/editor/contrib/snippet/common/snippet');
import {Range} from 'vs/editor/common/core/range';
import {SnippetController} from 'vs/editor/contrib/snippet/common/snippetController';
import {ExtensionsRegistry} from 'vs/platform/extensions/common/extensionsRegistry';


import emmet = require('emmet');

interface ModeScopeMap {
	[key: string]: string;
}

let modeScopesMap: ModeScopeMap = null;

export class EditorAccessor implements emmet.Editor {

	editor: ICommonCodeEditor;
	syntaxProfiles: any;

	private _hasMadeEdits: boolean;

	emmetSupportedModes = ['html', 'razor', 'css', 'less', 'sass', 'scss', 'stylus', 'xml', 'xsl', 'jade', 'handlebars', 'ejs', 'hbs', 'jsx', 'tsx', 'erb', 'php', 'twig'];

	constructor(editor: ICommonCodeEditor, syntaxProfiles: any) {
		this.editor = editor;
		this.syntaxProfiles = syntaxProfiles;
		this._hasMadeEdits = false;
	}

	public isEmmetEnabledMode(): boolean {
		return this.emmetSupportedModes.indexOf(this.getSyntax()) !== -1;
{'fraction_non_alphanumeric': 0.24582104228121926, 'fraction_numerical': 0.0006555227794165847, 'mean_word_length': 2.9843342036553526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4327429', 'n_tokens_mistral': 869, 'n_tokens_neox': 837, 'n_words': 213}