<commit_before>/**
 * Created by ievans3024 on 5/13/15.
 */

exports.spec = function (dbname) {
    return {
        "_id": "_api/employee",
        "endpoint": "/api/users/employee/",
        "properties": [
            {
                "prompt": "Employee ID",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_id"].join("."),
                        [dbname, "read", "employee", "employee_id", "self"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_id"].join(".")
                    ]
                }
            },
            {
                "prompt": "Authorized Employee",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_authorized"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_authorized"].join(".")
                    ]
                }
            },
            {
                "prompt": "Employee Discount",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_discount"].join("."),
                        [dbname, "read", "employee", "employee_discount", "self"].join("."),
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_discount"].join(".")
                    ]
                }
            },
            {
                "data": {"name": "employee_department", "prompt": "Department", "placeholder": "Department"},
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_department"].join("."),
                        [dbname, "read", "employee", "employee_department", "self"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_department"].join(".")
                    ]
                }
            }
        ],
        "templates": {
            "create": {
                "permissions": {
                    "public": true,
                    "read": [],
                    "write": []
                },
                "validators": {}
            },
            "update": {
                "permissions": {},
                "data": [],
                "validators": {}
            }
        }
    }
};<commit_msg>* changed how api specs store template data vs. metadata<commit_after>/**
 * Created by ievans3024 on 5/13/15.
 */

exports.spec = function (dbname) {
    return {
        "_id": "_api/employee",
        "endpoint": "/api/users/employee/",
        "properties": [
            {
                "prompt": "Employee ID",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_id"].join("."),
                        [dbname, "read", "employee", "employee_id", "self"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_id"].join(".")
                    ]
                }
            },
            {
                "prompt": "Authorized Employee",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_authorized"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_authorized"].join(".")
                    ]
                }
            },
            {
                "prompt": "Employee Discount",
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_discount"].join("."),
                        [dbname, "read", "employee", "employee_discount", "self"].join("."),
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_discount"].join(".")
                    ]
                }
            },
            {
                "data": {"name": "employee_department", "prompt": "Department", "placeholder": "Department"},
                "permissions": {
                    "public": false,
                    "read": [
                        [dbname, "read", "employee", "employee_department"].join("."),
                        [dbname, "read", "employee", "employee_department", "self"].join(".")
                    ],
                    "update": [
                        [dbname, "update", "employee", "employee_department"].join(".")
                    ]
                }
            }
        ],
        "template_data": {
            "create": [],
            "update": []
        },
        "template_meta": {
            "create": {
                "permissions": {
                    "public": true,
                    "read": [],
                    "write": []
                },
                "validators": {}
            },
            "update": {
                "permissions": {},
                "validators": {}
            }
        }
    }
};
{'fraction_non_alphanumeric': 0.1588700971572508, 'fraction_numerical': 0.0032385750269881253, 'mean_word_length': 0.9409916201117319, 'pattern_counts': {'":': 76, '<': 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': '7237696', 'n_tokens_mistral': 1462, 'n_tokens_neox': 1271, 'n_words': 231}