<commit_before>.flow-widget
  h3.flow-hint
    i.fa.fa-cube
    | Model

  // ko with:output

  .flow-margin-after
    table.flow-form
      tbody
        tr
          th.flow-narrow Model ID:
          td.flow-wide(data-bind='text:key.name')
        tr
          th.flow-narrow Algorithm:
          td.flow-wide(data-bind='text:algo')
        tr 
          th(width='1') Actions:
          td
            button.flow-button(type='button' data-bind="click:$parent.toggleRefresh, css:{ 'flow-button-toggle':$parent.isLive }")
              // ko if:$parent.isLive
              i.fa.fa-refresh.fa-spin
              | Stop
              // /ko
              // ko ifnot:$parent.isLive
              i.fa.fa-refresh
              | Refresh
              // /ko

            +button('Predict&hellip;', 'bolt', 'predict')
            //- +button('Clone this model&hellip;', 'copy', 'cloneModel')
            +button('Download POJO', 'download', 'downloadPojo')
            +button('Download Model Deployment Package', 'download', 'downloadMojo')
            +button('Export', 'save', 'exportModel')
            +button('Inspect', 'list', 'inspect')
            +button('Delete', 'trash-o', 'deleteModel')
            +button('Download Gen Model', 'download', 'downloadGenJar')
      
  h4(data-bind='collapse:true') Model Parameters
  div(data-bind="css:{ 'flow-unhide':isExpanded }")
    .flow-right.flow-margin-after 
      // ko ifnot:isExpanded
      +button('Show all parameters', 'angle-double-down', 'toggle')
      // /ko
      // ko if:isExpanded
      +button('Show modified parameters', 'angle-double-up', 'toggle')
      // /ko
    table.flow-form.flow-form-ruled
      thead
        tr
          th Parameter
          th Value
          th Description
      tbody
        // ko foreach:inputParameters
        tr(data-bind="css:{ 'flow-hide':isModified }")
          th(data-bind='text:label')
          td(data-bind='text:value')
          td(data-bind='text:help')
        // /ko

  
  // ko foreach:plots
  h4(data-bind='text:title, collapse:isCollapsed')
  div
    table(style='margin:10px 0 20px 0')
      tbody
        tr
          td(style='vertical-align:top')
            div
              .flow-plot(data-bind='raw:plot')
            // ko with:controls
            div
              table
                tbody
                  tr
                    td.flow-monospace-label Threshold:
                    td.flow-monospace-label Criterion:
                  tr
                    td
                      select(data-bind="options:thresholds, optionsText:'value', value:threshold, optionsCaption: 'Choose...'")
                    td
                      select(data-bind="options:criteria, optionsText:'value', value:criterion, optionsCaption: 'Choose...'")
            // /ko

          // ko if:frame
          td(style='vertical-align:top; padding-left:20px')
            div
              .flow-monospace-label Selected mark(s):
            .flow-plot(data-bind='raw:frame')
          // /ko
  // /ko

  h4(data-bind='collapse:false') Preview POJO
  div
    // ko ifnot:isPojoLoaded
    +button('Preview POJO', 'code', 'previewPojo')
    // /ko
    // ko if:isPojoLoaded
    div(data-bind='html:pojoPreview')
    // /ko

  // /ko
<commit_msg>Minor change to MOJO download button label.<commit_after>.flow-widget
  h3.flow-hint
    i.fa.fa-cube
    | Model

  // ko with:output

  .flow-margin-after
    table.flow-form
      tbody
        tr
          th.flow-narrow Model ID:
          td.flow-wide(data-bind='text:key.name')
        tr
          th.flow-narrow Algorithm:
          td.flow-wide(data-bind='text:algo')
        tr 
          th(width='1') Actions:
          td
            button.flow-button(type='button' data-bind="click:$parent.toggleRefresh, css:{ 'flow-button-toggle':$parent.isLive }")
              // ko if:$parent.isLive
              i.fa.fa-refresh.fa-spin
              | Stop
              // /ko
              // ko ifnot:$parent.isLive
              i.fa.fa-refresh
              | Refresh
              // /ko

            +button('Predict&hellip;', 'bolt', 'predict')
            //- +button('Clone this model&hellip;', 'copy', 'cloneModel')
            +button('Download POJO', 'download', 'downloadPojo')
            +button('Download Model Deployment Package (MOJO)', 'download', 'downloadMojo')
            +button('Export', 'save', 'exportModel')
            +button('Inspect', 'list', 'inspect')
            +button('Delete', 'trash-o', 'deleteModel')
            +button('Download Gen Model', 'download', 'downloadGenJar')
      
  h4(data-bind='collapse:true') Model Parameters
  div(data-bind="css:{ 'flow-unhide':isExpanded }")
    .flow-right.flow-margin-after 
      // ko ifnot:isExpanded
      +button('Show all parameters', 'angle-double-down', 'toggle')
      // /ko
      // ko if:isExpanded
      +button('Show modified parameters', 'angle-double-up', 'toggle')
      // /ko
    table.flow-form.flow-form-ruled
      thead
        tr
          th Parameter
          th Value
          th Description
      tbody
        // ko foreach:inputParameters
        tr(data-bind="css:{ 'flow-hide':isModified }")
          th(data-bind='text:label')
          td(data-bind='text:value')
          td(data-bind='text:help')
        // /ko

  
  // ko foreach:plots
  h4(data-bind='text:title, collapse:isCollapsed')
  div
    table(style='margin:10px 0 20px 0')
      tbody
        tr
          td(style='vertical-align:top')
            div
              .flow-plot(data-bind='raw:plot')
            // ko with:controls
            div
              table
                tbody
                  tr
                    td.flow-monospace-label Threshold:
                    td.flow-monospace-label Criterion:
                  tr
                    td
                      select(data-bind="options:thresholds, optionsText:'value', value:threshold, optionsCaption: 'Choose...'")
                    td
                      select(data-bind="options:criteria, optionsText:'value', value:criterion, optionsCaption: 'Choose...'")
            // /ko

          // ko if:frame
          td(style='vertical-align:top; padding-left:20px')
            div
              .flow-monospace-label Selected mark(s):
            .flow-plot(data-bind='raw:frame')
          // /ko
  // /ko

  h4(data-bind='collapse:false') Preview POJO
  div
    // ko ifnot:isPojoLoaded
    +button('Preview POJO', 'code', 'previewPojo')
    // /ko
    // ko if:isPojoLoaded
    div(data-bind='html:pojoPreview')
    // /ko

  // /ko

{'fraction_non_alphanumeric': 0.1423795775717976, 'fraction_numerical': 0.003950767360583498, 'mean_word_length': 1.6508256141763995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5091424', 'n_tokens_mistral': 2010, 'n_tokens_neox': 1923, 'n_words': 353}