hash stringlengths 64 64 | size int64 7k 624k | ext stringclasses 1
value | lang stringclasses 1
value | is_test bool 2
classes | repo_id stringclasses 846
values | repo_name stringclasses 846
values | repo_head stringclasses 846
values | repo_path stringlengths 7 155 | content_tokens int64 1.82k 42.6k | content_chars int64 6.85k 58.7k | content stringlengths 6.85k 58.7k | __index_level_0__ int64 84 346k | id int64 0 14.2k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53ce80b6f1cafc1afd3d942a143fa7d85e4e6b38eccdc6331a12f242cdc1b728 | 12,811 | .sol | Solidity | false | 287517600 | renardbebe/Smart-Contract-Benchmark-Suites | a071ccd7c5089dcaca45c4bc1479c20a5dcf78bc | dataset/UR/0xa9f06cf165fe40f6e52f5765389f2d79dfc567ff.sol | 3,404 | 12,735 | pragma solidity ^0.4.13;
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;
... | 165,552 | 0 |
4addd10ff838b4b06774035b9479473f7516105db0d30db481dd1500038c88cb | 21,348 | .sol | Solidity | false | 504446259 | EthereumContractBackdoor/PiedPiperBackdoor | 0088a22f31f0958e614f28a10909c9580f0e70d9 | contracts/realworld-contracts/0xf2a7c7f3932efcc2ecb6b2c372b84030de191db0.sol | 3,345 | 12,231 | pragma solidity 0.4.19;
// File: node_modules/zeppelin-solidity/contracts/ownership/Ownable.sol
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
owner = msg.sender;
}
modifier onlyOwner() {
require... | 147,926 | 1 |
7a9e85e8d75ccb41352d4915c3ea6eccbffa83068a0dc80ef0f5dad0ea8fcf41 | 29,901 | .sol | Solidity | false | 481422385 | helix-bridge/contracts | 9502f23dac3178911f8211f4dde3160ec97c7a6d | helix-contract/flatten/sub2eth/TransparentUpgradeableProxy.sol | 3,316 | 13,167 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
// File @zeppelin-solidity/contracts/proxy/Proxy.sol@v4.7.3
// License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)
abstract contract Proxy {
function _delegate(address implementation) internal virtual {
assembly {... | 235,532 | 2 |
b03bc9d5e596dd5470dafbc396f81c04600cdf95b1a293b1e1539d52cc294b90 | 17,200 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | sorted-evaluation-dataset/0.5/0xe4c577bdec9ce0f6c54f2f82aed5b1913b71ae2f.sol | 3,544 | 13,565 | pragma solidity ^0.5.0;
interface IGST2 {
function freeUpTo(uint256 value) external returns (uint256 freed);
function freeFromUpTo(address from, uint256 value) external returns (uint256 freed);
function balanceOf(address who) external view returns (uint256);
}
library ExternalCall {
// Source: https://g... | 211,349 | 3 |
59c0556ba3b16e3a88f7954b060ce9d75c57f57c6aa510799c5301a115c2168c | 11,636 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | sorted-evaluation-dataset/0.5/0x9b041285587b701b703cbb40256558f0f3b94ed3.sol | 3,061 | 10,965 | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity au... | 217,930 | 4 |
2fa3c65176f84a6ef94a3305fa257188be17509bcad271b280a039cc6efca8e5 | 16,490 | .sol | Solidity | false | 454032456 | tintinweb/smart-contract-sanctuary-avalanche | 39792ff211cb89e79e9eb6ee7278f6843acb5cc6 | contracts/mainnet/65/6560051ead959645eeec16cbbf81fecc384ab95a_AVAXNation.sol | 3,940 | 15,655 | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
... | 95,831 | 5 |
cb6610087b741b19108b7bca3de604c243b4a56e256bb6ceda00c97c3df77212 | 12,626 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | sorted-evaluation-dataset/0.5/0x8fd8599b06a13218e6550f5a77961a201543564c.sol | 2,690 | 10,277 | pragma solidity ^0.4.25;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _ext... | 217,526 | 6 |
572635e0ddb274e2b30d9cd81791a3da909a2d05779900a7f31b0c0ceddd42d7 | 28,967 | .sol | Solidity | false | 413505224 | HysMagus/bsc-contract-sanctuary | 3664d1747968ece64852a6ac82c550aff18dfcb5 | 0xF6cEb88BC891051eDbfDa5D7cf1fB88fd7d78eaC/contract.sol | 5,103 | 18,269 | pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
interface IBEP20 {
function totalSup... | 250,015 | 7 |
dcd322eaa50e6064dd04b5ccea30055458af33dcfde16495200392c9c6b37b35 | 18,468 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | evaluation-dataset/0x904afb631a24881d8af2ef57dce1e9d6f117dcb6.sol | 2,820 | 10,293 | pragma solidity ^0.4.25;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner,
address indexed newOwner);
constructor() internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
function owner() public view returns(address) {
... | 208,455 | 8 |
f49c997c2d12d46bbc5e4b5b8df9e0c0562f44c7718c67bbc5db1fe8ee37d655 | 18,283 | .sol | Solidity | false | 454032456 | tintinweb/smart-contract-sanctuary-avalanche | 39792ff211cb89e79e9eb6ee7278f6843acb5cc6 | contracts/testnet/b0/b0bc3210b14b59b8708884884a895d6bd79d9d59_Pot.sol | 3,153 | 11,796 | // SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);
func... | 104,802 | 9 |
b032cffe925f77be22a476a16b44d23a552f0ab03f7d8144d6026c3f82a00be0 | 20,181 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | sorted-evaluation-dataset/0.5/0x0e752b742f744fdc2d93774da44c37b72c3e6952.sol | 3,226 | 11,856 | pragma solidity ^0.4.18;
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)... | 218,093 | 10 |
8292e2e5b97a9147ef6e2774e3ac94641c6488d549e9271c039feafcbb0cc1b7 | 11,963 | .sol | Solidity | false | 519123139 | JolyonJian/contracts | b48d691ba0c2bfb014a03e2b15bf7faa40900020 | contracts/507_179128_0x090185f2135308bad17527004364ebcc2d37e5f6.sol | 3,110 | 11,230 | // SPDX-License-Identifier: MIT
// .d8888b. 888 888
// d88P Y88b 888 888
// Y88b. 888 888
// "Y888b. 88888b. .d88b. 888 888
// "Y88b. 888 "88b d8P Y8b 888 888
// "888 888 888 88888888 888 888
// Y88b d88P 888 d88P Y8b. 888... | 231,403 | 11 |
b873d53c001850bf49e8f2ce00e9ccaab714af737656ee2a67e4ad3c2c36b605 | 30,552 | .sol | Solidity | false | 413505224 | HysMagus/bsc-contract-sanctuary | 3664d1747968ece64852a6ac82c550aff18dfcb5 | 0xbf29F08404C3efa8CcF679c51eFA0b65F1fCFa78/contract.sol | 3,914 | 15,282 | // SPDX-License-Identifier: MIT
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
abstract contract Ownable is Con... | 257,692 | 12 |
163911596c83f7e569325c37532b2c2a17555e734f6731fee41ecd61551951bd | 21,065 | .sol | Solidity | false | 416581097 | NoamaSamreen93/SmartScan-Dataset | 0199a090283626c8f2a5e96786e89fc850bdeabd | sorted-evaluation-dataset/0.5/0xe7750c38c9a10d877650c0d99d1717bb28a5c42e.sol | 3,050 | 11,575 | pragma solidity ^0.5.2;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solid... | 214,887 | 13 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 8