<commit_before>﻿using UnityEngine;
using UnityEditor;
using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Collections.Generic;

namespace Assets.Editor.MarkerMetro
{
    public static class MarkerMetroBuilder
    {
        [MenuItem("Tools/MarkerMetro/Build/All", priority = 1)]
        public static void BuildAll()
        {
            BuildMetro();
            BuildWP8();
            BuildUniversal();
        }

        [MenuItem("Tools/MarkerMetro/Build/Windows Universal 8.1", priority = 2)]
        public static void BuildUniversalFromMenu ()
        {
            DoBuildUniversal(string.Empty);
        }

        public static void BuildUniversal()
        {
            string outputPath = MarkerMetro.CommandLineReader.GetCustomArgument("outputPath");
            if (String.IsNullOrEmpty(outputPath))
            {
                outputPath = MarkerMetro.CommandLineReader.GetCustomArgument("universalOutputPath");
            }

            DoBuildUniversal(outputPath);
        }

        public static void DoBuildUniversal (string outputPath)
        {
            Build(BuildTarget.MetroPlayer,<commit_msg>Modify BuildAll to call BuildFromMenu methods<commit_after>﻿using UnityEngine;
using UnityEditor;
using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Collections.Generic;

namespace Assets.Editor.MarkerMetro
{
    public static class MarkerMetroBuilder
    {
        [MenuItem("Tools/MarkerMetro/Build/All", priority = 1)]
        public static void BuildAll()
        {
            BuildMetroFromMenu();
            BuildWP8FromMenu();
            BuildUniversalFromMenu();
        }

        [MenuItem("Tools/MarkerMetro/Build/Windows Universal 8.1", priority = 2)]
        public static void BuildUniversalFromMenu ()
        {
            DoBuildUniversal(string.Empty);
        }

        public static void BuildUniversal()
        {
            string outputPath = MarkerMetro.CommandLineReader.GetCustomArgument("outputPath");
            if (String.IsNullOrEmpty(outputPath))
            {
                outputPath = MarkerMetro.CommandLineReader.GetCustomArgument("universalOutputPath");
            }

            DoBuildUniversal(outputPath);
        }

        public static void DoBuildUniversal (string outputPath)
        {
            Build(BuildTarget.MetroPlayer,
{'fraction_non_alphanumeric': 0.08487394957983194, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 2.382102272727273, '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': '6337345', 'n_tokens_mistral': 622, 'n_tokens_neox': 597, 'n_words': 122}