Dataset Viewer
Auto-converted to Parquet Duplicate
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)/
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
9