<commit_before><?php
/**
 * 评论模板
 * @author <NAME> <<EMAIL>>
 * @license MIT License
 * @version 2020.02.15
 */

if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
    die();
}
require get_template_directory() . '/pages/page-smilies.php';
if (comments_open()) { ?>
<div class="comments" id="comments">
	<h3 class="title"><?php if(is_single()){_e('文章评论', 'kratos');}else{_e('评论内容', 'kratos');} ?></h3>
	<div class="list">
		<?php wp_list_comments('type=comment&callback=comment_callbacks'); ?>
	</div>
	<div id="commentpage" class="nav text-center my-3">
		<?php previous_comments_link(__('加载更多', 'kratos')); ?>
	</div>
	<div id="respond" class="comment-respond mt-2">
		<?php if (!comments_open()): elseif (get_option('comment_registration') && !is_user_logged_in()): ?>
			<div class="error text-center">
				<?php printf(__('您需要 <a href="%s">登录</a> 之后才可以评论', 'kratos'), wp_login_url(get_permalink())); ?>
			</div>
		<?php else: ?>
		<form id="commentform" name="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
			<div class="comment-from">
				<?php if (!is_user_logged_in()): ?>
				<div class="comment-info mb-3 row">
					<div class="col-md-6 comment-form-author">
						<div class="input-group">
							<div class="input-group-prepend"><commit_msg>fix: misspelled class name<commit_after><?php
/**
 * 评论模板
 * @author <NAME> <<EMAIL>>
 * @license MIT License
 * @version 2020.03.12
 */

if (isset($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) {
    die();
}
require get_template_directory() . '/pages/page-smilies.php';
if (comments_open()) { ?>
<div class="comments" id="comments">
	<h3 class="title"><?php if(is_single()){_e('文章评论', 'kratos');}else{_e('评论内容', 'kratos');} ?></h3>
	<div class="list">
		<?php wp_list_comments('type=comment&callback=comment_callbacks'); ?>
	</div>
	<div id="commentpage" class="nav text-center my-3">
		<?php previous_comments_link(__('加载更多', 'kratos')); ?>
	</div>
	<div id="respond" class="comment-respond mt-2">
		<?php if (!comments_open()): elseif (get_option('comment_registration') && !is_user_logged_in()): ?>
			<div class="error text-center">
				<?php printf(__('您需要 <a href="%s">登录</a> 之后才可以评论', 'kratos'), wp_login_url(get_permalink())); ?>
			</div>
		<?php else: ?>
		<form id="commentform" name="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
			<div class="comment-form">
				<?php if (!is_user_logged_in()): ?>
				<div class="comment-info mb-3 row">
					<div class="col-md-6 comment-form-author">
						<div class="input-group">
							<div class="input-group-prepend">
{'fraction_non_alphanumeric': 0.22635259477364741, 'fraction_numerical': 0.010305483989694516, 'mean_word_length': 5.4714285714285715, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '169306', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1039, 'n_words': 182}