<commit_before>//
//  Stock.swift
//  FinanceKit
//
//  Created by <NAME> on 17/05/2017.
//  Copyright © 2020 Mitteldorf. All rights reserved.
//

import Foundation

public struct Stock: Asset, Identifiable, Equatable, Codable {

    public let id = UUID()
    public let symbol: Symbol
    public let company: Company
    public var price: Decimal
    public var priceOpen: Decimal?
    public var dayHigh: Decimal?
    public var dayLow: Decimal?
    public var fiftyTwoWeekHigh: Decimal?
    public var fiftyTwoWeekLow: Decimal?
    public var region: String?
    public let currency: Currency
    public let change: Change?
    public var marketCap: UInt64?
    public var exchange: Exchange?
    public var closeYesterday: Price?
    public var volume: UInt64?
    public var volumeAvg: UInt64?
    public var shares: UInt64?
    public var timezone: String?
    public var timezoneName: String?
    public var gmtOffset: String?
    public var lastTraded: Date?
    public var priceEarnings: Double?
    public var earningsPerShare: Amount?

    public var target: PriceTarget?
    public var intrinsicValue: PriceTarget?

    public var displayName: String {
        company.name
    }

    public init(symbol: Symbol, company: Company, price: Decimal, currency: Currency,
                marketCap: UInt64? = nil, exchange: Exchange? = nil, change: Change? = nil) {
        self.symbol = symbol<commit_msg>Make change on Stock a var<commit_after>//
//  Stock.swift
//  FinanceKit
//
//  Created by <NAME> on 17/05/2017.
//  Copyright © 2020 Mitteldorf. All rights reserved.
//

import Foundation

public struct Stock: Asset, Identifiable, Equatable, Codable {

    public let id = UUID()
    public let symbol: Symbol
    public let company: Company
    public var price: Decimal
    public var priceOpen: Decimal?
    public var dayHigh: Decimal?
    public var dayLow: Decimal?
    public var fiftyTwoWeekHigh: Decimal?
    public var fiftyTwoWeekLow: Decimal?
    public var region: String?
    public let currency: Currency
    public var change: Change?
    public var marketCap: UInt64?
    public var exchange: Exchange?
    public var closeYesterday: Price?
    public var volume: UInt64?
    public var volumeAvg: UInt64?
    public var shares: UInt64?
    public var timezone: String?
    public var timezoneName: String?
    public var gmtOffset: String?
    public var lastTraded: Date?
    public var priceEarnings: Double?
    public var earningsPerShare: Amount?

    public var target: PriceTarget?
    public var intrinsicValue: PriceTarget?

    public var displayName: String {
        company.name
    }

    public init(symbol: Symbol, company: Company, price: Decimal, currency: Currency,
                marketCap: UInt64? = nil, exchange: Exchange? = nil, change: Change? = nil) {
        self.symbol = symbol
{'fraction_non_alphanumeric': 0.07602956705385427, 'fraction_numerical': 0.015487504399859204, 'mean_word_length': 3.06, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2109971', 'n_tokens_mistral': 852, 'n_tokens_neox': 799, 'n_words': 310}