<commit_before># !/usr/bin/python
# Copyright 2011 <NAME>

'''
Created on August 18, 2011

@author: jpoyau
'''

from multiprocessing import Process
from threading import Thread
import platform

class BaseDefaultMonitor(Process):
    monitorId = property(lambda self: self.pid, None, None, None)

    
class BaseWindowsMonitor(Thread):
    """Thread based class for the monitoring couchdb database change feed.
       Process does not seem to work on windows """
    def terminate(self):
        pass
            
    def start(self):
        Thread.deamon =True
        Thread.start(self)

    monitorId = property(lambda self :self.name, None, None, None)
 
   
BaseChangeMonitor = BaseDefaultMonitor

if platform.system() == 'Windows':
    BaseChangeMonitor = BaseWindowsMonitor
 <commit_msg>Minor clean up<commit_after># !/usr/bin/python
# Copyright 2011 <NAME>

'''
Created on August 18, 2011

@author: jpoyau
'''

from multiprocessing import Process
from threading import Thread
import platform

class __BaseDefaultMonitor(Process):
    monitorId = property(lambda self: self.pid, None, None, None)

    
class __BaseWindowsMonitor(Thread):
    """Thread based class for the monitoring couchdb database change feed.
       Process does not seem to work on windows """
    def terminate(self):
        pass
            
    def start(self):
        Thread.deamon =True
        Thread.start(self)

    monitorId = property(lambda self :self.name, None, None, None)
 
   
BaseChangeMonitor = __BaseDefaultMonitor

if platform.system() == 'Windows':
    BaseChangeMonitor = __BaseWindowsMonitor
 
{'fraction_non_alphanumeric': 0.08766437069505323, 'fraction_numerical': 0.012523481527864746, 'mean_word_length': 3.4512534818941503, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3103304', 'n_tokens_mistral': 465, 'n_tokens_neox': 433, 'n_words': 148}