<commit_before>#!/usr/bin/python

import optparse
import os
import sys


def InstallWebTestOnLinux(webtest_dir):
  cwd = os.getcwd()
  try:
    print 'About to install webtest into your system python.'
    os.chdir(webtest_dir)
    result = os.system('python setup.py install')
    if result == 0:
      print 'Install successful.'
    else:
      return ('Failed to install webtest; are you missing setuptools / '
              'easy_install in your system python?')
  finally:
    os.chdir(cwd)

<commit_msg>Update install_webtest_on_linux.py<commit_after>#!/usr/bin/python

import optparse
import os
import sys


def InstallWebTestOnLinux(webtest_dir):
  cwd = os.getcwd()
  try:
    print 'About to install webtest into your system python.'
    os.chdir(webtest_dir)
    result = os.system('sudo python setup.py install')
    if result == 0:
      print 'Install successful.'
    else:
      return ('Failed to install webtest; are you missing setuptools / '
              'easy_install in your system python?')
  finally:
    os.chdir(cwd)


{'fraction_non_alphanumeric': 0.09464627151051626, 'fraction_numerical': 0.0019120458891013384, 'mean_word_length': 3.122047244094488, 'pattern_counts': {'":': 0, '<': 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': '4207221', 'n_tokens_mistral': 341, 'n_tokens_neox': 330, 'n_words': 100}