Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
67 | 2 | 5 | 0.964 | class_member_declarations[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 67 | 17 | src/NHibernate.Test/CfgTest/DefaultNsAssmFixture.cs |
2 | 67 | 55 | 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"" 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>"; |
| ||||
// 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>"; |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#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>" |
1 | 2 | [[#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>" |
2 | 1 | [[#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>" |
2 | 2 | [[#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>" |
3 | 1 | [[#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>" |
3 | 2 | [[#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>" |
4 | 1 | [[#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>" |
4 | 2 | [[#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>" |
5 | 1 | [[#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>" |
5 | 2 | [[#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>" |