<commit_before>//
//  CardFormViewController.swift
//  PAYJP
//
//  Created by <NAME> on 2019/11/15.
//  Copyright © 2019 PAY, Inc. All rights reserved.
//

import Foundation

/// CardFormViewController.
/// It's configured with CardFormLabelStyleView.
@objcMembers @objc(PAYCardFormViewController)
public class CardFormViewController: UIViewController {

    @IBOutlet weak var cardFormView: CardFormLabelStyledView!
    @IBOutlet weak var saveButton: ActionButton!
    @IBOutlet weak var brandsView: UICollectionView!
    @IBOutlet weak var activityIndicator: UIActivityIndicatorView!
    @IBOutlet weak var errorView: ErrorView!

    private var formStyle: FormStyle?
    private var tenantId: String?
    private var accptedBrands: [CardBrand]?
    private var accessorySubmitButton: ActionButton!

    private let errorTranslator = ErrorTranslator.shared

    /// CardFormViewController delegate.
    public weak var delegate: CardFormViewControllerDelegate?

    /// CardFormViewController factory method.
    /// - Parameters:
    ///   - style: formStyle
    ///   - tenantId: identifier of tenant
    /// - Returns: CardFormViewController
    @objc(createCardFormViewControllerWithStyle: tenantId:)
    public static func createCardFormViewController(style: FormStyle? = nil,
                                                    tenantId: String? = nil) -> CardFormViewController {
        let stotyboard = UIStoryboard(name: "CardForm", bundle: Bundle(for: PAYJPSDK.self))
        guard
            let cardFormVc = stotyboard.instantiateInitialViewController() as? CardFormViewController
            else { fatalError("Couldn't instantiate CardFormViewController") }<commit_msg>fix comment<commit_after>//
//  CardFormViewController.swift
//  PAYJP
//
//  Created by <NAME> on 2019/11/15.
//  Copyright © 2019 PAY, Inc. All rights reserved.
//

import Foundation

/// CardFormViewController.
/// It's configured with CardFormLabelStyleView.
@objcMembers @objc(PAYCardFormViewController)
public class CardFormViewController: UIViewController {

    @IBOutlet weak var cardFormView: CardFormLabelStyledView!
    @IBOutlet weak var saveButton: ActionButton!
    @IBOutlet weak var brandsView: UICollectionView!
    @IBOutlet weak var activityIndicator: UIActivityIndicatorView!
    @IBOutlet weak var errorView: ErrorView!

    private var formStyle: FormStyle?
    private var tenantId: String?
    private var accptedBrands: [CardBrand]?
    private var accessorySubmitButton: ActionButton!

    private let errorTranslator = ErrorTranslator.shared

    /// CardFormViewController delegate.
    public weak var delegate: CardFormViewControllerDelegate?

    /// CardFormViewController factory method.
    /// 
    /// - Parameters:
    ///   - style: formStyle
    ///   - tenantId: identifier of tenant
    /// - Returns: CardFormViewController
    @objc(createCardFormViewControllerWithStyle: tenantId:)
    public static func createCardFormViewController(style: FormStyle? = nil,
                                                    tenantId: String? = nil) -> CardFormViewController {
        let stotyboard = UIStoryboard(name: "CardForm", bundle: Bundle(for: PAYJPSDK.self))
        guard
            let cardFormVc = stotyboard.instantiateInitialViewController() as? CardFormViewController
            else { fatalError("Couldn't instantiate CardFormViewController") }
{'fraction_non_alphanumeric': 0.08365356192728347, 'fraction_numerical': 0.007094295004433935, 'mean_word_length': 3.2998729351969502, 'pattern_counts': {'":': 0, '<': 5, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1072135', 'n_tokens_mistral': 952, 'n_tokens_neox': 876, 'n_words': 245}