<commit_before>import React from "react";
import includes from "lodash.includes";
import Page from "./Page";
import Types from "./types";
import Scroll from "./Scroll";
import Episode from "./Episode";
import b from "components/lib/b";
import connect from "components/lib/connect";
import action from "actions/magazine/list";

@connect("magazine.list")
export default class extends React.Component {
    static displayName = "MagazineList.Magazine"
    static propTypes = Types.magazine;

    onClick (episode) {
        const {dispatch} = this.props;

        dispatch(action.show(episode));
    }

    render () {
        const {title, cover, selectedEpisode, episodes} = this.props;
        const magazine = b.with("magazineLayout");
        const magazineEpisode = b.with("magazineEpisodeLayout");

        return (
            <div className={magazine()}><commit_msg>:nail_care: scroll down to selected magazine info<commit_after>import React from "react";
import includes from "lodash.includes";
import scrollTo from "scroll-to";
import Page from "./Page";
import Types from "./types";
import Scroll from "./Scroll";
import Episode from "./Episode";
import b from "components/lib/b";
import connect from "components/lib/connect";
import action from "actions/magazine/list";

@connect("magazine.list")
export default class extends React.Component {
    static displayName = "MagazineList.Magazine"
    static propTypes = Types.magazine;

    onClick (episode) {
        const {dispatch} = this.props;

        scrollTo(window, 0, this.e.offsetTop);
        dispatch(action.show(episode));
    }

    render () {
        const {title, cover, selectedEpisode, episodes} = this.props;
        const magazine = b.with("magazineLayout");
        const magazineEpisode = b.with("magazineEpisodeLayout");

        return (
            <div
                className={magazine()}
                ref={(e) => {
                    this.e = e;
                }}
            >
{'fraction_non_alphanumeric': 0.12227295788939624, 'fraction_numerical': 0.0005073566717402334, 'mean_word_length': 2.9919028340080973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6712032', 'n_tokens_mistral': 544, 'n_tokens_neox': 526, 'n_words': 155}