<commit_before>////
///  ProfileBioView.swift
//

import WebKit


public class ProfileBioView: ProfileBaseView {
    public struct Size {
        static let margins = UIEdgeInsets(tops: 20, sides: 15)
    }

    public var bio: String = "" {
        didSet {
            bioView.loadHTMLString(StreamTextCellHTML.postHTML(bio), baseURL: NSURL(string: "/"))
        }
    }
    private let bioView = UIWebView()
    private let grayLine = UIView()
}

extension ProfileBioView {

    override func style() {
        grayLine.backgroundColor = .grey6()
    }

    override func bindActions() {
    }

    override func setText() {
    }

    override func arrange() {
        addSubview(bioView)
        addSubview(grayLine)

        bioView.snp_makeConstraints { make in
            make.edges.equalTo(self).inset(Size.margins)
        }

        grayLine.snp_makeConstraints { make in
            make.height.equalTo(1)
            make.bottom.equalTo(self)
            make.leading.trailing.equalTo(self).inset(ProfileBaseView.Size.grayInset)
        }

        layoutIfNeeded()
    }

    func prepareForReuse() {
        bioView.loadHTMLString("", baseURL: NSURL(string: "/"))
    }
}

extension ProfileBioView: ProfileViewProtocol {}<commit_msg>fixes to ProfileBioView<commit_after>////
///  ProfileBioView.swift
//

import WebKit


public class ProfileBioView: ProfileBaseView {
    public struct Size {
        static let margins = UIEdgeInsets(tops: 20, sides: 15)
    }

    public var bio: String = "" {
        didSet {
            bioView.loadHTMLString(StreamTextCellHTML.postHTML(bio), baseURL: NSURL(string: "/"))
        }
    }
    private let bioView = UIWebView()
    private let grayLine = UIView()
}

extension ProfileBioView {

    override func style() {
        bioView.scrollView.scrollEnabled = false
        grayLine.backgroundColor = .greyA()
    }

    override func bindActions() {
    }

    override func setText() {
    }

    override func arrange() {
        addSubview(bioView)
        addSubview(grayLine)

        bioView.snp_makeConstraints { make in
            make.top.leading.trailing.equalTo(self).inset(Size.margins)
            make.bottom.equalTo(self)
        }

        grayLine.snp_makeConstraints { make in
            make.height.equalTo(1)
            make.bottom.equalTo(self)
            make.leading.trailing.equalTo(self).inset(ProfileBaseView.Size.grayInset)
        }
    }

    func prepareForReuse() {
        bioView.loadHTMLString("", baseURL: NSURL(string: "/"))
    }
}

extension ProfileBioView: ProfileViewProtocol {}
{'fraction_non_alphanumeric': 0.10573199070487994, 'fraction_numerical': 0.004260263361735089, 'mean_word_length': 2.3589076723016906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '411878', 'n_tokens_mistral': 809, 'n_tokens_neox': 762, 'n_words': 146}