<commit_before>//
//  XMLElement.swift
//  Pods
//
//  Created by <NAME> on 21/11/2016.
//
//

import Foundation
import AEXML

public protocol XMLElement {
    var name: String { get }
    var value: String? { get }
    var attributes: [String: String] { get }
}

public extension XMLElement {
    var name: String {
        let typeName = "\(type(of: self))"
        return typeName.replacingOccurrences(of: ".Type", with: "")
    }
}

extension AEXMLElement {
    func addChild(element: XMLElement) -> AEXMLElement {
        return addChild(name: element.name, value: element.value, attributes: element.attributes)
    }
}<commit_msg>placeholder values for xmlelement<commit_after>//
//  XMLElement.swift
//  Triassic
//
//  Created by <NAME> on 21/11/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation
import AEXML

public protocol XMLElement {
    var name: String { get }
    var value: String? { get }
    var attributes: [String: String] { get }
}

public extension XMLElement {
    var name: String {
        let typeName = "\(type(of: self))"
        return typeName.replacingOccurrences(of: ".Type", with: "")
    }

    var value: String? {
        return nil
    }

    var attributes: [String: String] {
        return [:]
    }
}

extension AEXMLElement {
    func addChild(element: XMLElement) -> AEXMLElement {
        return addChild(name: element.name, value: element.value, attributes: element.attributes)
    }
}
{'fraction_non_alphanumeric': 0.1247429746401645, 'fraction_numerical': 0.013708019191226868, 'mean_word_length': 2.7532133676092543, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '6866559', 'n_tokens_mistral': 486, 'n_tokens_neox': 468, 'n_words': 130}