<commit_before>/*
 * This file is part of GoodTime-Industrial, licensed under MIT License (MIT).
 *
 * Copyright (c) 2015 Minecraft-GoodTime <http://github.com/Minecraft-GoodTime>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.mcgoodtime.gti.common.items.tools;

import com.mcgoodtime.gti.common.items.ItemGti;
import net.minecraft.item.*;

/*
 * Created by suhao on 2015.7.19.
 */
public class ToolGti extends ItemGti {

    public static Item registerPickaxe(ToolMaterial toolMaterial, String name) {
        return new Pickaxe(toolMaterial, name);
    }

    public static Item registerAxe(ToolMaterial toolMaterial, String name) {
        return new Axe(toolMaterial, name);
    }

    public static Item registerSpade(ToolMaterial toolMaterial, String name) {
        return new Spade(toolMaterial, name);
    }

    public static Item registerSword(ToolMaterial toolMaterial, String name) {
        return new Sword(toolMaterial, name);
    }

    private ToolGti(String name) {
        super(name);
    }

    private static class Pickaxe extends ItemPickaxe {
        private Pickaxe(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            new ToolGti(name);
        }
    }

    private static class Axe extends ItemAxe {
        private Axe(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            new ToolGti(name);
        }
    }

    private static class Spade extends ItemSpade {
        private Spade(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            new ToolGti(name);
        }
    }

    private static class Sword extends ItemSword {
        private Sword(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            new ToolGti(name);
        }
    }
}


<commit_msg>Fixed<commit_after>/*
 * This file is part of GoodTime-Industrial, licensed under MIT License (MIT).
 *
 * Copyright (c) 2015 Minecraft-GoodTime <http://github.com/Minecraft-GoodTime>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.mcgoodtime.gti.common.items.tools;


import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.*;
import net.minecraft.item.Item.ToolMaterial;

import static com.mcgoodtime.gti.common.core.Gti.MOD_ID;
import static com.mcgoodtime.gti.common.core.Gti.RESOURCE_DOMAIN;
import static com.mcgoodtime.gti.common.core.Gti.creativeTabGti;

/*
 * Created by suhao on 2015.7.19.
 */
public class ToolGti {

    public static Item registerPickaxe(ToolMaterial toolMaterial, String name) {
        return new Pickaxe(toolMaterial, name);
    }

    public static Item registerAxe(ToolMaterial toolMaterial, String name) {
        return new Axe(toolMaterial, name);
    }

    public static Item registerSpade(ToolMaterial toolMaterial, String name) {
        return new Spade(toolMaterial, name);
    }

    public static Item registerSword(ToolMaterial toolMaterial, String name) {
        return new Sword(toolMaterial, name);
    }

    private static void registerItem(String name, Item item) {
        item.setUnlocalizedName(MOD_ID + "." + name);
        item.setTextureName(RESOURCE_DOMAIN + ":" + "item" + name);
        item.setCreativeTab(creativeTabGti);
        GameRegistry.registerItem(item, name, MOD_ID);
    }

    private static class Pickaxe extends ItemPickaxe {
        private Pickaxe(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            registerItem(name, this);
        }
    }

    private static class Axe extends ItemAxe {
        private Axe(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            registerItem(name, this);
        }
    }

    private static class Spade extends ItemSpade {
        private Spade(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            registerItem(name, this);
        }
    }

    private static class Sword extends ItemSword {
        private Sword(ToolMaterial toolMaterial, String name) {
            super(toolMaterial);
            registerItem(name, this);
        }
    }
}



{'fraction_non_alphanumeric': 0.07417494392822813, 'fraction_numerical': 0.003524511374559436, 'mean_word_length': 3.2239512855209744, 'pattern_counts': {'":': 1, '<': 5, '<?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': '374443', 'n_tokens_mistral': 1701, 'n_tokens_neox': 1616, 'n_words': 625}