CloneSet1295


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
67250.964class_member_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16717
src/NHibernate.Test/CfgTest/DefaultNsAssmFixture.cs
26755
src/NHibernate.Test/CfgTest/HbmOrderingFixture.cs
Clone Instance
1
Line Count
67
Source Line
17
Source File
src/NHibernate.Test/CfgTest/DefaultNsAssmFixture.cs

                // Working directory
                private static string dir_;

                // Base class mapping
                private const string aJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <class name=""A"" table=""A"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
          </class>
        </hibernate-mapping>";

                // Derived class mapping
                private const string bJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" default-lazy=""false"">
          <joined-subclass 
              name=""B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>";

                // Add another level
                private const string cJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>";

                private const string aSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <class name=""A"" table=""A"" discriminator-value=""0"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
\t\t\t<discriminator column=""disc_col"" type=""Int32"" />
          </class>
        </hibernate-mapping>";

                // Derived class mapping
                private const string bSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B""
\t\t\t  discriminator-value=""1"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>";

                // Add another level
                private const string cSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""B""
              table=""B""
\t\t\t  discriminator-value=""2"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>";


Clone Instance
2
Line Count
67
Source Line
55
Source File
src/NHibernate.Test/CfgTest/HbmOrderingFixture.cs

                // Working directory
                private static string dir_;

                // Base class mapping
                private const string aJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <class name=""NHibernate.Test.CfgTest.A, NHibernate.Test"" table=""A"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
          </class>
        </hibernate-mapping>";

                // Derived class mapping
                private const string bJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>";

                // Add another level
                private const string cJoinedHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>";

                private const string aSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <class name=""NHibernate.Test.CfgTest.A, NHibernate.Test"" table=""A"" discriminator-value=""0"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
\t\t\t<discriminator column=""disc_col"" type=""Int32"" />
          </class>
        </hibernate-mapping>";

                // Derived class mapping
                private const string bSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B""
\t\t\t  discriminator-value=""1"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>";

                // Add another level
                private const string cSubclassHbmXml =
                        @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B""
\t\t\t  discriminator-value=""2"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>";


Clone AbstractionParameter Count: 5Parameter Bindings

// Working directory
private static string dir_;

// Base class mapping
private const string aJoinedHbmXml = [[#variable56164740]];
// Derived class mapping
private const string bJoinedHbmXml = [[#variable56164780]];
// Add another level
private const string cJoinedHbmXml = [[#variable56164760]];
private const string aSubclassHbmXml = [[#variable56164800]];
// Derived class mapping
private const string bSubclassHbmXml = @"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B""
\t\t\t  discriminator-value=""1"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>";
// Add another level
private const string cSubclassHbmXml = [[#variable561647c0]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56164740]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <class name=""A"" table=""A"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
          </class>
        </hibernate-mapping>" 
12[[#56164740]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <class name=""NHibernate.Test.CfgTest.A, NHibernate.Test"" table=""A"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
          </class>
        </hibernate-mapping>" 
21[[#56164780]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" default-lazy=""false"">
          <joined-subclass 
              name=""B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>" 
22[[#56164780]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.A, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Value"" type=""Int32"" />
          </joined-subclass>
        </hibernate-mapping>" 
31[[#56164760]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>" 
32[[#56164760]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>" 
41[[#56164800]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <class name=""A"" table=""A"" discriminator-value=""0"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
\t\t\t<discriminator column=""disc_col"" type=""Int32"" />
          </class>
        </hibernate-mapping>" 
42[[#56164800]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <class name=""NHibernate.Test.CfgTest.A, NHibernate.Test"" table=""A"" discriminator-value=""0"">
            <id name=""Id"">
              <generator class=""assigned"" />
            </id>
\t\t\t<discriminator column=""disc_col"" type=""Int32"" />
          </class>
        </hibernate-mapping>" 
51[[#561647c0]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" namespace=""NHibernate.Test.CfgTest"" assembly=""NHibernate.Test"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""B""
              table=""B""
\t\t\t  discriminator-value=""2"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>" 
52[[#561647c0]]
@"<?xml version=""1.0"" encoding=""utf-8"" ?>
        <hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" default-lazy=""false"">
          <joined-subclass 
              name=""NHibernate.Test.CfgTest.C, NHibernate.Test""
              extends=""NHibernate.Test.CfgTest.B, NHibernate.Test""
              table=""B""
\t\t\t  discriminator-value=""2"">
            <key column=""Id"" />
            <property name=""Description"" type=""String"" />
          </joined-subclass>
        </hibernate-mapping>"