<commit_before><% title 'Chat', @product.name %>
<% activate_nav! :chat %>
<% @disable_footer = true %>

<div class="modal fade"
     id="create-task"
     tabindex="-1"
     role="dialog"
     aria-labelledby="createTask"
     aria-hidden="true">
</div>

<style>
.page {
  padding-bottom: 0;
}
.chat-wrapper > .row {
  position: absolute;
  top: 0;
}
.chat-wrapper > .row > .col-md-9 {
  padding-right: 0;
}
.chat-wrapper > .row > .col-md-3 {
  padding-left: 0;
}
</style>

<script>
  var resizeChatView = function resizeChatView() {
    var offsetTop = $('.chat-wrapper').offset().top,
        windowHeight = $(window).innerHeight(),
        wrapperHeight = windowHeight - offsetTop;

    $('.chat-wrapper').css({height: wrapperHeight});

    var chatActionsHeight = $('.js-chat-actions').outerHeight();

    $('.js-chat,.js-members').css({height: (wrapperHeight - chatActionsHeight)});
  }

  $(window).resize(resizeChatView)
  $(document).ready(resizeChatView)
</script>

<div class="chat-wrapper">

  <div class="row">
    <div class="col-md-9" style="position:relative">

      <div class="chat js-chat" style="width:100%">
        <center>
          <a class="btn btn-default btn-block btn-sm js-chat-load-more" href="<%= product_chat_path(@product, format: 'json') %>" style="margin-top: 36px;">Load more</a>
          <br>
        </center>

        <div class="timeline chat-timeline js-activity-stream"></div>
      </div>

    </div>
    <div class="col-md-3 hidden-xs hidden-sm" style="overflow:hidden">
      <div class="js-members"></div>
    </div>
  </div>


  <div class="chat-actions js-chat-actions">
    <%= render 'discussions/chat_box' %>
  </div>
</div>



<script>
  app.product = new Product(<%= json @product, scope: current_user %>);

  $(document).ready(function() {
    var activityStream = new ActivityStream(<%=
      json @activity_stream.map {|a, _|<commit_msg>Fix chat sizing for new projects.<commit_after><% title 'Chat', @product.name %>
<% activate_nav! :chat %>
<% @disable_footer = true %>

<div class="modal fade"
     id="create-task"
     tabindex="-1"
     role="dialog"
     aria-labelledby="createTask"
     aria-hidden="true">
</div>

<style>
.page {
  padding-bottom: 0;
}
.chat-wrapper > .row {
  position: absolute;
  top: 0;
}
.chat-wrapper > .row > .col-md-9 {
  padding-right: 0;
}
.chat-wrapper > .row > .col-md-3 {
  padding-left: 0;
}
</style>

<script>
  var resizeChatView = function resizeChatView() {
    var offsetTop = $('.chat-wrapper').offset().top,
        windowHeight = $(window).innerHeight(),
        wrapperHeight = windowHeight - offsetTop;

    $('.chat-wrapper').css({height: wrapperHeight});

    var chatActionsHeight = $('.js-chat-actions').outerHeight();

    $('.js-chat,.js-members').css({height: (wrapperHeight - chatActionsHeight)});
  }

  $(window).resize(resizeChatView)
  $(document).ready(resizeChatView)
</script>

<div class="chat-wrapper">

  <div class="row" style="position:relative">
    <div class="col-md-9">

      <div class="chat js-chat" style="width:100%">
        <center>
          <a class="btn btn-default btn-block btn-sm js-chat-load-more" href="<%= product_chat_path(@product, format: 'json') %>" style="margin-top: 36px;">Load more</a>
          <br>
        </center>

        <div class="timeline chat-timeline js-activity-stream"></div>
      </div>

    </div>
    <div class="col-md-3 hidden-xs hidden-sm" style="overflow:hidden">
      <div class="js-members"></div>
    </div>
  </div>


  <div class="chat-actions js-chat-actions">
    <%= render 'discussions/chat_box' %>
  </div>
</div>



<script>
  app.product = new Product(<%= json @product, scope: current_user %>);

  $(document).ready(function() {
    var activityStream = new ActivityStream(<%=
      json @activity_stream.map {|a, _|
{'fraction_non_alphanumeric': 0.19291338582677164, 'fraction_numerical': 0.007349081364829396, 'mean_word_length': 3.267637178051512, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6788497', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1263, 'n_words': 259}