<commit_before>#!/usr/bin/env python
import pydfu
import openmv
import gtk
import gobject
import pango
import serial
import usb.core
import usb.util
import platform
import sys, os, os.path
from time import sleep
from os.path import expanduser
import gtkcodebuffer
from gtkcodebuffer import CodeBuffer, SyntaxLoader

try:
    # 3.x name
    import configparser
except ImportError:
    # 2.x name
    configparser = __import__("ConfigParser")

IDE_DIR      = os.path.dirname(os.path.realpath(__file__))
DATA_DIR     = os.path.join(os.path.expanduser("~"), "openmv") #use home dir
SCRIPTS_DIR  = os.path.join(DATA_DIR, "scripts")<commit_msg>Fix IDE path in py2exe<commit_after>#!/usr/bin/env python
import pydfu
import openmv
import gtk
import gobject
import pango
import serial
import usb.core
import usb.util
import platform
import sys, os, os.path
from time import sleep
from os.path import expanduser
import gtkcodebuffer
from gtkcodebuffer import CodeBuffer, SyntaxLoader

try:
    # 3.x name
    import configparser
except ImportError:
    # 2.x name
    configparser = __import__("ConfigParser")

if hasattr(sys,"frozen") and sys.frozen in ("windows_exe", "console_exe"):
    IDE_DIR=os.path.dirname(sys.executable)
else:
    IDE_DIR=os.path.dirname(os.path.realpath(__file__))

DATA_DIR     = os.path.join(os.path.expanduser("~"), "openmv") #use home dir
SCRIPTS_DIR  = os.path.join(DATA_DIR, "scripts")
{'fraction_non_alphanumeric': 0.09872159090909091, 'fraction_numerical': 0.0035511363636363635, 'mean_word_length': 4.727642276422764, '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': '2530858', 'n_tokens_mistral': 482, 'n_tokens_neox': 470, 'n_words': 133}