<commit_before>package com.techcavern.wavetact.commands;

import com.techcavern.wavetact.objects.Command;
import com.techcavern.wavetact.utils.GeneralRegistry;
import com.techcavern.wavetact.utils.IRCUtils;
import org.apache.commons.lang3.StringUtils;
import org.pircbotx.hooks.events.MessageEvent;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jztech101 on 6/23/14.
 */
public class Help extends Command {
    public Help() {
        super("help", 0, "help (command)");
    }

    @Override
    public void onCommand(MessageEvent<?> event, String... args) throws Exception {
      if(args[0].equalsIgnoreCase("Commands")) {
          event.respond(IRCUtils.getCommand(args[0]).getDesc());
      }else{

          event.respond("help [command] - Generally a + before something means editing it, and a - means removing it. None means adding it. - Time is in [time](s/m/h/d) format, IRCd is specified with c or Charybdis, u for Unreal, and I for inspircd.\n");


      }
    }
}<commit_msg>Fixed Array out of bounds exceptions<commit_after>package com.techcavern.wavetact.commands;

import com.techcavern.wavetact.objects.Command;
import com.techcavern.wavetact.utils.GeneralRegistry;
import com.techcavern.wavetact.utils.IRCUtils;
import org.apache.commons.lang3.StringUtils;
import org.pircbotx.hooks.events.MessageEvent;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jztech101 on 6/23/14.
 */
public class Help extends Command {
    public Help() {
        super("help", 0, "help (command)");
    }

    @Override
    public void onCommand(MessageEvent<?> event, String... args) throws Exception {
     if(args.length < 0){
      if(args[0].equalsIgnoreCase("Commands")) {
          event.respond(IRCUtils.getCommand(args[0]).getDesc());
      } else{
          event.respond(IRCUtils.getCommand(args[0]).getDesc());
      }
      }else{
          event.respond("help [command] - Generally a + before something means editing it, and a - means removing it. None means adding it. - Time is in [time](s/m/h/d) format, IRCd is specified with c or Charybdis, u for Unreal, and I for inspircd.\n");


      }
    }
}
{'fraction_non_alphanumeric': 0.12771864877371586, 'fraction_numerical': 0.012031466913465988, 'mean_word_length': 3.4761904761904763, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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': '6605539', 'n_tokens_mistral': 706, 'n_tokens_neox': 688, 'n_words': 171}