<commit_before># Module.mk for the bench module
# Copyright (c) 2005 <NAME> and <NAME>
#
# Author: <NAME>, 17/2/2011

MODNAME      := proofbench
MODDIR       := $(ROOT_SRCDIR)/proof/$(MODNAME)
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

PROOFBENCHDIR  := $(MODDIR)
PROOFBENCHDIRS := $(PROOFBENCHDIR)/src
PROOFBENCHDIRI := $(PROOFBENCHDIR)/inc

##### libProofBench #####
PROOFBENCHL  := $(MODDIRI)/LinkDef.h
PROOFBENCHDS := $(call stripsrc,$(MODDIRS)/G__ProofBench.cxx)
PROOFBENCHDO := $(PROOFBENCHDS:.cxx=.o)
PROOFBENCHDH := $(PROOFBENCHDS:.cxx=.h)

PROOFBENCHH  := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
PROOFBENCHH  := $(filter-out $(MODDIRI)/TSel%,$(PROOFBENCHH))
PROOFBENCHS  := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
PROOFBENCHS  := $(filter-out $(MODDIRS)/TSel%,$(PROOFBENCHS))
PROOFBENCHO  := $(PROOFBENCHS:.cxx=.o)

PROOFBENCHDEP := $(PROOFBENCHO:.o=.d) $(PROOFBENCHDO:.o=.d)

PROOFBENCHLIB := $(LPATH)/libProofBench.$(SOEXT)
PROOFBENCHMAP := $(PROOFBENCHLIB:.$(SOEXT)=.rootmap)

##### ProofBenchDataSel PAR file #####
PBDPARDIR   := $(call stripsrc,$(PROOFBENCHDIRS)/ProofBenchDataSel)
PBDPARINF   := $(PBDPARDIR)/PROOF-INF
PBDPARH     := $(ROOT_SRCDIR)/test/Event.h $(MODDIRI)/TProofBenchTypes.h
PBDPARS     := $(ROOT_SRCDIR)/test/Event.cxx
PBDPARH     += $(wildcard $(MODDIRI)/TSel*.h)
PBDPARS     += $(wildcard $(MODDIRS)/TSel*.cxx)
PBDPARH     := $(filter-out $(MODDIRI)/TSelHist%, $(PBDPARH))
PBDPARS     := $(filter-out $(MODDIRS)/TSelHist%, $(PBDPARS))

PBDPAR      := $(call stripsrc,$(MODDIRS)/ProofBenchDataSel.par)

##### ProofBenchCPUSel PAR file #####
PBCPARDIR   := $(call stripsrc,$(PROOFBENCHDIRS)/ProofBenchCPUSel)
PBCPARINF   := $(PBCPARDIR)/PROOF-INF
PBCPARH     := $(MODDIRI)/TProofBenchTypes.h $(MODDIRI)/TSelHist.h
PBCPARS     := $(MODDIRS)/TSelHist.cxx

PBCPAR      := $(call stripsrc,$(MODDIRS)/ProofBenchCPUSel.par)

# used in the main Makefile
ALLHDRS      += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PROOFBENCHH))
ALLLIBS      += $(PROOFBENCHLIB) $(PBDPAR) $(PBCPAR)
ALLMAPS      += $(PROOFBENCHMAP)

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

##### local rules #####
.PHONY:         all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)

include/%.h:    $(PROOFBENCHDIRI)/%.h
		cp $< $@

$(PROOFBENCHLIB): $(PROOFBENCHO) $(PROOFBENCHDO) $(ORDER_) $(MAINLIBS) \
                  $(PROOFBENCHLIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libProofBench.$(SOEXT) $@ \
		   "$(PROOFBENCHO) $(PROOFBENCHDO)" \
         "$(PROOFBENCHLIBEXTRA)"

$(PROOFBENCHDS): $(PROOFBENCHH) $(PROOFBENCHL) $(ROOTCINTTMPDEP)
		$(MAKEDIR)
		@echo "Generating dictionary $@..."
		$(ROOTCINTTMP) -f $@ -c $(PROOFBENCHH) $(PROOFBENCHL)

$(PROOFBENCHMAP): $(RLIBMAP) $(MAKEFILEDEP) $(PROOFBENCHL)
		$(RLIBMAP) -o $@ -l $(PROOFBENCHLIB) \
		   -d $(PROOFBENCHLIBDEPM) -c $(PROOFBENCHL)

$(PBDPAR):   $(PBDPARH) $(PBDPARS)
		@echo "Generating PAR file $@..."
		@(if test -d $(PBDPARDIR); then \
		   rm -fr $(PBDPARDIR); \
		fi; \
		mkdir -p $(PBDPARINF); \
		for f in $(PBDPARH) $(PBDPARS); do \
		   $(INSTALL) $$f $(PBDPARDIR); \
		done; \
		echo "#include \"TClass.h\"" > $(PBDPARINF)/SETUP.C ; \
		echo "#include \"TROOT.h\"" >> $(PBDPARINF)/SETUP.C ; \
		echo "Int_t SETUP() {" >> $(PBDPARINF)/SETUP.C ; \
		echo "   if (!TClass::GetClass(\"TPBReadType\")) {" >> $(PBDPARINF)/SETUP.C ; \
		echo "      gROOT->ProcessLine(\".L TProofBenchTypes.h+\");" >> $(PBDPARINF)/SETUP.C ; \
		echo "   }" >> $(PBDPARINF)/SETUP.C ; \
		for f in $(PBDPARS); do \
		   b=`basename $$f`; \
		   echo "   gROOT->ProcessLine(\".L $$b+\");" >> $(PBDPARINF)/SETUP.C ; \
		done; \
		echo "   return 0;" >> $(PBDPARINF)/SETUP.C ; \
		echo "}" >> $(PBDPARINF)/SETUP.C ; \
		builddir=$(PWD); \
		cd $(call stripsrc,$(PROOFBENCHDIRS)); \
		par=`basename $(PBDPAR)`; \
		pardir=`basename $(PBDPARDIR)`; \
		tar czf $$par $$pardir; \
		cd $$builddir; \
		rm -fr $(PBDPARDIR))

$(PBCPAR):   $(PBCPARH) $(PBCPARS)
		@echo "Generating PAR file $@..."
		@(if test -d $(PBCPARDIR); then \
		   rm -fr $(PBCPARDIR); \
		fi; \
		mkdir -p $(PBCPARINF); \
		for f in $(PBCPARH) $(PBCPARS); do \
		   $(INSTALL) $$f $(PBCPARDIR); \
		done; \
		echo "#include \"TClass.h\"" > $(PBCPARINF)/SETUP.C ; \
		echo "#include \"TROOT.h\"" >> $(PBCPARINF)/SETUP.C ; \
		echo "Int_t SETUP() {" >> $(PBCPARINF)/SETUP.C ; \
		echo "   if (!TClass::GetClass(\"TPBReadType\")) {" >> $(PBCPARINF)/SETUP.C ; \
		echo "      gROOT->ProcessLine(\".L TProofBenchTypes.h+\");" >> $(PBCPARINF)/SETUP.C ; \
		echo "   }" >> $(PBCPARINF)/SETUP.C ; \
		for f in $(PBCPARS); do \
		   b=`basename $$f`; \
		   echo "   gROOT->ProcessLine(\".L $$b+\");" >> $(PBCPARINF)/SETUP.C ; \
		done; \
		echo "   return 0;" >> $(PBCPARINF)/SETUP.C ; \
		echo "}" >> $(PBCPARINF)/SETUP.C ; \
		builddir=$(PWD); \
		cd $(call stripsrc,$(PROOFBENCHDIRS)); \
		par=`basename $(PBCPAR)`; \
		pardir=`basename $(PBCPARDIR)`; \
		tar czf $$par $$pardir; \
		cd $$builddir; \
		rm -fr $(PBCPARDIR))

all-$(MODNAME): $(PROOFBENCHLIB) $(PROOFBENCHMAP) $(PBDPAR) $(PBCPAR)

clean-$(MODNAME):
		@rm -f $(PROOFBENCHO) $(PROOFBENCHDO)

clean::         clean-$(MODNAME)

distclean-$(MODNAME): clean-$(MODNAME)<commit_msg>Fix issue with proofbench PAR file creation on Solaris (opt 'z' non supported by tar)<commit_after># Module.mk for the bench module
# Copyright (c) 2005 <NAME> and <NAME>
#
# Author: <NAME>, 17/2/2011

MODNAME      := proofbench
MODDIR       := $(ROOT_SRCDIR)/proof/$(MODNAME)
MODDIRS      := $(MODDIR)/src
MODDIRI      := $(MODDIR)/inc

PROOFBENCHDIR  := $(MODDIR)
PROOFBENCHDIRS := $(PROOFBENCHDIR)/src
PROOFBENCHDIRI := $(PROOFBENCHDIR)/inc

##### libProofBench #####
PROOFBENCHL  := $(MODDIRI)/LinkDef.h
PROOFBENCHDS := $(call stripsrc,$(MODDIRS)/G__ProofBench.cxx)
PROOFBENCHDO := $(PROOFBENCHDS:.cxx=.o)
PROOFBENCHDH := $(PROOFBENCHDS:.cxx=.h)

PROOFBENCHH  := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
PROOFBENCHH  := $(filter-out $(MODDIRI)/TSel%,$(PROOFBENCHH))
PROOFBENCHS  := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
PROOFBENCHS  := $(filter-out $(MODDIRS)/TSel%,$(PROOFBENCHS))
PROOFBENCHO  := $(PROOFBENCHS:.cxx=.o)

PROOFBENCHDEP := $(PROOFBENCHO:.o=.d) $(PROOFBENCHDO:.o=.d)

PROOFBENCHLIB := $(LPATH)/libProofBench.$(SOEXT)
PROOFBENCHMAP := $(PROOFBENCHLIB:.$(SOEXT)=.rootmap)

##### ProofBenchDataSel PAR file #####
PBDPARDIR   := $(call stripsrc,$(PROOFBENCHDIRS)/ProofBenchDataSel)
PBDPARINF   := $(PBDPARDIR)/PROOF-INF
PBDPARH     := $(ROOT_SRCDIR)/test/Event.h $(MODDIRI)/TProofBenchTypes.h
PBDPARS     := $(ROOT_SRCDIR)/test/Event.cxx
PBDPARH     += $(wildcard $(MODDIRI)/TSel*.h)
PBDPARS     += $(wildcard $(MODDIRS)/TSel*.cxx)
PBDPARH     := $(filter-out $(MODDIRI)/TSelHist%, $(PBDPARH))
PBDPARS     := $(filter-out $(MODDIRS)/TSelHist%, $(PBDPARS))

PBDPAR      := $(call stripsrc,$(MODDIRS)/ProofBenchDataSel.par)

##### ProofBenchCPUSel PAR file #####
PBCPARDIR   := $(call stripsrc,$(PROOFBENCHDIRS)/ProofBenchCPUSel)
PBCPARINF   := $(PBCPARDIR)/PROOF-INF
PBCPARH     := $(MODDIRI)/TProofBenchTypes.h $(MODDIRI)/TSelHist.h
PBCPARS     := $(MODDIRS)/TSelHist.cxx

PBCPAR      := $(call stripsrc,$(MODDIRS)/ProofBenchCPUSel.par)

# used in the main Makefile
ALLHDRS      += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PROOFBENCHH))
ALLLIBS      += $(PROOFBENCHLIB) $(PBDPAR) $(PBCPAR)
ALLMAPS      += $(PROOFBENCHMAP)

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

##### local rules #####
.PHONY:         all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)

include/%.h:    $(PROOFBENCHDIRI)/%.h
		cp $< $@

$(PROOFBENCHLIB): $(PROOFBENCHO) $(PROOFBENCHDO) $(ORDER_) $(MAINLIBS) \
                  $(PROOFBENCHLIBDEP)
		@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
		   "$(SOFLAGS)" libProofBench.$(SOEXT) $@ \
		   "$(PROOFBENCHO) $(PROOFBENCHDO)" \
         "$(PROOFBENCHLIBEXTRA)"

$(PROOFBENCHDS): $(PROOFBENCHH) $(PROOFBENCHL) $(ROOTCINTTMPDEP)
		$(MAKEDIR)
		@echo "Generating dictionary $@..."
		$(ROOTCINTTMP) -f $@ -c $(PROOFBENCHH) $(PROOFBENCHL)

$(PROOFBENCHMAP): $(RLIBMAP) $(MAKEFILEDEP) $(PROOFBENCHL)
		$(RLIBMAP) -o $@ -l $(PROOFBENCHLIB) \
		   -d $(PROOFBENCHLIBDEPM) -c $(PROOFBENCHL)

$(PBDPAR):   $(PBDPARH) $(PBDPARS)
		@echo "Generating PAR file $@..."
		@(if test -d $(PBDPARDIR); then \
		   rm -fr $(PBDPARDIR); \
		fi; \
		mkdir -p $(PBDPARINF); \
		for f in $(PBDPARH) $(PBDPARS); do \
		   $(INSTALL) $$f $(PBDPARDIR); \
		done; \
		echo "#include \"TClass.h\"" > $(PBDPARINF)/SETUP.C ; \
		echo "#include \"TROOT.h\"" >> $(PBDPARINF)/SETUP.C ; \
		echo "Int_t SETUP() {" >> $(PBDPARINF)/SETUP.C ; \
		echo "   if (!TClass::GetClass(\"TPBReadType\")) {" >> $(PBDPARINF)/SETUP.C ; \
		echo "      gROOT->ProcessLine(\".L TProofBenchTypes.h+\");" >> $(PBDPARINF)/SETUP.C ; \
		echo "   }" >> $(PBDPARINF)/SETUP.C ; \
		for f in $(PBDPARS); do \
		   b=`basename $$f`; \
		   echo "   gROOT->ProcessLine(\".L $$b+\");" >> $(PBDPARINF)/SETUP.C ; \
		done; \
		echo "   return 0;" >> $(PBDPARINF)/SETUP.C ; \
		echo "}" >> $(PBDPARINF)/SETUP.C ; \
		builddir=$(PWD); \
		cd $(call stripsrc,$(PROOFBENCHDIRS)); \
		par=`basename $(PBDPAR)`; \
		partmp=`basename $(PBDPAR).tmp`; \
		pardir=`basename $(PBDPARDIR)`; \
		tar cf $$partmp $$pardir; \
		gzip $$partmp; \
		mv $$partmp.gz $$par; \
		cd $$builddir; \
		rm -fr $(PBDPARDIR))

$(PBCPAR):   $(PBCPARH) $(PBCPARS)
		@echo "Generating PAR file $@..."
		@(if test -d $(PBCPARDIR); then \
		   rm -fr $(PBCPARDIR); \
		fi; \
		mkdir -p $(PBCPARINF); \
		for f in $(PBCPARH) $(PBCPARS); do \
		   $(INSTALL) $$f $(PBCPARDIR); \
		done; \
		echo "#include \"TClass.h\"" > $(PBCPARINF)/SETUP.C ; \
		echo "#include \"TROOT.h\"" >> $(PBCPARINF)/SETUP.C ; \
		echo "Int_t SETUP() {" >> $(PBCPARINF)/SETUP.C ; \
		echo "   if (!TClass::GetClass(\"TPBReadType\")) {" >> $(PBCPARINF)/SETUP.C ; \
		echo "      gROOT->ProcessLine(\".L TProofBenchTypes.h+\");" >> $(PBCPARINF)/SETUP.C ; \
		echo "   }" >> $(PBCPARINF)/SETUP.C ; \
		for f in $(PBCPARS); do \
		   b=`basename $$f`; \
		   echo "   gROOT->ProcessLine(\".L $$b+\");" >> $(PBCPARINF)/SETUP.C ; \
		done; \
		echo "   return 0;" >> $(PBCPARINF)/SETUP.C ; \
		echo "}" >> $(PBCPARINF)/SETUP.C ; \
		builddir=$(PWD); \
		cd $(call stripsrc,$(PROOFBENCHDIRS)); \
		par=`basename $(PBCPAR)`; \
		partmp=`basename $(PBCPAR).tmp`; \
		pardir=`basename $(PBCPARDIR)`; \
		tar cf $$partmp $$pardir; \
		gzip $$partmp; \
		mv $$partmp.gz $$par; \
		cd $$builddir; \
		rm -fr $(PBCPARDIR))

all-$(MODNAME): $(PROOFBENCHLIB) $(PROOFBENCHMAP) $(PBDPAR) $(PBCPAR)

clean-$(MODNAME):
		@rm -f $(PROOFBENCHO) $(PROOFBENCHDO)

clean::         clean-$(MODNAME)

distclean-$(MODNAME): clean-$(MODNAME)
{'fraction_non_alphanumeric': 0.2266890005583473, 'fraction_numerical': 0.002419504932067746, 'mean_word_length': 3.678711362646931, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 85, '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': '6582214', 'n_tokens_mistral': 4977, 'n_tokens_neox': 4662, 'n_words': 753}