<commit_before>import { get } from "@ember/object";
import ModalDialogComponent from "../modal-dialog/component";
import layout from "./template.hbs";


function actionFactory( action ) {
	return function( success, failure ) {
		get( this, "modal.context" ).send( action, success, failure );
	};
}


export default ModalDialogComponent.extend({
	layout,

	"class": "modal-confirm",

	hotkeysNamespace: "modalconfirm",
	hotkeys: {
		confirm: "apply"<commit_msg>ui/components: fix context of confirm modal<commit_after>import ModalDialogComponent from "../modal-dialog/component";
import layout from "./template.hbs";


function actionFactory( action ) {
	return function( success, failure ) {
		this.modalContext.send( action, success, failure );
	};
}


export default ModalDialogComponent.extend({
	layout,

	"class": "modal-confirm",

	hotkeysNamespace: "modalconfirm",
	hotkeys: {
		confirm: "apply"
{'fraction_non_alphanumeric': 0.1352549889135255, 'fraction_numerical': 0.0, 'mean_word_length': 5.142857142857143, 'pattern_counts': {'":': 2, '<': 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': '251959', 'n_tokens_mistral': 273, 'n_tokens_neox': 260, 'n_words': 71}