<commit_before>class TeamworkShareModal extends KDModalView

  constructor: (options = {}, data) ->

    options.cssClass = "tw-modal tw-share-modal"
    options.title    = "Lorem ipsum dolor title"
    options.overlay  = yes
    options.width    = 655

    super options, data

    KD.getSingleton("appManager").require "Activity", =>
      inputWidget = new ActivityInputWidget
      inputWidget.once "viewAppended", =>
        inputWidget.input.setContent """
          <div class="join">Would you like to join my Teamwork session?</div>
          <div class="url">#{location.origin}/Teamwork?sessionKey=#{@getDelegate().sessionKey}</div>
        """

      @addSubView inputWidget

      inputWidget.on "ActivitySubmitted", => @destroy()

      @addSubView new KDCustomHTMLView
        cssClass : "tw-share-warning"
        partial  : """
          <span class="warning"></span>
          <p>PS: Be warned, this kind of sharing is gonna make your project kinda public so keep that in mind, be caraful, haters gonna hate.</p>
        """<commit_msg>Teamwork: Added loading to share modal.<commit_after>class TeamworkShareModal extends KDModalView

  constructor: (options = {}, data) ->

    options.cssClass = "tw-modal tw-share-modal"
    options.title    = "Lorem ipsum dolor title"
    options.overlay  = yes
    options.width    = 655

    super options, data

    @addSubView loader = new KDLoaderView
      cssClass   : "tw-share-loading"
      showLoader : yes
      size       :
        width    : 30

    KD.getSingleton("appManager").require "Activity", =>
      inputWidget = new ActivityInputWidget
      inputWidget.once "viewAppended", =>
        inputWidget.input.setContent """
          <div class="join">Would you like to join my Teamwork session?</div>
          <div class="url">#{location.origin}/Teamwork?sessionKey=#{@getDelegate().sessionKey}</div>
        """
        loader.destroy()

      @addSubView inputWidget

      inputWidget.on "ActivitySubmitted", => @destroy()

      @addSubView new KDCustomHTMLView
        cssClass : "tw-share-warning"
        partial  : """
          <span class="warning"></span>
          <p>PS: Be warned, this kind of sharing is gonna make your project kinda public so keep that in mind, be caraful, haters gonna hate.</p>
        """
{'fraction_non_alphanumeric': 0.11608695652173913, 'fraction_numerical': 0.0034782608695652175, 'mean_word_length': 2.7414634146341466, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2882480', 'n_tokens_mistral': 661, 'n_tokens_neox': 633, 'n_words': 177}