<commit_before>import * as _ from "lodash";
import { BotState, DeviceAccountSettings, HardwareState } from "./interfaces";
import { generateReducer } from "../redux/generate_reducer";
import * as i18next from "i18next";
import { ChangeSettingsBuffer } from "./interfaces";
import { Configuration } from "farmbot";
import { PLACEHOLDER_FARMBOT } from "../images/index";

export function versionOK(stringyVersion = "0.0.0",
  EXPECTED_MAJOR = 3,
  EXPECTED_MINOR = 0) {
  let [actual_major, actual_minor] = stringyVersion
    .split(".")
    .map(x => parseInt(x, 10));
  if ((actual_major >= EXPECTED_MAJOR) &&
    (actual_minor >= EXPECTED_MINOR)) {
    return true;
  }
  return false;
}
let initialState: BotState = {<commit_msg>Bump required version #<commit_after>import * as _ from "lodash";
import { BotState, DeviceAccountSettings, HardwareState } from "./interfaces";
import { generateReducer } from "../redux/generate_reducer";
import * as i18next from "i18next";
import { ChangeSettingsBuffer } from "./interfaces";
import { Configuration } from "farmbot";
import { PLACEHOLDER_FARMBOT } from "../images/index";

export function versionOK(stringyVersion = "0.0.0",
  EXPECTED_MAJOR = 3,
  EXPECTED_MINOR = 1) {
  let [actual_major, actual_minor] = stringyVersion
    .split(".")
    .map(x => parseInt(x, 10));
  if ((actual_major >= EXPECTED_MAJOR) &&
    (actual_minor >= EXPECTED_MINOR)) {
    return true;
  }
  return false;
}
let initialState: BotState = {
{'fraction_non_alphanumeric': 0.13790760869565216, 'fraction_numerical': 0.014945652173913044, 'mean_word_length': 4.537593984962406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1513695', 'n_tokens_mistral': 501, 'n_tokens_neox': 486, 'n_words': 121}