<commit_before>#
# Created by <NAME>. on 13/01/2016
#

from HTMLParser import HTMLParser
from xml.dom.minidom import Document
from string import Template
import os, errno
import shutil
import sys

if (len(sys.argv) != 3):
    print 'Usage: python', sys.argv[0], 'icons-references.html Fontxxx.ttf'
    exit(1)

# configuration
fontname = 'fontastic'           # Change this before launching the script
fontname = fontname.title()
fontpath = 'font' + fontname + '/'
assetspath = 'font' + fontname + '/src/main/assets/'
javapath = 'font' + fontname + '/src/main/java/fr/cobaltians/fonts/font' + fontname + '/'
drawablepath = 'font' + fontname + '/src/main/res/drawable/'
valuepath = 'font' + fontname + '/src/main/res/values/'

# storage
names = []
glyphs = []

print 'Starting to create ' + fontname + ' package.' 

# creating package architecture
def mkdir_p(path):
    print 'Creating path:', path
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else: raise

print 'Creating package architecture...'<commit_msg>Update fontasticToCobalt.py<commit_after>#
# Created by <NAME>. on 13/01/2016
#

from HTMLParser import HTMLParser
from xml.dom.minidom import Document
from string import Template
import os, errno
import shutil
import sys

if (len(sys.argv) != 3):
    print 'Usage: python', sys.argv[0], 'icons-references.html Fontxxx.ttf'
    exit(1)

# configuration
fontname = 'fontastic'           # Change this before launching the script
fontname = fontname.title()
fontpath = 'font' + fontname + '/'
assetspath = 'font' + fontname + '/src/main/assets/'
javapath = 'font' + fontname + '/src/main/java/org/cobaltians/fonts/font' + fontname + '/'
drawablepath = 'font' + fontname + '/src/main/res/drawable/'
valuepath = 'font' + fontname + '/src/main/res/values/'

# storage
names = []
glyphs = []

print 'Starting to create ' + fontname + ' package.' 

# creating package architecture
def mkdir_p(path):
    print 'Creating path:', path
    try:
        os.makedirs(path)
    except OSError as exc: # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else: raise

print 'Creating package architecture...'
{'fraction_non_alphanumeric': 0.13530189510797708, 'fraction_numerical': 0.011458792419568091, 'mean_word_length': 3.3570057581573898, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '193444', 'n_tokens_mistral': 771, 'n_tokens_neox': 732, 'n_words': 208}