<commit_before>use crate::nodes::*;

pub fn depused(m: &Module, dep: &Module) -> bool {
    let exports = get_exports(dep);
    let mut list: Vec<String> = Vec::new();
    for x in exports.consts {
        list.push(x.id);
    }
    for x in exports.fns {
        list.push(x.form.name);
    }
    for x in exports.types {
        match x.type_name {
            TypedefTarget::Typename(t) => {
                list.push(t.name);
            }
            TypedefTarget::AnonymousStruct { .. } => {}
        }
    }
    for obj in &m.elements {
        match obj {
            ModuleObject::CompatMacro(_) => {}
            ModuleObject::Import { .. } => {}
            ModuleObject::Enum(x) => {
                for m in &x.members {<commit_msg>Add typedef to usage checker<commit_after>use crate::nodes::*;

pub fn depused(m: &Module, dep: &Module) -> bool {
    let exports = get_exports(dep);
    let mut list: Vec<String> = Vec::new();
    for x in exports.consts {
        list.push(x.id);
    }
    for x in exports.fns {
        list.push(x.form.name);
    }
    for x in exports.types {
        match x.type_name {
            TypedefTarget::Typename(t) => {
                list.push(t.name);
            }
            TypedefTarget::AnonymousStruct { .. } => list.push(x.form.alias),
        }
    }
    for obj in &m.elements {
        match obj {
            ModuleObject::CompatMacro(_) => {}
            ModuleObject::Import { .. } => {}
            ModuleObject::Enum(x) => {
                for m in &x.members {
{'fraction_non_alphanumeric': 0.14650098103335513, 'fraction_numerical': 0.0, 'mean_word_length': 1.7031802120141342, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4353428', 'n_tokens_mistral': 485, 'n_tokens_neox': 474, 'n_words': 103}