<commit_before>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
]]
-- ds_base_alchemy.lua

local common = require("base.common")
local licence = require("base.licence")
local M = {}

function M.InitAlchemy()
    InitPlantSubstance()
    InitPotions()
end

function InitPlantSubstance()

    setPlantSubstance(15,"","")
    setPlantSubstance(80,"","")
    setPlantSubstance(154,"","")
    setPlantSubstance(200,"","")
    setPlantSubstance(201,"","")
    setPlantSubstance(259,"","")
    setPlantSubstance(290,"","")
    setPlantSubstance(302,"","")
    setPlantSubstance(772,"","")
    setPlantSubstance(778,"","")
    setPlantSubstance(1207,"","")
    setPlantSubstance(2493,"","")

    setPlantSubstance(138,"","Dracolin")
    setPlantSubstance(146,"","Echolon")
    setPlantSubstance(152,"Echolon","")
    setPlantSubstance(754,"","Caprazin")
    setPlantSubstance(755,"","Illidrium")
    setPlantSubstance(756,"Caprazin","")
    setPlantSubstance(757,"Dracolin","")
    setPlantSubstance(758,"Adrazin","")
    setPlantSubstance(760,"","Fenolin")
    setPlantSubstance(761,"Illidrium","")
    setPlantSubstance(762,"","Orcanol")
    setPlantSubstance(764,"","Adrazin")
    setPlantSubstance(765,"Hyperborelium","")
    setPlantSubstance(766,"","Hyperborelium")
    setPlantSubstance(768,"Orcanol","")
    setPlantSubstance(769,"Fenolin","")

    setPlantSubstance(81,"Illidrium","Orcanol")
    setPlantSubstance(133,"Adrazin","Orcanol")
    setPlantSubstance(134,"Fenolin","Illidrium")
    setPlantSubstance(135,"Fenolin","Adrazin")
    setPlantSubstance(136,"Adrazin","Fenolin")
    setPlantSubstance(137,"Echolon","Illidrium")
    setPlantSubstance(140,"Fenolin","Hyperborelium")
    setPlantSubstance(141,"Caprazin","Echolon")
    setPlantSubstance(142,"Hyperborelium","Dracolin")
    setPlantSubstance(143,"Illidrium","Dracolin")
    setPlantSubstance(144,"Adrazin","Dracolin")
    setPlantSubstance(145,"Hyperborelium","Orcanol")
    setPlantSubstance(147,"Echolon","Adrazin")
    setPlantSubstance(148,"Echolon","Caprazin")
    setPlantSubstance(149,"Hyperborelium","Echolon")
    setPlantSubstance(151,"Caprazin","Dracolin")
    setPlantSubstance(153,"Fenolin","Caprazin")
    setPlantSubstance(155,"Illidrium","Echolon")
    setPlantSubstance(156,"Orcanol","Adrazin")
    setPlantSubstance(158,"Illidrium","Fenolin")
    setPlantSubstance(159,"Dracolin","Hyperborelium")
    setPlantSubstance(160,"Adrazin","Echolon")
    setPlantSubstance(161,"Orcanol","Hyperborelium")
    setPlantSubstance(162,"Hyperborelium","Fenolin")
    setPlantSubstance(163,"Orcanol","Illidrium")
    setPlantSubstance(199,"Caprazin","Orcanol")
    setPlantSubstance(388,"Caprazin","Fenolin")
    setPlantSubstance(752,"Orcanol","Caprazin")
    setPlantSubstance(753,"Dracolin","Adrazin")
    setPlantSubstance(759,"Dracolin","Illidrium")
    setPlantSubstance(763,"Dracolin","Caprazin")
    setPlantSubstance(767,"Echolon","Hyperborelium")

end

function setPlantSubstance(id, plusSubstance, minusSubstance)
    if plantList == nil then
        plantList = {}<commit_msg>Add comments<commit_after>--[[
Illarion Server

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.
]]
-- ds_base_alchemy.lua

local common = require("base.common")
local licence = require("base.licence")
local M = {}

function M.InitAlchemy()
    InitPlantSubstance()
    InitPotions()
end

function InitPlantSubstance()

    setPlantSubstance(15,"","") --Apple
    setPlantSubstance(80,"","") --Banana
    setPlantSubstance(154,"","") --Hop
    setPlantSubstance(200,"","") --Tomato
    setPlantSubstance(201,"","") --Onion
    setPlantSubstance(259,"","") --Grain
    setPlantSubstance(290,"","") --Cabbage
    setPlantSubstance(302,"","") --Cherries
    setPlantSubstance(772,"","") --Tobacco
    setPlantSubstance(778,"","") --Sugarcane
    setPlantSubstance(1207,"","") --Orange
    setPlantSubstance(2493,"","") --Carrots

    setPlantSubstance(138,"","Dracolin") --Nightangelsblossom
    setPlantSubstance(146,"","Echolon") --Desertskycapsule
    setPlantSubstance(152,"Echolon","") --Liferoot
    setPlantSubstance(754,"","Caprazin") --Oneleavedfourberry
    setPlantSubstance(755,"","Illidrium") --Fireroot
    setPlantSubstance(756,"Caprazin","") --piousberry
    setPlantSubstance(757,"Dracolin","") --tybaltstar
    setPlantSubstance(758,"Adrazin","") --heartblood
    setPlantSubstance(760,"","Fenolin") --iceleaf
    setPlantSubstance(761,"Illidrium","") --rainweed
    setPlantSubstance(762,"","Orcanol") --goldcrackherb
    setPlantSubstance(764,"","Adrazin") --darkmoss
    setPlantSubstance(765,"Hyperborelium","") --daydream
    setPlantSubstance(766,"","Hyperborelium") --conblossom
    setPlantSubstance(768,"Orcanol","") --wolverinefern
    setPlantSubstance(769,"Fenolin","") --desertberry

    setPlantSubstance(81,"Illidrium","Orcanol") --berries
    setPlantSubstance(133,"Adrazin","Orcanol") --sunherb
    setPlantSubstance(134,"Fenolin","Illidrium") --fourleafedoneberry
    setPlantSubstance(135,"Fenolin","Adrazin") --yellowweed
    setPlantSubstance(136,"Adrazin","Fenolin") --angerberry
    setPlantSubstance(137,"Echolon","Illidrium") --flamegobletblossom
    setPlantSubstance(140,"Fenolin","Hyperborelium") --donfblade
    setPlantSubstance(141,"Caprazin","Echolon") --blackthistle
    setPlantSubstance(142,"Hyperborelium","Dracolin") --sandberry
    setPlantSubstance(143,"Illidrium","Dracolin") --redelder
    setPlantSubstance(144,"Adrazin","Dracolin") --virgin'sweed
    setPlantSubstance(145,"Hyperborelium","Orcanol") --heathflower
    setPlantSubstance(147,"Echolon","Adrazin") --blackberry
    setPlantSubstance(148,"Echolon","Caprazin") --firnisblossom
    setPlantSubstance(149,"Hyperborelium","Echolon") --firtreesprout
    setPlantSubstance(151,"Caprazin","Dracolin") --strawberry
    setPlantSubstance(153,"Fenolin","Caprazin") --footleaf
    setPlantSubstance(155,"Illidrium","Echolon") --sibanacleaf
    setPlantSubstance(156,"Orcanol","Adrazin") --steppefern
    setPlantSubstance(158,"Illidrium","Fenolin") --bulbspongemushroom
    setPlantSubstance(159,"Dracolin","Hyperborelium") --toadstool
    setPlantSubstance(160,"Adrazin","Echolon") --redhead
    setPlantSubstance(161,"Orcanol","Hyperborelium") --herder'smushroom
    setPlantSubstance(162,"Hyperborelium","Fenolin") --birthmushroom
    setPlantSubstance(163,"Orcanol","Illidrium") --champignon
    setPlantSubstance(199,"Caprazin","Orcanol") --tangerine
    setPlantSubstance(388,"Caprazin","Fenolin") --grapes
    setPlantSubstance(752,"Orcanol","Caprazin") --mandrake
    setPlantSubstance(753,"Dracolin","Adrazin") --bluebirdsberry
    setPlantSubstance(759,"Dracolin","Illidrium") --nuts
    setPlantSubstance(763,"Dracolin","Caprazin") --marshflower
    setPlantSubstance(767,"Echolon","Hyperborelium") --waterblossom

end

function setPlantSubstance(id, plusSubstance, minusSubstance)
    if plantList == nil then
        plantList = {}
{'fraction_non_alphanumeric': 0.15033325104912368, 'fraction_numerical': 0.04443347321648976, 'mean_word_length': 5.949399656946826, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2325117', 'n_tokens_mistral': 3106, 'n_tokens_neox': 2750, 'n_words': 443}