<commit_before>define (require) ->
  log={}
  log.level = 1
  log.DEBUG = 0
  log.INFO = 1
  log.WARN = 2
  log.ERROR = 3
  log.entries = []
  
  #TODO: fix line number : currently this returns the line number in THIS file, not the caller
  
  log.debug = (message)=>
    if log.level <= log.DEBUG
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"DEBUG",msg:"#{message}",line:lineNumber})
  log.info = (message)=>
    if log.level <= log.INFO
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"INFO",msg:"#{message}",line:lineNumber})
  log.warn = (message)=>
    if log.level <= log.WARN
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"WARN",msg:"#{message}",line:lineNumber})
  log.error = (message,)=>
    if log.level <= log.ERROR
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"ERROR",msg:"#{message}",line:lineNumber})
  
  return {"log":log}<commit_msg>Build fail<commit_after>define (require) ->
  log={}
  log.level = 1
  log.DEBUG = 0
  log.INFO = 1
  log.WARN = 2
  log.ERROR = 3
  log.entries = []
  
  #TODO: fix line number : currently this returns the line number in THIS file, not the caller
  
  log.debug = (message)=>
    if log.level <= log.DEBUG
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"DEBUG",msg:"#{message}",line:lineNumber})
  log.info = (message)=>
    if log.level <= log.INFO
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"INFO",msg:"#{message}",line:lineNumber})
  log.warn = (message)=>
    if log.level <= log.WARN
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"WARN",msg:"#{message}",line:lineNumber})
  log.error = (message)=>
    if log.level <= log.ERROR
      lineNumber = (new Error()).lineNumber
      log.entries.push({lvl:"ERROR",msg:"#{message}",line:lineNumber})
  
  return {"log":log}
{'fraction_non_alphanumeric': 0.17767295597484276, 'fraction_numerical': 0.005241090146750524, 'mean_word_length': 3.358447488584475, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 13, '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': '6947343', 'n_tokens_mistral': 639, 'n_tokens_neox': 635, 'n_words': 136}