<commit_before># futarchy

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/josiahwood/futarchy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Compile Instructions:

install truffle
install eth-testrpc

run command
> git clone "https://github.com/josiahwood/futarchy.git"
cd futarchy
truffle deploy

Troubleshooting:

> The contract code couldn't be stored, please check your gas amount.

  This issue could be caused by a small gas limit.

  if that is the case then raising the default gas limit when deploying a contract should fix the issue.

  To change the gas limit I needed to access where this variable is set in the code and change it to 314,159,265 (or some other arbitrary number)
  I used vim to change the file but I think any text editor can be used as long as it has root permissions.


open terminal:
> npm list -g truffle;

this will give you the location of where truffle is install on your machine if it is install globally...
if it is installed locally then I think the command for that is
>npm bin

after you know where truffle is installed...

>cd [truffle location]/truffle/lib/
sudo vim contracts.es6

there should be a line of code like this
>contract.new({
            from: coinbase,
            gas: 3141592,
            gasPrice: 1000000000000 // I'm not sure why this is so high. geth made me do it.
          }).then(function(instance) {
            contract_class.address = instance.address;
            callback(null, contract_class);
          }).catch(function(err) {
            callback(new DeployError(err.message, key));
          });

change the gas to a bigger or arbitrary value and save<commit_msg>formatting of readme<commit_after># futarchy

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/josiahwood/futarchy?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Compile Instructions:

<p>install truffle
<p>install eth-testrpc

run command
> git clone "https://github.com/josiahwood/futarchy.git"
>cd futarchy
>truffle deploy

Troubleshooting:

> The contract code couldn't be stored, please check your gas amount.

  This issue could be caused by a small gas limit.

  if that is the case then raising the default gas limit when deploying a contract should fix the issue.

  To change the gas limit I needed to access where this variable is set in the code and change it to 314,159,265 (or some other arbitrary number)
  I used vim to change the file but I think any text editor can be used as long as it has root permissions.


open terminal:
> npm list -g truffle;

this will give you the location of where truffle is install on your machine if it is install globally...
if it is installed locally then I think the command for that is
>npm bin

after you know where truffle is installed...

>cd [truffle location]/truffle/lib/
>sudo vim contracts.es6

there should be a line of code like this
>contract.new({
>            from: coinbase,
>            gas: 3141592,
>            gasPrice: 1000000000000 // I'm not sure why this is so high. geth made me do it.
>          }).then(function(instance) {
>            contract_class.address = instance.address;
>            callback(null, contract_class);
>          }).catch(function(err) {
>            callback(new DeployError(err.message, key));
>          });

change the gas to a bigger or arbitrary value and save
{'fraction_non_alphanumeric': 0.07735130383826545, 'fraction_numerical': 0.0187518312335189, 'mean_word_length': 3.3825417201540438, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6086039', 'n_tokens_mistral': 1051, 'n_tokens_neox': 978, 'n_words': 423}