<commit_before>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ec" uri="http://www.extremecomponents.org" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <title>Rule Sets</title>
    <tags:stylesheetLink name="extremecomponents"/>
    <tags:dwrJavascriptLink objects="authorRule"/>
    <style type="text/css">
        .notify-unit.success {
            color: #090;
        }

        .notify-unit.failure {
            color: #900;
        }
    </style>
    <script type="text/javascript">
    
    Event.observe(window, "load", function() {
    


		});
		
		function deployRule(name) {
			try {
				authorRule.deployRuleSet(name, function(values) {
							alert("Successfully Deployed");
					});
			} catch(e) {alert(e)}
		}
		
		function fireRulesNow(mode) {
			try {
				authorRule.fireRules("gov.nih.nci.cabig.caaers.rule.study", mode, function(values) {
							alert("rule fired ");
					});
			} catch(e) {alert(e)}
		}
		
    </script>
</head>
<body>


<c:set var="ecImagePath"><c:url value="/images/table/*.gif"/></c:set>
<ec:table
    items="command.ruleSets"
    var="ruleSet" imagePath="${ecImagePath}"
    showPagination="false"
    cellspacing="0" cellpadding="0" border="0" width="80%"
    style="" styleClass="">
    <ec:row>
        <ec:column property="name" title="Name" sortable="false" filterable="false">
            <a href="<c:url value="/pages/rule/edit?name=${ruleSet.name}"/>">${ruleSet.name}</a>
        </ec:column>
        <ec:column property="description" title="Description" sortable="false" filterable="false">
        </ec:column>
        <ec:column property="status" title="Status" sortable="false" filterable="false">
            <a id="deploy" href="javascript:deployRule('${ruleSet.name}')">Deploy</a>
        </ec:column>
    </ec:row>
</ec:table>


<p>
<commit_msg>removed href to edit ruleset<commit_after>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ec" uri="http://www.extremecomponents.org" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <title>Rule Sets</title>
    <tags:stylesheetLink name="extremecomponents"/>
    <tags:dwrJavascriptLink objects="authorRule"/>
    <style type="text/css">
        .notify-unit.success {
            color: #090;
        }

        .notify-unit.failure {
            color: #900;
        }
    </style>
    <script type="text/javascript">
    
    Event.observe(window, "load", function() {
    


		});
		
		function deployRule(name) {
			try {
				authorRule.deployRuleSet(name, function(values) {
							alert("Successfully Deployed");
					});
			} catch(e) {alert(e)}
		}
		
		function fireRulesNow(mode) {
			try {
				authorRule.fireRules("gov.nih.nci.cabig.caaers.rule.study", mode, function(values) {
							alert("rule fired ");
					});
			} catch(e) {alert(e)}
		}
		
    </script>
</head>
<body>


<c:set var="ecImagePath"><c:url value="/images/table/*.gif"/></c:set>
<ec:table
    items="command.ruleSets"
    var="ruleSet" imagePath="${ecImagePath}"
    showPagination="false"
    cellspacing="0" cellpadding="0" border="0" width="80%"
    style="" styleClass="">
    <ec:row>
        <ec:column property="name" title="Name" sortable="false" filterable="false">
        	<!-- 
            <a href="<c:url value="/pages/rule/edit?name=${ruleSet.name}"/>">${ruleSet.name}</a>
            -->
            <a href="<c:url value="#"/>">${ruleSet.name}</a>
        </ec:column>
        <ec:column property="description" title="Description" sortable="false" filterable="false">
        </ec:column>
        <ec:column property="status" title="Status" sortable="false" filterable="false">
            <a id="deploy" href="javascript:deployRule('${ruleSet.name}')">Deploy</a>
        </ec:column>
    </ec:row>
</ec:table>


<p>

{'fraction_non_alphanumeric': 0.19687906371911573, 'fraction_numerical': 0.005721716514954486, 'mean_word_length': 3.06984126984127, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, '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': '3955392', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1293, 'n_words': 199}