Run formatting on src projects (#5937)

Co-authored-by: BigBigMiao <BigBigMiao@github.com>
Co-authored-by: Keren Fuentes <kedejesu@microsoft.com>
Co-authored-by: yuyi@microsoft.com <Yuanxiang.Ying@microsoft.com>
Co-authored-by: Justin Ormont <justinormont@users.noreply.github.com>
Co-authored-by: Antonio Velazquez <anvelazq@microsoft.com>
Co-authored-by: Frank Dong <frdong@microsoft.com>
Co-authored-by: Mustafa Bal <5262061+mstfbl@users.noreply.github.com>
Co-authored-by: frank-dong-ms <55860649+frank-dong-ms@users.noreply.github.com>
Co-authored-by: Michael Sharp <51342856+michaelgsharp@users.noreply.github.com>
Co-authored-by: Michael Sharp <misharp@microsoft.com>
Co-authored-by: Antonio Velázquez <38739674+antoniovs1029@users.noreply.github.com>
Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
Co-authored-by: Jose Perez Rodriguez <joperezr@microsoft.com>
Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Prashanth Govindarajan <prgovi@microsoft.com>
Co-authored-by: Haytam Zanid <34218324+zHaytam@users.noreply.github.com>
Co-authored-by: Jon Wood <jwood803@users.noreply.github.com>
Co-authored-by: Sam <1965570+MgSam@users.noreply.github.com>
Co-authored-by: Rhys Parry <rhys@i-think22.net>
Co-authored-by: daniel costea <dcostea@users.noreply.github.com>
Co-authored-by: Ramon <56896136+RamonWill@users.noreply.github.com>
Co-authored-by: Xiaoyun Zhang <bigmiao.zhang@gmail.com>
Co-authored-by: Keren Fuentes <dkeren@seas.upenn.edu>
Co-authored-by: Yuanxiang Ying <yingyuanxiang34@sina.com>
Co-authored-by: Piotr Telman <ptelman@users.noreply.github.com>
Co-authored-by: Harish Kulkarni <harishsk@users.noreply.github.com>
Co-authored-by: Jason DeBoever <github@deboever.us>
Co-authored-by: Leo Gaunt <36968548+LeoGaunt@users.noreply.github.com>
Co-authored-by: Keren Fuentes <kerenfuentes313@gmail.com>
Co-authored-by: Ivan Agarský <agarskyivan@gmail.com>
Co-authored-by: Andrej Kmetík <akmetik@gmail.com>
Co-authored-by: Phan Tấn Tài <37982283+4201104140@users.noreply.github.com>
Co-authored-by: Robin Windey <ro.windey@gmail.com>
This commit is contained in:
Jon Wood 2021-10-04 19:09:00 -04:00 коммит произвёл GitHub
Родитель 2da3488d60
Коммит 510f0112d4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
593 изменённых файлов: 2207 добавлений и 2170 удалений

Просмотреть файл

@ -12,12 +12,12 @@ namespace Microsoft.Data.Analysis
{
public partial class DataFrame
{
#pragma warning disable 1591
#pragma warning disable 1591
public static DataFrame operator +(DataFrame df, byte value)
{
return df.Add(value);
}
public static DataFrame operator +(byte value, DataFrame df)
{
return df.ReverseAdd(value);
@ -27,7 +27,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(decimal value, DataFrame df)
{
return df.ReverseAdd(value);
@ -37,7 +37,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(double value, DataFrame df)
{
return df.ReverseAdd(value);
@ -47,7 +47,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(float value, DataFrame df)
{
return df.ReverseAdd(value);
@ -57,7 +57,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(int value, DataFrame df)
{
return df.ReverseAdd(value);
@ -67,7 +67,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(long value, DataFrame df)
{
return df.ReverseAdd(value);
@ -77,7 +77,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(sbyte value, DataFrame df)
{
return df.ReverseAdd(value);
@ -87,7 +87,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(short value, DataFrame df)
{
return df.ReverseAdd(value);
@ -97,7 +97,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(uint value, DataFrame df)
{
return df.ReverseAdd(value);
@ -107,7 +107,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(ulong value, DataFrame df)
{
return df.ReverseAdd(value);
@ -117,7 +117,7 @@ namespace Microsoft.Data.Analysis
{
return df.Add(value);
}
public static DataFrame operator +(ushort value, DataFrame df)
{
return df.ReverseAdd(value);
@ -127,7 +127,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(byte value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -137,7 +137,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(decimal value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -147,7 +147,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(double value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -157,7 +157,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(float value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -167,7 +167,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(int value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -177,7 +177,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(long value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -187,7 +187,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(sbyte value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -197,7 +197,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(short value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -207,7 +207,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(uint value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -217,7 +217,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(ulong value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -227,7 +227,7 @@ namespace Microsoft.Data.Analysis
{
return df.Subtract(value);
}
public static DataFrame operator -(ushort value, DataFrame df)
{
return df.ReverseSubtract(value);
@ -237,7 +237,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(byte value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -247,7 +247,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(decimal value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -257,7 +257,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(double value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -267,7 +267,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(float value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -277,7 +277,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(int value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -287,7 +287,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(long value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -297,7 +297,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(sbyte value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -307,7 +307,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(short value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -317,7 +317,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(uint value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -327,7 +327,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(ulong value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -337,7 +337,7 @@ namespace Microsoft.Data.Analysis
{
return df.Multiply(value);
}
public static DataFrame operator *(ushort value, DataFrame df)
{
return df.ReverseMultiply(value);
@ -347,7 +347,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(byte value, DataFrame df)
{
return df.ReverseDivide(value);
@ -357,7 +357,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(decimal value, DataFrame df)
{
return df.ReverseDivide(value);
@ -367,7 +367,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(double value, DataFrame df)
{
return df.ReverseDivide(value);
@ -377,7 +377,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(float value, DataFrame df)
{
return df.ReverseDivide(value);
@ -387,7 +387,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(int value, DataFrame df)
{
return df.ReverseDivide(value);
@ -397,7 +397,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(long value, DataFrame df)
{
return df.ReverseDivide(value);
@ -407,7 +407,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(sbyte value, DataFrame df)
{
return df.ReverseDivide(value);
@ -417,7 +417,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(short value, DataFrame df)
{
return df.ReverseDivide(value);
@ -427,7 +427,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(uint value, DataFrame df)
{
return df.ReverseDivide(value);
@ -437,7 +437,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(ulong value, DataFrame df)
{
return df.ReverseDivide(value);
@ -447,7 +447,7 @@ namespace Microsoft.Data.Analysis
{
return df.Divide(value);
}
public static DataFrame operator /(ushort value, DataFrame df)
{
return df.ReverseDivide(value);
@ -457,7 +457,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(byte value, DataFrame df)
{
return df.ReverseModulo(value);
@ -467,7 +467,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(decimal value, DataFrame df)
{
return df.ReverseModulo(value);
@ -477,7 +477,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(double value, DataFrame df)
{
return df.ReverseModulo(value);
@ -487,7 +487,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(float value, DataFrame df)
{
return df.ReverseModulo(value);
@ -497,7 +497,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(int value, DataFrame df)
{
return df.ReverseModulo(value);
@ -507,7 +507,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(long value, DataFrame df)
{
return df.ReverseModulo(value);
@ -517,7 +517,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(sbyte value, DataFrame df)
{
return df.ReverseModulo(value);
@ -527,7 +527,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(short value, DataFrame df)
{
return df.ReverseModulo(value);
@ -537,7 +537,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(uint value, DataFrame df)
{
return df.ReverseModulo(value);
@ -547,7 +547,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(ulong value, DataFrame df)
{
return df.ReverseModulo(value);
@ -557,7 +557,7 @@ namespace Microsoft.Data.Analysis
{
return df.Modulo(value);
}
public static DataFrame operator %(ushort value, DataFrame df)
{
return df.ReverseModulo(value);

Просмотреть файл

@ -367,7 +367,7 @@ namespace Microsoft.Data.Analysis
DataFrameColumn column = _columnCollection[columnIndex];
return column.GroupBy(columnIndex, this);
}
/// <summary>
/// Groups the rows of the <see cref="DataFrame"/> by unique values in the <paramref name="columnName"/> column.
/// </summary>

Просмотреть файл

@ -12,7 +12,7 @@ namespace Microsoft.Data.Analysis
{
public abstract partial class DataFrameColumn
{
#pragma warning disable 1591
#pragma warning disable 1591
public static DataFrameColumn operator +(DataFrameColumn left, DataFrameColumn right)
{
return left.Add(right);

Просмотреть файл

@ -118,117 +118,117 @@ namespace Microsoft.Data.Analysis
return this;
}
public PrimitiveColumnContainer<T> ElementwiseEquals(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseEquals(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseEquals(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseEquals(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseEquals(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseEquals(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseNotEquals(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseNotEquals(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseNotEquals(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseNotEquals(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseNotEquals(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseNotEquals(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseGreaterThanOrEqual(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseGreaterThanOrEqual(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseGreaterThanOrEqual(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseGreaterThanOrEqual(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseGreaterThanOrEqual(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseGreaterThanOrEqual(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseLessThanOrEqual(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseLessThanOrEqual(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseLessThanOrEqual(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseLessThanOrEqual(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseLessThanOrEqual(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseLessThanOrEqual(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseGreaterThan(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseGreaterThan(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseGreaterThan(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseGreaterThan(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseGreaterThan(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseGreaterThan(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseLessThan(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseLessThan(PrimitiveColumnContainer<T> right, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseLessThan(this, right, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ElementwiseLessThan(T scalar, PrimitiveColumnContainer<bool> ret)
{
public PrimitiveColumnContainer<T> ElementwiseLessThan(T scalar, PrimitiveColumnContainer<bool> ret)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.ElementwiseLessThan(this, scalar, ret);
return this;
}
}
public PrimitiveColumnContainer<T> ReverseAdd(T scalar)
{
public PrimitiveColumnContainer<T> ReverseAdd(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Add(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseSubtract(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseSubtract(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Subtract(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseMultiply(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseMultiply(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Multiply(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseDivide(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseDivide(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Divide(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseModulo(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseModulo(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Modulo(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseAnd(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseAnd(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.And(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseOr(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseOr(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Or(scalar, this);
return this;
}
public PrimitiveColumnContainer<T> ReverseXor(T scalar)
{
}
public PrimitiveColumnContainer<T> ReverseXor(T scalar)
{
PrimitiveDataFrameColumnArithmetic<T>.Instance.Xor(scalar, this);
return this;
}
}
}
}

Просмотреть файл

@ -103,7 +103,7 @@ namespace Microsoft.Data.Analysis
// Create a new bitMap with all the bits up to length set
var bitMap = new byte[bitMapBufferLength];
bitMap.AsSpan().Fill(255);
int lastByte = 1 << (length - (bitMapBufferLength - 1) * 8);
int lastByte = 1 << (length - (bitMapBufferLength - 1) * 8);
bitMap[bitMapBufferLength - 1] = (byte)(lastByte - 1);
nullDataFrameBuffer = new DataFrameBuffer<byte>(bitMap, bitMapBufferLength);
}

Просмотреть файл

@ -664,7 +664,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Add(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -697,7 +697,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Add(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -739,7 +739,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Add(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -772,7 +772,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Add(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -819,7 +819,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Subtract(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -852,7 +852,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Subtract(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -894,7 +894,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Subtract(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -927,7 +927,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Subtract(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -974,7 +974,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Multiply(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1007,7 +1007,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Multiply(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1049,7 +1049,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Multiply(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1082,7 +1082,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Multiply(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1129,7 +1129,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Divide(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1162,7 +1162,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Divide(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1204,7 +1204,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Divide(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1237,7 +1237,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Divide(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1284,7 +1284,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Modulo(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1317,7 +1317,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Modulo(column._columnContainer);
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1359,7 +1359,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Modulo(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1392,7 +1392,7 @@ namespace Microsoft.Data.Analysis
newColumn._columnContainer.Modulo(Unsafe.As<U, T>(ref value));
return newColumn;
}
else
else
{
if (inPlace)
{
@ -1756,7 +1756,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseEquals(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -1786,7 +1786,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseEquals(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -1832,7 +1832,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseEquals(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -1862,7 +1862,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseEquals(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -1913,7 +1913,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseNotEquals(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -1943,7 +1943,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseNotEquals(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -1989,7 +1989,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseNotEquals(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2019,7 +2019,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseNotEquals(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2064,7 +2064,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThanOrEqual(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2094,7 +2094,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThanOrEqual(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2134,7 +2134,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThanOrEqual(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2164,7 +2164,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThanOrEqual(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2209,7 +2209,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThanOrEqual(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2239,7 +2239,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThanOrEqual(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2279,7 +2279,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThanOrEqual(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2309,7 +2309,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThanOrEqual(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2354,7 +2354,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThan(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2384,7 +2384,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThan(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2424,7 +2424,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThan(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2454,7 +2454,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseGreaterThan(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2499,7 +2499,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThan(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2529,7 +2529,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThan(column._columnContainer, newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{
@ -2569,7 +2569,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThan(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
PrimitiveDataFrameColumn<bool> newColumn = CloneAsBooleanColumn();
PrimitiveDataFrameColumn<decimal> decimalColumn = CloneAsDecimalColumn();
@ -2599,7 +2599,7 @@ namespace Microsoft.Data.Analysis
primitiveColumn._columnContainer.ElementwiseLessThan(Unsafe.As<U, T>(ref value), newColumn._columnContainer);
return newColumn;
}
else
else
{
if (typeof(U) == typeof(decimal))
{

Просмотреть файл

@ -396,7 +396,7 @@ namespace Microsoft.Data.Analysis
return retColumn;
default:
throw new NotSupportedException();
}
}
/// <inheritdoc/>
@ -410,7 +410,7 @@ namespace Microsoft.Data.Analysis
return retColumn;
default:
throw new NotSupportedException();
}
}
/// <inheritdoc/>
@ -424,10 +424,10 @@ namespace Microsoft.Data.Analysis
return retColumn;
default:
throw new NotSupportedException();
}
}
}
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -99,7 +99,7 @@ namespace Microsoft.Data.Analysis
{
return (IPrimitiveColumnComputation<T>)new UShortComputation();
}
else if (typeof(T) == typeof(DateTime))
else if (typeof(T) == typeof(DateTime))
{
return (IPrimitiveColumnComputation<T>)new DateTimeComputation();
}
@ -267,7 +267,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<byte> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<byte>.GetMutableBuffer(buffer);
@ -326,7 +326,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<byte> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<byte>.GetMutableBuffer(buffer);
@ -385,7 +385,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<byte> column)
{
var ret = (byte)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<byte>.GetMutableBuffer(buffer);
@ -444,7 +444,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<byte> column)
{
var ret = (byte)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<byte>.GetMutableBuffer(buffer);
@ -503,7 +503,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<byte> column, out byte ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -540,7 +540,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<byte> column, out byte ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -577,7 +577,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<byte> column, out byte ret)
{
ret = (byte)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -614,7 +614,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<byte> column, out byte ret)
{
ret = (byte)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -694,7 +694,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<char> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<char>.GetMutableBuffer(buffer);
@ -753,7 +753,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<char> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<char>.GetMutableBuffer(buffer);
@ -812,7 +812,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<char> column)
{
var ret = (char)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<char>.GetMutableBuffer(buffer);
@ -871,7 +871,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<char> column)
{
var ret = (char)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<char>.GetMutableBuffer(buffer);
@ -930,7 +930,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<char> column, out char ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -967,7 +967,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<char> column, out char ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1004,7 +1004,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<char> column, out char ret)
{
ret = (char)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1041,7 +1041,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<char> column, out char ret)
{
ret = (char)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1121,7 +1121,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<decimal> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<decimal>.GetMutableBuffer(buffer);
@ -1180,7 +1180,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<decimal> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<decimal>.GetMutableBuffer(buffer);
@ -1239,7 +1239,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<decimal> column)
{
var ret = (decimal)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<decimal>.GetMutableBuffer(buffer);
@ -1298,7 +1298,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<decimal> column)
{
var ret = (decimal)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<decimal>.GetMutableBuffer(buffer);
@ -1357,7 +1357,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<decimal> column, out decimal ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1394,7 +1394,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<decimal> column, out decimal ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1431,7 +1431,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<decimal> column, out decimal ret)
{
ret = (decimal)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1468,7 +1468,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<decimal> column, out decimal ret)
{
ret = (decimal)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1548,7 +1548,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<double> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<double>.GetMutableBuffer(buffer);
@ -1607,7 +1607,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<double> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<double>.GetMutableBuffer(buffer);
@ -1666,7 +1666,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<double> column)
{
var ret = (double)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<double>.GetMutableBuffer(buffer);
@ -1725,7 +1725,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<double> column)
{
var ret = (double)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<double>.GetMutableBuffer(buffer);
@ -1784,7 +1784,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<double> column, out double ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1821,7 +1821,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<double> column, out double ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1858,7 +1858,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<double> column, out double ret)
{
ret = (double)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1895,7 +1895,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<double> column, out double ret)
{
ret = (double)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -1975,7 +1975,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<float> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<float>.GetMutableBuffer(buffer);
@ -2034,7 +2034,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<float> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<float>.GetMutableBuffer(buffer);
@ -2093,7 +2093,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<float> column)
{
var ret = (float)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<float>.GetMutableBuffer(buffer);
@ -2152,7 +2152,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<float> column)
{
var ret = (float)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<float>.GetMutableBuffer(buffer);
@ -2211,7 +2211,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<float> column, out float ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2248,7 +2248,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<float> column, out float ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2285,7 +2285,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<float> column, out float ret)
{
ret = (float)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2322,7 +2322,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<float> column, out float ret)
{
ret = (float)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2402,7 +2402,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<int> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<int>.GetMutableBuffer(buffer);
@ -2461,7 +2461,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<int> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<int>.GetMutableBuffer(buffer);
@ -2520,7 +2520,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<int> column)
{
var ret = (int)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<int>.GetMutableBuffer(buffer);
@ -2579,7 +2579,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<int> column)
{
var ret = (int)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<int>.GetMutableBuffer(buffer);
@ -2638,7 +2638,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<int> column, out int ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2675,7 +2675,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<int> column, out int ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2712,7 +2712,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<int> column, out int ret)
{
ret = (int)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2749,7 +2749,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<int> column, out int ret)
{
ret = (int)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -2829,7 +2829,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<long> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<long>.GetMutableBuffer(buffer);
@ -2888,7 +2888,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<long> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<long>.GetMutableBuffer(buffer);
@ -2947,7 +2947,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<long> column)
{
var ret = (long)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<long>.GetMutableBuffer(buffer);
@ -3006,7 +3006,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<long> column)
{
var ret = (long)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<long>.GetMutableBuffer(buffer);
@ -3065,7 +3065,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<long> column, out long ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3102,7 +3102,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<long> column, out long ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3139,7 +3139,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<long> column, out long ret)
{
ret = (long)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3176,7 +3176,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<long> column, out long ret)
{
ret = (long)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3256,7 +3256,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<sbyte> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<sbyte>.GetMutableBuffer(buffer);
@ -3315,7 +3315,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<sbyte> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<sbyte>.GetMutableBuffer(buffer);
@ -3374,7 +3374,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<sbyte> column)
{
var ret = (sbyte)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<sbyte>.GetMutableBuffer(buffer);
@ -3433,7 +3433,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<sbyte> column)
{
var ret = (sbyte)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<sbyte>.GetMutableBuffer(buffer);
@ -3492,7 +3492,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<sbyte> column, out sbyte ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3529,7 +3529,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<sbyte> column, out sbyte ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3566,7 +3566,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<sbyte> column, out sbyte ret)
{
ret = (sbyte)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3603,7 +3603,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<sbyte> column, out sbyte ret)
{
ret = (sbyte)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3683,7 +3683,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<short> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<short>.GetMutableBuffer(buffer);
@ -3742,7 +3742,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<short> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<short>.GetMutableBuffer(buffer);
@ -3801,7 +3801,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<short> column)
{
var ret = (short)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<short>.GetMutableBuffer(buffer);
@ -3860,7 +3860,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<short> column)
{
var ret = (short)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<short>.GetMutableBuffer(buffer);
@ -3919,7 +3919,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<short> column, out short ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3956,7 +3956,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<short> column, out short ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -3993,7 +3993,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<short> column, out short ret)
{
ret = (short)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4030,7 +4030,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<short> column, out short ret)
{
ret = (short)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4110,7 +4110,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<uint> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<uint>.GetMutableBuffer(buffer);
@ -4169,7 +4169,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<uint> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<uint>.GetMutableBuffer(buffer);
@ -4228,7 +4228,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<uint> column)
{
var ret = (uint)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<uint>.GetMutableBuffer(buffer);
@ -4287,7 +4287,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<uint> column)
{
var ret = (uint)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<uint>.GetMutableBuffer(buffer);
@ -4346,7 +4346,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<uint> column, out uint ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4383,7 +4383,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<uint> column, out uint ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4420,7 +4420,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<uint> column, out uint ret)
{
ret = (uint)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4457,7 +4457,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<uint> column, out uint ret)
{
ret = (uint)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4537,7 +4537,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<ulong> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ulong>.GetMutableBuffer(buffer);
@ -4596,7 +4596,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<ulong> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ulong>.GetMutableBuffer(buffer);
@ -4655,7 +4655,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<ulong> column)
{
var ret = (ulong)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ulong>.GetMutableBuffer(buffer);
@ -4714,7 +4714,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<ulong> column)
{
var ret = (ulong)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ulong>.GetMutableBuffer(buffer);
@ -4773,7 +4773,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<ulong> column, out ulong ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4810,7 +4810,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<ulong> column, out ulong ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4847,7 +4847,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<ulong> column, out ulong ret)
{
ret = (ulong)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4884,7 +4884,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<ulong> column, out ulong ret)
{
ret = (ulong)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -4964,7 +4964,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMax(PrimitiveColumnContainer<ushort> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ushort>.GetMutableBuffer(buffer);
@ -5023,7 +5023,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeMin(PrimitiveColumnContainer<ushort> column)
{
var ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ushort>.GetMutableBuffer(buffer);
@ -5082,7 +5082,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeProduct(PrimitiveColumnContainer<ushort> column)
{
var ret = (ushort)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ushort>.GetMutableBuffer(buffer);
@ -5141,7 +5141,7 @@ namespace Microsoft.Data.Analysis
public void CumulativeSum(PrimitiveColumnContainer<ushort> column)
{
var ret = (ushort)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var mutableBuffer = DataFrameBuffer<ushort>.GetMutableBuffer(buffer);
@ -5200,7 +5200,7 @@ namespace Microsoft.Data.Analysis
public void Max(PrimitiveColumnContainer<ushort> column, out ushort ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -5237,7 +5237,7 @@ namespace Microsoft.Data.Analysis
public void Min(PrimitiveColumnContainer<ushort> column, out ushort ret)
{
ret = column.Buffers[0].ReadOnlySpan[0];
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -5274,7 +5274,7 @@ namespace Microsoft.Data.Analysis
public void Product(PrimitiveColumnContainer<ushort> column, out ushort ret)
{
ret = (ushort)1;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;
@ -5311,7 +5311,7 @@ namespace Microsoft.Data.Analysis
public void Sum(PrimitiveColumnContainer<ushort> column, out ushort ret)
{
ret = (ushort)0;
for (int b = 0 ; b < column.Buffers.Count; b++)
for (int b = 0; b < column.Buffers.Count; b++)
{
var buffer = column.Buffers[b];
var readOnlySpan = buffer.ReadOnlySpan;

Просмотреть файл

@ -27,12 +27,12 @@ namespace Microsoft.Data.Analysis
return ret;
}
public static StringDataFrameColumn operator+(StringDataFrameColumn column, string value)
public static StringDataFrameColumn operator +(StringDataFrameColumn column, string value)
{
return column.Add(value);
}
public static StringDataFrameColumn operator+(string value, StringDataFrameColumn column)
public static StringDataFrameColumn operator +(string value, StringDataFrameColumn column)
{
return Add(value, column);
}
@ -85,7 +85,7 @@ namespace Microsoft.Data.Analysis
ret[i] = (string)left[i] == right[i]?.ToString();
}
return ret;
}
/// <inheritdoc/>

Просмотреть файл

@ -15,7 +15,7 @@ namespace Microsoft.Extensions.ML
/// <summary>
/// Encapsulates the data and logic required for loading and reloading PredictionEngine object pools.
/// </summary>
internal class PoolLoader<TData, TPrediction>: IDisposable
internal class PoolLoader<TData, TPrediction> : IDisposable
where TData : class
where TPrediction : class, new()
{

Просмотреть файл

@ -21,7 +21,7 @@ namespace Microsoft.Extensions.ML
private readonly MLOptions _mlContextOptions;
private readonly IOptionsFactory<PredictionEnginePoolOptions<TData, TPrediction>> _predictionEngineOptions;
private readonly IServiceProvider _serviceProvider;
private readonly PoolLoader<TData,TPrediction> _defaultEnginePool;
private readonly PoolLoader<TData, TPrediction> _defaultEnginePool;
private readonly ConcurrentDictionary<string, PoolLoader<TData, TPrediction>> _namedPools;
public PredictionEnginePool(IServiceProvider serviceProvider,

Просмотреть файл

@ -17,4 +17,4 @@ namespace Microsoft.Extensions.ML
/// </summary>
public ModelLoader ModelLoader { get; set; }
}
}
}

Просмотреть файл

@ -39,4 +39,4 @@ namespace Microsoft.Extensions.ML
/// <inheritdoc />
public override bool Return(PredictionEngine<TData, TPrediction> obj) => true;
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Foundation under one or more agreements.
// Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -134,4 +134,4 @@ namespace Microsoft.ML.AutoML
ImagePathColumnNames = new Collection<string>();
}
}
}
}

Просмотреть файл

@ -37,4 +37,4 @@ namespace Microsoft.ML.AutoML
BestRun = bestRun;
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Foundation under one or more agreements.
// Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -159,4 +159,4 @@ namespace Microsoft.ML.AutoML
return BestResultUtil.GetBestRun(results, MetricsAgent, OptimizingMetricInfo.IsMaximizing);
}
}
}
}

Просмотреть файл

@ -136,4 +136,4 @@ namespace Microsoft.ML.AutoML
return BestResultUtil.GetBestRun(results, MetricsAgent, OptimizingMetricInfo.IsMaximizing);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -66,7 +66,7 @@ namespace Microsoft.ML.AutoML
purposeGroupId = GetPurposeGroupId(t.Item1.ColumnIndex, t.Item2.Purpose)
}
into g
select g;
select g;
foreach (var g in grouped)
{

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -23,7 +23,7 @@ namespace Microsoft.ML.AutoML
public bool AllowQuote { get; set; }
public bool AllowSparse { get; set; }
public bool ReadMultilines { get; set; }
public bool ReadMultilines { get; set; }
public ColumnSplitResult(bool isSuccess, char? separator, bool allowQuote, bool readMultilines, bool allowSparse, int columnCount)
{
@ -56,10 +56,10 @@ namespace Microsoft.ML.AutoML
var foundAny = false;
var result = default(ColumnSplitResult);
foreach (var perm in (from _allowSparse in sparse
from _allowQuote in quote
from _sep in separatorCandidates
from _tryMultiline in tryMultiline
select new { _allowSparse, _allowQuote, _sep, _tryMultiline }))
from _allowQuote in quote
from _sep in separatorCandidates
from _tryMultiline in tryMultiline
select new { _allowSparse, _allowQuote, _sep, _tryMultiline }))
{
var options = new TextLoader.Options
{
@ -120,10 +120,10 @@ namespace Microsoft.ML.AutoML
return true;
}
// fail gracefully if unable to instantiate data view with swept arguments
catch(Exception)
catch (Exception)
{
return false;
}
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -71,4 +71,4 @@ namespace Microsoft.ML.AutoML
return _mlContext.MulticlassClassification.Evaluate(data, labelColumn);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -9,6 +9,6 @@ namespace Microsoft.ML.AutoML
internal interface IRunner<TRunDetail> where TRunDetail : RunDetail
{
(SuggestedPipelineRunDetail suggestedPipelineRunDetail, TRunDetail runDetail)
Run (SuggestedPipeline pipeline, DirectoryInfo modelDirectory, int iterationNum);
Run(SuggestedPipeline pipeline, DirectoryInfo modelDirectory, int iterationNum);
}
}
}

Просмотреть файл

@ -58,4 +58,4 @@ namespace Microsoft.ML.AutoML
new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}_{foldNum}.zip"));
}
}
}
}

Просмотреть файл

@ -66,4 +66,4 @@ namespace Microsoft.ML.AutoML
new FileInfo(Path.Combine(modelDirectory.FullName, $"Model{iterationNum}.zip"));
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -230,4 +230,4 @@ namespace Microsoft.ML.AutoML
}
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -433,4 +433,4 @@ namespace Microsoft.ML.AutoML
return eis;
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -249,4 +249,4 @@ namespace Microsoft.ML.AutoML
columnInfo.LabelColumnName, null);
}
}
}
}

Просмотреть файл

@ -27,7 +27,7 @@ namespace Microsoft.ML.AutoML
var property = new Dictionary<string, object>();
property.Add(nameof(MatrixFactorizationTrainer.Options.MatrixColumnIndexColumnName), columnInfo.UserIdColumnName);
property.Add(nameof(MatrixFactorizationTrainer.Options.MatrixRowIndexColumnName), columnInfo.ItemIdColumnName);
return TrainerExtensionUtil.BuildPipelineNode(TrainerExtensionCatalog.GetTrainerName(this), sweepParams, columnInfo.LabelColumnName, additionalProperties:property);
return TrainerExtensionUtil.BuildPipelineNode(TrainerExtensionCatalog.GetTrainerName(this), sweepParams, columnInfo.LabelColumnName, additionalProperties: property);
}
public IEnumerable<SweepableParam> GetHyperparamSweepRanges()

Просмотреть файл

@ -184,4 +184,4 @@ namespace Microsoft.ML.AutoML
columnInfo.LabelColumnName);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -433,7 +433,7 @@ namespace Microsoft.ML.AutoML
}
// include all numeric columns of type R4
foreach(var intermediateCol in intermediateCols)
foreach (var intermediateCol in intermediateCols)
{
if (intermediateCol.Purpose == ColumnPurpose.NumericFeature &&
intermediateCol.Type.GetItemType() == NumberDataViewType.Single)
@ -486,7 +486,7 @@ namespace Microsoft.ML.AutoML
continue;
}
for(var i = 0; ; i++)
for (var i = 0; ; i++)
{
var newColName = $"{desiredColName}{i}";
if (!existingColNames.Contains(newColName))

Просмотреть файл

@ -40,4 +40,4 @@ namespace Microsoft.ML.AutoML
return inferredTransforms;
}
}
}
}

Просмотреть файл

@ -33,4 +33,4 @@ namespace Microsoft.ML.AutoML
return columnType is KeyDataViewType;
}
}
}
}

Просмотреть файл

@ -38,4 +38,4 @@ namespace Microsoft.ML.AutoML
return cols;
}
}
}
}

Просмотреть файл

@ -27,4 +27,4 @@ namespace Microsoft.ML.AutoML
_channel.Error(MessageSensitivity.None, message);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -125,7 +125,8 @@ namespace Microsoft.ML.CodeGenerator.CodeGenerator.CSharp.AzureCodeGenerator
ConsumeModel,
ModelProject,
};
} else if(_settings.IsObjectDetection)
}
else if (_settings.IsObjectDetection)
{
project = new CSharpProject()
{

Просмотреть файл

@ -40,4 +40,4 @@ namespace Microsoft.ML.CodeGenerator.CodeGenerator.CSharp
Utilities.Utils.WriteOutputToFiles(File, Name, location);
}
}
}
}

Просмотреть файл

@ -19,7 +19,7 @@ namespace Microsoft.ML.CodeGenerator.CodeGenerator
/// <param name="location">full path of destinate directory</param>
public void WriteToDisk(string location)
{
foreach ( var file in this)
foreach (var file in this)
{
file.WriteToDisk(location);
}

Просмотреть файл

@ -40,4 +40,4 @@ namespace Microsoft.ML.CodeGenerator.CodeGenerator.CSharp
Utilities.Utils.WriteOutputToFiles(File, Name, location);
}
}
}
}

Просмотреть файл

@ -18,7 +18,7 @@ namespace Microsoft.ML.CodeGenerator.CodeGenerator
public void WriteToDisk(string folder)
{
foreach ( var project in this)
foreach (var project in this)
{
project.WriteToDisk(Path.Combine(folder, project.Name));
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -139,7 +139,7 @@ namespace Microsoft.ML.CodeGenerator.CSharp
string modelBuilderCSFileContent) GenerateConsoleAppProjectContents(string namespaceValue,
Type labelTypeCsharp, bool includeLightGbmPackage, bool includeMklComponentsPackage,
bool includeFastTreePackage, bool includeImageTransformerPackage,
bool includeImageClassificationPackage, bool includeRecommenderPackage, bool includeOnnxPackage = false , bool includeResNet18Package = false)
bool includeImageClassificationPackage, bool includeRecommenderPackage, bool includeOnnxPackage = false, bool includeResNet18Package = false)
{
var predictProgramCSFileContent = GeneratePredictProgramCSFileContent(namespaceValue);
predictProgramCSFileContent = Utils.FormatCode(predictProgramCSFileContent);
@ -294,7 +294,8 @@ namespace Microsoft.ML.CodeGenerator.CSharp
private string GenerateModelOutputCSFileContent(string predictionLabelType, string namespaceValue)
{
ModelOutputClass modelOutputClass = new ModelOutputClass() {
ModelOutputClass modelOutputClass = new ModelOutputClass()
{
TaskType = _settings.MlTask.ToString(),
PredictionLabelType = predictionLabelType,
Namespace = namespaceValue,
@ -305,7 +306,8 @@ namespace Microsoft.ML.CodeGenerator.CSharp
private string GenerateModelInputCSFileContent(string namespaceValue, IList<string> classLabels)
{
ModelInputClass modelInputClass = new ModelInputClass() {
ModelInputClass modelInputClass = new ModelInputClass()
{
Namespace = namespaceValue,
ClassLabels = classLabels,
Target = _settings.Target,

Просмотреть файл

@ -6,10 +6,10 @@ using Microsoft.ML.CodeGenerator.CodeGenerator;
namespace Microsoft.ML.CodeGenerator
{
public interface ICSharpFile: IWritable
public interface ICSharpFile : IWritable
{
public string Name { get; set; }
public string File { get; set; }
}
}
}

Просмотреть файл

@ -10,4 +10,4 @@ namespace Microsoft.ML.CodeGenerator
{
void GenerateOutput();
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -60,7 +60,7 @@ namespace Microsoft.ML.CodeGenerator.Utilities
// Get normalized and unique column names. If there are duplicate column names, the
// differentiator suffix '_col_x' will be added to each column name, where 'x' is
// the load order for a given column.
List<string> normalizedColumnNames= GenerateColumnNames(featureColumns.Select(column => column.Name).ToList());
List<string> normalizedColumnNames = GenerateColumnNames(featureColumns.Select(column => column.Name).ToList());
foreach (string columnName in normalizedColumnNames)
sampleData[columnName] = null;
if (rowCursor.MoveNext())
@ -71,7 +71,7 @@ namespace Microsoft.ML.CodeGenerator.Utilities
// as there may exist duplicate column names. In this case, sampleData
// column names may have the differentiator suffix of '_col_x' added,
// which requires access to each column name in through its index.
for(int i = 0; i < featureColumns.Count(); i++)
for (int i = 0; i < featureColumns.Count(); i++)
{
var getGenericGetGetterMethod = getGetGetterMethod.MakeGenericMethod(featureColumns[i].Type.RawType);
string val = getGenericGetGetterMethod.Invoke(null, new object[] { rowCursor, featureColumns[i] }) as string;
@ -305,10 +305,10 @@ namespace Microsoft.ML.CodeGenerator.Utilities
// differentiator suffix '_col_x' will be added to each column name, where 'x' is
// the load order for a given column.
List<string> normalizedColumnNames = GenerateColumnNames(columnNames);
for (int i = 1; i < result.Count; i+=3)
for (int i = 1; i < result.Count; i += 3)
{
// Get normalized column name for correctly typed class property name
result[i] += normalizedColumnNames[i/3];
result[i] += normalizedColumnNames[i / 3];
result[i] += "{get; set;}";
}
return result;

Просмотреть файл

@ -8,4 +8,4 @@ namespace Microsoft.ML.Tools.Console
{
public static int Main(string[] args) => Maml.Main(args);
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -100,4 +100,4 @@ namespace Microsoft.ML.CommandLine
public Type SignatureType { get; set; }
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -1235,7 +1235,8 @@ namespace Microsoft.ML.CommandLine
// Used for help and composing settings strings.
public object DefaultValue { get { return _arg.DefaultValue; } }
public bool IsRequired {
public bool IsRequired
{
get { return ArgumentType.Required == (Kind & ArgumentType.Required); }
}
@ -2239,15 +2240,18 @@ namespace Microsoft.ML.CommandLine
return bldr.ToString();
}
public bool IsRequired {
public bool IsRequired
{
get { return 0 != (Kind & ArgumentType.Required); }
}
public bool AllowMultiple {
public bool AllowMultiple
{
get { return 0 != (Kind & ArgumentType.Multiple); }
}
public bool Unique {
public bool Unique
{
get { return 0 != (Kind & ArgumentType.Unique); }
}
@ -2261,7 +2265,8 @@ namespace Microsoft.ML.CommandLine
get { return IsComponentFactory && Field.FieldType.IsArray; }
}
public bool IsCustomItemType {
public bool IsCustomItemType
{
get { return _infoCustom != null; }
}
}
@ -2438,4 +2443,4 @@ namespace Microsoft.ML.CommandLine
}
}
}
}
}

Просмотреть файл

@ -20,4 +20,4 @@ namespace Microsoft.ML.CommandLine
Name = name;
}
}
}
}

Просмотреть файл

@ -17,4 +17,4 @@ namespace Microsoft.ML.CommandLine
{
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -498,4 +498,4 @@ namespace Microsoft.ML.Data
return new AnnotationRow(annotations);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -380,4 +380,4 @@ namespace Microsoft.ML.Data
return "";
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -141,4 +141,4 @@ namespace Microsoft.ML.Runtime
void SetMetric(int index, Double value);
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -55,4 +55,4 @@ namespace Microsoft.ML.Data
/// </summary>
ValueMapper<TSrc, TDst, TDist> GetMapper<TSrc, TDst, TDist>();
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -50,4 +50,4 @@ namespace Microsoft.ML.Data
base.Dispose(disposing);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -50,4 +50,4 @@ namespace Microsoft.ML.Data
return Input.GetGetter<TValue>(column);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -362,4 +362,4 @@ namespace Microsoft.ML
return true;
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -257,4 +257,4 @@ namespace Microsoft.ML
}
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -88,4 +88,4 @@ namespace Microsoft.ML
}
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -407,17 +407,17 @@ namespace Microsoft.ML.Runtime
}
switch (kind)
{
case ProgressEvent.EventKind.Stop:
_ectx.Assert(entry == null);
info.IsFinished = true;
_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, ProgressEvent.EventKind.Stop));
break;
default:
_ectx.Assert(entry != null);
_ectx.Assert(kind == ProgressEvent.EventKind.Progress);
_ectx.Assert(!info.IsFinished);
_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, entry));
break;
case ProgressEvent.EventKind.Stop:
_ectx.Assert(entry == null);
info.IsFinished = true;
_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, ProgressEvent.EventKind.Stop));
break;
default:
_ectx.Assert(entry != null);
_ectx.Assert(kind == ProgressEvent.EventKind.Progress);
_ectx.Assert(!info.IsFinished);
_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, entry));
break;
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -491,7 +491,7 @@ namespace Microsoft.ML
if (!_entries.TryGetValue(pathEnt, out entry))
{
//Read old zip file that use backslash in filename
var pathEntTmp = pathEnt.Replace("/","\\");
var pathEntTmp = pathEnt.Replace("/", "\\");
if (!_entries.TryGetValue(pathEntTmp, out entry))
{
return null;

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -486,4 +486,4 @@ namespace Microsoft.ML.Data
Contracts.CheckValueOrNull(custom);
}
}
}
}

Просмотреть файл

@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -78,4 +78,4 @@ namespace Microsoft.ML.Data
/// </summary>
protected abstract bool MoveNextCore();
}
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше