<commit_before>import subprocess
import re
import threading
from syncplay.players.basePlayer import BasePlayer
from syncplay import constants
import os
import random
import socket
import asynchat, asyncore
from syncplay.messages import getMessage
import time

class VlcPlayer(BasePlayer):
    speedSupported = True
    RE_ANSWER = re.compile(r"(?:^(?P<command>[a-zA-Z_]+)(?:\: )?(?P<argument>.*))")
    VLC_MIN_PORT = 10000
    VLC_MAX_PORT = 55000
    SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay']
    
    random.seed()
    vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT)
    SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(vlcport)))
    
    def __init__(self, client, playerPath, filePath, args):
        self._client = client
        self._paused = None
        self._duration = None
        self._filename = None
        self._filepath = None
        
        self._durationAsk = threading.Event()
        self._filenameAsk = threading.Event()
        self._pathAsk = threading.Event()
        self._positionAsk = threading.Event()
        self._pausedAsk = threading.Event()<commit_msg>vlc.py - Allow VLC_MAX_PORT to be set to the same value as VLC_MIN_PORT<commit_after>import subprocess
import re
import threading
from syncplay.players.basePlayer import BasePlayer
from syncplay import constants
import os
import random
import socket
import asynchat, asyncore
from syncplay.messages import getMessage
import time

class VlcPlayer(BasePlayer):
    speedSupported = True
    RE_ANSWER = re.compile(r"(?:^(?P<command>[a-zA-Z_]+)(?:\: )?(?P<argument>.*))")
    VLC_MIN_PORT = 10000
    VLC_MAX_PORT = 55000
    SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay']
    
    random.seed()
    vlcport = random.randrange(VLC_MIN_PORT, VLC_MAX_PORT) if (VLC_MIN_PORT < VLC_MAX_PORT) else VLC_MIN_PORT
    SLAVE_ARGS.append('--lua-config=syncplay={{port=\"{}\"}}'.format(str(vlcport)))
    
    def __init__(self, client, playerPath, filePath, args):
        self._client = client
        self._paused = None
        self._duration = None
        self._filename = None
        self._filepath = None
        
        self._durationAsk = threading.Event()
        self._filenameAsk = threading.Event()
        self._pathAsk = threading.Event()
        self._positionAsk = threading.Event()
        self._pausedAsk = threading.Event()
{'fraction_non_alphanumeric': 0.11895754518705338, 'fraction_numerical': 0.008406893652795292, 'mean_word_length': 3.3830570902394106, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '3480047', 'n_tokens_mistral': 803, 'n_tokens_neox': 764, 'n_words': 161}