<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

	<title>[% title %]</title>
	<meta name="generator" content="[% generator.name %]">
	<meta name="viewport" content="width=device-width">
	<!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:300&subset=latin,greek,latin-ext' rel='stylesheet' type='text/css'> -->
	<![if !IE]>
	<!-- comment out for IE since it spams the user with warnings -->
	<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
	<script type='text/javascript'>
		$(window).load(function(){$("#navigation").height( $("#content").height()+65 );});
	</script>
	<![endif]>
	<style>
		body, html {
			height:100%;
			font-family:'Open Sans', sans-serif;
			line-height:1.5em;
			font-weight:300;
			background-color:#FAFAFA;
			text-rendering:geometricPrecision;
			margin:0;
			padding:0;
		}
		.wrapper {
			height:100%;
			position:relative;
		}
		#navigation {
			background-color:#F3F3F3;
			display:inline-block;
			border-right:1px solid #EAEAEA;
			padding-right:65px;
			padding-top:65px;
			padding-left:25px;
			position:relative;
			float:left;
			min-height:100%;
		}
		#content {
			float:left;
			display:inline-block;
			position:absolute;
			max-width:960px;
			padding:65px;
		}
		#navigation ul {
			margin-top:0;
			margin-bottom:0;
			padding-left:40px;
		}
		#navigation li {
			list-style-type:none;
		}
		#navigation a {
			text-decoration:none;
			color:gray;
		}
		#navigation strong {
			color:#4E9A06;
			font-weight:400;
		}
		#navigation a:hover {
			text-decoration:underline;
		}
		#content h1:nth-child(1) {
			margin-top:0;
		}
		h1,h2,h3,h4,h5,h6 {
			color:#4E9A06;
			font-weight:300;
		}
		#content a {
			color:#CE5C00;
		}
		#content a {
			text-decoration: none;
		}
		#content a:hover {
			text-decoration: underline;
		}
		#content a:active {
			text-decoration: underline;
		}
		#content strike {
			color: grey;
		}
		#content u {
			text-decoration: none;
			background-color: yellow;
		}
		#content tt {
			color: #2e3436;
		}
		#content pre {
			color: #2e3436;
			margin-left: 20px;
		}
		.backlinks {
			color:gray;
		}
		hr.footnotes {
			width: 20%;
			margin-left: 0;
		}
		@media print{
			#navigation{
				background-color:#FFF;
			}
		}
	</style>
</head>
<body>
	<div class="wrapper">
		<div id="navigation"> [% index() %] </div>
		<div id="content">
		<!--[% FOR page IN pages %]-->
			<h1>[% page.heading %] <a name='[% anchor(page) %]'></a></h1>
      <p>==== <a href="http://pimgeek.github.io">pimgeek</a> 的个人维基站 ====</p>

			[% page.body %]

			<br>
			<span class="backlinks">
			<!--[% FOR link IN page.backlinks %]-->
				[% IF loop.first %]
				<hr class='footnotes'>
				<b>Backlinks:</b>
				[% END %]
				<a href='[% uri(link) %]'>[% link.name %]</a>
				[% IF loop.last %]<br /><br />[% END %]
			<!--[% END %]-->
			</span>

			[% IF not loop.last %]<hr class='pageseparator'/>[% END %]
		<!--[% END %]-->
		</div>
	</div>
</body>
</html>
<commit_msg>修改 zim 官方模板的 html 源码： 1 把 jquery 和 google fonts 的调用改换为国内容易访问的地址；2 在其中增加多说评论框；3 调整代码缩进，把 tab 替换为空格。<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

  <title>[% title %]</title>
  <meta name="generator" content="[% generator.name %]">
  <meta name="viewport" content="width=device-width">
  <!-- <link href='http://fonts.lug.ustc.edu.cn/css?family=Open+Sans:300&subset=latin,greek,latin-ext' rel='stylesheet' type='text/css'> -->
  <![if !IE]>
  <!-- comment out for IE since it spams the user with warnings -->
  <script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js'></script>
  <script type='text/javascript'>
    $(window).load(function(){$("#navigation").height( $("#content").height()+65 );});
  </script>
  <![endif]>
  <style>
    body, html {
      height:100%;
      font-family:'Open Sans', sans-serif;
      line-height:1.5em;
      font-weight:300;
      background-color:#FAFAFA;
      text-rendering:geometricPrecision;
      margin:0;
      padding:0;
    }
    .wrapper {
      height:100%;
      position:relative;
    }
    #navigation {
      background-color:#F3F3F3;
      display:inline-block;
      border-right:1px solid #EAEAEA;
      padding-right:65px;
      padding-top:65px;
      padding-left:25px;
      position:relative;
      float:left;
      min-height:100%;
      max-width:180px
    }
    #content {
      float:left;
      display:inline-block;
      position:absolute;
      max-width:960px;
      padding:65px;
    }
    #navigation ul {
      margin-top:0;
      margin-bottom:0;
      padding-left:40px;
    }
    #navigation li {
      list-style-type:none;
    }
    #navigation a {
      text-decoration:none;
      color:gray;
    }
    #navigation strong {
      color:#4E9A06;
      font-weight:400;
    }
    #navigation a:hover {
      text-decoration:underline;
    }
    #content h1:nth-child(1) {
      margin-top:0;
    }
    h1,h2,h3,h4,h5,h6 {
      color:#4E9A06;
      font-weight:300;
    }
    #content a {
      color:#CE5C00;
    }
    #content a {
      text-decoration: none;
    }
    #content a:hover {
      text-decoration: underline;
    }
    #content a:active {
      text-decoration: underline;
    }
    #content strike {
      color: grey;
    }
    #content u {
      text-decoration: none;
      background-color: yellow;
    }
    #content tt {
      color: #2e3436;
    }
    #content pre {
      color: #2e3436;
      margin-left: 20px;
    }
    .backlinks {
      color:gray;
    }
    hr.footnotes {
      width: 20%;
      margin-left: 0;
    }
    @media print{
      #navigation{
        background-color:#FFF;
      }
    }
  </style>
</head>
<body>
  <div class="wrapper">
    <div id="navigation"> [% index() %] </div>
    <div id="content">
      [% SET site_domain = "http://pimgeek.github.io/zim" %]
      <!--[% FOR page IN pages %]-->
      <h1>[% page.heading %] <a name='[% anchor(page) %]'></a></h1>

      [% page.body %]

      <br>

      <span class="backlinks">
        <!--[% FOR link IN page.backlinks %]-->
        [% IF loop.first %]
        <hr class='footnotes'>
        <b>Backlinks:</b>
        [% END %]
        <a href='[% uri(link) %]'>[% link.name %]</a>
        [% IF loop.last %]<br /><br />[% END %]
        <!--[% END %]-->
      </span>

      [% IF not loop.last %]<hr class='pageseparator'/>[% END %]
      <!--[% END %]-->

      <!-- 多说评论框 start -->
      <div class="ds-thread" data-thread-key='zim/[% page.heading %]' data-title='[% page.heading %]' data-url='[% site_domain %]/[% page.heading %].html'></div>
      <!-- 多说评论框 end -->

      <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
      <script type="text/javascript">
        var duoshuoQuery = {short_name:"pimgeek"};
        (function() {
          var ds = document.createElement('script');
          ds.type = 'text/javascript';ds.async = true;
          ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
          ds.charset = 'UTF-8';
          (document.getElementsByTagName('head')[0] 
          || document.getElementsByTagName('body')[0]).appendChild(ds);
        })();
      </script>
      <!-- 多说公共JS代码 end -->
      
    </div>
  </div>
</body>
</html>

{'fraction_non_alphanumeric': 0.19479670545169303, 'fraction_numerical': 0.02575500065368022, 'mean_word_length': 2.5797847449695834, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6484780', 'n_tokens_mistral': 3245, 'n_tokens_neox': 2932, 'n_words': 498}