<commit_before># -*- coding: utf-8 -*-
"""
Written by <NAME>.
Email: danaukes<at>seas.harvard.edu.
Please see LICENSE.txt for full license.
"""
#from __future__ import absolute_import

import sys
import os

from . import basic_functions

if hasattr(sys, 'frozen'):
    localpath = os.path.normpath(os.path.join(os.path.dirname(sys.executable),''))
else:
    localpath = sys.modules['popupcad'].__path__[0]

supportfiledir = os.path.normpath(os.path.join(localpath,'supportfiles'))
#licensedir = os.path.normpath(os.path.join(localpath,'../','licenses'))
backgroundpath = os.path.normpath(os.path.join(supportfiledir,'background6.png'))

flip_y = True

user_home_dir = os.path.expanduser('~')

internal_argument_scaling = 1e3

inkscape_mm_conversion = 1./282.22293
coreldraw_mm_conversion = 1./264.581 
render_mm_scaling = coreldraw_mm_conversion

zoom_max = 1.
zoom_default = .011
zoom_min = .00011

version = basic_functions.return_formatted_time(specificity = 'day',small_separator = '.',big_separator='.')

default_buffer_resolution = 4

program_name = 'popupCAD'
description = 'popupCAD: A design tool for developing laminate devices'
classifiers = ['Programming Language :: Python','Programming Language :: Python :: 3']
author = '<NAME>'
author_email = '<EMAIL>'
url = 'http://www.popupcad.com'
#import uuid
#uuid.uuid4()
windows_uuid = '{875b89db-f819-48bf-9be4-ec93f57f29c2}'

popupcad_dirname = 'popupCAD'
popupcad_home_path = os.path.normpath(os.path.join(user_home_dir,popupcad_dirname))

backup_timeout = 1000*60*5
backup_limit = 10

designdir = os.path.normpath(os.path.join(popupcad_home_path ,'designs'))
importdir = os.path.normpath(os.path.join(popupcad_home_path ,'import'))
exportdir = os.path.normpath(os.path.join(popupcad_home_path ,'export'))
scriptdir = os.path.normpath(os.path.join(popupcad_home_path ,'scripts'))
sketchdir = os.path.normpath(os.path.join(popupcad_home_path ,'sketches'))
shapedir = os.path.normpath(os.path.join(popupcad_home_path ,'shapes'))
backupdir = os.path.normpath(os.path.join(popupcad_home_path ,'backup'))

lastdir = popupcad_home_path
lastdesigndir = designdir
lastsketchdir = sketchdir
lastimportdir = importdir
lastshapedir = shapedir

subdirectories = [designdir,importdir,exportdir,scriptdir,sketchdir,shapedir,backupdir]
for path in subdirectories:
    if not os.path.isdir(path):
        os.mkdir(path)

from . import algorithms<commit_msg>fixed little bug in initialization of directories<commit_after># -*- coding: utf-8 -*-
"""
Written by <NAME>.
Email: danaukes<at>seas.harvard.edu.
Please see LICENSE.txt for full license.
"""
#from __future__ import absolute_import

import sys
import os

from . import basic_functions

if hasattr(sys, 'frozen'):
    localpath = os.path.normpath(os.path.join(os.path.dirname(sys.executable),''))
else:
    localpath = sys.modules['popupcad'].__path__[0]

supportfiledir = os.path.normpath(os.path.join(localpath,'supportfiles'))
#licensedir = os.path.normpath(os.path.join(localpath,'../','licenses'))
backgroundpath = os.path.normpath(os.path.join(supportfiledir,'background6.png'))

flip_y = True

user_home_dir = os.path.expanduser('~')

internal_argument_scaling = 1e3

inkscape_mm_conversion = 1./282.22293
coreldraw_mm_conversion = 1./264.581 
render_mm_scaling = coreldraw_mm_conversion

zoom_max = 1.
zoom_default = .011
zoom_min = .00011

version = basic_functions.return_formatted_time(specificity = 'day',small_separator = '.',big_separator='.')

default_buffer_resolution = 4

program_name = 'popupCAD'
description = 'popupCAD: A design tool for developing laminate devices'
classifiers = ['Programming Language :: Python','Programming Language :: Python :: 3']
author = '<NAME>'
author_email = '<EMAIL>'
url = 'http://www.popupcad.com'
#import uuid
#uuid.uuid4()
windows_uuid = '{875b89db-f819-48bf-9be4-ec93f57f29c2}'

popupcad_dirname = 'popupCAD'
popupcad_home_path = os.path.normpath(os.path.join(user_home_dir,popupcad_dirname))

backup_timeout = 1000*60*5
backup_limit = 10

designdir = os.path.normpath(os.path.join(popupcad_home_path ,'designs'))
importdir = os.path.normpath(os.path.join(popupcad_home_path ,'import'))
exportdir = os.path.normpath(os.path.join(popupcad_home_path ,'export'))
scriptdir = os.path.normpath(os.path.join(popupcad_home_path ,'scripts'))
sketchdir = os.path.normpath(os.path.join(popupcad_home_path ,'sketches'))
shapedir = os.path.normpath(os.path.join(popupcad_home_path ,'shapes'))
backupdir = os.path.normpath(os.path.join(popupcad_home_path ,'backup'))

lastdir = popupcad_home_path
lastdesigndir = designdir
lastsketchdir = sketchdir
lastimportdir = importdir
lastshapedir = shapedir

subdirectories = [popupcad_home_path,designdir,importdir,exportdir,scriptdir,sketchdir,shapedir,backupdir]
for path in subdirectories:
    if not os.path.isdir(path):
        os.mkdir(path)

from . import algorithms
{'fraction_non_alphanumeric': 0.135680461190035, 'fraction_numerical': 0.025118385834877497, 'mean_word_length': 6.3052631578947365, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7517171', 'n_tokens_mistral': 1840, 'n_tokens_neox': 1693, 'n_words': 293}