<commit_before>import config from '../config'

export default class City {
  constructor (name) {
    this.name = name || 'City'
    this.demand = config.cityInitialDemand
    this.turnips = config.cityInitialTurnips
  }
  getName () {
    return this.name
  }
  getDemand () {
    return this.demand
  }
  getTurnips () {
    return this.turnips
  }
  increaseDemand (amount) {
    this.demand = this.demand + amount
  }
  resetTurnips () {
    this.turnips = config.cityInitialTurnips
  }
  receiveTurnips (amount) {
    this.turnips = this.turnips + amount
  }
  payPlayerAccordingToDemandSatisfied () {
    // if turnips equals demand player gets ? points
  }
}<commit_msg>refaktorointia<commit_after>import config from '../config'

export default class City {
  constructor (name) {
    this.name = name || 'City'
    this.demand = config.cityInitialDemand
    this.turnips = config.cityInitialTurnips
  }

  /* Moi Miia, nämä vähän turhia javascriptis, ku city.name on oikeastaan parempi
     kun city.getName koska se on getteri ja setteri samalla.
  getName () {
    return this.name
  }
  getDemand () {
    return this.demand
  }
  getTurnips () {
    return this.turnips
  }
  */
  increaseDemand (amount) {
    this.demand = this.demand + amount
  }
  resetTurnips () {
    this.turnips = config.cityInitialTurnips
  }
  receiveTurnips (amount) {
    this.turnips = this.turnips + amount
  }
  payPlayerAccordingToDemandSatisfied () {
    // if turnips equals demand player gets ? points
  }
}
{'fraction_non_alphanumeric': 0.10033222591362126, 'fraction_numerical': 0.0, 'mean_word_length': 2.9424083769633507, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5064491', 'n_tokens_mistral': 507, 'n_tokens_neox': 487, 'n_words': 114}