Download PowerShell-master/test/perf/benchmarks/Engine.Parser.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/perf/benchmarks/Engine.Parser.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/test/perf/benchmarks/Engine.Parser.cs
-
curl -L -o Engine.Parser.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/test/perf/benchmarks/Engine.Parser.cs
594 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Management.Automation.Language; | |
| using BenchmarkDotNet.Attributes; | |
| using MicroBenchmarks; | |
| namespace Engine | |
| { | |
| [] | |
| public class Parsing | |
| { | |
| [] | |
| public Ast UsingStatement() | |
| { | |
| const string Script = @" | |
| using module moduleA | |
| using Assembly assemblyA | |
| using namespace System.IO"; | |
| return Parser.ParseInput(Script, out _, out _); | |
| } | |
| } | |
| } | |