<commit_before>#include <string.h> // strlen
#include <rawrtc.h>
#include "ice_parameters.h"
#include "dtls_parameters.h"
#include "sctp_capabilities.h"
#include "sctp_transport.h"
#include "peer_connection_description.h"
#include "peer_connection_ice_candidate.h"

#define DEBUG_MODULE "peer-connection-description"
//#define RAWRTC_DEBUG_MODULE_LEVEL 7 // Note: Uncomment this to debug this module only
#include "debug.h"

// Constants
static uint16_t const discard_port = 9;
static char const sdp_application_dtls_sctp_regex[] = "application [0-9]+ [^ ]+";
static char const * const sdp_application_dtls_sctp_variants[] = {
    "DTLS/SCTP",
    "UDP/DTLS/SCTP",
    "TCP/DTLS/SCTP",
};
static size_t const sdp_application_dtls_sctp_variants_length =
        ARRAY_SIZE(sdp_application_dtls_sctp_variants);
static char const sdp_group_regex[] = "group:BUNDLE [^]+";
static char const sdp_mid_regex[] = "mid:[^]+";
static char const sdp_ice_options_trickle[] = "ice-options:trickle";
static char const sdp_ice_username_fragment_regex[] = "ice-ufrag:[^]+";
static char const sdp_ice_password_regex[] = "<PASSWORD>:[^]+";
static char const sdp_ice_lite[] = "ice-lite";
static char const sdp_dtls_role_regex[] = "setup:[^]+";
static enum rawrtc_dtls_role const map_enum_dtls_role[] = {
    RAWRTC_DTLS_ROLE_AUTO,
    RAWRTC_DTLS_ROLE_CLIENT,
    RAWRTC_DTLS_ROLE_SERVER,
};
static char const * const map_str_dtls_role[] = {
    "actpass"
    "active",
    "passive",
};
static size_t const map_dtls_role_length =
        ARRAY_SIZE(map_enum_dtls_role);
static char const sdp_dtls_fingerprint_regex[] = "fingerprint:[^ ]+ [^]+";
static char const sdp_sctp_port_sctmap_regex[] = "sctpmap:[0-9]+[^]*";
static char const sdp_sctp_port_regex[] = "sctp-port:[0-9]+";
static char const sdp_sctp_maximum_message_size_regex[] = "max-message-size:[0-9]+";
static char const sdp_ice_end_of_candidates[] = "end-of-candidates";
static char const sdp_ice_candidate_head[] = "candidate:";
static size_t const sdp_ice_candidate_head_length = ARRAY_SIZE(sdp_ice_candidate_head);

// Candidate line
struct candidate_line {
    struct le le;
    struct pl line;
};
<commit_msg>Fix missing comma in map_str_dtls_role<commit_after>#include <string.h> // strlen
#include <rawrtc.h>
#include "ice_parameters.h"
#include "dtls_parameters.h"
#include "sctp_capabilities.h"
#include "sctp_transport.h"
#include "peer_connection_description.h"
#include "peer_connection_ice_candidate.h"

#define DEBUG_MODULE "peer-connection-description"
//#define RAWRTC_DEBUG_MODULE_LEVEL 7 // Note: Uncomment this to debug this module only
#include "debug.h"

// Constants
static uint16_t const discard_port = 9;
static char const sdp_application_dtls_sctp_regex[] = "application [0-9]+ [^ ]+";
static char const * const sdp_application_dtls_sctp_variants[] = {
    "DTLS/SCTP",
    "UDP/DTLS/SCTP",
    "TCP/DTLS/SCTP",
};
static size_t const sdp_application_dtls_sctp_variants_length =
        ARRAY_SIZE(sdp_application_dtls_sctp_variants);
static char const sdp_group_regex[] = "group:BUNDLE [^]+";
static char const sdp_mid_regex[] = "mid:[^]+";
static char const sdp_ice_options_trickle[] = "ice-options:trickle";
static char const sdp_ice_username_fragment_regex[] = "ice-ufrag:[^]+";
static char const sdp_ice_password_regex[] = "ice-pwd:[^]+";
static char const sdp_ice_lite[] = "ice-lite";
static char const sdp_dtls_role_regex[] = "setup:[^]+";
static enum rawrtc_dtls_role const map_enum_dtls_role[] = {
    RAWRTC_DTLS_ROLE_AUTO,
    RAWRTC_DTLS_ROLE_CLIENT,
    RAWRTC_DTLS_ROLE_SERVER,
};
static char const * const map_str_dtls_role[] = {
    "actpass",
    "active",
    "passive",
};
static size_t const map_dtls_role_length =
        ARRAY_SIZE(map_enum_dtls_role);
static char const sdp_dtls_fingerprint_regex[] = "fingerprint:[^ ]+ [^]+";
static char const sdp_sctp_port_sctmap_regex[] = "sctpmap:[0-9]+[^]*";
static char const sdp_sctp_port_regex[] = "sctp-port:[0-9]+";
static char const sdp_sctp_maximum_message_size_regex[] = "max-message-size:[0-9]+";
static char const sdp_ice_end_of_candidates[] = "end-of-candidates";
static char const sdp_ice_candidate_head[] = "candidate:";
static size_t const sdp_ice_candidate_head_length = ARRAY_SIZE(sdp_ice_candidate_head);

// Candidate line
struct candidate_line {
    struct le le;
    struct pl line;
};

{'fraction_non_alphanumeric': 0.12779700115340253, 'fraction_numerical': 0.005536332179930796, 'mean_word_length': 6.1551155115511555, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '967013', 'n_tokens_mistral': 1675, 'n_tokens_neox': 1615, 'n_words': 322}