<commit_before><div class="container">
    <top-bar></top-bar>
    <div class="content">
        <sidebar
            [functionsInfo]="functionsInfo"
            [deleteSelectedFunction]="deleteSelectedFunction"
            [addedFunction]="addedFunction"
            (selectedFunction)="onFunctionSelect($event)">
        </sidebar>
        <div class="work-space">
            <div class="loader" *ngIf="initializing"></div>
            <div *ngIf="selectedFunction">
                <div *ngIf="selectedFunction.name !== 'New Function' || !selectedFunction.clientOnly">
                    <function-edit [selectedFunction]="selectedFunction"  (deleteSelectedFunction)="onDeleteSelectedFunction($event)">
                    </function-edit>
                </div>
                <div *ngIf="selectedFunction.clientOnly && selectedFunction.name === 'New Function'">
                    <new-function (functionAdded)="onFunctionAdded($event)"></new-function>
                </div>
            </div>
            <div *ngIf="noContainerFound">It looks like you don't have a functions container. Select a subscription to create one:</div>
            <div class="table-layout" *ngIf="noContainerFound && subscriptions">
                <div class="row">
                    <div class="left"><label>Subscription:</label></div>
                    <drop-down [options]="subscriptions" [placeholder]="subscriptionPickerPlaceholder" (value)="onSubscriptionSelect($event)"></drop-down>
                </div>
                <div class="row">
                    <div class="left"><label>Region:</label></div>
                    <drop-down [options]="geoRegions" [placeholder]="'Select Location'" (value)="onGeoRegionChange($event)"></drop-down>
                </div>
                <div class="row" *ngIf="_serverFarms">
                    <div class="left"><label>Server Farm (optional):</label></div>
                    <drop-down [options]="_serverFarms" [placeholder]="serverFarmPickerPlaceholder" [resetOnChange]="resetServerFarm" (value)="selectedServerFarm = $event"></drop-down>
                </div>
                <div class="row">
                    <div class="left">
                        <button [disabled]="!selectedSubscription || !selectedGeoRegion || initializing" class="custom-button clear-both" (click)="createFunctionsContainer()">Create</button>
                    </div>
                </div>
            </div>
            <div *ngIf="noTenantsFound">It looks like you don't an Azure account. Do you want to create a 24 hour free trial functions container?</div>
            <button [disabled]="initializing" class="custom-button clear-both" (click)="createTrialFunctionsContainer()">Create Trial Functions Container</button>
        </div>
    </div>
</div><commit_msg>hide create button in non create scenarios<commit_after><div class="container">
    <top-bar></top-bar>
    <div class="content">
        <sidebar
            [functionsInfo]="functionsInfo"
            [deleteSelectedFunction]="deleteSelectedFunction"
            [addedFunction]="addedFunction"
            (selectedFunction)="onFunctionSelect($event)">
        </sidebar>
        <div class="work-space">
            <div class="loader" *ngIf="initializing"></div>
            <div *ngIf="selectedFunction">
                <div *ngIf="selectedFunction.name !== 'New Function' || !selectedFunction.clientOnly">
                    <function-edit [selectedFunction]="selectedFunction"  (deleteSelectedFunction)="onDeleteSelectedFunction($event)">
                    </function-edit>
                </div>
                <div *ngIf="selectedFunction.clientOnly && selectedFunction.name === 'New Function'">
                    <new-function (functionAdded)="onFunctionAdded($event)"></new-function>
                </div>
            </div>
            <div *ngIf="noContainerFound">It looks like you don't have a functions container. Select a subscription to create one:</div>
            <div class="table-layout" *ngIf="noContainerFound && subscriptions">
                <div class="row">
                    <div class="left"><label>Subscription:</label></div>
                    <drop-down [options]="subscriptions" [placeholder]="subscriptionPickerPlaceholder" (value)="onSubscriptionSelect($event)"></drop-down>
                </div>
                <div class="row">
                    <div class="left"><label>Region:</label></div>
                    <drop-down [options]="geoRegions" [placeholder]="'Select Location'" (value)="onGeoRegionChange($event)"></drop-down>
                </div>
                <div class="row" *ngIf="_serverFarms">
                    <div class="left"><label>Server Farm (optional):</label></div>
                    <drop-down [options]="_serverFarms" [placeholder]="serverFarmPickerPlaceholder" [resetOnChange]="resetServerFarm" (value)="selectedServerFarm = $event"></drop-down>
                </div>
                <div class="row">
                    <div class="left">
                        <button [disabled]="!selectedSubscription || !selectedGeoRegion || initializing" class="custom-button clear-both" (click)="createFunctionsContainer()">Create</button>
                    </div>
                </div>
            </div>
            <div *ngIf="noTenantsFound">It looks like you don't an Azure account. Do you want to create a 24 hour free trial functions container?</div>
            <button *ngIf="noTenantsFound" [disabled]="initializing" class="custom-button clear-both" (click)="createTrialFunctionsContainer()">Create Trial Functions Container</button>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.14689265536723164, 'fraction_numerical': 0.0007062146892655367, 'mean_word_length': 2.429176755447942, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '6425527', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1392, 'n_words': 278}