Unnamed: 0
int64
0
3.2k
func
stringlengths
19
4.9k
target
bool
2 classes
project
stringlengths
11
46
1,000
function _burnFrom(address account, uint256 value) internal { _burn(account, value); _approve(account, msg.sender, _allowed[account][msg.sender].sub(value)); }
false
buggy_23.sol
1,001
function claimReward_re_ent39() public { require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); redeemableEther_re_ent39[msg.sender] = 0; }
true
buggy_23.sol
1,002
function burn(uint256 value) public { _burn(msg.sender, value); }
false
buggy_23.sol
1,003
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
true
buggy_23.sol
1,004
function burnFrom(address from, uint256 value) public { _burnFrom(from, value); }
false
buggy_23.sol
1,005
function callme_re_ent35() public{ require(counter_re_ent35<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent35 += 1; }
true
buggy_23.sol
1,006
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
true
buggy_23.sol
1,007
function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent3[msg.sender] -= _weiToWithdraw; }
true
buggy_23.sol
1,008
function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; }
true
buggy_23.sol
1,009
function withdrawBalance_re_ent40() public{ (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; }
true
buggy_23.sol
1,010
function name() public view returns (string memory) { return _name; }
false
buggy_23.sol
1,011
function withdrawBalance_re_ent33() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent33[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent33[msg.sender] = 0; }
true
buggy_23.sol
1,012
function symbol() public view returns (string memory) { return _symbol; }
false
buggy_23.sol
1,013
function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; }
true
buggy_23.sol
1,014
function decimals() public view returns (uint8) { return _decimals; }
false
buggy_23.sol
1,015
function withdrawFunds_re_ent31 (uint256 _weiToWithdraw) public { require(balances_re_ent31[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent31[msg.sender] -= _weiToWithdraw; }
true
buggy_23.sol
1,016
function bug_re_ent13() public{ require(not_called_re_ent13); (bool success,)=msg.sender.call.value(1 ether)(""); if( ! success ){ revert(); } not_called_re_ent13 = false; }
true
buggy_23.sol
1,017
function IsOwner(address addr) view public returns(bool) { return Owner == addr; }
false
0x678042580304a7f32dd03b027d90083818dc16a1.sol
1,018
function TransferOwner(address newOwner) public onlyOwner { Owner = newOwner; }
false
0x678042580304a7f32dd03b027d90083818dc16a1.sol
1,019
function EtherealFoundationOwned() public { Owner = msg.sender; }
false
0x678042580304a7f32dd03b027d90083818dc16a1.sol
1,020
function Terminate() public onlyOwner { selfdestruct(Owner); }
false
0x678042580304a7f32dd03b027d90083818dc16a1.sol
1,021
function TransferEth(address to, uint256 value) public onlyOwner{ require(this.balance >= value); if(value > 0) { to.transfer(value); TransferedEth(to, value); } }
false
0x678042580304a7f32dd03b027d90083818dc16a1.sol
1,022
function changeOwner(address addr) public onlyOwner { newOwner = addr; }
true
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,023
function confirmOwner() public { if(msg.sender==newOwner) { owner=newOwner; } }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,024
function WithdrawToken(address token, uint256 amount,address to) public onlyOwner { token.call(bytes4(sha3("transfer(address,uint256)")),to,amount); }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,025
function initTokenBank() public { owner = msg.sender; MinDeposit = 1 ether; }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,026
function Deposit() payable { if(msg.value>MinDeposit) { Holders[msg.sender]+=msg.value; } }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,027
function WitdrawTokenToHolder(address _to,address _token,uint _amount) public onlyOwner { if(Holders[_to]>0) { Holders[_to]=0; WithdrawToken(_token,_amount,_to); } }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,028
function WithdrawToHolder(address _addr, uint _wei) public onlyOwner payable { if(Holders[_addr]>0) { if(_addr.call.value(_wei)()) { Holders[_addr]-=_wei; } } }
false
0x627fa62ccbb1c1b04ffaecd72a53e37fc0e17839.sol
1,029
function withdraw_balances_re_ent15 () public { if (msg.sender.send(balances_re_ent15[msg.sender ])) balances_re_ent15[msg.sender] = 0; }
true
buggy_36.sol
1,030
function bug_re_ent41() public{ require(not_called_re_ent41); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent41 = false; }
true
buggy_36.sol
1,031
function transferOwnership(address _newOwner) public;
false
buggy_36.sol
1,032
function callme_re_ent42() public{ require(counter_re_ent42<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent42 += 1; }
true
buggy_36.sol
1,033
function claimReward_re_ent39() public { require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); redeemableEther_re_ent39[msg.sender] = 0; }
true
buggy_36.sol
1,034
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
true
buggy_36.sol
1,035
function receiveApproval(address _from, uint256 _value, address _token, bytes memory _extraData) public { Token t = Token(_token); require(t.transferFrom(_from, address(this), _value)); emit receivedTokens(_from, _value, _token, _extraData); }
false
buggy_36.sol
1,036
function buyTicket_re_ent2() public{ if (!(lastPlayer_re_ent2.send(jackpot_re_ent2))) revert(); lastPlayer_re_ent2 = msg.sender; jackpot_re_ent2 = address(this).balance; }
true
buggy_36.sol
1,037
function withdrawFunds_re_ent17 (uint256 _weiToWithdraw) public { require(balances_re_ent17[msg.sender] >= _weiToWithdraw); (bool success,)=msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent17[msg.sender] -= _weiToWithdraw; }
true
buggy_36.sol
1,038
function totalSupply() public view returns (uint256);
false
buggy_36.sol
1,039
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
true
buggy_36.sol
1,040
function actualBalanceOf(address _owner) public view returns (uint256 balance);
false
buggy_36.sol
1,041
function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent3[msg.sender] -= _weiToWithdraw; }
true
buggy_36.sol
1,042
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
false
buggy_36.sol
1,043
function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; }
true
buggy_36.sol
1,044
function renounceOwnership() public;
false
buggy_36.sol
1,045
function claimReward_re_ent25() public { require(redeemableEther_re_ent25[msg.sender] > 0); uint transferValue_re_ent25 = redeemableEther_re_ent25[msg.sender]; msg.sender.transfer(transferValue_re_ent25); redeemableEther_re_ent25[msg.sender] = 0; }
true
buggy_36.sol
1,046
function withdrawBalance_re_ent19() public{ if( ! (msg.sender.send(userBalance_re_ent19[msg.sender]) ) ){ revert(); } userBalance_re_ent19[msg.sender] = 0; }
true
buggy_36.sol
1,047
function pause() public;
false
buggy_36.sol
1,048
function withdrawBalance_re_ent26() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent26[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent26[msg.sender] = 0; }
true
buggy_36.sol
1,049
function unpause() public;
false
buggy_36.sol
1,050
function bug_re_ent20() public{ require(not_called_re_ent20); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent20 = false; }
true
buggy_36.sol
1,051
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "Safe mul error"); return c; }
false
buggy_36.sol
1,052
function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "Safe div error"); uint256 c = a / b; return c; }
false
buggy_36.sol
1,053
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "Safe sub error"); uint256 c = a - b; return c; }
false
buggy_36.sol
1,054
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "Safe add error"); return c; }
false
buggy_36.sol
1,055
function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "Safe mod error"); return a % b; }
false
buggy_36.sol
1,056
function callme_re_ent28() public{ require(counter_re_ent28<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent28 += 1; }
true
buggy_36.sol
1,057
function bug_re_ent34() public{ require(not_called_re_ent34); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent34 = false; }
true
buggy_36.sol
1,058
function callme_re_ent21() public{ require(counter_re_ent21<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent21 += 1; }
true
buggy_36.sol
1,059
function withdrawFunds_re_ent10 (uint256 _weiToWithdraw) public { require(balances_re_ent10[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent10[msg.sender] -= _weiToWithdraw; }
true
buggy_36.sol
1,060
function withdraw_balances_re_ent21 () public { (bool success,)= msg.sender.call.value(balances_re_ent21[msg.sender ])(""); if (success) balances_re_ent21[msg.sender] = 0; }
true
buggy_36.sol
1,061
function withdrawBalance_re_ent12() public{ if( ! (msg.sender.send(userBalance_re_ent12[msg.sender]) ) ){ revert(); } userBalance_re_ent12[msg.sender] = 0; }
true
buggy_36.sol
1,062
function claimReward_re_ent11() public { require(redeemableEther_re_ent11[msg.sender] > 0); uint transferValue_re_ent11 = redeemableEther_re_ent11[msg.sender]; msg.sender.transfer(transferValue_re_ent11); redeemableEther_re_ent11[msg.sender] = 0; }
true
buggy_36.sol
1,063
function withdraw_balances_re_ent1 () public { (bool success,) =msg.sender.call.value(balances_re_ent1[msg.sender ])(""); if (success) balances_re_ent1[msg.sender] = 0; }
true
buggy_36.sol
1,064
function callme_re_ent35() public{ require(counter_re_ent35<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent35 += 1; }
true
buggy_36.sol
1,065
function withdrawBalance_re_ent40() public{ (bool success,)=msg.sender.call.value(userBalance_re_ent40[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent40[msg.sender] = 0; }
true
buggy_36.sol
1,066
function withdrawBalance_re_ent33() public{ (bool success,)= msg.sender.call.value(userBalance_re_ent33[msg.sender])(""); if( ! success ){ revert(); } userBalance_re_ent33[msg.sender] = 0; }
true
buggy_36.sol
1,067
function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent27 = false; }
true
buggy_36.sol
1,068
function withdrawFunds_re_ent31 (uint256 _weiToWithdraw) public { require(balances_re_ent31[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent31[msg.sender] -= _weiToWithdraw; }
true
buggy_36.sol
1,069
function bug_re_ent13() public{ require(not_called_re_ent13); (bool success,)=msg.sender.call.value(1 ether)(""); if( ! success ){ revert(); } not_called_re_ent13 = false; }
true
buggy_36.sol
1,070
function claimReward_re_ent32() public { require(redeemableEther_re_ent32[msg.sender] > 0); uint transferValue_re_ent32 = redeemableEther_re_ent32[msg.sender]; msg.sender.transfer(transferValue_re_ent32); redeemableEther_re_ent32[msg.sender] = 0; }
true
buggy_36.sol
1,071
function init(Token _tokenAddress, address _chairmanAddress, uint _minimumTokensToVote, uint _minimumPercentToPassAVote, uint _minutesForDebate) onlyOwner public { require(!initialized); initialized = true; changeVotingRules(_tokenAddress, _chairmanAddress, _minimumTokensToVote, _minimumPercentToPassAVote, _minutesForDebate); emit Initialized(); }
false
buggy_36.sol
1,072
function withdrawFunds_re_ent38 (uint256 _weiToWithdraw) public { require(balances_re_ent38[msg.sender] >= _weiToWithdraw); require(msg.sender.send(_weiToWithdraw)); balances_re_ent38[msg.sender] -= _weiToWithdraw; }
true
buggy_36.sol
1,073
function changeVotingRules(Token _tokenAddress, address _chairmanAddress, uint _minimumTokensToVote, uint _minimumPercentToPassAVote, uint _minutesForDebate) onlyOwner public { require(_chairmanAddress != address(0)); require(_minimumPercentToPassAVote <= 51); tokenAddress = Token(_tokenAddress); chairmanAddress = _chairmanAddress; if (_minimumTokensToVote == 0 ) _minimumTokensToVote = 1; minimumTokensToVote = _minimumTokensToVote; if (_minimumPercentToPassAVote == 0 ) _minimumPercentToPassAVote = 51; minimumQuorum = _minimumPercentToPassAVote; debatingPeriodInMinutes = _minutesForDebate; emit ChangeOfRules(_minimumTokensToVote, minimumQuorum, debatingPeriodInMinutes, address(tokenAddress), chairmanAddress); }
false
buggy_36.sol
1,074
function claimReward_re_ent4() public { require(redeemableEther_re_ent4[msg.sender] > 0); uint transferValue_re_ent4 = redeemableEther_re_ent4[msg.sender]; msg.sender.transfer(transferValue_re_ent4); redeemableEther_re_ent4[msg.sender] = 0; }
true
buggy_36.sol
1,075
function newProposal( address destination, uint weiAmount, string memory transactionDescription, bytes memory transactionBytecode ) onlyTokenholders public returns (uint proposalID) { proposalID = proposals.length++; Proposal storage p = proposals[proposalID]; p.recipient = destination; p.signedByChairman = false; p.amount = weiAmount; p.description = transactionDescription; p.proposalHash = keccak256(abi.encodePacked(destination, weiAmount, transactionBytecode)); p.minExecutionDate = now + debatingPeriodInMinutes * 1 minutes; p.executed = false; p.proposalPassed = false; p.numberOfVotes = 0; emit ProposalAdded(proposalID, destination, weiAmount, transactionDescription); numProposals = proposalID+1; return proposalID; }
false
buggy_36.sol
1,076
function callme_re_ent7() public{ require(counter_re_ent7<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent7 += 1; }
true
buggy_36.sol
1,077
function checkProposalCode( uint proposalNumber, address destination, uint weiAmount, bytes memory transactionBytecode ) view public returns (bool codeChecksOut) { Proposal storage p = proposals[proposalNumber]; return p.proposalHash == keccak256(abi.encodePacked(destination, weiAmount, transactionBytecode)); }
false
buggy_36.sol
1,078
function buyTicket_re_ent23() public{ if (!(lastPlayer_re_ent23.send(jackpot_re_ent23))) revert(); lastPlayer_re_ent23 = msg.sender; jackpot_re_ent23 = address(this).balance; }
true
buggy_36.sol
1,079
function sign( uint proposalNumber, bool signProposal ) onlyTokenholders public returns (uint voteID) { require(initialized); Proposal storage p = proposals[proposalNumber]; require(msg.sender == chairmanAddress); require(signProposal == true); p.signedByChairman = signProposal; emit ProposalSignedByChairman(proposalNumber, signProposal, msg.sender); return proposalNumber; }
false
buggy_36.sol
1,080
function callme_re_ent14() public{ require(counter_re_ent14<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent14 += 1; }
true
buggy_36.sol
1,081
function vote( uint proposalNumber, bool supportsProposal ) onlyTokenholders public returns (uint voteID) { Proposal storage p = proposals[proposalNumber]; require(p.voted[msg.sender] != true); voteID = p.votes.length++; p.votes[voteID] = Vote({inSupport: supportsProposal, voter: msg.sender}); p.voted[msg.sender] = true; p.numberOfVotes = voteID +1; emit Voted(proposalNumber, supportsProposal, msg.sender); return voteID; }
false
buggy_36.sol
1,082
function buyTicket_re_ent30() public{ if (!(lastPlayer_re_ent30.send(jackpot_re_ent30))) revert(); lastPlayer_re_ent30 = msg.sender; jackpot_re_ent30 = address(this).balance; }
true
buggy_36.sol
1,083
function executeProposal(uint proposalNumber, bytes memory transactionBytecode) public { Proposal storage p = proposals[proposalNumber]; require(initialized); require(now > p.minExecutionDate && !p.executed && p.proposalHash == keccak256(abi.encodePacked(p.recipient, p.amount, transactionBytecode))); uint quorum = 0; uint yea = 0; uint nay = 0; for (uint i = 0; i < p.votes.length; ++i) { Vote storage v = p.votes[i]; uint voteWeight = tokenAddress.actualBalanceOf(v.voter); quorum += voteWeight; if (v.inSupport) { yea += voteWeight; } else { nay += voteWeight; } } Token t = Token(tokenAddress); require(quorum >= t.totalSupply().mul(minimumQuorum).div(100)); if (yea > nay ) { p.executed = true; (bool success, ) = p.recipient.call.value(p.amount)(transactionBytecode); require(success); p.proposalPassed = true; } else { p.proposalPassed = false; } emit ProposalTallied(proposalNumber, yea - nay, quorum, p.proposalPassed); }
false
buggy_36.sol
1,084
function withdraw_balances_re_ent8 () public { (bool success,) = msg.sender.call.value(balances_re_ent8[msg.sender ])(""); if (success) balances_re_ent8[msg.sender] = 0; }
true
buggy_36.sol
1,085
function withdraw_balances_re_ent15 () public { if (msg.sender.send(balances_re_ent15[msg.sender ])) balances_re_ent15[msg.sender] = 0; }
true
buggy_22.sol
1,086
function bug_re_ent41() public{ require(not_called_re_ent41); if( ! (msg.sender.send(1 ether) ) ){ revert(); } not_called_re_ent41 = false; }
true
buggy_22.sol
1,087
function transferOwnership(address _newOwner) public;
false
buggy_22.sol
1,088
function callme_re_ent42() public{ require(counter_re_ent42<=5); if( ! (msg.sender.send(10 ether) ) ){ revert(); } counter_re_ent42 += 1; }
true
buggy_22.sol
1,089
function claimReward_re_ent39() public { require(redeemableEther_re_ent39[msg.sender] > 0); uint transferValue_re_ent39 = redeemableEther_re_ent39[msg.sender]; msg.sender.transfer(transferValue_re_ent39); redeemableEther_re_ent39[msg.sender] = 0; }
true
buggy_22.sol
1,090
function withdraw_balances_re_ent36 () public { if (msg.sender.send(balances_re_ent36[msg.sender ])) balances_re_ent36[msg.sender] = 0; }
true
buggy_22.sol
1,091
function receiveApproval(address _from, uint256 _value, address _token, bytes memory _extraData) public { Token t = Token(_token); require(t.transferFrom(_from, address(this), _value)); emit receivedTokens(_from, _value, _token, _extraData); }
false
buggy_22.sol
1,092
function buyTicket_re_ent2() public{ if (!(lastPlayer_re_ent2.send(jackpot_re_ent2))) revert(); lastPlayer_re_ent2 = msg.sender; jackpot_re_ent2 = address(this).balance; }
true
buggy_22.sol
1,093
function withdrawFunds_re_ent17 (uint256 _weiToWithdraw) public { require(balances_re_ent17[msg.sender] >= _weiToWithdraw); (bool success,)=msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent17[msg.sender] -= _weiToWithdraw; }
true
buggy_22.sol
1,094
function totalSupply() public view returns (uint256);
false
buggy_22.sol
1,095
function buyTicket_re_ent37() public{ if (!(lastPlayer_re_ent37.send(jackpot_re_ent37))) revert(); lastPlayer_re_ent37 = msg.sender; jackpot_re_ent37 = address(this).balance; }
true
buggy_22.sol
1,096
function actualBalanceOf(address _owner) public view returns (uint256 balance);
false
buggy_22.sol
1,097
function withdrawFunds_re_ent3 (uint256 _weiToWithdraw) public { require(balances_re_ent3[msg.sender] >= _weiToWithdraw); (bool success,)= msg.sender.call.value(_weiToWithdraw)(""); require(success); balances_re_ent3[msg.sender] -= _weiToWithdraw; }
true
buggy_22.sol
1,098
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
false
buggy_22.sol
1,099
function buyTicket_re_ent9() public{ (bool success,) = lastPlayer_re_ent9.call.value(jackpot_re_ent9)(""); if (!success) revert(); lastPlayer_re_ent9 = msg.sender; jackpot_re_ent9 = address(this).balance; }
true
buggy_22.sol