<commit_before>const github = require('../../lib/platform/github');
const gitlab = require('../../lib/platform/gitlab');
const azure = require('../../lib/platform/azure');
const bitbucket = require('../../lib/platform/bitbucket');

describe('platform', () => {
  it('has a list of supported methods for github', () => {
    const githubMethods = Object.keys(github);
    expect(githubMethods).toMatchSnapshot();
  });

  it('has a list of supported methods for gitlab', () => {
    const gitlabMethods = Object.keys(gitlab);
    expect(gitlabMethods).toMatchSnapshot();
  });

  it('has a list of supported methods for azure', () => {
    const azureMethods = Object.keys(azure);
    expect(azureMethods).toMatchSnapshot();
  });

  it('has same API for github and gitlab', () => {
    const githubMethods = Object.keys(github);
    const gitlabMethods = Object.keys(gitlab);
    expect(githubMethods).toMatchObject(gitlabMethods);
  });

  it('has same API for github and azure', () => {
    const githubMethods = Object.keys(github);
    const azureMethods = Object.keys(azure);
    expect(githubMethods).toMatchObject(azureMethods);
  });

  it('has same API for github and Bitbucket', () => {
    const githubMethods = Object.keys(github);
    const bitbucketMethods = Object.keys(bitbucket);
    expect(bitbucketMethods).toMatchObject(githubMethods);
  });
});<commit_msg>tests: add bitbucket server platform check<commit_after>const github = require('../../lib/platform/github');
const gitlab = require('../../lib/platform/gitlab');
const azure = require('../../lib/platform/azure');
const bitbucket = require('../../lib/platform/bitbucket');
const bitbucketServer = require('../../lib/platform/bitbucket-server');

describe('platform', () => {
  it('has a list of supported methods for github', () => {
    const githubMethods = Object.keys(github);
    expect(githubMethods).toMatchSnapshot();
  });

  it('has a list of supported methods for gitlab', () => {
    const gitlabMethods = Object.keys(gitlab);
    expect(gitlabMethods).toMatchSnapshot();
  });

  it('has a list of supported methods for azure', () => {
    const azureMethods = Object.keys(azure);
    expect(azureMethods).toMatchSnapshot();
  });

  it('has same API for github and gitlab', () => {
    const githubMethods = Object.keys(github);
    const gitlabMethods = Object.keys(gitlab);
    expect(githubMethods).toMatchObject(gitlabMethods);
  });

  it('has same API for github and azure', () => {
    const githubMethods = Object.keys(github);
    const azureMethods = Object.keys(azure);
    expect(githubMethods).toMatchObject(azureMethods);
  });

  it('has same API for github and Bitbucket', () => {
    const githubMethods = Object.keys(github);
    const bitbucketMethods = Object.keys(bitbucket);
    expect(bitbucketMethods).toMatchObject(githubMethods);
  });

  it('has same API for github and Bitbucket Server', () => {
    const githubMethods = Object.keys(github);
    const bitbucketMethods = Object.keys(bitbucketServer);
    expect(bitbucketMethods).toMatchObject(githubMethods);
  });
});
{'fraction_non_alphanumeric': 0.15932642487046633, 'fraction_numerical': 0.0, 'mean_word_length': 4.182885906040268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '3073630', 'n_tokens_mistral': 891, 'n_tokens_neox': 857, 'n_words': 205}