<commit_before>import os
import time
import logging
import threading

import cv
import libvirt
import libvirt_qemu

import util

class Domain(object):
    def __init__(self, con, ident, dom):
        self.con = con
        self.ident = ident
        self.dom = dom
        self.screen = None
        self.screen_id = 0
        self.screen_lock = threading.Lock()

    def start(self):
        raise NotImplemented

    def cv_image(self):
        raise NotImplemented

    def click(self, x, y):
        raise NotImplemented

    def send_key(self, key):
        raise NotImplemented

class LibvirtDomain(Domain):<commit_msg>use RLock instead of Lock<commit_after>import os
import time
import logging
import threading

import cv
import libvirt
import libvirt_qemu

import util

class Domain(object):
    def __init__(self, con, ident, dom):
        self.con = con
        self.ident = ident
        self.dom = dom
        self.screen = None
        self.screen_id = 0
        self.screen_lock = threading.RLock()

    def start(self):
        raise NotImplemented

    def cv_image(self):
        raise NotImplemented

    def click(self, x, y):
        raise NotImplemented

    def send_key(self, key):
        raise NotImplemented

class LibvirtDomain(Domain):
{'fraction_non_alphanumeric': 0.07125890736342043, 'fraction_numerical': 0.001583531274742676, 'mean_word_length': 2.5406162464985993, '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': '1495857', 'n_tokens_mistral': 381, 'n_tokens_neox': 368, 'n_words': 115}