<commit_before>#!/usr/bin/env python
#
# Copyright (c) 2013 GhostBSD
#
# See COPYING for licence terms.
#
# install.py v 0.4 Sunday, February 08 2015 <NAME>
#
# install.py give the job to pc-sysinstall to install GhostBSD.

import gtk
import gobject
import webkit
import threading
import locale
import os
from subprocess import Popen, PIPE, STDOUT, call
from time import sleep
from partition_handler import rDeleteParttion, destroyParttion, makingParttion

tmp = "/home/ghostbsd/.gbi/"
gbi_path = "/usr/local/lib/gbi/"
sysinstall = "/usr/local/bin/pc-sysinstall"

encoding = locale.getpreferredencoding()
utf8conv = lambda x: str(x, encoding).encode('utf8')
threadBreak = False
gobject.threads_init()


def close_application(self, widget):
    gtk.main_quit()


def read_output(command, window, probar):
    probar.set_text("Beginning installation")
    sleep(2)
    probar.set_text("Creating partition table")
    sleep(2)<commit_msg>change bin to sbin for pc-sysinstall<commit_after>#!/usr/bin/env python
#
# Copyright (c) 2013 GhostBSD
#
# See COPYING for licence terms.
#
# install.py v 0.4 Sunday, February 08 2015 <NAME>
#
# install.py give the job to pc-sysinstall to install GhostBSD.

import gtk
import gobject
import webkit
import threading
import locale
import os
from subprocess import Popen, PIPE, STDOUT, call
from time import sleep
from partition_handler import rDeleteParttion, destroyParttion, makingParttion

tmp = "/home/ghostbsd/.gbi/"
gbi_path = "/usr/local/lib/gbi/"
sysinstall = "/usr/local/sbin/pc-sysinstall"

encoding = locale.getpreferredencoding()
utf8conv = lambda x: str(x, encoding).encode('utf8')
threadBreak = False
gobject.threads_init()


def close_application(self, widget):
    gtk.main_quit()


def read_output(command, window, probar):
    probar.set_text("Beginning installation")
    sleep(2)
    probar.set_text("Creating partition table")
    sleep(2)
{'fraction_non_alphanumeric': 0.1061246040126716, 'fraction_numerical': 0.01689545934530095, 'mean_word_length': 4.86687306501548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2828015', 'n_tokens_mistral': 657, 'n_tokens_neox': 607, 'n_words': 180}