<commit_before>/*
**  ComponentJS -- Component System for JavaScript <http://componentjs.com>
**  Copyright (c) 2009-2013 <NAME> <http://engelschall.com>
**
**  This Source Code Form is subject to the terms of the Mozilla Public
**  License, v. 2.0. If a copy of the MPL was not distributed with this
**  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

(function () {

var graph = app.lib.graph()

var sort = function (constraintSet) {
    /*  Set the after relation for rules that are not included in the order yet  */
    var last = graph.addVertex({data: {id: 'first'} })
    var root = last
    var vertices = [ root ]
    for (var i = 0; i < constraintSet.length; i++) {
        var constraint = constraintSet[i]<commit_msg>[Fixes #6] We need a blank graph each time we want to sort constraints<commit_after>/*
**  ComponentJS -- Component System for JavaScript <http://componentjs.com>
**  Copyright (c) 2009-2013 <NAME> <http://engelschall.com>
**
**  This Source Code Form is subject to the terms of the Mozilla Public
**  License, v. 2.0. If a copy of the MPL was not distributed with this
**  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

(function () {

var sort = function (constraintSet) {
    /*  Set the after relation for rules that are not included in the order yet  */
    var graph = app.lib.graph()
    var last = graph.addVertex({data: {id: 'first'} })
    var root = last
    var vertices = [ root ]
    for (var i = 0; i < constraintSet.length; i++) {
        var constraint = constraintSet[i]
{'fraction_non_alphanumeric': 0.12888601036269431, 'fraction_numerical': 0.017487046632124352, 'mean_word_length': 3.12, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '346990', 'n_tokens_mistral': 491, 'n_tokens_neox': 465, 'n_words': 190}