<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
from time import sleep
from fabric.api import *
from fabric.contrib.console import confirm
from fabric.contrib.files import exists
from fabric.decorators import task
from fabric.utils import abort
from fabfile_local import *
from subprocess import call
from datetime import datetime

# Environments

# Define custom environments in a file in this directory called fabfile_local.py

@task
def beta():
    "Use the beta-testing webserver."
    env.hosts = ['beta.editorsnotes.org']
    env.project_path = '/db/projects/%(project_name)s-beta' % env
    env.vhosts_path = '/etc/httpd/sites.d'
    env.python = '/usr/bin/python2.7'

@task
def pro():
    "Use the production webserver."
    env.hosts = ['editorsnotes.org']
    env.project_path = '/db/projects/%(project_name)s' % env
    env.vhosts_path = '/etc/httpd/sites.d'
    env.python = '/usr/bin/python2.7'

# Tasks
<commit_msg>Only import fabfile_local if it exists<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
from time import sleep
from fabric.api import *
from fabric.contrib.console import confirm
from fabric.contrib.files import exists
from fabric.decorators import task
from fabric.utils import abort
from subprocess import call
from datetime import datetime

# Environments

# Define custom environments in a file in this directory called fabfile_local.py
try:
    from fabfile_local import *
except:
    pass

@task
def beta():
    "Use the beta-testing webserver."
    env.hosts = ['beta.editorsnotes.org']
    env.project_path = '/db/projects/%(project_name)s-beta' % env
    env.vhosts_path = '/etc/httpd/sites.d'
    env.python = '/usr/bin/python2.7'

@task
def pro():
    "Use the production webserver."
    env.hosts = ['editorsnotes.org']
    env.project_path = '/db/projects/%(project_name)s' % env
    env.vhosts_path = '/etc/httpd/sites.d'
    env.python = '/usr/bin/python2.7'

# Tasks

{'fraction_non_alphanumeric': 0.11723092470944922, 'fraction_numerical': 0.005053057099545225, 'mean_word_length': 3.6588235294117646, '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': '762751', 'n_tokens_mistral': 647, 'n_tokens_neox': 630, 'n_words': 182}