<commit_before>// GET /db/{db}/chat/{id}
// Chatrooms / Read chatroom properties
//
// Alpha @ 0.1.22
//
// `200 OK`, 
// [Read-only](/docs/#/concept/read-only.md).
//
// Reads chatroom information (except the list of messages). 
// Data is returned using a [client join pattern](/docs/#/concept/client-join.md): 
//
// ### Response format
//     { "contacts": [ <shortcontact>, ... ],
//       "groups": [ <groupinfo>, ... ],
//       "info": <chatinfo> }
//  - `contacts` is a list of [short profiles](/docs/#/contact/short-contact.js) for 
//    all participants in the chatroom.
//  - `groups` is the [basic information](/docs/#/group/group-info.js)
//    for all groups present in the chatroom.
//  - `info` is a [chatroom information object](/docs/#/chat/chat-info.js).

TEST("The response has valid return code and content type.", function(next) {
    Assert.fail();
});

// # Examples
// 
// ### Example request
//     GET /db/0SNQc00211H/chat/0SNQe0132FW
// 
// ### Example response
//     200 OK
//     Content-Type: application/json 
//     
//     { "contacts": [
//       { "id" : "0SNQe00311H",
//         "name" : "<EMAIL>",
//         "gender" : null,
//         "pic" : "https://www.gravatar.com/avatar/1ed54d253636f5b33eff32c2d5573f70" },
//       { "id" : "0SNQg00511H",
//         "name" : "<EMAIL>",
//         "gender" : null,
//         "pic" : "https://www.gravatar.com/avatar/5a31b00f649489a9a24d3dc3e8b28060"} ],
//       "groups": [
//         { "id": "0SNQe0032JZ",
//         "label": "Team members",
//         "count" : 215 } ],
//       "info": { 
//         "id": 0SNQe0132FW,
//         "contacts": ["0SNQe00311H","0SNQg00511H"],
//         "groups": ["0SNQe0032JZ"],
//         "subject": "Preparation for the next meeting",
//         "count": 118 }}

TEST("Returns correct list of contacts.", function(next) {
    Assert.fail();
});

TEST("Returns correct list of groups.", function(next) {
    Assert.fail();
});

TEST("Returns correct message count.", function(next) {
    Assert.fail();
});

TEST("Returns correct subject.", function(next) {
    Assert.fail();
});

// 
// # Errors
// 
// ## Returns `404 Not Found`
// - ... if database `{db}` does not exist

TEST("Returns 404 when database does not exist.", function(next) {
    Assert.fail();
});

// - ... if chatroom `{id}` does not exist in database `{db}`

TEST("Returns 404 when chatroom does not exist.", function(next) {<commit_msg>Public property in chatrooms<commit_after>// GET /db/{db}/chat/{id}
// Chatrooms / Read chatroom properties
//
// Alpha @ 0.1.22
//
// `200 OK`, 
// [Read-only](/docs/#/concept/read-only.md).
//
// Reads chatroom information (except the list of messages). 
// Data is returned using a [client join pattern](/docs/#/concept/client-join.md): 
//
// ### Response format
//     { "contacts": [ <shortcontact>, ... ],
//       "groups": [ <groupinfo>, ... ],
//       "info": <chatinfo> }
//  - `contacts` is a list of [short profiles](/docs/#/contact/short-contact.js) for 
//    all participants in the chatroom.
//  - `groups` is the [basic information](/docs/#/group/group-info.js)
//    for all groups present in the chatroom.
//  - `info` is a [chatroom information object](/docs/#/chat/chat-info.js).

TEST("The response has valid return code and content type.", function(next) {
    Assert.fail();
});

// # Examples
// 
// ### Example request
//     GET /db/0SNQc00211H/chat/0SNQe0132FW
// 
// ### Example response
//     200 OK
//     Content-Type: application/json 
//     
//     { "contacts": [
//       { "id" : "0SNQe00311H",
//         "name" : "<EMAIL>",
//         "gender" : null,
//         "pic" : "https://www.gravatar.com/avatar/1ed54d253636f5b33eff32c2d5573f70" },
//       { "id" : "0SNQg00511H",
//         "name" : "<EMAIL>",
//         "gender" : null,
//         "pic" : "https://www.gravatar.com/avatar/5a31b00f649489a9a24d3dc3e8b28060"} ],
//       "groups": [
//         { "id": "0SNQe0032JZ",
//         "label": "Team members",
//         "count" : 215 } ],
//       "info": { 
//         "id": 0SNQe0132FW,
//         "contacts": ["0SNQe00311H","0SNQg00511H"],
//         "groups": ["0SNQe0032JZ"],
//         "subject": "Preparation for the next meeting",
//         "public": false,
//         "count": 118 }}

TEST("Returns correct list of contacts.", function(next) {
    Assert.fail();
});

TEST("Returns correct list of groups.", function(next) {
    Assert.fail();
});

TEST("Returns correct message count.", function(next) {
    Assert.fail();
});

TEST("Returns correct subject.", function(next) {
    Assert.fail();
});

// 
// # Errors
// 
// ## Returns `404 Not Found`
// - ... if database `{db}` does not exist

TEST("Returns 404 when database does not exist.", function(next) {
    Assert.fail();
});

// - ... if chatroom `{id}` does not exist in database `{db}`

TEST("Returns 404 when chatroom does not exist.", function(next) {
{'fraction_non_alphanumeric': 0.20623598940289384, 'fraction_numerical': 0.04809455879356022, 'mean_word_length': 2.34560327198364, 'pattern_counts': {'":': 27, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '5127869', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1686, 'n_words': 387}