<commit_before>package lens

import lens.syntax._
import lens.syntax.std._
import scala.language.postfixOps
import scalaz.std.list.listInstance
import scalaz.std.option.optionInstance


object SyntaxExample extends App {
  import Person._
  import Location._
  import lens.std.Map._

  val p = Person(23, "roger", Address("London", "EC1...", Location(2, 10)))
  val newPerson = p >- age modify(_ + 2)
  println(newPerson)

  val map = Map("Paris" -> Location(12, 34), "London" -> Location(10, 50))

  println(map >- at("Paris") get)
  println(map >- at("Pairs") set Some(Location(14, 18)))
  println(map >- at("Pairs") set None)
  println(map >- at("Roma") get)

  println(map >- at("Paris") >- option[Location] >- latitude set 89)

  println(List(1,2,3) ->- list[Int] set 3)          // ==> List(3,3,3)
  println(List(1,2,3) ->- list[Int] modify (_ + 1)) // ==> List(2,3,4)
  println(List(1,2) ->- list[Int] lift (l => List(l-1, l+1))) // ==> List(List(0, 1), List(0, 3), List(2, 1), List(2, 3))
  println(List(1,2) ->- list[Int] lift (l => Option(l))) // ==> Some(List(1,2))

}<commit_msg>Update syntax example to show result<commit_after>package lens

import lens.syntax._
import lens.syntax.std._
import scala.language.postfixOps
import scalaz.std.list.listInstance
import scalaz.std.option.optionInstance


object SyntaxExample extends App {
  import Person._
  import Location._
  import lens.std.Map._

  val p = Person(23, "roger", Address("London", "EC1...", Location(2, 10)))
  println(p >- age modify(_ + 2))

  val map = Map("Paris" -> Location(12, 34), "London" -> Location(10, 50))

  println(map >- at("Paris") get)                        // Some(Location(12, 34))
  println(map >- at("Roma") get)                         // None
  println(map >- at("Pairs") set Some(Location(14, 18))) // Map("Paris" -> Location(14, 18), "London" ...)
  println(map >- at("Pairs") set None)                   // Map("London" -> Location(10, 50))
  println(map >- at("Paris") >- option[Location] >- latitude set 89) // Map("Paris" -> Location(89, 18), "London" ...)

  println(List(1,2,3) ->- list[Int] set 3)                    // ==> List(3,3,3)
  println(List(1,2,3) ->- list[Int] modify (_ + 1))           // ==> List(2,3,4)
  println(List(1,2) ->- list[Int] lift (l => List(l-1, l+1))) // ==> List(List(0, 1), List(0, 3), List(2, 1), List(2, 3))
  println(List(1,2) ->- list[Int] lift (l => Option(l)))      // ==> Some(List(1,2))

}
{'fraction_non_alphanumeric': 0.21132540008206813, 'fraction_numerical': 0.04842018875666804, 'mean_word_length': 3.189003436426117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 46, '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': '1363011', 'n_tokens_mistral': 976, 'n_tokens_neox': 877, 'n_words': 208}