<commit_before>var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var LightSchema = new mongoose.Schema({
	_id: false,
	name: {
		type: String,
		required: true
	},
	deviceId: {
		type: String,
		required: true
	},
	capabilities: {
		toggle: {
			type: Boolean,
			default: false,
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"toggled": {
						"type": "boolean"
					}
				},
				"required": [
					"toggled"
				]
			}
		},
		setState: {
			type: Boolean,
			default: false,
			requestSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"on": {
						"type": "boolean"
					},
					"colour": {
						"type": "string"
					},
					"brightness": {
						"type": "integer",
						"minimum": 0,
						"maximum": 100
					},
					"duration": {
						"duration": "integer",
						"minimum": 0,
						"maxiumum": 99999
					}
				},
				"required": [
					"colour",
					"duration",
					"brightness",
					"on"
				]
			},
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"processed": {
						"type": "boolean"
					}
				},
				"required": [
					"processed"
				]
			}

		},
		breatheEffect: {

		},
		pulseEffect: {

		},
		cycleEffect: {

		}
	}
});


var Light = mongoose.model('Light', LightSchema);

module.exports = Light;<commit_msg>Removed cycle effect for now<commit_after>var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var LightSchema = new mongoose.Schema({
	_id: false,
	name: {
		type: String,
		required: true
	},
	deviceId: {
		type: String,
		required: true
	},
	capabilities: {
		toggle: {
			type: Boolean,
			default: false,
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"toggled": {
						"type": "boolean"
					}
				},
				"required": [
					"toggled"
				]
			}
		},
		setState: {
			type: Boolean,
			default: false,
			requestSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"on": {
						"type": "boolean"
					},
					"colour": {
						"type": "string"
					},
					"brightness": {
						"type": "integer",
						"minimum": 0,
						"maximum": 100
					},
					"duration": {
						"duration": "integer",
						"minimum": 0,
						"maxiumum": 99999
					}
				},
				"required": [
					"colour",
					"duration",
					"brightness",
					"on"
				]
			},
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"processed": {
						"type": "boolean"
					}
				},
				"required": [
					"processed"
				]
			}

		},
		breatheEffect: {
			type: Boolean,
			default: false,
			requestSchema: {

			},
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"processed": {
						"type": "boolean"
					}
				},
				"required": [
					"processed"
				]
			}
		},
		pulseEffect: {
			type: Boolean,
			default: false,
			requestSchema: {

			},
			responseSchema: {
				"$schema": "http://json-schema.org/draft-04/schema#",
				"type": "object",
				"properties": {
					"processed": {
						"type": "boolean"
					}
				},
				"required": [
					"processed"
				]
			}
		}
	}
});


var Light = mongoose.model('Light', LightSchema);

module.exports = Light;
{'fraction_non_alphanumeric': 0.1893121091529278, 'fraction_numerical': 0.01023308698123934, 'mean_word_length': 2.1391614629794824, 'pattern_counts': {'":': 68, '<': 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': '3167207', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1257, 'n_words': 224}