<commit_before>AECData = new Mongo.Collection('aecData');

Meteor.methods({
    profileInsert: function (profileData) {
        check(Meteor.userId(), String);
        check(profileData, {
            givenName: String,
            familyName: String,
            federalDivision: String,
            stateDistrict: String,
            localCouncil: String,
            locality: String,
            ward: String
        });
        var user = Meteor.user();
        fullProfile = _.extend(profileData, {<commit_msg>Catch users with existing AECData<commit_after>AECData = new Mongo.Collection('aecData');

Meteor.methods({
    profileInsert: function (profileData) {
        check(Meteor.userId(), String);
        check(Meteor.user().profile.aecData, undefined);
        check(profileData, {
            givenName: String,
            familyName: String,
            federalDivision: String,
            stateDistrict: String,
            localCouncil: String,
            locality: String,
            ward: String
        });
        var user = Meteor.user();
        fullProfile = _.extend(profileData, {
{'fraction_non_alphanumeric': 0.1036970243462579, 'fraction_numerical': 0.0, 'mean_word_length': 2.1179775280898876, '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': '6515077', 'n_tokens_mistral': 302, 'n_tokens_neox': 290, 'n_words': 64}