<commit_before>// always disable adaptive for accurate seeks. 
mw.setConfig('Kaltura.UseAppleAdaptive', false);

kWidget.addReadyCallback( function( playerId ){
	var kdp = document.getElementById( playerId );
	/**
	 * The main chaptersView object:
	 */
	var chaptersView = function(kdp, configOverride){
		return this.init(kdp, configOverride);
	};
	chaptersView.prototype = {
		// a flag to skip pausing when pauseAfterChapter is enabled
		skipPauseFlag: false,
		init: function( kdp, configOverride ){
			if( configOverride ){
				this.configOverride = configOverride;
			}
			this.kdp = kdp;
			var _this = this;
			// setup api object
			this.api = new kWidget.api( { 'wid' : this.getAttr( 'configProxy.kw.id' ) } );
			
			// setup the app target:
			this.$chaptersContainer = this.getConfig( 'containerId') ? 
					$('#' + this.getConfig( 'containerId') ) : 
					this.getChapterContainer();

			this.$chaptersContainer.empty().append( 
				$('<div>').css('padding', '10px').text('')<commit_msg>Chapters use KS from player ( in case admin ks was provided ) <commit_after>// always disable adaptive for accurate seeks. 
mw.setConfig('Kaltura.UseAppleAdaptive', false);

kWidget.addReadyCallback( function( playerId ){
	var kdp = document.getElementById( playerId );
	/**
	 * The main chaptersView object:
	 */
	var chaptersView = function(kdp, configOverride){
		return this.init(kdp, configOverride);
	};
	chaptersView.prototype = {
		// a flag to skip pausing when pauseAfterChapter is enabled
		skipPauseFlag: false,
		init: function( kdp, configOverride ){
			if( configOverride ){
				this.configOverride = configOverride;
			}
			this.kdp = kdp;
			var _this = this;
			// setup api object
			this.api = new kWidget.api( { 'wid' : this.getAttr( 'configProxy.kw.id' ) } );
			// Use KS from player ( in case admin ks was provided ) 
			if(  this.getAttr('ks') ){
				this.api.setKs( this.getAttr('ks')  )
			}
			// setup the app target:
			this.$chaptersContainer = this.getConfig( 'containerId') ? 
					$('#' + this.getConfig( 'containerId') ) : 
					this.getChapterContainer();

			this.$chaptersContainer.empty().append( 
				$('<div>').css('padding', '10px').text('')
{'fraction_non_alphanumeric': 0.14194139194139194, 'fraction_numerical': 0.0018315018315018315, 'mean_word_length': 3.648936170212766, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3215', 'n_tokens_mistral': 793, 'n_tokens_neox': 686, 'n_words': 172}