<commit_before>#!/usr/bin/env scala

// The script assumes a Debian-based operating system


import sys.process._

object InstallNFSClient {

  // converts an Int into an Option around Unit representing a process
  // success or failure
  implicit def liftRV(rv: Int): Option[Unit] = rv match {
    case 0 => Some(())
    case _ => None
  }

  def main(args: Array[String]): Unit = {
    if (args.length != 2) {
      println("Usage: <script-name> <nfs-server> <server-dir> <mount-dir>")
      println("  <nfs-server> is the NFS server name")
      println("  <server-dir> is the directory on the NFS server")
      println("  <mount-dir> is the directory to mount to the NFS")
      sys.exit(1)
    }

    val nfsServer = args(0)
    val serverDir = args(1)
    val mountDir  = args(2)

    for {
      _ <- s"sudo mkdir -p $mountDir".!
      _ <- s"sudo chown marko: $mountDir".!
      _ <-  "sudo apt-get install --yes nfs-common".!
      _ <- s"sudo mount $nfsServer:$serverDir $mountDir".!
    } yield ()
  }
}<commit_msg>Fixed a bug in the client NFS installation script<commit_after>#!/usr/bin/env scala

// The script assumes a Debian-based operating system


import sys.process._

object InstallNFSClient {

  // converts an Int into an Option around Unit representing a process
  // success or failure
  implicit def liftRV(rv: Int): Option[Unit] = rv match {
    case 0 => Some(())
    case _ => None
  }

  def main(args: Array[String]): Unit = {
    if (args.length != 3) {
      println("Usage: <script-name> <nfs-server> <server-dir> <mount-dir>")
      println("  <nfs-server> is the NFS server name")
      println("  <server-dir> is the directory on the NFS server")
      println("  <mount-dir> is the directory to mount to the NFS")
      sys.exit(1)
    }

    val nfsServer = args(0)
    val serverDir = args(1)
    val mountDir  = args(2)

    for {
      _ <- s"sudo mkdir -p $mountDir".!
      _ <- s"sudo chown marko: $mountDir".!
      _ <-  "sudo apt-get install --yes nfs-common".!
      _ <- s"sudo mount $nfsServer:$serverDir $mountDir".!
    } yield ()
  }
}
{'fraction_non_alphanumeric': 0.13588516746411483, 'fraction_numerical': 0.005741626794258373, 'mean_word_length': 2.61139896373057, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 21, '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': '1526782', 'n_tokens_mistral': 734, 'n_tokens_neox': 688, 'n_words': 220}