<commit_before>﻿namespace Zoo.Employees
{
    using System;
    using Zoo.Interfaces;

    public class Director : Employee
    {
        //Fields 
        private double montlySalary;
        private int employeesToManage; //??
        private double privateBudget; // money for meetings, taxi, etc.

        // Constructors
        public Director(string firstName, string lastName)
            : base(firstName, lastName, Position.Director) // it is better to make it through an enumerator Position.Director or a class Positions
        {
        }

        // Properties

        public double MontlySalary
        {
            get { return this.montlySalary; }
            set { this.montlySalary = value; }
        }

        public int EmplayeesToManage
        {
            get { return this.employeesToManage; }
            set { this.employeesToManage = value; }
        }

        public double PrivateBudget
        {
            get { return this.privateBudget; }
            set { this.privateBudget = value; }
        }

        //public double CalculatePayment(double hours)
        //{
        //    return montlySalary;
        //}
    }
}<commit_msg>director<commit_after>﻿namespace Zoo.Employees
{
    using System;
    using Zoo.Interfaces;

    public class Director : Employee, IPayable
    {
        //Fields
        private PaymentTypes paymentType;
        private double paymentRate;
        private double workedTime;
        private double privateBudget; // money for meetings, taxi, etc.   
         

        

        // Constructors
        public Director(string firstName, string lastName)
            : base(firstName, lastName, Position.Director) // it is better to make it through an enumerator Position.Director or a class Positions
        {
        }

        // Properties
        public PaymentTypes PaymentType { get; set; }
        public double PaymentRate { get; set; }
        public double WorkedTime { get; set; }
        

        public double PrivateBudget
        {
            get { return this.privateBudget; }
            set { this.privateBudget = value; }
        }

        // Methods
        public double CalculatePayment(double hours)
        {
            this.workedTime = hours;
            var normalWorkDay = 8;
            if (paymentType == PaymentTypes.Hourly)
            {
                return this.workedTime * this.paymentRate;
            }
            else
            {
                return (this.workedTime / normalWorkDay) * this.paymentRate;
            }
        }


    }
}
{'fraction_non_alphanumeric': 0.07338017174082748, 'fraction_numerical': 0.00039032006245121, 'mean_word_length': 1.6020304568527919, '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': '4713822', 'n_tokens_mistral': 684, 'n_tokens_neox': 634, 'n_words': 180}