<commit_before>
		{exp:channel:entries channel="articles" limit="1" entry_id="{embed:entry_id}" status="open|In Progress"}
		{exp:playa:parents channel="issues" status="open|In Progress"}{exp:stash:set name="total-children"}{exp:playa:total_children}{/exp:stash:set}{/exp:playa:parents}

			<aside id="related" class="sidebar var1">
				<i class="widget-branding ala"></i>
			{if article_follow_up != ""}
			<!-- start first block--><!-- if a follow up has been selected show the follow up -->
				<section class="follow-up">
				<h1>Follow-up</h1>
				{article_follow_up}
				<article>
					{entry}<h1><a href="{site_url}{if channel_short_name=='blog'}{channel_short_name}/post/{url_title}{if:elseif channel_short_name=='articles'}article/{url_title}{if:elseif channel_short_name=='columns'}column/{url_title}{/if}" data-trackevent="Related sidebar: Follow up">{title}</a></h1>{/entry}
					<p>{exp:strip_html}
					{if note}
						{note}
					{if:else}
						{entry}
							{if channel_short_name=='blog'}
								{if blog_mini_deck}{blog_mini_deck}{if:elseif blog_intro}{exp:trunchtml chars="130" inline="..."}{blog_intro}{/exp:trunchtml}{/if}
							{if:elseif channel_short_name=='columns'}
								{if column_mini_deck}{column_mini_deck}{if:elseif column_intro}{exp:trunchtml chars="130" inline="..."}{column_intro}{/exp:trunchtml}{/if}
							{if:elseif channel_short_name=='articles'}
								{if article_mini_deck}{article_mini_deck}{if:elseif article_deck}{exp:trunchtml chars="130" inline="..."}{article_deck}{/exp:trunchtml}{/if}
							{/if}
						{/entry}
					{/if}
					{/exp:strip_html}</p>
				</article>
				{/article_follow_up}
				</section>
			<!-- if a follow up has not been selected, and the issue has two articles show the other article -->
			{if:elseif {exp:stash:get name="total-children"} > 1}
			{exp:playa:parents channel="issues" status="open|In Progress"}
			{exp:stash:set name="issue-number"}{issue_number}{/exp:stash:set}
			{exp:playa:children child_id="not {embed:entry_id}" status="open|In Progress"}
				<section>
					{if count == "1"}
					{article_illustration}
					<figure class="sidebar-hero {if width > height}wideone{/if}" data-picture data-alt="">
						<div data-src="{exp:ce_img:pair src="{url}" width="322" crop="no" save_type="jpg" quality="61"}{made}{/exp:ce_img:pair}"></div>
						<div data-src="{exp:ce_img:pair src="{url}" width="644" crop="no" save_type="jpg" quality="10"}{made}{/exp:ce_img:pair}" data-media="(min-width: 600px) and (min-device-pixel-ratio: 2.0)"></div>
						<noscript><img src="{exp:ce_img:pair src="{url}" width="322" crop="no" save_type="jpg" quality="10"}{made}{/exp:ce_img:pair}" alt=""></noscript>
					</figure>
					{/article_illustration}
					<h1>Also in Issue №&nbsp;{exp:stash:get name="issue-number"}</h1>
					{/if}
						<article>
						<h1><a href="/article/{url_title}" data-trackevent="Related sidebar: Also in issue">{title}</a></h1>
						<p>{exp:strip_html}{if article_mini_deck}<p>{article_mini_deck}</p>{if:elseif article_deck}<p>{exp:trunchtml chars="130" inline="..."}{article_deck}{/exp:trunchtml}</p>{/if}{/exp:strip_html}</p>
						</article>
					</section>
			{/exp:playa:children}
			{/exp:playa:parents}<!-- end first block -->
			{/if}
			{if "{article_related_content:count}" != ""}
			<!-- start second block -->
					<section class="related-articles">
						<h1>Further reading</h1>
						{article_related_content status="open|In Progress"}
						<article>
						<h2><a href="{site_url}{if article_related_content:channel_short_name=='blog'}{article_related_content:channel_short_name}/post/{article_related_content:url_title}{if:elseif article_related_content:channel_short_name=='articles'}article/{article_related_content:url_title}{if:elseif article_related_content:channel_short_name=='columns'}column/{article_related_content:url_title}{/if}" data-trackevent="Related sidebar: Related by editor">{article_related_content:title}</a></h2>
						<p>{exp:strip_html}
						{if article_related_content:channel_short_name=='columns'}
							{if article_related_content:column_mini_deck}{article_related_content:column_mini_deck}{if:elseif article_related_content:column_intro}{exp:trunchtml chars="130" inline="..."}{article_related_content:column_intro}{/exp:trunchtml}{/if}
						{if:elseif article_related_content:channel_short_name=='blog'}
							{if article_related_content:blog_mini_deck}{article_related_content:blog_mini_deck}{if:elseif article_related_content:blog_intro}{exp:trunchtml chars="130" inline="..."}{article_related_content:blog_intro}{/exp:trunchtml}{/if}
						{if:elseif article_related_content:channel_short_name=='articles'}
							{if article_related_content:article_mini_deck}{article_related_content:article_mini_deck}{if:elseif article_related_content:article_deck}{exp:trunchtml chars="130" inline="..."}{article_related_content:article_deck}{/exp:trunchtml}{/if}
						{/if}
						{/exp:strip_html}</p>
						</article>
						{/article_related_content}
						</section>
					{if:else}
					{categories limit="1" category_group="3"}
						<section class="related-articles">
							<h1 class="primary-cat-header">
								Further reading about
								<a href="/topic/{category_url_title}" data-trackevent="Related sidebar: Related by category">{category_name}</a>
							</h1>
							<article>
								{embed="embeds/primary-category-entries" category_id="{category_id}" exclude="{entry_id}"}
							</article>
						</section>
					{/categories}
					{!--primary_categories}
						<section class="related-articles">
							<h1 class="primary-cat-header">
								Further reading about
								<a href="/topic/{primary_category_url_title}" data-trackevent="Related sidebar: Related by category">{primary_category_name}</a>
							</h1>
							<article>
								{embed="embeds/primary-category-entries" category_id="{primary_category_id}" exclude="{entry_id}"}
							</article>
						</section>
					{/primary_categories--}
					{/if}
				</aside>
				{/exp:channel:entries}<commit_msg>testing related sidebar conditional logic<commit_after>		{exp:channel:entries channel="articles" limit="1" entry_id="{embed:entry_id}" status="open|In Progress"}
		{exp:playa:parents channel="issues" status="open|In Progress"}{exp:stash:set name="total-children"}{exp:playa:total_children}{/exp:stash:set}{/exp:playa:parents}

			<aside id="related" class="sidebar var1">
				<i class="widget-branding ala"></i>
			{if article_follow_up != ""}
			<!-- start first block--><!-- if a follow up has been selected show the follow up -->
				<section class="follow-up">
				<h1>Follow-up</h1>
				{article_follow_up}
				<article>
					{entry}<h1><a href="{site_url}{if channel_short_name=='blog'}{channel_short_name}/post/{url_title}{if:elseif channel_short_name=='articles'}article/{url_title}{if:elseif channel_short_name=='columns'}column/{url_title}{/if}" data-trackevent="Related sidebar: Follow up">{title}</a></h1>{/entry}
					<p>{exp:strip_html}
					{if note}
						{note}
					{if:else}
						{entry}
							{if channel_short_name=='blog'}
								{if blog_mini_deck}{blog_mini_deck}{if:elseif blog_intro}{exp:trunchtml chars="130" inline="..."}{blog_intro}{/exp:trunchtml}{/if}
							{if:elseif channel_short_name=='columns'}
								{if column_mini_deck}{column_mini_deck}{if:elseif column_intro}{exp:trunchtml chars="130" inline="..."}{column_intro}{/exp:trunchtml}{/if}
							{if:elseif channel_short_name=='articles'}
								{if article_mini_deck}{article_mini_deck}{if:elseif article_deck}{exp:trunchtml chars="130" inline="..."}{article_deck}{/exp:trunchtml}{/if}
							{/if}
						{/entry}
					{/if}
					{/exp:strip_html}</p>
				</article>
				{/article_follow_up}
				</section>
			{/if}
			<!-- if a follow up has not been selected, and the issue has two articles show the other article -->
			{exp:playa:parents channel="issues" status="open|In Progress"}
			{if article_follow_up == "" && {exp:stash:get name="total-children"} > 1}
			{exp:stash:set name="issue-number"}{issue_number}{/exp:stash:set}
			{exp:playa:children child_id="not {embed:entry_id}" status="open|In Progress"}
				<section>
					{if count == "1"}
					{article_illustration}
					<figure class="sidebar-hero {if width > height}wideone{/if}" data-picture data-alt="">
						<div data-src="{exp:ce_img:pair src="{url}" width="322" crop="no" save_type="jpg" quality="61"}{made}{/exp:ce_img:pair}"></div>
						<div data-src="{exp:ce_img:pair src="{url}" width="644" crop="no" save_type="jpg" quality="10"}{made}{/exp:ce_img:pair}" data-media="(min-width: 600px) and (min-device-pixel-ratio: 2.0)"></div>
						<noscript><img src="{exp:ce_img:pair src="{url}" width="322" crop="no" save_type="jpg" quality="10"}{made}{/exp:ce_img:pair}" alt=""></noscript>
					</figure>
					{/article_illustration}
					<h1>Also in Issue №&nbsp;{exp:stash:get name="issue-number"}</h1>
					{/if}
						<article>
						<h1><a href="/article/{url_title}" data-trackevent="Related sidebar: Also in issue">{title}</a></h1>
						<p>{exp:strip_html}{if article_mini_deck}<p>{article_mini_deck}</p>{if:elseif article_deck}<p>{exp:trunchtml chars="130" inline="..."}{article_deck}{/exp:trunchtml}</p>{/if}{/exp:strip_html}</p>
						</article>
					</section>
			{/exp:playa:children}
			{/if}
			{/exp:playa:parents}<!-- end first block -->
			{if "{article_related_content:count}" != ""}
			<!-- start second block --><!-- show related articles if they exist -->
				<section class="related-articles">
					<h1>Further reading</h1>
					{article_related_content status="open|In Progress"}
					<article>
					<h2><a href="{site_url}{if article_related_content:channel_short_name=='blog'}{article_related_content:channel_short_name}/post/{article_related_content:url_title}{if:elseif article_related_content:channel_short_name=='articles'}article/{article_related_content:url_title}{if:elseif article_related_content:channel_short_name=='columns'}column/{article_related_content:url_title}{/if}" data-trackevent="Related sidebar: Related by editor">{article_related_content:title}</a></h2>
					<p>{exp:strip_html}
					{if article_related_content:channel_short_name=='columns'}
						{if article_related_content:column_mini_deck}{article_related_content:column_mini_deck}{if:elseif article_related_content:column_intro}{exp:trunchtml chars="130" inline="..."}{article_related_content:column_intro}{/exp:trunchtml}{/if}
					{if:elseif article_related_content:channel_short_name=='blog'}
						{if article_related_content:blog_mini_deck}{article_related_content:blog_mini_deck}{if:elseif article_related_content:blog_intro}{exp:trunchtml chars="130" inline="..."}{article_related_content:blog_intro}{/exp:trunchtml}{/if}
					{if:elseif article_related_content:channel_short_name=='articles'}
						{if article_related_content:article_mini_deck}{article_related_content:article_mini_deck}{if:elseif article_related_content:article_deck}{exp:trunchtml chars="130" inline="..."}{article_related_content:article_deck}{/exp:trunchtml}{/if}
					{/if}
					{/exp:strip_html}</p>
					</article>
					{/article_related_content}
				</section>
			{if:else}<!-- if no related articles show categories -->
				{categories limit="1" category_group="3"}
					<section class="related-articles">
						<h1 class="primary-cat-header">
							Further reading about
							<a href="/topic/{category_url_title}" data-trackevent="Related sidebar: Related by category">{category_name}</a>
						</h1>
						<article>
							{embed="embeds/primary-category-entries" category_id="{category_id}" exclude="{entry_id}"}
						</article>
					</section>
				{/categories}
				{!--primary_categories}
					<section class="related-articles">
						<h1 class="primary-cat-header">
							Further reading about
							<a href="/topic/{primary_category_url_title}" data-trackevent="Related sidebar: Related by category">{primary_category_name}</a>
						</h1>
						<article>
							{embed="embeds/primary-category-entries" category_id="{primary_category_id}" exclude="{entry_id}"}
						</article>
					</section>
				{/primary_categories--}
			{/if}
			{exp:playa:parents channel="issues" status="open|In Progress"}
			{if article_follow_up == "" && {exp:stash:get name="total-children"} == 1}
				<section>
				<h1>A List Apart Events</h1>
				{embed="embeds/event-entries"}
				</section>
			{/if}
			{/exp:playa:parents}
			</aside>
			{/exp:channel:entries}
{'fraction_non_alphanumeric': 0.1765131420303834, 'fraction_numerical': 0.010368941403424162, 'mean_word_length': 5.069268292682927, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4438280', 'n_tokens_mistral': 5153, 'n_tokens_neox': 4110, 'n_words': 607}