<commit_before>React = require 'react'
BS = require 'react-bootstrap'

{CourseStore} = require '../../flux/course'

BookLinks = React.createClass

  PropTypes:
    courseId: React.PropTypes.string

  render: ->
    course = CourseStore.get(@props.courseId)
    return null #unless course?.is_concept_coach
    links = []
    if course.book_pdf_url
      links.push(
        <a key='pdf' target='_blank' href={course.book_pdf_url}>
          Book PDF
        </a>
      )
    if course.webview_url
      links.push(
        <a key='webview' target='_blank' href={course.webview_url}>
          Webview <i className='fa fa-external-link' /><commit_msg>Uncomment mistakenly code<commit_after>React = require 'react'
BS = require 'react-bootstrap'

{CourseStore} = require '../../flux/course'

BookLinks = React.createClass

  PropTypes:
    courseId: React.PropTypes.string

  render: ->
    course = CourseStore.get(@props.courseId)
    return null unless course?.is_concept_coach
    if course.book_pdf_url
      links.push(
        <a key='pdf' target='_blank' href={course.book_pdf_url}>
          Book PDF
        </a>
      )
    if course.webview_url
      links.push(
        <a key='webview' target='_blank' href={course.webview_url}>
          Webview <i className='fa fa-external-link' />
{'fraction_non_alphanumeric': 0.12808641975308643, 'fraction_numerical': 0.0, 'mean_word_length': 2.837278106508876, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '1351297', 'n_tokens_mistral': 416, 'n_tokens_neox': 408, 'n_words': 87}