<commit_before>defmodule FarmbotOS.AlertHelpers do
  def firmware_missing(package) when package in ~w(arduino farmduino farmduino_k14 express_k10) do
    %{
      kind: :rpc_request,
      args: %{label: "findme"},
      body: [%{kind: :flash_firmware, args: %{package: "arduino"}}]
    }
    |> FarmbotCeleryScript.AST.decode()
    |> FarmbotCeleryScript.Scheduler.schedule()
  end
end<commit_msg>Fix firmware missing alert_helper not using package name<commit_after>defmodule FarmbotOS.AlertHelpers do
  def firmware_missing(package) when package in ~w(arduino farmduino farmduino_k14 express_k10) do
    %{
      kind: :rpc_request,
      args: %{label: "findme"},
      body: [%{kind: :flash_firmware, args: %{package: package}}]
    }
    |> FarmbotCeleryScript.AST.decode()
    |> FarmbotCeleryScript.Scheduler.schedule()
  end
end
{'fraction_non_alphanumeric': 0.11947431302270012, 'fraction_numerical': 0.009557945041816009, 'mean_word_length': 4.371794871794871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5552125', 'n_tokens_mistral': 305, 'n_tokens_neox': 279, 'n_words': 62}