<commit_before>form(name="form", novalidate)
    div.control-group(ng-class="{true:'error'}[submitted && form.selectedSuggestion.$invalid && form.knownodeRelation.title.$invalid && form.knownodeRelation.connectionType]")
        // Source Node
        // ... default direction
        div.resourcecontent.span11#content(ng-hide="reversedDirection", ng-show="rootNodeExists",style="padding:0px")
            accordion
                accordion-group(heading="{{concept.title}}", is-open='true')
                    div.knownode-body
                        p.bold(ng-show="concept.url")
                            a(ng-href="{{concept.url}}") {{concept.url}}
                        p.bold(ng-show="concept.wikipediaLinks && !concept.url")
                            a(ng-href="http://en.wikipedia.org/wiki/{{concept.title}}", target="_blank") http://en.wikipedia.org/wiki/{{concept.title}}

                        p(ng-show="concept.fileName") Download:
                            a(class="btn-info",href="/knownodeFiles/:{{concept.fileId}}", target="_blank", ng-show="concept.fileName") &nbsp;{{concept.fileName}}&nbsp;
                        div(ng-bind-html-unsafe="concept.bodyText")

        // ... reversed direction
        div.resourcecontent.span11#content(ng-show="reversedDirection && rootNodeExists")
            p
                search-box.knownode-title.target-resource-search-box(style="width:100%")
                span#content(ng-show="targetResourceTitle != null")
                    {{targetResourceTitle}}
                    button(ng-click="clearOtherResource()") X
                span.help-inline(ng-show="submitted && form.selectedSuggestion.$error.required") you must choose a resource.

        // Connection between Nodes
        div(relation-input)

        // Destination Node
        // ... default direction
        // ....... existing node
        div.resourcecontent.span11#content(ng-hide="reversedDirection", ng-show="rootNodeExists")
            p
                search-box.knownode-title.target-resource-search-box(style="width:100%")
                span#content(ng-show="targetResourceTitle != null")
                    {{targetResourceTitle}}
                    button(ng-click="clearOtherResource()") X
                span.help-inline(ng-show="submitted && form.selectedSuggestion.$error.required") you must choose a resource.

        // ... reversed direction
        div.resourcecontent.span11#content(ng-show="reversedDirection", style="padding:0px")
            accordion
                accordion-group(heading="{{concept.title}}", is-open='true')
                    div.knownode-body
                        p.bold(ng-show="concept.url")
                            a(ng-href="{{concept.url}}") {{concept.url}}
                            p.bold(ng-show="concept.wikipediaLinks && !concept.url")
                                a(ng-href="http://en.wikipedia.org/wiki/{{concept.title}}", target="_blank") http://en.wikipedia.org/wiki/{{concept.title}}
                            p(ng-show="concept.fileName") Download:
                                a(class="btn-info",href="/knownodeFiles/:{{concept.fileId}}", target="_blank", ng-show="concept.fileName") &nbsp;{{concept.fileName}}&nbsp;
                            div(ng-bind-html-unsafe="concept.bodyText")


    // Submit button
        button.btn.btn-primary.btn-large#content(ng-click="submit()", ng-disabled="submitted") Submit
        span(ng-show="submitErrorMessage") {{submitErrorMessage}}<commit_msg>enabled submit button :)<commit_after>form(name="form", novalidate)
    div.control-group(ng-class="{true:'error'}[submitted && form.selectedSuggestion.$invalid && form.knownodeRelation.title.$invalid && form.knownodeRelation.connectionType]")
        // Source Node
        // ... default direction
        div.resourcecontent.span11#content(ng-hide="reversedDirection", ng-show="rootNodeExists",style="padding:0px")
            accordion
                accordion-group(heading="{{concept.title}}", is-open='true')
                    div.knownode-body
                        p.bold(ng-show="concept.url")
                            a(ng-href="{{concept.url}}") {{concept.url}}
                        p.bold(ng-show="concept.wikipediaLinks && !concept.url")
                            a(ng-href="http://en.wikipedia.org/wiki/{{concept.title}}", target="_blank") http://en.wikipedia.org/wiki/{{concept.title}}

                        p(ng-show="concept.fileName") Download:
                            a(class="btn-info",href="/knownodeFiles/:{{concept.fileId}}", target="_blank", ng-show="concept.fileName") &nbsp;{{concept.fileName}}&nbsp;
                        div(ng-bind-html-unsafe="concept.bodyText")

        // ... reversed direction
        div.resourcecontent.span11#content(ng-show="reversedDirection && rootNodeExists")
            p
                search-box.knownode-title.target-resource-search-box(style="width:100%")
                span#content(ng-show="targetResourceTitle != null")
                    {{targetResourceTitle}}
                    button(ng-click="clearOtherResource()") X
                span.help-inline(ng-show="submitted && form.selectedSuggestion.$error.required") you must choose a resource.

        // Connection between Nodes
        div(relation-input)

        // Destination Node
        // ... default direction
        // ....... existing node
        div.resourcecontent.span11#content(ng-hide="reversedDirection", ng-show="rootNodeExists")
            p
                search-box.knownode-title.target-resource-search-box(style="width:100%")
                span#content(ng-show="targetResourceTitle != null")
                    {{targetResourceTitle}}
                    button(ng-click="clearOtherResource()") X
                span.help-inline(ng-show="submitted && form.selectedSuggestion.$error.required") you must choose a resource.

        // ... reversed direction
        div.resourcecontent.span11#content(ng-show="reversedDirection", style="padding:0px")
            accordion
                accordion-group(heading="{{concept.title}}", is-open='true')
                    div.knownode-body
                        p.bold(ng-show="concept.url")
                            a(ng-href="{{concept.url}}") {{concept.url}}
                            p.bold(ng-show="concept.wikipediaLinks && !concept.url")
                                a(ng-href="http://en.wikipedia.org/wiki/{{concept.title}}", target="_blank") http://en.wikipedia.org/wiki/{{concept.title}}
                            p(ng-show="concept.fileName") Download:
                                a(class="btn-info",href="/knownodeFiles/:{{concept.fileId}}", target="_blank", ng-show="concept.fileName") &nbsp;{{concept.fileName}}&nbsp;
                            div(ng-bind-html-unsafe="concept.bodyText")


        button.btn.btn-primary.btn-large#content(ng-click="submit()", ng-disabled="submitted") Submit
        span(ng-show="submitErrorMessage") {{submitErrorMessage}}
{'fraction_non_alphanumeric': 0.15616127200454288, 'fraction_numerical': 0.004542873367404884, 'mean_word_length': 2.1325033348154734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7058338', 'n_tokens_mistral': 1960, 'n_tokens_neox': 1821, 'n_words': 210}