<commit_before>#!/usr/bin/python

import socket
import struct
import sys
import serial
import time
import select
import terminal_colors as tc
import argparse
import led_command as lc
import app_ui as ui
import fcntl

app_description = "LED Multicast Commander v.0.0 10-1-2017"
timeout_in_seconds = 10
multicast_group = '192.168.127.12'
server_port = 10000
response_wait = 0.1
verbose_mode = False
response_wait = 0.1

parser = argparse.ArgumentParser(description=app_description)
parser.add_argument("-v", "--verbose",           dest="verbose", action='store_true',   help='display verbose info (False)')
parser.add_argument("-i", "--ipaddr",            dest="ipaddr",  default='192.168.127.12', help='multicast group IP address (192.168.127.12)')
parser.add_argument("-p", "--port",    type=int, dest="port",    default=10000,         help='multicast port (10000)')
parser.add_argument("-t", "--timeout", type=int, dest="timeout", default=10,            help='receiving period in seconds (10)')

args = parser.parse_args()
verbose_mode = args.verbose
multicast_group_ip = args.ipaddr
server_port = args.port
timeout_in_seconds = args.timeout
server_address = ('', server_port)

lc.begin(verbose_mode)
ui.begin(verbose_mode)
#lc.attention()
#lc.stop_all()
#lc.command("cnt")

# Create the socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

global keylist <commit_msg>add quiet mode<commit_after>#!/usr/bin/python

import socket
import struct
import sys
import serial
import time
import select
import terminal_colors as tc
import argparse
import led_command as lc
import app_ui as ui
import fcntl

app_description = "LED Multicast Commander v.0.0 10-1-2017"
timeout_in_seconds = 10
multicast_group = '192.168.127.12'
server_port = 10000
response_wait = 0.1
verbose_mode = False
response_wait = 0.1

parser = argparse.ArgumentParser(description=app_description)
parser.add_argument("-v", "--verbose",           dest="verbose", action='store_true',   help='display verbose info (False)')
parser.add_argument("-i", "--ipaddr",            dest="ipaddr",  default='192.168.127.12', help='multicast group IP address (192.168.127.12)')
parser.add_argument("-p", "--port",    type=int, dest="port",    default=10000,         help='multicast port (10000)')
parser.add_argument("-t", "--timeout", type=int, dest="timeout", default=10,            help='receiving period in seconds (10)')
parser.add_argument("-q", "--quiet",             dest="quiet",   action="store_true",   help="don't use terminal colors (False)")

args = parser.parse_args()
verbose_mode = args.verbose
multicast_group_ip = args.ipaddr
server_port = args.port
timeout_in_seconds = args.timeout
quiet_mode = args.quiet

server_address = ('', server_port)

lc.begin(verbose_mode)
ui.begin(verbose_mode, quiet_mode)
#lc.attention()
#lc.stop_all()
#lc.command("cnt")

# Create the socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

global keylist 
{'fraction_non_alphanumeric': 0.1362704918032787, 'fraction_numerical': 0.045765027322404374, 'mean_word_length': 4.881526104417671, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '3788672', 'n_tokens_mistral': 1046, 'n_tokens_neox': 951, 'n_words': 232}