<commit_before>ARCH = $(shell uname -p)

#############################
# Opteron cluster
ifeq ($(ARCH),x86_64)
CXX = /usr/bin/g++
OPT = -O3
INCLUDES = -I/share/puhe/x86_64/include -I/share/puhe/linux/include -I/share/puhe/x86_64/include/lapackpp -I/share/puhe/x86_64/include/hcld/
LDFLAGS = -L/share/puhe/x86_64/lib
WARNINGS = -Wall -Wno-deprecated
DEPFLAG = -MM
endif

##############################
# Linux
ifeq ($(ARCH),i686)
CXX = /usr/bin/g++
OPT = -O3
INCLUDES = -I/share/puhe/rh9/include -I/share/puhe/linux/include
LDFLAGS =
WARNINGS = -Wall
DEPFLAG = -MM
endif

##################################################

PROGS = feacat feadot feanorm phone_probs segfea vtln stats estimate test_qep
#PROGS = feacat feadot feanorm phone_probs segfea init_hmm align tie vtln mllr gprocess estep
#meltest adapt vtln train2 phone_probs2 segfea2 feanorm feacat init_hmm2 hmm2dcd tie cepstract

PROGS_SRCS = $(PROGS:=.cc)

CLASS_SRCS = FeatureGenerator.cc FeatureModules.cc AudioReader.cc \
	ModuleConfig.cc HmmSet.cc \
	PhnReader.cc TriphoneSet.cc SpeakerConfig.cc \
	Recipe.cc conf.cc io.cc str.cc endian.cc Distributions.cc \
	LinearAlgebra.cc HmmNetBaumWelch.cc
#MllrTrainer.cc HmmTrainer.cc Viterbi.cc Lattice.cc \

#HmmTrainer.cc SphereReader.cc Lattice.cc Viterbi.cc StateGenerator.cc FeatureBuffer.cc HmmSet.cc PhnReader.cc StateProbCache.cc FeatureGenerator.cc Recipe.cc tools.cc TriphoneSet.cc Changeling.cc AdaReader.cc Warpster.cc

CLASS_OBJS = $(CLASS_SRCS:.cc=.o)

LIBS = -lfftw3 -lsndfile -lm -llapackpp -llapack -lhcld

ALL_SRCS = $(CLASS_SRCS) $(PROGS_SRCS)
ALL_OBJS = $(ALL_SRCS:.cc=.o)

CXXFLAGS += $(OPT) $(WARNINGS) $(INCLUDES)

##################################################

all: $(PROGS) lib

objs: $(ALL_OBJS)

lib: $(CLASS_OBJS)
	ar r libakumod.a $(CLASS_OBJS)	

%.o: %.cc
	$(CXX) -c $(CXXFLAGS) $< -o $@

$(PROGS) : %: %.o $(CLASS_OBJS)
	$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ \
		$(CLASS_OBJS) $(LIBS)

.PHONY: dep
dep:
	rm .depend
	make .depend

.depend:
	$(CXX) -MM $(CXXFLAGS) $(DEPFLAG) $(ALL_SRCS) > .depend
include .depend

.PHONY: clean
clean:
	rm -f $(ALL_OBJS) $(PROGS) .depend *~
	rm -rf html
	cd tests && $(MAKE) clean
<commit_msg>*** empty log message ***<commit_after>ARCH = $(shell uname -p)

#############################
# Opteron cluster
ifeq ($(ARCH),x86_64)
CXX = /usr/bin/g++
OPT = -O3
INCLUDES = -I/share/puhe/x86_64/include -I/share/puhe/linux/include -I/share/puhe/x86_64/include/lapackpp -I/share/puhe/x86_64/include/hcld/
LDFLAGS = -L/share/puhe/x86_64/lib
WARNINGS = -Wall -Wno-deprecated
DEPFLAG = -MM
endif

##############################
# Linux
ifeq ($(ARCH),i686)
CXX = /usr/bin/g++
OPT = -O3
INCLUDES = -I/share/puhe/rh9/include -I/share/puhe/linux/include
LDFLAGS =
WARNINGS = -Wall
DEPFLAG = -MM
endif

##################################################

PROGS = feacat feadot feanorm phone_probs segfea vtln stats estimate
#PROGS = feacat feadot feanorm phone_probs segfea init_hmm align tie vtln mllr gprocess estep
#meltest adapt vtln train2 phone_probs2 segfea2 feanorm feacat init_hmm2 hmm2dcd tie cepstract

PROGS_SRCS = $(PROGS:=.cc)

CLASS_SRCS = FeatureGenerator.cc FeatureModules.cc AudioReader.cc \
	ModuleConfig.cc HmmSet.cc \
	PhnReader.cc TriphoneSet.cc SpeakerConfig.cc \
	Recipe.cc conf.cc io.cc str.cc endian.cc Distributions.cc \
	LinearAlgebra.cc HmmNetBaumWelch.cc
#MllrTrainer.cc HmmTrainer.cc Viterbi.cc Lattice.cc \

#HmmTrainer.cc SphereReader.cc Lattice.cc Viterbi.cc StateGenerator.cc FeatureBuffer.cc HmmSet.cc PhnReader.cc StateProbCache.cc FeatureGenerator.cc Recipe.cc tools.cc TriphoneSet.cc Changeling.cc AdaReader.cc Warpster.cc

CLASS_OBJS = $(CLASS_SRCS:.cc=.o)

LIBS = -lfftw3 -lsndfile -lm -llapackpp -llapack -lhcld

ALL_SRCS = $(CLASS_SRCS) $(PROGS_SRCS)
ALL_OBJS = $(ALL_SRCS:.cc=.o)

CXXFLAGS += $(OPT) $(WARNINGS) $(INCLUDES)

##################################################

all: $(PROGS) lib

objs: $(ALL_OBJS)

lib: $(CLASS_OBJS)
	ar r libakumod.a $(CLASS_OBJS)	

%.o: %.cc
	$(CXX) -c $(CXXFLAGS) $< -o $@

$(PROGS) : %: %.o $(CLASS_OBJS)
	$(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@ \
		$(CLASS_OBJS) $(LIBS)

.PHONY: dep
dep:
	rm .depend
	make .depend

.depend:
	$(CXX) -MM $(CXXFLAGS) $(DEPFLAG) $(ALL_SRCS) > .depend
include .depend

.PHONY: clean
clean:
	rm -f $(ALL_OBJS) $(PROGS) .depend *~
	rm -rf html
	cd tests && $(MAKE) clean

{'fraction_non_alphanumeric': 0.20953258116509324, 'fraction_numerical': 0.014736357356665898, 'mean_word_length': 4.49873417721519, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3029027', 'n_tokens_mistral': 1845, 'n_tokens_neox': 1738, 'n_words': 383}