<commit_before>/*
 * ! ${copyright}
 */

// Provides the Design Time Metadata for the sap.ui.fl.variants.VariantManagement control.
sap.ui.define([
	"sap/ui/fl/Utils"
], function(
	flUtils
) {
	"use strict";
	var fnSetControlAttributes = function (oVariantManagement, bDesignTimeMode) {
		var oAppComponent = flUtils.getAppComponentForControl(oVariantManagement);
		var sControlId = oVariantManagement.getId();
		var oModel = oAppComponent.getModel(flUtils.VARIANT_MODEL_NAME);
		var sVariantManagementReference = oAppComponent.getLocalId(sControlId) || sControlId;

		if (!oModel) {
			return;
		}

		oModel.waitForVMControlInit(sVariantManagementReference).then(function() {
			oModel.setModelPropertiesForControl(sVariantManagementReference, bDesignTimeMode, oVariantManagement);
			oModel.checkUpdate(true);
		});
	};
	return {
		annotations: {},
		properties: {
			showSetAsDefault: {
				ignore: false
			},
			manualVariantKey: {
				ignore: true
			},
			inErrorState: {
				ignore: false
			},
			editable: {<commit_msg>[INTERNAL][FIX] sap.ui.fl: Hotfix for VariantManagement Soft Reload on Adaptation stop<commit_after>/*
 * ! ${copyright}
 */

// Provides the Design Time Metadata for the sap.ui.fl.variants.VariantManagement control.
sap.ui.define([
	"sap/ui/fl/Utils"
], function(
	flUtils
) {
	"use strict";
	var fnSetControlAttributes = function (oVariantManagement, bDesignTimeMode) {
		var oAppComponent = flUtils.getAppComponentForControl(oVariantManagement);
		var sControlId = oVariantManagement.getId();
		var oModel = oAppComponent.getModel(flUtils.VARIANT_MODEL_NAME);
		var sVariantManagementReference = oAppComponent.getLocalId(sControlId) || sControlId;

		if (!oModel) {
			return;
		}

		if (bDesignTimeMode) {
			oModel.waitForVMControlInit(sVariantManagementReference).then(function() {
			    oModel.setModelPropertiesForControl(sVariantManagementReference, bDesignTimeMode, oVariantManagement);
			    oModel.checkUpdate(true);
		    });
		} else {
			oModel.setModelPropertiesForControl(sVariantManagementReference, bDesignTimeMode, oVariantManagement);
			oModel.checkUpdate(true);
		}
	};
	return {
		annotations: {},
		properties: {
			showSetAsDefault: {
				ignore: false
			},
			manualVariantKey: {
				ignore: true
			},
			inErrorState: {
				ignore: false
			},
			editable: {
{'fraction_non_alphanumeric': 0.11082363087537732, 'fraction_numerical': 0.0, 'mean_word_length': 4.658536585365853, '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': '2500582', 'n_tokens_mistral': 820, 'n_tokens_neox': 728, 'n_words': 128}