<commit_before># Module.mk for tmva module


MODDIR       := tmva
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

TMVADIR       := $(MODDIR)
TMVADIRS      := $(TMVADIR)/src
TMVADIRI      := $(TMVADIR)/inc

##### libTMVA #####
TMVAL         := $(MODDIRI)/LinkDef.h
TMVADS        := $(MODDIRS)/G__TMVA.cxx
TMVADO        := $(TMVADS:.cxx=.o)
TMVADH        := $(TMVADS:.cxx=.h)

TMVAH         := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
TMVAS         := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
TMVAO         := $(TMVAS:.cxx=.o)

TMVADEP       := $(TMVAO:.o=.d) $(TMVADO:.o=.d)

TMVALIB       := $(LPATH)/libTMVA.$(SOEXT)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/TMVA/%.h,$(TMVAH))
ALLLIBS     += $(TMVALIB)

# include all dependency files
INCLUDEFILES += $(TMVADEP)

##### local rules #####
include/TMVA/%.h:    $(TMVADIRI)/%.h
		@(if [ ! -d "include/TMVA" ]; then     \
		   mkdir -p include/TMVA;              \
		fi)
		cp $< $@

$(TMVALIB):      $(TMVAO) $(TMVADO) $(ORDER_) $(MAINLIBS) $(TMVALIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libTMVA.$(SOEXT) $@ "$(TMVAO) $(TMVADO)" \
		   "$(TMVALIBEXTRA)"

$(TMVADS):       $(TMVAH) $(TMVAL) $(ROOTCINTTMPEXE)
		@echo "Generating dictionary $@..."
		$(ROOTCINTTMP) -f $@ -c $(TMVAH) $(TMVAL)

$(TMVADO):       $(TMVADS)
		$(CXX) $(NOOPT) $(CXXFLAGS) -I. -o $@ -c $<

all-tmva:        $(TMVALIB)

map-tmva:        $(RLIBMAP)
		$(RLIBMAP) -r $(ROOTMAP) -l $(TMVALIB) \
		   -d $(TMVALIBDEP) -c $(TMVAL)

map::           map-tmva

clean-tmva:
		@rm -f $(TMVAO) $(TMVADO)

clean::         clean-tmva

distclean-tmva:  clean-tmva
		@rm -f $(TMVADEP) $(TMVADS) $(TMVADH) $(TMVALIB)
		@rm -rf include/TMVA

distclean::     distclean-tmva<commit_msg>Fix a build problem (Windows)<commit_after># Module.mk for tmva module


MODDIR       := tmva
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

TMVADIR       := $(MODDIR)
TMVADIRS      := $(TMVADIR)/src
TMVADIRI      := $(TMVADIR)/inc

##### libTMVA #####
TMVAL         := $(MODDIRI)/LinkDef.h
TMVADS        := $(MODDIRS)/G__TMVA.cxx
TMVADO        := $(TMVADS:.cxx=.o)
TMVADH        := $(TMVADS:.cxx=.h)

TMVAH         := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
TMVAS         := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
TMVAO         := $(TMVAS:.cxx=.o)

TMVADEP       := $(TMVAO:.o=.d) $(TMVADO:.o=.d)

TMVALIB       := $(LPATH)/libTMVA.$(SOEXT)

# used in the main Makefile
ALLHDRS     += $(patsubst $(MODDIRI)/%.h,include/TMVA/%.h,$(TMVAH))
ALLLIBS     += $(TMVALIB)

# include all dependency files
INCLUDEFILES += $(TMVADEP)

##### local rules #####
include/TMVA/%.h:    $(TMVADIRI)/%.h
		@(if [ ! -d "include/TMVA" ]; then     \
		   mkdir -p include/TMVA;              \
		fi)
		cp $< $@

$(TMVALIB):      $(TMVAO) $(TMVADO) $(ORDER_) $(MAINLIBS) $(TMVALIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libTMVA.$(SOEXT) $@ "$(TMVAO) $(TMVADO)" \
		   "$(TMVALIBEXTRA)"

$(TMVADS):       $(TMVAH) $(TMVAL) $(ROOTCINTTMPEXE)
		@echo "Generating dictionary $@..."
		$(ROOTCINTTMP) -f $@ -c $(TMVAH) $(TMVAL)

all-tmva:        $(TMVALIB)

map-tmva:        $(RLIBMAP)
		$(RLIBMAP) -r $(ROOTMAP) -l $(TMVALIB) \
		   -d $(TMVALIBDEP) -c $(TMVAL)

map::           map-tmva

clean-tmva:
		@rm -f $(TMVAO) $(TMVADO)

clean::         clean-tmva

distclean-tmva:  clean-tmva
		@rm -f $(TMVADEP) $(TMVADS) $(TMVADH) $(TMVALIB)
		@rm -rf include/TMVA

distclean::     distclean-tmva
{'fraction_non_alphanumeric': 0.22734946539110862, 'fraction_numerical': 0.0, 'mean_word_length': 2.6725206611570247, 'pattern_counts': {'":': 0, '<': 6, '<?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': '1302080', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1531, 'n_words': 275}