filename
stringlengths
5
9
code
stringlengths
107
109k
label
stringclasses
4 values
label_encoded
int64
0
3
code_length_chars
int64
107
109k
code_length_lines
int64
1
3.32k
owasp_category
stringclasses
4 values
36375.sol
pragma solidity ^0.4.15; /* CJX.io - ERC20 Token */ contract ERC20 { uint256 public totalSupply; function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, uin...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
2,661
80
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40298.sol
// <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
27,801
801
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39858.sol
pragma solidity ^0.4.6; /* Copyright 2016, Jordi Baylina This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
26,853
782
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34598.sol
pragma solidity ^0.4.4; contract Token { function totalSupply() constant returns (uint256 supply) {} function balanceOf(address _owner) constant returns (uint256 balance) {} function transfer(address _to, uint256 _value) returns (bool success) {} function transferFrom(address _from, address _to, ui...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
3,021
94
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33490.sol
pragma solidity ^0.4.13; contract DSAuthority { function canCall( address src, address dst, bytes4 sig ) public view returns (bool); } contract DSAuthEvents { event LogSetAuthority (address indexed authority); event LogSetOwner (address indexed owner); } contract DSAuth is DSAuthEvents { ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
19,964
610
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34793.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,168
122
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37881.sol
pragma solidity ^0.4.11; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed _sender, uint indexed _trans...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,440
366
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40742.sol
pragma solidity ^0.4.15; contract Reentrance { mapping (address => uint) userBalance; function getBalance(address u) constant returns(uint){ return userBalance[u]; } function addToBalance() payable{ userBalance[msg.sender] += msg.value; } function withdrawBalance_fixed(){ ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
473
21
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
45030.sol
// Copyright (C) 2020 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Th...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,522
175
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35623.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,435
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40399.sol
// <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
27,323
789
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
20757.sol
// compiler: 0.4.21+commit.dfe3193c.Emscripten.clang pragma solidity ^0.4.21; // https://www.ethereum.org/token interface tokenRecipient { function receiveApproval( address from, uint256 value, bytes data ) external; } // ERC223 interface ContractReceiver { function tokenFallback( address from, uint value, bytes ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,839
204
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34468.sol
/* This Token Contract implements the standard token functionality (https://github.com/ethereum/EIPs/issues/20) as well as the following OPTIONAL extras intended for use by humans. In other words. This is intended for deployment in something like a Token Factory or Mist wallet, and then used by humans. Imagine coins, ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,669
144
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40618.sol
contract NanoPyramid { uint private pyramidMultiplier = 140; uint private minAmount = 1 finney; uint private maxAmount = 1 ether; uint private fee = 2; uint private collectedFees = 0; uint private minFeePayout = 100 finney; address private owner; function NanoPyramid(...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
3,131
114
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34202.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,453
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33929.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,440
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33636.sol
pragma solidity ^0.4.18; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 bala...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,376
129
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
22799.sol
// Copyright (C) 2017 DappHub, LLC pragma solidity ^0.4.11; //import "ds-exec/exec.sol"; contract DSExec { function tryExec( address target, bytes calldata, uint value) internal returns (bool call_ret) { return target.call.value(value)(calldata); } function exec( address target, bytes...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,319
443
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40743.sol
pragma solidity ^0.4.15; contract ReentranceExploit { bool public attackModeIsOn=false; address public vulnerable_contract; address public owner; function ReentranceExploit() public{ owner = msg.sender; } function deposit(address _vulnerable_contract) public payable{ vulnerab...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
920
39
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33103.sol
pragma solidity ^0.4.18; contract Ownable { address newOwner; address owner = msg.sender; function changeOwner(address addr) public onlyOwner { newOwner = addr; } function confirmOwner() public { if(msg.sender==newOwner) { owner=new...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
1,744
96
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39314.sol
/** * Originally from https://github.com/ConsenSys/MultiSigWallet */ /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmati...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,474
369
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33206.sol
pragma solidity ^0.4.18; contract ZipperMultisigFactory { address zipper; function ZipperMultisigFactory(address _zipper) public { zipper = _zipper; } function createMultisig() public returns (address _multisig) { address[] memory addys = new address[](2); addys[0]...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
12,486
411
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32032.sol
pragma solidity 0.4.18; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { /* * Events */ event Confirmation(address indexed sender, uint indexed transactionId); event ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,633
380
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
24624.sol
pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,780
218
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
1275.sol
/// This code was taken from: https://github.com/ConsenSys. Please do not change or refactor. pragma solidity 0.4.11; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant publ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,520
367
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40400.sol
// <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
27,323
789
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35076.sol
pragma solidity ^0.4.16; //https://github.com/genkifs/staticoin contract owned { address owner; function owned() { owner = msg.sender; } function changeOwner(address newOwner) onlyOwner { owner = newOwner; } modifier onlyOwner() { if (msg.sender==owner) _; } } contract mortal is owned(...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
18,257
456
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
21760.sol
// // compiler: solcjs // version: 0.4.19+commit.c4cbbb05.Emscripten.clang // pragma solidity ^0.4.19; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) { revert(); } _; } function changeOwner( address newowner ) p...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,809
228
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
45074.sol
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Th...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,401
146
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40249.sol
contract AbstractDaoChallenge { function isMember (DaoAccount account, address allegedOwnerAddress) returns (bool); } contract DaoAccount { /************************** Constants ***************************/ /************************** Events ***************************/ // No events /************...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,771
253
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
24999.sol
pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,766
217
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
36958.sol
pragma solidity ^0.4.8; contract Token { /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance); /// @notice send `_value` token...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,827
118
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
1707.sol
pragma solidity ^0.4.24; contract Proxy { modifier onlyOwner { if (msg.sender == Owner) _; } address Owner = msg.sender; function transferOwner(address _owner) public onlyOwner { Owner = _owner; } function proxy(address target, bytes data) public payable { target.call.value(msg.value)(data); ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
944
35
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33447.sol
pragma solidity ^0.4.18; /** * * Version: B * @author <[email protected]> * * Overview: * Divides all incoming funds among various `activity` accounts. The division cannot be changed * after the contract is locked. */ contract OrganizeFunds { struct ActivityAccount { uint credited; // total funds c...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,901
209
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39401.sol
pragma solidity ^0.4.2; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
65,652
1,713
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
43786.sol
pragma solidity ^0.4.15; /* CJX.io - ERC20 Token */ contract ERC20 { uint256 public totalSupply; function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, uin...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
2,661
80
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34036.sol
pragma solidity ^0.4.18; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 bala...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,330
126
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37617.sol
pragma solidity 0.4.11; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transact...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,426
366
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
1216.sol
pragma solidity ^0.4.21; /* 要約 アーティファクトチェーン(ArtifactChain)は次世代デジタル資産銀行であり、世界初の暗号化デジタル資産業界のビジネス応用に力を注いでいるパブリックチェーンプロジェクトであり、ブロックチェーンネットã...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
16,239
434
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33223.sol
pragma solidity ^0.4.16; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
10,449
304
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
31574.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,412
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37856.sol
/** * Originally from https://github.com/ConsenSys/MultiSigWallet */ /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmati...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,474
369
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33687.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,589
123
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
43136.sol
// SPDX-License-Identifier: MIT pragma solidity >0.5.0 <0.8.0; pragma experimental ABIEncoderV2; /** * @title mockOVM_GenericCrossDomainMessenger * @dev An experimental alternative mock for local testing. */ contract mockOVM_GenericCrossDomainMessenger { address public xDomainMessageSender; event SentMessa...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
1,122
47
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32545.sol
pragma solidity 0.4.15; // File: contracts/wallet/MultiSigWallet.sol /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { /* * Events */ event Confirmation(address indexed se...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,678
381
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
222.sol
pragma solidity ^0.4.19; /* Utility contract for Arby and it's various exchanges Some of these functions originated from (and then improved upon) DeltaBalances.github.io Check balances for multiple ERC20 tokens for multiple users in 1 batched call Check exchange rates for many Bancor contracts in one b...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,719
201
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39397.sol
//just updated the encrypted api key //updated contractBalance -= 57245901639344; //removed safesub from all contractBalance and replaced with operators pragma solidity ^0.4.2; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
65,670
1,717
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
31564.sol
pragma solidity ^0.4.8; //v0.4.16-nightly.2017.8.15+commit.dca1f45c contract Token { /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 ba...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,097
110
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
44992.sol
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Th...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,726
158
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
44335.sol
/* * Credit to: Ethereum * Orginal source: https://www.ethereum.org/token */ pragma solidity 0.4.24; contract Token { mapping (address => uint256) public balances; constructor(uint256 _initialSupply) public { balances[msg.sender] = _initialSupply; } function buy() public payable { ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
1,038
38
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
23126.sol
pragma solidity ^0.4.10; contract GasToken2 { ////////////////////////////////////////////////////////////////////////// // RLP.sol // Due to some unexplained bug, we get a slightly different bytecode if // we use an import, and are then unable to verify the code in Etherscan /////////////////////...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
13,524
332
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39290.sol
/** * Originally from https://github.com/ConsenSys/MultiSigWallet */ /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmati...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,474
369
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
39319.sol
pragma solidity ^0.4.4; /** * @title Contract for object that have an owner */ contract Owned { /** * Contract owner address */ address public owner; /** * @dev Delegate contract to another person * @param _owner New owner address */ function setOwner(address _owner) onlyOw...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
14,119
464
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34271.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,008
132
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35004.sol
pragma solidity ^ 0.4 .9; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a / b; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,042
161
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
31652.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,457
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34668.sol
pragma solidity ^0.4.6; /* Copyright 2016, Jordi Baylina This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
26,853
782
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33039.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,276
136
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33513.sol
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 pragma solidity ^0.4.18; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,028
148
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35878.sol
/******************************************************************************\ file: RegBase.sol ver: 0.3.3 updated:12-Sep-2017 author: Darryl Morris (o0ragman0o) email: o0ragman0o AT gmail.com This file is part of the SandalStraps framework `RegBase` provides an inheriting contract the minimal API to be com...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,963
429
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34694.sol
pragma solidity ^0.4.17; /* New ERC23 contract interface */ /* Recommended implementation used at https://github.com/Dexaran/ERC223-token-standard/tree/Recommended */ /* Fully backward compatible with ERC20 */ contract ERC223 { uint public totalSupply; function balanceOf(address who) public constant returns (...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
10,641
287
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
31445.sol
pragma solidity ^0.4.16; // White Money Token contract based on the full ERC20 Token standard // https://github.com/ethereum/EIPs/issues/20 // Smartcontract for WHITEMONEY Coin, for more information visit https://whitemoney.io/ // Verified Status: ERC20 Verified Token // White Money Symbol: WCO contract WHITEMONEYTok...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
8,939
225
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32434.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,412
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
864.sol
pragma solidity ^0.4.9; contract ERC223 { uint public totalSupply; function balanceOf(address who) public view returns (uint); function name() public view returns (string _name); function symbol() public view returns (string _symbol); function decimals() public view returns (uint8 _decimals); function t...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
9,401
256
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37377.sol
pragma solidity ^0.4.11; contract ERC20Interface { // Get the total token supply function totalSupply() constant returns (uint256); // Get the account balance of another account with address _owner function balanceOf(address _owner) constant returns (uint256 balance); // Send _value amount of t...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
14,906
482
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34319.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,413
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32611.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,448
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
36292.sol
pragma solidity ^0.4.15; /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { /* * Events */ event Confirmation(address indexed sender, uint indexed transactionId); event...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,634
380
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
21087.sol
pragma solidity ^0.4.17; contract TinyProxy { address public receiver; uint public gasBudget; function TinyProxy(address toAddr, uint proxyGas) public { receiver = toAddr; gasBudget = proxyGas; } function () payable public { } event FundsReleased(address to, uint amount); function release() p...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
878
38
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35421.sol
pragma solidity ^0.4.16; //User interface at http://www.staticoin.com //Full source code at https://github.com/genkifs/staticoin /** @title owned. */ contract owned { address owner; function owned() { owner = msg.sender; } function changeOwner(address newOwner) onlyOwner { owner = newOwner; } modi...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
36,782
888
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32541.sol
pragma solidity ^0.4.18; contract useContractWeb { ContractWeb internal web = ContractWeb(0x0); } contract Owned { address public owner = msg.sender; function transferOwner(address _newOwner) onlyOwner public returns (bool) { owner = _newOwner; return true; } modifier onlyOwner { require(ms...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
13,333
418
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33894.sol
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 pragma solidity ^0.4.8; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,495
134
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35078.sol
pragma solidity ^0.4.16; /** @title owned. */ contract owned { address owner; function owned() { owner = msg.sender; } function changeOwner(address newOwner) onlyOwner { owner = newOwner; } modifier onlyOwner() { require(msg.sender==owner); _; } } /** @title mortal. */ contract mortal ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
37,025
893
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37088.sol
// Copyright (C) 2017 DappHub, LLC pragma solidity ^0.4.11; //import "ds-exec/exec.sol"; contract DSExec { function tryExec( address target, bytes calldata, uint value) internal returns (bool call_ret) { return target.call.value(value)(calldata); } function exec( address target, bytes...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
15,924
600
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34987.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,412
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33474.sol
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice s...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,260
151
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33406.sol
// Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 pragma solidity ^0.4.18; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
5,880
138
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32716.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,439
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
45032.sol
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // Th...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,241
235
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40299.sol
//last compiled with soljson-v0.3.5-2016-07-21-6610add.js contract SafeMath { //internals function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { assert(b <= a); return ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,147
206
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40734.sol
pragma solidity ^0.4.18; contract Owner{ mapping (address => uint) private userBalances; mapping (address => bool) private claimedBonus; mapping (address => uint) private rewardsForA; function untrustedWithdrawReward(address recipient) public { uint amountToWithdraw = rewardsForA[recipient]; rewardsForA[recipi...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
650
22
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32623.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,433
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40343.sol
// King of the Ether Throne Contracts. // Copyright (c) 2016 Kieran Elby. Released under the MIT License. // Version 0.9.9.2, July 2016. // // See also http://www.kingoftheether.com and // https://github.com/kieranelby/KingOfTheEtherThrone . // // This file contains a number of contracts, of which only // these three ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
45,609
1,266
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37134.sol
pragma solidity ^0.4.13; /* Monetha Buyer ======================== Buys Monetha tokens from the crowdsale on your behalf. Author: /u/Cintix */ // ERC20 Interface: https://github.com/ethereum/EIPs/issues/20 contract ERC20 { function transfer(address _to, uint256 _value) returns (bool success); function balanceO...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
7,312
166
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34419.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,430
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33947.sol
pragma solidity ^0.4.16; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } ...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
10,445
304
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
36023.sol
pragma solidity ^0.4.15; /* TODO: change this to an interface definition as soon as truffle accepts it. See https://github.com/trufflesuite/truffle/issues/560 */ contract ITransferable { function transfer(address _to, uint256 _value) public returns (bool success); } /** @title PLAY Token ERC20 Token with additio...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,229
290
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35718.sol
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice s...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,387
135
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
44085.sol
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../utils/SafeERC20.sol"; import "../../DS/DSMath.sol"; import "../../auth/AdminAuth.sol"; import "../DFSExchangeHelper.sol"; import "../../interfaces/OffchainWrapperInterface.sol"; import "../../interfaces/TokenInterface.sol"; contract ScpWrapper is...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
2,655
62
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32556.sol
pragma solidity ^0.4.18; contract useContractWeb { ContractWeb internal web = ContractWeb(0xA2a7F4bf61b5bf07611739941F62Dec30541840A); } contract Owned { address public owner = msg.sender; function transferOwner(address _newOwner) onlyOwner public returns (bool) { owner = _newOwner; return true; }...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
13,342
418
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
38967.sol
/** * Originally from https://github.com/ConsenSys/MultiSigWallet */ /// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. /// @author Stefan George - <[email protected]> contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmati...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,474
369
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
33222.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,411
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
43887.sol
pragma solidity ^0.4.18; interface ERC20 { //ERC-20 Token Standard https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md function name() public view returns (string); function symbol() public view returns (string); function decimals() public view returns (uint8); function totalSupply() pub...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
8,230
249
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
35308.sol
pragma solidity ^0.4.4; contract Token { function totalSupply() constant returns (uint256 supply) {} function balanceOf(address _owner) constant returns (uint256 balance) {} function transfer(address _to, uint256 _value) returns (bool success) {} function transferFrom(address _from, address _to, uint25...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
3,378
83
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37573.sol
pragma solidity ^0.4.13; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
78,636
2,318
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
37283.sol
pragma solidity ^0.4.11; /* * ERC20 interface * see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20 { uint public totalSupply; function balanceOf(address who) constant returns (uint); function allowance(address owner, address spender) constant returns (uint); function transfer(address to, uin...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
4,985
166
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
38464.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,426
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
40393.sol
// <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize srl, Thomas Bertani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, cop...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
27,363
790
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
34350.sol
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
6,421
137
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
32560.sol
contract MultiSigWallet { /* * Events */ event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed transactionId); event Exec...
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/
2
11,455
375
/content/drive/My Drive/SC_Dataset/reentrancy (RE)/