<commit_before>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

/**
 * Poll Schema
 */
var PollSchema = new Schema({
    name: {
        type: String,
        trim: true
    },
    question: {
        type: String,
        trim: true
    },
    answers: {
        type: [String],
        trim: true
    },
    private: {
        type: Boolean
    },
    responses: {
        type: [Number]
    },
    latitude: {
        type: Number
    },
    longitude: {
        type: Number
    },
    openTime: {
        type: Date
    },
    closeTime: {
        type: Date<commit_msg>Made polls after expire after a week. Done via app/models/poll.server.model.js<commit_after>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

/**
 * Poll Schema
 */
var PollSchema = new Schema({
    name: {
        type: String,
        trim: true
    },
    createdAt: {type: Date, expires:(24*60*60*7), default:Date.now},
    //Sets things to expire in a week. Poll expire here!
    question: {
        type: String,
        trim: true
    },
    answers: {
        type: [String],
        trim: true
    },
    private: {
        type: Boolean
    },
    responses: {
        type: [Number]
    },
    latitude: {
        type: Number
    },
    longitude: {
        type: Number
    },
    openTime: {
        type: Date
    },
    closeTime: {
        type: Date
{'fraction_non_alphanumeric': 0.13120326308633581, 'fraction_numerical': 0.004758667573079538, 'mean_word_length': 1.6812386156648451, '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': '3843726', 'n_tokens_mistral': 465, 'n_tokens_neox': 463, 'n_words': 119}