<commit_before>window.c.AdminProjectDetailsCard = (function(m, h){
  return {
    view: function(ctrl, args) {
      var project = args.resource,
          remainingTime = h.splitRemaningTime(project.expires_at),
          progress = project.progress.toFixed(2);

      return m('.card.u-radius.card-terciary.u-marginbottom-20', [
        m('div', [
          m('.fontsize-small.fontweight-semibold', [
            m('span.fontcolor-secondary', 'Status:'),' ',m('span.text-success', project.state.toUpperCase()),' '
          ]),
          (function(){
            if (project.state !== 'rejected') {
              return [
                m('.meter.u-margintop-20.u-marginbottom-10', [
                  m('.meter-fill', {style: {width: (progress > 100 ? 100 : progress) + '%'}})
                ]),
                m('.w-row', [
                  m('.w-col.w-col-3.w-col-small-3.w-col-tiny-6', [<commit_msg>only show project status on card when project is published<commit_after>window.c.AdminProjectDetailsCard = (function(m, h){
  return {
    view: function(ctrl, args) {
      var project = args.resource,
          remainingTime = h.splitRemaningTime(project.expires_at),
          progress = project.progress.toFixed(2);

      return m('.card.u-radius.card-terciary.u-marginbottom-20', [
        m('div', [
          m('.fontsize-small.fontweight-semibold', [
            m('span.fontcolor-secondary', 'Status:'),' ',m('span.text-success', project.state.toUpperCase()),' '
          ]),
          (function(){
            if (project.is_published) {
              return [
                m('.meter.u-margintop-20.u-marginbottom-10', [
                  m('.meter-fill', {style: {width: (progress > 100 ? 100 : progress) + '%'}})
                ]),
                m('.w-row', [
                  m('.w-col.w-col-3.w-col-small-3.w-col-tiny-6', [
{'fraction_non_alphanumeric': 0.17628032345013478, 'fraction_numerical': 0.01725067385444744, 'mean_word_length': 1.9743589743589745, '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': '7302345', 'n_tokens_mistral': 614, 'n_tokens_neox': 576, 'n_words': 82}