<commit_before>/* global View, document, Discussion, Log, page */
(function() {

    var index = function(ctx) {

	var offset = 0, closed = ctx.params.subpath === 'closed' ? true : false;
	var load = function(opts) {
	    var r = document.getElementById('river');
	    var l = r.querySelector('.list');

	    if (opts) {
		document.querySelector('.filter-container .' + closed).classList.remove('active');

		r.dataset.loading = true;
		l.innerHTML = null;
		offset = 0;		
		closed = opts.reset ? false : opts.closed;
<commit_msg>fixed scroll issue on discussions<commit_after>/* global View, document, Discussion, Log, page */
(function() {

    var index = function(ctx) {

	var offset = 0, closed = ctx.params.subpath === 'closed' ? true : false;
	var load = function(opts) {
	    var r = document.getElementById('river');
	    var l = r.querySelector('.list');

	    if (opts) {
		document.querySelector('.filter-container .' + closed).classList.remove('active');

		r.dataset.loading = true;
		l.innerHTML = null;
		offset = 0;
		View.scrollOn();
		closed = opts.reset ? false : opts.closed;

{'fraction_non_alphanumeric': 0.15861440291704648, 'fraction_numerical': 0.0036463081130355514, 'mean_word_length': 3.4816326530612245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6929589', 'n_tokens_mistral': 359, 'n_tokens_neox': 332, 'n_words': 89}