<commit_before>﻿<div style="width: 90%" *ngIf="scriptFile">
    <div class="gutter-container">
        <div><label>Function Url:</label></div>
        <div><pre (click)="highlightText($event)">{{functionInvokeUrl}}</pre></div>
        <div *ngIf="webHookType === 'github'"><label>Github Secret:</label></div>
        <div *ngIf="webHookType === 'github'"><pre (click)="highlightText($event)">{{secrets?.key}}</pre></div>
    </div>

    <div>
        <h2 class="dev-block-header">Code</h2>
        <div class="dev-block-header">
            <button class="custom-button" [class.dirty]="scriptFile.isDirty" (click)="saveScript()" [disabled]="disabled">Save</button>
        </div>
        <div class="gutter-container" style="padding-top: 5px">
            <div class="ace_editor" aceEditor id="editor"
                (onSave)="saveScript()"
                (onContentChanged)="contentChanged($event)"
                [content]="content"
                [fileName]="fileName"
                [height]="600"
                [readOnly]="disabled">
            </div>
        </div>
    </div>

    <div *ngIf="functionInfo" class="gutter-container" style="margin-top:5px">
        <log-streaming [functionInfo]="functionInfo"></log-streaming>
    </div>

    <h2>Run</h2>
    <div class="dev-run-container" *ngIf="functionInfo">
        <div class="dev-run-block" style="margin-right: 10px">
            <div>Input</div>
            <div class="ace_editor" aceEditor
                [content]="functionInfo.test_data"
                fileName="sample.dat"
                (onSave)="saveTestData()"
                (onContentChanged)="testContentChanged($event)"
                [height]="500">
            </div>

            <button
                class="custom-button"
                [class.dirty]="scriptFile.isDirty"
                (click)="runFunction()">
                {{scriptFile.isDirty ? 'Save and run' : 'Run'}}
            </button>
        </div>

        <div class="dev-run-block">
            <div>Output</div>
            <pre class="log-stream">{{runResult}}</pre>
        </div>
    </div>

</div><commit_msg>Rename 'Input' to 'Request body'. Fixes #121<commit_after>﻿<div style="width: 90%" *ngIf="scriptFile">
    <div class="gutter-container">
        <div><label>Function Url:</label></div>
        <div><pre (click)="highlightText($event)">{{functionInvokeUrl}}</pre></div>
        <div *ngIf="webHookType === 'github'"><label>Github Secret:</label></div>
        <div *ngIf="webHookType === 'github'"><pre (click)="highlightText($event)">{{secrets?.key}}</pre></div>
    </div>

    <div>
        <h2 class="dev-block-header">Code</h2>
        <div class="dev-block-header">
            <button class="custom-button" [class.dirty]="scriptFile.isDirty" (click)="saveScript()" [disabled]="disabled">Save</button>
        </div>
        <div class="gutter-container" style="padding-top: 5px">
            <div class="ace_editor" aceEditor id="editor"
                (onSave)="saveScript()"
                (onContentChanged)="contentChanged($event)"
                [content]="content"
                [fileName]="fileName"
                [height]="600"
                [readOnly]="disabled">
            </div>
        </div>
    </div>

    <div *ngIf="functionInfo" class="gutter-container" style="margin-top:5px">
        <log-streaming [functionInfo]="functionInfo"></log-streaming>
    </div>

    <h2>Run</h2>
    <div class="dev-run-container" *ngIf="functionInfo">
        <div class="dev-run-block" style="margin-right: 10px">
            <div>Request body</div>
            <div class="ace_editor" aceEditor
                [content]="functionInfo.test_data"
                fileName="sample.dat"
                (onSave)="saveTestData()"
                (onContentChanged)="testContentChanged($event)"
                [height]="500">
            </div>

            <button
                class="custom-button"
                [class.dirty]="scriptFile.isDirty"
                (click)="runFunction()">
                {{scriptFile.isDirty ? 'Save and run' : 'Run'}}
            </button>
        </div>

        <div class="dev-run-block">
            <div>Output</div>
            <pre class="log-stream">{{runResult}}</pre>
        </div>
    </div>

</div>
{'fraction_non_alphanumeric': 0.18511627906976744, 'fraction_numerical': 0.00813953488372093, 'mean_word_length': 2.216903515332835, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '5393646', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1277, 'n_words': 188}