<commit_before>/*
 * The main executable
 */
#include "demo.h"
#include<stdio.h>
#include "bitmap.h"

int main()
{
    Bitmap b;
    Bitmap o,i1;
    loadBitmapFromFile("/home/esha/git/pvm-demo/lena.bmp",&b);
    newBitmap(&o,b.width,b.height);
    Kernel k;
    float sum;
    int size = 5;
    newKernel(&k,size);
    sum = gaussKernel(&k, 4);
    kernelPrint(&k);
    normKernel(&k, sum);
    printf("now do norm with sum %f \n", sum);<commit_msg>kernel_modif<commit_after>/*
 * The main executable
 */
#include "demo.h"
#include<stdio.h>
#include "bitmap.h"

int main()
{
    Bitmap b;
    Bitmap o;
    loadBitmapFromFile("/home/esha/git/pvm-demo/lena.bmp",&b);
    newBitmap(&o,b.width,b.height);
    Kernel k;
    float sum;
    int var;
    int size;
    //input the variance of the gaussian
    //size of kernel is fixed to thrice the variance
    printf("Enter the variance \n");
    scanf("%d",&var);
    if(var%2==0)
    {
        size = var*3-1;
    }
    else
    {
        size = var*3;
    }
    newKernel(&k,size);
    sum = gaussKernel(&k, var);
    //kernelPrint(&k);
    normKernel(&k, sum);
    //printf("now do norm with sum %f \n", sum);
{'fraction_non_alphanumeric': 0.16982758620689656, 'fraction_numerical': 0.006896551724137931, 'mean_word_length': 2.616822429906542, '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': '5026011', 'n_tokens_mistral': 450, 'n_tokens_neox': 439, 'n_words': 104}