<commit_before>YUI().use('app', 'handlebars', 'jsonp', function(Y) {
    

   
Charm = Y.Base.create('charm', Y.Model, [], {
    ATTRS: {
	charm_id: {value: null},
	name: {value: null},
	url: {value: null},
	description: {value: null},
	config: {value: null},
	metadata: {value: null},
	sha256: {value: null}
    }
});


CharmList = Y.Base.create('charmList', Y.ModelList, [], {
    ATTRS: {
    }
});


Service = Y.Base.create('service', Y.Model, [], {
    ATTRS: {
	name: {value: null},
	charm: {value: null},
	config: {value: null},
	constraints: {value: null},
	exposed: {value: null},
    }
});


ServiceList = Y.Base.create('serviceList', Y.ModelList, [], {
    ATTRS: {
    }
});


ServiceUnit = Y.Base.create('serviceUnit', Y.ModelList, [], {
    ATTRS: {
	name: {value: null},
	service: {value: null},
	machine: {value: null},
	agent_state: {value: null},
	relations: {value: null},
	is_subordinate: {value: false},
	open_ports: {value: null},
	public_address: {value: null},
	private_address: {value: null},
    }
}


ServiceUnitList = Y.Base.create('serviceUnitList', Y.ModelList, [], {
    ATTRS: {
    }
}


Machine = Y.Base.create('machine', Y.Model, [], {
    ATTRS: {
	public_address: {value: null},
	private_address: {value: null}
    }
});

MachineList = Y.Base.create('machineList', Y.ModelList, [], {
    ATTRS: {
    }
});


      
Relation = Y.Base.create('relation', Y.Model, [], {
    ATTRS: {
    }
});

RelationList = Y.Base.create('relationList', Y.ModelList, [], {
    ATTRS: {
    }
});


})<commit_msg>clean up models<commit_after>YUI().use('app', 'handlebars', 'jsonp', function(Y) {
    
var Charm, CharmList;
var Service, ServiceList;
var ServiceUnit, ServiceUnitList;
var Machine, MachineList;
var Relation, RelationList;

    
var JujuGUI;
   
Charm = Y.Base.create('charm', Y.Model, [], {
    idAttribute: 'charm_id',
    ATTRS: {
	charm_id: {},
	name: {},
	url: {},
	description: {},
	config: {},
	metadata: {},
	sha256: {}
    }
});


CharmList = Y.Base.create('charmList', Y.ModelList, [], {
    model: Charm,
    ATTRS: {
    }
});


Service = Y.Base.create('service', Y.Model, [], {
    idAttribute: 'name',
    ATTRS: {
	name: {},
	charm: {},
	config: {},
	constraints: {},
	exposed: {},
	relations: {}
    }
});


ServiceList = Y.Base.create('serviceList', Y.ModelList, [], {
    model: Service,
    ATTRS: {
    }
});


ServiceUnit = Y.Base.create('serviceUnit', Y.ModelList, [], {
    idAttribute: 'name',
    ATTRS: {
	name: {},
	service: {},
	machine: {},
	agent_state: {},
	// relations to unit relation state.
	relations: {},
	is_subordinate: {},
	open_ports: {},
	public_address: {},
	private_address: {}
    }
});


ServiceUnitList = Y.Base.create('serviceUnitList', Y.ModelList, [], {
    model: ServiceUnit,
    ATTRS: {
    }
});


Machine = Y.Base.create('machine', Y.Model, [], {
    idAttribute: 'machine_id',
    ATTRS: {
	machine_id: {},
	public_address: {},
	private_address: {}
    }
});

MachineList = Y.Base.create('machineList', Y.ModelList, [], {
    model: Machine,
    ATTRS: {
    }
});



Relation = Y.Base.create('relation', Y.Model, [], {
    idAttribute: 'relation_id',
    ATTRS: {
	relation_id: {},
	type: {},
	endpoints: {}
    }
});

RelationList = Y.Base.create('relationList', Y.ModelList, [], {
    ATTRS: {
    }
});


});
{'fraction_non_alphanumeric': 0.20623864324651725, 'fraction_numerical': 0.0018170805572380376, 'mean_word_length': 3.340341655716163, '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': '4953370', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1228, 'n_words': 227}