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

public class DTask : TurnUpdatable
{

    private static int NEXT_ID = 0;

    private int id;
    private DBuilding building;
    private DPerson person;
    private DResource output;

    public DTask(DBuilding dBuilding, DResource dOutput)
    {
        id = NEXT_ID++;
        building = dBuilding;
        output = dOutput;

        dBuilding.AddTask(this);
    }

    public void ClearPerson()
    {
        person = null;
    }

    public DPerson Person
    {
        get { return person; }
        set { person = value; }
    }

    public int Id
    {
        get { return id; }
    }

    public DResource Output
    {
        get { return output; }
    }

    public void TurnUpdate(int numDaysPassed)
    {
        if (person != null)
        {
            building.OutputResource(output);<commit_msg>Added names to tasks<commit_after>﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DTask : TurnUpdatable
{

    private static int NEXT_ID = 0;

    private int id;
    private string taskName;
    private DBuilding building;
    private DPerson person;
    private DResource output;

    public DTask(DBuilding dBuilding, DResource dOutput, string name)
    {
        id = NEXT_ID++;
        building = dBuilding;
        output = dOutput;

        taskName = "default_task";

        dBuilding.AddTask(this);
    }

    public DTask(DBuilding dBuilding, DResource dOutput) : this(dBuilding, dOutput, "default_name")
    {
    }

    public void ClearPerson()
    {
        person = null;
    }

    public DPerson Person
    {
        get { return person; }
        set { person = value; }
    }

    public string Name
    {
        get { return taskName; }
        set { taskName = value; }
    }

    public int Id
    {
        get { return id; }
    }

    public DResource Output
    {
        get { return output; }
    }

    public void TurnUpdate(int numDaysPassed)
    {
        if (person != null)
        {
            building.OutputResource(output);
{'fraction_non_alphanumeric': 0.0805025593299209, 'fraction_numerical': 0.0009306654257794323, 'mean_word_length': 2.045325779036827, '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': '3192716', 'n_tokens_mistral': 648, 'n_tokens_neox': 614, 'n_words': 176}