<commit_before>// Copyright 2002-2014, University of Colorado Boulder

package edu.colorado.phet.buildtools.html;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.StringTokenizer;

/**
 * Reads a data file (font-awesome.txt) that contains lines like:
 * <glyph unicode="&#xf000;" horiz-adv-x="1792" d="M1699 ... -36.5z" />
 * and creates a scenery-compatible version.  See sun.FontAwesomeNode.
 * <p>
 * font-awesome.txt was created by taking src/assets/font-awesome/fonts/fontawesome-webfont.svg
 * from the Font-Awesome GitHub repository, and manually editing out lines at the top and bottom
 * of the file.
 *
 * @author <NAME>
 */
public class FontAwesomeToScenery {

    // Sam Reid's personal path
    private static String SAM_PATH = "C:\\workingcopy\\phet\\svn-1.7\\trunk\\simulations-html\\build-tools\\data\\font-awesome.txt";

    public static void main( String[] args ) throws IOException {

        // Read file name from program args, default to Sam's path.
        String filename = ( args.length > 0 ) ? args[0] : SAM_PATH;
        String svg = FileUtils.loadFileAsString( new File( filename ) );

        String map = ".icon-glass:before                { content: \"\\f000\"; }\n" +
                     ".icon-music:before                { content: \"\\f001\"; }\n" +
                     ".icon-search:before               { content: \"\\f002\"; }\n" +
                     ".icon-envelope:before             { content: \"\\f003\"; }\n" +
                     ".icon-heart:before                { content: \"\\f004\"; }\n" +
                     ".icon-star:before                 { content: \"\\f005\"; }\n" +
                     ".icon-star-empty:before           { content: \"\\f006\"; }\n" +<commit_msg>moved font-awesome.txt from Unfuddle SVN. We suspect that this is all of the <glyph> tags copied out of fontawesome-webfont.svg from the Font Awesome distribution<commit_after>// Copyright 2002-2014, University of Colorado Boulder

package edu.colorado.phet.buildtools.html;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.StringTokenizer;

//TODO The data file is actually fontawesome-webfont.svg. It's unclear whether there was a font-awesome.txt, and what happened to it. See sun#187.
/**
 * Reads a data file (font-awesome.txt) that contains lines like:
 * <glyph unicode="&#xf000;" horiz-adv-x="1792" d="M1699 ... -36.5z" />
 * and creates a scenery-compatible version.  See sun.FontAwesomeNode.
 * <p>
 * font-awesome.txt was created by taking src/assets/font-awesome/fonts/fontawesome-webfont.svg
 * from the Font-Awesome GitHub repository, and manually editing out lines at the top and bottom
 * of the file.
 *
 * @author <NAME>
 */
public class FontAwesomeToScenery {

    // <NAME>'s personal path
    private static String SAM_PATH = "C:\\workingcopy\\phet\\svn-1.7\\trunk\\simulations-html\\build-tools\\data\\font-awesome.txt";

    public static void main( String[] args ) throws IOException {

        // Read file name from program args, default to Sam's path.
        String filename = ( args.length > 0 ) ? args[0] : SAM_PATH;
        String svg = FileUtils.loadFileAsString( new File( filename ) );

        String map = ".icon-glass:before                { content: \"\\f000\"; }\n" +
                     ".icon-music:before                { content: \"\\f001\"; }\n" +
                     ".icon-search:before               { content: \"\\f002\"; }\n" +
                     ".icon-envelope:before             { content: \"\\f003\"; }\n" +
                     ".icon-heart:before                { content: \"\\f004\"; }\n" +
                     ".icon-star:before                 { content: \"\\f005\"; }\n" +
                     ".icon-star-empty:before           { content: \"\\f006\"; }\n" +
{'fraction_non_alphanumeric': 0.14341488807912545, 'fraction_numerical': 0.025247267048412285, 'mean_word_length': 2.1294788273615635, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '5936933', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1124, 'n_words': 317}