<commit_before>(function(C2C, $) {

  // show/hide is_avalanche tags depending on selected event_type
  function manage_avalanche_fields() {
    var event_type = $('#event_type').val();

    $('#is_avalanche').hide();

    if (!!event_type && ($.inArray("1", event_type) !== -1)) {
      $('#is_avalanche').show();
    };
  }
  
  // show/hide is_impacted tags depending on nb_impacted
  function manage_impacted_fields() {
    var nb_impacted = $('#nb_impacted').val();

    $('#is_impacted').hide();

    if (!!nb_impacted && nb_impacted > 0) {
      $('#is_impacted').show();
    };
  }

  // if some activities are active, ask the user if it is ok:
  // often outings are multi-activity but the xreports shouldn't
  var xreport_activities_already_tested = false;
  function check_xreport_activities() {
    var activities = $('#activities').val();
<commit_msg>hide author_status field if nb_impacted = 0<commit_after>(function(C2C, $) {

  // show/hide is_avalanche tags depending on selected event_type
  function manage_avalanche_fields() {
    var event_type = $('#event_type').val();

    $('#is_avalanche').hide();

    if (!!event_type && ($.inArray("1", event_type) !== -1)) {
      $('#is_avalanche').show();
    };
  }
  
  // show/hide is_impacted tags depending on nb_impacted
  function manage_impacted_fields() {
    var nb_impacted = $('#nb_impacted').val();

    $('[data-impacted-filter]').hide();

    if (!!nb_impacted && nb_impacted > 0) {
      $('[data-impacted-filter]').show();
    };
  }

  // if some activities are active, ask the user if it is ok:
  // often outings are multi-activity but the xreports shouldn't
  var xreport_activities_already_tested = false;
  function check_xreport_activities() {
    var activities = $('#activities').val();

{'fraction_non_alphanumeric': 0.1625421822272216, 'fraction_numerical': 0.005061867266591676, 'mean_word_length': 3.6692913385826773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2622543', 'n_tokens_mistral': 615, 'n_tokens_neox': 578, 'n_words': 135}