<commit_before>package org.shipkit.internal.notes.contributors.github

import spock.lang.Ignore
import spock.lang.Specification
import spock.lang.Subject

import static org.shipkit.internal.util.DateUtil.parseDate

@Ignore
class RecentContributorsFetcherTest extends Specification {

    @Subject fetcher = new RecentContributorsFetcher()

    def readOnlyToken = "<KEY>"
    def defaultGitHubApiEndpoint = "https://api.github.com";

    def "fetches contributors from GitHub"() {
        when:
        def c = fetcher.fetchContributors(defaultGitHubApiEndpoint, "mockito/mockito", readOnlyToken,
                parseDate("2017-05-04 00:00:00 -0000"), parseDate("2017-05-06 00:00:00 -0000"))

        then:
        c.toString() == "[<NAME>/elizarov, <NAME>/szczepiq]"<commit_msg>Removed unwanted @ignore on a failing test<commit_after>package org.shipkit.internal.notes.contributors.github

import spock.lang.Specification
import spock.lang.Subject

import static org.shipkit.internal.util.DateUtil.parseDate

class RecentContributorsFetcherTest extends Specification {

    @Subject fetcher = new RecentContributorsFetcher()

    def readOnlyToken = "<KEY>"
    def defaultGitHubApiEndpoint = "https://api.github.com";

    def "fetches contributors from GitHub"() {
        when:
        def c = fetcher.fetchContributors(defaultGitHubApiEndpoint, "mockito/mockito", readOnlyToken,
                parseDate("2017-05-04 00:00:00 -0000"), parseDate("2017-05-06 00:00:00 -0000"))

        then:
        c.toString() == "[<NAME>/elizarov, <NAME>/szczepiq]"
{'fraction_non_alphanumeric': 0.11568123393316196, 'fraction_numerical': 0.04627249357326478, 'mean_word_length': 3.9903846153846154, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3963035', 'n_tokens_mistral': 535, 'n_tokens_neox': 461, 'n_words': 96}