<commit_before>using System;
using System.Collections.Generic;

namespace Machine.Container.Model
{
  public enum LifestyleType
  {
    Singleton,
    Transient,
    Override
  }

  public abstract class LifestyleAttribute : Attribute
  {
    public abstract LifestyleType Lifestyle { get; }
  }
  
  [AttributeUsage(AttributeTargets.Class)]
  public class SingletonAttribute : LifestyleAttribute
  {
    public override LifestyleType Lifestyle
    {
      get { return LifestyleType.Singleton; }
    }
  }
  
  [AttributeUsage(AttributeTargets.Class)]
  public class TransientAttribute : LifestyleAttribute
  {
    public override LifestyleType Lifestyle
    {
      get { return LifestyleType.Transient; }
    }
  }
}<commit_msg>Lifestyle attributes only apply once.<commit_after>using System;
using System.Collections.Generic;

namespace Machine.Container.Model
{
  public enum LifestyleType
  {
    Singleton,
    Transient,
    Override
  }

  public abstract class LifestyleAttribute : Attribute
  {
    public abstract LifestyleType Lifestyle { get; }
  }
  
  [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
  public class SingletonAttribute : LifestyleAttribute
  {
    public override LifestyleType Lifestyle
    {
      get { return LifestyleType.Singleton; }
    }
  }
  
  [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
  public class TransientAttribute : LifestyleAttribute
  {
    public override LifestyleType Lifestyle
    {
      get { return LifestyleType.Transient; }
    }
  }
}
{'fraction_non_alphanumeric': 0.0685897435897436, 'fraction_numerical': 0.0, 'mean_word_length': 3.6183431952662723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4936810', 'n_tokens_mistral': 465, 'n_tokens_neox': 434, 'n_words': 100}