<commit_before>import subprocess
import sys
import os
import setup_util
import time

def start(args):
  setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)")
  subprocess.call("go get github.com/robfig/revel/cmd", shell=True, cwd="revel")
  subprocess.call("go build -o bin/revel github.com/robfig/revel/cmd", shell=True, cwd="revel")
  subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd="revel")
  return 0

def stop():
  p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
  out, err = p.communicate()
  for line in out.splitlines():
    if 'revel' in line:
      pid = int(line.split(None, 2)[1])
      os.kill(pid, 9)
  return 0<commit_msg>setup file was killing test runner<commit_after>import subprocess
import sys
import os
import setup_util
import time

def start(args):
  setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)")
  subprocess.call("go get github.com/robfig/revel/cmd", shell=True, cwd="revel")
  subprocess.call("go build -o bin/revel github.com/robfig/revel/cmd", shell=True, cwd="revel")
  subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd="revel")
  return 0

def stop():
  p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
  out, err = p.communicate()
  for line in out.splitlines():
    if 'revel' in line and 'run-tests' not in line:
      pid = int(line.split(None, 2)[1])
      os.kill(pid, 9)
  return 0
{'fraction_non_alphanumeric': 0.1687624090006618, 'fraction_numerical': 0.017207147584381206, 'mean_word_length': 4.478260869565218, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '7507196', 'n_tokens_mistral': 577, 'n_tokens_neox': 552, 'n_words': 129}