<commit_before>﻿#region

using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;

#endregion

namespace DesktopWidgets.Helpers
{
    internal static class ProcessHelper
    {
        public static void Launch(string path, string args = "", string startIn = "",
            ProcessWindowStyle style = ProcessWindowStyle.Normal)
        {
            Launch(new ProcessFile {Path = path, Arguments = args, StartInFolder = startIn, WindowStyle = style});
        }

        public static void Launch(ProcessFile file)
        {
            if (string.IsNullOrWhiteSpace(file.Path) || !File.Exists(file.Path))
                return;
            Process.Start(new ProcessStartInfo<commit_msg>Revert "Fix error when launching missing files"<commit_after>﻿#region

using System.Diagnostics;
using System.IO;
using DesktopWidgets.Classes;

#endregion

namespace DesktopWidgets.Helpers
{
    internal static class ProcessHelper
    {
        public static void Launch(string path, string args = "", string startIn = "",
            ProcessWindowStyle style = ProcessWindowStyle.Normal)
        {
            Launch(new ProcessFile {Path = path, Arguments = args, StartInFolder = startIn, WindowStyle = style});
        }

        public static void Launch(ProcessFile file)
        {
            Process.Start(new ProcessStartInfo
{'fraction_non_alphanumeric': 0.08215085884988797, 'fraction_numerical': 0.0, 'mean_word_length': 2.895348837209302, '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': '2478342', 'n_tokens_mistral': 348, 'n_tokens_neox': 340, 'n_words': 95}