<commit_before>import {
  ChangeDetectionStrategy,
  ChangeDetectorRef,
  Component,
  OnDestroy,
  OnInit,
  HostListener,
} from '@angular/core';
import { Router } from '@angular/router';
import { Observable, of } from 'rxjs';
import { NavItems, ProChannelService } from '../channel.service';
import { OverlayModalService } from '../../../../services/ux/overlay-modal';
import { MetaService } from '../../../../common/services/meta.service';

@Component({
  selector: 'm-pro--channel-home',
  changeDetection: ChangeDetectionStrategy.Default,
  templateUrl: 'home.component.html',
})
export class ProChannelHomeComponent implements OnInit, OnDestroy {
  inProgress: boolean = false;

  categories: Array<{
    tag: { tag: string; label: string };
    content: Array<Observable<any>>;
  }> = [];

  moreData: boolean = true;

  showFeed: boolean = false;

  constructor(
    protected router: Router,
    protected channelService: ProChannelService,
    protected modalService: OverlayModalService,
    protected cd: ChangeDetectorRef,
    protected metaService: MetaService
  ) {}

  /**
   * Listen to scroll, show feed when bottom reached.
   */
  @HostListener('window:scroll', ['$event'])
  onScroll(event) {
    const element = event.target.activeElement;
    if (
      !this.showFeed &&
      element.scrollTop + element.clientHeight / 2 >= element.scrollHeight / 2
    ) {
      this.showFeed = true;
    }
  }

  ngOnInit() {<commit_msg>(chore): disable fallback to feed<commit_after>import {
  ChangeDetectionStrategy,
  ChangeDetectorRef,
  Component,
  OnDestroy,
  OnInit,
  HostListener,
} from '@angular/core';
import { Router } from '@angular/router';
import { Observable, of } from 'rxjs';
import { NavItems, ProChannelService } from '../channel.service';
import { OverlayModalService } from '../../../../services/ux/overlay-modal';
import { MetaService } from '../../../../common/services/meta.service';

@Component({
  selector: 'm-pro--channel-home',
  changeDetection: ChangeDetectionStrategy.Default,
  templateUrl: 'home.component.html',
})
export class ProChannelHomeComponent implements OnInit, OnDestroy {
  inProgress: boolean = false;

  categories: Array<{
    tag: { tag: string; label: string };
    content: Array<Observable<any>>;
  }> = [];

  moreData: boolean = true;

  showFeed: boolean = false;

  constructor(
    protected router: Router,
    protected channelService: ProChannelService,
    protected modalService: OverlayModalService,
    protected cd: ChangeDetectorRef,
    protected metaService: MetaService
  ) {}

  /**
   * Listen to scroll, show feed when bottom reached.
   */
  // @HostListener('window:scroll', ['$event'])
  // onScroll(event) {
  //   const element = event.target.activeElement;
  //   if (
  //     !this.showFeed &&
  //     element.scrollTop + element.clientHeight / 2 >= element.scrollHeight / 2
  //   ) {
  //     this.showFeed = true;
  //   }
  // }

  ngOnInit() {
{'fraction_non_alphanumeric': 0.1415478615071283, 'fraction_numerical': 0.0013577732518669382, 'mean_word_length': 3.444947209653092, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7026', 'n_tokens_mistral': 875, 'n_tokens_neox': 860, 'n_words': 208}