<commit_before>// ==UserScript==
// @name         Torn City automatic Gym and Crime bot
// @namespace    http://liquidpineapple.net
// @version      0.5
// @description  Try to take over the world, for the lazy.
// @author       <NAME><<EMAIL>>
// @downloadURL  https://github.com/Fastjur/Torn-City-Bot/raw/master/src/TornCityBot.user.js
// @updateURL    https://github.com/Fastjur/Torn-City-Bot/raw/master/src/TornCityBot.user.js
// @match        http://www.torn.com/*
// @require      http://code.jquery.com/jquery-2.2.2.min.js
// @run-at       document-end
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue
// ==/UserScript==
'use strict';

$(document).ready(function(){
    console.log("Torn city bot loaded!");
    window.setInterval(init, 2000);
});

function init() {
    var action = GM_getValue('action', 'gym');
    var stats = checkStats();
    if (action === 'gym') {
        GM_setValue('action', 'gym');
        if (stats['energy'] >= 5) {
            console.log("Energy >= 5, doGym()");
            var gymStep = GM_getValue('gym_step', 1);
            doGym(gymStep);<commit_msg>Updated version for auto update in TamperMonkey<commit_after>// ==UserScript==
// @name         Torn City automatic Gym and Crime bot
// @namespace    http://liquidpineapple.net
// @version      0.6
// @description  Try to take over the world, for the lazy.
// @author       <NAME><<EMAIL>>
// @downloadURL  https://github.com/Fastjur/Torn-City-Bot/raw/master/src/TornCityBot.user.js
// @updateURL    https://github.com/Fastjur/Torn-City-Bot/raw/master/src/TornCityBot.user.js
// @match        http://www.torn.com/*
// @require      http://code.jquery.com/jquery-2.2.2.min.js
// @run-at       document-end
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue
// ==/UserScript==
'use strict';

$(document).ready(function(){
    console.log("Torn city bot loaded!");
    window.setInterval(init, 2000);
});

function init() {
    var action = GM_getValue('action', 'gym');
    var stats = checkStats();
    if (action === 'gym') {
        GM_setValue('action', 'gym');
        if (stats['energy'] >= 5) {
            console.log("Energy >= 5, doGym()");
            var gymStep = GM_getValue('gym_step', 1);
            doGym(gymStep);
{'fraction_non_alphanumeric': 0.1769297484822203, 'fraction_numerical': 0.010407632263660017, 'mean_word_length': 2.532924961715161, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5595284', 'n_tokens_mistral': 784, 'n_tokens_neox': 755, 'n_words': 159}