<commit_before>//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

for i in 1...12 {
	let j = (i-7) * (i-6)
	let k = i
	print("I is \(i)")
}

let blue = UIColor.blueColor()
let size = CGRect(x:0,y:0,width:200,height:100)
let label = UILabel(frame:size)
label.text = str
label.textColor = blue;
label.font = UIFont.systemFontOfSize(24)
let alblue = UIImage(named:"alblue")
<commit_msg>Chapter 2 - Using XCPlayground to capture values<commit_after>//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

for i in 1...12 {
	let j = (i-7) * (i-6)
	let k = i
	print("I is \(i)")
}

let blue = UIColor.blueColor()
let size = CGRect(x:0,y:0,width:200,height:100)
let label = UILabel(frame:size)
label.text = str
label.textColor = blue;
label.font = UIFont.systemFontOfSize(24)
let alblue = UIImage(named:"alblue")

import XCPlayground

let page = XCPlaygroundPage.currentPage
page.captureValue(alblue, withIdentifier:"Al Blue")

{'fraction_non_alphanumeric': 0.142433234421365, 'fraction_numerical': 0.03066271018793274, 'mean_word_length': 4.440860215053763, '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': '3129780', 'n_tokens_mistral': 406, 'n_tokens_neox': 385, 'n_words': 108}