<commit_before>request = require "request"

class Slack
  constructor: (@token, @domain) ->
    @apiMode = not @domain?
    @url = @composeUrl()

  composeUrl: =>
    return "https://slack.com/api/"

  setWebHook: (url) =>
    @webhookUrl = url<commit_msg>fix(lib): fix name of the setWebhook function to be consistent with webhook<commit_after>request = require "request"

class Slack
  constructor: (@token, @domain) ->
    @apiMode = not @domain?
    @url = @composeUrl()

  composeUrl: =>
    return "https://slack.com/api/"

  setWebhook: (url) =>
    @webhookUrl = url
{'fraction_non_alphanumeric': 0.1480836236933798, 'fraction_numerical': 0.0, 'mean_word_length': 3.5634920634920637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3276531', 'n_tokens_mistral': 198, 'n_tokens_neox': 193, 'n_words': 50}