<commit_before>﻿# ----------------------------------------
# PUB 02: VIEW ITEM DETAILS
# ----------------------------------------
param([string]$LogFolderPath)

$UserStory = "PUB02"

$0 = $myInvocation.MyCommand.Definition
$CommandDirectory = [System.IO.Path]::GetDirectoryName($0)

$values = @{"User Story: " = $UserStory}
New-HeaderDrawing -Values $Values

# ============================================= #
# =========  SEARCH RESULT SOURCES   ========== #
# ============================================= #
# TODO: Setup-ResultSources activates a CrossSitePublishingCMS feature, which makes little to no sense.
# Figure out a way to refactor this into a CommonCMS feature or do these setup steps only as part of
# your plugin project.
#$values = @{"Step: " = "#1 Create Search Result Sources"}
#New-HeaderDrawing -Values $Values

#$Script = $CommandDirectory + '\Setup-ResultSources.ps1'
#& $Script -Force

# ==================================== #
# =========  PAGE LAYOUTS   ========== #
# ==================================== #

$values = @{"Step: " = "#1 Create Page Layouts"}
New-HeaderDrawing -Values $Values

$Script = $CommandDirectory + '\Setup-PageLayouts.ps1'
& $Script -Force

# ==================================== #
# ========  PAGE INSTANCES   ========= #
# ==================================== #
# TODO: Setup-Pages activates a CrossSitePublishingCMS feature, which makes little to no sense.
# Figure out a way to refactor this into a CommonCMS feature or do these setup steps only as part of
# your plugin project.
#$values = @{"Step: " = "#3 Create Page Instances"}
#New-HeaderDrawing -Values $Values

#$Script = $CommandDirectory + '\Setup-Pages.ps1'
#& $Script -Force

# ==================================== #
# =======  DISPLAY TEMPLATES ========= #
# ==================================== #
# TODO: Setup-DisplayTemplates activates a CrossSitePublishingCMS feature, which makes little to no sense.
# Figure out a way to refactor this into a CommonCMS feature or do these setup steps only as part of
# your plugin project.
#$values = @{"Step: " = "#4 Create Display Templates"}
#New-HeaderDrawing -Values $Values

#$Script = $CommandDirectory + '\Setup-DisplayTemplates.ps1'
#& $Script<commit_msg>[StandardCMS, PUB] Uncommented installPUB02 scrits<commit_after>﻿# ----------------------------------------
# PUB 02: VIEW ITEM DETAILS
# ----------------------------------------
param([string]$LogFolderPath)

$UserStory = "PUB02"

$0 = $myInvocation.MyCommand.Definition
$CommandDirectory = [System.IO.Path]::GetDirectoryName($0)

$values = @{"User Story: " = $UserStory}
New-HeaderDrawing -Values $Values

# ============================================= #
# =========  SEARCH RESULT SOURCES   ========== #
# ============================================= #

$values = @{"Step: " = "#1 Create Search Result Sources"}
New-HeaderDrawing -Values $Values

$Script = $CommandDirectory + '\Setup-ResultSources.ps1'
& $Script -Force

# ==================================== #
# =========  PAGE LAYOUTS   ========== #
# ==================================== #

$values = @{"Step: " = "#1 Create Page Layouts"}
New-HeaderDrawing -Values $Values

$Script = $CommandDirectory + '\Setup-PageLayouts.ps1'
& $Script -Force

# ==================================== #
# ========  PAGE INSTANCES   ========= #
# ==================================== #

$values = @{"Step: " = "#3 Create Page Instances"}
New-HeaderDrawing -Values $Values

$Script = $CommandDirectory + '\Setup-Pages.ps1'
& $Script -Force

# ==================================== #
# =======  DISPLAY TEMPLATES ========= #
# ==================================== #

$values = @{"Step: " = "#4 Create Display Templates"}
New-HeaderDrawing -Values $Values

$Script = $CommandDirectory + '\Setup-DisplayTemplates.ps1'
& $Script
{'fraction_non_alphanumeric': 0.3453104359313078, 'fraction_numerical': 0.007926023778071334, 'mean_word_length': 4.339915373765868, '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': '1923968', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1012, 'n_words': 278}