<commit_before>//
//  AttributedTextFactory.swift
//  Pods
//
//  Created by <NAME> on 15/12/23.
//
//

import UIKit

public struct BXTextAttribute{
  public var textColor:UIColor
  public var font:UIFont
  public var text:String
  init(text:String,font:UIFont = UIFont.systemFontOfSize(15),textColor:UIColor = UIColor.darkTextColor()){
    self.text = text
    self.font = font
    self.textColor = textColor
  }
  
  
  var attributedText:NSAttributedString{
    return NSAttributedString(string: text, attributes: [NSFontAttributeName:font,NSForegroundColorAttributeName:textColor])
  }
}


public struct TextFactory{
  public static func createAttributedText(textAttributes:[BXTextAttribute]) -> NSAttributedString{
    let attributedText = NSMutableAttributedString()
    for attr in textAttributes{
      attributedText.appendAttributedString(attr.attributedText)
    }
    return attributedText
  }
  

  
}<commit_msg>rename AttributedText<commit_after>//
//  AttributedTextFactory.swift
//  Pods
//
//  Created by <NAME> on 15/12/23.
//
//

import UIKit

public struct AttributedText{
  public var textColor:UIColor
  public var font:UIFont
  public var text:String
  init(text:String,font:UIFont = UIFont.systemFontOfSize(15),textColor:UIColor = UIColor.darkTextColor()){
    self.text = text
    self.font = font
    self.textColor = textColor
  }
  
  
  var attributedText:NSAttributedString{
    return NSAttributedString(string: text, attributes: [NSFontAttributeName:font,NSForegroundColorAttributeName:textColor])
  }
}




public struct TextFactory{
  public static func createAttributedText(textAttributes:[AttributedText]) -> NSAttributedString{
    let attributedText = NSMutableAttributedString()
    for attr in textAttributes{
      attributedText.appendAttributedString(attr.attributedText)
    }
    return attributedText
  }
  

  
}
{'fraction_non_alphanumeric': 0.09032258064516129, 'fraction_numerical': 0.008602150537634409, 'mean_word_length': 4.227528089887641, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6788341', 'n_tokens_mistral': 613, 'n_tokens_neox': 574, 'n_words': 113}