<commit_before># Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

include ../../Make.conf

LIB=\
	gc.a$O\

HFILES=\
	go.h\
	y.tab.h\

YFILES=\
	go.y\

OFILES=\
	y.tab.$O\
	lex.$O\
	subr.$O\
	dcl.$O\
	export.$O\
	walk.$O\
	const.$O\
	mparith1.$O\
	mparith2.$O\
	mparith3.$O\
	sysimport.$O\
	compat.$O\

$(LIB): $(OFILES)
	ar rsc $(LIB) $(OFILES)

$(OFILES): $(HFILES)

y.tab.h: $(YFILES)
	yacc $(YFLAGS) $(YFILES)

y.tab.c: y.tab.h
	test -f y.tab.c && touch y.tab.c

# the test here checks whether we have 6g at all.
# if so, use it.  if not, just use the sysimport.c we have.
# this happens on fresh perforce checkouts where
# sysimport.c ends up with an older time stamp
# than sys.go (or unsafe.go or mksys.c).
sysimport.c:	sys.go unsafe.go mksys.c
	if test -x $(BIN)/6g; then \
		gcc -o mksys mksys.c; \
		6g sys.go; \
		6g unsafe.go; \
		./mksys sys >_sysimport.c && \
		./mksys unsafe >>_sysimport.c && \
		mv _sysimport.c sysimport.c; \
	elif test -f sysimport.c; then \
		touch sysimport.c; \
	fi

clean:
	rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) _sysimport.c

install: $(LIB)<commit_msg>g4 open sysimport.c before writing it<commit_after># Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

include ../../Make.conf

LIB=\
	gc.a$O\

HFILES=\
	go.h\
	y.tab.h\

YFILES=\
	go.y\

OFILES=\
	y.tab.$O\
	lex.$O\
	subr.$O\
	dcl.$O\
	export.$O\
	walk.$O\
	const.$O\
	mparith1.$O\
	mparith2.$O\
	mparith3.$O\
	sysimport.$O\
	compat.$O\

$(LIB): $(OFILES)
	ar rsc $(LIB) $(OFILES)

$(OFILES): $(HFILES)

y.tab.h: $(YFILES)
	yacc $(YFLAGS) $(YFILES)

y.tab.c: y.tab.h
	test -f y.tab.c && touch y.tab.c

# the test here checks whether we have 6g at all.
# if so, use it.  if not, just use the sysimport.c we have.
# this happens on fresh perforce checkouts where
# sysimport.c ends up with an older time stamp
# than sys.go (or unsafe.go or mksys.c).
sysimport.c:	sys.go unsafe.go mksys.c
	if test -x $(BIN)/6g; then \
		p4 open sysimport.c; \
		gcc -o mksys mksys.c; \
		6g sys.go; \
		6g unsafe.go; \
		./mksys sys >_sysimport.c && \
		./mksys unsafe >>_sysimport.c && \
		mv _sysimport.c sysimport.c; \
	elif test -f sysimport.c; then \
		touch sysimport.c; \
	fi

clean:
	rm -f $(OFILES) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB) _sysimport.c

install: $(LIB)
{'fraction_non_alphanumeric': 0.16526273565984756, 'fraction_numerical': 0.011231448054552748, 'mean_word_length': 2.609261939218524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3582231', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1099, 'n_words': 329}