<commit_before><%
/*
Copyright (c) 2012, <NAME>
All rights reserved. See License.txt
*/
%>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:javascript library="jquery" />
	</head>
	<body>
	    <form id="safe">
	        <input type="hidden" id="ingredientNodeId">
	    </form>
        <div id="prompts">
            <div class="promptLabel">
                Find foods that pair well with
                <br><div id="example">ex. Chicken, Coriander, Mustard, Onion</div>
            </div>
            <input id="food" />
            <div id="orPart">OR&nbsp;&nbsp;&nbsp;<button id="addPairing">Add Pairing</button>
                             <div id="success"></div>
            </div>
            <div id="searchFeedback" class="ui-state-error"></div>
        </div>



    <div id="pairing-dialog-form" title="Add a pairing" style="clear:both">
        <p class="validateTips"></p>
        <form>
        <fieldset>
            <div class="dialog-left">
                <label for="ingredient1">Ingredient 1</label>
                <input type="text" name="ingredient1" id="ingredient1" class="text ui-widget-content ui-corner-all" />
                <g:select name="category1" from="${categories}" optionKey="key" optionValue="value"/>
            </div>
            <div class="dialog-right">
                <label for="ingredient2">Ingredient 2</label>
                <input type="text" name="ingredient2" id="ingredient2" class="text ui-widget-content ui-corner-all" />
                <g:select name="category2" from="${categories}"  optionKey="key" optionValue="value"/>
            </div>
            <div class="dialog-somewhere">
                <label for="affinity">Affinity</label>
                <g:select name="affinity" from="${affinity}" optionKey="key" optionValue="value"/>
            </div>
        </fieldset>
        </form>
    </div>
    <div id="chart"></div>
    <div id="trios" class="ui-widget-content"></div>
    <div id="latest" class="ui-widget-content">
        <p>Freshly added</p>
        <ul>
        <g:each in="${latest}">
            <g:set var="key" value="${it.substring(0, it.indexOf(':'))}" />
            <g:set var="val" value="${it.substring(it.indexOf(':')+1)}" />
            <li nodeid="${key}"><a href='#'>${val}</a></li>
        </g:each>
        </ul>
    </div>
    <div id="chartOptions">
        <div id="viewExploration">Explore</div>
        <div id="viewInteraction">View Interactions</div>
    </div>

        <script type="text/javascript">
            var autosearchLink = '${createLink(action:'autosearch')}'
            var createLink = '${createLink(action:'create')}'
            var whichView = 'tree'; //'tree' or 'network'
        </script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.layout.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.geom.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'viz.js')}"></script>
	</body>
</html><commit_msg>foods to ingredients<commit_after><%
/*
Copyright (c) 2012, <NAME>
All rights reserved. See License.txt
*/
%>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:javascript library="jquery" />
	</head>
	<body>
	    <form id="safe">
	        <input type="hidden" id="ingredientNodeId">
	    </form>
        <div id="prompts">
            <div class="promptLabel">
                Find ingredients that pair well with
                <br><div id="example">ex. Chicken, Coriander, Mustard, Onion</div>
            </div>
            <input id="food" />
            <div id="orPart">OR&nbsp;&nbsp;&nbsp;<button id="addPairing">Add Pairing</button>
                             <div id="success"></div>
            </div>
            <div id="searchFeedback" class="ui-state-error"></div>
        </div>



    <div id="pairing-dialog-form" title="Add a pairing" style="clear:both">
        <p class="validateTips"></p>
        <form>
        <fieldset>
            <div class="dialog-left">
                <label for="ingredient1">Ingredient 1</label>
                <input type="text" name="ingredient1" id="ingredient1" class="text ui-widget-content ui-corner-all" />
                <g:select name="category1" from="${categories}" optionKey="key" optionValue="value"/>
            </div>
            <div class="dialog-right">
                <label for="ingredient2">Ingredient 2</label>
                <input type="text" name="ingredient2" id="ingredient2" class="text ui-widget-content ui-corner-all" />
                <g:select name="category2" from="${categories}"  optionKey="key" optionValue="value"/>
            </div>
            <div class="dialog-somewhere">
                <label for="affinity">Affinity</label>
                <g:select name="affinity" from="${affinity}" optionKey="key" optionValue="value"/>
            </div>
        </fieldset>
        </form>
    </div>
    <div id="chart"></div>
    <div id="trios" class="ui-widget-content"></div>
    <div id="latest" class="ui-widget-content">
        <p>Freshly added</p>
        <ul>
        <g:each in="${latest}">
            <g:set var="key" value="${it.substring(0, it.indexOf(':'))}" />
            <g:set var="val" value="${it.substring(it.indexOf(':')+1)}" />
            <li nodeid="${key}"><a href='#'>${val}</a></li>
        </g:each>
        </ul>
    </div>
    <div id="chartOptions">
        <div id="viewExploration">Explore</div>
        <div id="viewInteraction">View Interactions</div>
    </div>

        <script type="text/javascript">
            var autosearchLink = '${createLink(action:'autosearch')}'
            var createLink = '${createLink(action:'create')}'
            var whichView = 'tree'; //'tree' or 'network'
        </script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.layout.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'd3.geom.js')}"></script>
        <script type="text/javascript" src="${resource(dir: 'js', file: 'viz.js')}"></script>
	</body>
</html>
{'fraction_non_alphanumeric': 0.19617149185255497, 'fraction_numerical': 0.006011707008384749, 'mean_word_length': 2.43773790103317, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, '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': '2123511', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1953, 'n_words': 383}