<commit_before>#Imports
#------------------------------------------------------------------------------
import engine

#Classes
#------------------------------------------------------------------------------
class LightSource:
  # Constructor
  # Takes the intensity of the light (how much it adds to the light level of
  # the tile it's on), the distance the light goes (in a radius), the length
  # of time in turns it lasts, with -1 being indefinite.
  # Defaults to (5, 5, 200)
  def __init__(self, intensity = 5, distance = 5, lifetime = 200):
    self.intensity = intensity
    self.distance = distance
    self.lifetime = lifetime

  # Burn.
  # Simple class, reduces the lifetime of a lightsource by the passed value.
  # Value defaults to 1.
  # if the lifetime is 0, it attempts to destroy the lightSource.
  # if the lifetime is -1, it simply returns.
  def burn(self, value):
    if self.lifetime == -1:
      return
    elif self.lifetime == 0:
      # Mark the lightsource for destruction.
      # then return
      return
    else:
      self.lifetime -= value
<commit_msg>small work at work<commit_after>#Imports
#------------------------------------------------------------------------------
import engine
import libtcodpy as libtcod
#Classes
#------------------------------------------------------------------------------
class LightSource:
  # Constructor
  # Takes the intensity of the light (how much it adds to the light level of
  # the tile it's on), the distance the light goes (in a radius), the length
  # of time in turns it lasts, with -1 being indefinite, and the color of the
  # light
  # Defaults to (5, 5, 200, )
  def __init__(self, intensity = 5, distance = 5, lifetime = 200,
   light-color = libtcod.white):
    self.intensity = intensity
    self.distance = distance
    self.lifetime = lifetime
    self.light-color = light-color

  # Burn.
  # Simple class, reduces the lifetime of a lightsource by the passed value.
  # Value defaults to 1.
  # if the lifetime is 0, it attempts to destroy the lightSource.
  # if the lifetime is -1, it simply returns.
  def burn(self, value):
    if self.lifetime == -1:
      return
    elif self.lifetime == 0:
      # Mark the lightsource for destruction.
      # then return
      return
    else:
      self.lifetime -= value

{'fraction_non_alphanumeric': 0.20537261698440207, 'fraction_numerical': 0.01386481802426343, 'mean_word_length': 1.7819277108433735, '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': '5581085', 'n_tokens_mistral': 628, 'n_tokens_neox': 589, 'n_words': 261}