Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
34 | 2 | 1 | 0.998 | class_member_declarations[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 34 | 11 | src/NHibernate.Test/BulkManipulation/BaseFixture.cs |
2 | 34 | 11 | src/NHibernate.Test/HQL/Ast/BaseFixture.cs |
| ||||
private readonly IDictionary<string, IFilter> emptyfilters = new CollectionHelper.EmptyMapClass<string, IFilter> (); protected override bool AppliesTo(Engine.ISessionFactoryImplementor factory) { return !(factory.Settings.QueryTranslatorFactory is ClassicQueryTranslatorFactory); } #region Overrides of TestCase protected override IList Mappings { get { return new string[0]; } } #endregion protected override void Configure(Cfg.Configuration configuration) { var assembly = GetType().Assembly; string mappingNamespace = GetType().Namespace; foreach ( var resource in assembly.GetManifestResourceNames()) { if (resource.StartsWith(mappingNamespace) && resource.EndsWith(".hbm.xml")) { configuration.AddResource(resource, assembly); } } } public string GetSql(string query) { var qt = new QueryTranslatorImpl(null, query, emptyfilters, sessions); qt.Compile(null, false); return qt.SQLString; } |
| ||||
private readonly IDictionary<string, IFilter> emptyfilters = new CollectionHelper.EmptyMapClass<string, IFilter> (); protected override bool AppliesTo(Engine.ISessionFactoryImplementor factory) { return !(sessions.Settings.QueryTranslatorFactory is ClassicQueryTranslatorFactory); } #region Overrides of TestCase protected override IList Mappings { get { return new string[0]; } } #endregion protected override void Configure(Cfg.Configuration configuration) { var assembly = GetType().Assembly; string mappingNamespace = GetType().Namespace; foreach ( var resource in assembly.GetManifestResourceNames()) { if (resource.StartsWith(mappingNamespace) && resource.EndsWith(".hbm.xml")) { configuration.AddResource(resource, assembly); } } } public string GetSql(string query) { var qt = new QueryTranslatorImpl(null, query, emptyfilters, sessions); qt.Compile(null, false); return qt.SQLString; } |
| |||
private readonly IDictionary<string, IFilter> emptyfilters = new CollectionHelper.EmptyMapClass<string, IFilter> (); protected override bool AppliesTo(Engine.ISessionFactoryImplementor factory) { return !( [[#variable5e8da5e0]].Settings.QueryTranslatorFactory is ClassicQueryTranslatorFactory); } #region Overrides of TestCase protected override IList Mappings { get { return new string[0]; } } #endregion protected override void Configure(Cfg.Configuration configuration) { var assembly = GetType().Assembly; string mappingNamespace = GetType().Namespace; foreach ( var resource in assembly.GetManifestResourceNames()) { if (resource.StartsWith(mappingNamespace) && resource.EndsWith(".hbm.xml")) { configuration.AddResource(resource, assembly); } } } public string GetSql(string query) { var qt = new QueryTranslatorImpl(null, query, emptyfilters, sessions); qt.Compile(null, false); return qt.SQLString; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5e8da5e0]] | factory |
1 | 2 | [[#5e8da5e0]] | sessions |