<commit_before><script id="srcData" type="text/x-data">
  <%= @src_data %>
</script>

<%= render(partial: 'assessments/edx_data', object: @edx_verticals) if @edx_verticals.present? -%>
<%= render(partial: 'assessments/edx_data', object: @edx_problems) if @edx_problems.present? -%>

<script type="text/javascript">
  window.DEFAULT_SETTINGS = {
    apiUrl: '<%= application_base_url %>',
    srcUrl: '<%= @src_url %>',
    style: '<%= params[:style] %>',
    assessmentId: <%= @assessment_id %>,
    <% if @external_user_id %>
    externalUserId: <%= @external_user_id  %>,
    <% end %>
    <% if @keywords %>
    keywords: '<%= @keywords %>',
    <% end %>
    resultsEndPoint: '<%= @results_end_point || "http://#{request.host_with_port}/api" %>',
    confidenceLevels: <%= @confidence_levels %>,
    enableStart: <%= @enable_start %>,
    <% if @eid %>
    eId: '<%= @eid %>',
    <% end %>
    offline: <%= @src_data.present? %>
  };
</script>
<commit_msg>Pass outcome url to client<commit_after><script id="srcData" type="text/x-data">
  <%= @src_data %>
</script>

<%= render(partial: 'assessments/edx_data', object: @edx_verticals) if @edx_verticals.present? -%>
<%= render(partial: 'assessments/edx_data', object: @edx_problems) if @edx_problems.present? -%>

<script type="text/javascript">
  window.DEFAULT_SETTINGS = {
    apiUrl: '<%= application_base_url %>',
    srcUrl: '<%= @src_url %>',
    style: '<%= params[:style] %>',
    assessmentId: <%= @assessment_id %>,
    <% if @external_user_id %>
    externalUserId: <%= @external_user_id  %>,
    <% end %>
    <% if @keywords %>
    keywords: '<%= @keywords %>',
    <% end %>
    resultsEndPoint: '<%= @results_end_point || "http://#{request.host_with_port}/api" %>',
    confidenceLevels: <%= @confidence_levels %>,
    enableStart: <%= @enable_start %>,
    <% if @eid %>
    eId: '<%= @eid %>',
    <% end %>
    offline: <%= @src_data.present? %>,
    lis_outcome_service_url: : '<%= params[:lis_outcome_service_url] %>'
  };
</script>

{'fraction_non_alphanumeric': 0.218516674962668, 'fraction_numerical': 0.0, 'mean_word_length': 4.075757575757576, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 52, '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': '6533406', 'n_tokens_mistral': 799, 'n_tokens_neox': 724, 'n_words': 112}