<commit_before>import {Component, OnInit, Input} from '@angular/core';
import {IDream} from "../shared/models/dream.interface";

@Component({
  selector: 'app-dream-card',
  templateUrl: 'dream-card.component.html',
  styleUrls: ['dream-card.component.css']
})
export class DreamCardComponent implements OnInit {

  @Input('dream')
  dream: IDream;
  constructor() { }

  ngOnInit() {
  }

  addCover() {
    this.dream.currentlyCovered += 10000;
  }

  removeCover() {
    this.dream.currentlyCovered -= 10000;
  }

}<commit_msg>Some top-bottom values for the currently covered changes.<commit_after>import {Component, OnInit, Input} from '@angular/core';
import {IDream} from "../shared/models/dream.interface";

@Component({
  selector: 'app-dream-card',
  templateUrl: 'dream-card.component.html',
  styleUrls: ['dream-card.component.css']
})
export class DreamCardComponent implements OnInit {

  @Input('dream')
  dream: IDream;
  constructor() { }

  ngOnInit() {
  }

  addCover() {
    this.dream.currentlyCovered += 10000;
    if (this.dream.currentlyCovered > this.dream.price) {
      this.dream.currentlyCovered = this.dream.price;
    }
  }

  removeCover() {
    this.dream.currentlyCovered -= 10000;
    if (this.dream.currentlyCovered < 0) {
      this.dream.currentlyCovered = 0;
    }
  }

}
{'fraction_non_alphanumeric': 0.14961832061068703, 'fraction_numerical': 0.016793893129770993, 'mean_word_length': 3.7846715328467155, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '248302', 'n_tokens_mistral': 490, 'n_tokens_neox': 418, 'n_words': 83}