<commit_before><!--
  Created by IntelliJ IDEA.
  User: yong
  Date: 2014. 9. 22.
  Time: 오후 10:57
-->

{{# partial "content" }}

<!-- contents -->
<div class="container-fluid">
    <div class="col-sm-12">

        {{> search/form/qa}}

        <div class="btn-group pull-right">
            <a href="/qa/total/list" class="btn btn-primary">총 질문({{qaTotalCount}})</a>
            <a href="/qa/wait_reply/list" class="btn btn-primary">답변을 기다리는 Q&A({{qaNotReplyedCount}})</a>
            {{#if isLogin}}
                <a href="/my/qa" class="btn btn-primary">내 QA 목록</a>
                <a href="/qa/form" class="btn btn-primary">질문하기</a>
            {{/if}}
        </div>
    </div>

    <div class="col-sm-12 top-buffer">
        <!-- keyword -->
        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
            <div class="nav-tabs-header">분류키워드</div>
            <!-- 분류키워드 list start -->
            <div id="categorizeKeywordListArea"></div>
            <!-- 분류키워드 list end -->
        </div>
        <!--// lnb -->

        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
            <!-- 최근 Q&A -->
            <div class="nav-tabs-header">최근 Q&A
                <span class="pull-right section-category">
                    <ul id="recentQaDayTypeUl" class="nav nav-tabs">
                        <li value="WEEK" data="defalut"><a href="#">Week</a></li>
                        <li value=""><a href="#">Today</a></li>
                    </ul>
                </span>
            </div>
            <!-- 최근 Q&A list start -->
            <div id="recentQaListArea">
                {{> qa/template/_recentList}}
            </div>
            <!-- 최근 Q&A list end -->
            <!--// 최근 Q&A -->

            <div class="top-buffer">&nbsp;</div>
            <!-- 답변을 기다리는 Q&A -->
            <div class="nav-tabs-header">답변을 기다리는 Q&A
                <span class="pull-right section-category">
                    <ul id="waitReplyQaDayTypeUl" class="nav nav-tabs">
                        <li value="ALL" data="defalut"><a href="#">All</a></li>
                        <li value="WEEK"><a href="#">Week</a></li>
                        <li value=""><a href="#">Today</a></li>
                    </ul>
                </span>
            </div>

            <!-- 답변을 기다리는 Q&A list start -->
            <div id="waitReplyQaListArea">
                {{> qa/template/_waitReplyList}}
            </div>
            <!-- 답변을 기다리는 Q&A list end -->

            <!--// 답변을 기다리는 Q&A -->
        </div>

        <div class="col-md-4">
            <!-- BEST Q&A -->
            <div class="nav-tabs-header">BEST Q&A</div>
            {{> qa/template/_qaBest}}
            <!--// BEST Q&A -->
        </div>
    </div>
</div>

{{/partial}}

{{#partial "script-page"}}
{{embedded "common/_keywordList"}}
{{embedded "qa/template/_noData"}}
{{embedded "qa/template/_mainList"}}
    <script src="/resource/app/js/keywordList/keywordList.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            Qa.init();
        });

        var Qa = {
            init : function(){
                KeywordList.renderKeywordList();
                this.renderDayType($('#recentQaDayTypeUl'));
                this.renderDayType($('#waitReplyQaDayTypeUl'));
                this.bindDayTypeEvent();
                this.bindSearch();
            },
            renderRecentQaList : function(dayType){
                var me = this;
                $.ajax({
                    url: "/qa/qaList",
                    type: "POST",
                    data: { keywordType : 'QA', keywordName : KeywordList.selectedKeywordName(), dayType : dayType },
                    success : function(data){
                        if(data.resultCode == 1) {
                            $('#recentQaListArea').html(me.makeQaList(data));
                        }
                    },
                    error : function(req){
                        // Handle upload error
                        alert('req : ' + req);
                        console.log('req : ' + req.status);
                        console.log('req : ' + req.readyState);

                        alert('에러가 발생하였습니다. 에러코드 [' + req.status + ']');
                    }
                });
            },
            renderWaitReplyQaList : function(dayType){
                var me = this;
                $.ajax({
                    url: "/qa/qaList",
                    type: "POST",
                    data : {keywordType : 'QA', keywordName : KeywordList.selectedKeywordName(), waitReply : 'Y', dayType : dayType},
                    success : function(data){
                        if(data.resultCode == 1) {
                            $('#waitReplyQaListArea').html(me.makeQaList(data));
                        }
                    },
                    error : function(req){
                        // Handle upload error
                        alert('req : ' + req);
                        console.log('req : ' + req.status);
                        console.log('req : ' + req.readyState);

                        alert('에러가 발생하였습니다. 에러코드 [' + req.status + ']');
                    }
                });
            },
            makeQaList : function (jsonData) {
                var source;
                if(jsonData.data.length == 0){
                    source = $('#qa-template-_noData-hbs').html();
                } else {
                    source = $('#qa-template-_mainList-hbs').html();
                }
                var template = Handlebars.compile(source);
                var html = template(jsonData);<commit_msg>waitReply => WaitReplyType enum 변경<commit_after><!--
  Created by IntelliJ IDEA.
  User: yong
  Date: 2014. 9. 22.
  Time: 오후 10:57
-->

{{# partial "content" }}

<!-- contents -->
<div class="container-fluid">
    <div class="col-sm-12">

        {{> search/form/qa}}

        <div class="btn-group pull-right">
            <a href="/qa/total/list" class="btn btn-primary">총 질문({{qaTotalCount}})</a>
            <a href="/qa/wait_reply/list" class="btn btn-primary">답변을 기다리는 Q&A({{qaNotReplyedCount}})</a>
            {{#if isLogin}}
                <a href="/my/qa" class="btn btn-primary">내 QA 목록</a>
                <a href="/qa/form" class="btn btn-primary">질문하기</a>
            {{/if}}
        </div>
    </div>

    <div class="col-sm-12 top-buffer">
        <!-- keyword -->
        <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
            <div class="nav-tabs-header">분류키워드</div>
            <!-- 분류키워드 list start -->
            <div id="categorizeKeywordListArea"></div>
            <!-- 분류키워드 list end -->
        </div>
        <!--// lnb -->

        <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
            <!-- 최근 Q&A -->
            <div class="nav-tabs-header">최근 Q&A
                <span class="pull-right section-category">
                    <ul id="recentQaDayTypeUl" class="nav nav-tabs">
                        <li value="WEEK" data="defalut"><a href="#">Week</a></li>
                        <li value=""><a href="#">Today</a></li>
                    </ul>
                </span>
            </div>
            <!-- 최근 Q&A list start -->
            <div id="recentQaListArea">
                {{> qa/template/_recentList}}
            </div>
            <!-- 최근 Q&A list end -->
            <!--// 최근 Q&A -->

            <div class="top-buffer">&nbsp;</div>
            <!-- 답변을 기다리는 Q&A -->
            <div class="nav-tabs-header">답변을 기다리는 Q&A
                <span class="pull-right section-category">
                    <ul id="waitReplyQaDayTypeUl" class="nav nav-tabs">
                        <li value="ALL" data="defalut"><a href="#">All</a></li>
                        <li value="WEEK"><a href="#">Week</a></li>
                        <li value=""><a href="#">Today</a></li>
                    </ul>
                </span>
            </div>

            <!-- 답변을 기다리는 Q&A list start -->
            <div id="waitReplyQaListArea">
                {{> qa/template/_waitReplyList}}
            </div>
            <!-- 답변을 기다리는 Q&A list end -->

            <!--// 답변을 기다리는 Q&A -->
        </div>

        <div class="col-md-4">
            <!-- BEST Q&A -->
            <div class="nav-tabs-header">BEST Q&A</div>
            {{> qa/template/_qaBest}}
            <!--// BEST Q&A -->
        </div>
    </div>
</div>

{{/partial}}

{{#partial "script-page"}}
{{embedded "common/_keywordList"}}
{{embedded "qa/template/_noData"}}
{{embedded "qa/template/_mainList"}}
    <script src="/resource/app/js/keywordList/keywordList.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            Qa.init();
        });

        var Qa = {
            init : function(){
                KeywordList.renderKeywordList();
                this.renderDayType($('#recentQaDayTypeUl'));
                this.renderDayType($('#waitReplyQaDayTypeUl'));
                this.bindDayTypeEvent();
                this.bindSearch();
            },
            renderRecentQaList : function(dayType){
                var me = this;
                $.ajax({
                    url: "/qa/qaList",
                    type: "POST",
                    data: { keywordType : 'QA', keywordName : KeywordList.selectedKeywordName(), dayType : dayType },
                    success : function(data){
                        if(data.resultCode == 1) {
                            $('#recentQaListArea').html(me.makeQaList(data));
                        }
                    },
                    error : function(req){
                        // Handle upload error
                        alert('req : ' + req);
                        console.log('req : ' + req.status);
                        console.log('req : ' + req.readyState);

                        alert('에러가 발생하였습니다. 에러코드 [' + req.status + ']');
                    }
                });
            },
            renderWaitReplyQaList : function(dayType){
                var me = this;
                $.ajax({
                    url: "/qa/qaList",
                    type: "POST",
                    data : {keywordType : 'QA', keywordName : KeywordList.selectedKeywordName(), waitReplyType : 'WAIT, dayType : dayType},
                    success : function(data){
                        if(data.resultCode == 1) {
                            $('#waitReplyQaListArea').html(me.makeQaList(data));
                        }
                    },
                    error : function(req){
                        // Handle upload error
                        alert('req : ' + req);
                        console.log('req : ' + req.status);
                        console.log('req : ' + req.readyState);

                        alert('에러가 발생하였습니다. 에러코드 [' + req.status + ']');
                    }
                });
            },
            makeQaList : function (jsonData) {
                var source;
                if(jsonData.data.length == 0){
                    source = $('#qa-template-_noData-hbs').html();
                } else {
                    source = $('#qa-template-_mainList-hbs').html();
                }
                var template = Handlebars.compile(source);
                var html = template(jsonData);
{'fraction_non_alphanumeric': 0.1657404957219723, 'fraction_numerical': 0.004763164858428155, 'mean_word_length': 1.2183525728820193, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 182, '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': '2481630', 'n_tokens_mistral': 3449, 'n_tokens_neox': 3432, 'n_words': 584}