From 4476d10ba9c11087d1c32c7883434c9594188d24 Mon Sep 17 00:00:00 2001 From: Lu Xun Date: Sun, 14 Nov 2021 10:21:20 -0800 Subject: [PATCH] update copyright --- Guan/Logic/AddFunc.cs | 18 ++++-------------- Guan/Logic/AndFunc.cs | 13 ++++--------- Guan/Logic/ArgumentDescription.cs | 7 ++++--- Guan/Logic/AssertPredicateType.cs | 7 ++++--- Guan/Logic/AutoLoadResource.cs | 7 ++++--- Guan/Logic/BinaryFunc.cs | 13 ++++--------- Guan/Logic/BooleanPredicateResolver.cs | 8 ++++---- Guan/Logic/ComparisonFunc.cs | 13 ++++--------- Guan/Logic/CompositePropertyContext.cs | 7 ++++--- Guan/Logic/CompoundTerm.cs | 8 ++++---- Guan/Logic/ConsoleSink.cs | 7 ++++--- Guan/Logic/Constant.cs | 7 ++++--- Guan/Logic/Constraint.cs | 8 ++++---- Guan/Logic/ConstraintPredicateType.cs | 7 ++++--- Guan/Logic/CutPredicateType.cs | 7 ++++--- Guan/Logic/DynamicPredicateType.cs | 13 ++++--------- Guan/Logic/EmptyPropertyContext.cs | 17 ++++------------- Guan/Logic/EnumerablePredicateType.cs | 8 ++++---- Guan/Logic/EvaluatedFunctor.cs | 7 ++++--- Guan/Logic/EventLogWriter.cs | 7 ++++--- Guan/Logic/FailPredicateType.cs | 7 ++++--- Guan/Logic/ForwardCutPredicateType.cs | 7 ++++--- Guan/Logic/Functor.cs | 7 ++++--- Guan/Logic/GetFunc.cs | 13 ++++--------- Guan/Logic/GetValPredicateType.cs | 7 ++++--- Guan/Logic/GroundPredicateResolver.cs | 7 ++++--- Guan/Logic/GuanException.cs | 16 ++++------------ Guan/Logic/GuanExpression.cs | 16 ++++------------ Guan/Logic/GuanFunc.cs | 16 ++++------------ Guan/Logic/GuanObject.cs | 7 ++++--- Guan/Logic/GuanPredicate.cs | 19 ++++--------------- Guan/Logic/ICompoundTerm.cs | 13 ------------- Guan/Logic/IFunctorProvider.cs | 7 ++++--- Guan/Logic/IGuanExpressionContext.cs | 13 ++++--------- Guan/Logic/IPropertyContext.cs | 17 ++++------------- Guan/Logic/IWaitingTask.cs | 7 ++++--- Guan/Logic/IndexedVariable.cs | 7 ++++--- Guan/Logic/IsPredicateType.cs | 7 ++++--- Guan/Logic/JsonPropertyContext.cs | 10 ++++------ Guan/Logic/LinkedVariable.cs | 7 ++++--- Guan/Logic/ListTerm.cs | 7 ++++--- Guan/Logic/Literal.cs | 13 ++++--------- Guan/Logic/LogPredicateType.cs | 7 ++++--- Guan/Logic/MathsFunc.cs | 7 ++++--- Guan/Logic/Module.cs | 7 ++++--- Guan/Logic/ModuleProvider.cs | 7 ++++--- Guan/Logic/NotFunc.cs | 13 ++++--------- Guan/Logic/NotPredicateType.cs | 7 ++++--- Guan/Logic/ObjectCompundTerm.cs | 12 ++++++------ Guan/Logic/OrFunc.cs | 13 ++++--------- Guan/Logic/OutputVariable.cs | 13 ++++--------- Guan/Logic/ParallelRulePredicateResolver.cs | 7 ++++--- Guan/Logic/PredicateResolver.cs | 7 ++++--- Guan/Logic/PredicateType.cs | 8 ++++---- Guan/Logic/PropertyMatchFunc.cs | 16 ++++------------ Guan/Logic/Query.cs | 7 ++++--- Guan/Logic/QueryContext.cs | 7 ++++--- Guan/Logic/QueryToListPredicateType.cs | 7 ++++--- Guan/Logic/RegexPredicateType.cs | 7 ++++--- Guan/Logic/ReleaseAssert.cs | 16 ++++------------ Guan/Logic/ResolveOrder.cs | 7 ++++--- Guan/Logic/Rule.cs | 8 ++++---- Guan/Logic/RulePredicateResolver.cs | 8 ++++---- Guan/Logic/SetValPredicateType.cs | 7 ++++--- Guan/Logic/SleepPredicateType.cs | 7 ++++--- Guan/Logic/SplitFunc.cs | 7 ++++--- Guan/Logic/StandaloneFunc.cs | 14 ++++---------- Guan/Logic/StringFunc.cs | 19 ++++--------------- Guan/Logic/Term.cs | 7 ++++--- Guan/Logic/TermArgument.cs | 7 ++++--- Guan/Logic/TermExpression.cs | 8 ++++---- Guan/Logic/TermOption.cs | 7 ++++--- Guan/Logic/TermPropertyPredicateType.cs | 7 ++++--- Guan/Logic/TracePredicateType.cs | 7 ++++--- Guan/Logic/Tri.cs | 7 ++++--- Guan/Logic/UnaryFunc.cs | 13 ++++--------- Guan/Logic/UnificationResult.cs | 8 ++++---- Guan/Logic/UnifyPredicateType.cs | 7 ++++--- Guan/Logic/UpdateObjectPredicateType.cs | 7 ++++--- Guan/Logic/Utility.cs | 7 ++++--- Guan/Logic/Variable.cs | 7 ++++--- Guan/Logic/VariableBinding.cs | 7 ++++--- Guan/Logic/VariableTable.cs | 7 ++++--- Guan/Logic/WriteLinePredicateType.cs | 7 ++++--- 84 files changed, 334 insertions(+), 450 deletions(-) delete mode 100644 Guan/Logic/ICompoundTerm.cs diff --git a/Guan/Logic/AddFunc.cs b/Guan/Logic/AddFunc.cs index 5a00695..3f81259 100644 --- a/Guan/Logic/AddFunc.cs +++ b/Guan/Logic/AddFunc.cs @@ -1,20 +1,10 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: AddFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Function to add integer or concatenate string. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; - using System.Collections.Generic; internal class AddFunc : StandaloneFunc { diff --git a/Guan/Logic/AndFunc.cs b/Guan/Logic/AndFunc.cs index 33c5176..f778b6c 100644 --- a/Guan/Logic/AndFunc.cs +++ b/Guan/Logic/AndFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: AndFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/ArgumentDescription.cs b/Guan/Logic/ArgumentDescription.cs index 3c64064..0e1474c 100644 --- a/Guan/Logic/ArgumentDescription.cs +++ b/Guan/Logic/ArgumentDescription.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/AssertPredicateType.cs b/Guan/Logic/AssertPredicateType.cs index 23989ce..5524068 100644 --- a/Guan/Logic/AssertPredicateType.cs +++ b/Guan/Logic/AssertPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/AutoLoadResource.cs b/Guan/Logic/AutoLoadResource.cs index 2752697..9f21628 100644 --- a/Guan/Logic/AutoLoadResource.cs +++ b/Guan/Logic/AutoLoadResource.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/BinaryFunc.cs b/Guan/Logic/BinaryFunc.cs index 0776a0b..081d67a 100644 --- a/Guan/Logic/BinaryFunc.cs +++ b/Guan/Logic/BinaryFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: BinaryFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/BooleanPredicateResolver.cs b/Guan/Logic/BooleanPredicateResolver.cs index 7c65c59..a474b98 100644 --- a/Guan/Logic/BooleanPredicateResolver.cs +++ b/Guan/Logic/BooleanPredicateResolver.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Threading.Tasks; /// diff --git a/Guan/Logic/ComparisonFunc.cs b/Guan/Logic/ComparisonFunc.cs index d3f8568..e73268e 100644 --- a/Guan/Logic/ComparisonFunc.cs +++ b/Guan/Logic/ComparisonFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: ComparisonFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/CompositePropertyContext.cs b/Guan/Logic/CompositePropertyContext.cs index b63d707..a653694 100644 --- a/Guan/Logic/CompositePropertyContext.cs +++ b/Guan/Logic/CompositePropertyContext.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/CompoundTerm.cs b/Guan/Logic/CompoundTerm.cs index 9ff7e17..e1d804c 100644 --- a/Guan/Logic/CompoundTerm.cs +++ b/Guan/Logic/CompoundTerm.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections; using System.Collections.Generic; using System.Text; diff --git a/Guan/Logic/ConsoleSink.cs b/Guan/Logic/ConsoleSink.cs index 3af2a69..76655d3 100644 --- a/Guan/Logic/ConsoleSink.cs +++ b/Guan/Logic/ConsoleSink.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/Constant.cs b/Guan/Logic/Constant.cs index ef5cd30..8472670 100644 --- a/Guan/Logic/Constant.cs +++ b/Guan/Logic/Constant.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/Constraint.cs b/Guan/Logic/Constraint.cs index 9f96646..8f51e2e 100644 --- a/Guan/Logic/Constraint.cs +++ b/Guan/Logic/Constraint.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; /// diff --git a/Guan/Logic/ConstraintPredicateType.cs b/Guan/Logic/ConstraintPredicateType.cs index 886b77e..fbbc7e7 100644 --- a/Guan/Logic/ConstraintPredicateType.cs +++ b/Guan/Logic/ConstraintPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/CutPredicateType.cs b/Guan/Logic/CutPredicateType.cs index e268c61..45c012f 100644 --- a/Guan/Logic/CutPredicateType.cs +++ b/Guan/Logic/CutPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/DynamicPredicateType.cs b/Guan/Logic/DynamicPredicateType.cs index 1a692f9..e5c2973 100644 --- a/Guan/Logic/DynamicPredicateType.cs +++ b/Guan/Logic/DynamicPredicateType.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: DynamicPredicateType.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/EmptyPropertyContext.cs b/Guan/Logic/EmptyPropertyContext.cs index 3e8eafe..3b0ff50 100644 --- a/Guan/Logic/EmptyPropertyContext.cs +++ b/Guan/Logic/EmptyPropertyContext.cs @@ -1,16 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: EmptyPropertyContext.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Property context that does not have any property. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/EnumerablePredicateType.cs b/Guan/Logic/EnumerablePredicateType.cs index 82bd82e..efb1d56 100644 --- a/Guan/Logic/EnumerablePredicateType.cs +++ b/Guan/Logic/EnumerablePredicateType.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections; using System.Threading.Tasks; diff --git a/Guan/Logic/EvaluatedFunctor.cs b/Guan/Logic/EvaluatedFunctor.cs index e9f7a27..cce9d31 100644 --- a/Guan/Logic/EvaluatedFunctor.cs +++ b/Guan/Logic/EvaluatedFunctor.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/EventLogWriter.cs b/Guan/Logic/EventLogWriter.cs index 9d82041..11266ca 100644 --- a/Guan/Logic/EventLogWriter.cs +++ b/Guan/Logic/EventLogWriter.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/FailPredicateType.cs b/Guan/Logic/FailPredicateType.cs index d4b5101..afbac48 100644 --- a/Guan/Logic/FailPredicateType.cs +++ b/Guan/Logic/FailPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/ForwardCutPredicateType.cs b/Guan/Logic/ForwardCutPredicateType.cs index 8e061f4..0750d03 100644 --- a/Guan/Logic/ForwardCutPredicateType.cs +++ b/Guan/Logic/ForwardCutPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/Functor.cs b/Guan/Logic/Functor.cs index ed90ae6..2434a98 100644 --- a/Guan/Logic/Functor.cs +++ b/Guan/Logic/Functor.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GetFunc.cs b/Guan/Logic/GetFunc.cs index be7c704..66e876d 100644 --- a/Guan/Logic/GetFunc.cs +++ b/Guan/Logic/GetFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: GetFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GetValPredicateType.cs b/Guan/Logic/GetValPredicateType.cs index f5c9c30..f3b1277 100644 --- a/Guan/Logic/GetValPredicateType.cs +++ b/Guan/Logic/GetValPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/GroundPredicateResolver.cs b/Guan/Logic/GroundPredicateResolver.cs index 39cdfc3..d1570db 100644 --- a/Guan/Logic/GroundPredicateResolver.cs +++ b/Guan/Logic/GroundPredicateResolver.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/GuanException.cs b/Guan/Logic/GuanException.cs index f3986ad..15d7ea5 100644 --- a/Guan/Logic/GuanException.cs +++ b/Guan/Logic/GuanException.cs @@ -1,15 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: GuanException.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Define base exception generated from the trace tool. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GuanExpression.cs b/Guan/Logic/GuanExpression.cs index 29c2b3c..410ce47 100644 --- a/Guan/Logic/GuanExpression.cs +++ b/Guan/Logic/GuanExpression.cs @@ -1,15 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: GuanExpression.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Wrapper for expression used in trace. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GuanFunc.cs b/Guan/Logic/GuanFunc.cs index fe2c375..6a6e48d 100644 --- a/Guan/Logic/GuanFunc.cs +++ b/Guan/Logic/GuanFunc.cs @@ -1,15 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: GuanFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Define the functions that can be used in TraceExpression. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GuanObject.cs b/Guan/Logic/GuanObject.cs index 71759e2..a9fd077 100644 --- a/Guan/Logic/GuanObject.cs +++ b/Guan/Logic/GuanObject.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/GuanPredicate.cs b/Guan/Logic/GuanPredicate.cs index 7b2ff6b..2e77170 100644 --- a/Guan/Logic/GuanPredicate.cs +++ b/Guan/Logic/GuanPredicate.cs @@ -1,20 +1,9 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: GuanPredicate.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Predicate expression used for matching trace records. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; - public class GuanPredicate { public static readonly GuanPredicate MatchAll = new GuanPredicate(true); diff --git a/Guan/Logic/ICompoundTerm.cs b/Guan/Logic/ICompoundTerm.cs deleted file mode 100644 index 69ba9dd..0000000 --- a/Guan/Logic/ICompoundTerm.cs +++ /dev/null @@ -1,13 +0,0 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- -namespace Guan.Logic -{ - /// - /// Interface for exporting object to compound term. - /// - public interface ICompoundTerm - { - CompoundTerm ToCompoundTerm(); - } -} diff --git a/Guan/Logic/IFunctorProvider.cs b/Guan/Logic/IFunctorProvider.cs index f18d872..bd6944b 100644 --- a/Guan/Logic/IFunctorProvider.cs +++ b/Guan/Logic/IFunctorProvider.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/IGuanExpressionContext.cs b/Guan/Logic/IGuanExpressionContext.cs index 517e20f..c41ce40 100644 --- a/Guan/Logic/IGuanExpressionContext.cs +++ b/Guan/Logic/IGuanExpressionContext.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: IGuanExpressionContext.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { public interface IGuanExpressionContext diff --git a/Guan/Logic/IPropertyContext.cs b/Guan/Logic/IPropertyContext.cs index 0d66dbb..a36206f 100644 --- a/Guan/Logic/IPropertyContext.cs +++ b/Guan/Logic/IPropertyContext.cs @@ -1,16 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: IPropertyContext.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Define the interface for retrieving named property. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/IWaitingTask.cs b/Guan/Logic/IWaitingTask.cs index a3e2c66..4382353 100644 --- a/Guan/Logic/IWaitingTask.cs +++ b/Guan/Logic/IWaitingTask.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { public interface IWaitingTask diff --git a/Guan/Logic/IndexedVariable.cs b/Guan/Logic/IndexedVariable.cs index 7d13592..4ad8431 100644 --- a/Guan/Logic/IndexedVariable.cs +++ b/Guan/Logic/IndexedVariable.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/IsPredicateType.cs b/Guan/Logic/IsPredicateType.cs index 866d86c..5e327cc 100644 --- a/Guan/Logic/IsPredicateType.cs +++ b/Guan/Logic/IsPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/JsonPropertyContext.cs b/Guan/Logic/JsonPropertyContext.cs index 01fce26..1fbdaa3 100644 --- a/Guan/Logic/JsonPropertyContext.cs +++ b/Guan/Logic/JsonPropertyContext.cs @@ -1,12 +1,10 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; - using System.Collections.Generic; - using System.Text; using System.Text.Json; internal sealed class JsonPropertyContext : IPropertyContext diff --git a/Guan/Logic/LinkedVariable.cs b/Guan/Logic/LinkedVariable.cs index 4e326ab..3ecbad0 100644 --- a/Guan/Logic/LinkedVariable.cs +++ b/Guan/Logic/LinkedVariable.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/ListTerm.cs b/Guan/Logic/ListTerm.cs index 4a1041f..5e891a7 100644 --- a/Guan/Logic/ListTerm.cs +++ b/Guan/Logic/ListTerm.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections; diff --git a/Guan/Logic/Literal.cs b/Guan/Logic/Literal.cs index 9454a06..df131a2 100644 --- a/Guan/Logic/Literal.cs +++ b/Guan/Logic/Literal.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: Literal.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/LogPredicateType.cs b/Guan/Logic/LogPredicateType.cs index 07cfa82..2a3e63d 100644 --- a/Guan/Logic/LogPredicateType.cs +++ b/Guan/Logic/LogPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/MathsFunc.cs b/Guan/Logic/MathsFunc.cs index 27c0501..156e0e4 100644 --- a/Guan/Logic/MathsFunc.cs +++ b/Guan/Logic/MathsFunc.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/Module.cs b/Guan/Logic/Module.cs index 91f0fa1..63a7ef4 100644 --- a/Guan/Logic/Module.cs +++ b/Guan/Logic/Module.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/ModuleProvider.cs b/Guan/Logic/ModuleProvider.cs index d4531d8..6506a4f 100644 --- a/Guan/Logic/ModuleProvider.cs +++ b/Guan/Logic/ModuleProvider.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/NotFunc.cs b/Guan/Logic/NotFunc.cs index 81054e0..630d3d8 100644 --- a/Guan/Logic/NotFunc.cs +++ b/Guan/Logic/NotFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: NotFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/NotPredicateType.cs b/Guan/Logic/NotPredicateType.cs index 9836002..9ca8830 100644 --- a/Guan/Logic/NotPredicateType.cs +++ b/Guan/Logic/NotPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/ObjectCompundTerm.cs b/Guan/Logic/ObjectCompundTerm.cs index 84acf65..41b17f1 100644 --- a/Guan/Logic/ObjectCompundTerm.cs +++ b/Guan/Logic/ObjectCompundTerm.cs @@ -1,12 +1,13 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; using System.Globalization; using System.Reflection; - //using Newtonsoft.Json; + using Newtonsoft.Json; /// /// Adapater to expose object properties as a compund term using reflection. @@ -89,8 +90,7 @@ namespace Guan.Logic return "null"; } - return null; - //return JsonConvert.SerializeObject(this.value, Formatting.Indented); + return JsonConvert.SerializeObject(this.value, Formatting.Indented); } } } diff --git a/Guan/Logic/OrFunc.cs b/Guan/Logic/OrFunc.cs index 0e6ee7b..751cdde 100644 --- a/Guan/Logic/OrFunc.cs +++ b/Guan/Logic/OrFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: OrFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/OutputVariable.cs b/Guan/Logic/OutputVariable.cs index 9990717..6304dbb 100644 --- a/Guan/Logic/OutputVariable.cs +++ b/Guan/Logic/OutputVariable.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: OutputVariable.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/ParallelRulePredicateResolver.cs b/Guan/Logic/ParallelRulePredicateResolver.cs index ef53a6f..3baa0cb 100644 --- a/Guan/Logic/ParallelRulePredicateResolver.cs +++ b/Guan/Logic/ParallelRulePredicateResolver.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/PredicateResolver.cs b/Guan/Logic/PredicateResolver.cs index e9762d6..4ff916a 100644 --- a/Guan/Logic/PredicateResolver.cs +++ b/Guan/Logic/PredicateResolver.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/PredicateType.cs b/Guan/Logic/PredicateType.cs index dd9d914..533475d 100644 --- a/Guan/Logic/PredicateType.cs +++ b/Guan/Logic/PredicateType.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; /// diff --git a/Guan/Logic/PropertyMatchFunc.cs b/Guan/Logic/PropertyMatchFunc.cs index e0d21d2..8db203a 100644 --- a/Guan/Logic/PropertyMatchFunc.cs +++ b/Guan/Logic/PropertyMatchFunc.cs @@ -1,15 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: PropertyMatchFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Function to match/compare trace property. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/Query.cs b/Guan/Logic/Query.cs index 78bd797..b1a857e 100644 --- a/Guan/Logic/Query.cs +++ b/Guan/Logic/Query.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/QueryContext.cs b/Guan/Logic/QueryContext.cs index c9a6cd2..b6277c3 100644 --- a/Guan/Logic/QueryContext.cs +++ b/Guan/Logic/QueryContext.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/QueryToListPredicateType.cs b/Guan/Logic/QueryToListPredicateType.cs index 86cc54c..5caeae9 100644 --- a/Guan/Logic/QueryToListPredicateType.cs +++ b/Guan/Logic/QueryToListPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/RegexPredicateType.cs b/Guan/Logic/RegexPredicateType.cs index 05fc764..4821ed8 100644 --- a/Guan/Logic/RegexPredicateType.cs +++ b/Guan/Logic/RegexPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Text.RegularExpressions; diff --git a/Guan/Logic/ReleaseAssert.cs b/Guan/Logic/ReleaseAssert.cs index 382f753..a9727f0 100644 --- a/Guan/Logic/ReleaseAssert.cs +++ b/Guan/Logic/ReleaseAssert.cs @@ -1,15 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: ReleaseAssert.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Helper class for providing assert behavior in production environment. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/ResolveOrder.cs b/Guan/Logic/ResolveOrder.cs index 24585a3..b3c4a13 100644 --- a/Guan/Logic/ResolveOrder.cs +++ b/Guan/Logic/ResolveOrder.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { public enum ResolveOrder diff --git a/Guan/Logic/Rule.cs b/Guan/Logic/Rule.cs index 0c73783..16381d1 100644 --- a/Guan/Logic/Rule.cs +++ b/Guan/Logic/Rule.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; using System.Text.RegularExpressions; diff --git a/Guan/Logic/RulePredicateResolver.cs b/Guan/Logic/RulePredicateResolver.cs index 51d3078..c7281b9 100644 --- a/Guan/Logic/RulePredicateResolver.cs +++ b/Guan/Logic/RulePredicateResolver.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/Guan/Logic/SetValPredicateType.cs b/Guan/Logic/SetValPredicateType.cs index 8bb2391..eafef9d 100644 --- a/Guan/Logic/SetValPredicateType.cs +++ b/Guan/Logic/SetValPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/SleepPredicateType.cs b/Guan/Logic/SleepPredicateType.cs index 5092aea..d01d45e 100644 --- a/Guan/Logic/SleepPredicateType.cs +++ b/Guan/Logic/SleepPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/SplitFunc.cs b/Guan/Logic/SplitFunc.cs index 7a3f27b..5c641b2 100644 --- a/Guan/Logic/SplitFunc.cs +++ b/Guan/Logic/SplitFunc.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { internal class SplitFunc : BinaryFunc diff --git a/Guan/Logic/StandaloneFunc.cs b/Guan/Logic/StandaloneFunc.cs index 69a1b09..d876b89 100644 --- a/Guan/Logic/StandaloneFunc.cs +++ b/Guan/Logic/StandaloneFunc.cs @@ -1,13 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: StandaloneFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/StringFunc.cs b/Guan/Logic/StringFunc.cs index 67e97f6..59588f6 100644 --- a/Guan/Logic/StringFunc.cs +++ b/Guan/Logic/StringFunc.cs @@ -1,20 +1,9 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: StrFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -// Purpose: -// Function to convert object to literal string with quotation marks. -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; - internal class StringFunc : UnaryFunc { public static readonly StringFunc Singleton = new StringFunc(); diff --git a/Guan/Logic/Term.cs b/Guan/Logic/Term.cs index ca9b5f7..64c2fbd 100644 --- a/Guan/Logic/Term.cs +++ b/Guan/Logic/Term.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/TermArgument.cs b/Guan/Logic/TermArgument.cs index 4f1fa09..c1f9fc5 100644 --- a/Guan/Logic/TermArgument.cs +++ b/Guan/Logic/TermArgument.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { /// diff --git a/Guan/Logic/TermExpression.cs b/Guan/Logic/TermExpression.cs index 07bf9aa..c354783 100644 --- a/Guan/Logic/TermExpression.cs +++ b/Guan/Logic/TermExpression.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; /// diff --git a/Guan/Logic/TermOption.cs b/Guan/Logic/TermOption.cs index a2c4ba4..fd208d5 100644 --- a/Guan/Logic/TermOption.cs +++ b/Guan/Logic/TermOption.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/TermPropertyPredicateType.cs b/Guan/Logic/TermPropertyPredicateType.cs index f1937cc..8306a73 100644 --- a/Guan/Logic/TermPropertyPredicateType.cs +++ b/Guan/Logic/TermPropertyPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/TracePredicateType.cs b/Guan/Logic/TracePredicateType.cs index b4a8836..e2b815f 100644 --- a/Guan/Logic/TracePredicateType.cs +++ b/Guan/Logic/TracePredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/Tri.cs b/Guan/Logic/Tri.cs index 136a482..80a85f4 100644 --- a/Guan/Logic/Tri.cs +++ b/Guan/Logic/Tri.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/UnaryFunc.cs b/Guan/Logic/UnaryFunc.cs index 94884b1..2ac684f 100644 --- a/Guan/Logic/UnaryFunc.cs +++ b/Guan/Logic/UnaryFunc.cs @@ -1,12 +1,7 @@ -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Copyright (c) Microsoft Corporation. -// -// @File: UnaryFunc.cs -// -// @Owner: xunlu -// @Test: xunlu -// -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/UnificationResult.cs b/Guan/Logic/UnificationResult.cs index ba1caa3..1c70d9d 100644 --- a/Guan/Logic/UnificationResult.cs +++ b/Guan/Logic/UnificationResult.cs @@ -1,9 +1,9 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { - using System; using System.Collections.Generic; using System.Text; diff --git a/Guan/Logic/UnifyPredicateType.cs b/Guan/Logic/UnifyPredicateType.cs index 2b13589..6f4d17e 100644 --- a/Guan/Logic/UnifyPredicateType.cs +++ b/Guan/Logic/UnifyPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/UpdateObjectPredicateType.cs b/Guan/Logic/UpdateObjectPredicateType.cs index e9cebd0..338fac5 100644 --- a/Guan/Logic/UpdateObjectPredicateType.cs +++ b/Guan/Logic/UpdateObjectPredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Threading.Tasks; diff --git a/Guan/Logic/Utility.cs b/Guan/Logic/Utility.cs index ef1e8c5..dac7814 100644 --- a/Guan/Logic/Utility.cs +++ b/Guan/Logic/Utility.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/Variable.cs b/Guan/Logic/Variable.cs index a5aa14f..8220b9a 100644 --- a/Guan/Logic/Variable.cs +++ b/Guan/Logic/Variable.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/VariableBinding.cs b/Guan/Logic/VariableBinding.cs index a3dbc31..9377782 100644 --- a/Guan/Logic/VariableBinding.cs +++ b/Guan/Logic/VariableBinding.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System; diff --git a/Guan/Logic/VariableTable.cs b/Guan/Logic/VariableTable.cs index 4c0a873..6d14845 100644 --- a/Guan/Logic/VariableTable.cs +++ b/Guan/Logic/VariableTable.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System.Collections.Generic; diff --git a/Guan/Logic/WriteLinePredicateType.cs b/Guan/Logic/WriteLinePredicateType.cs index 44e93b6..f624651 100644 --- a/Guan/Logic/WriteLinePredicateType.cs +++ b/Guan/Logic/WriteLinePredicateType.cs @@ -1,6 +1,7 @@ -//--------------------------------------------------------------------------------------------------------------------- -// Copyright (c) Microsoft Corporation. All rights reserved. -//--------------------------------------------------------------------------------------------------------------------- +// ------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. +// ------------------------------------------------------------ namespace Guan.Logic { using System;