<commit_before>import { RecursivePartial, DynamicSettings, CCAction, ColorRange } from "../../../codeCharta.model"

// Plop: Append action splitter import here
import { splitEdgeMetricAction } from "./edgeMetric/edgeMetric.splitter"
import { splitColorRangeAction } from "./colorRange/colorRange.splitter"
import { splitMarginAction } from "./margin/margin.splitter"
import { splitSearchPatternAction } from "./searchPattern/searchPattern.splitter"
import { splitSearchedNodePathsAction } from "./searchedNodePaths/searchedNodePaths.splitter"
import { splitFocusedNodePathAction } from "./focusedNodePath/focusedNodePath.splitter"
import { splitHeightMetricAction } from "./heightMetric/heightMetric.splitter"
import { splitDistributionMetricAction } from "./distributionMetric/distributionMetric.splitter"
import { splitColorMetricAction } from "./colorMetric/colorMetric.splitter"
import { splitAreaMetricAction } from "./areaMetric/areaMetric.splitter"

export function splitDynamicSettingsActions(payload: RecursivePartial<DynamicSettings>): CCAction[] {
	const actions: CCAction[] = []

	// Plop: Append action split here
	if (payload.edgeMetric !== undefined) {
		actions.push(splitEdgeMetricAction(payload.edgeMetric))
	}

	if (payload.colorRange !== undefined) {
		actions.push(splitColorRangeAction(payload.colorRange as ColorRange))
	}

	if (payload.margin !== undefined) {
		actions.push(splitMarginAction(payload.margin))
	}

	if (payload.searchPattern !== undefined) {
		actions.push(splitSearchPatternAction(payload.searchPattern))
	}

	if (payload.searchedNodePaths !== undefined) {
		actions.push(splitSearchedNodePathsAction(payload.searchedNodePaths))
	}

	if (payload.focusedNodePath !== undefined) {
		actions.push(splitFocusedNodePathAction(payload.focusedNodePath))
	}

	if (payload.heightMetric !== undefined) {
		actions.push(splitHeightMetricAction(payload.heightMetric))
	}

	if (payload.distributionMetric !== undefined) {
		actions.push(splitDistributionMetricAction(payload.distributionMetric))
	}

	if (payload.colorMetric !== undefined) {
		actions.push(splitColorMetricAction(payload.colorMetric))<commit_msg>Fix casting warning<commit_after>import { RecursivePartial, DynamicSettings, CCAction, ColorRange } from "../../../codeCharta.model"

// Plop: Append action splitter import here
import { splitEdgeMetricAction } from "./edgeMetric/edgeMetric.splitter"
import { splitColorRangeAction } from "./colorRange/colorRange.splitter"
import { splitMarginAction } from "./margin/margin.splitter"
import { splitSearchPatternAction } from "./searchPattern/searchPattern.splitter"
import { splitSearchedNodePathsAction } from "./searchedNodePaths/searchedNodePaths.splitter"
import { splitFocusedNodePathAction } from "./focusedNodePath/focusedNodePath.splitter"
import { splitHeightMetricAction } from "./heightMetric/heightMetric.splitter"
import { splitDistributionMetricAction } from "./distributionMetric/distributionMetric.splitter"
import { splitColorMetricAction } from "./colorMetric/colorMetric.splitter"
import { splitAreaMetricAction } from "./areaMetric/areaMetric.splitter"

export function splitDynamicSettingsActions(payload: RecursivePartial<DynamicSettings>): CCAction[] {
	const actions: CCAction[] = []

	// Plop: Append action split here
	if (payload.edgeMetric !== undefined) {
		actions.push(splitEdgeMetricAction(payload.edgeMetric))
	}

	if (payload.colorRange !== undefined) {
		actions.push(splitColorRangeAction(payload.colorRange as ColorRange))
	}

	if (payload.margin !== undefined) {
		actions.push(splitMarginAction(payload.margin))
	}

	if (payload.searchPattern !== undefined) {
		actions.push(splitSearchPatternAction(payload.searchPattern))
	}

	if (payload.searchedNodePaths !== undefined) {
		actions.push(splitSearchedNodePathsAction(payload.searchedNodePaths as string[]))
	}

	if (payload.focusedNodePath !== undefined) {
		actions.push(splitFocusedNodePathAction(payload.focusedNodePath))
	}

	if (payload.heightMetric !== undefined) {
		actions.push(splitHeightMetricAction(payload.heightMetric))
	}

	if (payload.distributionMetric !== undefined) {
		actions.push(splitDistributionMetricAction(payload.distributionMetric))
	}

	if (payload.colorMetric !== undefined) {
		actions.push(splitColorMetricAction(payload.colorMetric))
{'fraction_non_alphanumeric': 0.11488372093023255, 'fraction_numerical': 0.0, 'mean_word_length': 6.48, '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': '5329402', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1171, 'n_words': 211}