<commit_before><html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="here/main_template/macros/master"
  i18n:domain="bika">
<body>

<metal:content-title fill-slot="content-title">
  <h1 i18n:translate="">Quality Control Reports</h1>
</metal:content-title>

<metal:content-description fill-slot="content-description">
</metal:content-description>

<metal:content-core fill-slot="content-core">

<input tal:replace="structure context/@@authenticator/authenticator"/>

<table>
  <tr>
    <td VALIGN="top">
      <fieldset>
        <legend i18n:translate="">Report</legend>

        <p>
          <a href="#"
             id="analysesoutofrange_selector"
             i18n:translate="">Analyses out of range</a>
          <br/>
          <span i18n:translate="">
            Analysis results out of lab or client specified range
            Note that this may take several minutes
          </span>
        </p>

        <p>
          <a href="#"
             id="analysesrepeated_selector"
             i18n:translate="">Analyses repeated</a>
          <br/>
          <span i18n:translate="">
            Repeated analyses
          </span>
        </p>

        <p>
          <a href="#"
             id="resultspersamplepoint_selector"
             i18n:translate="">Results per sample point</a>
          <br/>
          <span i18n:translate="">
            Results per samplepoint and analysis service
          </span>
        </p>

        <p>
          <a href="#"
             id="referenceanalysisqc_selector"
             i18n:translate="">Reference analysis QC</a>
          <br/>
          <span i18n:translate="">
            Reference analysis quality control graphs
          </span>
        </p>

        <p>
          <a href="#"
             id="duplicateanalysisqc_selector"
             i18n:translate="">Duplicate analysis QC</a>
          <br/>
          <span i18n:translate="">
            Duplicate analysis quality control graphs
          </span>
        </p>
      </fieldset>
    </td>
    <td VALIGN="top">

      <div id="analysesoutofrange" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_analysesoutofrange">
          <input type="hidden" name="report_id" value="qualitycontrol_analysesoutofrange" />
          <fieldset>
            <legend i18n:translate="">Analyses out of range</legend>
            <tal:x content="structure context/@@selection_macros/select_analysisspecification"/>
            <tal:x content="structure python:view.selection_macros.select_daterange(
                                                   field_id='Received',
                                                   field_title='Date Received')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_analysis_workflow',
                                                   field_id='bika_analysis_workflow',
                                                   field_title='Analysis state')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_cancellation_workflow',
                                                   field_id='bika_cancellation_workflow',
                                                   field_title='Cancellation state')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_worksheetanalysis_workflow',
                                                   field_id='bika_worksheetanalysis_workflow',
                                                   field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
          <input tabindex=""
            class="searchButton"
            type="submit"
            name="submit"
            value="Generate report"
            i18n:attributes="value"/>
        </form>
      </div>

      <div id="analysesrepeated" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_analysesrepeated">
          <input type="hidden" name="report_id" value="qualitycontrol_analysesrepeated" />
          <fieldset>
            <legend i18n:translate="">Analyses repeated</legend>
              <tal:x content="structure python:view.selection_macros.select_daterange(
                                                     field_id='Received',
                                                     field_title='Date Received')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_analysis_workflow',
                                                     field_id='bika_analysis_workflow',
                                                     field_title='Analysis state')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_cancellation_workflow',
                                                     field_id='bika_cancellation_workflow',
                                                     field_title='Cancellation state')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_worksheetanalysis_workflow',
                                                     field_id='bika_worksheetanalysis_workflow',
                                                     field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
            <input tabindex=""
              class="searchButton"
              type="submit"
              name="submit"
              value="Generate report"
              i18n:attributes="value"/>
        </form>
      </div>

      <div id="resultspersamplepoint" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_resultspersamplepoint">
          <input type="hidden" name="report_id" value="qualitycontrol_resultspersamplepoint" />
          <fieldset>
            <legend i18n:translate="">Results per sample point</legend>
            <tal:x content="structure context/@@selection_macros/select_client"/>
            <tal:x content="structure python:view.selection_macros.select_samplepoint(
                                             allow_blank=True)"/>
            <tal:x content="structure python:view.selection_macros.select_sampletype(
                                             allow_blank=False)"/>
            <tal:x content="structure python:view.selection_macros.select_analysisservice(
                                             multiselect=True,
                                             allow_blank=False)"/>
            <tal:x content="structure python:view.selection_macros.select_daterange(
                                             field_id='getDateSampled',
                                             field_title='Date Sampled')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                             workflow_id='bika_worksheetanalysis_workflow',
                                             field_id='worksheetanalysis_review_state',
                                             field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
          <input tabindex=""
              class="searchButton"
              type="submit"
              name="submit"
              value="Generate report"
              i18n:attributes="value"/>
        </form>
      </div>

      <div id="referenceanalysisqc" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_referenceanalysisqc">
          <input type="hidden" name="report_id" value="qualitycontrol_referenceanalysisqc" /><commit_msg>SampleType is an optional field in results-per-samplepoint report<commit_after><html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="here/main_template/macros/master"
  i18n:domain="bika">
<body>

<metal:content-title fill-slot="content-title">
  <h1 i18n:translate="">Quality Control Reports</h1>
</metal:content-title>

<metal:content-description fill-slot="content-description">
</metal:content-description>

<metal:content-core fill-slot="content-core">

<input tal:replace="structure context/@@authenticator/authenticator"/>

<table>
  <tr>
    <td VALIGN="top">
      <fieldset>
        <legend i18n:translate="">Report</legend>

        <p>
          <a href="#"
             id="analysesoutofrange_selector"
             i18n:translate="">Analyses out of range</a>
          <br/>
          <span i18n:translate="">
            Analysis results out of lab or client specified range
            Note that this may take several minutes
          </span>
        </p>

        <p>
          <a href="#"
             id="analysesrepeated_selector"
             i18n:translate="">Analyses repeated</a>
          <br/>
          <span i18n:translate="">
            Repeated analyses
          </span>
        </p>

        <p>
          <a href="#"
             id="resultspersamplepoint_selector"
             i18n:translate="">Results per sample point</a>
          <br/>
          <span i18n:translate="">
            Results per samplepoint and analysis service
          </span>
        </p>

        <p>
          <a href="#"
             id="referenceanalysisqc_selector"
             i18n:translate="">Reference analysis QC</a>
          <br/>
          <span i18n:translate="">
            Reference analysis quality control graphs
          </span>
        </p>

        <p>
          <a href="#"
             id="duplicateanalysisqc_selector"
             i18n:translate="">Duplicate analysis QC</a>
          <br/>
          <span i18n:translate="">
            Duplicate analysis quality control graphs
          </span>
        </p>
      </fieldset>
    </td>
    <td VALIGN="top">

      <div id="analysesoutofrange" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_analysesoutofrange">
          <input type="hidden" name="report_id" value="qualitycontrol_analysesoutofrange" />
          <fieldset>
            <legend i18n:translate="">Analyses out of range</legend>
            <tal:x content="structure context/@@selection_macros/select_analysisspecification"/>
            <tal:x content="structure python:view.selection_macros.select_daterange(
                                                   field_id='Received',
                                                   field_title='Date Received')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_analysis_workflow',
                                                   field_id='bika_analysis_workflow',
                                                   field_title='Analysis state')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_cancellation_workflow',
                                                   field_id='bika_cancellation_workflow',
                                                   field_title='Cancellation state')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                                   workflow_id='bika_worksheetanalysis_workflow',
                                                   field_id='bika_worksheetanalysis_workflow',
                                                   field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
          <input tabindex=""
            class="searchButton"
            type="submit"
            name="submit"
            value="Generate report"
            i18n:attributes="value"/>
        </form>
      </div>

      <div id="analysesrepeated" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_analysesrepeated">
          <input type="hidden" name="report_id" value="qualitycontrol_analysesrepeated" />
          <fieldset>
            <legend i18n:translate="">Analyses repeated</legend>
              <tal:x content="structure python:view.selection_macros.select_daterange(
                                                     field_id='Received',
                                                     field_title='Date Received')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_analysis_workflow',
                                                     field_id='bika_analysis_workflow',
                                                     field_title='Analysis state')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_cancellation_workflow',
                                                     field_id='bika_cancellation_workflow',
                                                     field_title='Cancellation state')"/>
              <tal:x content="structure python:view.selection_macros.select_state(
                                                     workflow_id='bika_worksheetanalysis_workflow',
                                                     field_id='bika_worksheetanalysis_workflow',
                                                     field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
            <input tabindex=""
              class="searchButton"
              type="submit"
              name="submit"
              value="Generate report"
              i18n:attributes="value"/>
        </form>
      </div>

      <div id="resultspersamplepoint" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_resultspersamplepoint">
          <input type="hidden" name="report_id" value="qualitycontrol_resultspersamplepoint" />
          <fieldset>
            <legend i18n:translate="">Results per sample point</legend>
            <tal:x content="structure context/@@selection_macros/select_client"/>
            <tal:x content="structure python:view.selection_macros.select_samplepoint(
                                             allow_blank=True)"/>
            <tal:x content="structure python:view.selection_macros.select_sampletype(
                                             allow_blank=True)"/>
            <tal:x content="structure python:view.selection_macros.select_analysisservice(
                                             multiselect=True,
                                             allow_blank=False)"/>
            <tal:x content="structure python:view.selection_macros.select_daterange(
                                             field_id='getDateSampled',
                                             field_title='Date Sampled')"/>
            <tal:x content="structure python:view.selection_macros.select_state(
                                             workflow_id='bika_worksheetanalysis_workflow',
                                             field_id='worksheetanalysis_review_state',
                                             field_title='Worksheet state')"/>
            <tal:x content="structure context/@@selection_macros/select_output_format"/>
          </fieldset>
          <input tabindex=""
              class="searchButton"
              type="submit"
              name="submit"
              value="Generate report"
              i18n:attributes="value"/>
        </form>
      </div>

      <div id="referenceanalysisqc" style="display:none" class="criteria">
        <form action="createreport" method="post" name="qualitycontrol_referenceanalysisqc">
          <input type="hidden" name="report_id" value="qualitycontrol_referenceanalysisqc" />
{'fraction_non_alphanumeric': 0.10609200165768752, 'fraction_numerical': 0.005801906340654786, 'mean_word_length': 1.5979698554290986, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 213, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 14}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 124, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6955887', 'n_tokens_mistral': 4102, 'n_tokens_neox': 3892, 'n_words': 649}