<commit_before>#
# Metamodel internal utils.
#
#   Date: Jan 20, 2011
# Author: <NAME>
#

ifndef __model_metamodel_internals_mk
__model_metamodel_internals_mk := 1

# TODO Proper prefixes on functions. -- Eldar

#
# Meta object instantiation.
#

# Params:
#   1. Meta model ID (unused).
define createMetaModel
	$(for model <- $(invoke eModelFactory->createEMetaModel),
		# Do nothing special.
		$(model))
endef

# Params:
#   1. Meta model.
#   2. Meta class ID (unused).
define createMetaClass
	$(for class <- $(invoke eModelFactory->createEMetaClass),
		$(set+ 1->eTypes,$(class))
		$(class))
endef

# Params:
#   1. Meta class.
#   2. Meta feature ID (unused).
define createMetaAttribute
	$(for feature <- $(invoke eModelFactory->createEMetaAttribute),
		$(set+ 1->eFeatures,$(feature))
		$(feature))
endef

# Params:
#   1. Meta class.
#   2. Meta feature ID (unused).
define createMetaReference
	$(for feature <- $(invoke eModelFactory->createEMetaReference),
		$(set+ 1->eFeatures,$(feature))
		$(feature))
endef

#
# Objects initialization.
#

# Params:
#   1. Meta class.
#   2. Name.
#   3. Super types...
#   4. Flags...
define initMetaClass
	$(set 1->name,$2)
	$(set 1->eSuperTypes,$3)
	$(set 1->isAbstract,$(filter abstract,$4))
	$(set 1->isInterface,$(filter interface,$4))
endef

# Params:
#   1. Meta attribute.
#   2. Name.
#   3. Lower bound.
#   4. Upper bound.
#   5. Flags...
define initMetaAttribute<commit_msg>Add missing function, but still getting some warnings<commit_after>#
# Metamodel internal utils.
#
#   Date: Jan 20, 2011
# Author: <NAME>
#

ifndef __model_metamodel_internals_mk
__model_metamodel_internals_mk := 1

# TODO Proper prefixes on functions. -- Eldar

#
# Meta object instantiation.
#

# Params:
#   1. Meta model ID (unused).
define createMetaModel
	$(for model <- $(invoke eModelFactory->createEMetaModel),
		# Do nothing special.
		$(model))
endef

# Params:
#   1. Meta model.
#   2. Meta class ID (unused).
define createMetaClass
	$(for class <- $(invoke eModelFactory->createEMetaClass),
		$(set+ 1->eTypes,$(class))
		$(class))
endef

# Params:
#   1. Meta class.
#   2. Meta feature ID (unused).
define createMetaAttribute
	$(for feature <- $(invoke eModelFactory->createEMetaAttribute),
		$(set+ 1->eFeatures,$(feature))
		$(feature))
endef

# Params:
#   1. Meta class.
#   2. Meta feature ID (unused).
define createMetaReference
	$(for feature <- $(invoke eModelFactory->createEMetaReference),
		$(set+ 1->eFeatures,$(feature))
		$(feature))
endef

#
# Objects initialization.
#

# Params:
#   1. Meta model.
#   2. Name.
define initMetaModel
	$(set 1->name,$2)
endef

# Params:
#   1. Meta class.
#   2. Name.
#   3. Super types...
#   4. Flags...
define initMetaClass
	$(set 1->name,$2)
	$(set 1->eSuperTypes,$3)
	$(set 1->isAbstract,$(filter abstract,$4))
	$(set 1->isInterface,$(filter interface,$4))
endef

# Params:
#   1. Meta attribute.
#   2. Name.
#   3. Lower bound.
#   4. Upper bound.
#   5. Flags...
define initMetaAttribute
{'fraction_non_alphanumeric': 0.15703307718008688, 'fraction_numerical': 0.024056130972268625, 'mean_word_length': 3.6275115919629055, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 28, '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': '7463602', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1069, 'n_words': 295}