<commit_before>require 'nn'
require 'cunn'
--
--require 'cutorch'
--if we_have_cudnn==1 then
	require 'cudnn'
	cudnn.benchmark = true
	cudnn.fastest = true
	--cudnn.verbose = true
--else
--	require 'cunn'
--end
--require 'inn'

torch.setdefaulttensortype('torch.FloatTensor')

require 'image'                                                           
require 'nnx'
require 'nngraph'
require 'Upsample'
model_utils = require 'util.model_utils'
Fcn8 = require 'Fcn8'
require 'optim'
require 'misc'
require 'create_lstm_protos'
require 'IoU3Criterion'
require 'IoU5Criterion'
require 'IoUMultiClassCriterion'
require 'MatchCriterion2'

require 'MatchClassesCriterion'
require 'create_classes_lstm_protos'
require 'create_classes_lstm_protos_2'

require 'get_instance'

function getParameter(nngraph_model, name)
    local params
    nngraph_model:apply( function(m) if m.name==name then params = m end end)
    return params
end<commit_msg>Replacing load_everything with the right version.<commit_after>require 'nn'
require 'cunn'

torch.setdefaulttensortype('torch.FloatTensor')

require 'image'                                                           
require 'nnx'
require 'nngraph'
require 'Upsample'
model_utils = require 'util.model_utils'
Fcn8 = require 'Fcn8'
require 'optim'
require 'misc'
require 'create_lstm_protos'
require 'MatchCriterion'

function getParameter(nngraph_model, name)
    local params
    nngraph_model:apply( function(m) if m.name==name then params = m end end)
    return params
end
{'fraction_non_alphanumeric': 0.0945142101784534, 'fraction_numerical': 0.005948446794448116, 'mean_word_length': 3.761006289308176, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1866316', 'n_tokens_mistral': 491, 'n_tokens_neox': 496, 'n_words': 125}