<commit_before>﻿using System;

namespace TIKSN.Advertising
{
	public class AdUnitBundle
	{
		public AdUnitBundle(AdUnit designTime, AdUnit tablet, AdUnit mobile)
		{
			Tablet = tablet ?? mobile ?? designTime;
			DesignTime = designTime;
			Mobile = mobile ?? tablet ?? designTime;

			if (designTime == null)
				throw new ArgumentNullException(nameof(designTime));

			if (!designTime.IsTest)
				throw new ArgumentException($"Value of designTime.IsTest must be true.", nameof(designTime));

			if (tablet == null && mobile == null)
				throw new ArgumentException($"Arguments {nameof(tablet)} and {nameof(mobile)} cannot be null simultaneously.");
		}

		public AdUnit DesignTime { get; }

		public AdUnit Mobile { get; }
		public AdUnit Tablet { get; }<commit_msg>Ad unit bundle validation<commit_after>﻿using System;

namespace TIKSN.Advertising
{
	public class AdUnitBundle
	{
		public AdUnitBundle(AdUnit designTime, AdUnit tablet, AdUnit mobile)
		{
			Tablet = tablet ?? mobile ?? designTime;
			DesignTime = designTime;
			Mobile = mobile ?? tablet ?? designTime;

			if (designTime == null)
				throw new ArgumentNullException(nameof(designTime));

			if (!designTime.IsTest)
				throw new ArgumentException($"Value of {nameof(designTime)}.{nameof(designTime.IsTest)} must be true.", nameof(designTime));

			if (!tablet.IsTest || !mobile.IsTest)
				throw new ArgumentException($"Value of {nameof(tablet)}.{nameof(tablet.IsTest)} and {nameof(mobile)}.{nameof(mobile.IsTest)} must be false.");

			if (tablet == null || mobile == null)
				throw new ArgumentException($"Arguments {nameof(tablet)} and {nameof(mobile)} cannot be null simultaneously.");
		}

		public AdUnit DesignTime { get; }

		public AdUnit Mobile { get; }

		public AdUnit Tablet { get; }
{'fraction_non_alphanumeric': 0.11984171848501979, 'fraction_numerical': 0.0, 'mean_word_length': 4.514018691588785, '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': '4026175', 'n_tokens_mistral': 599, 'n_tokens_neox': 523, 'n_words': 154}