<commit_before>//
//  LinearBezierCurve.swift
//  PathTools
//
//  Created by <NAME> on 11/24/16.
//
//

import QuartzCore

// Straight line
public struct LinearBezierCurve: BezierCurve {
    
    public let start: CGPoint
    public let end: CGPoint
    
    public init(start: CGPoint, end: CGPoint) {
        self.start = start
        self.end = end
    }
    
    public func ys(x: CGFloat) -> Set<CGFloat> {
        let horizontalOffset = (x - start.x)
        let width = (end.x - start.x)
        let height = end.y - start.y
        let verticalOffset = start.y
        let y = verticalOffset + (horizontalOffset / width) * height
        return Set([y])
    }
    
    public func x(y: CGFloat) -> CGFloat {
        fatalError("Not yet implemented!")
    }
}<commit_msg>Remove detritus parens<commit_after>//
//  LinearBezierCurve.swift
//  PathTools
//
//  Created by <NAME> on 11/24/16.
//
//

import QuartzCore

// Straight line
public struct LinearBezierCurve: BezierCurve {
    
    public let start: CGPoint
    public let end: CGPoint
    
    public init(start: CGPoint, end: CGPoint) {
        self.start = start
        self.end = end
    }
    
    public func ys(x: CGFloat) -> Set<CGFloat> {
        let horizontalOffset = x - start.x
        let width = end.x - start.x
        let height = end.y - start.y
        let verticalOffset = start.y
        let y = verticalOffset + (horizontalOffset / width) * height
        return Set([y])
    }
    
    public func x(y: CGFloat) -> CGFloat {
        fatalError("Not yet implemented!")
    }
}
{'fraction_non_alphanumeric': 0.11118210862619808, 'fraction_numerical': 0.0076677316293929714, 'mean_word_length': 1.9828571428571429, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '907130', 'n_tokens_mistral': 532, 'n_tokens_neox': 510, 'n_words': 140}