<commit_before>/** Mars module
 *
 * Author: <NAME> <top_zlynch AT yahoo.com>
 */
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>

MODULE_LICENSE("GPL");
MODULE_AUTHOR("<NAME>");
MODULE_DESCRIPTION("Mars moddule");
MODULE_ALIAS("Mars");
MODULE_ALIAS("mars_typing");

static int mars_probe(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS probe\n");
    return  0;
}

static int mars_remove(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS remove\n");
    return 0;
}

static int mars_suspend(struct platform_device *dev, pm_message_t state)
{
    printk(KERN_INFO "MARS suspend\n");
    return 0;
}

static int mars_resume(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS resume\n");
    return 0;
}

//static const struct platform_device_id mars_id_table[] = {
//    {"mars-mod", (kernel_ulong_t)mars_struct_type},
//};

static struct platform_driver mars_driver = {
	.probe		= mars_probe,
	.remove		= mars_remove,
	.suspend	= mars_suspend,
	.resume		= mars_resume,
	.driver		= {
		.name	= "mars-typing",
	},
};
module_platform_driver(mars_driver);

static struct platform_driver* devices [] = {
    &mars_driver,
};

static int __init mars_init(void)
{
    printk(KERN_INFO "MARS init\n");
    platform_add_devices(devices, ARRAY_SIZE(devices));
    
    return platform_driver_register(&mars_driver);
}

static void __exit mars_cleanup(void)
{
    printk(KERN_INFO "MARS cleanup\n");
    platform_driver_unregister(&mars_driver);
}

//module_init(mars_init);
//module_exit(mars_cleanup);
<commit_msg>remove device from common mars<commit_after>/** Mars module
 *
 * Author: <NAME> <top_zlynch AT yahoo.com>
 */
#include <linux/module.h>
//#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>

MODULE_LICENSE("GPL");
MODULE_AUTHOR("<NAME>");
MODULE_DESCRIPTION("Mars moddule");
MODULE_ALIAS("Mars");
MODULE_ALIAS("mars_typing");

#define DRIVER_NAME "mars_typing"

static int mars_probe(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS probe\n");
    return  0;
}

static int mars_remove(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS remove\n");
    return 0;
}

static int mars_suspend(struct platform_device *dev, pm_message_t state)
{
    printk(KERN_INFO "MARS suspend\n");
    return 0;
}

static int mars_resume(struct platform_device *pdev)
{
    printk(KERN_INFO "MARS resume\n");
    return 0;
}

static const struct platform_device_id mars_id_table[] = {
    {"mars-mod", (kernel_ulong_t)0}, //mars_struct_type},
};

static struct platform_driver mars_driver = {
	.probe		= mars_probe,
	.remove		= mars_remove,
	.suspend	= mars_suspend,
	.resume		= mars_resume,
//    .id_table   = mars_id_table
	.driver		= {
		.name	= DRIVER_NAME,//"mars-typing",
        .owner  = THIS_MODULE,
	},
};
module_platform_driver(mars_driver);

//static struct platform_driver* devices [] = {
//    &mars_driver,
//};
//
//static int mars_init(void)
//{
//    printk(KERN_INFO "MARS init\n");
//    
//    return platform_driver_register(&mars_driver);
//}
//
//static void mars_cleanup(void)
//{
//    printk(KERN_INFO "MARS cleanup\n");
//    platform_driver_unregister(&mars_driver);
//}
//
//module_init(mars_init);
//module_exit(mars_cleanup);

{'fraction_non_alphanumeric': 0.14381270903010032, 'fraction_numerical': 0.002736394040741867, 'mean_word_length': 4.4200988467874796, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1939780', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1216, 'n_words': 234}