<commit_before>#!/usr/bin/env xcrun swift -i -sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk

import Foundation

let fileManager = NSFileManager.defaultManager()

let path = "./"
let contents = fileManager.directoryContentsAtPath(path) as String[]

for item: String in contents {
  var isDirectory: ObjCBool = false
  let fullPath = "\(path)\(item)"
  fileManager.fileExistsAtPath(fullPath, isDirectory: &isDirectory)
  println("\(fullPath): \(isDirectory)")
}
<commit_msg>Colors<commit_after>#!/usr/bin/env xcrun swift -i -sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk

import Foundation

let C_RED     = "\x1b[31m"
let C_GREEN   = "\x1b[32m"
let C_YELLOW  = "\x1b[33m"
let C_BLUE    = "\x1b[34m"
let C_MAGENTA = "\x1b[35m"
let C_CYAN    = "\x1b[36m"
let C_RESET   = "\x1b[0m"


let fileManager = NSFileManager.defaultManager()

let path = "./"
let contents = fileManager.directoryContentsAtPath(path) as String[]

func setColor(color: String) {
  print(color)
}

for item: String in contents {
  var isDirectoryOC: ObjCBool = false
  let fullPath = "\(path)\(item)"
  fileManager.fileExistsAtPath(fullPath, isDirectory: &isDirectoryOC)
  let isDirectory = isDirectoryOC as Bool
  if isDirectory {
    setColor(C_RED)
  }
  else {
    setColor(C_RESET)
  }

  println(item)

}


{'fraction_non_alphanumeric': 0.12944523470839261, 'fraction_numerical': 0.021337126600284494, 'mean_word_length': 4.390804597701149, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3765301', 'n_tokens_mistral': 547, 'n_tokens_neox': 516, 'n_words': 104}