<commit_before>########### MAKEFILE FOR ELECTRON ###########
export progroot ?= $(CURDIR)
export srcroot ?= $(progroot)
# Let's not be a total asshole and just set this to cc
CC := cc
LD := cc
OUTPUT = electron
SUBDIRS = System

ifeq ($(CC),9c)
    $(error Use mk to enable plan9port features)
endif

ifeq ($(LD),9l)
   $(error Use mk to enable plan9port features)
endif

# I really need to fix this one of these days...dohwell we'll fix this at some
# point
OBJS = System/Core/agenda.o System/Core/analysis.o System/Core/argacces.o System/Core/bload.o System/Core/bmathfun.o System/Core/bsave.o \
 	System/Core/classcom.o System/Core/classexm.o System/Core/classfun.o System/Core/classinf.o System/Core/classini.o \
	System/Core/classpsr.o System/Core/clsltpsr.o System/Core/commline.o System/Core/conscomp.o System/Core/constrct.o \
 	System/Core/constrnt.o System/Core/crstrtgy.o System/Core/cstrcbin.o System/Core/cstrccom.o System/Core/cstrcpsr.o \
 	System/Core/cstrnbin.o System/Core/cstrnchk.o System/Core/cstrncmp.o System/Core/cstrnops.o System/Core/cstrnpsr.o \
 	System/Core/cstrnutl.o System/Core/default.o System/Core/defins.o System/Core/developr.o System/Core/dffctbin.o System/Core/dffctbsc.o \
 	System/Core/dffctcmp.o System/Core/dffctdef.o System/Core/dffctpsr.o System/Core/dffnxbin.o System/Core/dffnxcmp.o \
	System/Core/dffnxexe.o System/Core/dffnxfun.o System/Core/dffnxpsr.o System/Core/dfinsbin.o System/Core/dfinscmp.o System/Core/drive.o \
	System/Core/emathfun.o System/Core/engine.o System/Core/envrnmnt.o System/Core/evaluatn.o System/Core/expressn.o System/Core/exprnbin.o System/Core/exprnops.o \
 	System/Core/exprnpsr.o System/Core/extnfunc.o System/Core/factbin.o System/Core/factbld.o System/Core/factcmp.o System/Core/factcom.o \
 	System/Core/factfun.o System/Core/factgen.o System/Core/facthsh.o System/Core/factlhs.o System/Core/factmch.o System/Core/factmngr.o \
 	System/Core/factprt.o System/Core/factqpsr.o System/Core/factqury.o System/Core/factrete.o System/Core/factrhs.o System/Core/filecom.o \
 	System/Core/filertr.o System/Core/generate.o System/Core/genrcbin.o System/Core/genrccmp.o System/Core/genrccom.o System/Core/genrcexe.o \
 	System/Core/genrcfun.o System/Core/genrcpsr.o System/Core/globlbin.o System/Core/globlbsc.o System/Core/globlcmp.o System/Core/globlcom.o \
 	System/Core/globldef.o System/Core/globlpsr.o System/Core/immthpsr.o System/Core/incrrset.o System/Core/inherpsr.o \
 	System/Core/inscom.o System/Core/insfile.o System/Core/insfun.o System/Core/insmngr.o System/Core/insmoddp.o System/Core/insmult.o \
 	System/Core/inspsr.o System/Core/insquery.o System/Core/insqypsr.o System/Core/iofun.o System/Core/lgcldpnd.o \
 	System/Core/memalloc.o System/Core/miscfun.o System/Core/modulbin.o System/Core/modulbsc.o System/Core/modulcmp.o System/Core/moduldef.o \
 	System/Core/modulpsr.o System/Core/modulutl.o System/Core/msgcom.o System/Core/msgfun.o System/Core/msgpass.o System/Core/msgpsr.o \
 	System/Core/multifld.o System/Core/multifun.o System/Core/objbin.o System/Core/objcmp.o System/Core/objrtbin.o System/Core/objrtbld.o \
 	System/Core/objrtcmp.o System/Core/objrtfnx.o System/Core/objrtgen.o System/Core/objrtmch.o System/Core/parsefun.o System/Core/pattern.o \
 	System/Core/pprint.o System/Core/prccode.o System/Core/prcdrfun.o System/Core/prcdrpsr.o System/Core/prdctfun.o System/Core/prntutil.o \
 	System/Core/proflfun.o System/Core/reorder.o System/Core/reteutil.o System/Core/retract.o System/Core/router.o System/Core/rulebin.o \
 	System/Core/rulebld.o System/Core/rulebsc.o System/Core/rulecmp.o System/Core/rulecom.o System/Core/rulecstr.o System/Core/ruledef.o \
 	System/Core/ruledlt.o System/Core/rulelhs.o System/Core/rulepsr.o System/Core/scanner.o System/Core/sortfun.o System/Core/strngfun.o \
 	System/Core/strngrtr.o System/Core/symblbin.o System/Core/symblcmp.o System/Core/symbol.o System/Core/sysdep.o System/Core/textpro.o \
 	System/Core/tmpltbin.o System/Core/tmpltbsc.o System/Core/tmpltcmp.o System/Core/tmpltdef.o System/Core/tmpltfun.o System/Core/tmpltlhs.o \
 	System/Core/tmpltpsr.o System/Core/tmpltrhs.o System/Core/tmpltutl.o System/Core/userdata.o System/Core/userfunctions.o \
 	System/Core/utility.o System/Core/watch.o System/Core/main.o System/Core/binops.o System/Platform/ArchitectureDetection.o \
	System/Platform/OSDetection.o System/Platform/HardwareDetection.o System/Platform/Platform.o System/System.o


program: subdirs 
	$(LD) $(LDFLAGS) -o $(OUTPUT) $(OBJS) -lm -lncurses

.PHONY: clean sub-clean subdirs $(SUBDIRS)

subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

clean: sub-clean
	rm -f $(OUTPUT)

sub-clean:
	for d in $(SUBDIRS); do ($(MAKE) -C $$d clean ); done<commit_msg>Updated Makefile to work correctly with flattening<commit_after>########### MAKEFILE FOR ELECTRON ###########
export progroot ?= $(CURDIR)
export srcroot ?= $(progroot)
CC := cc
LD := cc
OUTPUT = electron

ifeq ($(CC),9c)
    $(error Use mk to enable plan9port features)
endif

ifeq ($(LD),9l)
   $(error Use mk to enable plan9port features)
endif

OBJS = agenda.o analysis.o argacces.o bload.o bmathfun.o bsave.o \
 	classcom.o classexm.o classfun.o classinf.o classini.o \
	classpsr.o clsltpsr.o commline.o conscomp.o constrct.o \
 	constrnt.o crstrtgy.o cstrcbin.o cstrccom.o cstrcpsr.o \
 	cstrnbin.o cstrnchk.o cstrncmp.o cstrnops.o cstrnpsr.o \
 	cstrnutl.o default.o defins.o developr.o dffctbin.o dffctbsc.o \
 	dffctcmp.o dffctdef.o dffctpsr.o dffnxbin.o dffnxcmp.o \
	dffnxexe.o dffnxfun.o dffnxpsr.o dfinsbin.o dfinscmp.o drive.o \
	emathfun.o engine.o envrnmnt.o evaluatn.o expressn.o exprnbin.o exprnops.o \
 	exprnpsr.o extnfunc.o factbin.o factbld.o factcmp.o factcom.o \
 	factfun.o factgen.o facthsh.o factlhs.o factmch.o factmngr.o \
 	factprt.o factqpsr.o factqury.o factrete.o factrhs.o filecom.o \
 	filertr.o generate.o genrcbin.o genrccmp.o genrccom.o genrcexe.o \
 	genrcfun.o genrcpsr.o globlbin.o globlbsc.o globlcmp.o globlcom.o \
 	globldef.o globlpsr.o immthpsr.o incrrset.o inherpsr.o \
 	inscom.o insfile.o insfun.o insmngr.o insmoddp.o insmult.o \
 	inspsr.o insquery.o insqypsr.o iofun.o lgcldpnd.o \
 	memalloc.o miscfun.o modulbin.o modulbsc.o modulcmp.o moduldef.o \
 	modulpsr.o modulutl.o msgcom.o msgfun.o msgpass.o msgpsr.o \
 	multifld.o multifun.o objbin.o objcmp.o objrtbin.o objrtbld.o \
 	objrtcmp.o objrtfnx.o objrtgen.o objrtmch.o parsefun.o pattern.o \
 	pprint.o prccode.o prcdrfun.o prcdrpsr.o prdctfun.o prntutil.o \
 	proflfun.o reorder.o reteutil.o retract.o router.o rulebin.o \
 	rulebld.o rulebsc.o rulecmp.o rulecom.o rulecstr.o ruledef.o \
 	ruledlt.o rulelhs.o rulepsr.o scanner.o sortfun.o strngfun.o \
 	strngrtr.o symblbin.o symblcmp.o symbol.o sysdep.o textpro.o \
 	tmpltbin.o tmpltbsc.o tmpltcmp.o tmpltdef.o tmpltfun.o tmpltlhs.o \
 	tmpltpsr.o tmpltrhs.o tmpltutl.o userdata.o userfunctions.o \
 	utility.o watch.o main.o binops.o ArchitectureDetection.o \
	OSDetection.o HardwareDetection.o Platform.o System.o


program: $(OBJS) 
	$(LD) $(LDFLAGS) -o $(OUTPUT) $(OBJS) -lm -lncurses

.PHONY: clean sub-clean subdirs $(SUBDIRS)


clean: 
	rm -f *.o
	rm -f $(OUTPUT)
{'fraction_non_alphanumeric': 0.13338926174496643, 'fraction_numerical': 0.0011185682326621924, 'mean_word_length': 3.7974513749161636, 'pattern_counts': {'":': 0, '<': 3, '<?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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6373595', 'n_tokens_mistral': 3080, 'n_tokens_neox': 2988, 'n_words': 505}