<commit_before><template>
  <div>
    <common-header></common-header>
    <iframe v-show="showIframe" :src="link" width="100%" height="100%"></iframe>
    <img v-show="showImage" :src="link" width="100%" height="100%"/>
  </div>
</template>

<script>
import commonHeader from '../../components/CommonHeader'
export default {
  data () {
    return {
      link: '',
      showIframe: false,
      showImage: false,
      type: ''
    }
  },
  components: {
    commonHeader
  },
  created () {
    this.link = this.$route.query.link
    this.type = this.$route.query.type.toLowerCase()
    if (this.type === 'png' || this.type === 'jpg') {
      this.showImage = true
      this.showIframe = false
    } else if (this.type === 'pdf' || this.type === 'doc' || this.type === 'docx' || this.type === 'ppt' || this.type === 'pptx') {
      // http://ow365.cn/?i=15062&del=1&furl=http://files.jxueyuan.com/company-34/course/abcd.pdf
      this.link = this.link.replace('http://dev-env.oss-cn-beijing.aliyuncs.com/', 'http://files.jxueyuan.com/')
        .replace('http://prod-env.oss-cn-beijing.aliyuncs.com/', 'http://files.jxueyuan.com/')
      this.link = 'http://ow365.cn/?i=15062&del=1&furl=' + this.link
      this.showIframe = true
      this.showImage = false
    } else {
      this.showIframe = false<commit_msg>test push<commit_after><template>
  <div>
    <common-header></common-header>
    <iframe v-show="showIframe" :src="link" width="100%" height="100%"></iframe>
    <img v-show="showImage" :src="link" width="100%" height="100%"/>
  </div>
</template>

<script>
import commonHeader from '../../components/CommonHeader'
export default {
  data () {
    return {
      link: '',
      showIframe: false,
      showImage: false,
      type: ''
    }
  },
  components: {
    commonHeader
  },
  created () {
    this.link = this.$route.query.link
    this.type = this.$route.query.type.toLowerCase()
    if (this.type === 'png' || this.type === 'jpg') {
      this.showImage = true
      this.showIframe = false
    } else if (this.type === 'pdf' || this.type === 'doc' || this.type === 'docx' || this.type === 'ppt' || this.type === 'pptx') {
      // http://ow365.cn/?i=15062&del=1&furl=http://files.jxueyuan.com/company-34/course/abcd.pdf
      this.link = this.link.replace('http://dev-env.oss-cn-beijing.aliyuncs.com/', 'http://files.jxueyuan.com/')
        .replace('http://prod-env.oss-cn-beijing.aliyuncs.com/', 'http://files.jxueyuan.com/')
      this.link = 'http://ow365.cn/?i=15062&del=1&furl=' + this.link
      // comments
      this.showIframe = true
      this.showImage = false
    } else {
      this.showIframe = false
{'fraction_non_alphanumeric': 0.20770392749244712, 'fraction_numerical': 0.02416918429003021, 'mean_word_length': 2.8060344827586206, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2393611', 'n_tokens_mistral': 1002, 'n_tokens_neox': 955, 'n_words': 149}