<commit_before>class AppView extends KDView

  constructor:->

    super

    app = @getData()

    log app

    @followButton = new KDToggleButton
      style           : "kdwhitebtn"
      dataPath        : "followee"
      states          : [
        "Follow", (callback)->
          callback? null
        "Unfollow", (callback)->
          callback? null
      ]
    , app

    @likeButton = new KDToggleButton
      style           : "kdwhitebtn"
      states          : [
        "Like", (callback)->
          app.like (err)->
            callback? err
        "Unlike", (callback)-><commit_msg>Let follow/unfollow works<commit_after>class AppView extends KDView

  constructor:->

    super

    app = @getData()

    log app

    @followButton = new KDToggleButton
      style           : "kdwhitebtn"
      dataPath        : "followee"
      defaultState    : if app.followee then "Unfollow" else "Follow"
      states          : [
        "Follow", (callback)->
          app.follow (err)->
            callback? err
        "Unfollow", (callback)->
          app.unfollow (err)->
            callback? err
      ]
    , app

    @likeButton = new KDToggleButton
      style           : "kdwhitebtn"
      states          : [
        "Like", (callback)->
          app.like (err)->
            callback? err
        "Unlike", (callback)->
{'fraction_non_alphanumeric': 0.10888888888888888, 'fraction_numerical': 0.0, 'mean_word_length': 1.4743589743589745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6273631', 'n_tokens_mistral': 383, 'n_tokens_neox': 368, 'n_words': 94}