<commit_before>import random
import os
import sys
import string
from os import listdir, mkdir, chdir, getcwd
from os.path import isdir, isfile, join, exists
from argparser import Parser

class GenRandomSC(object):
	def __init__(self, dimensions=[320,480], swipe_padding=[40,40,40,40], script_repo="script", amount=1, steps=10000, deviceName="Device"):
		self.dimensions = dimensions
		self.swipe_padding = swipe_padding
		self.script_repo = script_repo
		self.amount = amount
		self.steps = steps
		self.deviceName = deviceName
		self.range_action_steps = 10
		self.short_steps_duration = 200
		self.long_steps_duration = 2000
		self.range_sleep = 5.0
		if len(sys.argv) > 1:
			options = Parser.parser(sys.argv[1:])
			if str(options.gen_scripts_output): self.script_repo = str(options.gen_scripts_output)
			if str(options.config):
				with open(options.config) as f:
					self.config = eval(f.read())
					self.dimensions = [self.config['res_x'], self.config['res_y']]
					self.deviceName = self.config['device_name']
					self.script_repo = self.config['script_repo']
			if int(options.gen_scripts_amount): self.amount = int(options.gen_scripts_amount)
			if int(options.gen_scripts_steps): self.steps = int(options.gen_scripts_steps)<commit_msg>removed not used library<commit_after>import random
import os
import sys
from os import listdir, mkdir, chdir, getcwd
from os.path import isdir, join, exists
from argparser import Parser

class GenRandomSC(object):
	def __init__(self, dimensions=[320,480], swipe_padding=[40,40,40,40], script_repo="script", amount=1, steps=10000, deviceName="Device"):
		self.dimensions = dimensions
		self.swipe_padding = swipe_padding
		self.script_repo = script_repo
		self.amount = amount
		self.steps = steps
		self.deviceName = deviceName
		self.range_action_steps = 10
		self.short_steps_duration = 200
		self.long_steps_duration = 2000
		self.range_sleep = 5.0
		if len(sys.argv) > 1:
			options = Parser.parser(sys.argv[1:])
			if str(options.gen_scripts_output): self.script_repo = str(options.gen_scripts_output)
			if str(options.config):
				with open(options.config) as f:
					self.config = eval(f.read())
					self.dimensions = [self.config['res_x'], self.config['res_y']]
					self.deviceName = self.config['device_name']
					self.script_repo = self.config['script_repo']
			if int(options.gen_scripts_amount): self.amount = int(options.gen_scripts_amount)
			if int(options.gen_scripts_steps): self.steps = int(options.gen_scripts_steps)
{'fraction_non_alphanumeric': 0.11601766358892011, 'fraction_numerical': 0.026495383380168606, 'mean_word_length': 5.092909535452323, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1313440', 'n_tokens_mistral': 946, 'n_tokens_neox': 821, 'n_words': 175}