<commit_before>//
//  Canvas.swift
//  TortoiseDemo
//
//  Created by temoki on 2016/08/10.
//  Copyright © 2016 temoki. All rights reserved.
//

import UIKit
import Tortoise

class Canvas: UIView {

    override func draw(_ rect: CGRect) {
        guard let cgContext = UIGraphicsGetCurrentContext() else { return }
        let 🐢 = Tortoise(cgContext: cgContext,
                            canvasWidth: self.bounds.size.width,
                            canvasHeight: self.bounds.size.height)

        🐢.RepeatN(100) { (number) -> Tortoise in
            🐢.SetPenColor(number).Forward(100).Right(85)
        }.Run()
    }

}<commit_msg>Add example<commit_after>//
//  Canvas.swift
//  TortoiseDemo
//
//  Created by temoki on 2016/08/10.
//  Copyright © 2016 temoki. All rights reserved.
//

import UIKit
import Tortoise

class Canvas: UIView {

    override func draw(_ rect: CGRect) {
        guard let cgContext = UIGraphicsGetCurrentContext() else { return }
        let 🐢 = Tortoise(cgContext: cgContext,
                            canvasWidth: self.bounds.size.width,
                            canvasHeight: self.bounds.size.height)

        🐢.SetPenWidth(0.5)
            .SetPenColor(3)
            .Repeat(400) {
                🐢.Repeat(34) {
                    🐢.Forward(12).Right(10)}.Right(90)
            }.Run()

    }

}
{'fraction_non_alphanumeric': 0.11839166046165302, 'fraction_numerical': 0.03425167535368578, 'mean_word_length': 1.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4005913', 'n_tokens_mistral': 484, 'n_tokens_neox': 421, 'n_words': 95}