<commit_before># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$("textarea").keyup ->
  if $("#tweet_tipe").is(":checked")
    count = 140
  else
    count = 99
  length = count - $(this).val().length
  if length <= 0 and $("#count").attr("class") is "text-success"
    $("#count").toggleClass "text-success text-danger"
    $(".subm").prop "disabled", true
  else if length >= 0 and $("#count").attr("class") is "text-danger"
    $("#count").toggleClass "text-danger text-success"
    $(".subm").prop "disabled", false
  $("#count").text length
  return
<commit_msg>Fix coffeescript keyup<commit_after># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
jQuery ->
  $("textarea").keyup ->
    if $("#tweet_tipe").is(":checked")
      count = 140
    else
      count = 99
    length = count - $(this).val().length
    if length <= 0 and $("#count").attr("class") is "text-success"
      $("#count").toggleClass "text-success text-danger"
      $(".subm").prop "disabled", true
    else if length >= 0 and $("#count").attr("class") is "text-danger"
      $("#count").toggleClass "text-danger text-success"
      $(".subm").prop "disabled", false
    $("#count").text length
    return

{'fraction_non_alphanumeric': 0.16987392169873922, 'fraction_numerical': 0.0092899800928998, 'mean_word_length': 3.625766871165644, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 8, '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': '4425212', 'n_tokens_mistral': 452, 'n_tokens_neox': 436, 'n_words': 145}