<commit_before>.POSIX:

all: nix-plugins.nixc

PREFIX=/usr/local
CXX=c++
MKDIR=mkdir
CP=cp
RM=rm
NIX_INCLUDE=/usr/local/include
NIX_LIB=/usr/local/lib
GC_INCLUDE=/usr/local/include
GC_LIB=/usr/local/lib
PLUGINS_CXXFLAGS=-flto -O3 -std=c++14 -fpic -I$(NIX_INCLUDE) -I$(NIX_INCLUDE)/nix -I$(GC_INCLUDE) $(CXXFLAGS)
PLUGINS_LDFLAGS=-shared -flto -lnixexpr -lgc -lnixutil -lnixformat -L$(NIX_LIB) -L$(GC_LIB) $(LDFLAGS)
OBJS=initialize.o exec.o

.SUFFIXES:

.SUFFIXES:.cc .o

.cc.o:
	$(CXX) $(PLUGINS_CXXFLAGS) -c $<

nix-plugins.nixc: $(OBJS)
	$(CXX) $(PLUGINS_LDFLAGS) -o nix-plugins.nixc $(OBJS)

install: nix-plugins.nixc
	$(MKDIR) -p -m 755 $(PREFIX)/lib
	$(CP) nix-plugins.nixc $(PREFIX)/lib

clean:
	$(RM) -f $(OBJS) nix-plugins.nixc<commit_msg>Disable lto to fix build on darwin<commit_after>.POSIX:

all: nix-plugins.nixc

PREFIX=/usr/local
CXX=c++
MKDIR=mkdir
CP=cp
RM=rm
NIX_INCLUDE=/usr/local/include
NIX_LIB=/usr/local/lib
GC_INCLUDE=/usr/local/include
GC_LIB=/usr/local/lib
PLUGINS_CXXFLAGS=-O3 -std=c++14 -fpic -I$(NIX_INCLUDE) -I$(NIX_INCLUDE)/nix -I$(GC_INCLUDE) $(CXXFLAGS)
PLUGINS_LDFLAGS=-shared -lnixexpr -lgc -lnixutil -lnixformat -L$(NIX_LIB) -L$(GC_LIB) $(LDFLAGS)
OBJS=initialize.o exec.o

.SUFFIXES:

.SUFFIXES:.cc .o

.cc.o:
	$(CXX) $(PLUGINS_CXXFLAGS) -c $<

nix-plugins.nixc: $(OBJS)
	$(CXX) $(PLUGINS_LDFLAGS) -o nix-plugins.nixc $(OBJS)

install: nix-plugins.nixc
	$(MKDIR) -p -m 755 $(PREFIX)/lib
	$(CP) nix-plugins.nixc $(PREFIX)/lib

clean:
	$(RM) -f $(OBJS) nix-plugins.nixc
{'fraction_non_alphanumeric': 0.19136212624584717, 'fraction_numerical': 0.007973421926910298, 'mean_word_length': 4.683018867924528, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5050870', 'n_tokens_mistral': 761, 'n_tokens_neox': 684, 'n_words': 123}