<commit_before>PROTOTYPE-DIST=prototype-1.6.0.3.js
EXCANVAS-DIST=excanvas_0002.zip
TABBER-DIST=tabber.zip

APP=Canvas2D
SRCS=src/${APP}.js src/Shape.js src/Rectangle.js src/Connector.js src/Visitor.js
CSSSRCS=lib/tabber/example.css src/${APP}.css
VERSION=0.0.1
LIBS=lib/${PROTOTYPE-DIST} \
     lib/excanvas/excanvas.js lib/canvastext.js \
     lib/adl/build/adl.js \
     lib/tabber/tabber.js
FETCH=wget -q
GIT-FETCH=git clone -q
UNZIP=unzip -q
UNTAR=tar -zxf

PROTOTYPE-URL=http://www.prototypejs.org/assets/2008/9/29/${PROTOTYPE-DIST}
EXCANVAS-URL=http://surfnet.dl.sourceforge.net/sourceforge/excanvas/
CANVASTEXT-URL=http://www.federated.com/~jim/canvastext/canvastext.js
ADL-URL=http://git.thesoftwarefactory.be/pub/adl.git
TABBER-URL=http://www.barelyfitz.com/projects/tabber/${TABBER-DIST}

DIST=${APP}-${VERSION}.tar.gz
DISTSRCS=build/${APP}.js examples/*.html LICENSE

DIST-SRC=${APP}-${VERSION}-src.tar.gz
DIST-SRCSRCS=LICENSE README examples Makefile doc src

PUB=moonbase:~/dist/

all: build ${RUNLIBS}

build: build/${APP}.js build/${APP}.css

dist: dist/${DIST} dist/${DIST-SRC}

lib/${PROTOTYPE-DIST}:
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${PROTOTYPE-URL})

lib/excanvas/excanvas.js: 
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${EXCANVAS-URL}/${EXCANVAS-DIST})
	@(cd lib; mkdir excanvas; cd excanvas; ${UNZIP} ../${EXCANVAS-DIST})

lib/canvastext.js:
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${CANVASTEXT-URL} )

lib/adl/build/adl.js:
	@echo "*** importing $@"
	@${GIT-FETCH} ${ADL-URL} lib/adl
	@(cd lib/adl; make)

lib/tabber/tabber.js: lib/tabber
lib/tabber/tabber.css: lib/tabber

lib/tabber:
	@echo "*** importing Tabber"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${TABBER-URL})
	@(cd lib; mkdir tabber; cd tabber; ${UNZIP} ../${TABBER-DIST})

build/${APP}.js: ${SRCS} ${LIBS}
	@echo "*** building $@"
	@mkdir -p build
	@cat ${LIBS} ${SRCS} > $@

build/${APP}.css: ${CSSSRCS}
	@echo "*** building $@"
	@mkdir -p build
	@cat ${CSSSRCS} > $@

publish: dist/${DIST} dist/${DIST-SRC}
	@echo "*** publishing distributions to ${PUB}"
	@scp dist/${DIST} dist/${DIST-SRC} ${PUB}

dist/${DIST}: ${DISTSRCS}
	@echo "*** packaging ${APP}"
	@mkdir -p dist/js/${APP}/{examples,build}
	@for f in ${DISTSRCS}; do \
	    cat $$f | sed -e 's/\.\.\/build/../' > dist/js/${APP}/$$f; done
	@mv dist/js/${APP}/build/* dist/js/${APP}/; rm -rf dist/js/${APP}/build
	@(cd dist/js; tar -zcf ../${DIST} ${APP})

dist/${DIST-SRC}: 
	@echo "*** packaging src distribution"
	@mkdir -p dist/src/${APP}
	@cp -r ${DIST-SRCSRCS} dist/src/${APP}
	@(cd dist/src; tar -zcf ../${DIST-SRC} ${APP})

clean:
	@find . | grep "~$$" | xargs rm
	@rm -rf build dist

mrproper: clean
	@rm -rf lib
<commit_msg>added css file to distribution<commit_after>PROTOTYPE-DIST=prototype-1.6.0.3.js
EXCANVAS-DIST=excanvas_0002.zip
TABBER-DIST=tabber.zip

APP=Canvas2D
SRCS=src/${APP}.js src/Shape.js src/Rectangle.js src/Connector.js src/Visitor.js
CSSSRCS=lib/tabber/example.css src/${APP}.css
VERSION=0.0.1
LIBS=lib/${PROTOTYPE-DIST} \
     lib/excanvas/excanvas.js lib/canvastext.js \
     lib/adl/build/adl.js \
     lib/tabber/tabber.js
FETCH=wget -q
GIT-FETCH=git clone -q
UNZIP=unzip -q
UNTAR=tar -zxf

PROTOTYPE-URL=http://www.prototypejs.org/assets/2008/9/29/${PROTOTYPE-DIST}
EXCANVAS-URL=http://surfnet.dl.sourceforge.net/sourceforge/excanvas/
CANVASTEXT-URL=http://www.federated.com/~jim/canvastext/canvastext.js
ADL-URL=http://git.thesoftwarefactory.be/pub/adl.git
TABBER-URL=http://www.barelyfitz.com/projects/tabber/${TABBER-DIST}

DIST=${APP}-${VERSION}.tar.gz
DISTSRCS=build/${APP}.js build/${APP}.css examples/*.html LICENSE

DIST-SRC=${APP}-${VERSION}-src.tar.gz
DIST-SRCSRCS=LICENSE README examples Makefile doc src

PUB=moonbase:~/dist/

all: build ${RUNLIBS}

build: build/${APP}.js build/${APP}.css

dist: dist/${DIST} dist/${DIST-SRC}

lib/${PROTOTYPE-DIST}:
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${PROTOTYPE-URL})

lib/excanvas/excanvas.js: 
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${EXCANVAS-URL}/${EXCANVAS-DIST})
	@(cd lib; mkdir excanvas; cd excanvas; ${UNZIP} ../${EXCANVAS-DIST})

lib/canvastext.js:
	@echo "*** importing $@"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${CANVASTEXT-URL} )

lib/adl/build/adl.js:
	@echo "*** importing $@"
	@${GIT-FETCH} ${ADL-URL} lib/adl
	@(cd lib/adl; make)

lib/tabber/tabber.js: lib/tabber
lib/tabber/tabber.css: lib/tabber

lib/tabber:
	@echo "*** importing Tabber"
	@mkdir -p lib
	@(cd lib; ${FETCH} ${TABBER-URL})
	@(cd lib; mkdir tabber; cd tabber; ${UNZIP} ../${TABBER-DIST})

build/${APP}.js: ${SRCS} ${LIBS}
	@echo "*** building $@"
	@mkdir -p build
	@cat ${LIBS} ${SRCS} > $@

build/${APP}.css: ${CSSSRCS}
	@echo "*** building $@"
	@mkdir -p build
	@cat ${CSSSRCS} > $@

publish: dist/${DIST} dist/${DIST-SRC}
	@echo "*** publishing distributions to ${PUB}"
	@scp dist/${DIST} dist/${DIST-SRC} ${PUB}

dist/${DIST}: ${DISTSRCS}
	@echo "*** packaging ${APP}"
	@mkdir -p dist/js/${APP}/{examples,build}
	@for f in ${DISTSRCS}; do \
	    cat $$f | sed -e 's/\.\.\/build/../' > dist/js/${APP}/$$f; done
	@mv dist/js/${APP}/build/* dist/js/${APP}/; rm -rf dist/js/${APP}/build
	@(cd dist/js; tar -zcf ../${DIST} ${APP})

dist/${DIST-SRC}: 
	@echo "*** packaging src distribution"
	@mkdir -p dist/src/${APP}
	@cp -r ${DIST-SRCSRCS} dist/src/${APP}
	@(cd dist/src; tar -zcf ../${DIST-SRC} ${APP})

clean:
	@find . | grep "~$$" | xargs rm
	@rm -rf build dist

mrproper: clean
	@rm -rf lib

{'fraction_non_alphanumeric': 0.22615161407326803, 'fraction_numerical': 0.006891548784911135, 'mean_word_length': 3.9329159212880143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 2, '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': '268886', 'n_tokens_mistral': 2494, 'n_tokens_neox': 2370, 'n_words': 441}