<commit_before>version: '2'
services:
  selenium_hub:
    image: selenium/hub:3.1.0
    container_name: selenium_hub
    ports:
      - 4444:4444
    environment:
      - GRID_MAX_SESSION=1
      - GRID_TIMEOUT=900
      - GRID_BROWSER_TIMEOUT=900
      - JAVA_OPTS=-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom
      - GRID_CLEAN_UP_CYCLE=5000
    ulimits:
      nproc: 163840
      nofile:
        soft: 163840
        hard: 163840
    restart: always
    networks:
      - selenium_grid_internal

  chromenode:
    image: selenium/node-chrome${NODE_CHROME_DEBUG_SUFFIX}:3.1.0
    depends_on:
      - selenium_hub
    environment:
      - HUB_PORT_4444_TCP_ADDR=selenium_hub
      - HUB_PORT_4444_TCP_PORT=4444
      - DBUS_SESSION_BUS_ADDRESS=/dev/null
    ports:
      - 5900
      - 5555
    networks:
      - selenium_grid_internal
    ulimits:
      nproc: 163840
      nofile:
        soft: 163840
        hard: 163840
    restart: always

networks:
    selenium_grid_internal:
<commit_msg>Increase the maximum number of sessions in selenium grid (#2466)<commit_after>version: '2'
services:
  selenium_hub:
    image: selenium/hub:3.1.0
    container_name: selenium_hub
    ports:
      - 4444:4444
    environment:
      - GRID_TIMEOUT=900
      - GRID_BROWSER_TIMEOUT=900
      - JAVA_OPTS=-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom
      - GRID_CLEAN_UP_CYCLE=5000
    ulimits:
      nproc: 163840
      nofile:
        soft: 163840
        hard: 163840
    restart: always
    networks:
      - selenium_grid_internal

  chromenode:
    image: selenium/node-chrome${NODE_CHROME_DEBUG_SUFFIX}:3.1.0
    depends_on:
      - selenium_hub
    environment:
      - HUB_PORT_4444_TCP_ADDR=selenium_hub
      - HUB_PORT_4444_TCP_PORT=4444
      - DBUS_SESSION_BUS_ADDRESS=/dev/null
      - NODE_MAX_INSTANCES=5
      - NODE_MAX_SESSION=5
    ports:
      - 5900
      - 5555
    networks:
      - selenium_grid_internal
    ulimits:
      nproc: 163840
      nofile:
        soft: 163840
        hard: 163840
    restart: always

networks:
    selenium_grid_internal:

{'fraction_non_alphanumeric': 0.07944814462416747, 'fraction_numerical': 0.08705994291151284, 'mean_word_length': 2.311811023622047, 'pattern_counts': {'":': 0, '<': 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': '5893998', 'n_tokens_mistral': 920, 'n_tokens_neox': 783, 'n_words': 122}