<commit_before>import { Component, EventEmitter } from '@angular/core';

import { Client } from '../../../../services/api';

@Component({
  selector: 'minds-banner',
  inputs: ['_object: object', '_src: src', '_top: top', 'overlay', '_editMode: editMode', '_done: done'],
  outputs: ['added'],
  template: `
  <div class="minds-banner" *ngIf="!editing">
    <div class="minds-banner-img mdl-color--blue-grey"
      [ngStyle]="{'background-position': '0 ' + top + 'px', 'background-image': 'url(' + src + ')'}">
    </div>
    <div class="minds-banner-overlay"></div>
  </div>
  <div *ngIf="editing" class="minds-banner minds-banner-editing">
    <img class="mdl-color--blue-grey"
      src="{{src}}"
      [ngStyle]="{'top': top}"
      (dragstart)="dragstart($event)"
      (dragover)="drag($event)"
      (dragend)="dragend($event)"
    § />
    <div class="overlay" [hidden]="file">
      <i class="material-icons">camera</i>
      <span>
        <!-- i18n -->Click here to add a new banner<br>
        <em>Recommended size: 1920&times;360</em><!-- /i18n -->
      </span>
    </div>
    <div class="minds-banner-overlay"></div>

    <button class="add-button mdl-button mdl-button--raised mdl-button--colored material-icons" (click)="onClick($event)">
      <i class="material-icons">file_upload</i>
    </button>

    <div class="save-bar" [hidden]="!file"><commit_msg>(fix): character causing issues in banner editing<commit_after>import { Component, EventEmitter } from '@angular/core';

import { Client } from '../../../../services/api';

@Component({
  selector: 'minds-banner',
  inputs: ['_object: object', '_src: src', '_top: top', 'overlay', '_editMode: editMode', '_done: done'],
  outputs: ['added'],
  template: `
  <div class="minds-banner" *ngIf="!editing">
    <div class="minds-banner-img mdl-color--blue-grey"
      [ngStyle]="{'background-position': '0 ' + top + 'px', 'background-image': 'url(' + src + ')'}">
    </div>
    <div class="minds-banner-overlay"></div>
  </div>
  <div *ngIf="editing" class="minds-banner minds-banner-editing">
    <img class="mdl-color--blue-grey"
      src="{{src}}"
      [ngStyle]="{'top': top}"
      (dragstart)="dragstart($event)"
      (dragover)="drag($event)"
      (dragend)="dragend($event)"
    />
    <div class="overlay" [hidden]="file">
      <i class="material-icons">camera</i>
      <span>
        <!-- i18n -->Click here to add a new banner<br>
        <em>Recommended size: 1920&times;360</em><!-- /i18n -->
      </span>
    </div>
    <div class="minds-banner-overlay"></div>

    <button class="add-button mdl-button mdl-button--raised mdl-button--colored material-icons" (click)="onClick($event)">
      <i class="material-icons">file_upload</i>
    </button>

    <div class="save-bar" [hidden]="!file">
{'fraction_non_alphanumeric': 0.22429906542056074, 'fraction_numerical': 0.008626887131560028, 'mean_word_length': 3.4456869009584663, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '7583417', 'n_tokens_mistral': 987, 'n_tokens_neox': 957, 'n_words': 188}