<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8" session="false"
         pageEncoding="UTF-8" %>
<%@ page import="org.apache.commons.configuration2.Configuration" %>
<%@ page import="org.apache.commons.configuration2.SystemConfiguration" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
  final Configuration configuration = new SystemConfiguration();
  final String defaultTheme = "gcwu-fegc";

  // Conservative default.
  final int defaultMaxRowLimit = 10000;
  final String contentLanguage = request.getHeader("Content-Language");
  final String requestHeaderLang = (contentLanguage == null)
                                   ? "en" : contentLanguage;

  final String staticWebHost =
      configuration.getString("org.opencadc.search.static-web-host",
                              "beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca");
  final String maintenanceWarningURL = "http://" + staticWebHost + "/" + requestHeaderLang
                                       + "/future_maintenance.html";
  String headerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                           + "/_page_header.html?LAST_MOD=$LastChangedDate$";
  String footerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                     + "/_page_footer.html";
  final String bannerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                           + "/_"
                           + (requestHeaderLang.equals("fr") ? "ccda" : "cadc")
                           + "_banner.html";
  final String siteMenuURL = "http://" + staticWebHost + "/"
                             + requestHeaderLang + "/_"
                             + (requestHeaderLang.equals("fr") ? "ccda"
                                                               : "cadc")
                             + "_site_menu.html";
  final String downloadLink = "/" + requestHeaderLang + "/"
                              + (requestHeaderLang.equals("fr")
                                 ? "telecharger" : "download");

  final int maxRowLimit =
      configuration.getInt("org.opencadc.search.max-row-count",
                           defaultMaxRowLimit);
  final boolean showObsCoreTab =
      configuration.getBoolean("org.opencadc.search.obs-core", true);
  final String theme = configuration.getString("cadc.search.theme", null);

  if (theme != null)
  {
    headerURL += "&theme=" + theme;
  }<commit_msg>Story 1972: Consistent system properties.<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8" session="false"
         pageEncoding="UTF-8" %>
<%@ page import="org.apache.commons.configuration2.Configuration" %>
<%@ page import="org.apache.commons.configuration2.SystemConfiguration" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%
  final Configuration configuration = new SystemConfiguration();
  final String defaultTheme = "gcwu-fegc";

  // Conservative default.
  final int defaultMaxRowLimit = 10000;
  final String contentLanguage = request.getHeader("Content-Language");
  final String requestHeaderLang = (contentLanguage == null)
                                   ? "en" : contentLanguage;

  final String staticWebHost =
      configuration.getString("org.opencadc.search.static-web-host",
                              "beta.cadc-ccda.hia-iha.nrc-cnrc.gc.ca");
  final String maintenanceWarningURL = "http://" + staticWebHost + "/" + requestHeaderLang
                                       + "/future_maintenance.html";
  String headerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                           + "/_page_header.html?LAST_MOD=$LastChangedDate$";
  String footerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                     + "/_page_footer.html";
  final String bannerURL = "http://" + staticWebHost + "/" + requestHeaderLang
                           + "/_"
                           + (requestHeaderLang.equals("fr") ? "ccda" : "cadc")
                           + "_banner.html";
  final String siteMenuURL = "http://" + staticWebHost + "/"
                             + requestHeaderLang + "/_"
                             + (requestHeaderLang.equals("fr") ? "ccda"
                                                               : "cadc")
                             + "_site_menu.html";
  final String downloadLink = "/" + requestHeaderLang + "/"
                              + (requestHeaderLang.equals("fr")
                                 ? "telecharger" : "download");

  final int maxRowLimit =
      configuration.getInt("org.opencadc.search.max-row-count",
                           defaultMaxRowLimit);
  final boolean showObsCoreTab =
      configuration.getBoolean("org.opencadc.search.obs-core", true);
  final String theme = configuration.getString("org.opencadc.search.theme", null);

  if (theme != null)
  {
    headerURL += "&theme=" + theme;
  }
{'fraction_non_alphanumeric': 0.13701067615658363, 'fraction_numerical': 0.004349545274812179, 'mean_word_length': 2.049427365883062, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2625476', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1342, 'n_words': 234}