<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DSOplotter
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
        string filename="";

            OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = "XML files (*.XML)|*.xml|All files (*.*)|*.*";          
            dialog.Title = "Select a text file";
            if (dialog.ShowDialog() == DialogResult.OK) filename = dialog.FileName;

            if (filename == String.Empty)
            {
                Console.WriteLine("Nothing");
                return;//user didn't select a file
            }           
            
            Form1 chForm = new Form1(filename);     
            chForm.MdiParent = this;
            chForm.Text = filename;
            chForm.Show(); 
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("DSOplotter\nCopyright (c) 2013 Geir54\nhttps://github.com/geir54/DSOplotter");
        }
    }<commit_msg>fixed so linux can se XML files<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DSOplotter
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
        string filename="";

            OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = "XML files (*.XML)|*.XML|All files (*.*)|*.*";          
            dialog.Title = "Select a text file";
            if (dialog.ShowDialog() == DialogResult.OK) filename = dialog.FileName;

            if (filename == String.Empty)
            {
                Console.WriteLine("Nothing");
                return;//user didn't select a file
            }           
            
            Form1 chForm = new Form1(filename);     
            chForm.MdiParent = this;
            chForm.Text = filename;
            chForm.Show(); 
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("DSOplotter\nCopyright (c) 2013 Geir54\nhttps://github.com/geir54/DSOplotter");
        }
    }
{'fraction_non_alphanumeric': 0.10119940029985007, 'fraction_numerical': 0.0074962518740629685, 'mean_word_length': 1.8791801510248112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2035345', 'n_tokens_mistral': 718, 'n_tokens_neox': 695, 'n_words': 168}