<commit_before>import * as SDPUtil from "./SDPUtil";
import * as SampleSdpStrings from "./SampleSdpStrings.js";
import * as transform from 'sdp-transform';

describe("SDPUtil", function() {
    it("should parse an ice ufrag correctly", function() {
        const line = "a=ice-ufrag:3jlcc1b3j1rqt6";
        const parsed = SDPUtil.parse_iceufrag(line);

        expect(parsed).toEqual("3jlcc1b3j1rqt6");
    });

    describe("preferVideoCodec", function() {
        it("should move a preferred codec to the front", function() {
            const sdp = SampleSdpStrings.multiCodecVideoSdp;
            const videoMLine = sdp.media.find(m => m.type === "video");
            SDPUtil.preferVideoCodec(videoMLine, "H264");
            const newPayloadTypesOrder = 
                videoMLine.payloads.split(" ").map(ptStr => parseInt(ptStr));
            expect(newPayloadTypesOrder[0]).toEqual(126);
        });
    });
});
<commit_msg>remove unused import<commit_after>import * as SDPUtil from "./SDPUtil";
import * as SampleSdpStrings from "./SampleSdpStrings.js";

describe("SDPUtil", function() {
    it("should parse an ice ufrag correctly", function() {
        const line = "a=ice-ufrag:3jlcc1b3j1rqt6";
        const parsed = SDPUtil.parse_iceufrag(line);

        expect(parsed).toEqual("3jlcc1b3j1rqt6");
    });

    describe("preferVideoCodec", function() {
        it("should move a preferred codec to the front", function() {
            const sdp = SampleSdpStrings.multiCodecVideoSdp;
            const videoMLine = sdp.media.find(m => m.type === "video");
            SDPUtil.preferVideoCodec(videoMLine, "H264");
            const newPayloadTypesOrder = 
                videoMLine.payloads.split(" ").map(ptStr => parseInt(ptStr));
            expect(newPayloadTypesOrder[0]).toEqual(126);
        });
    });
});

{'fraction_non_alphanumeric': 0.1370835608956854, 'fraction_numerical': 0.018569087930092845, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3684979', 'n_tokens_mistral': 579, 'n_tokens_neox': 568, 'n_words': 113}