<commit_before>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Xml;

using Microsoft.Win32;

namespace ICSharpCode.XamlDesigner
{
	public partial class MainWindow
	{
		public static SimpleCommand CloseAllCommand = new SimpleCommand("Close All");
		public static SimpleCommand SaveAllCommand = new SimpleCommand("Save All", ModifierKeys.Control | ModifierKeys.Shift, Key.S);
		public static SimpleCommand ExitCommand = new SimpleCommand("Exit");
		public static SimpleCommand RefreshCommand = new SimpleCommand("Refresh", Key.F5);
		public static SimpleCommand RunCommand = new SimpleCommand("Run", ModifierKeys.Shift, Key.F5);
		public static SimpleCommand RenderToBitmapCommand = new SimpleCommand("Render to Bitmap");

		static void RenameCommands()
		{
			ApplicationCommands.Open.Text = "Open...";
			ApplicationCommands.SaveAs.Text = "Save As...";
		}

		void NewCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.New();
		}

		void OpenCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.Open();
		}

		void CloseCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseCurrentDocument();
		}

		void CloseCommand_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseCurrentDocument();
		}

		void CloseAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseAll();
		}

		void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveCurrentDocument();
		}

		void SaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveCurrentDocumentAs();
		}

		void SaveAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveAll();<commit_msg>Changed OpenCommand_Executed <commit_after>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Xml;

using Microsoft.Win32;

namespace ICSharpCode.XamlDesigner
{
	public partial class MainWindow
	{
		public static SimpleCommand CloseAllCommand = new SimpleCommand("Close All");
		public static SimpleCommand SaveAllCommand = new SimpleCommand("Save All", ModifierKeys.Control | ModifierKeys.Shift, Key.S);
		public static SimpleCommand ExitCommand = new SimpleCommand("Exit");
		public static SimpleCommand RefreshCommand = new SimpleCommand("Refresh", Key.F5);
		public static SimpleCommand RunCommand = new SimpleCommand("Run", ModifierKeys.Shift, Key.F5);
		public static SimpleCommand RenderToBitmapCommand = new SimpleCommand("Render to Bitmap");

		static void RenameCommands()
		{
			ApplicationCommands.Open.Text = "Open...";
			ApplicationCommands.SaveAs.Text = "Save As...";
		}

		void NewCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.New();
		}

		void OpenCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.Open();
			AvalonDockWorkaround();
		}

		void CloseCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseCurrentDocument();
		}

		void CloseCommand_PreviewExecuted(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseCurrentDocument();
		}

		void CloseAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.CloseAll();
		}

		void SaveCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveCurrentDocument();
		}

		void SaveAsCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveCurrentDocumentAs();
		}

		void SaveAllCommand_Executed(object sender, ExecutedRoutedEventArgs e)
		{
			Shell.Instance.SaveAll();
{'fraction_non_alphanumeric': 0.09178049364965253, 'fraction_numerical': 0.001917086029235562, 'mean_word_length': 5.372519083969466, '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': '1062060', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1187, 'n_words': 274}