<commit_before>package pbnavitia;

message GeographicalCoord {
    required double x = 1;
    required double y = 2;
}

message Country {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name  = 3;
    optional PTReferential child = 4; 
}

message StopArea {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional GeographicalCoord coord = 5;
    optional PTReferential child = 6; 
}

message StopPoint {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional GeographicalCoord coord = 5;
    optional PTReferential child = 6; 
}

message Line {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional string code = 5;
    optional string forward_name = 6;
    optional string backward_name = 7;
    optional string additional_data = 8;
    optional string color = 9;
    optional PTReferential child = 10; 
}

message Route {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional bool is_frequence = 5;
    optional bool is_adapted = 6;
    optional PTReferential child = 7; 
}

message StopTime {
}

message VehicleJourney {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional bool is_adapted = 5;
    optional PTReferential child = 6; 
}

message RoutePoint{
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string external_code = 3;
    optional int32 order = 4;

    optional PTReferential child = 5; 
}


message PTReferential {
    repeated Country country_list =1;
    repeated StopArea stop_area_list = 2;
    repeated StopPoint stop_point_list = 3;
    repeated Line line_list = 4;
    repeated Route route_list = 5;
    repeated StopTime stop_time_list = 6;
    repeated VehicleJourney vehicle_journey_list = 7;
    repeated RoutePoint route_point_list = 11;

    optional string error = 8;
    optional string warning = 9;
    optional string info = 10;
}<commit_msg>Rajout de nouveaux messages protobuf<commit_after>package pbnavitia;

enum NavitiaType {
    COUNTRY = 0;
    STOPAREA = 1;
    WAY = 2;
    CITY = 3;
    SITE = 4;
}

message GeographicalCoord {
    required double x = 1;
    required double y = 2;
}

message Country {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name  = 3;
    optional PTReferential child = 4; 
    optional GeographicalCoord coord = 6;
}

message StopArea {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional GeographicalCoord coord = 5;
    optional PTReferential child = 6; 
}

message StopPoint {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional GeographicalCoord coord = 5;
    optional PTReferential child = 6; 
}

message Line {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional string code = 5;
    optional string forward_name = 6;
    optional string backward_name = 7;
    optional string additional_data = 8;
    optional string color = 9;
    optional PTReferential child = 10; 
}

message Route {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional bool is_frequence = 5;
    optional bool is_adapted = 6;
    optional PTReferential child = 7; 
}

message StopTime {
}

message VehicleJourney {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string name = 3;
    optional string external_code = 4;
    optional bool is_adapted = 5;
    optional PTReferential child = 6; 
}

message RoutePoint{
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string external_code = 3;
    optional int32 order = 4;

    optional PTReferential child = 5; 
}

message Way {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string external_code = 3;
    optional string name = 4;
    optional PTReferential child = 5; 
    optional GeographicalCoord coord = 6;
}

message City {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string external_code = 3;
    optional string name = 4;
    optional PTReferential child = 5; 
    optional GeographicalCoord coord = 6;
}

message Site {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional string external_code = 3;
    optional string name = 4;
    optional PTReferential child = 5; 
    optional GeographicalCoord coord = 6;
}

message Node {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional GeographicalCoord coord = 6;
}
    
message Segment {
    optional int32 id = 1;
    optional int32 idx = 2;
    optional Node start = 3;
    optional Node end = 4;
    optional float length = 5;
}

message PTReferential {
    repeated Country country_list =1;
    repeated StopArea stop_area_list = 2;
    repeated StopPoint stop_point_list = 3;
    repeated Line line_list = 4;
    repeated Route route_list = 5;
    repeated StopTime stop_time_list = 6;
    repeated VehicleJourney vehicle_journey_list = 7;
    repeated RoutePoint route_point_list = 11;
    repeated Way way_list = 12;
    repeated City city_list = 13;
    repeated Site site_list = 14;
    repeated Segment segment_list = 15;


    optional string error = 8;
    optional string warning = 9;
    optional string info = 10;
}

message FirstLetterItem {
    optional string name = 1;
    optional NavitiaType type = 2;
    optional int32 quality = 3;
    optional Way way = 4;
    optional City city = 5;
    optional StopArea stop_area = 6;
    optional Site site = 7;
}

message FirstLetter {
    repeated FirstLetterItem items = 1;
    repeated string ignored_word_list = 2;
    repeated string bad_word_list = 3;
}

message StreetNetwork {
    optional float length = 1;
    repeated Way way_list = 2;
}
{'fraction_non_alphanumeric': 0.06282216494845361, 'fraction_numerical': 0.04091494845360825, 'mean_word_length': 2.820923076923077, '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': '1167514', 'n_tokens_mistral': 2081, 'n_tokens_neox': 1854, 'n_words': 704}