<commit_before>//
//  About.swift
//  Panda
//
//  Created by <NAME> on 11/22/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Cocoa

class About: NSWindowController, NSTextFieldDelegate{

    @IBOutlet weak var versionLabel: NSTextField!
    @IBOutlet weak var developerLabel: NSTextField!
    
    @IBOutlet weak var graphicLabel: NSTextField!
    @IBOutlet weak var developerLabelWidth: NSLayoutConstraint!
    
    @IBOutlet weak var graphicLabelWidth: NSLayoutConstraint!
    override func windowDidLoad() {
        super.windowDidLoad()
        
        self.window?.appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
        self.window?.titleVisibility = NSWindowTitleVisibility.Hidden;
        
        versionLabel.editable = false
        if let version = NSBundle.mainBundle().infoDictionary?["CFBundleVersion"] as? String{
            versionLabel.stringValue = "Version \(version)"
        }
        
        let html = "<a style =\"text-decoration: none; color:white;\" href=\"http://www.webpage.com\">@PablosPoject</a>"
        let developerString = attributedStringFromHTML(html)
        developerLabel.selectable = false
        developerLabel.allowsEditingTextAttributes = true
        developerLabel.editable = false
        developerLabel.attributedStringValue = developerString
        let size = developerLabel.sizeThatFits(NSSize(width: 10000, height: 1100));
        developerLabelWidth.constant = size.width
        
        let html_graphic = "<a style =\"text-decoration: none; color:white;\" href=\"http://www.webpage.com\">@BeatriceVivaldi</a>"
        let graphicString = attributedStringFromHTML(html_graphic)
        graphicLabel.selectable = false
        graphicLabel.allowsEditingTextAttributes = true
        graphicLabel.editable = false
        graphicLabel.attributedStringValue = graphicString
        let size_graphic = graphicLabel.sizeThatFits(NSSize(width: 10000, height: 1100));
        graphicLabelWidth.constant = size_graphic.width
        
    }
 
    func attributedStringFromHTML (HTML:NSString) -> NSAttributedString{
        let font = NSFont(name:"HelveticaNeue-Light", size: 24)
        let htmlString = "<span style=\"color: white; font-family:'\(font!.fontName)'; font-size:\(font!.pointSize)px;\">\(HTML)</span>"
        let data = htmlString.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
        let string = NSAttributedString(data: data!,options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,
NSCharacterEncodingDocumentAttribute: NSUTF8StringEncoding],
            documentAttributes: nil, error: nil)
        return string!;
    }
}
<commit_msg>Fixed some warnings<commit_after>//
//  About.swift
//  Panda
//
//  Created by <NAME> on 11/22/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Cocoa

class About: NSWindowController, NSTextFieldDelegate{

    @IBOutlet weak var versionLabel: NSTextField!
    @IBOutlet weak var developerLabel: NSTextField!
    
    @IBOutlet weak var graphicLabel: NSTextField!
    @IBOutlet weak var developerLabelWidth: NSLayoutConstraint!
    
    @IBOutlet weak var graphicLabelWidth: NSLayoutConstraint!
    override func windowDidLoad() {
        super.windowDidLoad()
        
        self.window?.appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
        self.window?.titleVisibility = NSWindowTitleVisibility.Hidden;
        
        versionLabel.editable = false
        if let version = NSBundle.mainBundle().infoDictionary?["CFBundleVersion"] as? String{
            versionLabel.stringValue = "Version \(version)"
        }
        
        let html = "<a style =\"text-decoration: none; color:white;\" href=\"http://pablosproject.com/\">@PablosPoject</a>"
        let developerString = attributedStringFromHTML(html)
        developerLabel.selectable = true
        developerLabel.allowsEditingTextAttributes = true
        developerLabel.editable = false
        developerLabel.attributedStringValue = developerString
        let size = developerLabel.sizeThatFits(NSSize(width: 10000, height: 1100));
        developerLabelWidth.constant = size.width
        
        let html_graphic = "<a style =\"text-decoration: none; color:white;\" href=\"http://www.beatricevivaldi.graphics/\">@BeatriceVivaldi</a>"
        let graphicString = attributedStringFromHTML(html_graphic)
        graphicLabel.selectable = true
        graphicLabel.allowsEditingTextAttributes = true
        graphicLabel.editable = false
        graphicLabel.attributedStringValue = graphicString
        let size_graphic = graphicLabel.sizeThatFits(NSSize(width: 10000, height: 1100));
        graphicLabelWidth.constant = size_graphic.width
        
    }
 
    func attributedStringFromHTML (HTML:NSString) -> NSAttributedString{
        let font = NSFont(name:"HelveticaNeue-Light", size: 24)
        let htmlString = "<span style=\"color: white; font-family:'\(font!.fontName)'; font-size:\(font!.pointSize)px;\">\(HTML)</span>"
        let data = htmlString.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)
        let string = NSAttributedString(data: data!,options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,
NSCharacterEncodingDocumentAttribute: NSUTF8StringEncoding],
            documentAttributes: nil, error: nil)
        return string!;
    }
}

{'fraction_non_alphanumeric': 0.10154648779578908, 'fraction_numerical': 0.011924725172349543, 'mean_word_length': 3.3856209150326797, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '762756', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1480, 'n_words': 312}