<commit_before><template>
<div class="mk-widget-container" :class="{ naked, hideHeader: !showHeader }">
	<header v-if="showHeader">
		<div class="title"><slot name="header"></slot></div>
		<slot name="func"></slot>
	</header>
	<slot></slot>
</div>
</template>

<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
	props: {
		showHeader: {
			type: Boolean,
			default: true
		},
		naked: {
			type: Boolean,
			default: false
		}
	}
});
</script>

<style lang="stylus" scoped>
.mk-widget-container
	background var(--face)
	border-radius 8px
	box-shadow 0 4px 16px rgba(#000, 0.1)
	overflow hidden

	&.naked
		background transparent !important
		box-shadow none !important

	> header
		> .title
			margin 0
			padding 8px 10px
			font-size 15px
			font-weight normal
			color var(--faceHeaderText)
			background var(--faceHeader)
			border-radius 8px 8px 0 0

			> [data-icon]
				margin-right 6px

			&:empty
				display none

		> button
			position absolute
			z-index 2
			top 0
			right 0
			padding 0
			width 42px
			height 100%
			font-size 15px
			color #465258

</style><commit_msg>:art:<commit_after><template>
<div class="mk-widget-container" :class="{ naked, hideHeader: !showHeader }">
	<header v-if="showHeader">
		<div class="title"><slot name="header"></slot></div>
		<slot name="func"></slot>
	</header>
	<slot></slot>
</div>
</template>

<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
	props: {
		showHeader: {
			type: Boolean,
			default: true
		},
		naked: {
			type: Boolean,
			default: false
		}
	}
});
</script>

<style lang="stylus" scoped>
.mk-widget-container
	background var(--face)
	border-radius 8px
	box-shadow 0 4px 16px rgba(#000, 0.1)
	overflow hidden

	&.naked
		background transparent !important
		box-shadow none !important

	> header
		> .title
			margin 0
			padding 8px 10px
			font-size 15px
			font-weight normal
			color var(--faceHeaderText)
			background var(--faceHeader)
			border-radius 8px 8px 0 0

			> [data-icon]
				margin-right 6px

			&:empty
				display none

		> button
			position absolute
			z-index 2
			top 0
			right 0
			padding 0
			width 42px
			height 100%
			font-size 15px
			color var(--faceTextButton)

</style>
{'fraction_non_alphanumeric': 0.13816381638163816, 'fraction_numerical': 0.0315031503150315, 'mean_word_length': 3.1396648044692737, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 47, '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': '2494282', 'n_tokens_mistral': 983, 'n_tokens_neox': 780, 'n_words': 215}