<commit_before><html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Solidity realtime compiler and runtime</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style type="text/css">
body {
    padding: 0px;
    font-size: 12px;
    color: #111111;
}
#editor {
    position: absolute;
    top: 0;
    left: 0px;
    width: auto;
    bottom: 0px;
    right: 32em;
    
}
#input {
    font-size: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#righthand-panel {
    position: absolute;
    top: 0;
    width: 32em;
    right: 0;
    bottom: 0px;
    overflow: auto;
    border-left: 1px solid #ccc;
}

#output {
    border-top: 1px solid #ccc;
    position: absolute;
    top: 18em;
    width: 32em;
    right: 0;
    bottom: 0px;
}

#header {
    font-size: 14px;
    padding: 1em;
    font-size: 12px;
    height: 18em;
}

#header h1 {
    margin-top: 0;
}

#header .info { clear: left; }

#header #solIcon {
    float: left;
    height: 5em;
}

.col1 {
    width: 30%;
    float: left;
}
.col2 {
    width: 70%;
    float: left;
}

.row {
    overflow: auto;
}
.gethDeployText {
    border-color: #bebebe;
    height: 2.5em;
    width: 100%;
    display: block;
}
.runButton {
    width: 16em;
    text-align: left;
    overflow: hidden;
    margin-right: 0.6em;
}
.contractInstance {
    margin-left: 2em;
    margin-bottom: 20px;
}


.contractOutput {
    border-bottom: 1px solid #ccc;
    padding: 0.4em;
    box-sizing: border-box;
}

.contractOutput .title {
    margin: 0;
    cursor: pointer;
}

.contractOutput .body {
    display: none;
    margin-top: 10px;
}

.contractOutput.show .body {
    display: block;
}

.contractOutput .title:before {
    content: "\25B6";
    color: #ccc;
    margin-right: 0.4em;
    font-size: 10px;
}

.contractOutput.show .title:before {
    content: "\25BC";
}


.solError {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.5);
    z-index:40;
}

.error {
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 0;
    border: 0 none;
}

</style>
<script src="libs/jquery-2.1.3.min.js"></script>
<script src="libs/ace.js"></script>
<script src="mode-solidity.js"></script>
<script src="soljson.js"></script>
<script src="ethereumjs-vm.js"></script>
<script src="web3.min.js"></script>
</head>
<body>
    <div id="editor">
        <div id="input">contract Ballot {
    struct Voter {
        uint weight;
        bool voted
        uint8 vote;
        address delegate;
    }
    struct Proposal {
        uint voteCount;
    }
}
        </div>
    </div>
<commit_msg>re-add demo ballot<commit_after><html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Solidity realtime compiler and runtime</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<style type="text/css">
body {
    padding: 0px;
    font-size: 12px;
    color: #111111;
}
#editor {
    position: absolute;
    top: 0;
    left: 0px;
    width: auto;
    bottom: 0px;
    right: 32em;
    
}
#input {
    font-size: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#righthand-panel {
    position: absolute;
    top: 0;
    width: 32em;
    right: 0;
    bottom: 0px;
    overflow: auto;
    border-left: 1px solid #ccc;
}

#output {
    border-top: 1px solid #ccc;
    position: absolute;
    top: 18em;
    width: 32em;
    right: 0;
    bottom: 0px;
}

#header {
    font-size: 14px;
    padding: 1em;
    font-size: 12px;
    height: 18em;
}

#header h1 {
    margin-top: 0;
}

#header .info { clear: left; }

#header #solIcon {
    float: left;
    height: 5em;
}

.col1 {
    width: 30%;
    float: left;
}
.col2 {
    width: 70%;
    float: left;
}

.row {
    overflow: auto;
}
.gethDeployText {
    border-color: #bebebe;
    height: 2.5em;
    width: 100%;
    display: block;
}
.runButton {
    width: 16em;
    text-align: left;
    overflow: hidden;
    margin-right: 0.6em;
}
.contractInstance {
    margin-left: 2em;
    margin-bottom: 20px;
}


.contractOutput {
    border-bottom: 1px solid #ccc;
    padding: 0.4em;
    box-sizing: border-box;
}

.contractOutput .title {
    margin: 0;
    cursor: pointer;
}

.contractOutput .body {
    display: none;
    margin-top: 10px;
}

.contractOutput.show .body {
    display: block;
}

.contractOutput .title:before {
    content: "\25B6";
    color: #ccc;
    margin-right: 0.4em;
    font-size: 10px;
}

.contractOutput.show .title:before {
    content: "\25BC";
}


.solError {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.5);
    z-index:40;
}

.error {
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 0;
    border: 0 none;
}

</style>
<script src="libs/jquery-2.1.3.min.js"></script>
<script src="libs/ace.js"></script>
<script src="mode-solidity.js"></script>
<script src="soljson.js"></script>
<script src="ethereumjs-vm.js"></script>
<script src="web3.min.js"></script>
</head>
<body>
    <div id="editor">
        <div id="input">contract Ballot {
    struct Voter {
        uint weight;
        bool voted;
        uint8 vote;
        address delegate;
    }
    struct Proposal {
        uint voteCount;
    }

    address chairperson;
    mapping(address => Voter) voters;
    Proposal[] proposals;

    // Create a new ballot with $(_numProposals) different proposals.
    function Ballot(uint8 _numProposals) {
        chairperson = msg.sender;
        voters[chairperson].weight = 1;
        proposals.length = _numProposals;
    }

    // Give $(voter) the right to vote on this ballot.
    // May only be called by $(chairperson).
    function giveRightToVote(address voter) {
        if (msg.sender != chairperson || voters[voter].voted) return;
        voters[voter].weight = 1;
    }

    // Delegate your vote to the voter $(to).
    function delegate(address to) {
        Voter sender = voters[msg.sender]; // assigns reference
        if (sender.voted) return;
        while (voters[to].delegate != address(0) && voters[to].delegate != msg.sender)
            to = voters[to].delegate;
        if (to == msg.sender) return;
        sender.voted = true;
        sender.delegate = to;
        Voter delegate = voters[to];
        if (delegate.voted)
            proposals[delegate.vote].voteCount += sender.weight;
        else
            delegate.weight += sender.weight;
    }

    // Give a single vote to proposal $(proposal).
    function vote(uint8 proposal) {
        Voter sender = voters[msg.sender];
        if (sender.voted || proposal >= proposals.length) return;
        sender.voted = true;
        sender.vote = proposal;
        proposals[proposal].voteCount += sender.weight;
    }

    function winningProposal() constant returns (uint8 winningProposal) {
        uint256 winningVoteCount = 0;
        for (uint8 proposal = 0; proposal < proposals.length; proposal++) {
            if (proposals[proposal].voteCount > winningVoteCount) {
                winningVoteCount = proposals[proposal].voteCount;
                winningProposal = proposal;
            }
            ++proposal;
        }
    }
}
        </div>
    </div>

{'fraction_non_alphanumeric': 0.14661855118952152, 'fraction_numerical': 0.028869286287089013, 'mean_word_length': 2.506560449859419, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 64, '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': '3156955', 'n_tokens_mistral': 2836, 'n_tokens_neox': 2634, 'n_words': 630}