Skip to content

Commit b4f6b5c

Browse files
srsaggamDmitry-A
authored andcommitted
removed header (dotnet#228)
* removed header * added auto generated header
1 parent 897965b commit b4f6b5c

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

src/mlnet.Test/ApprovalTests/ConsoleCodeGeneratorTests.GeneratedTrainCodeTest.approved.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
2-
// The .NET Foundation licenses this file to you under the MIT license.
3-
// See the LICENSE file in the project root for more information.
1+
// This is an auto generated file by ML.NET CLI
42

53
using System;
64
using System.IO;

src/mlnet/Templates/Console/MLCodeGen.cs

+3-12
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,9 @@ public partial class MLCodeGen : MLCodeGenBase
2727
/// </summary>
2828
public virtual string TransformText()
2929
{
30-
this.Write(@"// Licensed to the .NET Foundation under one or more agreements.
31-
// The .NET Foundation licenses this file to you under the MIT license.
32-
// See the LICENSE file in the project root for more information.
33-
34-
using System;
35-
using System.IO;
36-
using System.Linq;
37-
using Microsoft.ML;
38-
using Microsoft.ML.Core.Data;
39-
using Microsoft.ML.Data;
40-
using Microsoft.Data.DataView;
41-
");
30+
this.Write("// This is an auto generated file by ML.NET CLI\r\n\r\nusing System;\r\nusing System.IO" +
31+
";\r\nusing System.Linq;\r\nusing Microsoft.ML;\r\nusing Microsoft.ML.Core.Data;\r\nusing" +
32+
" Microsoft.ML.Data;\r\nusing Microsoft.Data.DataView;\r\n");
4233
this.Write(this.ToStringHelper.ToStringWithCulture(GeneratedUsings));
4334
this.Write("\r\n\r\nnamespace ");
4435
this.Write(this.ToStringHelper.ToStringWithCulture(Namespace));

src/mlnet/Templates/Console/MLCodeGen.tt

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<#@ import namespace="System.Text.RegularExpressions" #>
66
<#@ import namespace="System.Collections.Generic" #>
77
<#@ import namespace="Microsoft.ML.CLI.Utilities" #>
8-
// Licensed to the .NET Foundation under one or more agreements.
9-
// The .NET Foundation licenses this file to you under the MIT license.
10-
// See the LICENSE file in the project root for more information.
8+
// This is an auto generated file by ML.NET CLI
119

1210
using System;
1311
using System.IO;

0 commit comments

Comments
 (0)