<commit_before>//
//  MacChartProtocolExtensions.swift
//  SSChartwell
//
//  Created by <NAME> on 11/22/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Cocoa

public extension ChartRendererType {
    public var TIFFImage: NSImage {
        let PDFImage = self.PDFImage
        let TIFF = PDFImage.TIFFRepresentation!
        let TIFFImage = NSImage(data: TIFF)!
        return TIFFImage
    }
    public var PDFImage: NSImage {
        let font = CTFont.chartwellFont(self.data, pointSize: self.fontSize)
        let attributedString = NSAttributedString(chartData: self.data, font: font)
        let renderingView = NSTextField()
        if #available(OSX 10.10, *) {
            renderingView.usesSingleLineMode = true
            renderingView.lineBreakMode = .ByClipping
        }
        renderingView.attributedStringValue = attributedString
        renderingView.editable = false
        renderingView.sizeToFit()
        let PDF = renderingView.dataWithPDFInsideRect(renderingView.bounds)
        let PDFImage = NSImage(data: PDF)!
        return PDFImage
    }
}<commit_msg>removed extra lines from NSTextField<commit_after>//
//  MacChartProtocolExtensions.swift
//  SSChartwell
//
//  Created by <NAME> on 11/22/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Cocoa

public extension ChartRendererType {
    public var TIFFImage: NSImage {
        let PDFImage = self.PDFImage
        let TIFF = PDFImage.TIFFRepresentation!
        let TIFFImage = NSImage(data: TIFF)!
        return TIFFImage
    }
    public var PDFImage: NSImage {
        let font = CTFont.chartwellFont(self.data, pointSize: self.fontSize)
        let attributedString = NSAttributedString(chartData: self.data, font: font)
        let renderingView = NSTextField()
        renderingView.attributedStringValue = attributedString
        renderingView.editable = false
        renderingView.sizeToFit()
        let PDF = renderingView.dataWithPDFInsideRect(renderingView.bounds)
        let PDFImage = NSImage(data: PDF)!
        return PDFImage
    }
}
{'fraction_non_alphanumeric': 0.08450024142926123, 'fraction_numerical': 0.01158860453887011, 'mean_word_length': 2.7468354430379747, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4152570', 'n_tokens_mistral': 630, 'n_tokens_neox': 592, 'n_words': 147}