<commit_before># -*- coding: utf-8 -*-
# Django settings for pyload project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

import os.path
import sys
import xmlrpclib

SERVER_VERSION = "0.3"

PROJECT_DIR = os.path.dirname(__file__)

#chdir(dirname(abspath(__file__)) + sep)

PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..")

sys.path.append(os.path.join(PYLOAD_DIR, "module"))
from XMLConfigParser import XMLConfigParser
config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"))

#DEBUG = config.get("general","debug")


ssl = ""

if config.get("ssl", "activated") == "True":
    ssl = "s"

server_url = "http%s://%s:%s@%s:%s/" % (
                                        ssl,
                                        config.get("remote", "username"),
                                        config.get("remote", "password"),
                                        config.get("remote", "listenaddr"),
                                        config.get("remote", "port")
                                        )

PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True)

TEMPLATE = config.get('webinterface','template')
DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder'))
LOG_ROOT = os.path.join(PYLOAD_DIR, config.get('log','log_folder'))

ADMINS = (<commit_msg>fixed webserver<commit_after># -*- coding: utf-8 -*-
# Django settings for pyload project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

import os.path
import sys
import xmlrpclib

SERVER_VERSION = "0.3"

PROJECT_DIR = os.path.dirname(__file__)

#chdir(dirname(abspath(__file__)) + sep)

PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..")

sys.path.append(os.path.join(PYLOAD_DIR, "module"))
from XMLConfigParser import XMLConfigParser
config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"), os.path.join(PYLOAD_DIR,"module","config","core_default.xml"))

#DEBUG = config.get("general","debug")


ssl = ""

if config.get("ssl", "activated") == "True":
    ssl = "s"

server_url = "http%s://%s:%s@%s:%s/" % (
                                        ssl,
                                        config.get("remote", "username"),
                                        config.get("remote", "password"),
                                        config.get("remote", "listenaddr"),
                                        config.get("remote", "port")
                                        )

PYLOAD = xmlrpclib.ServerProxy(server_url, allow_none=True)

TEMPLATE = config.get('webinterface','template')
DL_ROOT = os.path.join(PYLOAD_DIR, config.get('general','download_folder'))
LOG_ROOT = os.path.join(PYLOAD_DIR, config.get('log','log_folder'))

ADMINS = (
{'fraction_non_alphanumeric': 0.15911643579183826, 'fraction_numerical': 0.0022463496817671283, 'mean_word_length': 2.4081632653061225, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1741912', 'n_tokens_mistral': 800, 'n_tokens_neox': 790, 'n_words': 134}