<commit_before>import java.time.DateTimeException;
import java.time.LocalDateTime;
import java.time.Instant;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class TestDateTime {
  public static void main(String[] args) {
    System.out.println("now = " + LocalDateTime.now());

    DateTimeFormatter format
      = DateTimeFormatter.ofPattern("MMM d yyyy  hh:mm a");

    LocalDateTime leaving = LocalDateTime.of(2013, Month.JULY, 20, 19, 30);

    ZoneId leavingZone = ZoneId.of("America/Los_Angeles");
    ZonedDateTime departure = ZonedDateTime.of(leaving, leavingZone);

    try {
      String out1 = departure.format(format);
      System.out.println("LEAVING: " + out1 + " (" + leavingZone + ")");
    } catch (DateTimeException e) {
    }

    ZoneId arrivingZone = ZoneId.of("Asia/Tokyo");
    ZonedDateTime arrival
      = departure.withZoneSameInstant(arrivingZone).plusMinutes(650);

    try {
      String out2 = arrival.format(format);
      System.out.println("ARRIVING: " + out2 + " (" + arrivingZone + ")");
    } catch (DateTimeException e) {
    }

    Instant timestamp = Instant.now();
    System.out.println("timestamp = " + timestamp);
  }
}
<commit_msg>Added tests for time zone.<commit_after>import java.time.DateTimeException;
import java.time.LocalDateTime;
import java.time.Instant;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class TestDateTime {
  public static void main(String[] args) {
    System.out.println("now = " + LocalDateTime.now());

    DateTimeFormatter format
      = DateTimeFormatter.ofPattern("MMM d yyyy  hh:mm a");

    LocalDateTime leaving = LocalDateTime.of(2013, Month.JULY, 20, 19, 30);

    ZoneId leavingZone = ZoneId.of("America/Los_Angeles");
    ZonedDateTime departure = ZonedDateTime.of(leaving, leavingZone);

    try {
      String out1 = departure.format(format);
      System.out.println("LEAVING: " + out1 + " (" + leavingZone + ")");
    } catch (DateTimeException e) {
    }

    ZoneId arrivingZone = ZoneId.of("Asia/Tokyo");
    ZonedDateTime arrival
      = departure.withZoneSameInstant(arrivingZone).plusMinutes(650);

    try {
      String out2 = arrival.format(format);
      System.out.println("ARRIVING: " + out2 + " (" + arrivingZone + ")");
    } catch (DateTimeException e) {
    }

    Instant timestamp = Instant.now();
    System.out.println("timestamp = " + timestamp);


    Instant epochI = Instant.EPOCH;
    System.out.println("EPOCH Instant = " + epochI);
    ZoneId zoneId = ZoneId.of("UTC");
    System.out.println("zoneId = " + zoneId);
    ZonedDateTime epochZ
      = ZonedDateTime.ofInstant(Instant.EPOCH, zoneId);
    System.out.println("EPOCH ZonedDateTime = " + epochZ);
  }
}

{'fraction_non_alphanumeric': 0.13167134831460675, 'fraction_numerical': 0.011938202247191011, 'mean_word_length': 3.6858552631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3842417', 'n_tokens_mistral': 920, 'n_tokens_neox': 871, 'n_words': 174}