<commit_before>using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using DDay.iCal.Objects;
using DDay.iCal.DataTypes;
using DDay.iCal.Serialization;

namespace DDay.iCal.Components
{
    /// <summary>
    /// A class that represents an RFC 2445 VALARM component.
    /// </summary>
    public class Alarm : ComponentBase
    {
        #region Private Fields

        private List<AlarmOccurrence> m_Occurrences;        

        #endregion

        #region Public Fields

        [SerializedAttribute]
        public AlarmAction Action;
        [SerializedAttribute]
        public Binary Attach;
        [SerializedAttribute]
        public Cal_Address[] Attendee;
        [SerializedAttribute]
        public Text Description;
        [SerializedAttribute, DefaultValue("P")]
        public Duration Duration;
        [SerializedAttribute]
        public Integer Repeat;
        [SerializedAttribute]
        public Text Summary;
        [SerializedAttribute]
        public Trigger Trigger;        

        #endregion

        #region Public Properties

        public List<AlarmOccurrence> Occurrences
        {
            get { return m_Occurrences; }
            set { m_Occurrences = value; }
        }

        #endregion

        #region Static Public Methods

        static public Alarm Create(RecurringComponent rc)
        {
            Alarm alarm = (Alarm)rc.iCalendar.Create(rc, "VALARM");<commit_msg>Converted all public fields into public properties<commit_after>using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using DDay.iCal.Objects;
using DDay.iCal.DataTypes;
using DDay.iCal.Serialization;

namespace DDay.iCal.Components
{
    /// <summary>
    /// A class that represents an RFC 2445 VALARM component.
    /// </summary>
    public class Alarm : ComponentBase
    {
        #region Private Fields

        private List<AlarmOccurrence> m_Occurrences;

        private AlarmAction m_Action;        
        private Binary m_Attach;        
        private Cal_Address[] m_Attendee;        
        private Text m_Description;        
        private Duration m_Duration;        
        private Integer m_Repeat;        
        private Text m_Summary;        
        private Trigger m_Trigger;        

        #endregion

        #region Public Properties

        public List<AlarmOccurrence> Occurrences
        {
            get { return m_Occurrences; }
            set { m_Occurrences = value; }
        }

        [Serialized]
        public AlarmAction Action
        {
            get { return m_Action; }
            set { m_Action = value; }
        }

        [Serialized]
        public Binary Attach
        {
            get { return m_Attach; }
            set { m_Attach = value; }
        }

        [Serialized]
        public Cal_Address[] Attendee
        {
            get { return m_Attendee; }
            set { m_Attendee = value; }
        }

        [Serialized]
        public Text Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }

        [Serialized, DefaultValue("P")]
        public Duration Duration
        {
            get { return m_Duration; }
            set { m_Duration = value; }
        }

        [Serialized]
        public Integer Repeat
        {
            get { return m_Repeat; }
            set { m_Repeat = value; }
        }

        [Serialized]
        public Text Summary
        {
            get { return m_Summary; }
            set { m_Summary = value; }
        }

        [Serialized]
        public Trigger Trigger
        {
            get { return m_Trigger; }
            set { m_Trigger = value; }
        }

        #endregion

        #region Static Public Methods

        static public Alarm Create(RecurringComponent rc)
        {
            Alarm alarm = (Alarm)rc.iCalendar.Create(rc, "VALARM");
{'fraction_non_alphanumeric': 0.07183836368171614, 'fraction_numerical': 0.001995510102269893, 'mean_word_length': 1.7297481279782165, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1979427', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1050, 'n_words': 279}