<commit_before>syntax = "proto2";

message ControllerConfig {
    optional ProbeConfigs probes = 1;
    optional AccountInfo account = 2;
    optional string min_cpu = 3;
    optional string disk_image_name = 4;
    optional int32 vm_timeout_minutes = 5;
    optional int32 vm_ping_interval = 6;
}

enum ProbeType {
    UNSPECIFIED = 0;
    ONCE_PER_INSTALL = 1;
    TOPIC = 2;
}

message ProbeConfigs {
    repeated ProbeConfig probe = 1;
}

message ProbeConfig {
    optional string region = 1;
    optional ProbeType type = 2;
    optional int32 send_number = 3;
    optional int32 send_interval = 4;
    optional int32 receive_timeout = 5;
}

message AccountInfo {
    optional string service_account = 1;
    optional string gcp_project = 2;
}

message Heartbeat {
    optional bool stop = 1;
    optional string source = 2;
}

message RegisterRequest {
    optional string source = 1;
}

message RegisterResponse {
    optional ProbeConfigs probes = 1;
    optional AccountInfo account = 2;
    optional int32 ping_interval = 3;
}

service ProbeCommunicator {
    rpc Register(RegisterRequest) returns (RegisterResponse) {}
    rpc Ping(Heartbeat) returns (Heartbeat) {}
}<commit_msg>bundle probe config settings in a single message<commit_after>syntax = "proto2";

message ControllerConfig {
    optional ProbeConfigs probes = 1;
    optional AccountInfo account = 2;
    optional string min_cpu = 3;
    optional string disk_image_name = 4;
    optional int32 vm_timeout_minutes = 5;
    optional int32 vm_ping_interval = 6;
}

enum ProbeType {
    UNSPECIFIED = 0;
    ONCE_PER_INSTALL = 1;
    TOPIC = 2;
}

message ProbeConfigs {
    repeated ProbeConfig probe = 1;
}

message ProbeConfig {
    optional string region = 1;
    optional ProbeType type = 2;
    optional int32 send_number = 3;
    optional int32 send_interval = 4;
    optional int32 receive_timeout = 5;
}

message AccountInfo {
    optional string service_account = 1;
    optional string gcp_project = 2;
}

message PingConfig {
    optional int32 interval = 1;
    optional int32 timeout = 2;
    optional int32 retries = 3;
}

message Heartbeat {
    optional bool stop = 1;
    optional string source = 2;
}

message RegisterRequest {
    optional string source = 1;
}

message RegisterResponse {
    optional ProbeConfigs probes = 1;
    optional AccountInfo account = 2;
    optional PingConfig ping_config = 3;
}

service ProbeCommunicator {
    rpc Register(RegisterRequest) returns (RegisterResponse) {}
    rpc Ping(Heartbeat) returns (Heartbeat) {}
}
{'fraction_non_alphanumeric': 0.06853091768412761, 'fraction_numerical': 0.031114612051988972, 'mean_word_length': 3.4405594405594404, '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': '3799194', 'n_tokens_mistral': 843, 'n_tokens_neox': 752, 'n_words': 249}