<commit_before>credentials =
  username: process.env.HUBOT_BITBUCKET_AUTH_USER
  password: <PASSWORD>BUCKET_AUTH_<PASSWORD>

all_repos = process.env.HUBOT_BITBUCKET_REPOSITORIES.split(",")

class BitBucket
  constructor: (credentials, repos = "") ->
    bitBucket = require 'bitbucket-api'
    @client = bitBucket.createClient(credentials)
    @repositories = repos

  summary: (msg, repo) ->
    _repositories = if repo? then [repo] else @repositories
    console.log _repositories
    for repository in _repositories
      @getRepository repository, (err, repo) ->
        # Repository logic comes here
        # TODO: think some way to easily load PRs and show on screen
        repo.pullRequests().getAll (err, pullRequests) ->
          pullRequestsSize = pullRequests.values.length
          message = "- *#{repo.owner}/#{repo.slug}* [#{pullRequestsSize}] pull requests\n"
          if pullRequestsSize > 0
            for pullRequest in pullRequests.values
              message += "\t* ##{pullRequest.id} - `#{pullRequest.title}` by #{pullRequest.author.username} on #{pullRequest.created_on}\n"

          msg.send message

  getRepository: (repository, cb) ->
    owner = repository.split('/')[0]
    slug = repository.split('/')[1]
    @client.getRepository {slug: slug, owner: owner}, (err, repo) ->
      cb(err, repo)

module.exports = new BitBucket(credentials, all_repos)
<commit_msg>Removed console.logs<commit_after>credentials =
  username: process.env.HUBOT_BITBUCKET_AUTH_USER
  password: <PASSWORD>BUCKET_AUTH_PASS

all_repos = process.env.HUBOT_BITBUCKET_REPOSITORIES.split(",")

class BitBucket
  constructor: (credentials, repos = "") ->
    bitBucket = require 'bitbucket-api'
    @client = bitBucket.createClient(credentials)
    @repositories = repos

  summary: (msg, repo) ->
    _repositories = if repo? then [repo] else @repositories
    for repository in _repositories
      @getRepository repository, (err, repo) ->
        # Repository logic comes here
        # TODO: think some way to easily load PRs and show on screen
        repo.pullRequests().getAll (err, pullRequests) ->
          pullRequestsSize = pullRequests.values.length
          message = "- *#{repo.owner}/#{repo.slug}* [#{pullRequestsSize}] pull requests\n"
          if pullRequestsSize > 0
            for pullRequest in pullRequests.values
              message += "\t* ##{pullRequest.id} - `#{pullRequest.title}` by #{pullRequest.author.username} on #{pullRequest.created_on}\n"

          msg.send message

  getRepository: (repository, cb) ->
    owner = repository.split('/')[0]
    slug = repository.split('/')[1]
    @client.getRepository {slug: slug, owner: owner}, (err, repo) ->
      cb(err, repo)

module.exports = new BitBucket(credentials, all_repos)

{'fraction_non_alphanumeric': 0.12342114760014435, 'fraction_numerical': 0.0021652832912306026, 'mean_word_length': 3.358490566037736, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 20, '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': '6169159', 'n_tokens_mistral': 843, 'n_tokens_neox': 849, 'n_words': 203}