Ditto on the parens/braces here; also unindent the body to look like:
```
    val links = lines.map { s =>
      val parts = s.split("\\s+")
      (parts(0), parts(1))
    }.distinct().groupByKey().cache()
```