<commit_before><%@page import="java.io.InputStream"%>
<%@page import="java.util.Properties"%>
<%
/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
%>

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<portlet:defineObjects />

<%
Properties props = new Properties();

InputStream file = this.getClass().getClassLoader().getResourceAsStream("sli.properties");

props.load(file);

String googleId = props.getProperty("dashboard.google_analytics.id");

%>


<script type="text/javascript">
 
var gId = '<%=googleId%>';
var _gaq = _gaq || [];
  _gaq.push(['_setAccount',gId]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script><commit_msg>US214: added domain info to google analytics to support sub-domains<commit_after><%@page import="java.io.InputStream"%>
<%@page import="java.util.Properties"%>
<%
/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
%>

<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<portlet:defineObjects />

<%
Properties props = new Properties();

InputStream file = this.getClass().getClassLoader().getResourceAsStream("sli.properties");

props.load(file);

String googleId = props.getProperty("dashboard.google_analytics.id");
String googleDomain = props.getProperty("sli.domain");

%>


<script type="text/javascript">
 
var gId = '<%=googleId%>';
var gDomain = '<%=googleDomain%>';

var _gaq = _gaq || [];
  _gaq.push(['_setAccount',gId]);
  _gaq.push(['_setDomainName',gDomain]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


</script>
{'fraction_non_alphanumeric': 0.15216713439351418, 'fraction_numerical': 0.0077954474586841285, 'mean_word_length': 4.637961335676626, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7061577', 'n_tokens_mistral': 982, 'n_tokens_neox': 957, 'n_words': 291}