<commit_before>package edu.java.cosc111.samples;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Calendar;
import java.util.Scanner;

/**
 *
 * @author russel
 */
public class DirectoryViewer {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        Scanner cin = new Scanner(System.in);
        System.out.print("Directory Path:");
        Path dir = Paths.get(cin.nextLine());
       
        if(Files.isDirectory(dir)){
            for(Path p:Files.newDirectoryStream(dir)){
                BasicFileAttributes attr = Files.readAttributes(p, BasicFileAttributes.class);
                System.out.printf("%s   %s%n", p,attr.creationTime().toString());
            }
        }else{
            System.out.println("Not a directory.");
        }
        
    }
    
}<commit_msg>NIO Samples<commit_after>package edu.java.cosc111.samples;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.Calendar;
import java.util.Scanner;

/**
 *
 * @author russel
 */
public class DirectoryViewer {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        Scanner cin = new Scanner(System.in);
        System.out.print("Directory Path:");
        Path dir = Paths.get(cin.nextLine());
       
        if(Files.isDirectory(dir)){
            for(Path p:Files.newDirectoryStream(dir)){
                BasicFileAttributes attr = Files.readAttributes(p, BasicFileAttributes.class);
                System.out.printf("%s   %s%n", p,
                    (attr.isDirectory()?"Directory":"File").toString());
            }
        }else{
            System.out.println("Not a directory.");
        }
        
    }
    
}
{'fraction_non_alphanumeric': 0.12963879267689263, 'fraction_numerical': 0.0029688273132112814, 'mean_word_length': 2.4446337308347528, 'pattern_counts': {'":': 1, '<': 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': '5933188', 'n_tokens_mistral': 596, 'n_tokens_neox': 581, 'n_words': 116}