<commit_before>import DefaultConfig from 'anyware/lib/game-logic/config/default-config';
import Disk from 'anyware/lib/game-logic/utils/disk';
import GAMES from 'anyware/lib/game-logic/constants/games';

class Config extends DefaultConfig {
  constructor() {
    super();

    this.username = "sculpture0";
    this.SINGLE_USER_MODE = true;
    this.CLIENT_CONNECTION_OPTIONS = {
      default: {
        protocol: "ws",
        username: "sculpture0",
        password: "<PASSWORD>",
        host: "broker.shiftr.io"
      }
    };

    /*********** Hardware Mappings ************/
    this.HARDWARE_USERNAME_MAPPINGS = {
      [this.user0]: '0',
      [this.user1]: '1',
      [this.user2]: '2'
    };

    this.SERIAL = {
      COMMAND_DELIMETER: "\n",
      BAUDRATE: 115200,
      HANDSHAKE: {
        // The number of attempts to make towards getting a valid HELLO command
        HELLO_ATTEMPTS: 100,
        // The time to wait for a valid HELLO
        // Measurements show that it takes 1700-1800 ms to get a HELLO from an
        // Arduino after reset (tested on a Mac)
        TIMEOUT: 2000 // ms
      },
      // Serial port paths matching these patterns will be ignored
      HARDWARE_INVALID_PATH_PATTERNS: [
        "Bluetooth",
        "WirelessiAP"
      ],
      HARDWARE_VENDOR_IDS: new Set([
        "0x0",    // Generic/Unspecified (for Macs)
        "0x2341", // Arduino Vendor ID
        "0x2a03", // Arduino Uno (Alternate) Vendor ID
        "0x16c0"  // Teensy Vendor ID
      ])
    };

    /********* View Configuration *********/
    this.HANDSHAKE_HARDWARE = {
      // Delay between consequtive pulses in the handshake game
      PULSE_DELAY: 4000, // ms
      USER_PANELS: {
        // username : panelId
        [this.user0]: '0',
        [this.user1]: '1',
        [this.user2]: '2'
      },
      USER_PANEL_ON_INTENSITY: 100,
      USER_PANEL_OFF_INTENSITY: 0,
      USER_PANEL_ON_EASING: 'easein',
      USER_PANEL_OFF_EASING: 'easein',

      MIDDLE_PANEL: '3',
      // Settings for the middle part of the handshake
      MIDDLE_ON_INTENSITY: 100,
      MIDDLE_OFF_INTENSITY: 0,
      // The color settings here represent the color of the middle
      // setting ON_COLOR to null makes it default to the user color
      MIDDLE_ON_COLOR: null,
      MIDDLE_OFF_COLOR: 'white',
      MIDDLE_ON_EASING: 'easein',
      MIDDLE_OFF_EASING: 'easein'
    };

    this.diskUrls = {
      disk0: '/images/disk0.png',
      disk1: '/images/disk1.png',
      disk2: '/images/disk2.png'
    };

    this.initialDiskPositions = {
      disk0: 90,
      disk1: 0,
      disk2: 270,
    };

    this.projectionParameters = {
      scale: 1,
      translate: [0, 0],
    };

    // Playtest configurations:
    this.GAMES_SEQUENCE = [ GAMES.HANDSHAKE, GAMES.MOLE, GAMES.SIMON ];
  }
}

export default new Config();<commit_msg>Enable full config<commit_after>import DefaultConfig from 'anyware/lib/game-logic/config/default-config';
import Disk from 'anyware/lib/game-logic/utils/disk';
import GAMES from 'anyware/lib/game-logic/constants/games';

class Config extends DefaultConfig {
  constructor() {
    super();

    this.username = "sculpture0";
    this.SINGLE_USER_MODE = true;
    this.CLIENT_CONNECTION_OPTIONS = {
      default: {
        protocol: "ws",
        username: "sculpture0",
        password: "<PASSWORD>",
        host: "broker.shiftr.io"
      }
    };

    /*********** Hardware Mappings ************/
    this.HARDWARE_USERNAME_MAPPINGS = {
      [this.user0]: '0',
      [this.user1]: '1',
      [this.user2]: '2'
    };

    this.SERIAL = {
      COMMAND_DELIMETER: "\n",
      BAUDRATE: 115200,
      HANDSHAKE: {
        // The number of attempts to make towards getting a valid HELLO command
        HELLO_ATTEMPTS: 100,
        // The time to wait for a valid HELLO
        // Measurements show that it takes 1700-1800 ms to get a HELLO from an
        // Arduino after reset (tested on a Mac)
        TIMEOUT: 2000 // ms
      },
      // Serial port paths matching these patterns will be ignored
      HARDWARE_INVALID_PATH_PATTERNS: [
        "Bluetooth",
        "WirelessiAP"
      ],
      HARDWARE_VENDOR_IDS: new Set([
        "0x0",    // Generic/Unspecified (for Macs)
        "0x2341", // Arduino Vendor ID
        "0x2a03", // Arduino Uno (Alternate) Vendor ID
        "0x16c0"  // Teensy Vendor ID
      ])
    };

    /********* View Configuration *********/
    this.HANDSHAKE_HARDWARE = {
      // Delay between consequtive pulses in the handshake game
      PULSE_DELAY: 4000, // ms
      USER_PANELS: {
        // username : panelId
        [this.user0]: '0',
        [this.user1]: '1',
        [this.user2]: '2'
      },
      USER_PANEL_ON_INTENSITY: 100,
      USER_PANEL_OFF_INTENSITY: 0,
      USER_PANEL_ON_EASING: 'easein',
      USER_PANEL_OFF_EASING: 'easein',

      MIDDLE_PANEL: '3',
      // Settings for the middle part of the handshake
      MIDDLE_ON_INTENSITY: 100,
      MIDDLE_OFF_INTENSITY: 0,
      // The color settings here represent the color of the middle
      // setting ON_COLOR to null makes it default to the user color
      MIDDLE_ON_COLOR: null,
      MIDDLE_OFF_COLOR: 'white',
      MIDDLE_ON_EASING: 'easein',
      MIDDLE_OFF_EASING: 'easein'
    };

    this.diskUrls = {
      disk0: '/images/disk0.png',
      disk1: '/images/disk1.png',
      disk2: '/images/disk2.png'
    };

    this.initialDiskPositions = {
      disk0: 90,
      disk1: 0,
      disk2: 270,
    };

    this.projectionParameters = {
      scale: 1,
      translate: [0, 0],
    };
  }
}

export default new Config();
{'fraction_non_alphanumeric': 0.12437544610992149, 'fraction_numerical': 0.028907922912205567, 'mean_word_length': 2.2286866359447006, 'pattern_counts': {'":': 0, '<': 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': '1020824', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1933, 'n_words': 453}