<commit_before>// $Id$

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;

using PlayOnline.Core;

namespace PlayOnline.FFXI {

  public class Item : Thing {

    public Item() {
      // Fill Thing helpers
      this.IconField_ = "icon";
      // Clear fields
      this.Clear();
    }

    public override string ToString() {
    string Name = this.EnglishName_;
      if (POL.SelectedRegion == POL.Region.Japan)
	Name = this.JapaneseName_;
      return String.Format("[{0:00000000}] {1}", this.ID_, Name);
    }

    public override List<PropertyPages.IThing> GetPropertyPages() {
    List<PropertyPages.IThing> Pages = base.GetPropertyPages();
      Pages.Add(new PropertyPages.Item(this));
      return Pages;
    }

    #region Fields

    public static List<string> AllFields {
      get {
	return new List<string>(new string[] {
	  // General
	  "id",
	  "flags",
	  "stack-size",
	  "type",
	  "resource-id",
	  "valid-targets",
	  "english-name",
	  "japanese-name",
	  "description",
	  // English-Specific
	  "log-name-singular",
	  "log-name-plural",
	  // Furniture-Specific
	  "element",
	  "storage-slots",
	  // UsableItem-Specific
	  "activation-time",
	  // Equipment-Specific
	  "level",
	  "slots",
	  "races",
	  "jobs",
	  // Armor-Specific
	  "shield-size",
	  // Weapon-Specific
	  "damage",
	  "delay",
	  "dps",
	  "skill",
	  "jug-size",
	  // Enchantment Info
	  "max-charges",
	  "casting-time",
	  "use-delay",
	  "reuse-delay",
	  // Puppet Item Info
	  "puppet-slot",
	  "element-charge",
	  // Special Stuff
	  "icon",
	  "unknown-1",
	  "unknown-2",
	  "unknown-3",
	  "unknown-4",
	  "unknown-5",
	});
      }
    }

    public override List<string> GetAllFields() {
      return Item.AllFields;
    }

    #region Data Fields

    // General
    private uint?          ID_;
    private ItemFlags?     Flags_;
    private ushort?        StackSize_;
    private ItemType?      Type_;
    private ushort?        ResourceID_;
    private ValidTarget?   ValidTargets_;
    private string                  EnglishName_;
    private string                  JapaneseName_;
    private string                  Description_;
    // English-Specific
    private string                  LogNameSingular_;
    private string                  LogNamePlural_;
    // Furniture-Specific
    private Element?       Element_;
    private short?         StorageSlots_;
    // UsableItem-Specific
    private byte?          ActivationTime_;
    // Equipment-Specific
    private ushort?        Level_;
    private EquipmentSlot? Slots_;
    private Race?          Races_;
    private Job?           Jobs_;
    // Armor-Specific
    private ushort?        ShieldSize_;
    // Weapon-Specific
    private ushort?        Damage_;
    private ushort?        Delay_;
    private ushort?        DPS_;
    private Skill?         Skill_;
    private byte?          JugSize_;
    // Enchantment Info
    private byte?          MaxCharges_;
    private byte?          CastingTime_;
    private ushort?        UseDelay_;
    private uint?          ReuseDelay_;
    // Puppet Item Info
    private PuppetSlot?    PuppetSlot_;
    private uint?          ElementCharge_;
    // Special
    private Graphic                 Icon_;
    private ushort?        Unknown1_;
    private ushort?        Unknown2_;
    private ushort?        Unknown3_;
    private ushort?        Unknown4_;
    private ushort?        Unknown5_;<commit_msg>Whitespace fixes.<commit_after>// $Id$

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Forms;

using PlayOnline.Core;

namespace PlayOnline.FFXI {

  public class Item : Thing {

    public Item() {
      // Fill Thing helpers
      this.IconField_ = "icon";
      // Clear fields
      this.Clear();
    }

    public override string ToString() {
    string Name = this.EnglishName_;
      if (POL.SelectedRegion == POL.Region.Japan)
	Name = this.JapaneseName_;
      return String.Format("[{0:00000000}] {1}", this.ID_, Name);
    }

    public override List<PropertyPages.IThing> GetPropertyPages() {
    List<PropertyPages.IThing> Pages = base.GetPropertyPages();
      Pages.Add(new PropertyPages.Item(this));
      return Pages;
    }

    #region Fields

    public static List<string> AllFields {
      get {
	return new List<string>(new string[] {
	  // General
	  "id",
	  "flags",
	  "stack-size",
	  "type",
	  "resource-id",
	  "valid-targets",
	  "english-name",
	  "japanese-name",
	  "description",
	  // English-Specific
	  "log-name-singular",
	  "log-name-plural",
	  // Furniture-Specific
	  "element",
	  "storage-slots",
	  // UsableItem-Specific
	  "activation-time",
	  // Equipment-Specific
	  "level",
	  "slots",
	  "races",
	  "jobs",
	  // Armor-Specific
	  "shield-size",
	  // Weapon-Specific
	  "damage",
	  "delay",
	  "dps",
	  "skill",
	  "jug-size",
	  // Enchantment Info
	  "max-charges",
	  "casting-time",
	  "use-delay",
	  "reuse-delay",
	  // Puppet Item Info
	  "puppet-slot",
	  "element-charge",
	  // Special Stuff
	  "icon",
	  "unknown-1",
	  "unknown-2",
	  "unknown-3",
	  "unknown-4",
	  "unknown-5",
	});
      }
    }

    public override List<string> GetAllFields() {
      return Item.AllFields;
    }

    #region Data Fields

    // General
    private uint?          ID_;
    private ItemFlags?     Flags_;
    private ushort?        StackSize_;
    private ItemType?      Type_;
    private ushort?        ResourceID_;
    private ValidTarget?   ValidTargets_;
    private string         EnglishName_;
    private string         JapaneseName_;
    private string         Description_;
    // English-Specific
    private string         LogNameSingular_;
    private string         LogNamePlural_;
    // Furniture-Specific
    private Element?       Element_;
    private short?         StorageSlots_;
    // UsableItem-Specific
    private byte?          ActivationTime_;
    // Equipment-Specific
    private ushort?        Level_;
    private EquipmentSlot? Slots_;
    private Race?          Races_;
    private Job?           Jobs_;
    // Armor-Specific
    private ushort?        ShieldSize_;
    // Weapon-Specific
    private ushort?        Damage_;
    private ushort?        Delay_;
    private ushort?        DPS_;
    private Skill?         Skill_;
    private byte?          JugSize_;
    // Enchantment Info
    private byte?          MaxCharges_;
    private byte?          CastingTime_;
    private ushort?        UseDelay_;
    private uint?          ReuseDelay_;
    // Puppet Item Info
    private PuppetSlot?    PuppetSlot_;
    private uint?          ElementCharge_;
    // Special
    private Graphic        Icon_;
    private ushort?        Unknown1_;
    private ushort?        Unknown2_;
    private ushort?        Unknown3_;
    private ushort?        Unknown4_;
    private ushort?        Unknown5_;
{'fraction_non_alphanumeric': 0.10719383385669426, 'fraction_numerical': 0.005709391949757351, 'mean_word_length': 2.0558220671609244, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2338900', 'n_tokens_mistral': 2302, 'n_tokens_neox': 2095, 'n_words': 502}