<commit_before>/**
 * @class Answer
 */
function Answer(iZhihu) {
    if ( typeof iZhihu === 'undefined' || !iZhihu) {
        return null;
    }
    iZhihu.Answer = this;

    this._e=null;
    this.ppWidth=0;
    this.ppHeight=400;

  	this.processAnswer=function($a,$pp,bAuthorRear,bAuthorList){
        if(!$a||!$a.length)return;
        if($a.attr('izh_processed')=='1')return;
        var $meta=$a.find('.zm-item-meta')
          , $author=$a.find('.zm-item-answer-author-info')
          , $favo=$a.find('.meta-item[name=favo]')
          , $fold=!$a.has('.zh-summary').length?null:$('<button/>',{
                'class':'down izh-button fold'
              , html:'收起'
              , click:function(){
                    var $vote=$(this).closest('.zm-votebar')
                      , $answer=$vote.is('.goog-scrollfloater-floating')?null:$vote.closest('.entry-body')
                      , $fold=$answer==null?iZhihu.Answer.$Fold:$answer.next('.feed-meta').find('.meta-item[name=collapse]')
                    ;
                    if($fold&&$fold.length){
                        if($answer==null)$answer=$vote.closest('.entry-body');
                        iZhihu.Answer.$Folding=$answer;
                        $fold.get(0).click();
                    }
              	}
            })<commit_msg>Hide Fold if feed is not long piece<commit_after>/**
 * @class Answer
 */
function Answer(iZhihu) {
    if ( typeof iZhihu === 'undefined' || !iZhihu) {
        return null;
    }
    iZhihu.Answer = this;

    this._e=null;
    this.ppWidth=0;
    this.ppHeight=400;

  	this.processAnswer=function($a,$pp,bAuthorRear,bAuthorList){
        if(!$a||!$a.length)return;
        if($a.attr('izh_processed')=='1')return;
        var $meta=$a.find('.zm-item-meta')
          , $author=$a.find('.zm-item-answer-author-info')
          , $favo=$a.find('.meta-item[name=favo]')
          , $fold=!$a.has('.zh-summary > .toggle-expand').length?null:$('<button/>',{
                'class':'down izh-button fold'
              , html:'收起'
              , click:function(){
                    var $vote=$(this).closest('.zm-votebar')
                      , $answer=$vote.is('.goog-scrollfloater-floating')?null:$vote.closest('.entry-body')
                      , $fold=$answer==null?iZhihu.Answer.$Fold:$answer.next('.feed-meta').find('.meta-item[name=collapse]')
                    ;
                    if($fold&&$fold.length){
                        if($answer==null)$answer=$vote.closest('.entry-body');
                        iZhihu.Answer.$Folding=$answer;
                        $fold.get(0).click();
                    }
              	}
            })
{'fraction_non_alphanumeric': 0.19177570093457944, 'fraction_numerical': 0.004485981308411215, 'mean_word_length': 1.8050314465408805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5750736', 'n_tokens_mistral': 906, 'n_tokens_neox': 834, 'n_words': 84}