<commit_before>import Foundation
import UIKit
import Aztec


///
///
class DraggableDemoController: UIViewController
{

    @IBOutlet var textView: UITextView!
    @IBOutlet var markerView: UIView!

    var attachmentManager: AztecAttachmentManager!
    var attachmentViewList = [String: UIView]()


    ///
    ///
    class func controller() -> DraggableDemoController {
        let storyboard = UIStoryboard(name: "Main", bundle: nil)
        return storyboard.instantiateViewControllerWithIdentifier("DraggableDemoController") as! DraggableDemoController
    }


    override func viewDidLoad() {
        super.viewDidLoad()

        textView.layoutManager.delegate = self
        textView.delegate = self

        attachmentManager = AztecAttachmentManager(textView: textView, delegate: self)

        hideMarkerView()
    }


    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        textView.attributedText = buildAttributedString()
        attachmentManager.updateAttachmentLayout()
    }


    func buildAttributedString() -> NSAttributedString {
        let lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\n"
        let attachment1 = AztecTextAttachment(identifier: "foo")
        let attachment2 = AztecTextAttachment(identifier: "bar")

        let attributes = [
            NSParagraphStyleAttributeName : NSParagraphStyle.defaultParagraphStyle(),
            NSFontAttributeName: UIFont.systemFontOfSize(16)<commit_msg>DraggableDemoController: Fixing build error<commit_after>import Foundation
import UIKit
import Aztec


///
///
class DraggableDemoController: UIViewController
{

    @IBOutlet var textView: UITextView!
    @IBOutlet var markerView: UIView!

    var attachmentManager: AztecAttachmentManager!
    var attachmentViewList = [String: UIView]()


    ///
    ///
    class func controller() -> DraggableDemoController {
        let storyboard = UIStoryboard(name: "Main", bundle: nil)
        return storyboard.instantiateViewControllerWithIdentifier("DraggableDemoController") as! DraggableDemoController
    }


    override func viewDidLoad() {
        super.viewDidLoad()

        textView.layoutManager.delegate = self
        textView.delegate = self

        attachmentManager = AztecAttachmentManager(textView: textView)
        attachmentManager.delegate = self

        hideMarkerView()
    }


    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)

        textView.attributedText = buildAttributedString()
        attachmentManager.updateAttachmentLayout()
    }


    func buildAttributedString() -> NSAttributedString {
        let lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\n"
        let attachment1 = AztecTextAttachment(identifier: "foo")
        let attachment2 = AztecTextAttachment(identifier: "bar")

        let attributes = [
            NSParagraphStyleAttributeName : NSParagraphStyle.defaultParagraphStyle(),
            NSFontAttributeName: UIFont.systemFontOfSize(16)
{'fraction_non_alphanumeric': 0.06668410041841004, 'fraction_numerical': 0.0020920502092050207, 'mean_word_length': 3.608433734939759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6885985', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1048, 'n_words': 298}