<commit_before>import requests
import json
import time
import hashlib
import fabric

ip_address = "vm"
port = "3000"
url = ''.join(['http://', ip_address, ':', port])

from fabric.api import task, run, env
from fabric.tasks import execute

env.user = 'vagrant'
env.password = '<PASSWORD>'

def set_port(new_port):
    global port, url

    port = new_port
    url = ''.join(['http://', ip_address, ':', port])

def set_server(new_server):
    global ip_address, url

    ip_address = new_server
    url = ''.join(['http://', ip_address, ':', port])

@task
def _send_bc(address):
    run("bitcoind sendtoaddress %s 1" % address)

@task
def _get_mine_address():
    return run("RDTSC_FREQUENCY=2500 /usr/bin/PoolWrapper")

@task
def _newblock():
    return run("/usr/bin/NewBlock gobbledygook")

@task
def _mine_user(username):
    return run("/usr/bin/MineUserTest %s" % username)

@task
def _flush_db():
    run("redis-cli FLUSHALL")

def send_1btc(address):
    execute(_send_bc,address, host='vm')

def get_mine_addr():<commit_msg>Stop the stupid autoconfigure from happening<commit_after>import requests
import json
import time
import hashlib
import fabric

ip_address = "vm"
port = "3000"
url = ''.join(['http://', ip_address, ':', port])

from fabric.api import task, run, env
from fabric.tasks import execute

env.user = 'vagrant'
env.password = '<PASSWORD>'

def set_port(new_port):
    global port, url

    port = new_port
    url = ''.join(['http://', ip_address, ':', port])

def set_server(new_server):
    global ip_address, url

    ip_address = new_server
    url = ''.join(['http://', ip_address, ':', port])

@task
def _send_bc(address):
    run("bitcoind sendtoaddress %s 1" % address)

@task
def _get_mine_address():
    return run("RDTSC_FREQUENCY=2500 /usr/bin/PoolWrapper")

@task
def _newblock():
    return run("RDTSC_FREQUENCY=2500 /usr/bin/NewBlock gobbledygook")

@task
def _mine_user(username):
    return run("RDTSC_FREQUENCY=2500 /usr/bin/MineUserTest %s" % username)

@task
def _flush_db():
    run("redis-cli FLUSHALL")

def send_1btc(address):
    execute(_send_bc,address, host='vm')

def get_mine_addr():
{'fraction_non_alphanumeric': 0.14866760168302945, 'fraction_numerical': 0.013090229079008883, 'mean_word_length': 4.515463917525773, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7421167', 'n_tokens_mistral': 798, 'n_tokens_neox': 767, 'n_words': 190}