<commit_before>#!/bin/bash

cd ../web

rm -r downloads
mkdir downloads
cd downloads


mkdir "Scratch 2"
cd "Scratch 2"
# from https://scratch.mit.edu/scratch2download/
# 
# https://mit.scratch.edu with --no-check-certificate because of
#   WARNUNG: Dem Zertifikat von scratch.mit.edu wird nicht vertraut.
#   WARNUNG: Das Zertifikat von scratch.mit.edu wurde von einem unbekannten Austeller herausgegeben.
#
# from http://stackoverflow.com/questions/7885785/using-openssl-to-get-the-certificate-from-a-server#7910869 
#   openssl s_client -showcerts -servername scratch.mit.edu -connect scratch.mit.edu:443 </dev/null
#
# TODO: openssl shows that everything is fine but
#       wget still does not accept the certificates


mkdir Linux
cd Linux
echo "Scratch for Linux"

wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin
wget --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.air

cd ..
mkdir Windows
cd Windows
echo "Scratch for Windows"

wget http://airdownload.adobe.com/air/win/download/20.0/AdobeAIRInstaller.exe
wget --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.exe

cd ..
mkdir MacOS
cd MacOS
echo "Scratch for Mac OS 10.5 or older"

wget http://airdownload.adobe.com/air/mac/download/2.6/AdobeAIR.zip
wget --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.air

cd ..
mkdir "MacOS X"
cd "MacOS X"
echo "Scratch for MacOS X"

wget http://airdownload.adobe.com/air/mac/download/20.0/AdobeAIR.dmg
wget --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.dmg

cd ..
mkdir "Support Materials"
cd "Support Materials"
echo "Support Materials"

wget --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch2StarterProjects.zip
wget --no-check-certificate https://cdn.scratch.mit.edu/scratchr2/static/__29cebbddad1a2303315dedb62fd76793__/pdfs/help/Getting-Started-Guide-Scratch2.pdf
wget --no-check-certificate https://cdn.scratch.mit.edu/scratchr2/static/__29cebbddad1a2303315dedb62fd76793__/pdfs/help/Scratch2Cards.pdf

cd ../.. # downloads

mkdir "Scratch 1"
cd "Scratch 1"
# from --no-check-certificate https://scratch.mit.edu/scratch_1.4/

mkdir Linux
cd Linux
echo "Scratch for Linux"

wget http://ubuntu.media.mit.edu/ubuntu//pool/universe/s/scratch/scratch_1.4.0.6~dfsg1-5~ubuntu12.04.1_all.deb

cd ..
mkdir Windows
cd Windows
echo "Scratch for Windows"

wget --no-check-certificate https://download.scratch.mit.edu/ScratchInstaller1.4.exe

cd ..
mkdir "MacOS X"
cd "MacOS X"
echo "Scratch for MacOS X"

wget --no-check-certificate https://download.scratch.mit.edu/MacScratch1.4.dmg

cd ../.. # downloads
<commit_msg>only downloading when newer<commit_after>#!/bin/bash

cd "`dirname \"$0\"`"

cd ../web

mkdir -p downloads
cd downloads


mkdir -p "Scratch 2"
cd "Scratch 2"
# from https://scratch.mit.edu/scratch2download/
# 
# https://mit.scratch.edu with --no-check-certificate because of
#   WARNUNG: Dem Zertifikat von scratch.mit.edu wird nicht vertraut.
#   WARNUNG: Das Zertifikat von scratch.mit.edu wurde von einem unbekannten Austeller herausgegeben.
#
# from http://stackoverflow.com/questions/7885785/using-openssl-to-get-the-certificate-from-a-server#7910869 
#   openssl s_client -showcerts -servername scratch.mit.edu -connect scratch.mit.edu:443 </dev/null
#
# TODO: openssl shows that everything is fine but
#       wget -c -N still does not accept the certificates


mkdir -p Linux
cd Linux
echo "Scratch for Linux"

wget -c -N http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin
wget -c -N --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.air

cd ..
mkdir -p Windows
cd Windows
echo "Scratch for Windows"

wget -c -N http://airdownload.adobe.com/air/win/download/20.0/AdobeAIRInstaller.exe
wget -c -N --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.exe

cd ..
mkdir -p MacOS
cd MacOS
echo "Scratch for Mac OS 10.5 or older"

wget -c -N http://airdownload.adobe.com/air/mac/download/2.6/AdobeAIR.zip
wget -c -N --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.air

cd ..
mkdir -p "MacOS X"
cd "MacOS X"
echo "Scratch for MacOS X"

wget -c -N http://airdownload.adobe.com/air/mac/download/20.0/AdobeAIR.dmg
wget -c -N --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch-442.dmg

cd ..
mkdir -p "Support Materials"
cd "Support Materials"
echo "Support Materials"

wget -c -N --no-check-certificate https://scratch.mit.edu/scratchr2/static/sa/Scratch2StarterProjects.zip
wget -c -N --no-check-certificate https://cdn.scratch.mit.edu/scratchr2/static/__29cebbddad1a2303315dedb62fd76793__/pdfs/help/Getting-Started-Guide-Scratch2.pdf
wget -c -N --no-check-certificate https://cdn.scratch.mit.edu/scratchr2/static/__29cebbddad1a2303315dedb62fd76793__/pdfs/help/Scratch2Cards.pdf

cd ../.. # downloads

mkdir -p "Scratch 1"
cd "Scratch 1"
# from --no-check-certificate https://scratch.mit.edu/scratch_1.4/

mkdir -p Linux
cd Linux
echo "Scratch for Linux"

wget -c -N http://ubuntu.media.mit.edu/ubuntu//pool/universe/s/scratch/scratch_1.4.0.6~dfsg1-5~ubuntu12.04.1_all.deb

cd ..
mkdir -p Windows
cd Windows
echo "Scratch for Windows"

wget -c -N --no-check-certificate https://download.scratch.mit.edu/ScratchInstaller1.4.exe

cd ..
mkdir -p "MacOS X"
cd "MacOS X"
echo "Scratch for MacOS X"

wget -c -N --no-check-certificate https://download.scratch.mit.edu/MacScratch1.4.dmg

cd ../.. # downloads

{'fraction_non_alphanumeric': 0.13754983689742661, 'fraction_numerical': 0.03932584269662921, 'mean_word_length': 3.790798611111111, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6089352', 'n_tokens_mistral': 2325, 'n_tokens_neox': 2149, 'n_words': 440}