<commit_before>/* eslint-disable camelcase */
import ApplicationSerializer from './application';
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';

export default class MemberSerializer extends ApplicationSerializer.extend(EmbeddedRecordsMixin) {
    attrs = {
        createdAtUTC: {key: 'created_at'},
        lastSeenAtUTC: {key: 'last_seen_at'},
        labels: {embedded: 'always'},
        emailRecipients: {embedded: 'always'}
    };

    serialize(/*snapshot, options*/) {
        let json = super.serialize(...arguments);

        // Properties that exist on the model but we don't want sent in the payload
        delete json.stripe;
        delete json.geolocation;
        delete json.email_recipients;
        delete json.status;

        // Normalize properties
        json.name = json.name || '';
        json.note = json.note || '';

        return json;
    }
}
<commit_msg>Removed `last_seen_at` from the api queries<commit_after>/* eslint-disable camelcase */
import ApplicationSerializer from './application';
import {EmbeddedRecordsMixin} from '@ember-data/serializer/rest';

export default class MemberSerializer extends ApplicationSerializer.extend(EmbeddedRecordsMixin) {
    attrs = {
        createdAtUTC: {key: 'created_at'},
        lastSeenAtUTC: {key: 'last_seen_at'},
        labels: {embedded: 'always'},
        emailRecipients: {embedded: 'always'}
    };

    serialize(/*snapshot, options*/) {
        let json = super.serialize(...arguments);

        // Properties that exist on the model but we don't want sent in the payload
        delete json.stripe;
        delete json.geolocation;
        delete json.email_recipients;
        delete json.status;
        delete json.last_seen_at;

        // Normalize properties
        json.name = json.name || '';
        json.note = json.note || '';

        return json;
    }
}

{'fraction_non_alphanumeric': 0.11382978723404255, 'fraction_numerical': 0.0, 'mean_word_length': 2.754491017964072, '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': '5547775', 'n_tokens_mistral': 530, 'n_tokens_neox': 505, 'n_words': 137}