<commit_before><?php
const CONFIG_PATH = "../src/shrub";
const SHRUB_PATH = "../src/shrub/src";

include_once __DIR__."/".CONFIG_PATH."/config.php";
require_once __DIR__."/".SHRUB_PATH."/cron.php";
require_once __DIR__."/".SHRUB_PATH."/node/node.php";
require_once __DIR__."/".SHRUB_PATH."/note/note.php";
require_once __DIR__."/".SHRUB_PATH."/grade/grade.php";

// This is a CRON job that regularly updates magic
const MAX_ITEMS_TO_ADD = 500;
const MAX_ITEMS_TO_CALC = 500;

// TODO: Adjust the maximum effectiveness as the weeks go by. Start with like 50 initially (more than enough), but let it go up after.
const FEEDBACK_PER_NOTE = 2.0;

const COOL_MIN_GRADES = 1;		// In the future, set this to 3 or 4
const COOL_MIN_FEEDBACK = 1;	// In the future, set this to 3 or 4
const COOL_MAX_GRADES = 50;
const COOL_MAX_FEEDBACK = 50;

const CLASSIC_MAX_GRADES = 100;


function AddMagic( $name, $parent ) {
	global $node_ids, $db;
	$magic_ids = nodeMagic_GetNodeIdByParentName($parent, $name);
<commit_msg>again I think I have proven that feedback is overpowered<commit_after><?php
const CONFIG_PATH = "../src/shrub";
const SHRUB_PATH = "../src/shrub/src";

include_once __DIR__."/".CONFIG_PATH."/config.php";
require_once __DIR__."/".SHRUB_PATH."/cron.php";
require_once __DIR__."/".SHRUB_PATH."/node/node.php";
require_once __DIR__."/".SHRUB_PATH."/note/note.php";
require_once __DIR__."/".SHRUB_PATH."/grade/grade.php";

// This is a CRON job that regularly updates magic
const MAX_ITEMS_TO_ADD = 500;
const MAX_ITEMS_TO_CALC = 500;

// TODO: Adjust the maximum effectiveness as the weeks go by. Start with like 50 initially (more than enough), but let it go up after.
const FEEDBACK_PER_NOTE = 4.0;

const COOL_MIN_GRADES = 1;		// In the future, set this to 3 or 4
const COOL_MIN_FEEDBACK = 1;	// In the future, set this to 3 or 4
const COOL_MAX_GRADES = 50;
const COOL_MAX_FEEDBACK = 50;

const CLASSIC_MAX_GRADES = 100;


function AddMagic( $name, $parent ) {
	global $node_ids, $db;
	$magic_ids = nodeMagic_GetNodeIdByParentName($parent, $name);

{'fraction_non_alphanumeric': 0.12774256460263286, 'fraction_numerical': 0.02242808386153096, 'mean_word_length': 4.4866310160427805, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4287437', 'n_tokens_mistral': 821, 'n_tokens_neox': 758, 'n_words': 213}