<commit_before>#!/bin/bash

blue='\033[0;34m'
NC='\033[0m' # No Color

prereq() {
  echo -e "[${blue}Installing prerequisites${NC}]"
  sudo apt-get update
  sudo apt-get -y install python2.7-dev build-essential cmake
}



nxp() {
echo -e "[${blue}Downloading NXP Reader Library${NC}]"
  wget https://cache.nxp.com/documents/software/sw3693.zip -O nxp.zip
  unzip -o nxp.zip

value=$(cat NXP_NFC_Reader_Library_licencefile.txt)
if (whiptail --title "Please read and accept the NXP NFC Reader Libary greement" --yesno --yes-button "accept" --no-button "reject" --scrolltext "$value" 0 0) then
		echo "Setup Continues"
else
	echo "Setup Aborted because of Licence Agreement"
	exit
fi

  cd build
  cmake ..
  make NxpRdLibLinuxPN512
  cd ..
  OPT="" CFLAGS="-lpthread -lrt -std=gnu99" python wrapper.py build
  cp build/lib.linux-armv7l-2.7/nxppy.so nxppy.so
}

cleanup() {
  rm -rf *.zip *.gz *.deb
}

all() {
  prereq
  nxp
  cleanup
}

if [[ $# -eq 0 ]]; then
  all
else<commit_msg>deleted the call of wrapper.py because the setup.py changed<commit_after>#!/bin/bash

blue='\033[0;34m'
NC='\033[0m' # No Color

prereq() {
  echo -e "[${blue}Installing prerequisites${NC}]"
  sudo apt-get update
  sudo apt-get -y install python2.7-dev build-essential cmake
}



nxp() {
echo -e "[${blue}Downloading NXP Reader Library${NC}]"
  wget https://cache.nxp.com/documents/software/sw3693.zip -O nxp.zip
  unzip -o nxp.zip

value=$(cat NXP_NFC_Reader_Library_licencefile.txt)
if (whiptail --title "Please read and accept the NXP NFC Reader Libary greement" --yesno --yes-button "accept" --no-button "reject" --scrolltext "$value" 0 0) then
		echo "Setup Continues"
else
	echo "Setup Aborted because of Licence Agreement"
	exit
fi

  cd build
  cmake ..
  make NxpRdLibLinuxPN512
  cd ..
}

cleanup() {
  rm -rf *.zip *.gz *.deb
}

all() {
  prereq
  nxp
  cleanup
}

if [[ $# -eq 0 ]]; then
  all
else
{'fraction_non_alphanumeric': 0.14534883720930233, 'fraction_numerical': 0.025898520084566595, 'mean_word_length': 3.433255269320843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2077628', 'n_tokens_mistral': 800, 'n_tokens_neox': 721, 'n_words': 205}