<commit_before>package mapping

import org.hs5tb.groospin.common.IniFile

/**
 * Created by Alberto on 28-Jul-17.
 */
class DemulRocketLauncherMapping360 extends DemulMapping {

    static Map createDefaultXboxMappingJoystick1() {
                ["PUSH1"       : JOY1_A,
                 "PUSH2"       : JOY1_B,
                 "PUSH3"       : JOY1_X,
                 "PUSH4"       : JOY1_Y,
                 "PUSH5"       : JOY1_LB,
                 "PUSH6"       : JOY1_RB,
                 "PUSH7"       : JOY1_LT_ANALOG,
                 "PUSH8"       : JOY1_RT_ANALOG,
                 "SERVICE"     : NONE,
                 "START"       : JOY1_BACK,
                 "COIN"        : JOY1_START,
                 "DIGITALUP"   : JOY1_UP,
                 "DIGITALDOWN" : JOY1_DOWN,
                 "DIGITALLEFT" : JOY1_LEFT,
                 "DIGITALRIGHT": JOY1_RIGHT,
                 "ANALOGUP"    : JOY1_ANALOG1_UP,
                 "ANALOGDOWN"  : JOY1_ANALOG1_DOWN,
                 "ANALOGLEFT"  : JOY1_ANALOG1_LEFT,
                 "ANALOGRIGHT" : JOY1_ANALOG1_RIGHT,
                 "ANALOGUP2"   : JOY1_ANALOG2_UP,
                 "ANALOGDOWN2" : JOY1_ANALOG2_DOWN,
                 "ANALOGLEFT2" : JOY1_ANALOG2_LEFT,
                 "ANALOGRIGHT2": JOY1_ANALOG2_RIGHT]
    }

    static Map createDefaultXboxMappingJoystick2() {
                ["PUSH1"       : JOY2_A,
                 "PUSH2"       : JOY2_B,
                 "PUSH3"       : JOY2_X,
                 "PUSH4"       : JOY2_Y,
                 "PUSH5"       : JOY2_LB,
                 "PUSH6"       : JOY2_RB,
                 "PUSH7"       : JOY2_LT_ANALOG,
                 "PUSH8"       : JOY2_RT_ANALOG,
                 "SERVICE"     : NONE,
                 "START"       : JOY2_BACK,
                 "COIN"        : JOY2_START,
                 "DIGITALUP"   : JOY2_UP,
                 "DIGITALDOWN" : JOY2_DOWN,
                 "DIGITALLEFT" : JOY2_LEFT,
                 "DIGITALRIGHT": JOY2_RIGHT,
                 "ANALOGUP"    : JOY2_ANALOG1_UP,
                 "ANALOGDOWN"  : JOY2_ANALOG1_DOWN,
                 "ANALOGLEFT"  : JOY2_ANALOG1_LEFT,
                 "ANALOGRIGHT" : JOY2_ANALOG1_RIGHT,
                 "ANALOGUP2"   : JOY2_ANALOG2_UP,
                 "ANALOGDOWN2" : JOY2_ANALOG2_DOWN,
                 "ANALOGLEFT2" : JOY2_ANALOG2_LEFT,
                 "ANALOGRIGHT2": JOY2_ANALOG2_RIGHT]
    }

    static void configureGames(IniFile demul) {
        Map JOY1_STARTCOIN = [
                "START": KEY_1,
                "COIN" : KEY_5
        ]
        Map JOY2_STARTCOIN = [
                "START": KEY_2,
                "COIN" : KEY_6<commit_msg>BUGFIX DEMUL 360<commit_after>package mapping

import org.hs5tb.groospin.common.IniFile

/**
 * Created by Alberto on 28-Jul-17.
 */
class DemulRocketLauncherMapping360 extends DemulMapping {

    static Map createDefaultXboxMappingJoystick1() {
                ["PUSH1"       : JOY1_A,
                 "PUSH2"       : JOY1_B,
                 "PUSH3"       : JOY1_X,
                 "PUSH4"       : JOY1_Y,
                 "PUSH5"       : JOY1_LB,
                 "PUSH6"       : JOY1_RB,
                 "PUSH7"       : JOY1_LT_ANALOG,
                 "PUSH8"       : JOY1_RT_ANALOG,
                 "SERVICE"     : NONE,
                 "START"       : JOY1_BACK,
                 "COIN"        : JOY1_START,
                 "DIGITALUP"   : JOY1_UP,
                 "DIGITALDOWN" : JOY1_DOWN,
                 "DIGITALLEFT" : JOY1_LEFT,
                 "DIGITALRIGHT": JOY1_RIGHT,
                 "ANALOGUP"    : JOY1_ANALOG1_UP,
                 "ANALOGDOWN"  : JOY1_ANALOG1_DOWN,
                 "ANALOGLEFT"  : JOY1_ANALOG1_LEFT,
                 "ANALOGRIGHT" : JOY1_ANALOG1_RIGHT,
                 "ANALOGUP2"   : JOY1_ANALOG2_UP,
                 "ANALOGDOWN2" : JOY1_ANALOG2_DOWN,
                 "ANALOGLEFT2" : JOY1_ANALOG2_LEFT,
                 "ANALOGRIGHT2": JOY1_ANALOG2_RIGHT]
    }

    static Map createDefaultXboxMappingJoystick2() {
                ["PUSH1"       : JOY2_A,
                 "PUSH2"       : JOY2_B,
                 "PUSH3"       : JOY2_X,
                 "PUSH4"       : JOY2_Y,
                 "PUSH5"       : JOY2_LB,
                 "PUSH6"       : JOY2_RB,
                 "PUSH7"       : JOY2_LT_ANALOG,
                 "PUSH8"       : JOY2_RT_ANALOG,
                 "SERVICE"     : NONE,
                 "START"       : JOY2_BACK,
                 "COIN"        : JOY2_START,
                 "DIGITALUP"   : JOY2_UP,
                 "DIGITALDOWN" : JOY2_DOWN,
                 "DIGITALLEFT" : JOY2_LEFT,
                 "DIGITALRIGHT": JOY2_RIGHT,
                 "ANALOGUP"    : JOY2_ANALOG1_UP,
                 "ANALOGDOWN"  : JOY2_ANALOG1_DOWN,
                 "ANALOGLEFT"  : JOY2_ANALOG1_LEFT,
                 "ANALOGRIGHT" : JOY2_ANALOG1_RIGHT,
                 "ANALOGUP2"   : JOY2_ANALOG2_UP,
                 "ANALOGDOWN2" : JOY2_ANALOG2_DOWN,
                 "ANALOGLEFT2" : JOY2_ANALOG2_LEFT,
                 "ANALOGRIGHT2": JOY2_ANALOG2_RIGHT]
    }

    static void configureGames(IniFile demul) {
        Map JOY1_STARTCOIN = [
                "START": JOY1_START,
                "COIN" : JOY1_BACK
        ]
        Map JOY2_STARTCOIN = [
                "START": JOY2_START,
                "COIN" : JOY2_BACK
{'fraction_non_alphanumeric': 0.0865688277911945, 'fraction_numerical': 0.0377113133940182, 'mean_word_length': 1.1753535353535354, 'pattern_counts': {'":': 12, '<': 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': '3520722', 'n_tokens_mistral': 1994, 'n_tokens_neox': 1863, 'n_words': 255}