<commit_before>syntax = "proto3";

package spine.test.validation.dart;

import "spine/options.proto";
import "spine/people/person_name.proto";

option (type_url_prefix) = "type.spine.io";

message PhoneNumber {

    // The phone number in the E.164 recommended format.
    //
    // See https://en.wikipedia.org/wiki/E.164
    //
    string digits = 1 [(required) = true, (pattern).regex = "\\+?\\d{4,15}"];
}

message Contact {

    people.PersonName name = 1 [(required) = true];

    PhoneNumber phone = 2 [(required) = false];

    Category category = 3 [(required) = true];

    enum Category {

        CC_UNKNOWN = 0;
        WORK = 1;
        PERSONAL = 2;
        OTHER = 3;
    }
}

message LocalTime {

    uint32 hours = 1 [(range) = "[0..23]"];

    uint32 minutes = 2 [(range) = "[0..60)"];

    int32 seconds = 3 [(range) = "(-1..+59]"];

    int32 millis = 4 [(min).value = "0", (max).value = "999"];
}

message Duration {

    sint64 millis = 1;

    sint32 nanos = 2 [(range) = "(-1000..1000)"];
}

message BinaryFile {

    string path = 1 [(required) = true];

    string owner = 2 [(required) = false];

    bytes content = 3 [(required) = true];
}

<commit_msg>Use a "fixed" type<commit_after>syntax = "proto3";

package spine.test.validation.dart;

import "spine/options.proto";
import "spine/people/person_name.proto";

option (type_url_prefix) = "type.spine.io";

message PhoneNumber {

    // The phone number in the E.164 recommended format.
    //
    // See https://en.wikipedia.org/wiki/E.164
    //
    string digits = 1 [(required) = true, (pattern).regex = "\\+?\\d{4,15}"];
}

message Contact {

    people.PersonName name = 1 [(required) = true];

    PhoneNumber phone = 2 [(required) = false];

    Category category = 3 [(required) = true];

    enum Category {

        CC_UNKNOWN = 0;
        WORK = 1;
        PERSONAL = 2;
        OTHER = 3;
    }
}

message LocalTime {

    uint32 hours = 1 [(range) = "[0..23]"];

    uint32 minutes = 2 [(range) = "[0..60)"];

    int32 seconds = 3 [(range) = "(-1..+59]"];

    int32 millis = 4 [(min).value = "0", (max).value = "999"];
}

message Duration {

    sint64 millis = 1;

    sfixed32 nanos = 2 [(range) = "(-1000..1000)"];
}

message BinaryFile {

    string path = 1 [(required) = true];

    string owner = 2 [(required) = false];

    bytes content = 3 [(required) = true];
}


{'fraction_non_alphanumeric': 0.17614833544037084, 'fraction_numerical': 0.05056890012642225, 'mean_word_length': 2.5327380952380953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '987616', 'n_tokens_mistral': 938, 'n_tokens_neox': 794, 'n_words': 219}