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

namespace Infopulse.EDemocracy.Model.BusinessEntities
{
	public class Petition : BaseEntity
	{
		public PetitionLevel Level { get; set; }
		public string AddressedTo { get; set; }
		public string Subject { get; set; }
		public Entity Category { get; set; }
		public string Text { get; set; }
		public string Requirements { get; set; }
		public List<string> KeyWords { get; set; }
		public DateTime CreatedDate { get; set; }
		public UserDetailInfo CreatedBy { get; set; }
		public DateTime EffectiveFrom { get; set; }
		public DateTime EffectiveTo { get; set; }
		public long? Limit { get; set; }
		public string Email { get; set; }

		public Organization Organization { get; set; }

		public int VotesCount { get; set; }

		public string Url
		{
			get
			{
				var domain = ConfigurationManager.AppSettings["AppDomain"];
				return string.Format("{0}/petition/#petition/{1}", domain, this.ID);
			}
		}

		public Petition()
		{
			
		}
	}
}<commit_msg>Clean-up code.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Configuration;

namespace Infopulse.EDemocracy.Model.BusinessEntities
{
	public class Petition : BaseEntity
	{
		public PetitionLevel Level { get; set; }
		public string AddressedTo { get; set; }
		public string Subject { get; set; }
		public Entity Category { get; set; }
		public string Text { get; set; }
		public string Requirements { get; set; }
		public List<string> KeyWords { get; set; }
		public DateTime CreatedDate { get; set; }
		public UserDetailInfo CreatedBy { get; set; }
		public DateTime EffectiveFrom { get; set; }
		public DateTime EffectiveTo { get; set; }
		public long? Limit { get; set; }
		public string Email { get; set; }

		public Organization Organization { get; set; }

		public int VotesCount { get; set; }

		public string Url
		{
			get
			{
				return $"{Petition.Domain}/petition/#petition/{this.ID}";
			}
		}

		public Petition()
		{
			
		}

		// TODO: following is code duplicate from Infopulse.EDemocracy.Common.Helpers.AppSettingsHelper.Domain
		// but Infopulse.EDemocracy.Model cannon reference Infopulse.EDemocracy.Common because of circular dependency
		private static string domain;
		private static string Domain
		{
			get
			{
				if (string.IsNullOrEmpty(domain))
				{
					Petition.domain = ConfigurationManager.AppSettings["AppDomain"];
				}

				return Petition.domain;
			}
			
		}
	}
}
{'fraction_non_alphanumeric': 0.09864077669902913, 'fraction_numerical': 0.0007766990291262136, 'mean_word_length': 3.012461059190031, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2764464', 'n_tokens_mistral': 900, 'n_tokens_neox': 742, 'n_words': 227}