If it makes the line too wide, change the code to

~~~
  val ratings = sc.parallelize(data._1.map { case Rating(u, p, r) => 
      Rating(u - 25, p - 25, r)
    })
~~~