<commit_before>import ctypes
import numpy as np
import time
from cv2 import *
import sys
from numba import jit
from common import clock, draw_str, StatValue, image_clamp


"""Function to perform OpenCV Unsharp Masking"""
@jit("uint8[::](uint8[::],float64,float64)",cache=True,nogil=True)
def unsharp_mask_cv(image,weight,threshold):
    weight=0.5
    mask=image
    blurred=GaussianBlur(image,(9,9),10.0)
    sharp=addWeighted(image,(1+weight),blurred,(-weight),0)
    return sharp

# load polymage shared libraries
libharris = ctypes.cdll.LoadLibrary("./harris.so")<commit_msg>Parameters tweaked for Unsharp CV<commit_after>import ctypes
import numpy as np
import time
from cv2 import *
import sys
from numba import jit
from common import clock, draw_str, StatValue, image_clamp


"""Function to perform OpenCV Unsharp Masking"""
@jit("uint8[::](uint8[::],float64,float64)",cache=True,nogil=True)
def unsharp_mask_cv(image,weight,threshold):
    weight=0.1
    mask=image
    blurred=GaussianBlur(image,(0,0),3.0)
    sharp=addWeighted(image,(1+weight),blurred,(-weight),0)
    return sharp

# load polymage shared libraries
libharris = ctypes.cdll.LoadLibrary("./harris.so")
{'fraction_non_alphanumeric': 0.1274426508071368, 'fraction_numerical': 0.026338147833474938, 'mean_word_length': 6.316770186335404, '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': '3606832', 'n_tokens_mistral': 419, 'n_tokens_neox': 398, 'n_words': 93}