<commit_before>// Description:
// Causes the cursor to jump to the end when editing a pet note, allowing you to erase what was previously written.

//Find the 4-byte value that determines where the cursor is
//when editing or writing a pet note.  Far left is 0, each
//character past that is plus 1.

//Find the code that writes to this address when you're
//typing, incrementing the value.

//Change the inc to instead add an extremely high value (EBP)
//to make sure the cursor jumps to the end of the note.
//inc [esi+0000010C]
//to
//add [esi+0000010C],ebp

var pattern = scan('C7 45 08 00 00 00 00 FF 86 0C 01 00 00');

patch(pattern.add(7), [0x01, 0xAE, 0x0C, 0x01, 0x00, 0x00]);<commit_msg>Update FixPetNoteCursor.js<commit_after>// Description:
// Causes the cursor to jump to the end when editing a pet note, allowing you to erase what was previously written.

//Find the 4-byte value that determines where the cursor is
//when editing or writing a pet note.  Far left is 0, each
//character past that is plus 1.

//Find the code that writes to this address when you're
//typing, incrementing the value.

//Change the inc to instead add an extremely high value (EBP)
//to make sure the cursor jumps to the end of the note.
//inc [esi+0000010C]
//to
//add [esi+0000010C],ebp

var pattern = scan('C7 45 08 00 00 00 00 FF 86 10 01 00 00');

patch(pattern.add(7), [0x01, 0xAE]);
{'fraction_non_alphanumeric': 0.09472161966738973, 'fraction_numerical': 0.07230657989877079, 'mean_word_length': 3.537704918032787, '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': '6482869', 'n_tokens_mistral': 513, 'n_tokens_neox': 424, 'n_words': 226}