<commit_before>/* -*- Mode: C; tab-width:2 -*- */
/* ex: set ts=2 shiftwidth=2 softtabstop=2 cindent: */
//written by: <NAME>

#include <sys_module.h>

#define LED_DEBUG
#include <led_dbg.h>

#include <sensor.h>

#include <mts310sb.h>
#include <i2c_system.h>

/**
 * private conguration options for this driver
 */
#define MAG_1_SENSOR_ID (1<<6)
#define MAG_0_SENSOR_ID (0)
#define MIDDLE_ADC_VALUE 0x0200
#define MIDDLE_ADC_OFFSET 0x0010
#define I2C_POTEN_ADDR 0x2C
#define STEADY_NUM 3
#define CALLIBRATE_MAX_TIME 2048

typedef struct magnet_sensor_state {
	uint8_t magnet_0_state;
	uint8_t magnet_1_state;
	uint8_t callibrate_mode;<commit_msg>Minor commit: Disbale LED in mag sensor driver for mts310<commit_after>/* -*- Mode: C; tab-width:2 -*- */
/* ex: set ts=2 shiftwidth=2 softtabstop=2 cindent: */
//written by: <NAME>

#include <sys_module.h>

//#define LED_DEBUG
#include <led_dbg.h>

#include <sensor.h>

#include <mts310sb.h>
#include <i2c_system.h>

/**
 * private conguration options for this driver
 */
#define MAG_1_SENSOR_ID (1<<6)
#define MAG_0_SENSOR_ID (0)
#define MIDDLE_ADC_VALUE 0x0200
#define MIDDLE_ADC_OFFSET 0x0010
#define I2C_POTEN_ADDR 0x2C
#define STEADY_NUM 3
#define CALLIBRATE_MAX_TIME 2048

typedef struct magnet_sensor_state {
	uint8_t magnet_0_state;
	uint8_t magnet_1_state;
	uint8_t callibrate_mode;
{'fraction_non_alphanumeric': 0.11434977578475336, 'fraction_numerical': 0.05605381165919283, 'mean_word_length': 5.4375, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '519401', 'n_tokens_mistral': 599, 'n_tokens_neox': 549, 'n_words': 130}