<commit_before>#include <netinet/in.h>
#include <inttypes.h>
#include <anyrtc.h>
#include "ice_candidate.h"
#include "utils.h"

#define DEBUG_MODULE "ice-candidate"
#define DEBUG_LEVEL 7
#include <re_dbg.h>

/*
 * Calculate the ICE candidate priority.
 * TODO: Couldn't find a related RFC/draft, yet. :/
 */
static uint32_t calculate_candidate_priority(
        enum ice_cand_type const candidate_type,
        int const protocol,
        enum ice_tcptype const tcp_type
) {
    return 0;
}

/*
 * Return the foundation of an ICE candidate.
 * Copied from rew/src/trice/lcand.c as it's not exported and we need it earlier.<commit_msg>Add URL to ICE candidate priority calculation<commit_after>#include <netinet/in.h>
#include <inttypes.h>
#include <anyrtc.h>
#include "ice_candidate.h"
#include "utils.h"

#define DEBUG_MODULE "ice-candidate"
#define DEBUG_LEVEL 7
#include <re_dbg.h>

/*
 * Calculate the ICE candidate priority.
 * TODO: https://tools.ietf.org/html/draft-ietf-ice-rfc5245bis-04#section-4.1.2.1
 */
static uint32_t calculate_candidate_priority(
        enum ice_cand_type const candidate_type,
        int const protocol,
        enum ice_tcptype const tcp_type
) {
    return 0;
}

/*
 * Return the foundation of an ICE candidate.
 * Copied from rew/src/trice/lcand.c as it's not exported and we need it earlier.
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.013533834586466165, 'mean_word_length': 3.822463768115942, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5691790', 'n_tokens_mistral': 473, 'n_tokens_neox': 450, 'n_words': 130}