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

from os.path import join as path_join, realpath, abspath, dirname
import os
import sys
import yaml
import logging

logging.basicConfig(level=logging.DEBUG)

SDK_DIR_PATH = abspath(dirname(realpath(__file__)))
LIB_DIR_PATH = path_join(SDK_DIR_PATH, 'lib')

EXTRA_LIB_PATH = [
    LIB_DIR_PATH,
    path_join(LIB_DIR_PATH, 'subcommand'),
    path_join(LIB_DIR_PATH, 'appengine'),
]
sys.path = EXTRA_LIB_PATH + sys.path

CONFIG_FILE_NAME = 'config.yaml'
CONFIG_FILE_PATH = path_join(SDK_DIR_PATH, CONFIG_FILE_NAME)

CONFIG = yaml.load(open(CONFIG_FILE_PATH, 'r').read())

PROJECT_CONFIG_FILE_NAME = 'puppy.yaml'

IGNORE_PATTERNS = ['*~', '*.swp', '*.bak', '.DS_Store', '__MACOSX', '__MACOSX__', 'Thumbs.db', 'Desktop.ini']
WATCH_IGNORE_PATTERNS = IGNORE_PATTERNS + ['.*']
WATCH_PATHS = ['media']
REPOSITORY_IGNORE_PATTERNS = IGNORE_PATTERNS

FRAMEWORK_GAE_PYTHON = 'google-app-engine-python'

DEFAULT_APP_DIR = 'app'
DEFAULT_MEDIA_DIR = 'media'
DEFAULT_FRAMEWORK = FRAMEWORK_GAE_PYTHON
DEFAULT_SERVER_PORT = '8000'
DEFAULT_SERVER_HOST = '0.0.0.0'

DEFAULT_TEMPLATES_DEST_DIR = 'templates'
DEFAULT_MEDIA_DEST_DIR = 'public'
DEFAULT_MEDIA_SRC_DIR = 'media'

SCHEDULED_BUILD_DELAY = 2   # seconds

# Compass arguments
COMPASS = 'compass'
COMPASS_CONFIG = 'compass_config.rb'
COMPASS_ARGS = ['-q']
SASS_PATTERNS = ['.sass', '.css']

# Scons arguments.
SCONS = 'scons'
SITE_SCONS_DIR_PATH = path_join(SDK_DIR_PATH, 'site_scons')
SCONS_ARGS = ['-s', '-Q', '--site-dir=' + SITE_SCONS_DIR_PATH]
SCONS_BUILD_ARGS = SCONS_ARGS + ['-j', '4']
SCONS_CLEAN_ARGS = SCONS_ARGS + ['-c']

SERVER_SCRIPTS = {
    'google-app-engine': 'dev_appserver.py'
}
<commit_msg>don't quiet scons so much that we don't see any commands<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from os.path import join as path_join, realpath, abspath, dirname
import os
import sys
import yaml
import logging

logging.basicConfig(level=logging.DEBUG)

SDK_DIR_PATH = abspath(dirname(realpath(__file__)))
LIB_DIR_PATH = path_join(SDK_DIR_PATH, 'lib')

EXTRA_LIB_PATH = [
    LIB_DIR_PATH,
    path_join(LIB_DIR_PATH, 'subcommand'),
    path_join(LIB_DIR_PATH, 'appengine'),
]
sys.path = EXTRA_LIB_PATH + sys.path

CONFIG_FILE_NAME = 'config.yaml'
CONFIG_FILE_PATH = path_join(SDK_DIR_PATH, CONFIG_FILE_NAME)

CONFIG = yaml.load(open(CONFIG_FILE_PATH, 'r').read())

PROJECT_CONFIG_FILE_NAME = 'puppy.yaml'

IGNORE_PATTERNS = ['*~', '*.swp', '*.bak', '.DS_Store', '__MACOSX', '__MACOSX__', 'Thumbs.db', 'Desktop.ini']
WATCH_IGNORE_PATTERNS = IGNORE_PATTERNS + ['.*']
WATCH_PATHS = ['media']
REPOSITORY_IGNORE_PATTERNS = IGNORE_PATTERNS

FRAMEWORK_GAE_PYTHON = 'google-app-engine-python'

DEFAULT_APP_DIR = 'app'
DEFAULT_MEDIA_DIR = 'media'
DEFAULT_FRAMEWORK = FRAMEWORK_GAE_PYTHON
DEFAULT_SERVER_PORT = '8000'
DEFAULT_SERVER_HOST = '0.0.0.0'

DEFAULT_TEMPLATES_DEST_DIR = 'templates'
DEFAULT_MEDIA_DEST_DIR = 'public'
DEFAULT_MEDIA_SRC_DIR = 'media'

SCHEDULED_BUILD_DELAY = 2   # seconds

# Compass arguments
COMPASS = 'compass'
COMPASS_CONFIG = 'compass_config.rb'
COMPASS_ARGS = ['-q']
SASS_PATTERNS = ['.sass', '.css']

# Scons arguments.
SCONS = 'scons'
SITE_SCONS_DIR_PATH = path_join(SDK_DIR_PATH, 'site_scons')
SCONS_ARGS = ['-Q', '--site-dir=' + SITE_SCONS_DIR_PATH]
SCONS_BUILD_ARGS = SCONS_ARGS + ['-j', '4']
SCONS_CLEAN_ARGS = SCONS_ARGS + ['-c']

SERVER_SCRIPTS = {
    'google-app-engine': 'dev_appserver.py'
}

{'fraction_non_alphanumeric': 0.14198782961460446, 'fraction_numerical': 0.006374963778614894, 'mean_word_length': 6.059304703476482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6828471', 'n_tokens_mistral': 1467, 'n_tokens_neox': 1400, 'n_words': 237}