<commit_before>#
# First stage launcher: prepares necessary Make scripts
# and runs the second stage (see mk/load2.mk).
#
#   Date: Jan 25, 2012
# Author: <NAME>
#

export CACHE_DIR := mk/.cache
export MK_CACHE_DIR := $(CACHE_DIR)/mk

# Core scripts: def & obj.
export mk_core_def := $(MK_CACHE_DIR)/mk_core_def.mk
$(mk_core_def) : CACHE_INCLUDES := \
	mk/core/define.mk
$(mk_core_def) : ALLOC_SCOPE := a

export mk_core_obj := $(MK_CACHE_DIR)/mk_core_obj.mk
$(mk_core_obj) : CACHE_INCLUDES := \
	mk/core/object.mk
$(mk_core_obj) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_core_obj) : ALLOC_SCOPE := b

# Utils.
export mk_util := $(MK_CACHE_DIR)/mk_util.mk
$(mk_util) : CACHE_INCLUDES := \
	mk/util/wildcard.mk \
	mk/util/graph.mk
$(mk_util) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_util) : ALLOC_SCOPE := c

# GOLD parser engine.
export mk_gold_engine := $(MK_CACHE_DIR)/mk_gold_engine.mk
$(mk_gold_engine) : CACHE_INCLUDES := \
	mk/gold/engine.mk
$(mk_gold_engine) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_gold_engine) : ALLOC_SCOPE := d

# Tiny version of EMF Ecore.
export mk_model := $(MK_CACHE_DIR)/mk_model.mk
$(mk_model) : CACHE_INCLUDES := \
	mk/model/model.mk     \
	mk/model/metamodel.mk \
	mk/model/resource.mk  \
	mk/model/linkage.mk
$(mk_model) : CACHE_REQUIRES := \
	$(mk_core_obj)
$(mk_model) : ALLOC_SCOPE := e

# Myfiles parser & model.
export mk_mybuild_myfile := $(MK_CACHE_DIR)/mk_mybuild_myfile.mk
$(mk_mybuild_myfile) : CACHE_INCLUDES := \
	mk/mybuild/myfile-model.mk     \
	mk/mybuild/myfile-metamodel.mk \
	mk/mybuild/myfile-resource.mk  \
	mk/mybuild/myfile-linker.mk  \
	mk/mybuild/myfile-parser.mk
$(mk_mybuild_myfile) : CACHE_REQUIRES := \
	$(mk_gold_engine) \
	$(mk_model)
$(mk_mybuild_myfile) : ALLOC_SCOPE := f

# Configuration files model.
export mk_mybuild_configfile := $(MK_CACHE_DIR)/mk_mybuild_configfile.mk
$(mk_mybuild_configfile) : CACHE_INCLUDES := \
	mk/mybuild/configfile-model.mk     \
	mk/mybuild/configfile-metamodel.mk \
	mk/mybuild/configfile-resource.mk  \
	mk/mybuild/configfile-linker.mk  \
	mk/mybuild/configfile-parser.mk
$(mk_mybuild_configfile) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_model)
$(mk_mybuild_configfile) : ALLOC_SCOPE := g

# Build model files.
export mk_mybuild_build := $(MK_CACHE_DIR)/mk_mybuild_build.mk
$(mk_mybuild_build) : CACHE_INCLUDES := \
	mk/mybuild/build-model.mk     \
	mk/mybuild/build-metamodel.mk
$(mk_mybuild_build) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_mybuild_configfile) \
	$(mk_model)
$(mk_mybuild_build) : ALLOC_SCOPE := h


# Mybuild itself.
export mk_mybuild := $(MK_CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/mybuild.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_mybuild_configfile) \
	$(mk_mybuild_build)
$(mk_mybuild) : ALLOC_SCOPE := i

# Ugly scripts.
export mk_ugly := $(MK_CACHE_DIR)/mk_ugly.mk
$(mk_ugly) : CACHE_INCLUDES := \
	mk/ugly.mk
$(mk_ugly) : CACHE_REQUIRES := \
	$(mk_mybuild)# Agrrr...
$(mk_ugly) : ALLOC_SCOPE := u

export all_mk_files := \
	$(mk_core_def) \
	$(mk_core_obj) \
	$(mk_util) \
	$(mk_gold_engine) \
	$(mk_model) \
	$(mk_mybuild_myfile) \
	$(mk_mybuild_configfile) \
	$(mk_mybuild_build) \
	$(mk_mybuild) \
	$(mk_ugly)

#
# To get our scripts work properly an 'ALLOC_SCOPE' variable should be defined.
#<commit_msg>spread definition of all_mk_files over load.mk<commit_after>#
# First stage launcher: prepares necessary Make scripts
# and runs the second stage (see mk/load2.mk).
#
#   Date: Jan 25, 2012
# Author: <NAME>
#

export CACHE_DIR := mk/.cache
export MK_CACHE_DIR := $(CACHE_DIR)/mk

# Core scripts: def & obj.
export mk_core_def := $(MK_CACHE_DIR)/mk_core_def.mk
$(mk_core_def) : CACHE_INCLUDES := \
	mk/core/define.mk
$(mk_core_def) : ALLOC_SCOPE := a
all_mk_files += $(mk_core_def)

export mk_core_obj := $(MK_CACHE_DIR)/mk_core_obj.mk
$(mk_core_obj) : CACHE_INCLUDES := \
	mk/core/object.mk
$(mk_core_obj) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_core_obj) : ALLOC_SCOPE := b
all_mk_files += $(mk_core_obj)

# Utils.
export mk_util := $(MK_CACHE_DIR)/mk_util.mk
$(mk_util) : CACHE_INCLUDES := \
	mk/util/wildcard.mk \
	mk/util/graph.mk
$(mk_util) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_util) : ALLOC_SCOPE := c
all_mk_files += $(mk_util)

# GOLD parser engine.
export mk_gold_engine := $(MK_CACHE_DIR)/mk_gold_engine.mk
$(mk_gold_engine) : CACHE_INCLUDES := \
	mk/gold/engine.mk
$(mk_gold_engine) : CACHE_REQUIRES := \
	$(mk_core_def)
$(mk_gold_engine) : ALLOC_SCOPE := d
all_mk_files += $(mk_gold_engine)

# Tiny version of EMF Ecore.
export mk_model := $(MK_CACHE_DIR)/mk_model.mk
$(mk_model) : CACHE_INCLUDES := \
	mk/model/model.mk     \
	mk/model/metamodel.mk \
	mk/model/resource.mk  \
	mk/model/linkage.mk
$(mk_model) : CACHE_REQUIRES := \
	$(mk_core_obj)
$(mk_model) : ALLOC_SCOPE := e
all_mk_files += $(mk_model)

# Myfiles parser & model.
export mk_mybuild_myfile := $(MK_CACHE_DIR)/mk_mybuild_myfile.mk
$(mk_mybuild_myfile) : CACHE_INCLUDES := \
	mk/mybuild/myfile-model.mk     \
	mk/mybuild/myfile-metamodel.mk \
	mk/mybuild/myfile-resource.mk  \
	mk/mybuild/myfile-linker.mk  \
	mk/mybuild/myfile-parser.mk
$(mk_mybuild_myfile) : CACHE_REQUIRES := \
	$(mk_gold_engine) \
	$(mk_model)
$(mk_mybuild_myfile) : ALLOC_SCOPE := f
all_mk_files += $(mk_mybuild_myfile)

# Configuration files model.
export mk_mybuild_configfile := $(MK_CACHE_DIR)/mk_mybuild_configfile.mk
$(mk_mybuild_configfile) : CACHE_INCLUDES := \
	mk/mybuild/configfile-model.mk     \
	mk/mybuild/configfile-metamodel.mk \
	mk/mybuild/configfile-resource.mk  \
	mk/mybuild/configfile-linker.mk  \
	mk/mybuild/configfile-parser.mk
$(mk_mybuild_configfile) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_model)
$(mk_mybuild_configfile) : ALLOC_SCOPE := g
all_mk_files += $(mk_mybuild_configfile)

# Build model files.
export mk_mybuild_build := $(MK_CACHE_DIR)/mk_mybuild_build.mk
$(mk_mybuild_build) : CACHE_INCLUDES := \
	mk/mybuild/build-model.mk     \
	mk/mybuild/build-metamodel.mk
$(mk_mybuild_build) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_mybuild_configfile) \
	$(mk_model)
$(mk_mybuild_build) : ALLOC_SCOPE := h
all_mk_files += $(mk_mybuild_build)

# Mybuild itself.
export mk_mybuild := $(MK_CACHE_DIR)/mk_mybuild.mk
$(mk_mybuild) : CACHE_INCLUDES := \
	mk/mybuild/mybuild.mk
$(mk_mybuild) : CACHE_REQUIRES := \
	$(mk_mybuild_myfile) \
	$(mk_mybuild_configfile) \
	$(mk_mybuild_build)
$(mk_mybuild) : ALLOC_SCOPE := i
all_mk_files += $(mk_mybuild)

# Ugly scripts.
export mk_ugly := $(MK_CACHE_DIR)/mk_ugly.mk
$(mk_ugly) : CACHE_INCLUDES := \
	mk/ugly.mk
$(mk_ugly) : CACHE_REQUIRES := \
	$(mk_mybuild)# Agrrr...
$(mk_ugly) : ALLOC_SCOPE := u
all_mk_files += $(mk_ugly)

# Flatten and export.
export all_mk_files := $(all_mk_files)

#
# To get our scripts work properly an 'ALLOC_SCOPE' variable should be defined.
#
{'fraction_non_alphanumeric': 0.15157710280373832, 'fraction_numerical': 0.0020443925233644858, 'mean_word_length': 4.660330578512396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3539494', 'n_tokens_mistral': 2986, 'n_tokens_neox': 2929, 'n_words': 447}