<commit_before>/**
  Copyright (c) 2012 committers of YAKINDU and others.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html
  Contributors:
  	<NAME> - Initial contribution and API
 */
package org.yakindu.sct.generator.c

import org.yakindu.sct.generator.core.features.ICoreFeatureConstants
import org.yakindu.sct.model.sgen.FeatureParameterValue
import org.yakindu.sct.model.sgen.GeneratorEntry
import org.yakindu.sct.generator.c.features.CFeatureConstants

class GenmodelEntries {
	
	def private getLicenseFeature(GeneratorEntry it) {
		getFeatureConfiguration(ICoreFeatureConstants::LICENSE_HEADER)
	}
	
	def private FeatureParameterValue getLicenseTextParameter(GeneratorEntry it) {
		licenseFeature?.getParameterValue(ICoreFeatureConstants::LICENSE_TEXT)
	}
	
	def getLicenseText(GeneratorEntry it) {
		if (licenseTextParameter != null) {
			return "/*"+licenseTextParameter.stringValue+"*/"
		}
		return null
	}
	
	def private getIdentifierSettingsFeature(GeneratorEntry it) {
		getFeatureConfiguration(CFeatureConstants::FEATURE_IDENTIFIER_SETTINGS)
	}
	
	def private FeatureParameterValue getMaxIdentifierLengthParameter(GeneratorEntry it) {
		identifierSettingsFeature?.getParameterValue(CFeatureConstants::PARAMETER_MAX_IDENTIFIER_LENGTH)
	}
	<commit_msg>Ensure license text is enclosed with whitespaces.<commit_after>/**
  Copyright (c) 2012 committers of YAKINDU and others.
  All rights reserved. This program and the accompanying materials
  are made available under the terms of the Eclipse Public License v1.0
  which accompanies this distribution, and is available at
  http://www.eclipse.org/legal/epl-v10.html
  Contributors:
  	<NAME> - Initial contribution and API
 */
package org.yakindu.sct.generator.c

import org.yakindu.sct.generator.core.features.ICoreFeatureConstants
import org.yakindu.sct.model.sgen.FeatureParameterValue
import org.yakindu.sct.model.sgen.GeneratorEntry
import org.yakindu.sct.generator.c.features.CFeatureConstants

class GenmodelEntries {
	
	def private getLicenseFeature(GeneratorEntry it) {
		getFeatureConfiguration(ICoreFeatureConstants::LICENSE_HEADER)
	}
	
	def private FeatureParameterValue getLicenseTextParameter(GeneratorEntry it) {
		licenseFeature?.getParameterValue(ICoreFeatureConstants::LICENSE_TEXT)
	}
	
	def getLicenseText(GeneratorEntry it) {
		if (licenseTextParameter != null) {
			return "/* " + licenseTextParameter.stringValue.trim + " */"
		}
		return null
	}
	
	def private getIdentifierSettingsFeature(GeneratorEntry it) {
		getFeatureConfiguration(CFeatureConstants::FEATURE_IDENTIFIER_SETTINGS)
	}
	
	def private FeatureParameterValue getMaxIdentifierLengthParameter(GeneratorEntry it) {
		identifierSettingsFeature?.getParameterValue(CFeatureConstants::PARAMETER_MAX_IDENTIFIER_LENGTH)
	}
	
{'fraction_non_alphanumeric': 0.07565011820330969, 'fraction_numerical': 0.005403579871664978, 'mean_word_length': 5.936768149882904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4158578', 'n_tokens_mistral': 882, 'n_tokens_neox': 842, 'n_words': 184}