<commit_before>import os, sys, platform, subprocess
import cherrypy, htpc
from htpc.proxy import getImage
import urllib, urllib2, base64
import Image, ImageEnhance
from jsonrpclib import Server
from json import loads
import socket, struct

from sqlobject import *

class XbmcServers(SQLObject):
    name = StringCol()
    host = StringCol()
    port = IntCol()
    username = StringCol(default=None)
    password = StringCol(default=None)
    mac = StringCol(default=None)

class Xbmc:
    def __init__(self):
        # xbmc.XBMC.GetInfoLabels(labels=["Network.MacAddress"])
        XbmcServers.createTable(ifNotExists=True)
        htpc.modules.append({
            'name': 'XBMC',
            'id': 'xbmc',
            'fields': [
                {'type':'bool', 'label':'Enable', 'name':'xbmc_enable'},
                {'type':'text', 'label':'Menu name', 'name':'xbmc_name'},<commit_msg>Removed several imports from the xbmc module since the code is moved to the proxy<commit_after>import os, sys, cherrypy, htpc
import urllib2, base64
import socket, struct
from htpc.proxy import getImage
from jsonrpclib import Server
from sqlobject import *

class XbmcServers(SQLObject):
    name = StringCol()
    host = StringCol()
    port = IntCol()
    username = StringCol(default=None)
    password = StringCol(default=None)
    mac = StringCol(default=None)

class Xbmc:
    def __init__(self):
        # xbmc.XBMC.GetInfoLabels(labels=["Network.MacAddress"])
        XbmcServers.createTable(ifNotExists=True)
        htpc.modules.append({
            'name': 'XBMC',
            'id': 'xbmc',
            'fields': [
                {'type':'bool', 'label':'Enable', 'name':'xbmc_enable'},
                {'type':'text', 'label':'Menu name', 'name':'xbmc_name'},
{'fraction_non_alphanumeric': 0.1298922291548497, 'fraction_numerical': 0.003403289846851957, 'mean_word_length': 3.291970802919708, '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': '4069272', 'n_tokens_mistral': 576, 'n_tokens_neox': 553, 'n_words': 134}