<commit_before>﻿using System.IO;
using Codestellation.Galaxy.Infrastructure;
using Nejdb.Bson;
using System;

namespace Codestellation.Galaxy.Domain
{
    public class Deployment
    {
        private string _deployLogFolder;
        public ObjectId Id { get; internal set; }
        public string AssemblyQualifiedType { get; set; }
        
        public string ServiceName { get; set; }
        public string DisplayName { get; set; }
        public string InstanceName { get; set; }
        public string Description { get; set; }
        
        public ObjectId FeedId { get; set; }
        public string Status { get; set; }
        public string PackageId { get; set; }
        public Version PackageVersion { get; set; }

        public string ConfigFileContent { get; set; }

        public FileList KeepOnUpdate { get; set; }

        public string GetServiceName()
        {
            if (string.IsNullOrWhiteSpace(InstanceName))
            {
                return ServiceName;
            }

            return string.Format("{0}${1}", ServiceName, InstanceName);
        }

        public string GetDeployFolder(string baseFolder)
        {
            return Folder.Combine(baseFolder, DisplayName);
        }

        public string GetDeployLogFolder()
        {
            return _deployLogFolder ?? (_deployLogFolder = Folder.Combine(Folder.BasePath, "BuildLogs" , Id.ToString()));
        }
    }
}
<commit_msg>Minor change in folder structure (relates to #7)<commit_after>﻿using Codestellation.Galaxy.Infrastructure;
using Nejdb.Bson;
using System;

namespace Codestellation.Galaxy.Domain
{
    public class Deployment
    {
        private string _deployLogFolder;
        public ObjectId Id { get; internal set; }
        public string AssemblyQualifiedType { get; set; }
        
        public string ServiceName { get; set; }
        public string DisplayName { get; set; }
        public string InstanceName { get; set; }
        public string Description { get; set; }
        
        public ObjectId FeedId { get; set; }
        public string Status { get; set; }
        public string PackageId { get; set; }
        public Version PackageVersion { get; set; }

        public string ConfigFileContent { get; set; }

        public FileList KeepOnUpdate { get; set; }

        public string GetServiceName()
        {
            if (string.IsNullOrWhiteSpace(InstanceName))
            {
                return ServiceName;
            }

            return string.Format("{0}${1}", ServiceName, InstanceName);
        }

        public string GetDeployFolder(string baseFolder)
        {
            return Folder.Combine(baseFolder, DisplayName);
        }

        public string GetDeployLogFolder()
        {
            return _deployLogFolder ?? (_deployLogFolder = BuildServiceFolder("BuildLogs"));
        }

        public string GetFilesFolder()
        {
            return _deployLogFolder ?? (_deployLogFolder = BuildServiceFolder("FileOverrides"));
        }

        private string BuildServiceFolder(string subfolder)
        {
            return Folder.Combine(Folder.BasePath, Id.ToString() , subfolder);
        }
    }
}

{'fraction_non_alphanumeric': 0.08370044052863436, 'fraction_numerical': 0.0015733165512901196, 'mean_word_length': 2.1475247524752477, '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': '904522', 'n_tokens_mistral': 851, 'n_tokens_neox': 818, 'n_words': 226}