<commit_before>#!/bin/sh
set -o nounset	# exit if variable not initalized

# Configure Panda Setup
source "${PWD}/common/vars.sh"
source "${PWD}/common/functions.sh"

configureInstall() {
    # Remove /tools
    sudo rm -rf /tools
    # Remove old .config file
    rm -f "${PWD}/.config"
    # Create new .config
    cat > "${PWD}/.config" << "EOF"
#!/bin/sh
EOF

      echo -e "Download Packages?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes ) 
			# Download All the packages
			wget --input-file=wget-list-phase1 --continue --directory-prefix="$PWD/source"
			wget --input-file=wget-list-phase3 --continue --directory-prefix="$PWD/source"
			# Fix apt package name for builds
			mv "$PWD/source/1.1.0.zip" "$PWD/source/apt-1.1.10.zip"
			pushd "$PWD/source"
			md5sum -c md5sums-phase1
			md5sum -c md5sums-phase3
			popd;
			break;;
		No )
			break;;
	  esac
      done

      echo "export MOUNT_POINT=${MOUNT_POINT}" >> "${PWD}/.config"
    
      echo -e "Filesystem: "
      read FILESYSTEM
      echo "export FILE_SYSTEM=${FILESYSTEM}" >> "${PWD}/.config"
    
      echo -e "Turn on checks?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes )	echo 'export MAKE_CHECK=TRUE' >> "${PWD}/.config";break;;
		No )	echo 'export MAKE_CHECK=FALSE' >> "${PWD}/.config";break;;
	  esac
      done
        
      echo -e "Turn on parallelism?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes )	echo 'export MAKE_PARALLEL="-j$(cat /proc/cpuinfo | grep processor | wc -l)"' >> "${PWD}/.config";break;;
		No ) 	echo 'export MAKE_PARALLEL=-j1' >> "${PWD}/.config";break;;
	  esac
      done
    
      echo 'export TARGET="$(uname -m)-panda-linux-gnu"' >> "${PWD}/.config"
      echo 'export PATH=/tools/bin:/bin:/usr/bin' >> "${PWD}/.config"
      echo 'export LC_ALL=POSIX' >> "${PWD}/.config"
      echo 'export VM_LINUZ=vmlinuz-4.2-systemd' >> "${PWD}/.config"
      echo 'export SYSTEM_MAP=System.map-4.2' >> "${PWD}/.config"
      echo 'export CONFIG_BACKUP=config-4.2' >> "${PWD}/.config"
    
      # Make all the configurations available
      source "${PWD}/.config"
      # Mount the filesystem
      mountFs       
    
      # Copy the data
      cp -ur ./* "${MOUNT_POINT}"
      # Create /tools
      mkdir "${MOUNT_POINT}/tools"
      sudo ln -s "${MOUNT_POINT}/tools" /

      # Start Installations
      for i in {1..4}
      do
	  cd "$MOUNT_POINT/phase${i}" && bash init.sh
      done

      # Unmount the filesystem
      umountFs
   
      echo -e "Update Grub?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes ) 	updateGrub;break;;
		No ) 	break;;
	  esac
      done
}

echo "Panda Linux Console Installer"
echo ""
echo "Note: Remain connected to the internet for the duration of the installation procedure."
configureInstall
<commit_msg>Fixed .config not found error<commit_after>#!/bin/sh
set -o nounset	# exit if variable not initalized

# Configure Panda Setup
source "${PWD}/common/vars.sh"
source "${PWD}/common/functions.sh"

configureInstall() {
    # Remove /tools
    sudo rm -rf /tools
    # Remove old .config file
    rm -f "${PWD}/.config"
    # Create new .config
    cat > "${PWD}/.config" << "EOF"
#!/bin/sh
EOF

      echo -e "Download Packages?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes ) 
			# Download All the packages
			wget --input-file=wget-list-phase1 --continue --directory-prefix="$PWD/source"
			wget --input-file=wget-list-phase3 --continue --directory-prefix="$PWD/source"
			# Fix apt package name for builds
			mv "$PWD/source/1.1.0.zip" "$PWD/source/apt-1.1.10.zip"
			pushd "$PWD/source"
			md5sum -c md5sums-phase1
			md5sum -c md5sums-phase3
			popd;
			break;;
		No )
			break;;
	  esac
      done

      echo "export MOUNT_POINT=${MOUNT_POINT}" >> "${PWD}/.config"
    
      echo -e "Filesystem: "
      read FILESYSTEM
      echo "export FILE_SYSTEM=${FILESYSTEM}" >> "${PWD}/.config"
    
      echo -e "Turn on checks?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes )	echo 'export MAKE_CHECK=TRUE' >> "${PWD}/.config";break;;
		No )	echo 'export MAKE_CHECK=FALSE' >> "${PWD}/.config";break;;
	  esac
      done
        
      echo -e "Turn on parallelism?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes )	echo 'export MAKE_PARALLEL="-j$(cat /proc/cpuinfo | grep processor | wc -l)"' >> "${PWD}/.config";break;;
		No ) 	echo 'export MAKE_PARALLEL=-j1' >> "${PWD}/.config";break;;
	  esac
      done
    
      echo 'export TARGET="$(uname -m)-panda-linux-gnu"' >> "${PWD}/.config"
      echo 'export PATH=/tools/bin:/bin:/usr/bin' >> "${PWD}/.config"
      echo 'export LC_ALL=POSIX' >> "${PWD}/.config"
      echo 'export VM_LINUZ=vmlinuz-4.2-systemd' >> "${PWD}/.config"
      echo 'export SYSTEM_MAP=System.map-4.2' >> "${PWD}/.config"
      echo 'export CONFIG_BACKUP=config-4.2' >> "${PWD}/.config"
    
      # Make all the configurations available
      source "${PWD}/.config"
      # Mount the filesystem
      mountFs       
    
      # Copy the data
      cp -ur ./* "${MOUNT_POINT}"
      cp -ur "${PWD}"/.config "${MOUNT_POINT}"
      # Create /tools
      mkdir "${MOUNT_POINT}/tools"
      sudo ln -s "${MOUNT_POINT}/tools" /

      # Start Installations
      for i in {1..4}
      do
	  cd "$MOUNT_POINT/phase${i}" && bash init.sh
      done

      # Unmount the filesystem
      umountFs
   
      echo -e "Update Grub?"
      select yn in "Yes" "No"; do
	  case $yn in
		Yes ) 	updateGrub;break;;
		No ) 	break;;
	  esac
      done
}

echo "Panda Linux Console Installer"
echo ""
echo "Note: Remain connected to the internet for the duration of the installation procedure."
configureInstall

{'fraction_non_alphanumeric': 0.15876398508257858, 'fraction_numerical': 0.008524240809802876, 'mean_word_length': 2.436241610738255, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1811751', 'n_tokens_mistral': 2115, 'n_tokens_neox': 1978, 'n_words': 534}