<commit_before>using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Serialization;

using libsecondlife;
using libsecondlife.Packets;
using libsecondlife.InventorySystem;

namespace libsecondlife.TestClient
{
    public class WearCommand : Command
    {
		    public WearCommand(TestClient testClient)
        {
            Name = "wear";
            Description = "Wear an outfit folder from inventory. Usage: wear [outfit name]";
        }

        public override string Execute(string[] args, LLUUID fromAgentID)
        {
            string target = String.Empty;

            for (int ct = 0; ct < args.Length; ct++)
                target = target + args[ct] + " ";
            
            target = target.TrimEnd();

            InventoryFolder folder = Client.Inventory.getFolder(target);
            
            if (folder != null)
            {
                Client.Appearance.WearOutfit(folder);
                return "Outfit " + target + " worn.";
            }

            return "Unable to find: " + target;
        }
    }
}<commit_msg>Oops.<commit_after>using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Serialization;

using libsecondlife;
using libsecondlife.Packets;
using libsecondlife.InventorySystem;

namespace libsecondlife.TestClient
{
    public class WearCommand : Command
    {
		public WearCommand(TestClient testClient)
        {
            Client = testClient;
            Name = "wear";
            Description = "Wear an outfit folder from inventory. Usage: wear [outfit name]";
        }

        public override string Execute(string[] args, LLUUID fromAgentID)
        {
            string target = String.Empty;
            bool oldcode = false;


            for (int ct = 0; ct < args.Length; ct++)
            {
                if (args[ct] == "oldcode")
                    oldcode = true;
                else
                    target = target + args[ct] + " ";
            }
            
            target = target.TrimEnd();

            InventoryFolder folder = Client.Inventory.getFolder(target);
            
            if (folder != null)
            {
                //libsecondlife.Utilities.Appearance.AppearanceManager am = new libsecondlife.Utilities.Appearance.AppearanceManager(Client, new Utilities.Assets.AssetManager(Client));
                
                if (oldcode)
                    Client.Appearance.WearOutfit(folder);
                else
                    Client.NewAppearanceManager.WearOutfit(folder);

                return "Outfit " + target + " worn.";
            }

            return "Unable to find: " + target;
        }
    }
}
{'fraction_non_alphanumeric': 0.09077963688145248, 'fraction_numerical': 0.000711997152011392, 'mean_word_length': 1.7904667328699106, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3020558', 'n_tokens_mistral': 746, 'n_tokens_neox': 721, 'n_words': 181}