<commit_before>//
//  EgyptianQuoteGenerator.swift
//  Eurofurence
//
//  Created by <NAME> on 09/07/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import Darwin
import Foundation

struct EgyptianQuoteGenerator: QuoteGenerator {

    func makeQuote() -> Quote {
        let quotes = [
            "If you search for the laws of harmony, you will find knowledge.",
            "The best and shortest road towards knowledge of truth is Nature.",
            "The best and shortest road towards knowledge of truth is Nature.",
            "People bring about their own undoing through their tongues.",
            "To teach one must know the nature of those whom one is teaching.",
            "In every vital activity it is the path that matters.",
            "The way of knowledge is narrow.",
            "Each truth you learn will be, for you, as new as if it had never been written.",
            "If you defy an enemy by doubting his courage you double it.",
            "The nut doesn't reveal the tree it contains.",
            "For knowledge... you should know that peace is an indispensable condition of getting it.",
            "Peace is the fruit of activity, not of sleep.",
            "One foot isn't enough to walk with.",
            "Our senses serve to affirm, not to know.",
            "All seed answer light, but the color is different.",
            "The plant reveals what is in the seed.",
            "Seek peacefully, you will find.",
            "Always watch and follow nature.",
            "Judge by cause, not by effect.",
            "Experience will show you, a Master can only point the way.",
            "There grows no wheat where there is no grain."
        ]

        let index = arc4random_uniform(UInt32(quotes.count))
        let chosenQuote = quotes[Int(index)]
        return Quote(author: "E<NAME>", message: chosenQuote)
    }

}<commit_msg>Store Egyptian quotes in static var<commit_after>//
//  EgyptianQuoteGenerator.swift
//  Eurofurence
//
//  Created by <NAME> on 09/07/2017.
//  Copyright © 2017 Eurofurence. All rights reserved.
//

import Darwin
import Foundation

struct EgyptianQuoteGenerator: QuoteGenerator {

    private static let quotes = [
        quote("If you search for the laws of harmony, you will find knowledge."),
        quote("The best and shortest road towards knowledge of truth is Nature."),
        quote("The best and shortest road towards knowledge of truth is Nature."),
        quote("People bring about their own undoing through their tongues."),
        quote("To teach one must know the nature of those whom one is teaching."),
        quote("In every vital activity it is the path that matters."),
        quote("The way of knowledge is narrow."),
        quote("Each truth you learn will be, for you, as new as if it had never been written."),
        quote("If you defy an enemy by doubting his courage you double it."),
        quote("The nut doesn't reveal the tree it contains."),
        quote("For knowledge... you should know that peace is an indispensable condition of getting it."),
        quote("Peace is the fruit of activity, not of sleep."),
        quote("One foot isn't enough to walk with."),
        quote("Our senses serve to affirm, not to know."),
        quote("All seed answer light, but the color is different."),
        quote("The plant reveals what is in the seed."),
        quote("Seek peacefully, you will find."),
        quote("Always watch and follow nature."),
        quote("Judge by cause, not by effect."),
        quote("Experience will show you, a Master can only point the way."),
        quote("There grows no wheat where there is no grain.")
    ]

    private static func quote(_ message: String) -> Quote {
        return Quote(author: "<NAME>", message: message)
    }

    func makeQuote() -> Quote {
        let allQuotes = EgyptianQuoteGenerator.quotes
        let index = arc4random_uniform(UInt32(allQuotes.count))
        return allQuotes[Int(index)]
    }

}
{'fraction_non_alphanumeric': 0.0896637608966376, 'fraction_numerical': 0.007471980074719801, 'mean_word_length': 2.4531384350816854, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '6033631', 'n_tokens_mistral': 1043, 'n_tokens_neox': 981, 'n_words': 492}