<commit_before>import SimpleSchema from 'simpl-schema';

export const ProjectBaseSchema = new SimpleSchema({
    name: {
        type: String,
    },
});

export const ProjectMembersSchema = new SimpleSchema({
    // array with userIds
    members: {
        type: Array,
        defaultValue: [],
        optional: true,
    },
    'members.$': {
        type: String,
    },
});

export const ProjectModeratorsSchema = new SimpleSchema({
    // array with userIds
    moderators: {
        type: Array,
        defaultValue: [],
        optional: true,
    },
    'moderators.$': {
        type: String,
    },
});

export const ProjectSprintsSchema = new SimpleSchema({
    // array with sprintIds
    sprints: {
        type: Array,
        defaultValue: [],
        optional: true,
    },
    'sprints.$': {
        type: String,
    },
});

const ProjectSchema = new SimpleSchema({});
ProjectSchema.extend(ProjectBaseSchema);
ProjectSchema.extend(ProjectMembersSchema);
ProjectSchema.extend(ProjectModeratorsSchema);
ProjectSchema.extend(ProjectSprintsSchema);

// Methods schemas<commit_msg>Remove array of sprintId from project<commit_after>import SimpleSchema from 'simpl-schema';

export const ProjectBaseSchema = new SimpleSchema({
    name: {
        type: String,
    },
});

export const ProjectMembersSchema = new SimpleSchema({
    // array with userIds
    members: {
        type: Array,
        defaultValue: [],
        optional: true,
    },
    'members.$': {
        type: String,
    },
});

export const ProjectModeratorsSchema = new SimpleSchema({
    // array with userIds
    moderators: {
        type: Array,
        defaultValue: [],
        optional: true,
    },
    'moderators.$': {
        type: String,
    },
});

const ProjectSchema = new SimpleSchema({});
ProjectSchema.extend(ProjectBaseSchema);
ProjectSchema.extend(ProjectMembersSchema);
ProjectSchema.extend(ProjectModeratorsSchema);

// Methods schemas
{'fraction_non_alphanumeric': 0.11915767847971238, 'fraction_numerical': 0.0, 'mean_word_length': 2.78252427184466, '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': '4420558', 'n_tokens_mistral': 538, 'n_tokens_neox': 534, 'n_words': 132}