<commit_before>workspace()

@everywhere include("../src/simulate_system.jl")
@everywhere include("../src/distance.jl")

function test_abc_pmc_lognormal_parallel()
	#Inititalization.
	srand(1)
	t_start::Int64 = convert(Int64, time_ns())

	output_dir::String = "output"
	if !isdir(output_dir)
		mkdir(output_dir)
	end
	
	# Acquisition parameters.
	ax::Float64 = 40.0 # m.
	ay::Float64 = 40.0 # m.
	Lx::Float64 = 60.0#100.0 # m.
	Ly::Float64 = 60.0#100.0 # m.
	Lz::Float64 = 10.0#50.0 # m.
	number_of_frames::Array{Int64, 1} = 1000 * ones(40) #250 * ones(40)
	deltat::Float64 = 0.05 # seconds
	kmin::Int64 = 2
	kmax::Int64 = maximum(number_of_frames)

	# True system parameters.
	distribution_class::String = "lognormal"
	m_real::Float64 = 2.5 # m^2/s.
	s_real::Float64 = 0.5 # m^2/s.
	c_real::Float64 = 1e10 # part/ml.
	az_real::Float64 = 2.0 # m.
	
	# Simulate system.
	(K_real, DE_real) = simulate_system(distribution_class, [m_real, s_real], c_real, ax, ay, az_real, Lx, Ly, Lz, number_of_frames, deltat, kmin)
	println( (length(K_real), length(DE_real)) )
	
	# Distance function parameters.
	k_bin_edges::Array{Float64, 1} = 0.5:1:kmax+0.5
	de_bin_edges::Array{Float64, 1} = 0.0:0.05:12.5 #0.0:0.1:12.5
	
	n_K_real::Array{Int64, 1} = zeros(length(k_bin_edges) - 1)
	n_DE_real::Array{Int64, 1} = zeros(length(de_bin_edges) - 1)
	n_K_sim::Array{Int64, 1} = zeros(length(k_bin_edges) - 1)
	n_DE_sim::Array{Int64, 1} = zeros(length(de_bin_edges) - 1)<commit_msg>100 videos<commit_after>workspace()

@everywhere include("../src/simulate_system.jl")
@everywhere include("../src/distance.jl")

function test_abc_pmc_lognormal_parallel()
	#Inititalization.
	srand(1)
	t_start::Int64 = convert(Int64, time_ns())

	output_dir::String = "output"
	if !isdir(output_dir)
		mkdir(output_dir)
	end
	
	# Acquisition parameters.
	ax::Float64 = 40.0 # m.
	ay::Float64 = 40.0 # m.
	Lx::Float64 = 60.0#100.0 # m.
	Ly::Float64 = 60.0#100.0 # m.
	Lz::Float64 = 10.0#50.0 # m.
	number_of_frames::Array{Int64, 1} = 1000 * ones(100) #250 * ones(40)
	deltat::Float64 = 0.05 # seconds
	kmin::Int64 = 2
	kmax::Int64 = maximum(number_of_frames)

	# True system parameters.
	distribution_class::String = "lognormal"
	m_real::Float64 = 2.5 # m^2/s.
	s_real::Float64 = 0.5 # m^2/s.
	c_real::Float64 = 1e10 # part/ml.
	az_real::Float64 = 2.0 # m.
	
	# Simulate system.
	(K_real, DE_real) = simulate_system(distribution_class, [m_real, s_real], c_real, ax, ay, az_real, Lx, Ly, Lz, number_of_frames, deltat, kmin)
	println( (length(K_real), length(DE_real)) )
	
	# Distance function parameters.
	k_bin_edges::Array{Float64, 1} = 0.5:1:kmax+0.5
	de_bin_edges::Array{Float64, 1} = 0.0:0.05:12.5 #0.0:0.1:12.5
	
	n_K_real::Array{Int64, 1} = zeros(length(k_bin_edges) - 1)
	n_DE_real::Array{Int64, 1} = zeros(length(de_bin_edges) - 1)
	n_K_sim::Array{Int64, 1} = zeros(length(k_bin_edges) - 1)
	n_DE_sim::Array{Int64, 1} = zeros(length(de_bin_edges) - 1)
{'fraction_non_alphanumeric': 0.17340644276901987, 'fraction_numerical': 0.08773132282385196, 'mean_word_length': 4.791666666666667, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '117822', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1284, 'n_words': 222}