<commit_before>import React from "react"
import styled from "styled-components"
import { Header } from "../Header/Header"
import { RelatedArticlesCanvas } from "../RelatedArticles/RelatedArticlesCanvas"
import { Sections } from "../Sections/Sections"
import { ArticleData } from "../Typings"
import { Nav } from "../Nav/Nav"

export interface ArticleProps {
  article: ArticleData
  headerHeight?: string
  isMobile?: boolean
  isSuper?: boolean
  marginTop?: string
  relatedArticlesForCanvas?: any
  seriesArticle?: any
}

export class FeatureLayout extends React.Component<ArticleProps> {
  render() {
    const {
      article,
      headerHeight,
      isMobile,
      isSuper,
      relatedArticlesForCanvas,
      seriesArticle,
    } = this.props

    return (
      <FeatureLayoutContainer>
        {seriesArticle && (
          <Nav
            canFix={false}
            sponsor={article.sponsor}
            title={seriesArticle.title}
            transparent
          />
        )}
        <Header article={article} height={headerHeight} isMobile={isMobile} /><commit_msg>Limit hero to fullscreen only<commit_after>import React from "react"
import styled from "styled-components"
import { Header } from "../Header/Header"
import { RelatedArticlesCanvas } from "../RelatedArticles/RelatedArticlesCanvas"
import { Sections } from "../Sections/Sections"
import { ArticleData } from "../Typings"
import { Nav } from "../Nav/Nav"

export interface ArticleProps {
  article: ArticleData
  headerHeight?: string
  isMobile?: boolean
  isSuper?: boolean
  marginTop?: string
  relatedArticlesForCanvas?: any
  seriesArticle?: any
}

export class FeatureLayout extends React.Component<ArticleProps> {
  render() {
    const {
      article,
      headerHeight,
      isMobile,
      isSuper,
      relatedArticlesForCanvas,
      seriesArticle,
    } = this.props

    // TODO: Allow more hero types to use series nav
    const hasNav =
      seriesArticle &&
      article.hero_section &&
      article.hero_section.type === "fullscreen"

    return (
      <FeatureLayoutContainer>
        {hasNav && (
          <Nav
            canFix={false}
            sponsor={article.sponsor}
            title={seriesArticle.title}
            transparent
          />
        )}
        <Header article={article} height={headerHeight} isMobile={isMobile} />
{'fraction_non_alphanumeric': 0.1035653650254669, 'fraction_numerical': 0.0, 'mean_word_length': 2.7712, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2136044', 'n_tokens_mistral': 641, 'n_tokens_neox': 618, 'n_words': 161}