<commit_before>package precursors;

option java_package = "com.skewedaspect.precursors";
option java_outer_classname = "PreProtos";


import "common.proto";
import "requests.proto";
import "events.proto";


/// Request message. Requests always generate a Response.
message Request {
  required int32 id = 1;
  repeated KeyValuePair properties = 2;

  // Request types - ONLY ONE of these should be present.
  optional Ping ping = 3;
  optional Login login = 4;
  optional Logout logout = 5;
  optional CreateNewChannel newchannel = 6;

  // Allow extensions to this message
  extensions 100 to 199;
}

/// Response message. Only generated by a Request.
message Response {
  required int32 id = 1;
  required bool confirm = 2;

  // Generic message fields
  required int32 inResponseTo = 3;
  optional string messageString = 4;

  // Allow extensions to this message
  extensions 100 to 199;
}

/// Event message.
message Event {
  required int32 id = 1;
  required string eventString = 2;

  repeated KeyValuePair properties = 3;

  // Event types - ONLY ONE of these should be present.
  optional MessageEvent message = 4;

  // Allow extensions to this message
  extensions 100 to 199;
}

<commit_msg>Added Envelope message to contain other messages.<commit_after>package precursors;

option java_package = "com.skewedaspect.precursors";
option java_outer_classname = "PreProtos";


import "common.proto";
import "requests.proto";
import "events.proto";


/// Request message. Requests always generate a Response.
message Request {
  required int32 id = 1;
  repeated KeyValuePair properties = 2;

  // Request types - ONLY ONE of these should be present.
  optional Ping ping = 3;
  optional Login login = 4;
  optional Logout logout = 5;
  optional CreateNewChannel newchannel = 6;

  // Allow extensions to this message
  extensions 100 to 199;
}

/// Response message. Only generated by a Request.
message Response {
  required int32 id = 1;
  required bool confirm = 2;

  // Generic message fields
  required int32 inResponseTo = 3;
  optional string messageString = 4;

  // Allow extensions to this message
  extensions 100 to 199;
}

/// Event message.
message Event {
  required int32 id = 1;
  required string eventString = 2;

  repeated KeyValuePair properties = 3;

  // Event types - ONLY ONE of these should be present.
  optional MessageEvent message = 4;

  // Allow extensions to this message
  extensions 100 to 199;
}

message Envelope {
	// exactly one
	optional Request request = 1;
	optional Response response = 2;
	optional Event event = 3;
}
{'fraction_non_alphanumeric': 0.07668353444920202, 'fraction_numerical': 0.032308291163877, 'mean_word_length': 3.4851657940663174, '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': '2330209', 'n_tokens_mistral': 800, 'n_tokens_neox': 698, 'n_words': 302}