<commit_before>
BSCFLAGS=-aggressive-conditions -show-schedule -keep-fires -p +:../paclib

XBSVDIR=../xbsv
BSVDIR=$(XBSVDIR)/bsv
S2H = RbmRequest DmaConfig
H2S = RbmIndication  DmaIndication
BSVFILES = bsv/Rbm.bsv bsv/Top.bsv
CPPFILES= cpp/portalmat.cpp cpp/rbm.cpp cpp/testrbm.cpp
XBSVFLAGS = --clib opencv_core
Dma = Dma32
PINS = Std

include ../xbsv/Makefile.common

datasets:
	mkdir -p datasets
	wget -P datasets http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
	cd datasets; gunzip *.gz
<commit_msg>make sure target build depends on datasets<commit_after>
BSCFLAGS=-aggressive-conditions -show-schedule -keep-fires -p +:../paclib

XBSVDIR=../xbsv
BSVDIR=$(XBSVDIR)/bsv
S2H = RbmRequest DmaConfig
H2S = RbmIndication  DmaIndication
BSVFILES = bsv/Rbm.bsv bsv/Top.bsv
CPPFILES= cpp/portalmat.cpp cpp/rbm.cpp cpp/testrbm.cpp
XBSVFLAGS = --clib opencv_core
Dma = Dma32
PINS = Std

gen:: datasets

include ../xbsv/Makefile.common

datasets:
	mkdir -p datasets
	wget -P datasets http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
	wget -P datasets http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
	cd datasets; gunzip *.gz

{'fraction_non_alphanumeric': 0.13905133203378817, 'fraction_numerical': 0.015594541910331383, 'mean_word_length': 3.9358974358974357, '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': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5742475', 'n_tokens_mistral': 702, 'n_tokens_neox': 679, 'n_words': 116}