<commit_before>'use strict';

// SDP codec parameters that don't follow the camelcase convention of ORTC.
const WELL_KNOWN_SDP_PARAMS_TO_ORTC = new Map([
	// OPUS parameters.
	// https://tools.ietf.org/html/draft-ietf-payload-rtp-opus
	[ 'maxplaybackrate',      'maxPlaybackRate'     ],
	[ 'sprop-maxcapturerate', 'spropMaxCaptureRate' ],
	[ 'maxaveragebitrate',    'maxAverageBitrate'   ],
	[ 'useinbandfec',         'useInbandFec'        ],
	[ 'usedtx',               'useDtx'              ],
	[ 'sprop-maxcapturerate', 'spropMaxCaptureRate' ],
	// FLEXFEC parameters.
	// https://tools.ietf.org/html/draft-ietf-payload-flexible-fec-scheme
	[ 'L',                    'l',                  ],
	[ 'D',                    'd',                  ],
	[ 'ToP',                  'toP'                 ]
]);

// NOTE: SDP params are converted to lowcase.
const WELL_KNOWN_FROM_SDP_PARAMS = new Map();
// NOTE: ORTC params are converted to lowcase.
const WELL_KNOWN_TO_SDP_PARAMS = new Map();

for (let [k, v] of WELL_KNOWN_SDP_PARAMS_TO_ORTC)
{
	WELL_KNOWN_FROM_SDP_PARAMS.set(k.toLowerCase(), v);
	WELL_KNOWN_TO_SDP_PARAMS.set(v.toLowerCase(), k);
}
<commit_msg>Fix non supported ES6 feature in Node < 6<commit_after>'use strict';

// SDP codec parameters that don't follow the camelcase convention of ORTC.
const WELL_KNOWN_SDP_PARAMS_TO_ORTC = new Map([
	// OPUS parameters.
	// https://tools.ietf.org/html/draft-ietf-payload-rtp-opus
	[ 'maxplaybackrate',      'maxPlaybackRate'     ],
	[ 'sprop-maxcapturerate', 'spropMaxCaptureRate' ],
	[ 'maxaveragebitrate',    'maxAverageBitrate'   ],
	[ 'useinbandfec',         'useInbandFec'        ],
	[ 'usedtx',               'useDtx'              ],
	[ 'sprop-maxcapturerate', 'spropMaxCaptureRate' ],
	// FLEXFEC parameters.
	// https://tools.ietf.org/html/draft-ietf-payload-flexible-fec-scheme
	[ 'L',                    'l',                  ],
	[ 'D',                    'd',                  ],
	[ 'ToP',                  'toP'                 ]
]);

// NOTE: SDP params are converted to lowcase.
const WELL_KNOWN_FROM_SDP_PARAMS = new Map();
// NOTE: ORTC params are converted to lowcase.
const WELL_KNOWN_TO_SDP_PARAMS = new Map();

for (let pair of WELL_KNOWN_SDP_PARAMS_TO_ORTC)
{
	let key = pair[0];
	let value = pair[1];

	WELL_KNOWN_FROM_SDP_PARAMS.set(key.toLowerCase(), value);
	WELL_KNOWN_TO_SDP_PARAMS.set(value.toLowerCase(), key);
}

{'fraction_non_alphanumeric': 0.13873798579189303, 'fraction_numerical': 0.001671541997492687, 'mean_word_length': 2.536189069423929, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6466976', 'n_tokens_mistral': 890, 'n_tokens_neox': 849, 'n_words': 158}