<commit_before>import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import * as vs from "vscode";
import { dartCodeExtensionIdentifier } from "../../shared/constants";
import { internalApiSymbol } from "../../shared/symbols";
import { InternalExtensionApi } from "../../shared/vscode/interfaces";
import { fsPath } from "../../shared/vscode/utils";
import { sb, waitForResult } from "../helpers";
import sinon = require("sinon");

describe("flutter for web", () => {
	it.skip("created a templated project", async () => {
		const executeCommand = sb.stub(vs.commands, "executeCommand").callThrough();
		const getPackagesCommand = executeCommand.withArgs("dart.getPackages", sinon.match.any).resolves();

		const sampleProjectFolder = fsPath(vs.workspace.workspaceFolders[0].uri);
		const expectedString = "import 'package:flutter_web";
		const mainFile = path.join(sampleProjectFolder, "web", "main.dart");

		// Creating the sample may be a little slow, so allow up to 60 seconds for it.
		await waitForResult(() => fs.existsSync(mainFile), "web/main.dart did not exist", 60000);

		// Wait for up to 10 seconds for the content to match, as the file may be updated after creation.
		await waitForResult(() => {
			const contents = fs.readFileSync(mainFile);
			return contents.indexOf(expectedString) !== -1;<commit_msg>Revert "Skip another Flutter Web test"<commit_after>import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import * as vs from "vscode";
import { dartCodeExtensionIdentifier } from "../../shared/constants";
import { internalApiSymbol } from "../../shared/symbols";
import { InternalExtensionApi } from "../../shared/vscode/interfaces";
import { fsPath } from "../../shared/vscode/utils";
import { sb, waitForResult } from "../helpers";
import sinon = require("sinon");

describe("flutter for web", () => {
	it("created a templated project", async () => {
		const executeCommand = sb.stub(vs.commands, "executeCommand").callThrough();
		const getPackagesCommand = executeCommand.withArgs("dart.getPackages", sinon.match.any).resolves();

		const sampleProjectFolder = fsPath(vs.workspace.workspaceFolders[0].uri);
		const expectedString = "import 'package:flutter_web";
		const mainFile = path.join(sampleProjectFolder, "web", "main.dart");

		// Creating the sample may be a little slow, so allow up to 60 seconds for it.
		await waitForResult(() => fs.existsSync(mainFile), "web/main.dart did not exist", 60000);

		// Wait for up to 10 seconds for the content to match, as the file may be updated after creation.
		await waitForResult(() => {
			const contents = fs.readFileSync(mainFile);
			return contents.indexOf(expectedString) !== -1;
{'fraction_non_alphanumeric': 0.1459400146305779, 'fraction_numerical': 0.008046817849305048, 'mean_word_length': 4.570264765784114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1461241', 'n_tokens_mistral': 837, 'n_tokens_neox': 799, 'n_words': 250}