<commit_before>pragma solidity ^0.5.0;

import "../utils/EnumerableSet.sol";

contract EnumerableSetMock{
    using EnumerableSet for EnumerableSet.AddressSet;

    event TransactionResult(bool result);

    EnumerableSet.AddressSet private set;

    constructor() public {
        set = EnumerableSet.newAddressSet();
    }

    function contains(address value) public view returns (bool) {
        return EnumerableSet.contains(set, value);
    }

    function add(address value) public {
        bool result = EnumerableSet.add(set, value);
        emit TransactionResult(result);
    }

    function remove(address value) public {
        bool result = EnumerableSet.remove(set, value);
        emit TransactionResult(result);
    }

    function enumerate() public view returns (address[] memory) {
        return EnumerableSet.enumerate(set);
    }
}
<commit_msg>Fix EnumerableSetMock for 2.5.rc1 (#2069)<commit_after>pragma solidity ^0.5.0;

import "../utils/EnumerableSet.sol";

contract EnumerableSetMock{
    using EnumerableSet for EnumerableSet.AddressSet;

    event TransactionResult(bool result);

    EnumerableSet.AddressSet private set;

    constructor() public {
        set = EnumerableSet.newAddressSet();
    }

    function contains(address value) public view returns (bool) {
        return set.contains(value);
    }

    function add(address value) public {
        bool result = set.add(value);
        emit TransactionResult(result);
    }

    function remove(address value) public {
        bool result = set.remove(value);
        emit TransactionResult(result);
    }

    function enumerate() public view returns (address[] memory) {
        return set.enumerate();
    }
}

{'fraction_non_alphanumeric': 0.09718969555035128, 'fraction_numerical': 0.007611241217798595, 'mean_word_length': 3.1280193236714977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2216786', 'n_tokens_mistral': 487, 'n_tokens_neox': 450, 'n_words': 121}